Exemplo n.º 1
0
        public static void GetCloudScriptRevision(GetCloudScriptRevisionRequest request, Action <GetCloudScriptRevisionResult> resultCb, Action <EditorModels.PlayFabError> errorCb)
        {
            var titleId     = PlayFabEditorDataService.SharedSettings.TitleId;
            var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT;

            PlayFabEditorHttp.MakeApiCall("/Admin/GetCloudScriptRevision", apiEndpoint, request, resultCb, errorCb);
        }
Exemplo n.º 2
0
        public static void GetTitleInternalData(Action <GetTitleDataResult> resultCb, Action <EditorModels.PlayFabError> errorCb)
        {
            var titleId     = PlayFabEditorDataService.SharedSettings.TitleId;
            var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT;

            PlayFabEditorHttp.MakeApiCall("/Admin/GetTitleInternalData", apiEndpoint, new GetTitleDataRequest(), resultCb, errorCb);
        }
Exemplo n.º 3
0
        public static void CreateTitle(CreateTitleRequest request, Action <RegisterAccountResult> resultCallback, Action <EditorModels.PlayFabError> errorCb)
        {
            var token = PlayFabEditorDataService.AccountDetails.devToken;

            request.DeveloperClientToken = token;
            PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/CreateTitle", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb);
        }
Exemplo n.º 4
0
        public static void GetStudios(GetStudiosRequest request, Action <GetStudiosResult> resultCallback, Action <EditorModels.PlayFabError> errorCb)
        {
            var token = PlayFabEditorDataService.AccountDetails.devToken;

            request.DeveloperClientToken = token;
            PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/GetStudios", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb);
        }
Exemplo n.º 5
0
        public static void UpdateCloudScript(UpdateCloudScriptRequest request, Action <UpdateCloudScriptResult> resultCb, Action <EditorModels.PlayFabError> errorCb)
        {
            var titleId     = SharedSettings.TitleId;
            var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT;

            PlayFabEditorHttp.MakeApiCall("/Admin/UpdateCloudScript", apiEndpoint, request, resultCb, errorCb);
        }
Exemplo n.º 6
0
        public static void SetTitleInternalData(Dictionary <string, string> keys, Action <SetTitleDataResult> resultCb, Action <EditorModels.PlayFabError> errorCb)
        {
            foreach (var pair in keys)
            {
                var req = new SetTitleDataRequest {
                    Key = pair.Key, Value = pair.Value
                };

                var titleId     = PlayFabEditorDataService.SharedSettings.TitleId;
                var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT;
                PlayFabEditorHttp.MakeApiCall("/Admin/SetTitleInternalData", apiEndpoint, req, resultCb, errorCb);
            }
        }
Exemplo n.º 7
0
 public static void RegisterAccouint(RegisterAccountRequest request, Action <RegisterAccountResult> resultCallback, Action <EditorModels.PlayFabError> errorCb)
 {
     PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/RegisterAccount", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb);
 }
Exemplo n.º 8
0
 public static void Logout(LogoutRequest request, Action <LogoutResult> resultCallback,
                           Action <EditorModels.PlayFabError> errorCb)
 {
     PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/Logout", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb);
 }