Created
April 28, 2021 15:50
-
-
Save rdelrosario/d59c352e80e9ef42c1e8f3d4d616404d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ReactiveUI; | |
namespace DynamicDataGroupingSample | |
{ | |
public class NotificationConfiguration : ReactiveObjectEx | |
{ | |
public NotificationConfiguration(string name, int order, string groupName, int groupOrder,bool smsChannel, bool emailChannel, bool pushNotificationChannel, bool phoneChannel) | |
{ | |
Name = name; | |
Order = order; | |
GroupName = groupName; | |
GroupOrder = groupOrder; | |
SmsChannel = smsChannel; | |
EmailChannel = emailChannel; | |
PushNotificationChannel = pushNotificationChannel; | |
PhoneChannel = phoneChannel; | |
} | |
public string Name { get;} | |
public int Order { get; } | |
//Group | |
public string GroupName { get; } | |
public int GroupOrder { get; } | |
public string GroupCssIcon { get; } | |
public string GroupFontIcon { get; } | |
//Channels | |
public bool SmsChannel | |
{ | |
get => _smsChannel; | |
set => this.RaiseAndSetIfChanged(ref _smsChannel, value); | |
} | |
public bool EmailChannel | |
{ | |
get => _emailChannel; | |
set => this.RaiseAndSetIfChanged(ref _emailChannel, value); | |
} | |
public bool PushNotificationChannel | |
{ | |
get => _pushNotificationChannel; | |
set => this.RaiseAndSetIfChanged(ref _pushNotificationChannel, value); | |
} | |
public bool PhoneChannel | |
{ | |
get => _phoneChannel; | |
set => this.RaiseAndSetIfChanged(ref _phoneChannel, value); | |
} | |
private bool _smsChannel; | |
private bool _emailChannel; | |
private bool _pushNotificationChannel; | |
private bool _phoneChannel; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment