示例#1
0
 /// <summary>
 /// Requests the transmission of offline data
 /// </summary>
 /// <param name="section">The section Id of the paper</param>
 /// <param name="owner">The owner Id of the paper</param>
 /// <param name="notes">The array of notebook Id list</param>
 /// <param name="deleteOnFinished">delete offline data when transmission is finished</param>
 /// <param name="pages">The array of page's number</param>
 public void RequestOfflineData(int section, int owner, int note, bool deleteOnFinished = true, int[] pages = null)
 {
     Request(() => mClientV1.ReqOfflineData(new OfflineDataInfo(section, owner, note, pages)), () => mClientV2.ReqOfflineData(section, owner, note, deleteOnFinished, pages));
 }
示例#2
0
 /// <summary>
 /// Requests the transmission of offline data
 /// </summary>
 /// <param name="section">The section Id of the paper</param>
 /// <param name="owner">The owner Id of the paper</param>
 /// <param name="notes">The array of notebook Id list</param>
 /// <param name="deleteOnFinished">delete offline data when transmission is finished</param>
 /// <param name="pages">The array of page's number</param>
 public bool RequestOfflineData(int section, int owner, int note, bool deleteOnFinished = true, int[] pages = null)
 {
     return(Request(() => { return mClientV1.ReqOfflineData(new OfflineDataInfo(section, owner, note, pages)); }, () => { return mClientV2.ReqOfflineData(section, owner, note, deleteOnFinished, pages); }));
 }