Documentation ¶
Index ¶
- Constants
- type AdomonishData
- type AllCharacterListItem
- type Announcement
- type AnnouncementBase
- type AnnouncementData
- type AnnouncementEditData
- type AnnouncementEditDataUpdate
- type AnnouncementGuideData
- type AnnouncementOverview
- type BanData
- type CharacterEmailRegistratedData
- type CharacterIconLayerGroup
- type CharacterIconLayerGroupOrder
- type CharacterIconLayerItem
- type CharacterIconLayerItemEditData
- type CharacterIconLayeringGroup
- type CharacterIconLayeringGroupOverview
- type CharacterIconProcessSchema
- type CharacterIconProcessSchemaEditData
- type CharacterOtherSettings
- type CharacterOtherSettingsState
- type CharacterOverview
- type CharacterSuggestion
- type CharacterSuggestionData
- type CharacterSuggestions
- type CharacterSuggestionsData
- type Diary
- type DiaryEditData
- type DiaryOverview
- type FollowedNotification
- type FollowedNotificationValue
- type Forum
- type ForumCreateData
- type ForumGroup
- type ForumOverview
- type ForumOverviewLastPost
- type ForumSender
- type ForumTopic
- type ForumTopicCreateData
- type ForumTopicEditData
- type ForumTopicOverview
- type ForumTopicPost
- type ForumTopicPostReaction
- type ForumTopicPostReviseData
- type ForumTopicPostRevision
- type ForumTopicPostRevisionHistory
- type ForumTopicPostSendData
- type GeneralCharacterListItem
- type HomeData
- type Icon
- type Inquiry
- type ListOverview
- type MailBase
- type MailNotification
- type MailNotificationValue
- type MassMailNotification
- type MassMailNotificationValue
- type NewMemberNotification
- type NewMemberNotificationValue
- type Notification
- type NotificationBase
- type Profile
- type ProfileDiaryData
- type ProfileEditData
- type ProfileImage
- type ProhibitionRelatedData
- type ReceivedMail
- type RepliedNotification
- type RepliedNotificationValue
- type RomeMemberWithRoles
- type Room
- type RoomBanState
- type RoomDetailData
- type RoomInitialData
- type RoomInviteState
- type RoomListItem
- type RoomMemberPermission
- type RoomMessage
- type RoomMessageEditRequiredData
- type RoomMessageFetchConfig
- type RoomMessageFetchConfigOrder
- type RoomMessageFetchConfigWithId
- type RoomMessageRetrieveSettings
- type RoomNotificationRelatedData
- type RoomOverview
- type RoomPostMessage
- type RoomRelations
- type RoomRole
- type RoomRoleOverview
- type RoomRolePermission
- type RoomRolePriority
- type RoomSearchOptions
- type RoomSubscribeStates
- type SentMail
- type SubscribeNotification
- type SubscribeNotificationValue
- type UnbanData
- type UploadedImage
Constants ¶
View Source
const ( NotificationTypeFollowed = "FOLLOWED" NotificationTypeReplied = "REPLIED" NotificationTypeSubscribe = "SUBSCRIBE" NotificationTypeNewMember = "NEW_MEMBER" NotificationTypeMail = "MAIL" NotificationTypeMassMail = "MASS_MAIL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdomonishData ¶
type AllCharacterListItem ¶
type AllCharacterListItem struct { Id int `json:"id"` Name string `json:"name"` Nickname string `json:"nickname"` Summary string `json:"summary"` ListImage string `json:"listImage"` Tags []string `json:"tags"` IsFollowing *bool `json:"isFollowing,omitempty"` IsFollowed *bool `json:"isFollowed,omitempty"` IsMuting *bool `json:"isMuting,omitempty"` IsBlocking *bool `json:"isBlocking,omitempty"` }
type Announcement ¶
type Announcement struct { AnnouncementBase Title string `json:"title"` Content string `json:"content"` }
type AnnouncementBase ¶
type AnnouncementData ¶
type AnnouncementEditData ¶
type AnnouncementEditData struct { AnnouncementData AnnouncedAt time.Time `json:"announcedAt"` }
type AnnouncementEditDataUpdate ¶
type AnnouncementEditDataUpdate struct { AnnouncementData SilentUpdate bool `json:"silentUpdate"` }
type AnnouncementGuideData ¶
type AnnouncementOverview ¶
type AnnouncementOverview struct { AnnouncementBase Overview string `json:"overview"` }
type CharacterIconLayerGroup ¶
type CharacterIconLayerGroup struct { Id int `json:"id"` Name string `json:"name"` Items []CharacterIconLayerItem `json:"items"` }
type CharacterIconLayerItem ¶
type CharacterIconLayerItem struct { CharacterIconLayerItemEditData Id int `json:"id"` }
type CharacterIconLayerItemEditData ¶
type CharacterIconLayerItemEditData struct {
Path string `json:"path"`
}
type CharacterIconLayeringGroup ¶
type CharacterIconLayeringGroup struct { CharacterIconLayeringGroupOverview Layers []CharacterIconLayerGroup `json:"layers"` Processes []CharacterIconProcessSchemaEditData `json:"processes"` }
type CharacterIconProcessSchemaEditData ¶
type CharacterIconProcessSchemaEditData struct { CharacterIconProcessSchema Id int `json:"id"` }
type CharacterOtherSettings ¶
type CharacterOtherSettings struct { Webhook struct { Url string `json:"url"` Followed bool `json:"followed"` Replied bool `json:"replied"` Subscribe bool `json:"subscribe"` NewMember bool `json:"newMember"` Mail bool `json:"mail"` } `json:"webhook"` Notification struct { Followed bool `json:"followed"` Replied bool `json:"replied"` Subscribe bool `json:"subscribe"` NewMember bool `json:"newMember"` Mail bool `json:"mail"` } `json:"notification"` }
type CharacterOtherSettingsState ¶
type CharacterOtherSettingsState struct { Email *string `json:"email"` LinkedStates struct { Twitter bool `json:"twitter"` Google bool `json:"google"` } `json:"linkedStates"` CharacterOtherSettings }
type CharacterOverview ¶
type CharacterSuggestion ¶
type CharacterSuggestionData ¶
func (*CharacterSuggestionData) ToDomain ¶
func (s *CharacterSuggestionData) ToDomain() *CharacterSuggestion
type CharacterSuggestions ¶
type CharacterSuggestions []CharacterSuggestion
type CharacterSuggestionsData ¶
type CharacterSuggestionsData []CharacterSuggestionData
func (*CharacterSuggestionsData) ToDomain ¶
func (s *CharacterSuggestionsData) ToDomain() *CharacterSuggestions
type Diary ¶
type Diary struct { DiaryOverview ExistingDiaries []int `json:"existingDiaries"` Diary string `json:"diary"` Nth int `json:"nth"` }
type DiaryEditData ¶
type DiaryOverview ¶
type DiaryOverview struct { Author CharacterOverview `json:"author"` Title string `json:"title"` }
type FollowedNotification ¶
type FollowedNotification struct { NotificationBase FollowedNotificationValue }
type FollowedNotificationValue ¶
type FollowedNotificationValue struct {
Character CharacterOverview `json:"character"`
}
type ForumCreateData ¶
type ForumGroup ¶
type ForumGroup struct { Id int `json:"id"` Title string `json:"title"` Forums []ForumOverview `json:"forums"` }
type ForumOverview ¶
type ForumOverview struct { Id int `json:"id"` Title string `json:"title"` Summary string `json:"summary"` LastPost *ForumOverviewLastPost `json:"lastPost"` }
type ForumOverviewLastPost ¶
type ForumSender ¶
type ForumTopic ¶
type ForumTopicCreateData ¶
type ForumTopicEditData ¶
type ForumTopicOverview ¶
type ForumTopicPost ¶
type ForumTopicPost struct { Id int `json:"id"` Sender ForumSender `json:"sender"` Content string `json:"content"` PostedAt time.Time `json:"postedAt"` UpdatedAt *time.Time `json:"updatedAt"` Revisions []ForumTopicPostRevision `json:"revisions"` Reactions []ForumTopicPostReaction `json:"reactions"` }
type ForumTopicPostReaction ¶
type ForumTopicPostRevision ¶
type ForumTopicPostSendData ¶
type GeneralCharacterListItem ¶
type GeneralCharacterListItem struct { Id int `json:"id"` Name string `json:"name"` Nickname string `json:"nickname"` Summary string `json:"summary"` Mainicon string `json:"mainicon"` Tags []string `json:"tags"` IsFollowing *bool `json:"isFollowing,omitempty"` IsFollowed *bool `json:"isFollowed,omitempty"` IsMuting *bool `json:"isMuting,omitempty"` IsBlocking *bool `json:"isBlocking,omitempty"` }
type ListOverview ¶
type MailNotification ¶
type MailNotification struct { NotificationBase MailNotificationValue }
type MailNotificationValue ¶
type MassMailNotification ¶
type MassMailNotification struct { NotificationBase MassMailNotificationValue }
type NewMemberNotification ¶
type NewMemberNotification struct { NotificationBase NewMemberNotificationValue }
type NewMemberNotificationValue ¶
type NewMemberNotificationValue struct { Character CharacterOverview `json:"character"` Room RoomOverview `json:"room"` }
type Notification ¶
type Notification interface {
// contains filtered or unexported methods
}
type NotificationBase ¶
type Profile ¶
type Profile struct { Id int `json:"id"` Name string `json:"name"` Nickname string `json:"nickname"` Summary string `json:"summary"` Profile string `json:"profile"` ProfileImages []string `json:"profileImages"` Tags []string `json:"tags"` FollowingNumber int `json:"followingNumber"` FollowedNumber int `json:"followedNumber"` Icons []Icon `json:"icons"` IsFollowing bool `json:"isFollowing"` IsFollowed bool `json:"isFollowed"` IsMuting bool `json:"isMuting"` IsBlocking bool `json:"isBlocking"` IsBlocked bool `json:"isBlocked"` ExistingDiaries []ProfileDiaryData `json:"existingDiaries"` }
type ProfileDiaryData ¶
type ProfileEditData ¶
type ProfileImage ¶
type ProfileImage struct {
Path string `json:"path"`
}
type ProhibitionRelatedData ¶
type ReceivedMail ¶
type RepliedNotification ¶
type RepliedNotification struct { NotificationBase RepliedNotificationValue }
type RepliedNotificationValue ¶
type RepliedNotificationValue struct { Character CharacterOverview `json:"character"` Room RoomOverview `json:"room"` Message struct { ReferRoot int `json:"referRoot"` Message string `json:"message"` } `json:"message"` }
type RomeMemberWithRoles ¶
type RomeMemberWithRoles struct { CharacterOverview Roles []RoomRoleOverview `json:"roles"` }
type Room ¶
type Room struct { Title string `json:"title"` Summary string `json:"summary"` Description string `json:"description"` Tags []string `json:"tags"` Searchable bool `json:"searchable"` AllowRecommendation bool `json:"allowRecommendation"` ChildrenReferable bool `json:"childrenReferable"` ParentRoom *int `json:"parentRoom"` }
type RoomBanState ¶
type RoomBanState struct { Banned CharacterOverview `json:"banned"` Banner CharacterOverview `json:"banner"` BannedAt time.Time `json:"bannedAt"` }
type RoomDetailData ¶
type RoomInitialData ¶
type RoomInitialData struct { Title string `json:"title"` Relations RoomRelations `json:"relations"` Permissions RoomMemberPermission `json:"permissions"` SubscribeStates RoomSubscribeStates `json:"subscribeStates"` Banned bool `json:"banned"` }
type RoomInviteState ¶
type RoomInviteState struct { Invited CharacterOverview `json:"invited"` Inviter CharacterOverview `json:"inviter"` InvitedAt time.Time `json:"invitedAt"` }
type RoomListItem ¶
type RoomListItem struct { Id int `json:"id"` Master struct { Id int `json:"id"` Name string `json:"name"` } `json:"master"` Title string `json:"title"` Summary string `json:"summary"` Tags []string `json:"tags"` Official bool `json:"official"` MessagesCount int `json:"messagesCount"` MembersCount int `json:"membersCount"` LastUpdate time.Time `json:"lastUpdate"` PostsPerDay float64 `json:"postsPerDay"` FollowedMembers []CharacterOverview `json:"followedMembers,omitempty"` }
type RoomMemberPermission ¶
type RoomMessage ¶
type RoomMessage struct { Id int `json:"id"` Character int `json:"character"` Refer *int `json:"refer"` ReferRoot *int `json:"referRoot"` Secret bool `json:"secret"` Icon *string `json:"icon"` Name string `json:"name"` Message string `json:"message"` RepliedCount int `json:"repliedCount"` PostedAt time.Time `json:"postedAt"` ReplyPermission string `json:"replyPermission"` Replyable bool `json:"replyable"` Room RoomOverview `json:"room"` Recipients []struct { Id int `json:"id"` Name string `json:"name"` } `json:"recipients"` }
type RoomMessageEditRequiredData ¶
type RoomMessageEditRequiredData struct { Character struct { Name string `json:"name"` } `json:"character"` Icons []Icon `json:"icons"` Lists []ListOverview `json:"lists"` FetchConfigs []RoomMessageFetchConfigWithId `json:"fetchConfigs"` }
type RoomMessageFetchConfig ¶
type RoomMessageFetchConfig struct { Name string `json:"name"` Category string `json:"category"` Room *int `json:"room"` Search *string `json:"search"` ReferRoot *int `json:"referRoot"` List *int `json:"list"` Character *int `json:"character"` RelateFilter *bool `json:"relateFilter"` Children *bool `json:"children"` }
type RoomMessageFetchConfigWithId ¶
type RoomMessageFetchConfigWithId struct { Id int `json:"id"` RoomMessageFetchConfig }
type RoomOverview ¶
type RoomPostMessage ¶
type RoomRelations ¶
type RoomRelations struct { Parent *RoomOverview `json:"parent"` Siblings []RoomOverview `json:"siblings"` Children []RoomOverview `json:"children"` }
type RoomRole ¶
type RoomRole struct { Id int `json:"id"` Priority int `json:"priority"` Name string `json:"name"` Type string `json:"type"` RoomRolePermission }
type RoomRoleOverview ¶
type RoomRolePermission ¶
type RoomRolePriority ¶
type RoomSearchOptions ¶
type RoomSearchOptions struct { Title string `json:"title"` Tags []string `json:"tags"` ExcludedTags []string `json:"excludedTags"` Description string `json:"description"` Order string `json:"order"` Sort string `json:"sort"` Participant *string `json:"participant"` Offset int `json:"offset"` Limit int `json:"limit"` }
type RoomSubscribeStates ¶
type SubscribeNotification ¶
type SubscribeNotification struct { NotificationBase SubscribeNotificationValue }
type SubscribeNotificationValue ¶
type SubscribeNotificationValue struct { Character CharacterOverview `json:"character"` Room RoomOverview `json:"room"` Message struct { Message string `json:"message"` } `json:"message"` }
Click to show internal directories.
Click to hide internal directories.