void ListApplicationSubscriptionTokensResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            ApplicationSubscription applicationSubscription;
            applicationSubscription.fromJson(json[i]);
            applicationSubscriptions.push_back(applicationSubscription);
        }
    }
}
void GetDeveloperAppKeysResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            DeveloperApp developerApp;
            developerApp.fromJson(json[i]);
            developerApps.push_back(developerApp);
        }
    }
}
void ListCurrencyRatesResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            CurrencyRate currencyRate;
            currencyRate.fromJson(json[i]);
            currencyRates.push_back(currencyRate);
        }
    }
}
Ejemplo n.º 4
0
void ListEventsResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            EventResult eventResult;
            eventResult.fromJson(json[i]);
            eventResults.push_back(eventResult);
        }
    }
}
void ListAuthorizedWebAppsResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            VendorDetails vendorDetailse;
            vendorDetailse.fromJson(json[i]);
            vendorDetailses.push_back(vendorDetailse);
        }
    }
}
void GetAffiliateRelationResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            AffiliateRelation affiliateRelation;
            affiliateRelation.fromJson(json[i]);
            affiliateRelations.push_back(affiliateRelation);
        }
    }
}
void ListTimeRangesResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        for (unsigned i = 0; i < json.size(); ++i) {
            TimeRangeResult timeRangeResult;
            timeRangeResult.fromJson(json[i]);
            timeRangeResults.push_back(timeRangeResult);
        };
    }
}
void ClearedOrderSummaryReport::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        if (json.isMember("clearedOrders")) {
            for (unsigned i = 0; i < json["clearedOrders"].size(); ++i) {
                ClearedOrderSummary clearedOrder;
                clearedOrder.fromJson(json["clearedOrders"][i]);
                clearedOrders.push_back(clearedOrder);
            }
        }
        if (json.isMember("moreAvailable")) {
            moreAvailable = json["moreAvailable"].asBool();
        }
    }
}
void CurrentOrderSummaryReport::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        if (json.isMember("currentOrders")) {
            for (unsigned i = 0; i < json["currentOrders"].size(); ++i) {
                CurrentOrderSummary currentOrder;
                currentOrder.fromJson(json["currentOrders"][i]);
                currentOrders.push_back(currentOrder);
            };
        }
        if (json.isMember("moreAvailable")) {
            moreAvailable.fromJson(json["moreAvailable"]);
        }
    }
}
Ejemplo n.º 10
0
void AccountFundsResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        if (json.isMember("availableToBetBalance")) {
            availableToBetBalance = json["availableToBetBalance"].asDouble();
        }
        if (json.isMember("exposure")) {
            exposure = json["exposure"].asDouble();
        }
        if (json.isMember("retainedCommission")) {
            retainedCommission = json["retainedCommission"].asDouble();
        }
        if (json.isMember("exposureLimit")) {
            exposureLimit = json["exposureLimit"].asDouble();
        }
        if (json.isMember("discountRate")) {
            discountRate = json["discountRate"].asDouble();
        }
        if (json.isMember("pointsBalance")) {
            pointsBalance = json["pointsBalance"].asUInt64();
        }
    }
}
Ejemplo n.º 11
0
void PlaceExecutionReport::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        if (json.isMember("customerRef")) {
            customerRef = json["customerRef"].asString();
        }
        if (json.isMember("status")) {
            status = json["status"].asString();
        }
        if (json.isMember("errorCode")) {
            errorCode = json["errorCode"].asString();
        }
        if (json.isMember("marketId")) {
            marketId = json["marketId"].asString();
        }
        if (json.isMember("instructionReports")) {
            for (unsigned i = 0; i < json["instructionReports"].size(); ++i) {
                PlaceInstructionReport instructionReport;
                instructionReport.fromJson(json["instructionReports"][i]);
                instructionReports.push_back(instructionReport);
            };
        }
    }
}
void RemoveDefaultExposureLimitForMarketGroupsResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        response = json.asString();
    }
}
void GetApplicationSubscriptionTokenResponse::fromJson(const Json::Value& json) {
    if (validateJson(json)) {
        response = json.asString();
    }
}