Example #1
0
 /// <summary>
 /// Creates instance of <see cref="T:Microsoft.Azure.NotificationHubs.GcmTemplateRegistrationDescription"/> class by copying fields from the given instance
 /// </summary>
 /// <param name="sourceRegistration">Another <see cref="T:Microsoft.Azure.NotificationHubs.GcmTemplateRegistrationDescription"/> instance fields values are copyed from</param>
 public GcmTemplateRegistrationDescription(GcmTemplateRegistrationDescription sourceRegistration)
     : base(sourceRegistration)
 {
     this.BodyTemplate = sourceRegistration.BodyTemplate;
     this.TemplateName = sourceRegistration.TemplateName;
 }
Example #2
0
#pragma warning disable CS0618

        /// <summary>
        /// Creates instance of <see cref="T:Microsoft.Azure.NotificationHubs.FcmTemplateRegistrationDescription"/> class from  <see cref="T:Microsoft.Azure.NotificationHubs.GcmTemplateRegistrationDescription"/> object.
        /// </summary>
        /// <param name="gcmRegistration">The GcmTempalteRegistration object to create new FcmTemplateRegistraitonDescription from.</param>
        internal FcmTemplateRegistrationDescription(GcmTemplateRegistrationDescription gcmRegistration)
            : base(gcmRegistration)
        {
            this.BodyTemplate = gcmRegistration.BodyTemplate;
            this.TemplateName = gcmRegistration.TemplateName;
        }