Ejemplo n.º 1
0
        private static String convertCanonicalGrantee(CanonicalGrantee grantee)
        {
            StringBuilder builder = new StringBuilder();
            builder.Append("<Grantee xmlns:xsi=\"" + xmlns + "\" xsi:type=\"CanonicalUser\">");
            builder.Append("<DisplayName>" + grantee.getDisplayName() + "</DisplayName>");
            builder.Append("<ID>" + grantee.getIdentifier() + "</ID>");
            builder.Append("</Grantee>");

            return builder.ToString();
        }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType().Equals(this.GetType()))
            {
                CanonicalGrantee other = (CanonicalGrantee)obj;
                return(this.id.Equals(other.id));
            }

            return(false);
        }