public bool IsOwner(string psOwner) { if (String.IsNullOrEmpty(psOwner)) { throw new WonkaBrePermissionsException("ERROR! Provided owner cannot be null or blank."); } return(OwnerWeights.ContainsKey(psOwner)); }
public void RemoveOwner(string psOwner) { if (!IsOwner(psOwner)) { throw new WonkaBrePermissionsException("ERROR! Account(" + psOwner + ") is not a registered owner that is associated with this RuleTree."); } OwnerWeights.Remove(psOwner); OwnerConfirmations.Remove(psOwner); }
public uint GetOwnerWeight(string psOwner) { if (!String.IsNullOrEmpty(psOwner)) { if (OwnerWeights.ContainsKey(psOwner)) { return(OwnerWeights[psOwner]); } else { return(0); } } else { return(0); } }