Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package shibafu.yukari.entity | ||
|
||
import shibafu.yukari.twitter.AuthUserRecord | ||
|
||
/** | ||
* 内部イベント処理用のUserスタブ | ||
*/ | ||
class ShadowUser(userRecord: AuthUserRecord) : User { | ||
override val id: Long = userRecord.NumericId | ||
override val name: String = userRecord.Name | ||
override val screenName: String = userRecord.ScreenName | ||
override val isProtected: Boolean = false | ||
override val profileImageUrl: String = userRecord.ProfileImageUrl | ||
override val biggerProfileImageUrl: String = userRecord.ProfileImageUrl | ||
|
||
override fun isMentionedTo(userRecord: AuthUserRecord): Boolean { | ||
return false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters