mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Update generated files.
This commit is contained in:
parent
b7f8f83944
commit
cfd508005d
2 changed files with 471 additions and 452 deletions
File diff suppressed because it is too large
Load diff
261
talk/ocs_easyjson.go
Normal file
261
talk/ocs_easyjson.go
Normal file
|
|
@ -0,0 +1,261 @@
|
|||
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
|
||||
|
||||
package talk
|
||||
|
||||
import (
|
||||
json "encoding/json"
|
||||
easyjson "github.com/mailru/easyjson"
|
||||
jlexer "github.com/mailru/easyjson/jlexer"
|
||||
jwriter "github.com/mailru/easyjson/jwriter"
|
||||
)
|
||||
|
||||
// suppress unused package warning
|
||||
var (
|
||||
_ *json.RawMessage
|
||||
_ *jlexer.Lexer
|
||||
_ *jwriter.Writer
|
||||
_ easyjson.Marshaler
|
||||
)
|
||||
|
||||
func easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk(in *jlexer.Lexer, out *OcsResponse) {
|
||||
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 "ocs":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
out.Ocs = nil
|
||||
} else {
|
||||
if out.Ocs == nil {
|
||||
out.Ocs = new(OcsBody)
|
||||
}
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
} else {
|
||||
(*out.Ocs).UnmarshalEasyJSON(in)
|
||||
}
|
||||
}
|
||||
default:
|
||||
in.SkipRecursive()
|
||||
}
|
||||
in.WantComma()
|
||||
}
|
||||
in.Delim('}')
|
||||
if isTopLevel {
|
||||
in.Consumed()
|
||||
}
|
||||
}
|
||||
func easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk(out *jwriter.Writer, in OcsResponse) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
{
|
||||
const prefix string = ",\"ocs\":"
|
||||
out.RawString(prefix[1:])
|
||||
if in.Ocs == nil {
|
||||
out.RawString("null")
|
||||
} else {
|
||||
(*in.Ocs).MarshalEasyJSON(out)
|
||||
}
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v OcsResponse) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v OcsResponse) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *OcsResponse) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *OcsResponse) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk(l, v)
|
||||
}
|
||||
func easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk1(in *jlexer.Lexer, out *OcsMeta) {
|
||||
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 "status":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
} else {
|
||||
out.Status = string(in.String())
|
||||
}
|
||||
case "statuscode":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
} else {
|
||||
out.StatusCode = 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 easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk1(out *jwriter.Writer, in OcsMeta) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
{
|
||||
const prefix string = ",\"status\":"
|
||||
out.RawString(prefix[1:])
|
||||
out.String(string(in.Status))
|
||||
}
|
||||
{
|
||||
const prefix string = ",\"statuscode\":"
|
||||
out.RawString(prefix)
|
||||
out.Int(int(in.StatusCode))
|
||||
}
|
||||
{
|
||||
const prefix string = ",\"message\":"
|
||||
out.RawString(prefix)
|
||||
out.String(string(in.Message))
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v OcsMeta) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk1(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v OcsMeta) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk1(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *OcsMeta) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk1(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *OcsMeta) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk1(l, v)
|
||||
}
|
||||
func easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk2(in *jlexer.Lexer, out *OcsBody) {
|
||||
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 "meta":
|
||||
if in.IsNull() {
|
||||
in.Skip()
|
||||
} else {
|
||||
(out.Meta).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 easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk2(out *jwriter.Writer, in OcsBody) {
|
||||
out.RawByte('{')
|
||||
first := true
|
||||
_ = first
|
||||
{
|
||||
const prefix string = ",\"meta\":"
|
||||
out.RawString(prefix[1:])
|
||||
(in.Meta).MarshalEasyJSON(out)
|
||||
}
|
||||
{
|
||||
const prefix string = ",\"data\":"
|
||||
out.RawString(prefix)
|
||||
out.Raw((in.Data).MarshalJSON())
|
||||
}
|
||||
out.RawByte('}')
|
||||
}
|
||||
|
||||
// MarshalJSON supports json.Marshaler interface
|
||||
func (v OcsBody) MarshalJSON() ([]byte, error) {
|
||||
w := jwriter.Writer{}
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk2(&w, v)
|
||||
return w.Buffer.BuildBytes(), w.Error
|
||||
}
|
||||
|
||||
// MarshalEasyJSON supports easyjson.Marshaler interface
|
||||
func (v OcsBody) MarshalEasyJSON(w *jwriter.Writer) {
|
||||
easyjsonD5833a6fEncodeGithubComStrukturagNextcloudSpreedSignalingTalk2(w, v)
|
||||
}
|
||||
|
||||
// UnmarshalJSON supports json.Unmarshaler interface
|
||||
func (v *OcsBody) UnmarshalJSON(data []byte) error {
|
||||
r := jlexer.Lexer{Data: data}
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk2(&r, v)
|
||||
return r.Error()
|
||||
}
|
||||
|
||||
// UnmarshalEasyJSON supports easyjson.Unmarshaler interface
|
||||
func (v *OcsBody) UnmarshalEasyJSON(l *jlexer.Lexer) {
|
||||
easyjsonD5833a6fDecodeGithubComStrukturagNextcloudSpreedSignalingTalk2(l, v)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue