Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            var other = obj as AndroidKun;

            if (other == null)
            {
                return(false);
            }
            if (!m_isSustainedPerformanceMode.Equals(other.m_isSustainedPerformanceMode))
            {
                return(false);
            }
            if (!m_requestSustainedPerformanceMode.Equals(other.m_requestSustainedPerformanceMode))
            {
                return(false);
            }

            if (!SerializerKun.Equals <bool>(m_hasUserAuthorizedPermissions, other.m_hasUserAuthorizedPermissions))
            {
                return(false);
            }

            if (!SerializerKun.Equals <bool>(m_requestUserPermissions, other.m_requestUserPermissions))
            {
                return(false);
            }

            if (!SerializerKun.Equals <string>(m_permissions, other.m_permissions))
            {
                return(false);
            }

            return(true);
        }