示例#1
0
        /// <summary> Возвращает глубокую копию объекта </summary>
        public override ModelPeer GetDeepCopy()
        {
            var result = new ModelPeer
            {
                Id                          = Id,
                Identity                    = Identity,
                ModelContactObj             = ModelContactObj?.GetDeepCopy(),
                ModelEnumCallAddressTypeObj = ModelEnumCallAddressTypeObj
            };

            return(result);
        }
示例#2
0
        /// <summary> Возвращает глубокую копию объекта </summary>
        public override ModelCall GetDeepCopy()
        {
            var result = new ModelCall
            {
                Id                          = Id,
                Duration                    = Duration,
                Identity                    = Identity,
                ModelContactObj             = ModelContactObj?.GetDeepCopy(),
                ModelEnumCallDirectionObj   = ModelEnumCallDirectionObj,
                ModelEnumCallAddressTypeObj = ModelEnumCallAddressTypeObj,
                ModelEnumVoipEncryptionObj  = ModelEnumVoipEncryptionObj,
                ModelEnumCallStateObj       = ModelEnumCallStateObj
            };

            return(result);
        }