public static RootInfo GetRoot (string rootUri, IWebConnection connection) { // TODO: Error-handling in GET and Deserialize string jsonString = connection.Get (rootUri, null); RootInfo root = ParseJson (jsonString); return root; }
public static RootInfo GetRoot(string rootUri, IWebConnection connection) { // TODO: Error-handling in GET and Deserialize string jsonString = connection.Get(rootUri, null); RootInfo root = ParseJson(jsonString); return(root); }
public static UserInfo GetUser (string userUri, IWebConnection connection) { // TODO: Error-handling in GET and Deserialize string jsonString = connection.Get (userUri, null); UserInfo user = ParseJson (jsonString); user.Connection = connection; user.Uri = userUri; return user; }
public static UserInfo GetUser(string userUri, IWebConnection connection) { // TODO: Error-handling in GET and Deserialize string jsonString = connection.Get(userUri, null); UserInfo user = ParseJson(jsonString); user.Connection = connection; user.Uri = userUri; return(user); }