Example #1
0
        public override bool Equals(object obj)
        {
            if (obj == this)
            {
                return(true);
            }
            RecommandKey key = obj as RecommandKey;

            if (key == null)
            {
                return(false);
            }
            AuthKey authkey = new AuthKey()
            {
                Auth = key.Auth, PlatForm = key.PlatForm
            };

            if (PlatFormCache.Instance.AuthItems.ContainsKey(authkey))
            {
                return(key.PlatForm == PlatForm && key.Mode == Mode && key.NavId == NavId && PlatFormCache.Instance.AuthItems[authkey] == Auth);
            }
            key.Auth     = null;
            key.PlatForm = authkey.PlatForm;
            return(key.PlatForm == PlatForm && key.Mode == Mode && key.NavId == NavId && key.Auth == Auth);
        }
Example #2
0
        public override bool Equals(object obj)
        {
            VideoNodeKey key = obj as VideoNodeKey;

            if (key == this)
            {
                return(true);
            }
            if (key == null)
            {
                return(false);
            }
            AuthKey authkey = new AuthKey()
            {
                Auth = key.Auth, PlatForm = key.PlatForm
            };

            if (PlatFormCache.Instance.AuthItems.ContainsKey(authkey))
            {
                return(key.PlatForm == PlatForm && key.Type == Type && PlatFormCache.Instance.AuthItems[authkey] == Auth);
            }
            key.Auth     = null;
            key.PlatForm = authkey.PlatForm;
            return(key.PlatForm == PlatForm && key.Type == Type && key.Auth == Auth);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            AuthKey o = obj as AuthKey;

            if (o == this)
            {
                return(true);
            }
            if (o == null)
            {
                return(false);
            }
            return(o.Auth == Auth && o.PlatForm == PlatForm);
        }