using System; using System.Collections; namespace Unity3dAzure.AppServices { public interface IAzureMobileServiceTable { /// /// Create a new item. /// IEnumerator Insert (T item, Action> callback = null) where T : new(); /// /// Get a list of items. /// IEnumerator Read (Action> callback = null) where T : new(); /// /// Update an item's data using id property. /// IEnumerator Update (T item, Action> callback = null) where T : new(); /// /// Delete an item using id property. /// IEnumerator Delete (string id, Action> callback = null) where T : new(); /// /// Get a list of results using a custom query. /// More info about custom queries here: /// https://msdn.microsoft.com/en-us/library/azure/jj677199.aspx /// IEnumerator Query (CustomQuery query, Action> callback = null) where T : new(); /// /// Returns a 'count' and nested list of 'results' (appends `$inlinecount=allpages` parameter to the query) /// IEnumerator Query(CustomQuery query, Action>> callback = null) where T : new(); /// /// Get an item's data using id property. /// IEnumerator Lookup (string id, Action> callback = null) where T : new(); } }