Exemple #1
0
        public override bool Equals(object obj)
        {
            ZPushVersion rhs = obj as ZPushVersion;

            if (rhs == null)
            {
                return(false);
            }
            return(version.Equals(rhs.version));
        }
        internal void OnConfirmationResponse(ZPushConnection.Response response)
        {
            Capabilities = response.Capabilities;
            // TODO: move these properties to the features? Though it's nice to have them here for the debug dialog
            GABFolder            = response.GABName;
            ZPushVersion         = ZPushVersion.FromString(response.ZPushVersion);
            ServerSignaturesHash = response.SignaturesHash;
            Confirmed            = Capabilities == null ? ConfirmationType.IsNotZPush : ConfirmationType.IsZPush;
            Logger.Instance.Info(this, "ZPush confirmation: {0} -> {1}, {2}, {3} -> {4}", Confirmed, Capabilities, GABFolder, response.ZPushVersion, ZPushVersion);

            _confirmedChanged?.Invoke(this);
        }