Esempio n. 1
0
        public static JoinLiveResponse Unmarshall(UnmarshallerContext _ctx)
        {
            JoinLiveResponse joinLiveResponse = new JoinLiveResponse();

            joinLiveResponse.HttpResponse = _ctx.HttpResponse;
            joinLiveResponse.ErrorCode    = _ctx.IntegerValue("JoinLive.ErrorCode");
            joinLiveResponse.Success      = _ctx.BooleanValue("JoinLive.Success");
            joinLiveResponse.RequestId    = _ctx.StringValue("JoinLive.RequestId");
            joinLiveResponse.Message      = _ctx.StringValue("JoinLive.Message");

            JoinLiveResponse.JoinLive_MeetingInfo meetingInfo = new JoinLiveResponse.JoinLive_MeetingInfo();
            meetingInfo.MeetingDomain = _ctx.StringValue("JoinLive.MeetingInfo.MeetingDomain");
            meetingInfo.MeetingToken  = _ctx.StringValue("JoinLive.MeetingInfo.MeetingToken");
            meetingInfo.MeetingCode   = _ctx.StringValue("JoinLive.MeetingInfo.MeetingCode");
            meetingInfo.MemberUUID    = _ctx.StringValue("JoinLive.MeetingInfo.MemberUUID");
            meetingInfo.ClientAppId   = _ctx.StringValue("JoinLive.MeetingInfo.ClientAppId");
            meetingInfo.MeetingUUID   = _ctx.StringValue("JoinLive.MeetingInfo.MeetingUUID");
            meetingInfo.MeetingAppId  = _ctx.StringValue("JoinLive.MeetingInfo.MeetingAppId");

            JoinLiveResponse.JoinLive_MeetingInfo.JoinLive_SlsInfo slsInfo = new JoinLiveResponse.JoinLive_MeetingInfo.JoinLive_SlsInfo();
            slsInfo.LogServiceEndpoint   = _ctx.StringValue("JoinLive.MeetingInfo.SlsInfo.LogServiceEndpoint");
            slsInfo.Logstore             = _ctx.StringValue("JoinLive.MeetingInfo.SlsInfo.Logstore");
            slsInfo.Project              = _ctx.StringValue("JoinLive.MeetingInfo.SlsInfo.Project");
            meetingInfo.SlsInfo          = slsInfo;
            joinLiveResponse.MeetingInfo = meetingInfo;

            return(joinLiveResponse);
        }
        public static JoinLiveResponse Unmarshall(UnmarshallerContext _ctx)
        {
            JoinLiveResponse joinLiveResponse = new JoinLiveResponse();

            joinLiveResponse.HttpResponse = _ctx.HttpResponse;
            joinLiveResponse.Code         = _ctx.StringValue("JoinLive.Code");
            joinLiveResponse.Message      = _ctx.StringValue("JoinLive.Message");
            joinLiveResponse.RequestId    = _ctx.StringValue("JoinLive.RequestId");

            JoinLiveResponse.JoinLive_Data data = new JoinLiveResponse.JoinLive_Data();
            data.Code = _ctx.IntegerValue("JoinLive.Data.Code");

            JoinLiveResponse.JoinLive_Data.JoinLive_TokenData tokenData = new JoinLiveResponse.JoinLive_Data.JoinLive_TokenData();
            tokenData.AppId     = _ctx.StringValue("JoinLive.Data.TokenData.AppId");
            tokenData.LiveId    = _ctx.StringValue("JoinLive.Data.TokenData.LiveId");
            tokenData.Nonce     = _ctx.StringValue("JoinLive.Data.TokenData.Nonce");
            tokenData.Timestamp = _ctx.LongValue("JoinLive.Data.TokenData.Timestamp");
            tokenData.Token     = _ctx.StringValue("JoinLive.Data.TokenData.Token");
            tokenData.UserId    = _ctx.StringValue("JoinLive.Data.TokenData.UserId");

            List <string> tokenData_gslb = new List <string>();

            for (int i = 0; i < _ctx.Length("JoinLive.Data.TokenData.Gslb.Length"); i++)
            {
                tokenData_gslb.Add(_ctx.StringValue("JoinLive.Data.TokenData.Gslb[" + i + "]"));
            }
            tokenData.Gslb = tokenData_gslb;

            JoinLiveResponse.JoinLive_Data.JoinLive_TokenData.JoinLive_Turn turn = new JoinLiveResponse.JoinLive_Data.JoinLive_TokenData.JoinLive_Turn();
            turn.Password         = _ctx.StringValue("JoinLive.Data.TokenData.Turn.Password");
            turn.Username         = _ctx.StringValue("JoinLive.Data.TokenData.Turn.Username");
            tokenData.Turn        = turn;
            data.TokenData        = tokenData;
            joinLiveResponse.Data = data;

            return(joinLiveResponse);
        }