public NotificationHubAttributes(PnsCredentialsResource pnsCredentialsResource) { if (pnsCredentialsResource != null) { Id = pnsCredentialsResource.Id; Name = pnsCredentialsResource.Name; Type = pnsCredentialsResource.Type; Location = pnsCredentialsResource.Location; if (pnsCredentialsResource.Tags != null && pnsCredentialsResource.Tags.Count > 0) { Tags = new Dictionary <string, string>(pnsCredentialsResource.Tags); } AdmCredential = pnsCredentialsResource.AdmCredential; ApnsCredential = pnsCredentialsResource.ApnsCredential; BaiduCredential = pnsCredentialsResource.BaiduCredential; GcmCredential = pnsCredentialsResource.GcmCredential; MpnsCredential = pnsCredentialsResource.MpnsCredential; WnsCredential = pnsCredentialsResource.WnsCredential; } }
public NotificationHubAttributes(PnsCredentialsResource pnsCredentialsResource) { if (pnsCredentialsResource != null) { Id = pnsCredentialsResource.Id; Name = pnsCredentialsResource.Name; Type = pnsCredentialsResource.Type; Location = pnsCredentialsResource.Location; if (pnsCredentialsResource.Tags != null && pnsCredentialsResource.Tags.Count > 0) { Tags = new Dictionary<string, string>(pnsCredentialsResource.Tags); } AdmCredential = pnsCredentialsResource.AdmCredential; ApnsCredential = pnsCredentialsResource.ApnsCredential; BaiduCredential = pnsCredentialsResource.BaiduCredential; GcmCredential = pnsCredentialsResource.GcmCredential; MpnsCredential = pnsCredentialsResource.MpnsCredential; WnsCredential = pnsCredentialsResource.WnsCredential; } }