public static MultiNotes_1 GenerateMultiNoteClient() { var client = new MultiNotes_1(URL.MultipleNoteURL); if (Settings.UseFormsAuth) { client.CookieContainer = Authenticate.GetCookieContainer(); } else { client.Credentials = KeychainAccessor.NetworkCredential; } return(client); }
public static eBriefing.com.metrostarsystems.eb13.Note[] GetAllMyNotesFromCloud(String bookID, String offset, int pageSize) { MultiNotes_1 client = GenerateMultiNoteClient(); return(client.GetAllNotes(bookID, offset, pageSize)); }
public static bool SetMyNotesToCloud(eBriefing.com.metrostarsystems.eb13.Note[] notes) { MultiNotes_1 client = GenerateMultiNoteClient(); return(client.SaveNotes(notes)); }
public static eBriefing.com.metrostarsystems.eb13.Note[] GetMyNotesFromCloud(String bookID, DateTime lastSyncedDate) { MultiNotes_1 client = GenerateMultiNoteClient(); return(client.GetNotesUpdates(bookID, lastSyncedDate)); }