private void RemoveHashKey(string obj_type, string key, bool isAsync, RemoveHashKeyCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.data.removeHashKey" } }; Utilities.AddRequiredParameter(parameterList, "obj_type", obj_type); Utilities.AddRequiredParameter(parameterList, "key", key); if (isAsync) { SendRequestAsync<data_removeHashKey_response, bool>(parameterList, new FacebookCallCompleted<bool>(callback), state); return; } SendRequest(parameterList); }
/// <summary> /// Delete an object by a hash key. /// </summary> /// <example> /// <code> /// /// </code> /// </example> /// <param name="obj_type">Object's type. This is required, so that different object types may use the same hash keys for different objects. </param> /// <param name="key">Hash key (string object identifier) to remove. </param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> public void RemoveHashKeyAsync(string obj_type, string key, RemoveHashKeyCallback callback, Object state) { RemoveHashKey(obj_type, key, true, callback, state); }