/// <summary> /// Searches identities for a key term /// </summary> /// <param name="term">Term to search identities by</param> /// <returns>Array of identities based on search results</returns> public Identity[] SearchIdentities(string term) { Enjin.Post(string.Format(Enjin.IdentityTemplate.GetQuery["SearchIdentities"], term)); List <Identity> searchResults = new List <Identity>(); var results = JsonUtility.FromJson <JSONArrayHelper <Identity> >(EnjinHelpers.GetJSONString(Regex.Replace(GraphQuery.queryReturn, @"(""[^""\\]*(?:\\.[^""\\]*)*"")|\s+", "$1"), 1)).result; foreach (Identity result in results) { if (result.id != 0) { searchResults.Add(result); } } return(searchResults.ToArray()); }
/// <summary> /// Sends the items to be transfered /// </summary> public void Send() { Enjin.SendBatchCryptoItems(this, UserID); }