public void Track(string e, ChadderError error) { try { Track(string.Format("{0} - {1}", e, error.ToString())); } catch { } }
public bool ShowErrorIfNotOk(ChadderError result) { if (result == ChadderError.OK) { return(true); } ChadderApp.UIHelper.ShowError(result); return(false); }
public static string GetString(ChadderError error) { try { return(error.ToString().t()); } catch { return(error.ToString()); } }
public async void ToggleBlock(ChadderContact contact) { ChadderApp.UIHelper.ShowLoading(); ChadderError result = ChadderError.OK; if (contact.Type == Data.RelationshipType.FRIENDS) { result = await Source.SetFriendType(contact, Data.RelationshipType.BLOCKED); } else { result = await Source.SetFriendType(contact, Data.RelationshipType.FRIENDS); } ChadderApp.UIHelper.HideLoading(); ShowErrorIfNotOk(result); }
public void ShowError(ChadderError error) { ShowError(GetString(error)); }
public void Ok(ChadderError e) { Assert.AreEqual(ChadderError.OK, e); }
public BasicArrayResponse(ChadderError error) { Error = error; List = new List <T>(); }
public BasicResponse(ChadderError e) { Time = DateTime.UtcNow; Error = e; }
static public void Track(string e, ChadderError error) { Track(string.Format("{0} - {1}", e, error)); }
public void Track(string e, ChadderError error) { }