private UnityWebRequest GetWebRequest(User user)
        {
            var arguments = new UrlArgument[] {
                new UrlArgument(ModeVariable, ModeValue),
                new UrlArgument(AccountVariable, user.AccountId.ToString())
            };
            var url = urlBuilder.BuildUrl(MenuPhp, arguments);

            return(UnityWebRequest.Get(url));
        }
        private UnityWebRequest GetWebRequest(User user, EncounterMetadata metadata)
        {
            var arguments = new UrlArgument[] {
                new UrlArgument(AccountIdVariable, user.AccountId.ToString()),
                new UrlArgument(ModeVariable, ModeValue),
                new UrlArgument(RecordNumberVariable, metadata.RecordNumber.ToString()),
                new UrlArgument(ColumnVariable, ColumnValue)
            };
            var url = urlBuilder.BuildUrl(DownloadPhp, arguments);

            return(UnityWebRequest.Get(url));
        }
        protected virtual UnityWebRequest GetWebRequest(User user, EncounterMetadata metadata)
        {
            var arguments = new UrlArgument[] {
                new UrlArgument(ModeVariable, ModeValue),
                new UrlArgument(AccountVariable, user.AccountId.ToString()),
                new UrlArgument(UsernameVariable, Environment.UserName),
                new UrlArgument(RecordNumberVariable, metadata.RecordNumber.ToString())
            };

            var url = urlBuilder.BuildUrl(LockPhp, arguments);

            return(UnityWebRequest.Get(url));
        }
Example #4
0
 protected string UrlArgument(UrlArgument argument) => $"&{argument.Name}={argument.Value}";