-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
113 additions
and
72 deletions.
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
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
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,28 @@ | ||
package gcloudcx | ||
|
||
import "time" | ||
|
||
// MessageDetails describes details of a Message in a Message Conversation | ||
type MessageDetails struct { | ||
ID string `json:"messageId"` | ||
Status string `json:"messageStatus"` | ||
SegmentCount int `json:"messageSegmentCount"` | ||
Time time.Time `json:"messageTime"` | ||
Media []MessageMedia `json:"media"` | ||
Stickers []MessageSticker `json:"stickers"` | ||
} | ||
|
||
// MessageMedia describes the Media of a Message | ||
type MessageMedia struct { | ||
ID string `json:"id"` | ||
Name string `json:"name"` | ||
URL string `json:"url"` | ||
MediaType string `json:"mediaType"` | ||
ContentLength int64 `json:"contentLengthBytes"` | ||
} | ||
|
||
// MessageSticker describes a Message Sticker | ||
type MessageSticker struct { | ||
ID string `json:"id"` | ||
URL string `json:"url"` | ||
} |
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
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
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
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