1
0
mirror of synced 2024-11-22 04:46:05 +03:00
messenger/pass_thread_control.go
2019-03-25 11:42:34 -07:00

20 lines
439 B
Go

package messenger
import "encoding/json"
func unmarshalPassThreadControl(data []byte) (passThreadControl, error) {
var r passThreadControl
err := json.Unmarshal(data, &r)
return r, err
}
func (r *passThreadControl) marshal() ([]byte, error) {
return json.Marshal(r)
}
type passThreadControl struct {
Recipient Recipient `json:"recipient"`
TargetAppID int64 `json:"target_app_id"`
Metadata string `json:"metadata"`
}