/// <summary>
 /// Initializes a new instance of the <see cref="LockInfo" /> class.
 /// </summary>
 /// <param name="LockedBy">LockedBy.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateExpires">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Action">Action.</param>
 public LockInfo(UriReference LockedBy = null, DateTime?DateCreated = null, DateTime?DateExpires = null, ActionEnum?Action = null)
 {
     this.LockedBy    = LockedBy;
     this.DateCreated = DateCreated;
     this.DateExpires = DateExpires;
     this.Action      = Action;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeServiceStateParameters" /> class.
 /// </summary>
 /// <param name="action">Specifies the action to take on the specified service. &#39;kStop&#39; indicates that the specified services will be stopped. &#39;kStart&#39; indicates that the specified services will be started. &#39;kRestart&#39; indicates that the specified services will be restarted..</param>
 /// <param name="services">Specifies the list of services to take the specified action on. If none are specified, all Cluster services will be affected. It should also be noted that some Cluster services are not stoppable and may not be affected by the action specified. &#39;kApollo&#39; is a service for reclaiming freed disk sectors on Nodes in the SnapFS distributed file system. &#39;kBridge&#39; is a service for managing the SnapFS distributed file system. &#39;kGenie&#39; is a service that is responsible for monitoring hardware health on the Cluster. &#39;kGenieGofer&#39; is a service that links the Genie service to other services on the Cluster. &#39;kMagneto&#39; is the data protection service of the Cohesity Data Platform. &#39;kIris&#39; is the service which serves REST API calls to the UI, CLI, and any scripts written by customers. &#39;kIrisProxy&#39; is a service that links the Iris service to other services on the Cluster. &#39;kScribe&#39; is the service responsible for storing filesystem metadata. &#39;kStats&#39; is the service that is responsible for retrieving and aggregating disk metrics across the Cluster. &#39;kYoda&#39; is an elastic search indexing service. &#39;kAlerts&#39; is a publisher and subscribing service for alerts. &#39;kKeychain&#39; is a service for managing disk encryption keys. &#39;kLogWatcher&#39; is a service that scans the log directory and reduces the number of logs if required. &#39;kStatsCollector&#39; is a service that periodically logs system stats. &#39;kGandalf&#39; is a distributed lock service and coordination manager. &#39;kNexus&#39; indicates the Nexus service. This is the service that is responsible for creation of Clusters and configuration of Nodes and networking. &#39;kNexusProxy&#39; is a service that links the Nexus service to other services on the Cluster. &#39;kStorageProxy&#39; is a service for accessing data on external entities. &#39;kTricorder&#39; is a diagnostic health testing service for Clusters. &#39;kRtClient&#39; is a reverse tunneling client service. &#39;kVaultProxy&#39; is a service for managing external targets that Clusters can be backed up to. &#39;kSmbProxy&#39; is an SMB protocol service. &#39;kBridgeProxy&#39; is the service that links the Bridge service to other services on the Cluster. &#39;kLibrarian&#39; is an elastic search indexing service. &#39;kGroot&#39; is a service for managing replication of SQL databases across multiple nodes in a Cluster. &#39;kEagleAgent&#39; is a service that is responsible for retrieving information on Cluster health. &#39;kAthena&#39; is a service for running distributed containerized applications on the Cohesity Data Platform. &#39;kBifrostBroker&#39; is a service for communicating with the Cohesity proxies for multitenancy. &#39;kOs&#39; can be specified in order to do a full reboot..</param>
 public ChangeServiceStateParameters(ActionEnum?action = default(ActionEnum?), List <ServicesEnum> services = default(List <ServicesEnum>))
 {
     this.Action   = action;
     this.Services = services;
     this.Action   = action;
     this.Services = services;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WebMessagingQuickReply" /> class.
 /// </summary>
 /// <param name="Text">Text to show inside the quick reply. This is also used as the response text after clicking on the quick reply. (required).</param>
 /// <param name="Payload">Content of the payload included in the quick reply response. Could be an ID identifying the quick reply response. (required).</param>
 /// <param name="Image">URL of an image associated with the quick reply..</param>
 /// <param name="Action">Specifies the type of action that is triggered upon clicking the quick reply..</param>
 public WebMessagingQuickReply(string Text = null, string Payload = null, string Image = null, ActionEnum?Action = null)
 {
     this.Text    = Text;
     this.Payload = Payload;
     this.Image   = Image;
     this.Action  = Action;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SystemConfigReorderUnknownNumber" /> class.
 /// </summary>
 /// <param name="action">the action to take for unknown numbers (default to ActionEnum.Respond).</param>
 /// <param name="bridgeAccountId">the account id that the bridge_device_id belongs to.</param>
 /// <param name="bridgeDeviceId">the device id to bridge unknown numbers to.</param>
 /// <param name="responseCode">reorder code for replies to unknown numbers (default to &quot;604&quot;).</param>
 /// <param name="responseMessage">reorder message for replies to unknown numbers (default to &quot;Nope Nope Nope&quot;).</param>
 /// <param name="transferTarget">onnet phone number to transfer unknown numbers to.</param>
 public SystemConfigReorderUnknownNumber(ActionEnum?action = ActionEnum.Respond, string bridgeAccountId = default(string), string bridgeDeviceId = default(string), string responseCode = "604", string responseMessage = "Nope Nope Nope", string transferTarget = default(string))
 {
     // use default value if no "action" provided
     if (action == null)
     {
         this.Action = ActionEnum.Respond;
     }
     else
     {
         this.Action = action;
     }
     this.BridgeAccountId = bridgeAccountId;
     this.BridgeDeviceId  = bridgeDeviceId;
     // use default value if no "responseCode" provided
     if (responseCode == null)
     {
         this.ResponseCode = "604";
     }
     else
     {
         this.ResponseCode = responseCode;
     }
     // use default value if no "responseMessage" provided
     if (responseMessage == null)
     {
         this.ResponseMessage = "Nope Nope Nope";
     }
     else
     {
         this.ResponseMessage = responseMessage;
     }
     this.TransferTarget = transferTarget;
 }
Beispiel #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SmsProvisioningStatus" /> class.
 /// </summary>
 /// <param name="Action">Provisioning action.</param>
 /// <param name="State">Provisioning state.</param>
 /// <param name="Error">Any error associated with a Failed state.</param>
 /// <param name="Version">The phone number version associated with the provisioning action.</param>
 public SmsProvisioningStatus(ActionEnum?Action = null, StateEnum?State = null, ErrorBody Error = null, long?Version = null)
 {
     this.Action  = Action;
     this.State   = State;
     this.Error   = Error;
     this.Version = Version;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsHotdesk" /> class.
 /// </summary>
 /// <param name="action">The action to take for hotdesking.</param>
 /// <param name="id">Hotdesk ID.</param>
 /// <param name="interdigitTimeout">How long, in seconds, to wait between keypresses.</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 public CallflowsHotdesk(ActionEnum?action = default(ActionEnum?), string id = default(string), int?interdigitTimeout = default(int?), bool?skipModule = default(bool?))
 {
     this.Action            = action;
     this.Id                = id;
     this.InterdigitTimeout = interdigitTimeout;
     this.SkipModule        = skipModule;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsDynamicCid" /> class.
 /// </summary>
 /// <param name="action">What action to perform.</param>
 /// <param name="callerId">callerId.</param>
 /// <param name="enforceCallRestriction">Check classification restrictions against endpoint (default to true).</param>
 /// <param name="id">List ID for caller IDs when &#39;action&#39; is &#39;list&#39;.</param>
 /// <param name="idxName">Named capture group to use.</param>
 /// <param name="interdigitTimeout">How long, in seconds, to wait for keypresses.</param>
 /// <param name="maxDigits">Max number of digits allowed when collecting Caller ID Number.</param>
 /// <param name="mediaId">Prompt to play to caller to enter Caller ID Number.</param>
 /// <param name="minDigits">Minimum number of digits that must match the regex to collected DTMF.</param>
 /// <param name="permitCustomCallflow">Permit a custom callflow to be accepted instead of restricting to no_match only when looking up callflows (default to false).</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 /// <param name="whitelistRegex">Regex to match collected Caller ID Number.</param>
 public CallflowsDynamicCid(ActionEnum?action = default(ActionEnum?), CallflowsDynamicCidCallerId callerId = default(CallflowsDynamicCidCallerId), bool?enforceCallRestriction = true, string id = default(string), string idxName = default(string), int?interdigitTimeout = default(int?), int?maxDigits = default(int?), string mediaId = default(string), int?minDigits = default(int?), bool?permitCustomCallflow = false, bool?skipModule = default(bool?), string whitelistRegex = default(string))
 {
     this.Action   = action;
     this.CallerId = callerId;
     // use default value if no "enforceCallRestriction" provided
     if (enforceCallRestriction == null)
     {
         this.EnforceCallRestriction = true;
     }
     else
     {
         this.EnforceCallRestriction = enforceCallRestriction;
     }
     this.Id                = id;
     this.IdxName           = idxName;
     this.InterdigitTimeout = interdigitTimeout;
     this.MaxDigits         = maxDigits;
     this.MediaId           = mediaId;
     this.MinDigits         = minDigits;
     // use default value if no "permitCustomCallflow" provided
     if (permitCustomCallflow == null)
     {
         this.PermitCustomCallflow = false;
     }
     else
     {
         this.PermitCustomCallflow = permitCustomCallflow;
     }
     this.SkipModule     = skipModule;
     this.WhitelistRegex = whitelistRegex;
 }
Beispiel #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsPark" /> class.
 /// </summary>
 /// <param name="action">Action to take for the caller (default to ActionEnum.Park).</param>
 /// <param name="customPresenceId">use configured presence_id and fallback to request (default to false).</param>
 /// <param name="defaultCallbackTimeout">How long, in seconds, to wait before calling back the parker.</param>
 /// <param name="defaultPresenceType">Type of presence to update.</param>
 /// <param name="defaultRingbackTimeout">How long, in milliseconds, before ringing back.</param>
 /// <param name="maxSlotNumber">Continue past this module if the selected slot number exceeds this number. Used to restrict the max number of auto-generated slot numbers.</param>
 /// <param name="presenceId">use this presence_id.</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 /// <param name="slot">Static slot number to use.</param>
 /// <param name="slots">Statically define slots and their configuration.</param>
 public CallflowsPark(ActionEnum?action = ActionEnum.Park, bool?customPresenceId = false, int?defaultCallbackTimeout = default(int?), DefaultPresenceTypeEnum?defaultPresenceType = default(DefaultPresenceTypeEnum?), int?defaultRingbackTimeout = default(int?), int?maxSlotNumber = default(int?), string presenceId = default(string), bool?skipModule = default(bool?), string slot = default(string), Object slots = default(Object))
 {
     // use default value if no "action" provided
     if (action == null)
     {
         this.Action = ActionEnum.Park;
     }
     else
     {
         this.Action = action;
     }
     // use default value if no "customPresenceId" provided
     if (customPresenceId == null)
     {
         this.CustomPresenceId = false;
     }
     else
     {
         this.CustomPresenceId = customPresenceId;
     }
     this.DefaultCallbackTimeout = defaultCallbackTimeout;
     this.DefaultPresenceType    = defaultPresenceType;
     this.DefaultRingbackTimeout = defaultRingbackTimeout;
     this.MaxSlotNumber          = maxSlotNumber;
     this.PresenceId             = presenceId;
     this.SkipModule             = skipModule;
     this.Slot  = slot;
     this.Slots = slots;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConversationContentQuickReply" /> class.
 /// </summary>
 /// <param name="Text">Text to show inside the quick reply. This is also used as the response text after clicking on the quick reply. (required).</param>
 /// <param name="Payload">Content of the payload included in the quick reply response. Could be an ID identifying the quick reply response. (required).</param>
 /// <param name="Image">URL of an image associated with the quick reply..</param>
 /// <param name="Action">Specifies the type of action that is triggered upon clicking the quick reply..</param>
 public ConversationContentQuickReply(string Text = null, string Payload = null, string Image = null, ActionEnum?Action = null)
 {
     this.Text    = Text;
     this.Payload = Payload;
     this.Image   = Image;
     this.Action  = Action;
 }
Beispiel #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsVoicemail" /> class.
 /// </summary>
 /// <param name="action">Whether to check voicemail box or compose a new voicemail message (default to ActionEnum.Compose).</param>
 /// <param name="calleridMatchLogin">Whether to match the caller ID to a voicemail box (default to false).</param>
 /// <param name="id">The ID of the voicemail box.</param>
 /// <param name="interdigitTimeout">The amount of time (in milliseconds) to wait for the caller to press the next digit after pressing a digit.</param>
 /// <param name="maxMessageLength">Max length of the message that caller can leave in voicemail box.</param>
 /// <param name="singleMailboxLogin">Allow login if caller has a single mailbox (default to false).</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 public CallflowsVoicemail(ActionEnum?action = ActionEnum.Compose, bool?calleridMatchLogin = false, string id = default(string), int?interdigitTimeout = default(int?), int?maxMessageLength = default(int?), bool?singleMailboxLogin = false, bool?skipModule = default(bool?))
 {
     // use default value if no "action" provided
     if (action == null)
     {
         this.Action = ActionEnum.Compose;
     }
     else
     {
         this.Action = action;
     }
     // use default value if no "calleridMatchLogin" provided
     if (calleridMatchLogin == null)
     {
         this.CalleridMatchLogin = false;
     }
     else
     {
         this.CalleridMatchLogin = calleridMatchLogin;
     }
     this.Id = id;
     this.InterdigitTimeout = interdigitTimeout;
     this.MaxMessageLength  = maxMessageLength;
     // use default value if no "singleMailboxLogin" provided
     if (singleMailboxLogin == null)
     {
         this.SingleMailboxLogin = false;
     }
     else
     {
         this.SingleMailboxLogin = singleMailboxLogin;
     }
     this.SkipModule = skipModule;
 }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StartOrderStrategy" /> class.
 /// </summary>
 /// <param name="AccountId">id of Account.</param>
 /// <param name="AccountSpec">AccountSpec.</param>
 /// <param name="Symbol">Symbol (required).</param>
 /// <param name="OrderStrategyTypeId">id of OrderStrategyType (required).</param>
 /// <param name="Action">Buy, Sell (required).</param>
 /// <param name="_Params">_Params.</param>
 /// <param name="Uuid">Uuid.</param>
 public StartOrderStrategy(int?AccountId = null, string AccountSpec = null, string Symbol = null, int?OrderStrategyTypeId = null, ActionEnum?Action = null, string _Params = null, string Uuid = null)
 {
     // to ensure "Symbol" is required (not null)
     if (Symbol == null)
     {
         throw new InvalidDataException("Symbol is a required property for StartOrderStrategy and cannot be null");
     }
     else
     {
         this.Symbol = Symbol;
     }
     // to ensure "OrderStrategyTypeId" is required (not null)
     if (OrderStrategyTypeId == null)
     {
         throw new InvalidDataException("OrderStrategyTypeId is a required property for StartOrderStrategy and cannot be null");
     }
     else
     {
         this.OrderStrategyTypeId = OrderStrategyTypeId;
     }
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for StartOrderStrategy and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     this.AccountId   = AccountId;
     this.AccountSpec = AccountSpec;
     this._Params     = _Params;
     this.Uuid        = Uuid;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LockInfo" /> class.
 /// </summary>
 /// <param name="LockedBy">LockedBy.</param>
 /// <param name="DateCreated">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="DateExpires">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="Action">Action.</param>
 public LockInfo(DomainEntityRef LockedBy = null, DateTime?DateCreated = null, DateTime?DateExpires = null, ActionEnum?Action = null)
 {
     this.LockedBy    = LockedBy;
     this.DateCreated = DateCreated;
     this.DateExpires = DateExpires;
     this.Action      = Action;
 }
Beispiel #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="V2ConversationMessageTypingEventForUserTopicConversationContentQuickReply" /> class.
 /// </summary>
 /// <param name="Text">Text.</param>
 /// <param name="Payload">Payload.</param>
 /// <param name="Image">Image.</param>
 /// <param name="Action">Action.</param>
 public V2ConversationMessageTypingEventForUserTopicConversationContentQuickReply(string Text = null, string Payload = null, string Image = null, ActionEnum?Action = null)
 {
     this.Text    = Text;
     this.Payload = Payload;
     this.Image   = Image;
     this.Action  = Action;
 }
Beispiel #14
0
        private void SetViewBagRoles(
            string operationNumber,
            ActionEnum?readPermission  = null,
            ActionEnum?writePermission = null)
        {
            if (ViewBag.ErrorMessage == null)
            {
                if (readPermission.HasValue)
                {
                    ViewBag.ReadRole = _authorizationService.IsAuthorized(
                        IDBContext.Current.UserName,
                        operationNumber,
                        readPermission.Value);
                }

                if (writePermission.HasValue)
                {
                    ViewBag.WriteRole = _authorizationService.IsAuthorized(
                        IDBContext.Current.UserName,
                        operationNumber,
                        writePermission.Value);
                }
            }
            else
            {
                ViewBag.ReadRole  = false;
                ViewBag.WriteRole = false;
            }
        }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestrainedOrderVersion" /> class.
 /// </summary>
 /// <param name="Action">Buy, Sell (required).</param>
 /// <param name="ClOrdId">ClOrdId.</param>
 /// <param name="OrderType">Limit, MIT, Market, QTS, Stop, StopLimit, TrailingStop, TrailingStopLimit (required).</param>
 /// <param name="Price">Price.</param>
 /// <param name="StopPrice">StopPrice.</param>
 /// <param name="MaxShow">MaxShow.</param>
 /// <param name="PegDifference">PegDifference.</param>
 /// <param name="TimeInForce">Day, FOK, GTC, GTD, IOC.</param>
 /// <param name="ExpireTime">ExpireTime.</param>
 /// <param name="Text">Text.</param>
 public RestrainedOrderVersion(ActionEnum?Action = null, string ClOrdId = null, OrderTypeEnum?OrderType = null, double?Price = null, double?StopPrice = null, int?MaxShow = null, double?PegDifference = null, TimeInForceEnum?TimeInForce = null, DateTime?ExpireTime = null, string Text = null)
 {
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for RestrainedOrderVersion and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     // to ensure "OrderType" is required (not null)
     if (OrderType == null)
     {
         throw new InvalidDataException("OrderType is a required property for RestrainedOrderVersion and cannot be null");
     }
     else
     {
         this.OrderType = OrderType;
     }
     this.ClOrdId       = ClOrdId;
     this.Price         = Price;
     this.StopPrice     = StopPrice;
     this.MaxShow       = MaxShow;
     this.PegDifference = PegDifference;
     this.TimeInForce   = TimeInForce;
     this.ExpireTime    = ExpireTime;
     this.Text          = Text;
 }
Beispiel #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QuickReply" /> class.
 /// </summary>
 /// <param name="Text">Text to show inside the quick reply. This is also used as the response text after clicking on the quick reply..</param>
 /// <param name="Payload">Content of the textback payload after clicking a quick reply.</param>
 /// <param name="Url">The location of the image file associated with quick reply.</param>
 /// <param name="Action">Specifies the type of action that is triggered upon clicking the quick reply. Currently, the only supported action is \"Message\" which sends a message using the quick reply text..</param>
 /// <param name="IsSelected">Indicates if the quick reply option is selected by end customer.</param>
 public QuickReply(string Text = null, string Payload = null, string Url = null, ActionEnum?Action = null, bool?IsSelected = null)
 {
     this.Text       = Text;
     this.Payload    = Payload;
     this.Url        = Url;
     this.Action     = Action;
     this.IsSelected = IsSelected;
 }
Beispiel #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecordingJobsQuery" /> class.
 /// </summary>
 /// <param name="Action">Operation to perform bulk task (required).</param>
 /// <param name="ActionDate">The date when the action will be performed. If the operation will cause the delete date of a recording to be older than the export date, the export date will be adjusted to the delete date. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ (required).</param>
 /// <param name="IntegrationId">IntegrationId to Access AWS S3 bucket for bulk recording exports. This field is required and used only for EXPORT action..</param>
 /// <param name="IncludeScreenRecordings">Include Screen recordings for export action, default value = true .</param>
 /// <param name="ConversationQuery">Conversation Query. Note: After the recording is created, it might take up to 48 hours for the recording to be included in the submitted job query. (required).</param>
 public RecordingJobsQuery(ActionEnum?Action = null, DateTime?ActionDate = null, string IntegrationId = null, bool?IncludeScreenRecordings = null, AsyncConversationQuery ConversationQuery = null)
 {
     this.Action                  = Action;
     this.ActionDate              = ActionDate;
     this.IntegrationId           = IntegrationId;
     this.IncludeScreenRecordings = IncludeScreenRecordings;
     this.ConversationQuery       = ConversationQuery;
 }
Beispiel #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsAcdcAgent" /> class.
 /// </summary>
 /// <param name="action">Set which action to perform.</param>
 /// <param name="presenceId">Static presence ID to send BLF updates to.</param>
 /// <param name="presenceState">Custom presence state to send.</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 /// <param name="timeout">Time, in seconds, for &#39;paused&#39; state.</param>
 public CallflowsAcdcAgent(ActionEnum?action = default(ActionEnum?), string presenceId = default(string), PresenceStateEnum?presenceState = default(PresenceStateEnum?), bool?skipModule = default(bool?), int?timeout = default(int?))
 {
     this.Action        = action;
     this.PresenceId    = presenceId;
     this.PresenceState = presenceState;
     this.SkipModule    = skipModule;
     this.Timeout       = timeout;
 }
Beispiel #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuditLogEntityDto" /> class.
 /// </summary>
 /// <param name="AuditLogId">Business audit entry that triggered the changes.</param>
 /// <param name="CustomData">Data about the old/new/included values.</param>
 /// <param name="EntityId">The Id of the referred entity.</param>
 /// <param name="EntityName">The name of the entity the auditLog refers to.</param>
 /// <param name="Action">The action (created, updated, deleted etc).</param>
 /// <param name="Id">Id.</param>
 public AuditLogEntityDto(long?AuditLogId = default(long?), string CustomData = default(string), long?EntityId = default(long?), string EntityName = default(string), ActionEnum?Action = default(ActionEnum?), long?Id = default(long?))
 {
     this.AuditLogId = AuditLogId;
     this.CustomData = CustomData;
     this.EntityId   = EntityId;
     this.EntityName = EntityName;
     this.Action     = Action;
     this.Id         = Id;
 }
Beispiel #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CallflowsTemporalRoute" /> class.
 /// </summary>
 /// <param name="action">What action to perform.</param>
 /// <param name="interdigitTimeout">How long, in milliseconds, to wait for the next keypress.</param>
 /// <param name="ruleSet">ID of the rule set.</param>
 /// <param name="rules">List of rule IDs to use.</param>
 /// <param name="skipModule">When set to true this callflow action is skipped, advancing to the wildcard branch (if any).</param>
 /// <param name="timezone">Timezone to use when processing temporal rules.</param>
 public CallflowsTemporalRoute(ActionEnum?action = default(ActionEnum?), int?interdigitTimeout = default(int?), string ruleSet = default(string), List <string> rules = default(List <string>), bool?skipModule = default(bool?), string timezone = default(string))
 {
     this.Action            = action;
     this.InterdigitTimeout = interdigitTimeout;
     this.RuleSet           = ruleSet;
     this.Rules             = rules;
     this.SkipModule        = skipModule;
     this.Timezone          = timezone;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HistoryEntry" /> class.
 /// </summary>
 /// <param name="Action">The action performed.</param>
 /// <param name="Resource">For actions performed not on the item itself, but on a sub-item, this field identifies the sub-item by name.  For example, for actions performed on prompt resources, this will be the prompt resource name..</param>
 /// <param name="Timestamp">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>
 /// <param name="User">User.</param>
 /// <param name="Version">Version.</param>
 /// <param name="Secure">Secure.</param>
 public HistoryEntry(ActionEnum?Action = null, string Resource = null, DateTime?Timestamp = null, User User = null, string Version = null, bool?Secure = null)
 {
     this.Action    = Action;
     this.Resource  = Resource;
     this.Timestamp = Timestamp;
     this.User      = User;
     this.Version   = Version;
     this.Secure    = Secure;
 }
Beispiel #22
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentAudit" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="User">User.</param>



        /// <param name="Workspace">Workspace.</param>



        /// <param name="TransactionId">TransactionId.</param>



        /// <param name="TransactionInitiator">TransactionInitiator.</param>



        /// <param name="Application">Application.</param>



        /// <param name="ServiceName">ServiceName.</param>



        /// <param name="Level">Level.</param>



        /// <param name="Timestamp">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Status">Status.</param>



        /// <param name="ActionContext">ActionContext.</param>



        /// <param name="Action">Action.</param>



        /// <param name="Entity">Entity.</param>



        /// <param name="Changes">Changes.</param>



        public DocumentAudit(string Name = null, UriReference User = null, UriReference Workspace = null, string TransactionId = null, bool?TransactionInitiator = null, string Application = null, string ServiceName = null, LevelEnum?Level = null, DateTime?Timestamp = null, StatusEnum?Status = null, ActionContextEnum?ActionContext = null, ActionEnum?Action = null, AuditEntityReference Entity = null, List <AuditChange> Changes = null)
        {
            this.Name = Name;



            this.User = User;



            this.Workspace = Workspace;



            this.TransactionId = TransactionId;



            this.TransactionInitiator = TransactionInitiator;



            this.Application = Application;



            this.ServiceName = ServiceName;



            this.Level = Level;



            this.Timestamp = Timestamp;



            this.Status = Status;



            this.ActionContext = ActionContext;



            this.Action = Action;



            this.Entity = Entity;



            this.Changes = Changes;
        }
        private void FastAction(ActionEnum?action)
        {
            if (!action.HasValue)
            {
                throw new Exception("No parameter was provided for navigation");
            }

            string viewName;

            switch (action)
            {
            case ActionEnum.Suppliers:
                viewName = ViewNames.Suppliers;
                break;

            case ActionEnum.Clients:
                viewName = ViewNames.Clients;
                break;

            case ActionEnum.Warehouse:
                viewName = ViewNames.Warehouse;
                break;

            case ActionEnum.Supplies:
                viewName = ViewNames.Supplies;
                break;

            case ActionEnum.Sales:
                viewName = ViewNames.Sales;
                break;

            case ActionEnum.Debts:
                viewName = ViewNames.Debts;
                break;

            case ActionEnum.Reports:
                viewName = ViewNames.Reports;
                break;

            case ActionEnum.Analytics:
                viewName = ViewNames.Analytics;
                break;

            case ActionEnum.Settings:
                viewName = ViewNames.Settings;
                break;

            default:
                return;
            }

            if (!string.IsNullOrWhiteSpace(viewName))
            {
                RegionManager.RequestNavigate(RegionNames.ContentRegion, viewName);
            }
        }
Beispiel #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccessPolicySummaryDTO" /> class.
 /// </summary>
 /// <param name="id">The id of the component..</param>
 /// <param name="versionedComponentId">The ID of the corresponding component that is under version control.</param>
 /// <param name="parentGroupId">The id of parent process group of this component if applicable..</param>
 /// <param name="position">The position of this component in the UI if applicable..</param>
 /// <param name="resource">The resource for this access policy..</param>
 /// <param name="action">The action associated with this access policy..</param>
 /// <param name="componentReference">Component this policy references if applicable..</param>
 /// <param name="configurable">Whether this policy is configurable..</param>
 public AccessPolicySummaryDTO(string id = default(string), string versionedComponentId = default(string), string parentGroupId = default(string), PositionDTO position = default(PositionDTO), string resource = default(string), ActionEnum?action = default(ActionEnum?), ComponentReferenceEntity componentReference = default(ComponentReferenceEntity), bool?configurable = default(bool?))
 {
     this.Id = id;
     this.VersionedComponentId = versionedComponentId;
     this.ParentGroupId        = parentGroupId;
     this.Position             = position;
     this.Resource             = resource;
     this.Action             = action;
     this.ComponentReference = componentReference;
     this.Configurable       = configurable;
 }
Beispiel #25
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MetaflowsHoldControl" /> class.
 /// </summary>
 /// <param name="action">How to manipulate the hold on the call (default to ActionEnum.Toggle).</param>
 public MetaflowsHoldControl(ActionEnum?action = ActionEnum.Toggle)
 {
     // use default value if no "action" provided
     if (action == null)
     {
         this.Action = ActionEnum.Toggle;
     }
     else
     {
         this.Action = action;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SignatureStatusChangedNotification" /> class.
 /// </summary>
 /// <param name="status">status.</param>
 /// <param name="group">group.</param>
 /// <param name="action">action.</param>
 /// <param name="dst">dst.</param>
 /// <param name="fillableForm">fillableForm.</param>
 /// <param name="signature">signature.</param>
 /// <param name="signer">signer.</param>
 /// <param name="document">document.</param>
 /// <param name="automatic">automatic.</param>
 /// <param name="page">page.</param>
 public SignatureStatusChangedNotification(StatusEnum?status = default(StatusEnum?), int group = default(int), ActionEnum?action = default(ActionEnum?), SignatureStatusChangedNotificationDst dst = default(SignatureStatusChangedNotificationDst), FillableForm fillableForm = default(FillableForm), int signature = default(int), string signer = default(string), SignatureStatusChangedNotificationDocument document = default(SignatureStatusChangedNotificationDocument), bool automatic = default(bool), int page = default(int))
 {
     this.Status       = status;
     this.Group        = group;
     this.Action       = action;
     this.Dst          = dst;
     this.FillableForm = fillableForm;
     this.Signature    = signature;
     this.Signer       = signer;
     this.Document     = document;
     this.Automatic    = automatic;
     this.Page         = page;
 }
Beispiel #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InvoiceAction" /> class.
 /// </summary>
 /// <param name="Action">Action (required).</param>
 /// <param name="Date">Date.</param>
 public InvoiceAction(ActionEnum?Action = null, string Date = null)
 {
     // to ensure "Action" is required (not null)
     if (Action == null)
     {
         throw new InvalidDataException("Action is a required property for InvoiceAction and cannot be null");
     }
     else
     {
         this.Action = Action;
     }
     this.Date = Date;
 }
Beispiel #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeLog" /> class.
 /// </summary>
 /// <param name="Action">Action.</param>
 /// <param name="CreationDate">CreationDate.</param>
 /// <param name="CredentialId">CredentialId.</param>
 /// <param name="CredentialLogin">CredentialLogin.</param>
 /// <param name="CredentialName">CredentialName.</param>
 /// <param name="Id">Id.</param>
 /// <param name="JsonAfter">JsonAfter.</param>
 /// <param name="JsonBefore">JsonBefore.</param>
 /// <param name="ObjectId">ObjectId.</param>
 /// <param name="ObjectType">ObjectType.</param>
 /// <param name="Parent">Parent.</param>
 public ChangeLog(ActionEnum?Action = default(ActionEnum?), DateTime?CreationDate = default(DateTime?), long?CredentialId = default(long?), string CredentialLogin = default(string), string CredentialName = default(string), long?Id = default(long?), string JsonAfter = default(string), string JsonBefore = default(string), long?ObjectId = default(long?), ObjectTypeEnum?ObjectType = default(ObjectTypeEnum?), ChangeLog Parent = default(ChangeLog))
 {
     this.Action          = Action;
     this.CreationDate    = CreationDate;
     this.CredentialId    = CredentialId;
     this.CredentialLogin = CredentialLogin;
     this.CredentialName  = CredentialName;
     this.Id         = Id;
     this.JsonAfter  = JsonAfter;
     this.JsonBefore = JsonBefore;
     this.ObjectId   = ObjectId;
     this.ObjectType = ObjectType;
     this.Parent     = Parent;
 }