/// <inheritdoc /> public async Task <BalanceResponse> GetBalance(string currency) { return(await _requester.Post <BalanceResponse>("balance", new Dictionary <string, string> { ["currency"] = currency }).ConfigureAwait(false)); }
/// <summary> /// Get current showing movies of Lotte cinema /// Ref: http://www.lottecinemavn.com/LCHS/Contents/Movie/Movie-List.aspx /// </summary> /// <returns>List of current showing movie of Lotte cinema with status and message</returns> public async Task <MovieListResult> GetShowingMovies() { // Handle request exception try { var response = await _requester.Post <GetMoviesResponse>( requestUrl : $"{_domain}/Movie/MovieData.aspx", data : "paramList={" + string.Join(",", new[] { "MethodName:'GetMovies'", "channelType:'HO'", "osType:''", "osVersion:''", "multiLanguageID:'LL'", "division:1", "moviePlayYN:'Y'", "orderType:'1'", "blockSize:100", "pageNo:1" }) + "}", contentType : "application/x-www-form-urlencoded"); if (response.IsOK == "true" && response.ResultMessage == "SUCCESS") { return(new MovieListResult { Success = true, Data = response.Movies.Items .Select(x => Mapper.MapToMovie(x)) .ToList() }); } else { return(new MovieListResult { Success = false, Message = response.ResultMessage }); } } catch (Exception e) { return(new MovieListResult { Success = false, Message = e.Message }); } }