Ejemplo n.º 1
0
        public virtual bool SubmitRun(
            IRun run,
            String username, String password,
            Func <Image> screenShotFunction = null,
            bool attachSplits   = false,
            TimingMethod method = TimingMethod.RealTime,
            String gameId       = "", String categoryId = "",
            String version      = "", String comment    = "",
            String video        = "",
            params String[] additionalParams)
        {
            try
            {
                if (attachSplits)
                {
                    comment += " " + SplitsIO.Instance.Share(run, screenShotFunction);
                }
                if (gameId == String.Empty)
                {
                    gameId = GetGameIdByName(run.GameName);
                }
                if (categoryId == String.Empty)
                {
                    categoryId = GetCategoryIdByName(gameId, run.CategoryName);
                }
                var json = ASUP.SubmitRun(run, username, password, gameId, categoryId, version, comment, video, additionalParams);
                return(json.result == "success");
            }
            catch (Exception e)
            {
                Log.Error(e);

                return(false);
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <ASUP.IdPair> GetGameList()
        {
            if (gameList == null)
            {
                gameList = ASUP.GetGameList();
            }

            return(gameList);
        }
Ejemplo n.º 3
0
 public ASUPRunUploadPlatform(
     String platformName, String baseUri,
     String asupUri, String description)
 {
     PlatformName = platformName;
     BaseUri      = new Uri(baseUri);
     ASUP         = new ASUP(GetUri(asupUri));
     Description  = description;
 }
Ejemplo n.º 4
0
 public ASUPRunUploadPlatform(
     string platformName, string baseUri,
     string asupUri, string description)
 {
     PlatformName = platformName;
     BaseUri = new Uri(baseUri);
     ASUP = new ASUP(GetUri(asupUri));
     Description = description;
 }
Ejemplo n.º 5
0
 public bool VerifyLogin(String username, String password)
 {
     return(ASUP.VerifyLogin(username, password));
 }
Ejemplo n.º 6
0
 public IEnumerable <ASUP.IdPair> GetGameCategories(String gameId)
 {
     return(ASUP.GetGameCategories(gameId));
 }
Ejemplo n.º 7
0
 public IEnumerable <ASUP.IdPair> GetGameList()
 {
     return(gameList ?? (gameList = ASUP.GetGameList()));
 }