public static CreateLiveResponse Unmarshall(UnmarshallerContext context)
        {
            CreateLiveResponse createLiveResponse = new CreateLiveResponse();

            createLiveResponse.HttpResponse = context.HttpResponse;
            createLiveResponse.ErrorCode    = context.IntegerValue("CreateLive.ErrorCode");
            createLiveResponse.Message      = context.StringValue("CreateLive.Message");
            createLiveResponse.Success      = context.BooleanValue("CreateLive.Success");
            createLiveResponse.RequestId    = context.StringValue("CreateLive.RequestId");

            CreateLiveResponse.CreateLive_LiveInfo liveInfo = new CreateLiveResponse.CreateLive_LiveInfo();
            liveInfo.LiveUUID           = context.StringValue("CreateLive.LiveInfo.LiveUUID");
            liveInfo.StreamUUID         = context.StringValue("CreateLive.LiveInfo.StreamUUID");
            createLiveResponse.LiveInfo = liveInfo;

            return(createLiveResponse);
        }
Пример #2
0
        public static CreateLiveResponse Unmarshall(UnmarshallerContext _ctx)
        {
            CreateLiveResponse createLiveResponse = new CreateLiveResponse();

            createLiveResponse.HttpResponse = _ctx.HttpResponse;
            createLiveResponse.Code         = _ctx.StringValue("CreateLive.Code");
            createLiveResponse.Message      = _ctx.StringValue("CreateLive.Message");
            createLiveResponse.RequestId    = _ctx.StringValue("CreateLive.RequestId");

            CreateLiveResponse.CreateLive_Data data = new CreateLiveResponse.CreateLive_Data();
            data.Channel            = _ctx.StringValue("CreateLive.Data.Channel");
            data.Id                 = _ctx.StringValue("CreateLive.Data.Id");
            data.Name               = _ctx.StringValue("CreateLive.Data.Name");
            createLiveResponse.Data = data;

            return(createLiveResponse);
        }