/
conversationbasic.go
42 lines (27 loc) · 1.27 KB
/
conversationbasic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package platformclientv2
import (
"time"
"encoding/json"
)
// Conversationbasic
type Conversationbasic struct {
// Id - The globally unique identifier for the object.
Id *string `json:"id,omitempty"`
// Name
Name *string `json:"name,omitempty"`
// StartTime - The time when the conversation started. This will be the time when the first participant joined the conversation. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
StartTime *time.Time `json:"startTime,omitempty"`
// EndTime - The time when the conversation ended. This will be the time when the last participant left the conversation, or null when the conversation is still active. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z
EndTime *time.Time `json:"endTime,omitempty"`
// Divisions - Identifiers of divisions associated with this conversation
Divisions *[]Conversationdivisionmembership `json:"divisions,omitempty"`
// SelfUri - The URI for this object
SelfUri *string `json:"selfUri,omitempty"`
// Participants
Participants *[]Participantbasic `json:"participants,omitempty"`
}
// String returns a JSON representation of the model
func (o *Conversationbasic) String() string {
j, _ := json.Marshal(o)
return string(j)
}