Exemplo n.º 1
0
        public static GetAccountInfoResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetAccountInfoResponse getAccountInfoResponse = new GetAccountInfoResponse();

            getAccountInfoResponse.HttpResponse = _ctx.HttpResponse;
            getAccountInfoResponse.ErrorCode    = _ctx.IntegerValue("GetAccountInfo.ErrorCode");
            getAccountInfoResponse.Message      = _ctx.StringValue("GetAccountInfo.Message");
            getAccountInfoResponse.Success      = _ctx.BooleanValue("GetAccountInfo.Success");
            getAccountInfoResponse.RequestId    = _ctx.StringValue("GetAccountInfo.RequestId");

            GetAccountInfoResponse.GetAccountInfo_AccountInfo accountInfo = new GetAccountInfoResponse.GetAccountInfo_AccountInfo();
            accountInfo.AccountConcurrentMax     = _ctx.IntegerValue("GetAccountInfo.AccountInfo.AccountConcurrentMax");
            accountInfo.AccountApplicationMax    = _ctx.IntegerValue("GetAccountInfo.AccountInfo.AccountApplicationMax");
            accountInfo.AccountApplicationNumber = _ctx.IntegerValue("GetAccountInfo.AccountInfo.AccountApplicationNumber");
            getAccountInfoResponse.AccountInfo   = accountInfo;

            return(getAccountInfoResponse);
        }
        public static GetAccountInfoResponse Unmarshall(UnmarshallerContext _ctx)
        {
            GetAccountInfoResponse getAccountInfoResponse = new GetAccountInfoResponse();

            getAccountInfoResponse.HttpResponse = _ctx.HttpResponse;
            getAccountInfoResponse.RequestId    = _ctx.StringValue("GetAccountInfo.RequestId");

            GetAccountInfoResponse.GetAccountInfo_AccountInfo accountInfo = new GetAccountInfoResponse.GetAccountInfo_AccountInfo();
            accountInfo.AccountId              = _ctx.StringValue("GetAccountInfo.AccountInfo.AccountId");
            accountInfo.MonthFreeCount         = _ctx.IntegerValue("GetAccountInfo.AccountInfo.MonthFreeCount");
            accountInfo.MonthHttpsResolveCount = _ctx.IntegerValue("GetAccountInfo.AccountInfo.MonthHttpsResolveCount");
            accountInfo.MonthResolveCount      = _ctx.IntegerValue("GetAccountInfo.AccountInfo.MonthResolveCount");
            accountInfo.PackageCount           = _ctx.IntegerValue("GetAccountInfo.AccountInfo.PackageCount");
            accountInfo.UserStatus             = _ctx.IntegerValue("GetAccountInfo.AccountInfo.UserStatus");
            accountInfo.SignSecret             = _ctx.StringValue("GetAccountInfo.AccountInfo.SignSecret");
            accountInfo.UnsignedEnabled        = _ctx.BooleanValue("GetAccountInfo.AccountInfo.UnsignedEnabled");
            accountInfo.SignedCount            = _ctx.LongValue("GetAccountInfo.AccountInfo.SignedCount");
            accountInfo.UnsignedCount          = _ctx.LongValue("GetAccountInfo.AccountInfo.UnsignedCount");
            getAccountInfoResponse.AccountInfo = accountInfo;

            return(getAccountInfoResponse);
        }