Beispiel #1
0
        public static OnsInstanceBaseInfoResponse Unmarshall(UnmarshallerContext context)
        {
            OnsInstanceBaseInfoResponse onsInstanceBaseInfoResponse = new OnsInstanceBaseInfoResponse();

            onsInstanceBaseInfoResponse.HttpResponse = context.HttpResponse;
            onsInstanceBaseInfoResponse.RequestId    = context.StringValue("OnsInstanceBaseInfo.RequestId");
            onsInstanceBaseInfoResponse.HelpUrl      = context.StringValue("OnsInstanceBaseInfo.HelpUrl");

            OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo instanceBaseInfo = new OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo();
            instanceBaseInfo.InstanceId     = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceId");
            instanceBaseInfo.InstanceStatus = context.IntegerValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceStatus");
            instanceBaseInfo.ReleaseTime    = context.LongValue("OnsInstanceBaseInfo.InstanceBaseInfo.ReleaseTime");
            instanceBaseInfo.InstanceType   = context.IntegerValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceType");
            instanceBaseInfo.InstanceName   = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceName");

            OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo.OnsInstanceBaseInfo_Endpoints endpoints = new OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo.OnsInstanceBaseInfo_Endpoints();
            endpoints.TcpEndpoint                        = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.TcpEndpoint");
            endpoints.HttpInternetEndpoint               = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternetEndpoint");
            endpoints.HttpInternetSecureEndpoint         = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternetSecureEndpoint");
            endpoints.HttpInternalEndpoint               = context.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternalEndpoint");
            instanceBaseInfo.Endpoints                   = endpoints;
            onsInstanceBaseInfoResponse.InstanceBaseInfo = instanceBaseInfo;

            return(onsInstanceBaseInfoResponse);
        }
        public static OnsInstanceBaseInfoResponse Unmarshall(UnmarshallerContext _ctx)
        {
            OnsInstanceBaseInfoResponse onsInstanceBaseInfoResponse = new OnsInstanceBaseInfoResponse();

            onsInstanceBaseInfoResponse.HttpResponse = _ctx.HttpResponse;
            onsInstanceBaseInfoResponse.RequestId    = _ctx.StringValue("OnsInstanceBaseInfo.RequestId");
            onsInstanceBaseInfoResponse.HelpUrl      = _ctx.StringValue("OnsInstanceBaseInfo.HelpUrl");

            OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo instanceBaseInfo = new OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo();
            instanceBaseInfo.InstanceId        = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceId");
            instanceBaseInfo.InstanceStatus    = _ctx.IntegerValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceStatus");
            instanceBaseInfo.ReleaseTime       = _ctx.LongValue("OnsInstanceBaseInfo.InstanceBaseInfo.ReleaseTime");
            instanceBaseInfo.InstanceType      = _ctx.IntegerValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceType");
            instanceBaseInfo.InstanceName      = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.InstanceName");
            instanceBaseInfo.IndependentNaming = _ctx.BooleanValue("OnsInstanceBaseInfo.InstanceBaseInfo.IndependentNaming");
            instanceBaseInfo.Remark            = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Remark");
            instanceBaseInfo.TopicCapacity     = _ctx.IntegerValue("OnsInstanceBaseInfo.InstanceBaseInfo.TopicCapacity");
            instanceBaseInfo.MaxTps            = _ctx.LongValue("OnsInstanceBaseInfo.InstanceBaseInfo.MaxTps");

            OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo.OnsInstanceBaseInfo_Endpoints endpoints = new OnsInstanceBaseInfoResponse.OnsInstanceBaseInfo_InstanceBaseInfo.OnsInstanceBaseInfo_Endpoints();
            endpoints.TcpEndpoint                        = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.TcpEndpoint");
            endpoints.HttpInternetEndpoint               = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternetEndpoint");
            endpoints.HttpInternetSecureEndpoint         = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternetSecureEndpoint");
            endpoints.HttpInternalEndpoint               = _ctx.StringValue("OnsInstanceBaseInfo.InstanceBaseInfo.Endpoints.HttpInternalEndpoint");
            instanceBaseInfo.Endpoints                   = endpoints;
            onsInstanceBaseInfoResponse.InstanceBaseInfo = instanceBaseInfo;

            return(onsInstanceBaseInfoResponse);
        }