public void OnSnapshot(CloudDBZoneSnapshot cloudDBZoneSnapshot, AGConnectCloudDBException e) { if (e != null) { Log.Error(Tag, "OnSnapshot: " + e.Message); return; } CloudDBZoneObjectList snapshotObjects = cloudDBZoneSnapshot.SnapshotObjects; IList <BookInfo> bookInfoList = new List <BookInfo>(); try { if (snapshotObjects != null) { while (snapshotObjects.HasNext) { BookInfo bookInfo = Helpers.ObjectTypeHelper.ConvertJavaTypeToCSharpType(snapshotObjects.Next()); bookInfoList.Add(bookInfo); } } } catch (AGConnectCloudDBException snapshotException) { Log.Error(Tag, "OnSnapshot:(getObject) " + snapshotException.Message); } finally { cloudDBZoneSnapshot.Release(); } }
public override void onSnapshot(CloudDBZoneSnapshot <T> arg0, AGConnectCloudDBException arg1) { TestTip.Inst.ShowText("OnSnapshot success."); if (cb != null) { cb.Invoke(arg0, arg1); } }
public override void onSnapshot(CloudDBZoneSnapshot <T> arg0, AGConnectCloudDBException arg1) { if (cb != null) { var exception = new AGConnectCloudDBException(); exception.obj = arg1.obj; cb.Invoke(arg0, arg1); } }