private static void convertPrincipals(Statement statement, JsonData jStatement) { JsonData jPrincipals = jStatement[JsonDocumentFields.PRINCIPAL]; if (jPrincipals == null) { return; } if (jPrincipals.IsObject) { convertPrincipalRecord(statement, jPrincipals); } else if (jPrincipals.IsArray) { foreach (JsonData jPrincipal in jPrincipals) { convertPrincipalRecord(statement, jPrincipal); } } else if (jPrincipals.IsString && jPrincipals.Equals("*")) { statement.Principals.Add(Principal.Anonymous); } }
/// <summary> /// <see cref="System.Object.Equals(object)"/> /// </summary> public bool Equals(EnrichTextDataItem obj) { if (obj == null) { return(false); } return(Hash.Equals(obj.Hash) && JsonData.Equals(obj.JsonData) && Type.Equals(obj.Type) && DuplicationStatus.Equals(obj.DuplicationStatus)); }
/// <summary> /// <see cref="System.Object.Equals(object)"/> /// </summary> public override bool Equals(object obj) { var objToCompare = obj as EnrichTextDataItem; if (objToCompare == null) { return(false); } return(Hash.Equals(objToCompare.Hash) && JsonData.Equals(objToCompare.JsonData) && Type.Equals(objToCompare.Type) && DuplicationStatus.Equals(objToCompare.DuplicationStatus)); }
public void SetUserInfo() { JsonData jm = jd["Message"]; //UserInfo userinfo = new UserInfo(); if (jm.Equals("Success")) { status = 1; //JsonData ds = jd["ds"]; } else { status = 0; } }
private static void convertPrincipals(Statement statement, JsonData jStatement) { JsonData jsonData = jStatement["Principal"]; if (jsonData != null) { if (jsonData.IsObject) { convertPrincipalRecord(statement, jsonData); } else if (jsonData.IsArray) { foreach (JsonData item in (IEnumerable)jsonData) { convertPrincipalRecord(statement, item); } } else if (jsonData.IsString && jsonData.Equals("*")) { statement.Principals.Add(Principal.Anonymous); } } }
public override bool Equals(object obj) => j.Equals(obj);
public bool Equals(JsonData x) { return(mJsonData.Equals(x)); }
public static bool EqualsOverride(JsonData m_JsonData, object obj) { return(m_JsonData.Equals(obj)); }
public static bool Equals(JsonData m_JsonData, JsonData data) { return(m_JsonData.Equals(data)); }