예제 #1
0
 public static string UploadAFile(string filePath, string assetId, int gameId, Action <LootLockerUploadAFileResponse> onComplete, string[] tags = null)
 {
     if (!CheckInitialized())
     {
         throw new Exception("please initialize sdk first");
     }
     return(LootLockerAPIManagerAdmin.UploadAFile(filePath, assetId, gameId, onComplete, tags));
 }
예제 #2
0
 public static void SetupTwoFactorAuthentication(Action <LootLockerSetupTwoFactorAuthenticationResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManagerAdmin.SetupTwoFactorAuthentication(onComplete);
 }
예제 #3
0
 public static void GetAllGamesToTheCurrentUser(Action <LootLockerGetAllGamesToTheCurrentUserResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManagerAdmin.GetAllGamesToTheCurrentUser(onComplete);
 }
예제 #4
0
 public static void SubsequentRequestsRequest(Action <LootLockerSubsequentRequestsResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManagerAdmin.SubsequentRequests(onComplete);
 }
예제 #5
0
 public static void CreatingEvent(Dictionary <string, object> requestData, Action <LootLockerCreatingEventResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManagerAdmin.CreatingEvent(requestData, onComplete);
 }
예제 #6
0
 public static void CreatingMaps(LootLockerCreatingMapsRequest request, bool sendAssetID, bool sendSpawnPoints, Action <LootLockerCreatingMapsResponse> onComplete)
 {
     if (!CheckInitialized())
     {
         return;
     }
     LootLockerAPIManagerAdmin.CreatingMaps(request, sendAssetID, sendSpawnPoints, onComplete);
 }
예제 #7
0
        public static void GetContexts(Action <LootLockerGetContextsResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.GetContexts(onComplete);
        }
예제 #8
0
        public static void CreateAsset(LootLockerCreateAssetRequest request, Action <LootLockerCreateAssetResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.CreateAsset(request, onComplete);
        }
예제 #9
0
        public static void DeleteFile(string fileId, Action <LootLockerDeleteFileResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.DeleteFile(fileId, onComplete);
        }
예제 #10
0
        public static void GetFiles(LootLocker.Admin.Requests.LootLockerFileFilterType filter, Action <LootLockerGetFilesResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.GetFiles(filter, onComplete);
        }
예제 #11
0
        public static void GetAssets(Action <LootLockerGetAssetsResponse> onComplete, string search = null)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.GetAssets(onComplete, search);
        }
예제 #12
0
        public static void UpdateFile(string fileId, LootLockerUpdateFileRequest request, Action <LootLockerUpdateFileResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerAPIManagerAdmin.UpdateFile(fileId, request, onComplete);
        }
예제 #13
0
        public static void GetDetailedInformationAboutAGame(string id, Action <LootLockerCreatingAGameResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(id.ToString());
            LootLockerAPIManagerAdmin.GetDetailedInformationAboutAGame(lootLockerGetRequest, onComplete);
        }
예제 #14
0
        public static void GettingAllEvents(int gameID, Action <LootLockerGettingAllEventsResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(gameID.ToString());
            LootLockerAPIManagerAdmin.GettingAllEvents(lootLockerGetRequest, onComplete);
        }
예제 #15
0
        public static void GetUsersToAnOrganisation(int organisation_id, Action <LootLockerGetUsersToAnOrganisationResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest data = new LootLockerGetRequest();

            data.getRequests.Add(organisation_id.ToString());
            LootLockerAPIManagerAdmin.GetUsersToAnOrganisation(data, onComplete);
        }
예제 #16
0
        public static void CreateTriggers(LootLockerCreateTriggersRequest requestData, int game_id, Action <LootLockerListTriggersResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest data = new LootLockerGetRequest();

            data.getRequests.Add(game_id.ToString());
            LootLockerAPIManagerAdmin.CreateTriggers(requestData, data, onComplete);
        }
예제 #17
0
        public static void SearchingForPlayers(int game_id, Action <LootLockerSearchingForPlayersResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest data = new LootLockerGetRequest();

            data.getRequests.Add(game_id.ToString());
            LootLockerAPIManagerAdmin.SearchingForPlayers(data, onComplete);
        }
예제 #18
0
        public static void DeletingGames(int gameIDToDelete, Action <LootLockerDeletingGamesResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(gameIDToDelete.ToString());
            LootLockerAPIManagerAdmin.DeletingGames(lootLockerGetRequest, onComplete);
        }
예제 #19
0
        public static void UpdatingMaps(LootLockerCreatingMapsRequest request, int mapID, Action <LootLockerCreatingMapsResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(mapID.ToString());
            LootLockerAPIManagerAdmin.UpdatingMaps(lootLockerGetRequest, request, onComplete);
        }
예제 #20
0
        public static void UpdatingEvent(int eventID, Dictionary <string, object> requestData, Action <LootLockerCreatingEventResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(eventID.ToString());
            LootLockerAPIManagerAdmin.UpdatingEvent(lootLockerGetRequest, requestData, onComplete);
        }
예제 #21
0
        public static void TwoFactorAuthVerification(string mfa_key, string secret, Action <LootLockerAuthResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            var data = new LootLockerTwoFactorAuthVerficationRequest();

            data.mfa_key = mfa_key;
            data.secret  = secret;
            LootLockerAPIManagerAdmin.TwoFactorAuthVerification(data, onComplete);
        }
예제 #22
0
        public static void RemoveTwoFactorAuthentication(int remove2FASecret, Action <LootLockerRemoveTwoFactorAuthenticationResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            LootLockerVerifyTwoFactorAuthenticationRequest request = new LootLockerVerifyTwoFactorAuthenticationRequest {
                secret = remove2FASecret
            };

            LootLockerAPIManagerAdmin.RemoveTwoFactorAuthentication(request, onComplete);
        }
예제 #23
0
        public static void InitialAuthRequest(string email, string password, Action <LootLockerAuthResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }
            var data = new LootLockerInitialAuthRequest();

            data.email    = email;
            data.password = password;
            LootLockerAPIManagerAdmin.InitialAuthenticationRequest(data, onComplete);
        }
예제 #24
0
        public static void UpdatingInformationAboutAGame(int gameIDToUpdateInfo, Dictionary <string, object> requestData, Action <LootLockerCreatingAGameResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerGetRequest lootLockerGetRequest = new LootLockerGetRequest();

            lootLockerGetRequest.getRequests.Add(gameIDToUpdateInfo.ToString());

            LootLockerAPIManagerAdmin.UpdatingInformationAboutAGame(lootLockerGetRequest, requestData, onComplete);
        }
예제 #25
0
        public static void CreatingAGame(string name, string steam_app_id, bool sandbox_mode, int organisation_id, bool demo, Action <LootLockerCreatingAGameResponse> onComplete)
        {
            if (!CheckInitialized())
            {
                return;
            }

            LootLockerCreatingAGameRequest data = new LootLockerCreatingAGameRequest
            {
                name            = name,
                steam_app_id    = steam_app_id,
                sandbox_mode    = sandbox_mode,
                organisation_id = organisation_id,
                demo            = demo
            };

            LootLockerAPIManagerAdmin.CreatingAGame(data, onComplete);
        }