1+ using System ;
2+ using TS3QueryLib . Core . CommandHandling ;
3+ using TS3QueryLib . Core . Common ;
4+ using TS3QueryLib . Core . Server . Responses ;
5+
6+ namespace TS3QueryLib . Core . Server . Notification . EventArgs
7+ {
8+ public class ServerEditedEventArgs : System . EventArgs , IDump
9+ {
10+ #region Properties
11+
12+ public uint ReasonId { get ; protected set ; }
13+ public uint InvokerId { get ; protected set ; }
14+ public string InvokerName { get ; protected set ; }
15+ public string InvokerUniqueId { get ; protected set ; }
16+
17+ public string Name { get ; set ; }
18+ public uint ? DefaultServerGroupId { get ; set ; }
19+ public uint ? DefaultChannelGroupId { get ; set ; }
20+ public double ? PrioritySpeakerDimmModification { get ; set ; }
21+ public string HostBannerUrl { get ; set ; }
22+ public string HostBannerGraphicsUrl { get ; set ; }
23+ public uint ? HostBannerGraphicsInterval { get ; set ; }
24+ public string HostButtonGraphicsUrl { get ; set ; }
25+ public string HostButtonTooltip { get ; set ; }
26+ public string HostButtonUrl { get ; set ; }
27+ public HostBannerMode ? HostBannerMode { get ; set ; }
28+
29+ public string PhoneticName { get ; set ; }
30+ public uint ? IconId { get ; set ; }
31+
32+ #endregion
33+
34+ #region Constructors
35+
36+
37+ public ServerEditedEventArgs ( CommandParameterGroupList commandParameterGroupList )
38+ {
39+ if ( commandParameterGroupList == null )
40+ throw new ArgumentNullException ( nameof ( commandParameterGroupList ) ) ;
41+
42+ ReasonId = commandParameterGroupList . GetParameterValue < uint > ( "reasonid" ) ;
43+ InvokerId = commandParameterGroupList . GetParameterValue < uint > ( "invokerid" ) ;
44+ InvokerName = commandParameterGroupList . GetParameterValue < string > ( "invokername" ) ;
45+ InvokerUniqueId = commandParameterGroupList . GetParameterValue < string > ( "invokeruid" ) ;
46+
47+ Name = commandParameterGroupList . GetParameterValue < string > ( "virtualserver_name" ) ;
48+ DefaultServerGroupId = commandParameterGroupList . GetParameterValue < uint ? > ( "virtualserver_default_server_group" ) ;
49+ DefaultChannelGroupId = commandParameterGroupList . GetParameterValue < uint ? > ( "virtualserver_default_channel_group" ) ;
50+ HostBannerUrl = commandParameterGroupList . GetParameterValue < string > ( "virtualserver_hostbanner_url" ) ;
51+ HostBannerGraphicsUrl = commandParameterGroupList . GetParameterValue < string > ( "virtualserver_hostbanner_gfx_url" ) ;
52+
53+ HostBannerGraphicsInterval = commandParameterGroupList . GetParameterValue < uint ? > ( "virtualserver_hostbanner_gfx_interval" ) ;
54+ PrioritySpeakerDimmModification = commandParameterGroupList . GetParameterValue < double ? > ( "virtualserver_priority_speaker_dimm_modificator" ) ;
55+ HostButtonTooltip = commandParameterGroupList . GetParameterValue ( "virtualserver_hostbutton_tooltip" ) ;
56+ HostButtonUrl = commandParameterGroupList . GetParameterValue ( "virtualserver_hostbutton_url" ) ;
57+ PhoneticName = commandParameterGroupList . GetParameterValue ( "virtualserver_name_phonetic" ) ;
58+ IconId = commandParameterGroupList . GetParameterValue < uint ? > ( "virtualserver_icon_id" ) ;
59+ HostButtonGraphicsUrl = commandParameterGroupList . GetParameterValue < string > ( "virtualserver_hostbutton_gfx_url" ) ;
60+ HostBannerMode = ( HostBannerMode ? ) commandParameterGroupList . GetParameterValue < uint ? > ( "virtualserver_hostbanner_mode" ) ;
61+ }
62+
63+ #endregion
64+ }
65+ }
0 commit comments