public XMLMsgComponent(string name, bool req, TypeEnum type ) { Name = name; Required = req; SubComponents = new List<XMLMsgComponent>(); ComponentType = type; }
/// <summary> /// Returns the bigger type enum. /// </summary> /// <param name="type1"></param> /// <param name="type2"></param> /// <returns></returns> public static TypeEnum GetBiggerType(TypeEnum type1, TypeEnum type2) { if (IsBiggerThan(type1, type2)) return type1; else return type2; }
public static string ToDefaultValue(TypeEnum type) { switch (type) { case TypeEnum.BOOL: return "false"; case TypeEnum.CHAR: case TypeEnum.SHORT: case TypeEnum.INT: case TypeEnum.LONG: case TypeEnum.INT64: case TypeEnum.FLOAT: case TypeEnum.DOUBLE: return "0"; case TypeEnum.STRING: return "\"\""; case TypeEnum.BIN: return ""; case TypeEnum.ENTITY_ID: return "INVALID_ENTITY_ID"; case TypeEnum.DATA_ID: return "0"; case TypeEnum.DATA_POS: return ""; } throw new InvalidOperationException("기본값이 정의되지 않은 Type입니다 (" + type + ")"); }
public Variable(string name, TypeEnum type, PhysicalColumn.DataTypeEnum _dataType) { Name = name; Type = type; dataType = _dataType; Tree.VariableL.Add(this); }
/// <summary> /// Constructor. /// </summary> public MethodTracerItem(TypeEnum itemType, TracerItem.PriorityEnum priority, string message, MethodBase methodInfo, string threadName, string threadId) : base(itemType, priority, message) { _methodBase = methodInfo; _threadId = threadId; _threadName = threadName; }
public MethodInfo(MethodBase aMethodBase, UInt32 aUID, TypeEnum aType, MethodInfo aPlugMethod) : this(aMethodBase, aUID, aType, aPlugMethod, false) { //MethodBase = aMethodBase; //UID = aUID; //Type = aType; //PlugMethod = aPlugMethod; }
public MonsterAttack(string name, string image, int effect, TypeEnum type, AttackTypeEnum attackType) { Name = name; Image = image; Effect = effect; Type = type; AttackType = attackType; }
/// <summary> /// /// </summary> public TracerItem(TypeEnum itemType, DateTime time, PriorityEnum priority, string message) { _priority = priority; _fullType = itemType; _itemTypes = GeneralHelper.GetCombinedEnumValues(itemType).ToArray(); _dateTime = time; _message = message; }
/// <summary> /// /// </summary> public TracerItem(TypeEnum itemType, PriorityEnum priority, string message) { _priority = priority; _fullType = itemType; _itemTypes = GeneralHelper.GetCombinedEnumValues(itemType).ToArray(); _dateTime = DateTime.Now; _applicationTick = GeneralHelper.ApplicationStopwatchTicks; _message = message; }
//constructor public Cmd(TypeEnum type, MemAddr addr, int pid, Req req, List<Cmd> cmd_q) { valid = true; this.pid = pid; this.addr = addr; this.type = type; this.req = req; this.cmd_q = cmd_q; }
public Declare(string name, TypeEnum type) { this.type = new TypeIdentifier { TypeEnum = type, TypeName = type.ToString() }; this.name = name; }
public ListBoxCGItem(int id, string timestart, string clipid, string display1, string display2, TimeSpan lengthofclip, TypeEnum type, WhatNextEnum whatnext, int inframes, int outframes) : base(id, timestart) { this.clipID = clipid; this.display1 = display1; this.display2 = display2; this.lengthOfClip = lengthofclip; this.type = type; this._whatnext = whatnext; this.inFrames = inframes; this.outFrames = outframes; }
public NotificatorClientDTO(string clientName, int projectId, string projectName, PriorityEnum priority, TypeEnum type, string shortDescription, string detailedDescription) { ClientName = clientName; ProjectId = projectId; ProjectName = projectName; Priority = priority; Type = type; ShortDescription = shortDescription; DetailedDescription = detailedDescription; }
public Monster(string name, TypeEnum type, string image, int id, string info) { this.Name = name; this.Type = type; this.Image = image; this.ID = id; monsterAttackList = new MonsterAttckList(); mmp = new MonsterMapPoint(); mmp.DataContext = this; Info = info; PlayerMonster = false; this.ImageBackground = "http://www.intrawallpaper.com/static/images/abstract-mosaic-background.png"; }
public Monster(int ID, string name, TypeEnum type, string image, string info, int level = 0, int live = 0, int exp = 0, int attack = 0, int def = 0, string surname = null) : this(name, type, image, ID, info) { if (level != 0) this.PlayerMonster = true; this.Level = level; this.Life = live; this.Exp = exp; this.Attack = attack; this.Defence = def; this.Surname = surname; }
/// <summary> /// /// </summary> /// <param name="typeEnum"></param> /// <param name="dayOfWeek"></param> /// <param name="begin"></param> /// <param name="end"></param> private TimeStandard(TypeEnum typeEnum, DateTime begin, DateTime end, TimeSpan normalBeginTimeSpan, TimeSpan normalEndTimeSpan) { Debug.Assert(end >= begin); this._typeEnum = typeEnum; this._begin = begin; this._end = end; this._middle = this._begin + TimeSpan.FromSeconds((this._end - this._begin).TotalSeconds / 2); this.NormalBeginTimeSpan = normalBeginTimeSpan; this.NormalEndTimeSpan = normalEndTimeSpan; }
public static string GetKeywordFromEnum(TypeEnum type) { switch (type) { case TypeEnum.Class: return "class"; case TypeEnum.Struct: return "struct"; case TypeEnum.Enum: return "enum"; case TypeEnum.Interface: return "interface"; } throw new NtegrityException("Unable to determine keyword for TypeEnum"); }
public MethodInfo(MethodBase aMethodBase, UInt32 aUID, TypeEnum aType, MethodInfo aPlugMethod, bool isInlineAssembler) { MethodBase = aMethodBase; UID = aUID; Type = aType; PlugMethod = aPlugMethod; IsInlineAssembler = isInlineAssembler; Object[] attribs = this.MethodBase.GetCustomAttributes(typeof(Cosmos.IL2CPU.Plugs.DebugStubAttribute), false); if (attribs.Length > 0) { Cosmos.IL2CPU.Plugs.DebugStubAttribute attrib = attribs[0] as Cosmos.IL2CPU.Plugs.DebugStubAttribute; DebugStubOff = attrib.Off; } }
/// <summary> /// Pushes the value converted to the given type. /// </summary> /// <param name="value"></param> /// <param name="type"></param> public Push(object value, TypeEnum type) { AccessMode = ValueAccessModes.Constant; this.type = type; if (type == TypeEnum.Undefined) { this.value = ValueFactory.Create(value); } else { this.value = ValueFactory.CreateValue(type); BaseType param = ValueFactory.Create(value); this.value.Assign(param); } }
public ListBoxVideoItem(int id, string timestart, string clipid, string display1, string display2, TimeSpan lengthofclip, TypeEnum type, WhatNextEnum whatnext, int inframes, int outframes, Image itemImage, VideoCatergoryEnum category, TransitionType segue, Int32 seglength, string clipfilename) : base(id, timestart) { this.clipID = clipid; this.display1 = display1; this.display2 = display2; this.lengthOfClip = lengthofclip; this.type = type; this._whatnext = whatnext; this.inFrames = inframes; this.outFrames = outframes; this.itemImage = itemImage; this.Catergory = category; this.Segue = segue; this.SegLength = seglength; this.ClipFilename = clipfilename; }
internal static string GetImageType(TypeEnum type) { switch (type) { case (TypeEnum.FIRE): return "ms-appx:///Assets/Type/fire.png"; case (TypeEnum.WATHER): return "ms-appx:///Assets/Type/water.png"; case (TypeEnum.GRASS): return "ms-appx:///Assets/Type/grass.png"; case (TypeEnum.DIRT): return "ms-appx:///Assets/Type/dirt.png"; case (TypeEnum.ELEC): return "ms-appx:///Assets/Type/elec.png"; } return "#FFFFFFFF"; }
public static bool IsPrimitiveType(TypeEnum type) { switch (type) { case TypeEnum.BOOL: case TypeEnum.CHAR: case TypeEnum.SHORT: case TypeEnum.INT: case TypeEnum.LONG: case TypeEnum.INT64: case TypeEnum.FLOAT: case TypeEnum.DOUBLE: case TypeEnum.ENTITY_ID: case TypeEnum.DATA_ID: return true; } return false; }
internal static string GetTypeColor(TypeEnum type, bool trasp) { switch (type) { case (TypeEnum.FIRE): return "#99F44336"; case (TypeEnum.WATHER): return "#992196F3"; case (TypeEnum.GRASS): return "#994CAF50"; case (TypeEnum.DIRT): return "#99795548"; case (TypeEnum.ELEC): return "#99FFEB3B"; } return "#FFFFFFFF"; }
public ImageValueEditor(PropertyItem item, ImageAttribute imageAttribute) : base(item) { _typeEnum = TypeEnum.Other; _imageAttribute = imageAttribute; if (null != _imageAttribute) { if (typeof(string).IsAssignableFrom(item.PropertyInfo.PropertyType)) { _typeEnum = TypeEnum.String; } else if (typeof(byte[]).IsAssignableFrom(item.PropertyInfo.PropertyType)) { _typeEnum = TypeEnum.ByteArray; } Layout(); } UpdateValue(item.Value); }
public static string ToDeclareTypeName(TypeEnum type) { switch (type) { case TypeEnum.INT64: return "__int64"; case TypeEnum.STRING: return "std::string"; case TypeEnum.BIN: return "msg::bin_t"; case TypeEnum.ENTITY_ID: return "entity_id_t"; case TypeEnum.DATA_ID: return "data::id_t"; case TypeEnum.DATA_POS: return "data::xyz_t"; case TypeEnum.DATA_EXPRESSION: return "double"; } return type.ToString().ToLower(); }
partial void OnLoaded() { if (this.ID == BooleanType) { Value = TypeEnum.Boolean; } else if (this.ID == IntegerType) { Value = TypeEnum.Integer; } else if (this.ID == DateTimeType) { Value = TypeEnum.Datetime; } else if (this.ID == DecimalType) { Value = TypeEnum.Decimal; } else { Value = TypeEnum.Default; } }
public Node() { ++Node.cntId; id = Node.cntId; Tree.NodeL.Add(this); LabelTop = new Label(); LabelBotton = new Label(); this.BackColor = System.Drawing.Color.GhostWhite; this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Font = new System.Drawing.Font("Lucida Console", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.Name = "Node ID " + id; this.Size = new System.Drawing.Size(100, 100); // this.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.Multiline = true; this.WordWrap = false; this.Click +=new EventHandler(Node_Click); this.MouseDown+=new MouseEventHandler(Node_MouseDown); this.MouseUp+=new MouseEventHandler(Node_MouseUp); this.MouseMove+=new MouseEventHandler(Node_MouseMove); this.Visible = false; this.ForeColor = Color.Black; this.ReadOnly = true; this.Cursor = System.Windows.Forms.Cursors.Arrow; LabelTop.AutoSize = true; LabelTop.Font = new System.Drawing.Font("Tahoma", 10.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); LabelTop.ForeColor = Color.DarkViolet; LabelBotton.AutoSize = true; LabelBotton.Font = new System.Drawing.Font("Tahoma", 12.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); LabelBotton.ForeColor = Color.DarkBlue; FrmMain.SFrmMain.PbBase.Controls.Add(this); FrmMain.SFrmMain.PbBase.Controls.Add(this.LabelTop); FrmMain.SFrmMain.PbBase.Controls.Add(this.LabelBotton); this.type=Node.TypeEnum.Leaf; }
/// <summary> /// Initializes a new instance of the <see cref="RobotWithLicenseDto" /> class. /// </summary> /// <param name="License">The attached license.</param> /// <param name="LicenseKey">The key is automatically generated from the server for the Robot machine. <para />For the robot to work, the same key must exist on both the robot and Orchestrator. <para />All robots on a machine must have the same license key in order to register correctly..</param> /// <param name="MachineName">The name of the machine a Robot is hosted on..</param> /// <param name="MachineId">The Id of the machine a Robot is hosted on.</param> /// <param name="Name">A custom name for the robot. (required).</param> /// <param name="Username">The machine username. If the user is under a domain, you are required to also specify it in a DOMAIN\\username format. <para />Note: You must use short domain names, such as desktop\\administrator and NOT desktop.local/administrator. (required).</param> /// <param name="Description">Used to add additional information about a robot in order to better identify it..</param> /// <param name="Version">The Robot's Version..</param> /// <param name="Type">The Robot type. (required).</param> /// <param name="HostingType">The Robot hosting type (Standard / Floating). (required).</param> /// <param name="Password">The Windows password associated with the machine username..</param> /// <param name="CredentialType">The robot credentials type (Default/ SmartCard).</param> /// <param name="Environments">The collection of environments the robot is part of..</param> /// <param name="RobotEnvironments">The comma separated textual representation of environment names the robot is part of..</param> /// <param name="ExecutionSettings">A collection of key value pairs containing execution settings for this robot..</param> /// <param name="Id">Id.</param> public RobotWithLicenseDto(RobotLicenseDto License = default(RobotLicenseDto), string LicenseKey = default(string), string MachineName = default(string), long?MachineId = default(long?), string Name = default(string), string Username = default(string), string Description = default(string), string Version = default(string), TypeEnum Type = default(TypeEnum), HostingTypeEnum HostingType = default(HostingTypeEnum), string Password = default(string), CredentialTypeEnum?CredentialType = default(CredentialTypeEnum?), List <EnvironmentDto> Environments = default(List <EnvironmentDto>), string RobotEnvironments = default(string), Dictionary <string, Object> ExecutionSettings = default(Dictionary <string, Object>), long?Id = default(long?)) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for RobotWithLicenseDto and cannot be null"); } else { this.Name = Name; } // to ensure "Username" is required (not null) if (Username == null) { throw new InvalidDataException("Username is a required property for RobotWithLicenseDto and cannot be null"); } else { this.Username = Username; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for RobotWithLicenseDto and cannot be null"); } else { this.Type = Type; } // to ensure "HostingType" is required (not null) if (HostingType == null) { throw new InvalidDataException("HostingType is a required property for RobotWithLicenseDto and cannot be null"); } else { this.HostingType = HostingType; } this.License = License; this.LicenseKey = LicenseKey; this.MachineName = MachineName; this.MachineId = MachineId; this.Description = Description; this.Version = Version; this.Password = Password; this.CredentialType = CredentialType; this.Environments = Environments; this.RobotEnvironments = RobotEnvironments; this.ExecutionSettings = ExecutionSettings; this.Id = Id; }
public void SetBREPipelineFrameworkContextProperty(BPFEnum propertyName, object value, ContextInstructionTypeEnum promotion, TypeEnum type) { Instruction instruction = new Instruction(propertyName.ToString(), value, promotion, type); base.AddInstruction(instruction); }
public int this[TypeEnum a] { get { return(this[(int)a]); } private set { this[(int)a] = value; } }
/// <summary> /// Initializes a new instance of the <see cref="ImpersonalAccountRow" /> class. /// </summary> /// <param name="number">impersonal account number (required).</param> /// <param name="name">impersonal account name (required).</param> /// <param name="type">The account type (Kontoart). (required).</param> /// <param name="category">The account category (Kontokennzeichen)..</param> /// <param name="vatCode">vatCode (Steuerkennzeichen), the allowable values are the standard values for SKR03, see vat matrix in Scopevisio client if you have different settings in your chart of accounts..</param> /// <param name="vatKey">vatKey (Steuerschlüssel), the allowable values are the standard values for SKR03, see vat matrix in Scopevisio client if you have different settings in your chart of accounts..</param> /// <param name="fixVatKey">is the vat key fixed or can another vat key be used when post to this account (default to false).</param> /// <param name="deactivated">it is not possible to post to this account (default to false).</param> /// <param name="directPosting">is direct posting possible (default to false).</param> /// <param name="discountAccount">discount account.</param> /// <param name="isFinanceAccount">is finance account (default to false).</param> /// <param name="subjectToClearing">is it possible to use the account for clearing (default to false).</param> /// <param name="dimensions">dimensions.</param> public ImpersonalAccountRow(string number = default(string), string name = default(string), TypeEnum type = default(TypeEnum), CategoryEnum?category = default(CategoryEnum?), VatCodeEnum?vatCode = default(VatCodeEnum?), VatKeyEnum?vatKey = default(VatKeyEnum?), bool fixVatKey = false, bool deactivated = false, bool directPosting = false, string discountAccount = default(string), bool isFinanceAccount = false, bool subjectToClearing = false, List <DimensionForm> dimensions = default(List <DimensionForm>)) { // to ensure "number" is required (not null) if (number == null) { throw new InvalidDataException("number is a required property for ImpersonalAccountRow and cannot be null"); } else { this.Number = number; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for ImpersonalAccountRow and cannot be null"); } else { this.Name = name; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for ImpersonalAccountRow and cannot be null"); } else { this.Type = type; } this.Category = category; this.VatCode = vatCode; this.VatKey = vatKey; // use default value if no "fixVatKey" provided if (fixVatKey == null) { this.FixVatKey = false; } else { this.FixVatKey = fixVatKey; } // use default value if no "deactivated" provided if (deactivated == null) { this.Deactivated = false; } else { this.Deactivated = deactivated; } // use default value if no "directPosting" provided if (directPosting == null) { this.DirectPosting = false; } else { this.DirectPosting = directPosting; } this.DiscountAccount = discountAccount; // use default value if no "isFinanceAccount" provided if (isFinanceAccount == null) { this.IsFinanceAccount = false; } else { this.IsFinanceAccount = isFinanceAccount; } // use default value if no "subjectToClearing" provided if (subjectToClearing == null) { this.SubjectToClearing = false; } else { this.SubjectToClearing = subjectToClearing; } this.Dimensions = dimensions; }
private bool IsNumber(TypeEnum t) { return(t == TypeEnum.Integer || t == TypeEnum.Real); }
/// <summary> /// Initializes a new instance of the <see cref="PersonalDocumentData" /> class. /// </summary> /// <param name="expirationDate">The expiration date of the document. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31)..</param> /// <param name="issuerCountry">The two-character country code of the issuer. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL')..</param> /// <param name="issuerState">The state issued the document (if applicable).</param> /// <param name="number">The number of the document. Delete the given type if the value empty. (required).</param> /// <param name="type">The type of the document. More then one item pert type does not allowed. Valid values: ID, PASSPORT, VISA, DRIVINGLICENSE (required).</param> public PersonalDocumentData(string expirationDate = default(string), string issuerCountry = default(string), string issuerState = default(string), string number = default(string), TypeEnum type = default(TypeEnum)) { // to ensure "number" is required (not null) if (number == null) { throw new InvalidDataException("number is a required property for PersonalDocumentData and cannot be null"); } else { this.Number = number; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for PersonalDocumentData and cannot be null"); } else { this.Type = type; } this.ExpirationDate = expirationDate; this.IssuerCountry = issuerCountry; this.IssuerState = issuerState; }
public override void fReplace(TextReader rin, SearchType searchType, String replaceString) { if (rin == null || searchType == null || string.IsNullOrEmpty(replaceString) || xmlPartEnum == XMLPartEnum.UNKNOWN) { return; } string newEndTag = null; string oldEndTag = null; switch (xmlPartEnum) { case XMLPartEnum.ELEMENT_NAME: if (!searchType.searchString.Contains("<") || !replaceString.Contains("<")) { return; } StringBuilder sb = new StringBuilder(replaceString); sb.Insert(1, '/'); newEndTag = sb.ToString(); sb = new StringBuilder(searchType.searchString); sb.Insert(1, '/'); oldEndTag = sb.ToString(); break; case XMLPartEnum.ATTRIBUTE: if (!searchType.searchString.Contains("=") || !replaceString.Contains("=")) { return; } break; default: break; } //Console.WriteLine("oldEndTab: " + oldEndTag + ", newEndTag: " + newEndTag); TypeEnum typeEnum = searchType.typeEnum; using (TextWriter tw = File.CreateText(getOutPath(path))) { while (rin.Peek() > -1) { string line = rin.ReadLine(); switch (typeEnum) { case TypeEnum.PHRASE: if (line.Contains(searchType.searchString)) { phraseReplace(line, searchType.searchString, replaceString, tw); } else if (oldEndTag != null && newEndTag != null && line.Contains(oldEndTag)) { phraseReplace(line, oldEndTag, newEndTag, tw); } else { lineReplace(line, tw); } break; case TypeEnum.PATTERN: Regex rgx = new Regex(searchType.searchString); if (rgx.IsMatch(line)) { patternReplace(line, searchType.searchString, replaceString, tw); } else if (oldEndTag != null && newEndTag != null) { Regex rx = new Regex(oldEndTag); if (rx.IsMatch(line)) { patternReplace(line, oldEndTag, newEndTag, tw); } else { lineReplace(line, tw); } } else { lineReplace(line, tw); } break; case TypeEnum.WILDCARD: //TODO return; case TypeEnum.VARIABLE: //TODO return; default: break; } } } }
/// <summary> /// Initializes a new instance of the <see cref="BlockOperation" /> class. /// </summary> /// <param name="error">The error message, if any (required).</param> /// <param name="estimatedSecondsRemaining">The estimated amount of time remaining until this block operation is complete (in seconds) (required).</param> /// <param name="max">The maximum block belonging to this operation (required).</param> /// <param name="min">The minimum block belonging to this operation (required).</param> /// <param name="progress">The current progress of the block operation, from 0 (=started) to 1 (=finished) (required).</param> /// <param name="status">The current status of the block operation (required).</param> /// <param name="type">The type of block operation (required).</param> /// <param name="uuid">The unique UUID identifying this block operation (required).</param> /// <param name="world">The world in which this block operation is running (required).</param> public BlockOperation(string error = default(string), float?estimatedSecondsRemaining = default(float?), Vector3i max = default(Vector3i), Vector3i min = default(Vector3i), float?progress = default(float?), StatusEnum status = default(StatusEnum), TypeEnum type = default(TypeEnum), Guid?uuid = default(Guid?), World world = default(World)) { // to ensure "error" is required (not null) if (error == null) { throw new InvalidDataException("error is a required property for BlockOperation and cannot be null"); } else { this.Error = error; } // to ensure "estimatedSecondsRemaining" is required (not null) if (estimatedSecondsRemaining == null) { throw new InvalidDataException("estimatedSecondsRemaining is a required property for BlockOperation and cannot be null"); } else { this.EstimatedSecondsRemaining = estimatedSecondsRemaining; } // to ensure "max" is required (not null) if (max == null) { throw new InvalidDataException("max is a required property for BlockOperation and cannot be null"); } else { this.Max = max; } // to ensure "min" is required (not null) if (min == null) { throw new InvalidDataException("min is a required property for BlockOperation and cannot be null"); } else { this.Min = min; } // to ensure "progress" is required (not null) if (progress == null) { throw new InvalidDataException("progress is a required property for BlockOperation and cannot be null"); } else { this.Progress = progress; } // to ensure "status" is required (not null) if (status == null) { throw new InvalidDataException("status is a required property for BlockOperation and cannot be null"); } else { this.Status = status; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for BlockOperation and cannot be null"); } else { this.Type = type; } // to ensure "uuid" is required (not null) if (uuid == null) { throw new InvalidDataException("uuid is a required property for BlockOperation and cannot be null"); } else { this.Uuid = uuid; } // to ensure "world" is required (not null) if (world == null) { throw new InvalidDataException("world is a required property for BlockOperation and cannot be null"); } else { this.World = world; } }
public _MethodInfo(MethodBase aMethodBase, UInt32 aUID, TypeEnum aType, _MethodInfo aPlugMethod, Type aMethodAssembler) : this(aMethodBase, aUID, aType, aPlugMethod, false) { MethodAssembler = aMethodAssembler; }
/// <summary> /// Initializes a new instance of the <see cref="MultipolygonGeoJSON" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="coordinates">coordinates (required).</param> public MultipolygonGeoJSON(TypeEnum type = default(TypeEnum), List <List <List <List <decimal> > > > coordinates = default(List <List <List <List <decimal> > > >)) { this.Type = type; // to ensure "coordinates" is required (not null) this.Coordinates = coordinates ?? throw new ArgumentNullException("coordinates is a required property for MultipolygonGeoJSON and cannot be null"); }
internal BoxedTypeEnum(TypeEnum typeEnum) { TypeEnum = typeEnum; }
private bool IsAddableType(TypeEnum t) { return(t == TypeEnum.Integer || t == TypeEnum.Real || t == TypeEnum.String || t == TypeEnum.Boolean); }
public byte Size; // Size - 1 byte - Indicates number of packet(s) following the Command Packet public CommandPacket(CommandEnum command, TypeEnum type) { Reserved_1 = 0x16; Reserved_2 = 0x16; Reserved_3 = 0x16; Reserved_4 = 0x16; this.Command = command; this.Type = type; Size = 0; Reserved2 = 0; }
/// <summary> /// Constructor. /// </summary> public MethodTracerItem(TypeEnum itemType, TracerItem.PriorityEnum priority, string message, MethodBase methodInfo) : base(itemType, priority, message) { _methodBase = methodInfo; }
/// <summary> /// Initializes a new instance of the <see cref="GetCampaignOverview" /> class. /// </summary> /// <param name="id">ID of the campaign (required).</param> /// <param name="name">Name of the campaign (required).</param> /// <param name="subject">Subject of the campaign. Only available if `abTesting` flag of the campaign is `false`.</param> /// <param name="type">Type of campaign (required).</param> /// <param name="status">Status of the campaign (required).</param> /// <param name="scheduledAt">UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ).</param> /// <param name="abTesting">Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled..</param> /// <param name="subjectA">Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="subjectB">Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="splitRule">The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="winnerCriteria">Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="winnerDelay">The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="sendAtBestTime">It is true if you have chosen to send your campaign at best time, otherwise it is false.</param> public GetCampaignOverview(long?id = default(long?), string name = default(string), string subject = default(string), TypeEnum type = default(TypeEnum), StatusEnum status = default(StatusEnum), DateTime?scheduledAt = default(DateTime?), bool?abTesting = default(bool?), string subjectA = default(string), string subjectB = default(string), int?splitRule = default(int?), string winnerCriteria = default(string), int?winnerDelay = default(int?), bool?sendAtBestTime = default(bool?)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for GetCampaignOverview and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for GetCampaignOverview and cannot be null"); } else { this.Name = name; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for GetCampaignOverview and cannot be null"); } else { this.Type = type; } // to ensure "status" is required (not null) if (status == null) { throw new InvalidDataException("status is a required property for GetCampaignOverview and cannot be null"); } else { this.Status = status; } this.Subject = subject; this.ScheduledAt = scheduledAt; this.AbTesting = abTesting; this.SubjectA = subjectA; this.SubjectB = subjectB; this.SplitRule = splitRule; this.WinnerCriteria = winnerCriteria; this.WinnerDelay = winnerDelay; this.SendAtBestTime = sendAtBestTime; }
/// <summary> /// Initializes a new instance of the <see cref="InvoiceInvoiceContents" /> class. /// </summary> /// <param name="id">請求内容ID (required).</param> /// <param name="order">順序 (required).</param> /// <param name="type">行の種類 (required).</param> /// <param name="qty">数量 (required).</param> /// <param name="unit">単位 (required).</param> /// <param name="unitPrice">単価 (required).</param> /// <param name="amount">金額 (required).</param> /// <param name="vat">消費税額 (required).</param> /// <param name="reducedVat">軽減税率税区分(true: 対象、false: 対象外) (required).</param> /// <param name="description">備考 (required).</param> /// <param name="accountItemId">勘定科目ID (required).</param> /// <param name="accountItemName">勘定科目名 (required).</param> /// <param name="taxCode">税区分コード (required).</param> /// <param name="itemId">品目ID (required).</param> /// <param name="itemName">品目 (required).</param> /// <param name="sectionId">部門ID (required).</param> /// <param name="sectionName">部門 (required).</param> /// <param name="tagIds">tagIds (required).</param> /// <param name="tagNames">tagNames (required).</param> /// <param name="segment1TagId">セグメント1ID.</param> /// <param name="segment1TagName">セグメント1ID.</param> /// <param name="segment2TagId">セグメント2ID.</param> /// <param name="segment2TagName">セグメント2.</param> /// <param name="segment3TagId">セグメント3ID.</param> /// <param name="segment3TagName">セグメント3.</param> public InvoiceInvoiceContents(int id = default(int), int order = default(int), TypeEnum type = default(TypeEnum), decimal qty = default(decimal), string unit = default(string), decimal unitPrice = default(decimal), int amount = default(int), int vat = default(int), bool reducedVat = default(bool), string description = default(string), int?accountItemId = default(int?), string accountItemName = default(string), int?taxCode = default(int?), int?itemId = default(int?), string itemName = default(string), int?sectionId = default(int?), string sectionName = default(string), List <int> tagIds = default(List <int>), List <string> tagNames = default(List <string>), int?segment1TagId = default(int?), string segment1TagName = default(string), int?segment2TagId = default(int?), string segment2TagName = default(string), int?segment3TagId = default(int?), string segment3TagName = default(string)) { this.Id = id; this.Order = order; this.Type = type; this.Qty = qty; // to ensure "unit" is required (not null) this.Unit = unit ?? throw new ArgumentNullException("unit is a required property for InvoiceInvoiceContents and cannot be null");; this.UnitPrice = unitPrice; this.Amount = amount; this.Vat = vat; this.ReducedVat = reducedVat; // to ensure "description" is required (not null) this.Description = description ?? throw new ArgumentNullException("description is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "accountItemId" is required (not null) this.AccountItemId = accountItemId ?? throw new ArgumentNullException("accountItemId is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "accountItemName" is required (not null) this.AccountItemName = accountItemName ?? throw new ArgumentNullException("accountItemName is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "taxCode" is required (not null) this.TaxCode = taxCode ?? throw new ArgumentNullException("taxCode is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "itemId" is required (not null) this.ItemId = itemId ?? throw new ArgumentNullException("itemId is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "itemName" is required (not null) this.ItemName = itemName ?? throw new ArgumentNullException("itemName is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "sectionId" is required (not null) this.SectionId = sectionId ?? throw new ArgumentNullException("sectionId is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "sectionName" is required (not null) this.SectionName = sectionName ?? throw new ArgumentNullException("sectionName is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "tagIds" is required (not null) this.TagIds = tagIds ?? throw new ArgumentNullException("tagIds is a required property for InvoiceInvoiceContents and cannot be null");; // to ensure "tagNames" is required (not null) this.TagNames = tagNames ?? throw new ArgumentNullException("tagNames is a required property for InvoiceInvoiceContents and cannot be null");; this.Segment1TagId = segment1TagId; this.Segment1TagName = segment1TagName; this.Segment2TagId = segment2TagId; this.Segment2TagName = segment2TagName; this.Segment3TagId = segment3TagId; this.Segment3TagName = segment3TagName; }
/// <summary> /// Initializes a new instance of the <see cref="ElementSummary" /> class. /// </summary> /// <param name="Id">The element's id (required).</param> /// <param name="Description">The element's description (required).</param> /// <param name="Type">The element's type (required).</param> /// <param name="SchemaId">The element's schema id - if it has one. This is the key field into the PeopleStage schema tables such as ProcessDefinition. Published elements should have a schema id..</param> /// <param name="SchemaIdType">The type of the element's schema id - if it has a schema id. Published elements should have a schema id and type..</param> /// <param name="ParentId">The parent of this element's id (required).</param> /// <param name="ParentType">The parent of this element's type (required).</param> public ElementSummary(string Id = default(string), string Description = default(string), TypeEnum Type = default(TypeEnum), int?SchemaId = default(int?), SchemaIdTypeEnum?SchemaIdType = default(SchemaIdTypeEnum?), string ParentId = default(string), ParentTypeEnum ParentType = default(ParentTypeEnum)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for ElementSummary and cannot be null"); } else { this.Id = Id; } // to ensure "Description" is required (not null) if (Description == null) { throw new InvalidDataException("Description is a required property for ElementSummary and cannot be null"); } else { this.Description = Description; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for ElementSummary and cannot be null"); } else { this.Type = Type; } // to ensure "ParentId" is required (not null) if (ParentId == null) { throw new InvalidDataException("ParentId is a required property for ElementSummary and cannot be null"); } else { this.ParentId = ParentId; } // to ensure "ParentType" is required (not null) if (ParentType == null) { throw new InvalidDataException("ParentType is a required property for ElementSummary and cannot be null"); } else { this.ParentType = ParentType; } this.SchemaId = SchemaId; this.SchemaIdType = SchemaIdType; }
private Task <List <Log> > SearchLogsByModelTypeAndIdAsync(TypeEnum type, int id) { return(_im.FindLogsByModelTypeAndId(type, id)); }
/// <summary> /// Initializes a new instance of the <see cref="DealCreateParams" /> class. /// </summary> /// <param name="companyId">事業所ID (required).</param> /// <param name="details">details (required).</param> /// <param name="dueDate">支払期日(yyyy-mm-dd).</param> /// <param name="issueDate">発生日 (yyyy-mm-dd) (required).</param> /// <param name="partnerCode">取引先コード.</param> /// <param name="partnerId">取引先ID.</param> /// <param name="payments">支払行一覧(配列):未指定の場合、未決済の取引を作成します。.</param> /// <param name="receiptIds">証憑ファイルID(配列).</param> /// <param name="refNumber">管理番号.</param> /// <param name="type">収支区分 (収入: income, 支出: expense) (required).</param> public DealCreateParams(int companyId = default(int), List <DealCreateParamsDetails> details = default(List <DealCreateParamsDetails>), string dueDate = default(string), string issueDate = default(string), string partnerCode = default(string), int partnerId = default(int), List <DealCreateParamsPayments> payments = default(List <DealCreateParamsPayments>), List <int> receiptIds = default(List <int>), string refNumber = default(string), TypeEnum type = default(TypeEnum)) { this.CompanyId = companyId; // to ensure "details" is required (not null) this.Details = details ?? throw new ArgumentNullException("details is a required property for DealCreateParams and cannot be null"); // to ensure "issueDate" is required (not null) this.IssueDate = issueDate ?? throw new ArgumentNullException("issueDate is a required property for DealCreateParams and cannot be null"); this.Type = type; this.DueDate = dueDate; this.PartnerCode = partnerCode; this.PartnerId = partnerId; this.Payments = payments; this.ReceiptIds = receiptIds; this.RefNumber = refNumber; }
/// <summary> /// Initializes a new instance of the <see cref="GetEmailCampaign" /> class. /// </summary> /// <param name="id">ID of the campaign (required).</param> /// <param name="name">Name of the campaign (required).</param> /// <param name="subject">Subject of the campaign. Only available if `abTesting` flag of the campaign is `false`.</param> /// <param name="type">Type of campaign (required).</param> /// <param name="status">Status of the campaign (required).</param> /// <param name="scheduledAt">UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ).</param> /// <param name="abTesting">Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled..</param> /// <param name="subjectA">Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="subjectB">Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="splitRule">The size of your ab-test groups. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="winnerCriteria">Criteria for the winning version. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="winnerDelay">The duration of the test in hours at the end of which the winning version will be sent. Only available if `abTesting` flag of the campaign is `true`.</param> /// <param name="sendAtBestTime">It is true if you have chosen to send your campaign at best time, otherwise it is false.</param> /// <param name="testSent">Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) (required).</param> /// <param name="header">Header of the campaign (required).</param> /// <param name="footer">Footer of the campaign (required).</param> /// <param name="sender">sender (required).</param> /// <param name="replyTo">Email defined as the "Reply to" of the campaign (required).</param> /// <param name="toField">Customisation of the "to" field of the campaign (required).</param> /// <param name="htmlContent">HTML content of the campaign (required).</param> /// <param name="shareLink">Link to share the campaign on social medias.</param> /// <param name="tag">Tag of the campaign (required).</param> /// <param name="createdAt">Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) (required).</param> /// <param name="modifiedAt">UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) (required).</param> /// <param name="inlineImageActivation">Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email..</param> /// <param name="mirrorActive">Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign.</param> /// <param name="recurring">FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times.</param> /// <param name="sentDate">Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent'.</param> /// <param name="recipients">recipients (required).</param> /// <param name="statistics">statistics (required).</param> public GetEmailCampaign(long?id = default(long?), string name = default(string), string subject = default(string), TypeEnum type = default(TypeEnum), StatusEnum status = default(StatusEnum), DateTime?scheduledAt = default(DateTime?), bool?abTesting = default(bool?), string subjectA = default(string), string subjectB = default(string), int?splitRule = default(int?), string winnerCriteria = default(string), int?winnerDelay = default(int?), bool?sendAtBestTime = default(bool?), bool?testSent = default(bool?), string header = default(string), string footer = default(string), GetExtendedCampaignOverviewSender sender = default(GetExtendedCampaignOverviewSender), string replyTo = default(string), string toField = default(string), string htmlContent = default(string), string shareLink = default(string), string tag = default(string), DateTime?createdAt = default(DateTime?), DateTime?modifiedAt = default(DateTime?), bool?inlineImageActivation = default(bool?), bool?mirrorActive = default(bool?), bool?recurring = default(bool?), DateTime?sentDate = default(DateTime?), Object recipients = default(Object), Object statistics = default(Object)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for GetEmailCampaign and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for GetEmailCampaign and cannot be null"); } else { this.Name = name; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for GetEmailCampaign and cannot be null"); } else { this.Type = type; } // to ensure "status" is required (not null) if (status == null) { throw new InvalidDataException("status is a required property for GetEmailCampaign and cannot be null"); } else { this.Status = status; } // to ensure "testSent" is required (not null) if (testSent == null) { throw new InvalidDataException("testSent is a required property for GetEmailCampaign and cannot be null"); } else { this.TestSent = testSent; } // to ensure "header" is required (not null) if (header == null) { throw new InvalidDataException("header is a required property for GetEmailCampaign and cannot be null"); } else { this.Header = header; } // to ensure "footer" is required (not null) if (footer == null) { throw new InvalidDataException("footer is a required property for GetEmailCampaign and cannot be null"); } else { this.Footer = footer; } // to ensure "sender" is required (not null) if (sender == null) { throw new InvalidDataException("sender is a required property for GetEmailCampaign and cannot be null"); } else { this.Sender = sender; } // to ensure "replyTo" is required (not null) if (replyTo == null) { throw new InvalidDataException("replyTo is a required property for GetEmailCampaign and cannot be null"); } else { this.ReplyTo = replyTo; } // to ensure "toField" is required (not null) if (toField == null) { throw new InvalidDataException("toField is a required property for GetEmailCampaign and cannot be null"); } else { this.ToField = toField; } // to ensure "htmlContent" is required (not null) if (htmlContent == null) { throw new InvalidDataException("htmlContent is a required property for GetEmailCampaign and cannot be null"); } else { this.HtmlContent = htmlContent; } // to ensure "tag" is required (not null) if (tag == null) { throw new InvalidDataException("tag is a required property for GetEmailCampaign and cannot be null"); } else { this.Tag = tag; } // to ensure "createdAt" is required (not null) if (createdAt == null) { throw new InvalidDataException("createdAt is a required property for GetEmailCampaign and cannot be null"); } else { this.CreatedAt = createdAt; } // to ensure "modifiedAt" is required (not null) if (modifiedAt == null) { throw new InvalidDataException("modifiedAt is a required property for GetEmailCampaign and cannot be null"); } else { this.ModifiedAt = modifiedAt; } // to ensure "recipients" is required (not null) if (recipients == null) { throw new InvalidDataException("recipients is a required property for GetEmailCampaign and cannot be null"); } else { this.Recipients = recipients; } // to ensure "statistics" is required (not null) if (statistics == null) { throw new InvalidDataException("statistics is a required property for GetEmailCampaign and cannot be null"); } else { this.Statistics = statistics; } this.Subject = subject; this.ScheduledAt = scheduledAt; this.AbTesting = abTesting; this.SubjectA = subjectA; this.SubjectB = subjectB; this.SplitRule = splitRule; this.WinnerCriteria = winnerCriteria; this.WinnerDelay = winnerDelay; this.SendAtBestTime = sendAtBestTime; this.ShareLink = shareLink; this.InlineImageActivation = inlineImageActivation; this.MirrorActive = mirrorActive; this.Recurring = recurring; this.SentDate = sentDate; }
/// <summary> /// Initializes a new instance of the <see cref="HeatmapViewProperties" /> class. /// </summary> /// <param name="type">type (required).</param> /// <param name="queries">queries (required).</param> /// <param name="colors">Colors define color encoding of data into a visualization (required).</param> /// <param name="shape">shape (required).</param> /// <param name="note">note (required).</param> /// <param name="showNoteWhenEmpty">If true, will display note when empty (required).</param> /// <param name="xColumn">xColumn (required).</param> /// <param name="yColumn">yColumn (required).</param> /// <param name="xDomain">xDomain (required).</param> /// <param name="yDomain">yDomain (required).</param> /// <param name="xAxisLabel">xAxisLabel (required).</param> /// <param name="yAxisLabel">yAxisLabel (required).</param> /// <param name="xPrefix">xPrefix (required).</param> /// <param name="xSuffix">xSuffix (required).</param> /// <param name="yPrefix">yPrefix (required).</param> /// <param name="ySuffix">ySuffix (required).</param> /// <param name="binSize">binSize (required).</param> public HeatmapViewProperties(TypeEnum type = default(TypeEnum), List <DashboardQuery> queries = default(List <DashboardQuery>), List <string> colors = default(List <string>), ShapeEnum shape = default(ShapeEnum), string note = default(string), bool?showNoteWhenEmpty = default(bool?), string xColumn = default(string), string yColumn = default(string), List <decimal?> xDomain = default(List <decimal?>), List <decimal?> yDomain = default(List <decimal?>), string xAxisLabel = default(string), string yAxisLabel = default(string), string xPrefix = default(string), string xSuffix = default(string), string yPrefix = default(string), string ySuffix = default(string), decimal?binSize = default(decimal?)) : base() { // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for HeatmapViewProperties and cannot be null"); } else { this.Type = type; } // to ensure "queries" is required (not null) if (queries == null) { throw new InvalidDataException("queries is a required property for HeatmapViewProperties and cannot be null"); } else { this.Queries = queries; } // to ensure "colors" is required (not null) if (colors == null) { throw new InvalidDataException("colors is a required property for HeatmapViewProperties and cannot be null"); } else { this.Colors = colors; } // to ensure "shape" is required (not null) if (shape == null) { throw new InvalidDataException("shape is a required property for HeatmapViewProperties and cannot be null"); } else { this.Shape = shape; } // to ensure "note" is required (not null) if (note == null) { throw new InvalidDataException("note is a required property for HeatmapViewProperties and cannot be null"); } else { this.Note = note; } // to ensure "showNoteWhenEmpty" is required (not null) if (showNoteWhenEmpty == null) { throw new InvalidDataException("showNoteWhenEmpty is a required property for HeatmapViewProperties and cannot be null"); } else { this.ShowNoteWhenEmpty = showNoteWhenEmpty; } // to ensure "xColumn" is required (not null) if (xColumn == null) { throw new InvalidDataException("xColumn is a required property for HeatmapViewProperties and cannot be null"); } else { this.XColumn = xColumn; } // to ensure "yColumn" is required (not null) if (yColumn == null) { throw new InvalidDataException("yColumn is a required property for HeatmapViewProperties and cannot be null"); } else { this.YColumn = yColumn; } // to ensure "xDomain" is required (not null) if (xDomain == null) { throw new InvalidDataException("xDomain is a required property for HeatmapViewProperties and cannot be null"); } else { this.XDomain = xDomain; } // to ensure "yDomain" is required (not null) if (yDomain == null) { throw new InvalidDataException("yDomain is a required property for HeatmapViewProperties and cannot be null"); } else { this.YDomain = yDomain; } // to ensure "xAxisLabel" is required (not null) if (xAxisLabel == null) { throw new InvalidDataException("xAxisLabel is a required property for HeatmapViewProperties and cannot be null"); } else { this.XAxisLabel = xAxisLabel; } // to ensure "yAxisLabel" is required (not null) if (yAxisLabel == null) { throw new InvalidDataException("yAxisLabel is a required property for HeatmapViewProperties and cannot be null"); } else { this.YAxisLabel = yAxisLabel; } // to ensure "xPrefix" is required (not null) if (xPrefix == null) { throw new InvalidDataException("xPrefix is a required property for HeatmapViewProperties and cannot be null"); } else { this.XPrefix = xPrefix; } // to ensure "xSuffix" is required (not null) if (xSuffix == null) { throw new InvalidDataException("xSuffix is a required property for HeatmapViewProperties and cannot be null"); } else { this.XSuffix = xSuffix; } // to ensure "yPrefix" is required (not null) if (yPrefix == null) { throw new InvalidDataException("yPrefix is a required property for HeatmapViewProperties and cannot be null"); } else { this.YPrefix = yPrefix; } // to ensure "ySuffix" is required (not null) if (ySuffix == null) { throw new InvalidDataException("ySuffix is a required property for HeatmapViewProperties and cannot be null"); } else { this.YSuffix = ySuffix; } // to ensure "binSize" is required (not null) if (binSize == null) { throw new InvalidDataException("binSize is a required property for HeatmapViewProperties and cannot be null"); } else { this.BinSize = binSize; } }
/// <summary> /// Initializes a new instance of the <see cref="GetCharactersCharacterIdContracts200Ok" /> class. /// </summary> /// <param name="AcceptorId">Who will accept the contract (required).</param> /// <param name="AssigneeId">ID to whom the contract is assigned, can be corporation or character ID (required).</param> /// <param name="Availability">To whom the contract is available (required).</param> /// <param name="Buyout">Buyout price (for Auctions only).</param> /// <param name="Collateral">Collateral price (for Couriers only).</param> /// <param name="ContractId">contract_id integer (required).</param> /// <param name="DateAccepted">Date of confirmation of contract.</param> /// <param name="DateCompleted">Date of completed of contract.</param> /// <param name="DateExpired">Expiration date of the contract (required).</param> /// <param name="DateIssued">Сreation date of the contract (required).</param> /// <param name="DaysToComplete">Number of days to perform the contract.</param> /// <param name="EndLocationId">End location ID (for Couriers contract).</param> /// <param name="ForCorporation">true if the contract was issued on behalf of the issuer's corporation (required).</param> /// <param name="IssuerCorporationId">Character's corporation ID for the issuer (required).</param> /// <param name="IssuerId">Character ID for the issuer (required).</param> /// <param name="Price">Price of contract (for ItemsExchange and Auctions).</param> /// <param name="Reward">Remuneration for contract (for Couriers only).</param> /// <param name="StartLocationId">Start location ID (for Couriers contract).</param> /// <param name="Status">Status of the the contract (required).</param> /// <param name="Title">Title of the contract.</param> /// <param name="Type">Type of the contract (required).</param> /// <param name="Volume">Volume of items in the contract.</param> public GetCharactersCharacterIdContracts200Ok(int?AcceptorId = default(int?), int?AssigneeId = default(int?), AvailabilityEnum Availability = default(AvailabilityEnum), double?Buyout = default(double?), double?Collateral = default(double?), int?ContractId = default(int?), DateTime?DateAccepted = default(DateTime?), DateTime?DateCompleted = default(DateTime?), DateTime?DateExpired = default(DateTime?), DateTime?DateIssued = default(DateTime?), int?DaysToComplete = default(int?), long?EndLocationId = default(long?), bool?ForCorporation = default(bool?), int?IssuerCorporationId = default(int?), int?IssuerId = default(int?), double?Price = default(double?), double?Reward = default(double?), long?StartLocationId = default(long?), StatusEnum Status = default(StatusEnum), string Title = default(string), TypeEnum Type = default(TypeEnum), double?Volume = default(double?)) { // to ensure "AcceptorId" is required (not null) if (AcceptorId == null) { throw new InvalidDataException("AcceptorId is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.AcceptorId = AcceptorId; } // to ensure "AssigneeId" is required (not null) if (AssigneeId == null) { throw new InvalidDataException("AssigneeId is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.AssigneeId = AssigneeId; } // to ensure "Availability" is required (not null) if (Availability == null) { throw new InvalidDataException("Availability is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.Availability = Availability; } // to ensure "ContractId" is required (not null) if (ContractId == null) { throw new InvalidDataException("ContractId is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.ContractId = ContractId; } // to ensure "DateExpired" is required (not null) if (DateExpired == null) { throw new InvalidDataException("DateExpired is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.DateExpired = DateExpired; } // to ensure "DateIssued" is required (not null) if (DateIssued == null) { throw new InvalidDataException("DateIssued is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.DateIssued = DateIssued; } // to ensure "ForCorporation" is required (not null) if (ForCorporation == null) { throw new InvalidDataException("ForCorporation is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.ForCorporation = ForCorporation; } // to ensure "IssuerCorporationId" is required (not null) if (IssuerCorporationId == null) { throw new InvalidDataException("IssuerCorporationId is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.IssuerCorporationId = IssuerCorporationId; } // to ensure "IssuerId" is required (not null) if (IssuerId == null) { throw new InvalidDataException("IssuerId is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.IssuerId = IssuerId; } // to ensure "Status" is required (not null) if (Status == null) { throw new InvalidDataException("Status is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.Status = Status; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for GetCharactersCharacterIdContracts200Ok and cannot be null"); } else { this.Type = Type; } this.Buyout = Buyout; this.Collateral = Collateral; this.DateAccepted = DateAccepted; this.DateCompleted = DateCompleted; this.DaysToComplete = DaysToComplete; this.EndLocationId = EndLocationId; this.Price = Price; this.Reward = Reward; this.StartLocationId = StartLocationId; this.Title = Title; this.Volume = Volume; }
private void ParseExpression(string path, StringBuilder program) { DirectoryInfo baseDir = new DirectoryInfo(path); DirectoryInfo[] subDirs = baseDir.GetDirectories().CustomSort().ToArray(); if (subDirs.Length < 2) { throw new SyntaxError("An expression needs at least two subdirectories -- bad path at" + baseDir.FullName); } int expressionID = subDirs[0].GetDirectories().Length; try { switch (expressionID) { case (int)ExpressionEnum.Variable: // variable is easy, we just get the number of folders inside the second folder and that tells us the name int intVar = subDirs[1].GetDirectories().Length; program.Append(" Var" + intVar.ToString()); break; case (int)ExpressionEnum.Add: // second and third folders give us the two things to add program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" + "); ParseExpression(subDirs[2].FullName, program); program.Append(" ) "); break; case (int)ExpressionEnum.Subtract: // second and third folders give us the two things to subtract program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" - "); ParseExpression(subDirs[2].FullName, program); program.Append(" ) "); break; case (int)ExpressionEnum.Multiply: // second and third folders give us the two things to multiply program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" * "); ParseExpression(subDirs[2].FullName, program); program.Append(" ) "); break; case (int)ExpressionEnum.Divide: // second and third folders give us the two things to divide program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" * "); ParseExpression(subDirs[2].FullName, program); program.Append(" ) "); break; case (int)ExpressionEnum.LiteralValue: // first, get type TypeEnum type = ParseType(subDirs[1].FullName); int value; switch (type) { case TypeEnum.Int: value = GetEncodedValueFromSubdirectories(subDirs[2].FullName); program.Append(" " + value.ToString() + " "); break; case TypeEnum.Float: value = GetEncodedValueFromSubdirectories(subDirs[2].FullName); program.Append(" " + ((double)value).ToString() + " "); break; case TypeEnum.String: StringBuilder s = new StringBuilder(); foreach (DirectoryInfo charDir in subDirs[2].GetDirectories().CustomSort()) { s.Append((char)GetEncodedValueFromSubdirectories(charDir.FullName)); } program.Append("\"" + s.Replace("\"", "\\\"") + "\""); break; case TypeEnum.Char: value = GetEncodedValueFromSubdirectories(subDirs[2].FullName); program.Append("'" + ((char)value).ToString() + "'"); break; } break; case (int)ExpressionEnum.EqualTo: program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" == "); ParseExpression(subDirs[2].FullName, program); program.Append(")"); break; case (int)ExpressionEnum.GreaterThan: program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" > "); ParseExpression(subDirs[2].FullName, program); program.Append(")"); break; case (int)ExpressionEnum.LessThan: program.Append("("); ParseExpression(subDirs[1].FullName, program); program.Append(" < "); ParseExpression(subDirs[2].FullName, program); program.Append(")"); break; default: throw new SyntaxError("Could not determine type of expression at path " + baseDir.FullName); } } catch (Exception) { throw new SyntaxError("Expression failed to build at path " + baseDir.FullName); } }
public UpdateRequest Type(TypeEnum type) { m_params.AddOpt("type", type); return(this); }
public TypeActionAttribute(TypeEnum type, ActionEnum action) { this.Type = type; this.Action = action; }
/// <summary> /// Initializes a new instance of the <see cref="KetoExpandTree" /> class. /// </summary> /// <param name="children">children.</param> /// <param name="subjectId">subjectId.</param> /// <param name="subjectSet">subjectSet.</param> /// <param name="type"> union Union exclusion Exclusion intersection Intersection leaf Leaf (required).</param> public KetoExpandTree(List <KetoExpandTree> children = default(List <KetoExpandTree>), string subjectId = default(string), KetoSubjectSet subjectSet = default(KetoSubjectSet), TypeEnum type = default(TypeEnum)) { this.Type = type; this.Children = children; this.SubjectId = subjectId; this.SubjectSet = subjectSet; this.AdditionalProperties = new Dictionary <string, object>(); }
/// <summary> /// Initializes a new instance of the <see cref="BulkPricingRuleFull" /> class. /// </summary> /// <param name="amount">The discount can be a fixed dollar amount or a percentage. For a fixed dollar amount enter it as an integer and the response will return as an integer. For percentage enter the amount as the percentage divided by 100 using string format. For example 10% percent would be “.10”. The response will return as an integer. Required in /POST. (required).</param> /// <param name="id">Unique ID of the *Bulk Pricing Rule*. Read-Only..</param> /// <param name="quantityMax">The maximum inclusive quantity of a product to satisfy this rule. Must be greater than the `quantity_min` value – unless this field has a value of 0 (zero), in which case there will be no maximum bound for this rule. Required in /POST. (required).</param> /// <param name="quantityMin">The minimum inclusive quantity of a product to satisfy this rule. Must be greater than or equal to zero. Required in /POST. (required).</param> /// <param name="type">The type of adjustment that is made. Values: `price` - the adjustment amount per product; `percent` - the adjustment as a percentage of the original price; `fixed` - the adjusted absolute price of the product. Required in /POST. (required).</param> public BulkPricingRuleFull(int?amount = default(int?), int?id = default(int?), int?quantityMax = default(int?), int?quantityMin = default(int?), TypeEnum type = default(TypeEnum)) { // to ensure "amount" is required (not null) if (amount == null) { throw new InvalidDataException("amount is a required property for BulkPricingRuleFull and cannot be null"); } else { this.Amount = amount; } // to ensure "quantityMax" is required (not null) if (quantityMax == null) { throw new InvalidDataException("quantityMax is a required property for BulkPricingRuleFull and cannot be null"); } else { this.QuantityMax = quantityMax; } // to ensure "quantityMin" is required (not null) if (quantityMin == null) { throw new InvalidDataException("quantityMin is a required property for BulkPricingRuleFull and cannot be null"); } else { this.QuantityMin = quantityMin; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for BulkPricingRuleFull and cannot be null"); } else { this.Type = type; } this.Id = id; }
/// <summary> /// Cast a string to an object of a given type /// </summary> /// <param name="sourceString"></param> /// <param name="type"></param> /// <returns></returns> public static object GetTypedObject(string sourceString, TypeEnum type) { object o = sourceString; return(GetTypedObject(o, type)); }
internal static void AddFunctions(AST ast, int num, TypeEnum output, TypeEnum input, TypeEnum wrongType) { var inputs = new List <TypeEnum>(); for (int i = 0; i < num; i++) { inputs.Add(wrongType); } for (int i = 0; i < num; i++) { inputs[i] = (input); AddFunctionNode(ast, GetFunction(output, inputs, GetCondition(GetIntLit()))); } }
partial void OnLoaded() { FieldType = this.DictionaryProperty.Type.Value; }
public void InserCastNode_Addition_CastIntToReal(TypeEnum left, TypeEnum right, TypeEnum output) { string leftId = "a"; int leftRef = 0; string rightId = "b"; int rightRef = 1; var ids = new List <string>() { leftId, rightId }; var types = new List <TypeEnum>() { left, right }; var ast = Utilities.GetAstSkeleton(); var expr = Utilities.GetAdditionExpr(leftId, leftRef, rightId, rightRef); var cond = Utilities.GetCondition(expr); var func = Utilities.GetFunction(output, types, cond); Utilities.AddFunctionNode(ast, func); var typeChecker = Utilities.GetTypeChecker(); typeChecker.CheckTypes(ast); var res = expr.Children[1].GetType(); Assert.IsTrue( res == typeof(CastFromRealExpression) || res == typeof(CastFromBooleanExpression) || res == typeof(CastFromIntegerExpression)); }
/// <summary> /// Initializes a new instance of the <see cref="ReceiptRequestInfo" /> class. /// </summary> /// <param name="type">Defines the consumer of the receipt (e.g. cardholder, merchant). (required).</param> /// <param name="locale">The locale of the receipt. The format has to be a well-formed BCP 47 language tag..</param> /// <param name="linewidth">The line width of the receipt. Default will be 32 characters. (default to 32).</param> public ReceiptRequestInfo(TypeEnum type = default(TypeEnum), string locale = default(string), int linewidth = 32) { this.Type = type; this.Locale = locale; this.Linewidth = linewidth; }
/// <summary> /// Initializes a new instance of the <see cref="MessagesIcs" /> class. /// </summary> /// <param name="id">Schedule ID. (required).</param> /// <param name="nextSend">Next send date in [ISO 8601](https://en.wikipedia.org/?title=ISO_8601) format. (required).</param> /// <param name="rrule">[iCal RRULE](http://www.kanzaki.com/docs/ical/rrule.html) string. (required).</param> /// <param name="session">session (required).</param> /// <param name="lastSent">Date and time when last message has been sent. (required).</param> /// <param name="contactName">Aggregated contact information. If the message scheduled to be sent to a single contact, a full name will be returned here. Otherwise, a total amount contacts will be returned. (required).</param> /// <param name="parameters">parameters (required).</param> /// <param name="type">type (required).</param> /// <param name="summary">A human-readable summary of the sending schedule. (required).</param> /// <param name="textParameters">textParameters (required).</param> /// <param name="firstOccurrence">First occurence date. (required).</param> /// <param name="lastOccurrence">Last occurence date (could be `null` if the schedule is endless). (required).</param> /// <param name="recipientsCount">Amount of actual recipients. (required).</param> /// <param name="timezone">User-friendly timezone name (with spaces replaced by underscores). (required).</param> /// <param name="completed">Indicates that schedling has been completed. (required).</param> /// <param name="avatar">A relative link to the contact avatar. (required).</param> /// <param name="createdAt">Scheduling creation time. (required).</param> public MessagesIcs(int?id = default(int?), DateTime?nextSend = default(DateTime?), string rrule = default(string), MessageSession session = default(MessageSession), DateTime?lastSent = default(DateTime?), string contactName = default(string), MessagesIcsParameters parameters = default(MessagesIcsParameters), TypeEnum type = default(TypeEnum), string summary = default(string), MessagesIcsTextParameters textParameters = default(MessagesIcsTextParameters), DateTime?firstOccurrence = default(DateTime?), DateTime?lastOccurrence = default(DateTime?), int?recipientsCount = default(int?), string timezone = default(string), bool?completed = default(bool?), string avatar = default(string), DateTime?createdAt = default(DateTime?)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for MessagesIcs and cannot be null"); } else { this.Id = id; } // to ensure "nextSend" is required (not null) if (nextSend == null) { throw new InvalidDataException("nextSend is a required property for MessagesIcs and cannot be null"); } else { this.NextSend = nextSend; } // to ensure "rrule" is required (not null) if (rrule == null) { throw new InvalidDataException("rrule is a required property for MessagesIcs and cannot be null"); } else { this.Rrule = rrule; } // to ensure "session" is required (not null) if (session == null) { throw new InvalidDataException("session is a required property for MessagesIcs and cannot be null"); } else { this.Session = session; } // to ensure "lastSent" is required (not null) if (lastSent == null) { throw new InvalidDataException("lastSent is a required property for MessagesIcs and cannot be null"); } else { this.LastSent = lastSent; } // to ensure "contactName" is required (not null) if (contactName == null) { throw new InvalidDataException("contactName is a required property for MessagesIcs and cannot be null"); } else { this.ContactName = contactName; } // to ensure "parameters" is required (not null) if (parameters == null) { throw new InvalidDataException("parameters is a required property for MessagesIcs and cannot be null"); } else { this.Parameters = parameters; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for MessagesIcs and cannot be null"); } else { this.Type = type; } // to ensure "summary" is required (not null) if (summary == null) { throw new InvalidDataException("summary is a required property for MessagesIcs and cannot be null"); } else { this.Summary = summary; } // to ensure "textParameters" is required (not null) if (textParameters == null) { throw new InvalidDataException("textParameters is a required property for MessagesIcs and cannot be null"); } else { this.TextParameters = textParameters; } // to ensure "firstOccurrence" is required (not null) if (firstOccurrence == null) { throw new InvalidDataException("firstOccurrence is a required property for MessagesIcs and cannot be null"); } else { this.FirstOccurrence = firstOccurrence; } // to ensure "lastOccurrence" is required (not null) if (lastOccurrence == null) { throw new InvalidDataException("lastOccurrence is a required property for MessagesIcs and cannot be null"); } else { this.LastOccurrence = lastOccurrence; } // to ensure "recipientsCount" is required (not null) if (recipientsCount == null) { throw new InvalidDataException("recipientsCount is a required property for MessagesIcs and cannot be null"); } else { this.RecipientsCount = recipientsCount; } // to ensure "timezone" is required (not null) if (timezone == null) { throw new InvalidDataException("timezone is a required property for MessagesIcs and cannot be null"); } else { this.Timezone = timezone; } // to ensure "completed" is required (not null) if (completed == null) { throw new InvalidDataException("completed is a required property for MessagesIcs and cannot be null"); } else { this.Completed = completed; } // to ensure "avatar" is required (not null) if (avatar == null) { throw new InvalidDataException("avatar is a required property for MessagesIcs and cannot be null"); } else { this.Avatar = avatar; } // to ensure "createdAt" is required (not null) if (createdAt == null) { throw new InvalidDataException("createdAt is a required property for MessagesIcs and cannot be null"); } else { this.CreatedAt = createdAt; } }