public virtual bool StoreUserAccount(UserAccount data) { Dictionary<string, object> sendData = new Dictionary<string, object>(); //sendData["SCOPEID"] = scopeID.ToString(); sendData["VERSIONMIN"] = ProtocolVersions.ClientProtocolVersionMin.ToString(); sendData["VERSIONMAX"] = ProtocolVersions.ClientProtocolVersionMax.ToString(); sendData["METHOD"] = "setaccount"; Dictionary<string, object> structData = data.ToKeyValuePairs(); foreach (KeyValuePair<string, object> kvp in structData) { if (kvp.Value == null) { m_log.DebugFormat("[ACCOUNTS CONNECTOR]: Null value for {0}", kvp.Key); continue; } sendData[kvp.Key] = kvp.Value.ToString(); } return SendAndGetBoolReply(sendData); }
public virtual bool StoreUserAccount(UserAccount data) { Dictionary<string, object> sendData = new Dictionary<string, object>(); //sendData["SCOPEID"] = scopeID.ToString(); sendData["VERSIONMIN"] = ProtocolVersions.ClientProtocolVersionMin.ToString(); sendData["VERSIONMAX"] = ProtocolVersions.ClientProtocolVersionMax.ToString(); sendData["METHOD"] = "setaccount"; Dictionary<string, object> structData = data.ToKeyValuePairs(); foreach (KeyValuePair<string, object> kvp in structData) { if (kvp.Value == null) { sendData[kvp.Key] = ""; } else sendData[kvp.Key] = kvp.Value.ToString(); } return SendAndGetBoolReply(data.PrincipalID, sendData); }