Documentation
¶
Index ¶
- type AccessType
- type ActiveMeetup
- type AnnotationsSummary
- type CSATeam
- type Channel
- type ChannelSettings
- type ChannelType
- type Chat
- type ChatMember
- type ChatMemberRole
- type ChatMessage
- type ChatMessageProperties
- type ChatMessageType
- type ConnectorProfile
- type ConsumptionHorizon
- type ConversationMetadata
- type ConversationResponse
- type DateRange
- type DeltaEmotion
- type Emotion
- type ExtensionDefinition
- type FeatureSettings
- type FeedProperty
- type FileSettings
- type MeetingInfo
- type MemberRole
- type MemberSettings
- type MembershipSummary
- type Message
- type MessageType
- type MessagesMetadata
- type MessagesResponse
- type MonthlyRecurrence
- type Phone
- type PhoneType
- type PrivateFeed
- type RFC3339Time
- type RecurrencePattern
- type RetentionHorizon
- type RetentionHorizonV2
- type SkypeTeamsInfo
- type SortMessageByTime
- type Tab
- type TeamSettings
- type TeamSiteInformation
- type TeamStatus
- type TeamType
- type Tenant
- type TenantType
- type User
- type UserEmotion
- type UserResponse
- type UserType
- type UsersResponse
- type WeeklyRecurrence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveMeetup ¶
type ActiveMeetup struct {
MessageId string
ConversationURL string `json:"conversationUrl"`
ConversationId string `json:"conversationId"`
GroupCallInitiator string `json:"groupCallInitiator"`
WasInitiatorInLobby bool `json:"wasInitiatorInLobby"`
Expiration time.Time `json:"expiration"`
Status string `json:"status"`
IsHostless bool `json:"isHostless"`
TenantId string `json:"tenantId"`
OrganizerId string `json:"organizerId"`
CallMeetingType int `json:"callMeetingType"`
ConversationType string `json:"conversationType"`
}
type AnnotationsSummary ¶
type CSATeam ¶
type CSATeam struct {
AccessType AccessType `json:"accessType"`
ChannelOnlyMember bool `json:"channelOnlyMember"`
Channels []Channel `json:"channels"`
Classification string `json:"classification"`
ConversationVersion string `json:"conversationVersion"`
Creator string `json:"creator"`
Description string `json:"description"`
DisplayName string `json:"displayName"`
DynamicMembership bool `json:"dynamicMembership"`
GuestUsersCategory string `json:"guestUsersCategory"`
Id string `json:"id"`
IsArchived bool `json:"isArchived"`
IsCollapsed bool `json:"isCollapsed"`
IsCreator bool `json:"isCreator"`
IsDeleted bool `json:"isDeleted"`
IsFavorite bool `json:"isFavorite"`
IsFollowed bool `json:"isFollowed"`
IsTeamLocked bool `json:"isTeamLocked"`
IsTenantWide bool `json:"isTenantWide"`
IsUnlockMembershipSyncRequired bool `json:"isUnlockMembershipSyncRequired"`
IsUserMuted bool `json:"isUserMuted"`
LastJoinAt string `json:"lastJoinAt"`
MaximumMemberLimitExceeded bool `json:"maximumMemberLimitExceeded"`
MemberRole MemberRole `json:"memberRole"`
MembershipExpiry int `json:"membershipExpiry"`
MembershipSummary *MembershipSummary `json:"membershipSummary"`
MembershipVersion int `json:"membershipVersion"`
PictureETag string `json:"pictureETag"`
SmtpAddress string `json:"smtpAddress"`
TeamGuestSettings TeamSettings `json:"teamGuestSettings"`
TeamSettings TeamSettings `json:"teamSettings"`
TeamSiteInformation TeamSiteInformation `json:"teamSiteInformation"`
TeamStatus TeamStatus `json:"teamStatus"`
TeamType TeamType `json:"teamType"`
ExtensionDefinition ExtensionDefinition `json:"extensionDefinition"`
TenantId string `json:"tenantId"`
ThreadSchemaVersion string `json:"threadSchemaVersion,omitempty"`
ThreadVersion string `json:"threadVersion"`
}
type Channel ¶
type Channel struct {
Id string
DisplayName string
Description string
ConsumptionHorizon *ConsumptionHorizon
RetentionHorizon *RetentionHorizon
RetentionHorizonV2 *RetentionHorizonV2
Version int
ThreadVersion int
ParentTeamId string
IsGeneral bool
IsFavorite bool
IsFollowed bool
IsMember bool
Creator string
IsMessageRead bool
IsImportantMessageRead bool
IsGapDetectionEnabled bool
DefaultFileSettings FileSettings
Tabs []Tab
LastMessage Message
ConnectorProfiles []ConnectorProfile
IsDeleted bool
IsPinned bool
LastImportantMessageTime time.Time
LastLeaveAt time.Time
LastJoinAt time.Time
MemberRole MemberRole
IsMuted bool
MembershipExpiry int
ActiveMeetups []ActiveMeetup
IsFavoriteByDefault bool
CreationTime time.Time
IsArchived bool
ChannelType ChannelType
ChannelSettings ChannelSettings
MembershipVersion int
MembershipSummary *MembershipSummary
MemberSettings MemberSettings `json:"memberSettings"`
GuestSettings MemberSettings `json:"guestSettings"`
IsModerator bool
GroupId string
ChannelOnlyMember bool
ExplicitlyAdded bool
ThreadSchemaVersion string `json:"threadSchemaVersion,omitempty"`
UserConsumptionHorizon ConsumptionHorizon
TenantId string `json:"tenantId"`
}
type ChannelSettings ¶
type Chat ¶
type Chat struct {
ChatSubType int `json:"chatSubType"`
ChatType string `json:"chatType"`
ConsumptionHorizon ConsumptionHorizon `json:"consumptionHorizon"`
ConversationBlockedAt int `json:"conversationBlockedAt"`
CreatedAt string `json:"createdAt"`
Creator string `json:"creator"`
HasTranscript bool `json:"hasTranscript"`
Hidden bool `json:"hidden"`
Id string `json:"id"`
InteropConversationStatus string `json:"interopConversationStatus"`
InteropType int `json:"interopType"`
IsDisabled bool `json:"isDisabled"`
IsGapDetectionEnabled bool `json:"isGapDetectionEnabled"`
IsHighImportance bool `json:"isHighImportance"`
IsLastMessageFromMe bool `json:"isLastMessageFromMe"`
IsMessagingDisabled bool `json:"isMessagingDisabled"`
IsOneOnOne bool `json:"isOneOnOne"`
IsRead bool `json:"isRead"`
IsSticky bool `json:"isSticky"`
LastJoinAt time.Time `json:"lastJoinAt"`
LastLeaveAt time.Time `json:"lastLeaveAt"`
LastMessage Message `json:"lastMessage"`
MeetingInformation MeetingInfo `json:"meetingInformation"`
MeetingPolicy string `json:"meetingPolicy"`
Members []ChatMember `json:"members"`
RetentionHorizon string `json:"retentionHorizon"`
RetentionHorizonV2 string `json:"retentionHorizonV2"`
Tabs []Tab `json:"tabs"`
TenantId string `json:"tenantId"`
ThreadVersion int `json:"threadVersion"`
ThreadSchemaVersion string `json:"threadSchemaVersion,omitempty"`
Title string `json:"title"`
UserConsumptionHorizon ConsumptionHorizon `json:"userConsumptionHorizon"`
Version int `json:"version"`
}
type ChatMember ¶
type ChatMessage ¶
type ChatMessage struct {
Id string
SequenceId int64
SkypeEditedId string
SkypeEditOffset int
ClientMessageId string
Version string
ConversationId string
ConversationLink string
Type ChatMessageType
MessageType string
ContentType string
Content string
AmsReferences []string
From string
FromTenantId string
ImDisplayName string
S2SPartnerName string
ComposeTime RFC3339Time
OriginalArrivalTime RFC3339Time
Properties ChatMessageProperties
AnnotationsSummary AnnotationsSummary
}
type ChatMessageProperties ¶
type ChatMessageProperties struct {
Subject string
Title string
EmailDetails string
Meta string
Files string
Emotions []Emotion
DeltaEmotions []DeltaEmotion
DeleteTime int64 // TODO: Convert to time.Time ?
AdminDelete bool
S2SPartnerName string
Mentions string
Links string
EditTime interface{} // Can be either string or int64, wtf? TODO: Convert to time.Time ?
CounterPartyMessageId int64
OriginContextId int64
ParentMessageId int64
SkipFanOutToBots interface{} // Can be either string or bool, wtf?
Cards string
Importance string
Atp string
CrossPostId string
Meeting string
SkypeGuid string
}
type ChatMessageType ¶
type ChatMessageType string
const ( ChatMessageTypeMessage ChatMessageType = "Message" EvenCall ChatMessageType = "Event/Call" ThreadActivityAddMember ChatMessageType = "ThreadActivity/AddMember" )
type ConnectorProfile ¶
type ConsumptionHorizon ¶
type ConversationMetadata ¶
type ConversationResponse ¶
type ConversationResponse struct {
Chats []Chat
Metadata ConversationMetadata
PrivateFeeds []PrivateFeed
Teams []CSATeam
Users []User
}
type DeltaEmotion ¶
type DeltaEmotion struct {
Key string
Users []UserEmotion
}
type Emotion ¶
type Emotion struct {
Key string
Users []UserEmotion
}
type ExtensionDefinition ¶
type FeatureSettings ¶
type FeedProperty ¶
type FileSettings ¶
type MeetingInfo ¶
type MeetingInfo struct {
Subject string
Location string
StartTime string // TODO: Switch to time.Time
EndTime string // TODO: Switch to time.Time
ExchangeId *string
ICalUid string
IsCancelled bool
EventRecurrenceRange DateRange
EventRecurrencePattern RecurrencePattern
AppointmentType int
MeetingType int
Scenario string
TenantId string `json:"tenantId"`
}
type MemberRole ¶
type MemberRole int
const ( MemberRole_Unknown MemberRole = iota MemberRole_Member )
type MemberSettings ¶
type MemberSettings TeamSettings
type MembershipSummary ¶
type Message ¶
type Message struct {
MessageType MessageType
Content string
ClientMessageId string
ImDisplayName string
Id string
Type string
ComposeTime RFC3339Time
OriginalArrivalTime RFC3339Time
ContainerId string
ParentMessageId string
From string
SequenceId int
Version int
ThreadType *string
IsEscalationToNewPerson bool
}
type MessagesMetadata ¶
type MessagesResponse ¶
type MessagesResponse struct {
Messages []ChatMessage `json:"messages"`
Metadata MessagesMetadata `json:"_metadata"`
}
type MonthlyRecurrence ¶
type PrivateFeed ¶
type RFC3339Time ¶
func (*RFC3339Time) MarshalJSON ¶
func (t *RFC3339Time) MarshalJSON() ([]byte, error)
func (*RFC3339Time) UnmarshalJSON ¶
func (t *RFC3339Time) UnmarshalJSON(bytes []byte) error
type RecurrencePattern ¶
type RecurrencePattern struct {
PatternType int
Weekly WeeklyRecurrence
RelativeMonthly MonthlyRecurrence
}
type RetentionHorizon ¶
type RetentionHorizon struct {
}
type RetentionHorizonV2 ¶
type RetentionHorizonV2 struct {
}
type SkypeTeamsInfo ¶
type SkypeTeamsInfo struct {
IsSkypeTeamsUser bool
}
type SortMessageByTime ¶
type SortMessageByTime []ChatMessage
func (SortMessageByTime) Len ¶
func (s SortMessageByTime) Len() int
func (SortMessageByTime) Less ¶
func (s SortMessageByTime) Less(i, j int) bool
func (SortMessageByTime) Swap ¶
func (s SortMessageByTime) Swap(i, j int)
type TeamSettings ¶
type TeamSettings struct {
AddDisplayContent bool `json:"addDisplayContent"`
AdminDeleteEnabled bool `json:"adminDeleteEnabled"`
ChannelMention bool `json:"channelMention"`
CreateIntegration bool `json:"createIntegration"`
CreateTab bool `json:"createTab"`
CreateTopic bool `json:"createTopic"`
CustomMemesEnabled bool `json:"customMemesEnabled"`
DeleteEnabled bool `json:"deleteEnabled"`
DeleteIntegration bool `json:"deleteIntegration"`
DeleteTab bool `json:"deleteTab"`
DeleteTopic bool `json:"deleteTopic"`
EditEnabled bool `json:"editEnabled"`
GeneralChannelPosting int `json:"generalChannelPosting"`
GiphyEnabled bool `json:"giphyEnabled"`
GiphyRating int `json:"giphyRating"`
InstallApp bool `json:"installApp"`
IsPrivateChannelCreationEnabled bool `json:"isPrivateChannelCreationEnabled"`
MessageThreadingEnabled bool `json:"messageThreadingEnabled"`
RemoveDisplayContent bool `json:"removeDisplayContent"`
StickersEnabled bool `json:"stickersEnabled"`
TeamMemesEnabled bool `json:"teamMemesEnabled"`
TeamMention bool `json:"teamMention"`
UninstallApp bool `json:"uninstallApp"`
UpdateIntegration bool `json:"updateIntegration"`
UpdateTopic bool `json:"updateTopic"`
UploadCustomApp bool `json:"uploadCustomApp"`
}
type TeamSiteInformation ¶
type TeamStatus ¶
type Tenant ¶
type Tenant struct {
TenantID string `json:"tenantId"`
TenantName string `json:"tenantName"`
UserId string `json:"userId"`
IsInvitationRedeemed bool `json:"isInvitationRedeemed"`
CountryLetterCode string `json:"countryLetterCode"`
UserType UserType `json:"userType"`
TenantType TenantType `json:"tenantType"`
}
type User ¶
type User struct {
Alias string `json:"alias"`
AccountEnabled bool `json:"accountEnabled,omitempty"`
Department string `json:"department,omitempty"`
DisplayName string `json:"displayName"`
Email string `json:"email"`
FeatureSettings FeatureSettings `json:"featureSettings,omitempty"`
GivenName string `json:"givenName"`
IsShortProfile bool `json:"isShortProfile"`
IsSipDisabled bool `json:"isSipDisabled,omitempty"`
JobTitle string `json:"jobTitle"`
Mail string `json:"mail,omitempty"`
Mobile string `json:"mobile,omitempty"`
Mri string `json:"mri,omitempty"`
ObjectId string `json:"objectId"`
ObjectType string `json:"objectType,omitempty"`
Phones []Phone `json:"phones,omitempty"`
PhysicalDeliveryOfficeName string `json:"physicalDeliveryOfficeName,omitempty"`
PreferredLanguage string `json:"preferredLanguage,omitempty"`
ResponseSourceInformation string `json:"responseSourceInformation,omitempty"`
ShowInAddressList bool `json:"showInAddressList,omitempty"`
SipProxyAddress string `json:"sipProxyAddress,omitempty"`
SkypeTeamsInfo SkypeTeamsInfo `json:"skypeTeamsInfo,omitempty"`
SmtpAddresses []string `json:"smtpAddresses,omitempty"`
Surname string `json:"surname"`
TenantName string `json:"tenantName"`
TelephoneNumber string `json:"telephoneNumber,omitempty"`
Type string `json:"type"`
UserLocation string `json:"userLocation"`
UserPrincipalName string `json:"userPrincipalName"`
UserType string `json:"userType,omitempty"`
}
type UserEmotion ¶
type UserResponse ¶
type UsersResponse ¶
type WeeklyRecurrence ¶
Click to show internal directories.
Click to hide internal directories.