int IUIOperationProvider.OnInjectMessage(OtrContact pContact, string pMessage) { try { InjectMessage(pContact, pMessage); } catch (Exception) { return 0; } return 1; }
int IUIOperationProvider.OnLoggedIn(OtrContact pContact) { return IsLoggedIn(pContact) ? 1 : 0; }
public OtrMessage ReceiveMessage(OtrContact pContact, string pMessage) { return _manager.ReceiveMessage(pContact, pMessage); }
public OtrConnection FindConnection(OtrContact pContact) { return _manager.FindConnection(pContact); }
public OtrMessage SendMessage(OtrContact pContact, string pMessage) { return _manager.SendMessage(pContact, pMessage); }
void IUIOperationProvider.OnNewFingerPrint(OtrContact pContact, OtrFingerprint pFingerprint) { pFingerprint.Trust = OtrFingerprintTrust.Untrusted; _manager.WriteFingerprints(); }