public List<Alias> GetAccountAliases(string accountid, ref string err) { List<Alias> result = new List<Alias>(); ListAliases nxtListAliases = new ListAliases(); var client = new WebClient { Encoding = Encoding.UTF8 }; try { var rawData = client.DownloadString(_path + "/nxt?requestType=listAccountAliases&account=" + HttpUtility.UrlEncode(accountid)); nxtListAliases = JsonConvert.DeserializeObject<ListAliases>(rawData); if (nxtListAliases != null && nxtListAliases.aliases != null) result = nxtListAliases.aliases; } catch (Exception e) { err = e.Message; } return result; }
//da se naglasi!!!! public ListAliases getListAliases(string accountid, ref string err) { ListAliases nxtListAliases = new ListAliases(); var client = new WebClient { Encoding = Encoding.UTF8 }; try { var rawData = client.DownloadString(_path + "/nxt?requestType=listAccountAliases&account=" + HttpUtility.UrlEncode(accountid)); nxtListAliases = JsonConvert.DeserializeObject<ListAliases>(rawData); } catch (Exception e) { err = e.ToString(); } return nxtListAliases; }