mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
6262 lines
148 KiB
Go
6262 lines
148 KiB
Go
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
json "encoding/json"
|
|
_v5 "github.com/golang-jwt/jwt/v5"
|
|
easyjson "github.com/mailru/easyjson"
|
|
jlexer "github.com/mailru/easyjson/jlexer"
|
|
jwriter "github.com/mailru/easyjson/jwriter"
|
|
geoip "github.com/strukturag/nextcloud-spreed-signaling/geoip"
|
|
time "time"
|
|
)
|
|
|
|
// suppress unused package warning
|
|
var (
|
|
_ *json.RawMessage
|
|
_ *jlexer.Lexer
|
|
_ *jwriter.Writer
|
|
_ easyjson.Marshaler
|
|
)
|
|
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi(in *jlexer.Lexer, out *WelcomeServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "version":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Version = string(in.String())
|
|
}
|
|
case "features":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Features = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Features == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Features = make([]string, 0, 4)
|
|
} else {
|
|
out.Features = []string{}
|
|
}
|
|
} else {
|
|
out.Features = (out.Features)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v1 string
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
v1 = string(in.String())
|
|
}
|
|
out.Features = append(out.Features, v1)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "country":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Country = geoip.Country(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi(out *jwriter.Writer, in WelcomeServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"version\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Version))
|
|
}
|
|
if len(in.Features) != 0 {
|
|
const prefix string = ",\"features\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v2, v3 := range in.Features {
|
|
if v2 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v3))
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if in.Country != "" {
|
|
const prefix string = ",\"country\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Country))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v WelcomeServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v WelcomeServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *WelcomeServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *WelcomeServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi1(in *jlexer.Lexer, out *UpdateSessionInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "flags":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Flags = nil
|
|
} else {
|
|
if out.Flags == nil {
|
|
out.Flags = new(uint32)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
*out.Flags = uint32(in.Uint32())
|
|
}
|
|
}
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.InCall = nil
|
|
} else {
|
|
if out.InCall == nil {
|
|
out.InCall = new(int)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
*out.InCall = int(in.Int())
|
|
}
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi1(out *jwriter.Writer, in UpdateSessionInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.Flags != nil {
|
|
const prefix string = ",\"flags\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.Uint32(uint32(*in.Flags))
|
|
}
|
|
if in.InCall != nil {
|
|
const prefix string = ",\"incall\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Int(int(*in.InCall))
|
|
}
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v UpdateSessionInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi1(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v UpdateSessionInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi1(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *UpdateSessionInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi1(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *UpdateSessionInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi1(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi2(in *jlexer.Lexer, out *TransientDataServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "key":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Key = string(in.String())
|
|
}
|
|
case "oldvalue":
|
|
if m, ok := out.OldValue.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := out.OldValue.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
out.OldValue = in.Interface()
|
|
}
|
|
case "value":
|
|
if m, ok := out.Value.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := out.Value.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
out.Value = in.Interface()
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
if !in.IsDelim('}') {
|
|
out.Data = make(StringMap)
|
|
} else {
|
|
out.Data = nil
|
|
}
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v4 interface{}
|
|
if m, ok := v4.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v4.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v4 = in.Interface()
|
|
}
|
|
(out.Data)[key] = v4
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi2(out *jwriter.Writer, in TransientDataServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Key != "" {
|
|
const prefix string = ",\"key\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Key))
|
|
}
|
|
if in.OldValue != nil {
|
|
const prefix string = ",\"oldvalue\":"
|
|
out.RawString(prefix)
|
|
if m, ok := in.OldValue.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := in.OldValue.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(in.OldValue))
|
|
}
|
|
}
|
|
if in.Value != nil {
|
|
const prefix string = ",\"value\":"
|
|
out.RawString(prefix)
|
|
if m, ok := in.Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := in.Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(in.Value))
|
|
}
|
|
}
|
|
if len(in.Data) != 0 {
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('{')
|
|
v5First := true
|
|
for v5Name, v5Value := range in.Data {
|
|
if v5First {
|
|
v5First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v5Name))
|
|
out.RawByte(':')
|
|
if m, ok := v5Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v5Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v5Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v TransientDataServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi2(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v TransientDataServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi2(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *TransientDataServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi2(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *TransientDataServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi2(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi3(in *jlexer.Lexer, out *TransientDataClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "key":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Key = string(in.String())
|
|
}
|
|
case "value":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Value).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "ttl":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.TTL = time.Duration(in.Int64())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi3(out *jwriter.Writer, in TransientDataClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Key != "" {
|
|
const prefix string = ",\"key\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Key))
|
|
}
|
|
if len(in.Value) != 0 {
|
|
const prefix string = ",\"value\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Value).MarshalJSON())
|
|
}
|
|
if in.TTL != 0 {
|
|
const prefix string = ",\"ttl\":"
|
|
out.RawString(prefix)
|
|
out.Int64(int64(in.TTL))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v TransientDataClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi3(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v TransientDataClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi3(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *TransientDataClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi3(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *TransientDataClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi3(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi4(in *jlexer.Lexer, out *ServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "id":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Id = string(in.String())
|
|
}
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "error":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Error = nil
|
|
} else {
|
|
if out.Error == nil {
|
|
out.Error = new(Error)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Error).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "welcome":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Welcome = nil
|
|
} else {
|
|
if out.Welcome == nil {
|
|
out.Welcome = new(WelcomeServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Welcome).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "hello":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Hello = nil
|
|
} else {
|
|
if out.Hello == nil {
|
|
out.Hello = new(HelloServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Hello).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "bye":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Bye = nil
|
|
} else {
|
|
if out.Bye == nil {
|
|
out.Bye = new(ByeServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Bye).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "room":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Room = nil
|
|
} else {
|
|
if out.Room == nil {
|
|
out.Room = new(RoomServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Room).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "message":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Message = nil
|
|
} else {
|
|
if out.Message == nil {
|
|
out.Message = new(MessageServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Message).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "control":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Control = nil
|
|
} else {
|
|
if out.Control == nil {
|
|
out.Control = new(ControlServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Control).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "event":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Event = nil
|
|
} else {
|
|
if out.Event == nil {
|
|
out.Event = new(EventServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Event).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "transient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.TransientData = nil
|
|
} else {
|
|
if out.TransientData == nil {
|
|
out.TransientData = new(TransientDataServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.TransientData).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "internal":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Internal = nil
|
|
} else {
|
|
if out.Internal == nil {
|
|
out.Internal = new(InternalServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Internal).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "dialout":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Dialout = nil
|
|
} else {
|
|
if out.Dialout == nil {
|
|
out.Dialout = new(DialoutInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Dialout).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi4(out *jwriter.Writer, in ServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.Id != "" {
|
|
const prefix string = ",\"id\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Id))
|
|
}
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Error != nil {
|
|
const prefix string = ",\"error\":"
|
|
out.RawString(prefix)
|
|
(*in.Error).MarshalEasyJSON(out)
|
|
}
|
|
if in.Welcome != nil {
|
|
const prefix string = ",\"welcome\":"
|
|
out.RawString(prefix)
|
|
(*in.Welcome).MarshalEasyJSON(out)
|
|
}
|
|
if in.Hello != nil {
|
|
const prefix string = ",\"hello\":"
|
|
out.RawString(prefix)
|
|
(*in.Hello).MarshalEasyJSON(out)
|
|
}
|
|
if in.Bye != nil {
|
|
const prefix string = ",\"bye\":"
|
|
out.RawString(prefix)
|
|
(*in.Bye).MarshalEasyJSON(out)
|
|
}
|
|
if in.Room != nil {
|
|
const prefix string = ",\"room\":"
|
|
out.RawString(prefix)
|
|
(*in.Room).MarshalEasyJSON(out)
|
|
}
|
|
if in.Message != nil {
|
|
const prefix string = ",\"message\":"
|
|
out.RawString(prefix)
|
|
(*in.Message).MarshalEasyJSON(out)
|
|
}
|
|
if in.Control != nil {
|
|
const prefix string = ",\"control\":"
|
|
out.RawString(prefix)
|
|
(*in.Control).MarshalEasyJSON(out)
|
|
}
|
|
if in.Event != nil {
|
|
const prefix string = ",\"event\":"
|
|
out.RawString(prefix)
|
|
(*in.Event).MarshalEasyJSON(out)
|
|
}
|
|
if in.TransientData != nil {
|
|
const prefix string = ",\"transient\":"
|
|
out.RawString(prefix)
|
|
(*in.TransientData).MarshalEasyJSON(out)
|
|
}
|
|
if in.Internal != nil {
|
|
const prefix string = ",\"internal\":"
|
|
out.RawString(prefix)
|
|
(*in.Internal).MarshalEasyJSON(out)
|
|
}
|
|
if in.Dialout != nil {
|
|
const prefix string = ",\"dialout\":"
|
|
out.RawString(prefix)
|
|
(*in.Dialout).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi4(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi4(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi4(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi4(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi5(in *jlexer.Lexer, out *RoomServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "properties":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Properties).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "bandwidth":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Bandwidth = nil
|
|
} else {
|
|
if out.Bandwidth == nil {
|
|
out.Bandwidth = new(RoomBandwidth)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Bandwidth).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi5(out *jwriter.Writer, in RoomServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if len(in.Properties) != 0 {
|
|
const prefix string = ",\"properties\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Properties).MarshalJSON())
|
|
}
|
|
if in.Bandwidth != nil {
|
|
const prefix string = ",\"bandwidth\":"
|
|
out.RawString(prefix)
|
|
(*in.Bandwidth).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi5(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi5(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi5(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi5(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi6(in *jlexer.Lexer, out *RoomFlagsServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "flags":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Flags = uint32(in.Uint32())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi6(out *jwriter.Writer, in RoomFlagsServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"flags\":"
|
|
out.RawString(prefix)
|
|
out.Uint32(uint32(in.Flags))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomFlagsServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi6(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomFlagsServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi6(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomFlagsServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi6(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomFlagsServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi6(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi7(in *jlexer.Lexer, out *RoomFederationMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "signaling":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SignalingUrl = string(in.String())
|
|
}
|
|
case "url":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.NextcloudUrl = string(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "token":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Token = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi7(out *jwriter.Writer, in RoomFederationMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"signaling\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.SignalingUrl))
|
|
}
|
|
{
|
|
const prefix string = ",\"url\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.NextcloudUrl))
|
|
}
|
|
if in.RoomId != "" {
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
{
|
|
const prefix string = ",\"token\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Token))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomFederationMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi7(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomFederationMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi7(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomFederationMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi7(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomFederationMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi7(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi8(in *jlexer.Lexer, out *RoomEventServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "properties":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Properties).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.InCall).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "changed":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Changed = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Changed == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Changed = make([]StringMap, 0, 8)
|
|
} else {
|
|
out.Changed = []StringMap{}
|
|
}
|
|
} else {
|
|
out.Changed = (out.Changed)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v6 StringMap
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
if !in.IsDelim('}') {
|
|
v6 = make(StringMap)
|
|
} else {
|
|
v6 = nil
|
|
}
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v7 interface{}
|
|
if m, ok := v7.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v7.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v7 = in.Interface()
|
|
}
|
|
(v6)[key] = v7
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
out.Changed = append(out.Changed, v6)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "users":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Users = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Users == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Users = make([]StringMap, 0, 8)
|
|
} else {
|
|
out.Users = []StringMap{}
|
|
}
|
|
} else {
|
|
out.Users = (out.Users)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v8 StringMap
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
if !in.IsDelim('}') {
|
|
v8 = make(StringMap)
|
|
} else {
|
|
v8 = nil
|
|
}
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v9 interface{}
|
|
if m, ok := v9.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v9.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v9 = in.Interface()
|
|
}
|
|
(v8)[key] = v9
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
out.Users = append(out.Users, v8)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "all":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.All = bool(in.Bool())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi8(out *jwriter.Writer, in RoomEventServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if len(in.Properties) != 0 {
|
|
const prefix string = ",\"properties\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Properties).MarshalJSON())
|
|
}
|
|
if len(in.InCall) != 0 {
|
|
const prefix string = ",\"incall\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.InCall).MarshalJSON())
|
|
}
|
|
if len(in.Changed) != 0 {
|
|
const prefix string = ",\"changed\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v10, v11 := range in.Changed {
|
|
if v10 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v11 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v12First := true
|
|
for v12Name, v12Value := range v11 {
|
|
if v12First {
|
|
v12First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v12Name))
|
|
out.RawByte(':')
|
|
if m, ok := v12Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v12Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v12Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if len(in.Users) != 0 {
|
|
const prefix string = ",\"users\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v13, v14 := range in.Users {
|
|
if v13 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v14 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v15First := true
|
|
for v15Name, v15Value := range v14 {
|
|
if v15First {
|
|
v15First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v15Name))
|
|
out.RawByte(':')
|
|
if m, ok := v15Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v15Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v15Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if in.All {
|
|
const prefix string = ",\"all\":"
|
|
out.RawString(prefix)
|
|
out.Bool(bool(in.All))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomEventServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi8(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomEventServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi8(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomEventServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi8(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomEventServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi8(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi9(in *jlexer.Lexer, out *RoomEventMessageDataChat) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "refresh":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Refresh = bool(in.Bool())
|
|
}
|
|
case "comment":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Comment).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "comments":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Comments = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Comments == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Comments = make([]json.RawMessage, 0, 2)
|
|
} else {
|
|
out.Comments = []json.RawMessage{}
|
|
}
|
|
} else {
|
|
out.Comments = (out.Comments)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v16 json.RawMessage
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((v16).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
out.Comments = append(out.Comments, v16)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi9(out *jwriter.Writer, in RoomEventMessageDataChat) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.Refresh {
|
|
const prefix string = ",\"refresh\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.Bool(bool(in.Refresh))
|
|
}
|
|
if len(in.Comment) != 0 {
|
|
const prefix string = ",\"comment\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((in.Comment).MarshalJSON())
|
|
}
|
|
if len(in.Comments) != 0 {
|
|
const prefix string = ",\"comments\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
{
|
|
out.RawByte('[')
|
|
for v17, v18 := range in.Comments {
|
|
if v17 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
out.Raw((v18).MarshalJSON())
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomEventMessageDataChat) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi9(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomEventMessageDataChat) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi9(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomEventMessageDataChat) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi9(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomEventMessageDataChat) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi9(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi10(in *jlexer.Lexer, out *RoomEventMessageData) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "chat":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Chat = nil
|
|
} else {
|
|
if out.Chat == nil {
|
|
out.Chat = new(RoomEventMessageDataChat)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Chat).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi10(out *jwriter.Writer, in RoomEventMessageData) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Chat != nil {
|
|
const prefix string = ",\"chat\":"
|
|
out.RawString(prefix)
|
|
(*in.Chat).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomEventMessageData) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi10(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomEventMessageData) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi10(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomEventMessageData) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi10(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomEventMessageData) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi10(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi11(in *jlexer.Lexer, out *RoomEventMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Data).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi11(out *jwriter.Writer, in RoomEventMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if len(in.Data) != 0 {
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Data).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomEventMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi11(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomEventMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi11(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomEventMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi11(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomEventMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi11(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi12(in *jlexer.Lexer, out *RoomErrorDetails) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "room":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Room = nil
|
|
} else {
|
|
if out.Room == nil {
|
|
out.Room = new(RoomServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Room).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi12(out *jwriter.Writer, in RoomErrorDetails) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"room\":"
|
|
out.RawString(prefix[1:])
|
|
if in.Room == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*in.Room).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomErrorDetails) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi12(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomErrorDetails) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi12(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomErrorDetails) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi12(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomErrorDetails) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi12(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi13(in *jlexer.Lexer, out *RoomDisinviteEventServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "reason":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Reason = string(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "properties":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Properties).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.InCall).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "changed":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Changed = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Changed == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Changed = make([]StringMap, 0, 8)
|
|
} else {
|
|
out.Changed = []StringMap{}
|
|
}
|
|
} else {
|
|
out.Changed = (out.Changed)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v19 StringMap
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
if !in.IsDelim('}') {
|
|
v19 = make(StringMap)
|
|
} else {
|
|
v19 = nil
|
|
}
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v20 interface{}
|
|
if m, ok := v20.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v20.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v20 = in.Interface()
|
|
}
|
|
(v19)[key] = v20
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
out.Changed = append(out.Changed, v19)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "users":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Users = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Users == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Users = make([]StringMap, 0, 8)
|
|
} else {
|
|
out.Users = []StringMap{}
|
|
}
|
|
} else {
|
|
out.Users = (out.Users)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v21 StringMap
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
if !in.IsDelim('}') {
|
|
v21 = make(StringMap)
|
|
} else {
|
|
v21 = nil
|
|
}
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v22 interface{}
|
|
if m, ok := v22.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v22.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v22 = in.Interface()
|
|
}
|
|
(v21)[key] = v22
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
out.Users = append(out.Users, v21)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "all":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.All = bool(in.Bool())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi13(out *jwriter.Writer, in RoomDisinviteEventServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"reason\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Reason))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if len(in.Properties) != 0 {
|
|
const prefix string = ",\"properties\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Properties).MarshalJSON())
|
|
}
|
|
if len(in.InCall) != 0 {
|
|
const prefix string = ",\"incall\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.InCall).MarshalJSON())
|
|
}
|
|
if len(in.Changed) != 0 {
|
|
const prefix string = ",\"changed\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v23, v24 := range in.Changed {
|
|
if v23 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v24 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v25First := true
|
|
for v25Name, v25Value := range v24 {
|
|
if v25First {
|
|
v25First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v25Name))
|
|
out.RawByte(':')
|
|
if m, ok := v25Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v25Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v25Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if len(in.Users) != 0 {
|
|
const prefix string = ",\"users\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v26, v27 := range in.Users {
|
|
if v26 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
if v27 == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v28First := true
|
|
for v28Name, v28Value := range v27 {
|
|
if v28First {
|
|
v28First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v28Name))
|
|
out.RawByte(':')
|
|
if m, ok := v28Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v28Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v28Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if in.All {
|
|
const prefix string = ",\"all\":"
|
|
out.RawString(prefix)
|
|
out.Bool(bool(in.All))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomDisinviteEventServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi13(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomDisinviteEventServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi13(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomDisinviteEventServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi13(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomDisinviteEventServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi13(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi14(in *jlexer.Lexer, out *RoomClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = RoomSessionId(in.String())
|
|
}
|
|
case "federation":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Federation = nil
|
|
} else {
|
|
if out.Federation == nil {
|
|
out.Federation = new(RoomFederationMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Federation).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi14(out *jwriter.Writer, in RoomClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if in.SessionId != "" {
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.SessionId))
|
|
}
|
|
if in.Federation != nil {
|
|
const prefix string = ",\"federation\":"
|
|
out.RawString(prefix)
|
|
(*in.Federation).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi14(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi14(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi14(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi14(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi15(in *jlexer.Lexer, out *RoomBandwidth) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "maxstreambitrate":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.MaxStreamBitrate = Bandwidth(in.Uint64())
|
|
}
|
|
case "maxscreenbitrate":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.MaxScreenBitrate = Bandwidth(in.Uint64())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi15(out *jwriter.Writer, in RoomBandwidth) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"maxstreambitrate\":"
|
|
out.RawString(prefix[1:])
|
|
out.Uint64(uint64(in.MaxStreamBitrate))
|
|
}
|
|
{
|
|
const prefix string = ",\"maxscreenbitrate\":"
|
|
out.RawString(prefix)
|
|
out.Uint64(uint64(in.MaxScreenBitrate))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RoomBandwidth) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi15(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RoomBandwidth) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi15(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RoomBandwidth) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi15(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RoomBandwidth) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi15(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi16(in *jlexer.Lexer, out *RemoveSessionInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi16(out *jwriter.Writer, in RemoveSessionInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.UserId != "" {
|
|
const prefix string = ",\"userid\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.UserId))
|
|
}
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v RemoveSessionInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi16(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v RemoveSessionInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi16(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *RemoveSessionInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi16(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *RemoveSessionInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi16(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi17(in *jlexer.Lexer, out *MessageServerMessageSender) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi17(out *jwriter.Writer, in MessageServerMessageSender) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.SessionId != "" {
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.SessionId))
|
|
}
|
|
if in.UserId != "" {
|
|
const prefix string = ",\"userid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.UserId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageServerMessageSender) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi17(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageServerMessageSender) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi17(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageServerMessageSender) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi17(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageServerMessageSender) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi17(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi18(in *jlexer.Lexer, out *MessageServerMessageData) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi18(out *jwriter.Writer, in MessageServerMessageData) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageServerMessageData) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi18(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageServerMessageData) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi18(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageServerMessageData) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi18(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageServerMessageData) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi18(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi19(in *jlexer.Lexer, out *MessageServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "sender":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Sender = nil
|
|
} else {
|
|
if out.Sender == nil {
|
|
out.Sender = new(MessageServerMessageSender)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Sender).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "recipient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Recipient = nil
|
|
} else {
|
|
if out.Recipient == nil {
|
|
out.Recipient = new(MessageClientMessageRecipient)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Recipient).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Data).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi19(out *jwriter.Writer, in MessageServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"sender\":"
|
|
out.RawString(prefix[1:])
|
|
if in.Sender == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*in.Sender).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
if in.Recipient != nil {
|
|
const prefix string = ",\"recipient\":"
|
|
out.RawString(prefix)
|
|
(*in.Recipient).MarshalEasyJSON(out)
|
|
}
|
|
{
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Data).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi19(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi19(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi19(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi19(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi20(in *jlexer.Lexer, out *MessageClientMessageRecipient) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi20(out *jwriter.Writer, in MessageClientMessageRecipient) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.SessionId != "" {
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.SessionId))
|
|
}
|
|
if in.UserId != "" {
|
|
const prefix string = ",\"userid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.UserId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageClientMessageRecipient) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi20(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageClientMessageRecipient) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi20(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageClientMessageRecipient) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi20(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageClientMessageRecipient) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi20(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi21(in *jlexer.Lexer, out *MessageClientMessageData) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "sid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Sid = string(in.String())
|
|
}
|
|
case "roomType":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomType = string(in.String())
|
|
}
|
|
case "payload":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
out.Payload = make(StringMap)
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v29 interface{}
|
|
if m, ok := v29.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v29.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v29 = in.Interface()
|
|
}
|
|
(out.Payload)[key] = v29
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
case "bitrate":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Bitrate = Bandwidth(in.Uint64())
|
|
}
|
|
case "audiocodec":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.AudioCodec = string(in.String())
|
|
}
|
|
case "videocodec":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.VideoCodec = string(in.String())
|
|
}
|
|
case "vp9profile":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.VP9Profile = string(in.String())
|
|
}
|
|
case "h264profile":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.H264Profile = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi21(out *jwriter.Writer, in MessageClientMessageData) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
{
|
|
const prefix string = ",\"sid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Sid))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomType\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomType))
|
|
}
|
|
{
|
|
const prefix string = ",\"payload\":"
|
|
out.RawString(prefix)
|
|
if in.Payload == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v30First := true
|
|
for v30Name, v30Value := range in.Payload {
|
|
if v30First {
|
|
v30First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v30Name))
|
|
out.RawByte(':')
|
|
if m, ok := v30Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v30Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v30Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
if in.Bitrate != 0 {
|
|
const prefix string = ",\"bitrate\":"
|
|
out.RawString(prefix)
|
|
out.Uint64(uint64(in.Bitrate))
|
|
}
|
|
if in.AudioCodec != "" {
|
|
const prefix string = ",\"audiocodec\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.AudioCodec))
|
|
}
|
|
if in.VideoCodec != "" {
|
|
const prefix string = ",\"videocodec\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.VideoCodec))
|
|
}
|
|
if in.VP9Profile != "" {
|
|
const prefix string = ",\"vp9profile\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.VP9Profile))
|
|
}
|
|
if in.H264Profile != "" {
|
|
const prefix string = ",\"h264profile\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.H264Profile))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageClientMessageData) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi21(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageClientMessageData) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi21(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageClientMessageData) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi21(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageClientMessageData) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi21(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi22(in *jlexer.Lexer, out *MessageClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "recipient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(out.Recipient).UnmarshalEasyJSON(in)
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Data).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi22(out *jwriter.Writer, in MessageClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"recipient\":"
|
|
out.RawString(prefix[1:])
|
|
(in.Recipient).MarshalEasyJSON(out)
|
|
}
|
|
{
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Data).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v MessageClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi22(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v MessageClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi22(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *MessageClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi22(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *MessageClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi22(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi23(in *jlexer.Lexer, out *InternalServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "dialout":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Dialout = nil
|
|
} else {
|
|
if out.Dialout == nil {
|
|
out.Dialout = new(InternalServerDialoutRequest)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Dialout).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi23(out *jwriter.Writer, in InternalServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Dialout != nil {
|
|
const prefix string = ",\"dialout\":"
|
|
out.RawString(prefix)
|
|
(*in.Dialout).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v InternalServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi23(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v InternalServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi23(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *InternalServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi23(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *InternalServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi23(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi24(in *jlexer.Lexer, out *InternalServerDialoutRequestContents) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "number":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Number = string(in.String())
|
|
}
|
|
case "options":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Options).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi24(out *jwriter.Writer, in InternalServerDialoutRequestContents) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"number\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Number))
|
|
}
|
|
if len(in.Options) != 0 {
|
|
const prefix string = ",\"options\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Options).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v InternalServerDialoutRequestContents) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi24(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v InternalServerDialoutRequestContents) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi24(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *InternalServerDialoutRequestContents) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi24(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *InternalServerDialoutRequestContents) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi24(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi25(in *jlexer.Lexer, out *InternalServerDialoutRequest) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "backend":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Backend = string(in.String())
|
|
}
|
|
case "request":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Request = nil
|
|
} else {
|
|
if out.Request == nil {
|
|
out.Request = new(InternalServerDialoutRequestContents)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Request).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi25(out *jwriter.Writer, in InternalServerDialoutRequest) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
{
|
|
const prefix string = ",\"backend\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Backend))
|
|
}
|
|
{
|
|
const prefix string = ",\"request\":"
|
|
out.RawString(prefix)
|
|
if in.Request == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*in.Request).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v InternalServerDialoutRequest) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi25(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v InternalServerDialoutRequest) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi25(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *InternalServerDialoutRequest) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi25(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *InternalServerDialoutRequest) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi25(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi26(in *jlexer.Lexer, out *InternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "addsession":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.AddSession = nil
|
|
} else {
|
|
if out.AddSession == nil {
|
|
out.AddSession = new(AddSessionInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.AddSession).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "updatesession":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.UpdateSession = nil
|
|
} else {
|
|
if out.UpdateSession == nil {
|
|
out.UpdateSession = new(UpdateSessionInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.UpdateSession).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "removesession":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.RemoveSession = nil
|
|
} else {
|
|
if out.RemoveSession == nil {
|
|
out.RemoveSession = new(RemoveSessionInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.RemoveSession).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.InCall = nil
|
|
} else {
|
|
if out.InCall == nil {
|
|
out.InCall = new(InCallInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.InCall).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "dialout":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Dialout = nil
|
|
} else {
|
|
if out.Dialout == nil {
|
|
out.Dialout = new(DialoutInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Dialout).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi26(out *jwriter.Writer, in InternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.AddSession != nil {
|
|
const prefix string = ",\"addsession\":"
|
|
out.RawString(prefix)
|
|
(*in.AddSession).MarshalEasyJSON(out)
|
|
}
|
|
if in.UpdateSession != nil {
|
|
const prefix string = ",\"updatesession\":"
|
|
out.RawString(prefix)
|
|
(*in.UpdateSession).MarshalEasyJSON(out)
|
|
}
|
|
if in.RemoveSession != nil {
|
|
const prefix string = ",\"removesession\":"
|
|
out.RawString(prefix)
|
|
(*in.RemoveSession).MarshalEasyJSON(out)
|
|
}
|
|
if in.InCall != nil {
|
|
const prefix string = ",\"incall\":"
|
|
out.RawString(prefix)
|
|
(*in.InCall).MarshalEasyJSON(out)
|
|
}
|
|
if in.Dialout != nil {
|
|
const prefix string = ",\"dialout\":"
|
|
out.RawString(prefix)
|
|
(*in.Dialout).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v InternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi26(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v InternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi26(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *InternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi26(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *InternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi26(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi27(in *jlexer.Lexer, out *InCallInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.InCall = int(in.Int())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi27(out *jwriter.Writer, in InCallInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"incall\":"
|
|
out.RawString(prefix[1:])
|
|
out.Int(int(in.InCall))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v InCallInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi27(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v InCallInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi27(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *InCallInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi27(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *InCallInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi27(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi28(in *jlexer.Lexer, out *HelloV2TokenClaims) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "userdata":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.UserData).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "iss":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Issuer = string(in.String())
|
|
}
|
|
case "sub":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Subject = string(in.String())
|
|
}
|
|
case "aud":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Audience).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "exp":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.ExpiresAt = nil
|
|
} else {
|
|
if out.ExpiresAt == nil {
|
|
out.ExpiresAt = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.ExpiresAt).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "nbf":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.NotBefore = nil
|
|
} else {
|
|
if out.NotBefore == nil {
|
|
out.NotBefore = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.NotBefore).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "iat":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.IssuedAt = nil
|
|
} else {
|
|
if out.IssuedAt == nil {
|
|
out.IssuedAt = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.IssuedAt).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "jti":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ID = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi28(out *jwriter.Writer, in HelloV2TokenClaims) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if len(in.UserData) != 0 {
|
|
const prefix string = ",\"userdata\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.Raw((in.UserData).MarshalJSON())
|
|
}
|
|
if in.Issuer != "" {
|
|
const prefix string = ",\"iss\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Issuer))
|
|
}
|
|
if in.Subject != "" {
|
|
const prefix string = ",\"sub\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Subject))
|
|
}
|
|
if len(in.Audience) != 0 {
|
|
const prefix string = ",\"aud\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((in.Audience).MarshalJSON())
|
|
}
|
|
if in.ExpiresAt != nil {
|
|
const prefix string = ",\"exp\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.ExpiresAt).MarshalJSON())
|
|
}
|
|
if in.NotBefore != nil {
|
|
const prefix string = ",\"nbf\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.NotBefore).MarshalJSON())
|
|
}
|
|
if in.IssuedAt != nil {
|
|
const prefix string = ",\"iat\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.IssuedAt).MarshalJSON())
|
|
}
|
|
if in.ID != "" {
|
|
const prefix string = ",\"jti\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.ID))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v HelloV2TokenClaims) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi28(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v HelloV2TokenClaims) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi28(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *HelloV2TokenClaims) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi28(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *HelloV2TokenClaims) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi28(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi29(in *jlexer.Lexer, out *HelloV2AuthParams) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "token":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Token = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi29(out *jwriter.Writer, in HelloV2AuthParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"token\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Token))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v HelloV2AuthParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi29(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v HelloV2AuthParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi29(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *HelloV2AuthParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi29(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *HelloV2AuthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi29(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi30(in *jlexer.Lexer, out *HelloServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "version":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Version = string(in.String())
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "resumeid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ResumeId = PrivateSessionId(in.String())
|
|
}
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
case "server":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Server = nil
|
|
} else {
|
|
if out.Server == nil {
|
|
out.Server = new(WelcomeServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Server).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi30(out *jwriter.Writer, in HelloServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"version\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Version))
|
|
}
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"resumeid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.ResumeId))
|
|
}
|
|
{
|
|
const prefix string = ",\"userid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.UserId))
|
|
}
|
|
if in.Server != nil {
|
|
const prefix string = ",\"server\":"
|
|
out.RawString(prefix)
|
|
(*in.Server).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v HelloServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi30(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v HelloServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi30(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *HelloServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi30(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *HelloServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi30(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi31(in *jlexer.Lexer, out *HelloClientMessageAuth) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = ClientType(in.String())
|
|
}
|
|
case "params":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Params).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "url":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Url = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi31(out *jwriter.Writer, in HelloClientMessageAuth) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.Type != "" {
|
|
const prefix string = ",\"type\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
{
|
|
const prefix string = ",\"params\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((in.Params).MarshalJSON())
|
|
}
|
|
{
|
|
const prefix string = ",\"url\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Url))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v HelloClientMessageAuth) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi31(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v HelloClientMessageAuth) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi31(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *HelloClientMessageAuth) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi31(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *HelloClientMessageAuth) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi31(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi32(in *jlexer.Lexer, out *HelloClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "version":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Version = string(in.String())
|
|
}
|
|
case "resumeid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ResumeId = PrivateSessionId(in.String())
|
|
}
|
|
case "features":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Features = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Features == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Features = make([]string, 0, 4)
|
|
} else {
|
|
out.Features = []string{}
|
|
}
|
|
} else {
|
|
out.Features = (out.Features)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v31 string
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
v31 = string(in.String())
|
|
}
|
|
out.Features = append(out.Features, v31)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "auth":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Auth = nil
|
|
} else {
|
|
if out.Auth == nil {
|
|
out.Auth = new(HelloClientMessageAuth)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Auth).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi32(out *jwriter.Writer, in HelloClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"version\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Version))
|
|
}
|
|
{
|
|
const prefix string = ",\"resumeid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.ResumeId))
|
|
}
|
|
if len(in.Features) != 0 {
|
|
const prefix string = ",\"features\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v32, v33 := range in.Features {
|
|
if v32 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v33))
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if in.Auth != nil {
|
|
const prefix string = ",\"auth\":"
|
|
out.RawString(prefix)
|
|
(*in.Auth).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v HelloClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi32(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v HelloClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi32(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *HelloClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi32(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *HelloClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi32(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi33(in *jlexer.Lexer, out *FederationTokenClaims) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "userdata":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.UserData).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "iss":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Issuer = string(in.String())
|
|
}
|
|
case "sub":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Subject = string(in.String())
|
|
}
|
|
case "aud":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Audience).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "exp":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.ExpiresAt = nil
|
|
} else {
|
|
if out.ExpiresAt == nil {
|
|
out.ExpiresAt = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.ExpiresAt).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "nbf":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.NotBefore = nil
|
|
} else {
|
|
if out.NotBefore == nil {
|
|
out.NotBefore = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.NotBefore).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "iat":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.IssuedAt = nil
|
|
} else {
|
|
if out.IssuedAt == nil {
|
|
out.IssuedAt = new(_v5.NumericDate)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((*out.IssuedAt).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
}
|
|
case "jti":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ID = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi33(out *jwriter.Writer, in FederationTokenClaims) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if len(in.UserData) != 0 {
|
|
const prefix string = ",\"userdata\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.Raw((in.UserData).MarshalJSON())
|
|
}
|
|
if in.Issuer != "" {
|
|
const prefix string = ",\"iss\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Issuer))
|
|
}
|
|
if in.Subject != "" {
|
|
const prefix string = ",\"sub\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Subject))
|
|
}
|
|
if len(in.Audience) != 0 {
|
|
const prefix string = ",\"aud\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((in.Audience).MarshalJSON())
|
|
}
|
|
if in.ExpiresAt != nil {
|
|
const prefix string = ",\"exp\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.ExpiresAt).MarshalJSON())
|
|
}
|
|
if in.NotBefore != nil {
|
|
const prefix string = ",\"nbf\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.NotBefore).MarshalJSON())
|
|
}
|
|
if in.IssuedAt != nil {
|
|
const prefix string = ",\"iat\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((*in.IssuedAt).MarshalJSON())
|
|
}
|
|
if in.ID != "" {
|
|
const prefix string = ",\"jti\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.ID))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v FederationTokenClaims) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi33(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v FederationTokenClaims) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi33(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *FederationTokenClaims) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi33(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *FederationTokenClaims) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi33(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi34(in *jlexer.Lexer, out *FederationAuthParams) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "token":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Token = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi34(out *jwriter.Writer, in FederationAuthParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"token\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Token))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v FederationAuthParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi34(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v FederationAuthParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi34(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *FederationAuthParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi34(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *FederationAuthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi34(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi35(in *jlexer.Lexer, out *EventServerMessageSwitchTo) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "details":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Details).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi35(out *jwriter.Writer, in EventServerMessageSwitchTo) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if len(in.Details) != 0 {
|
|
const prefix string = ",\"details\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Details).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EventServerMessageSwitchTo) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi35(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EventServerMessageSwitchTo) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi35(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EventServerMessageSwitchTo) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi35(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EventServerMessageSwitchTo) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi35(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi36(in *jlexer.Lexer, out *EventServerMessageSessionEntry) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
case "features":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Features = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Features == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Features = make([]string, 0, 4)
|
|
} else {
|
|
out.Features = []string{}
|
|
}
|
|
} else {
|
|
out.Features = (out.Features)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v34 string
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
v34 = string(in.String())
|
|
}
|
|
out.Features = append(out.Features, v34)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "user":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.User).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "roomsessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomSessionId = RoomSessionId(in.String())
|
|
}
|
|
case "federated":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Federated = bool(in.Bool())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi36(out *jwriter.Writer, in EventServerMessageSessionEntry) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"userid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.UserId))
|
|
}
|
|
if len(in.Features) != 0 {
|
|
const prefix string = ",\"features\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v35, v36 := range in.Features {
|
|
if v35 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v36))
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if len(in.User) != 0 {
|
|
const prefix string = ",\"user\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.User).MarshalJSON())
|
|
}
|
|
if in.RoomSessionId != "" {
|
|
const prefix string = ",\"roomsessionid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomSessionId))
|
|
}
|
|
if in.Federated {
|
|
const prefix string = ",\"federated\":"
|
|
out.RawString(prefix)
|
|
out.Bool(bool(in.Federated))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EventServerMessageSessionEntry) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi36(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EventServerMessageSessionEntry) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi36(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EventServerMessageSessionEntry) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi36(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EventServerMessageSessionEntry) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi36(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi37(in *jlexer.Lexer, out *EventServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "target":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Target = string(in.String())
|
|
}
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "join":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Join = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Join == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Join = make([]EventServerMessageSessionEntry, 0, 0)
|
|
} else {
|
|
out.Join = []EventServerMessageSessionEntry{}
|
|
}
|
|
} else {
|
|
out.Join = (out.Join)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v37 EventServerMessageSessionEntry
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(v37).UnmarshalEasyJSON(in)
|
|
}
|
|
out.Join = append(out.Join, v37)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "leave":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Leave = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Leave == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Leave = make([]PublicSessionId, 0, 4)
|
|
} else {
|
|
out.Leave = []PublicSessionId{}
|
|
}
|
|
} else {
|
|
out.Leave = (out.Leave)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v38 PublicSessionId
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
v38 = PublicSessionId(in.String())
|
|
}
|
|
out.Leave = append(out.Leave, v38)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "change":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Change = nil
|
|
} else {
|
|
in.Delim('[')
|
|
if out.Change == nil {
|
|
if !in.IsDelim(']') {
|
|
out.Change = make([]EventServerMessageSessionEntry, 0, 0)
|
|
} else {
|
|
out.Change = []EventServerMessageSessionEntry{}
|
|
}
|
|
} else {
|
|
out.Change = (out.Change)[:0]
|
|
}
|
|
for !in.IsDelim(']') {
|
|
var v39 EventServerMessageSessionEntry
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(v39).UnmarshalEasyJSON(in)
|
|
}
|
|
out.Change = append(out.Change, v39)
|
|
in.WantComma()
|
|
}
|
|
in.Delim(']')
|
|
}
|
|
case "switchto":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.SwitchTo = nil
|
|
} else {
|
|
if out.SwitchTo == nil {
|
|
out.SwitchTo = new(EventServerMessageSwitchTo)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.SwitchTo).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "resumed":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Resumed = nil
|
|
} else {
|
|
if out.Resumed == nil {
|
|
out.Resumed = new(bool)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
*out.Resumed = bool(in.Bool())
|
|
}
|
|
}
|
|
case "invite":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Invite = nil
|
|
} else {
|
|
if out.Invite == nil {
|
|
out.Invite = new(RoomEventServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Invite).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "disinvite":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Disinvite = nil
|
|
} else {
|
|
if out.Disinvite == nil {
|
|
out.Disinvite = new(RoomDisinviteEventServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Disinvite).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "update":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Update = nil
|
|
} else {
|
|
if out.Update == nil {
|
|
out.Update = new(RoomEventServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Update).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "flags":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Flags = nil
|
|
} else {
|
|
if out.Flags == nil {
|
|
out.Flags = new(RoomFlagsServerMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Flags).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "message":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Message = nil
|
|
} else {
|
|
if out.Message == nil {
|
|
out.Message = new(RoomEventMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Message).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi37(out *jwriter.Writer, in EventServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"target\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Target))
|
|
}
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Type))
|
|
}
|
|
if len(in.Join) != 0 {
|
|
const prefix string = ",\"join\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v40, v41 := range in.Join {
|
|
if v40 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
(v41).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if len(in.Leave) != 0 {
|
|
const prefix string = ",\"leave\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v42, v43 := range in.Leave {
|
|
if v42 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v43))
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if len(in.Change) != 0 {
|
|
const prefix string = ",\"change\":"
|
|
out.RawString(prefix)
|
|
{
|
|
out.RawByte('[')
|
|
for v44, v45 := range in.Change {
|
|
if v44 > 0 {
|
|
out.RawByte(',')
|
|
}
|
|
(v45).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte(']')
|
|
}
|
|
}
|
|
if in.SwitchTo != nil {
|
|
const prefix string = ",\"switchto\":"
|
|
out.RawString(prefix)
|
|
(*in.SwitchTo).MarshalEasyJSON(out)
|
|
}
|
|
if in.Resumed != nil {
|
|
const prefix string = ",\"resumed\":"
|
|
out.RawString(prefix)
|
|
out.Bool(bool(*in.Resumed))
|
|
}
|
|
if in.Invite != nil {
|
|
const prefix string = ",\"invite\":"
|
|
out.RawString(prefix)
|
|
(*in.Invite).MarshalEasyJSON(out)
|
|
}
|
|
if in.Disinvite != nil {
|
|
const prefix string = ",\"disinvite\":"
|
|
out.RawString(prefix)
|
|
(*in.Disinvite).MarshalEasyJSON(out)
|
|
}
|
|
if in.Update != nil {
|
|
const prefix string = ",\"update\":"
|
|
out.RawString(prefix)
|
|
(*in.Update).MarshalEasyJSON(out)
|
|
}
|
|
if in.Flags != nil {
|
|
const prefix string = ",\"flags\":"
|
|
out.RawString(prefix)
|
|
(*in.Flags).MarshalEasyJSON(out)
|
|
}
|
|
if in.Message != nil {
|
|
const prefix string = ",\"message\":"
|
|
out.RawString(prefix)
|
|
(*in.Message).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v EventServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi37(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v EventServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi37(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *EventServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi37(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *EventServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi37(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi38(in *jlexer.Lexer, out *Error) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "code":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Code = string(in.String())
|
|
}
|
|
case "message":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Message = string(in.String())
|
|
}
|
|
case "details":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Details).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi38(out *jwriter.Writer, in Error) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"code\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Code))
|
|
}
|
|
{
|
|
const prefix string = ",\"message\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Message))
|
|
}
|
|
if len(in.Details) != 0 {
|
|
const prefix string = ",\"details\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Details).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v Error) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi38(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v Error) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi38(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *Error) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi38(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *Error) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi38(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi39(in *jlexer.Lexer, out *DialoutStatusInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "callid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.CallId = string(in.String())
|
|
}
|
|
case "status":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Status = DialoutStatus(in.String())
|
|
}
|
|
case "cause":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Cause = string(in.String())
|
|
}
|
|
case "code":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Code = int(in.Int())
|
|
}
|
|
case "message":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Message = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi39(out *jwriter.Writer, in DialoutStatusInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"callid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.CallId))
|
|
}
|
|
{
|
|
const prefix string = ",\"status\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Status))
|
|
}
|
|
if in.Cause != "" {
|
|
const prefix string = ",\"cause\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Cause))
|
|
}
|
|
if in.Code != 0 {
|
|
const prefix string = ",\"code\":"
|
|
out.RawString(prefix)
|
|
out.Int(int(in.Code))
|
|
}
|
|
if in.Message != "" {
|
|
const prefix string = ",\"message\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Message))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v DialoutStatusInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi39(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v DialoutStatusInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi39(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *DialoutStatusInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi39(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *DialoutStatusInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi39(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi40(in *jlexer.Lexer, out *DialoutInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
case "error":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Error = nil
|
|
} else {
|
|
if out.Error == nil {
|
|
out.Error = new(Error)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Error).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "status":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Status = nil
|
|
} else {
|
|
if out.Status == nil {
|
|
out.Status = new(DialoutStatusInternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Status).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi40(out *jwriter.Writer, in DialoutInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.RoomId != "" {
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
if in.Error != nil {
|
|
const prefix string = ",\"error\":"
|
|
out.RawString(prefix)
|
|
(*in.Error).MarshalEasyJSON(out)
|
|
}
|
|
if in.Status != nil {
|
|
const prefix string = ",\"status\":"
|
|
out.RawString(prefix)
|
|
(*in.Status).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v DialoutInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi40(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v DialoutInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi40(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *DialoutInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi40(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *DialoutInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi40(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi41(in *jlexer.Lexer, out *ControlServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "sender":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Sender = nil
|
|
} else {
|
|
if out.Sender == nil {
|
|
out.Sender = new(MessageServerMessageSender)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Sender).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "recipient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Recipient = nil
|
|
} else {
|
|
if out.Recipient == nil {
|
|
out.Recipient = new(MessageClientMessageRecipient)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Recipient).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Data).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi41(out *jwriter.Writer, in ControlServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"sender\":"
|
|
out.RawString(prefix[1:])
|
|
if in.Sender == nil {
|
|
out.RawString("null")
|
|
} else {
|
|
(*in.Sender).MarshalEasyJSON(out)
|
|
}
|
|
}
|
|
if in.Recipient != nil {
|
|
const prefix string = ",\"recipient\":"
|
|
out.RawString(prefix)
|
|
(*in.Recipient).MarshalEasyJSON(out)
|
|
}
|
|
{
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Data).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ControlServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi41(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ControlServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi41(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ControlServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi41(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ControlServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi41(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi42(in *jlexer.Lexer, out *ControlClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "recipient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(out.Recipient).UnmarshalEasyJSON(in)
|
|
}
|
|
case "data":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.Data).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi42(out *jwriter.Writer, in ControlClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"recipient\":"
|
|
out.RawString(prefix[1:])
|
|
(in.Recipient).MarshalEasyJSON(out)
|
|
}
|
|
{
|
|
const prefix string = ",\"data\":"
|
|
out.RawString(prefix)
|
|
out.Raw((in.Data).MarshalJSON())
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ControlClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi42(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ControlClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi42(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ControlClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi42(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ControlClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi42(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi43(in *jlexer.Lexer, out *CommonSessionInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi43(out *jwriter.Writer, in CommonSessionInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v CommonSessionInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi43(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v CommonSessionInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi43(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *CommonSessionInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi43(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *CommonSessionInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi43(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi44(in *jlexer.Lexer, out *ClientTypeInternalAuthParams) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "random":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Random = string(in.String())
|
|
}
|
|
case "token":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Token = string(in.String())
|
|
}
|
|
case "backend":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Backend = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi44(out *jwriter.Writer, in ClientTypeInternalAuthParams) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"random\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Random))
|
|
}
|
|
{
|
|
const prefix string = ",\"token\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Token))
|
|
}
|
|
{
|
|
const prefix string = ",\"backend\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Backend))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ClientTypeInternalAuthParams) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi44(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ClientTypeInternalAuthParams) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi44(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ClientTypeInternalAuthParams) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi44(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ClientTypeInternalAuthParams) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi44(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi45(in *jlexer.Lexer, out *ClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "id":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Id = string(in.String())
|
|
}
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "hello":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Hello = nil
|
|
} else {
|
|
if out.Hello == nil {
|
|
out.Hello = new(HelloClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Hello).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "bye":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Bye = nil
|
|
} else {
|
|
if out.Bye == nil {
|
|
out.Bye = new(ByeClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Bye).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "room":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Room = nil
|
|
} else {
|
|
if out.Room == nil {
|
|
out.Room = new(RoomClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Room).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "message":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Message = nil
|
|
} else {
|
|
if out.Message == nil {
|
|
out.Message = new(MessageClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Message).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "control":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Control = nil
|
|
} else {
|
|
if out.Control == nil {
|
|
out.Control = new(ControlClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Control).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "internal":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Internal = nil
|
|
} else {
|
|
if out.Internal == nil {
|
|
out.Internal = new(InternalClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Internal).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "transient":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.TransientData = nil
|
|
} else {
|
|
if out.TransientData == nil {
|
|
out.TransientData = new(TransientDataClientMessage)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.TransientData).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi45(out *jwriter.Writer, in ClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.Id != "" {
|
|
const prefix string = ",\"id\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Id))
|
|
}
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.Type))
|
|
}
|
|
if in.Hello != nil {
|
|
const prefix string = ",\"hello\":"
|
|
out.RawString(prefix)
|
|
(*in.Hello).MarshalEasyJSON(out)
|
|
}
|
|
if in.Bye != nil {
|
|
const prefix string = ",\"bye\":"
|
|
out.RawString(prefix)
|
|
(*in.Bye).MarshalEasyJSON(out)
|
|
}
|
|
if in.Room != nil {
|
|
const prefix string = ",\"room\":"
|
|
out.RawString(prefix)
|
|
(*in.Room).MarshalEasyJSON(out)
|
|
}
|
|
if in.Message != nil {
|
|
const prefix string = ",\"message\":"
|
|
out.RawString(prefix)
|
|
(*in.Message).MarshalEasyJSON(out)
|
|
}
|
|
if in.Control != nil {
|
|
const prefix string = ",\"control\":"
|
|
out.RawString(prefix)
|
|
(*in.Control).MarshalEasyJSON(out)
|
|
}
|
|
if in.Internal != nil {
|
|
const prefix string = ",\"internal\":"
|
|
out.RawString(prefix)
|
|
(*in.Internal).MarshalEasyJSON(out)
|
|
}
|
|
if in.TransientData != nil {
|
|
const prefix string = ",\"transient\":"
|
|
out.RawString(prefix)
|
|
(*in.TransientData).MarshalEasyJSON(out)
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi45(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi45(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi45(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi45(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi46(in *jlexer.Lexer, out *ByeServerMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "reason":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Reason = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi46(out *jwriter.Writer, in ByeServerMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"reason\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.Reason))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ByeServerMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi46(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ByeServerMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi46(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ByeServerMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi46(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ByeServerMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi46(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi47(in *jlexer.Lexer, out *ByeClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi47(out *jwriter.Writer, in ByeClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v ByeClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi47(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v ByeClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi47(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *ByeClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi47(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *ByeClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi47(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi48(in *jlexer.Lexer, out *AnswerOfferMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "to":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.To = PublicSessionId(in.String())
|
|
}
|
|
case "from":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.From = PublicSessionId(in.String())
|
|
}
|
|
case "type":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Type = string(in.String())
|
|
}
|
|
case "roomType":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomType = string(in.String())
|
|
}
|
|
case "payload":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
in.Delim('{')
|
|
out.Payload = make(StringMap)
|
|
for !in.IsDelim('}') {
|
|
key := string(in.String())
|
|
in.WantColon()
|
|
var v46 interface{}
|
|
if m, ok := v46.(easyjson.Unmarshaler); ok {
|
|
m.UnmarshalEasyJSON(in)
|
|
} else if m, ok := v46.(json.Unmarshaler); ok {
|
|
_ = m.UnmarshalJSON(in.Raw())
|
|
} else {
|
|
v46 = in.Interface()
|
|
}
|
|
(out.Payload)[key] = v46
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
}
|
|
case "sid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Sid = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi48(out *jwriter.Writer, in AnswerOfferMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
{
|
|
const prefix string = ",\"to\":"
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.To))
|
|
}
|
|
{
|
|
const prefix string = ",\"from\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.From))
|
|
}
|
|
{
|
|
const prefix string = ",\"type\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Type))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomType\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomType))
|
|
}
|
|
{
|
|
const prefix string = ",\"payload\":"
|
|
out.RawString(prefix)
|
|
if in.Payload == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 {
|
|
out.RawString(`null`)
|
|
} else {
|
|
out.RawByte('{')
|
|
v47First := true
|
|
for v47Name, v47Value := range in.Payload {
|
|
if v47First {
|
|
v47First = false
|
|
} else {
|
|
out.RawByte(',')
|
|
}
|
|
out.String(string(v47Name))
|
|
out.RawByte(':')
|
|
if m, ok := v47Value.(easyjson.Marshaler); ok {
|
|
m.MarshalEasyJSON(out)
|
|
} else if m, ok := v47Value.(json.Marshaler); ok {
|
|
out.Raw(m.MarshalJSON())
|
|
} else {
|
|
out.Raw(json.Marshal(v47Value))
|
|
}
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
}
|
|
if in.Sid != "" {
|
|
const prefix string = ",\"sid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.Sid))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v AnswerOfferMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi48(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v AnswerOfferMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi48(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *AnswerOfferMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi48(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *AnswerOfferMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi48(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi49(in *jlexer.Lexer, out *AddSessionOptions) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "actorId":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ActorId = string(in.String())
|
|
}
|
|
case "actorType":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.ActorType = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi49(out *jwriter.Writer, in AddSessionOptions) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.ActorId != "" {
|
|
const prefix string = ",\"actorId\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.ActorId))
|
|
}
|
|
if in.ActorType != "" {
|
|
const prefix string = ",\"actorType\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.ActorType))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v AddSessionOptions) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi49(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v AddSessionOptions) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi49(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *AddSessionOptions) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi49(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *AddSessionOptions) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi49(l, v)
|
|
}
|
|
func easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi50(in *jlexer.Lexer, out *AddSessionInternalClientMessage) {
|
|
isTopLevel := in.IsStart()
|
|
if in.IsNull() {
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
in.Skip()
|
|
return
|
|
}
|
|
in.Delim('{')
|
|
for !in.IsDelim('}') {
|
|
key := in.UnsafeFieldName(false)
|
|
in.WantColon()
|
|
switch key {
|
|
case "userid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.UserId = string(in.String())
|
|
}
|
|
case "user":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
if data := in.Raw(); in.Ok() {
|
|
in.AddError((out.User).UnmarshalJSON(data))
|
|
}
|
|
}
|
|
case "flags":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.Flags = uint32(in.Uint32())
|
|
}
|
|
case "incall":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.InCall = nil
|
|
} else {
|
|
if out.InCall == nil {
|
|
out.InCall = new(int)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
*out.InCall = int(in.Int())
|
|
}
|
|
}
|
|
case "options":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
out.Options = nil
|
|
} else {
|
|
if out.Options == nil {
|
|
out.Options = new(AddSessionOptions)
|
|
}
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
(*out.Options).UnmarshalEasyJSON(in)
|
|
}
|
|
}
|
|
case "sessionid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.SessionId = PublicSessionId(in.String())
|
|
}
|
|
case "roomid":
|
|
if in.IsNull() {
|
|
in.Skip()
|
|
} else {
|
|
out.RoomId = string(in.String())
|
|
}
|
|
default:
|
|
in.SkipRecursive()
|
|
}
|
|
in.WantComma()
|
|
}
|
|
in.Delim('}')
|
|
if isTopLevel {
|
|
in.Consumed()
|
|
}
|
|
}
|
|
func easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi50(out *jwriter.Writer, in AddSessionInternalClientMessage) {
|
|
out.RawByte('{')
|
|
first := true
|
|
_ = first
|
|
if in.UserId != "" {
|
|
const prefix string = ",\"userid\":"
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
out.String(string(in.UserId))
|
|
}
|
|
if len(in.User) != 0 {
|
|
const prefix string = ",\"user\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Raw((in.User).MarshalJSON())
|
|
}
|
|
if in.Flags != 0 {
|
|
const prefix string = ",\"flags\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Uint32(uint32(in.Flags))
|
|
}
|
|
if in.InCall != nil {
|
|
const prefix string = ",\"incall\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.Int(int(*in.InCall))
|
|
}
|
|
if in.Options != nil {
|
|
const prefix string = ",\"options\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
(*in.Options).MarshalEasyJSON(out)
|
|
}
|
|
{
|
|
const prefix string = ",\"sessionid\":"
|
|
if first {
|
|
first = false
|
|
out.RawString(prefix[1:])
|
|
} else {
|
|
out.RawString(prefix)
|
|
}
|
|
out.String(string(in.SessionId))
|
|
}
|
|
{
|
|
const prefix string = ",\"roomid\":"
|
|
out.RawString(prefix)
|
|
out.String(string(in.RoomId))
|
|
}
|
|
out.RawByte('}')
|
|
}
|
|
|
|
// MarshalJSON supports json.Marshaler interface
|
|
func (v AddSessionInternalClientMessage) MarshalJSON() ([]byte, error) {
|
|
w := jwriter.Writer{}
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi50(&w, v)
|
|
return w.Buffer.BuildBytes(), w.Error
|
|
}
|
|
|
|
// MarshalEasyJSON supports easyjson.Marshaler interface
|
|
func (v AddSessionInternalClientMessage) MarshalEasyJSON(w *jwriter.Writer) {
|
|
easyjson6128dd2EncodeGithubComStrukturagNextcloudSpreedSignalingApi50(w, v)
|
|
}
|
|
|
|
// UnmarshalJSON supports json.Unmarshaler interface
|
|
func (v *AddSessionInternalClientMessage) UnmarshalJSON(data []byte) error {
|
|
r := jlexer.Lexer{Data: data}
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi50(&r, v)
|
|
return r.Error()
|
|
}
|
|
|
|
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
|
func (v *AddSessionInternalClientMessage) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
|
easyjson6128dd2DecodeGithubComStrukturagNextcloudSpreedSignalingApi50(l, v)
|
|
}
|