MCPcopy Create free account
hub / github.com/PlayFab/gsdk / AddServerBuildRequest

Class AddServerBuildRequest

cpp/cppsdk/include/playfab/PlayFabAdminDataModels.h:3435–3492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3433 };
3434
3435 struct AddServerBuildRequest : public PlayFabRequestCommon
3436 {
3437 std::list<Region> ActiveRegions;
3438 std::string BuildId;
3439 std::string CommandLineTemplate;
3440 std::string Comment;
3441 std::string ExecutablePath;
3442 Int32 MaxGamesPerHost;
3443 Int32 MinFreeGameSlots;
3444
3445 AddServerBuildRequest() :
3446 PlayFabRequestCommon(),
3447 ActiveRegions(),
3448 BuildId(),
3449 CommandLineTemplate(),
3450 Comment(),
3451 ExecutablePath(),
3452 MaxGamesPerHost(),
3453 MinFreeGameSlots()
3454 {}
3455
3456 AddServerBuildRequest(const AddServerBuildRequest& src) :
3457 PlayFabRequestCommon(),
3458 ActiveRegions(src.ActiveRegions),
3459 BuildId(src.BuildId),
3460 CommandLineTemplate(src.CommandLineTemplate),
3461 Comment(src.Comment),
3462 ExecutablePath(src.ExecutablePath),
3463 MaxGamesPerHost(src.MaxGamesPerHost),
3464 MinFreeGameSlots(src.MinFreeGameSlots)
3465 {}
3466
3467 ~AddServerBuildRequest() { }
3468
3469 void FromJson(Json::Value& input) override
3470 {
3471 FromJsonUtilE(input["ActiveRegions"], ActiveRegions);
3472 FromJsonUtilS(input["BuildId"], BuildId);
3473 FromJsonUtilS(input["CommandLineTemplate"], CommandLineTemplate);
3474 FromJsonUtilS(input["Comment"], Comment);
3475 FromJsonUtilS(input["ExecutablePath"], ExecutablePath);
3476 FromJsonUtilP(input["MaxGamesPerHost"], MaxGamesPerHost);
3477 FromJsonUtilP(input["MinFreeGameSlots"], MinFreeGameSlots);
3478 }
3479
3480 Json::Value ToJson() const override
3481 {
3482 Json::Value output;
3483 Json::Value each_ActiveRegions; ToJsonUtilE(ActiveRegions, each_ActiveRegions); output["ActiveRegions"] = each_ActiveRegions;
3484 Json::Value each_BuildId; ToJsonUtilS(BuildId, each_BuildId); output["BuildId"] = each_BuildId;
3485 Json::Value each_CommandLineTemplate; ToJsonUtilS(CommandLineTemplate, each_CommandLineTemplate); output["CommandLineTemplate"] = each_CommandLineTemplate;
3486 Json::Value each_Comment; ToJsonUtilS(Comment, each_Comment); output["Comment"] = each_Comment;
3487 Json::Value each_ExecutablePath; ToJsonUtilS(ExecutablePath, each_ExecutablePath); output["ExecutablePath"] = each_ExecutablePath;
3488 Json::Value each_MaxGamesPerHost; ToJsonUtilP(MaxGamesPerHost, each_MaxGamesPerHost); output["MaxGamesPerHost"] = each_MaxGamesPerHost;
3489 Json::Value each_MinFreeGameSlots; ToJsonUtilP(MinFreeGameSlots, each_MinFreeGameSlots); output["MinFreeGameSlots"] = each_MinFreeGameSlots;
3490 return output;
3491 }
3492 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected