2021-06-24 22:30:46 +00:00
|
|
|
package utils
|
|
|
|
|
2022-04-06 23:07:59 +00:00
|
|
|
import "cwtch.im/cwtch/model"
|
|
|
|
|
2021-06-24 22:30:46 +00:00
|
|
|
type Contact struct {
|
2022-04-06 23:07:59 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Onion string `json:"onion"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Picture string `json:"picture"`
|
|
|
|
DefaultPicture string `json:"defaultPicture"`
|
|
|
|
Accepted bool `json:"accepted"`
|
|
|
|
AccessControlList model.AccessControlList `json:"accessControlList"`
|
|
|
|
Blocked bool `json:"blocked"`
|
|
|
|
SaveHistory string `json:"saveConversationHistory"`
|
|
|
|
Messages int `json:"numMessages"`
|
|
|
|
Unread int `json:"numUnread"`
|
2022-04-19 23:51:31 +00:00
|
|
|
LastSeenMessageId int `json:"lastSeenMessageId"`
|
2022-04-06 23:07:59 +00:00
|
|
|
LastMessage string `json:"lastMsgTime"`
|
|
|
|
IsGroup bool `json:"isGroup"`
|
|
|
|
GroupServer string `json:"groupServer"`
|
|
|
|
IsArchived bool `json:"isArchived"`
|
|
|
|
Identifier int `json:"identifier"`
|
|
|
|
NotificationPolicy string `json:"notificationPolicy"`
|
2021-06-24 22:30:46 +00:00
|
|
|
}
|