content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
#region Using Directives using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Drawing; using System.Globalization; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Threading; using System.Windows.Forms; using System.Xml; using MacroUO.Properties; using Timer = System.Windows.Forms.Timer; #endregion namespace MacroUO { [SuppressMessage("ReSharper", "PrivateFieldCanBeConvertedToLocalVariable")] public sealed class ApplicationDialog : Form { #region Members private Boolean m_Collapsed; private Boolean m_PresetsChanged; private Decimal m_CounterRuns; private Decimal m_CounterTime; private Int32 m_PresetsPreviousIndex; private MacroCollection m_Presets; private MacroRunning m_MacroCurrent; private MacroRunning m_MacroLast; private readonly Button m_ButtonAdd; private readonly Button m_ButtonReload; private readonly Button m_ButtonRemove; private readonly Button m_ButtonReset; private readonly Button m_ButtonResize; private readonly Button m_ButtonScan; private readonly Button m_ButtonStart; private readonly Button m_ButtonStop; private readonly CheckBox m_CheckBoxAlt; private readonly CheckBox m_CheckBoxCtrl; private readonly CheckBox m_CheckBoxShift; private readonly ComboBox m_ComboBoxClients; private readonly ComboBox m_ComboBoxKeys; private readonly ComboBox m_ComboBoxPresets; private readonly Container m_Components; private readonly GroupBox m_GroupBoxClients; private readonly GroupBox m_GroupBoxMacro; private readonly GroupBox m_GroupBoxPresets; private readonly IntPtr m_KeyboardLayout; private readonly Label m_LabelCounterRuns; private readonly Label m_LabelCounterTime; private readonly Label m_LabelDelay; private readonly Label m_LabelKey; private readonly Label m_LabelModifiers; private readonly Label m_LabelRuns; private readonly List<Client> m_Clients; private readonly MenuStrip m_MenuStrip; private readonly Messenger m_Messenger; private readonly NumberFormatInfo m_NumberFormatInfo; private readonly NumericUpDown m_NumericUpDownDelay; private readonly NumericUpDown m_NumericUpDownRuns; private readonly TableLayoutPanel m_TableLayoutPanelClients; private readonly TableLayoutPanel m_TableLayoutPanelContainer; private readonly TableLayoutPanel m_TableLayoutPanelMacro; private readonly TableLayoutPanel m_TableLayoutPanelModifiers; private readonly TableLayoutPanel m_TableLayoutPanelPresets; private readonly TextBox m_TextBoxRuns; private readonly TextBox m_TextBoxTime; private readonly Timer m_TimerClient; private readonly Timer m_TimerMacro; private readonly ToolStripMenuItem m_ToolStripMenuItemOptions; private readonly ToolStripMenuItem m_ToolStripMenuItemTopMost; private readonly ToolStripMenuItem m_ToolStripMenuItemTransparency; #endregion #region Constructors public ApplicationDialog() { Boolean topMost = Settings.Default.TopMost; Boolean transparency = Settings.Default.Transparent; m_PresetsPreviousIndex = -1; m_ButtonAdd = new Button(); m_ButtonReload = new Button(); m_ButtonRemove = new Button(); m_ButtonReset = new Button(); m_ButtonResize = new Button(); m_ButtonScan = new Button(); m_ButtonStart = new Button(); m_ButtonStop = new Button(); m_CheckBoxAlt = new CheckBox(); m_CheckBoxCtrl = new CheckBox(); m_CheckBoxShift = new CheckBox(); m_ComboBoxClients = new ComboBox(); m_ComboBoxKeys = new ComboBox(); m_ComboBoxPresets = new ComboBox(); m_Components = new Container(); m_GroupBoxClients = new GroupBox(); m_GroupBoxMacro = new GroupBox(); m_GroupBoxPresets = new GroupBox(); m_KeyboardLayout = NativeMethods.GetKeyboardLayout(); m_LabelCounterRuns = new Label(); m_LabelCounterTime = new Label(); m_LabelDelay = new Label(); m_LabelKey = new Label(); m_LabelModifiers = new Label(); m_LabelRuns = new Label(); m_Clients = new List<Client>(); m_MenuStrip = new MenuStrip(); m_Messenger = new Messenger(m_Components); m_NumberFormatInfo = (NumberFormatInfo)CultureInfo.InvariantCulture.NumberFormat.Clone(); m_NumericUpDownDelay = new NumericUpDown(); m_NumericUpDownRuns = new NumericUpDown(); m_TableLayoutPanelClients = new TableLayoutPanel(); m_TableLayoutPanelContainer = new TableLayoutPanel(); m_TableLayoutPanelMacro = new TableLayoutPanel(); m_TableLayoutPanelModifiers = new TableLayoutPanel(); m_TableLayoutPanelPresets = new TableLayoutPanel(); m_TextBoxRuns = new TextBox(); m_TextBoxTime = new TextBox(); m_TimerClient = new Timer(m_Components); m_TimerMacro = new Timer(m_Components); m_ToolStripMenuItemOptions = new ToolStripMenuItem(); m_ToolStripMenuItemTopMost = new ToolStripMenuItem(); m_ToolStripMenuItemTransparency = new ToolStripMenuItem(); m_MenuStrip.SuspendLayout(); m_TableLayoutPanelContainer.SuspendLayout(); m_GroupBoxClients.SuspendLayout(); m_TableLayoutPanelClients.SuspendLayout(); m_GroupBoxMacro.SuspendLayout(); m_TableLayoutPanelMacro.SuspendLayout(); m_TableLayoutPanelModifiers.SuspendLayout(); m_NumericUpDownDelay.BeginInit(); m_NumericUpDownRuns.BeginInit(); m_GroupBoxPresets.SuspendLayout(); m_TableLayoutPanelPresets.SuspendLayout(); SuspendLayout(); m_ButtonAdd.Anchor = AnchorStyles.None; m_ButtonAdd.Location = new Point(234, 0); m_ButtonAdd.Margin = new Padding(4, 0, 0, 3); m_ButtonAdd.Name = "ButtonAdd"; m_ButtonAdd.Size = new Size(75, 23); m_ButtonAdd.TabIndex = 1; m_ButtonAdd.Text = Resources.TextAdd; m_ButtonAdd.UseVisualStyleBackColor = true; m_ButtonAdd.Click += ButtonAddClick; m_ButtonReload.Anchor = AnchorStyles.None; m_ButtonReload.Location = new Point(390, 0); m_ButtonReload.Margin = new Padding(3, 0, 3, 3); m_ButtonReload.Name = "ButtonReload"; m_ButtonReload.Size = new Size(75, 23); m_ButtonReload.TabIndex = 3; m_ButtonReload.Text = Resources.TextReload; m_ButtonReload.UseVisualStyleBackColor = true; m_ButtonReload.Click += ButtonReloadClick; m_ButtonRemove.Anchor = AnchorStyles.None; m_ButtonRemove.Location = new Point(312, 0); m_ButtonRemove.Margin = new Padding(3, 0, 0, 3); m_ButtonRemove.Name = "ButtonRemove"; m_ButtonRemove.Size = new Size(75, 23); m_ButtonRemove.TabIndex = 2; m_ButtonRemove.Text = Resources.TextRemove; m_ButtonRemove.UseVisualStyleBackColor = true; m_ButtonRemove.Click += ButtonRemoveClick; m_ButtonReset.Anchor = AnchorStyles.None; m_ButtonReset.Location = new Point(390, 39); m_ButtonReset.Margin = new Padding(4, 0, 3, 0); m_ButtonReset.Name = "ButtonReset"; m_ButtonReset.Size = new Size(75, 23); m_ButtonReset.TabIndex = 12; m_ButtonReset.Text = Resources.TextReset; m_ButtonReset.UseVisualStyleBackColor = true; m_ButtonReset.Click += ButtonResetClick; m_ButtonResize.Font = new Font("Microsoft Sans Serif", 10.0f, FontStyle.Regular, GraphicsUnit.Point, 0); m_ButtonResize.Location = new Point(390, 221); m_ButtonResize.Name = "ButtonResize"; m_ButtonResize.Size = new Size(90, 30); m_ButtonResize.TabIndex = 4; m_ButtonResize.Text = Resources.TextCollapse; m_ButtonResize.UseVisualStyleBackColor = true; m_ButtonResize.Click += ButtonResizeClick; m_ButtonScan.Anchor = AnchorStyles.None; m_ButtonScan.Location = new Point(2, 0); m_ButtonScan.Margin = new Padding(2, 0, 0, 3); m_ButtonScan.Name = "ButtonScan"; m_ButtonScan.Size = new Size(75, 23); m_ButtonScan.TabIndex = 0; m_ButtonScan.Text = Resources.TextScan; m_ButtonScan.UseVisualStyleBackColor = true; m_ButtonScan.Click += ButtonScanClick; m_ButtonStart.Font = new Font("Microsoft Sans Serif", 10.0f, FontStyle.Regular, GraphicsUnit.Point, 0); m_ButtonStart.Location = new Point(4, 221); m_ButtonStart.Name = "ButtonStart"; m_ButtonStart.Size = new Size(90, 30); m_ButtonStart.TabIndex = 2; m_ButtonStart.Text = Resources.TextStart; m_ButtonStart.UseVisualStyleBackColor = true; m_ButtonStart.Click += ButtonStartClick; m_ButtonStop.Enabled = false; m_ButtonStop.Font = new Font("Microsoft Sans Serif", 10.0f, FontStyle.Regular, GraphicsUnit.Point, 0); m_ButtonStop.Location = new Point(97, 221); m_ButtonStop.Name = "ButtonStop"; m_ButtonStop.Size = new Size(90, 30); m_ButtonStop.TabIndex = 3; m_ButtonStop.Text = Resources.TextStop; m_ButtonStop.UseVisualStyleBackColor = true; m_ButtonStop.Click += ButtonStopClick; m_CheckBoxAlt.Anchor = AnchorStyles.None; m_CheckBoxAlt.AutoSize = true; m_CheckBoxAlt.Location = new Point(0, 2); m_CheckBoxAlt.Margin = new Padding(0, 2, 3, 1); m_CheckBoxAlt.Name = "CheckBoxAlt"; m_CheckBoxAlt.Size = new Size(46, 17); m_CheckBoxAlt.TabIndex = 0; m_CheckBoxAlt.Text = Resources.TextAlt; m_CheckBoxAlt.UseVisualStyleBackColor = true; m_CheckBoxAlt.CheckedChanged += CheckBoxAltCheckedChanged; m_CheckBoxCtrl.Anchor = AnchorStyles.None; m_CheckBoxCtrl.AutoSize = true; m_CheckBoxCtrl.Location = new Point(52, 2); m_CheckBoxCtrl.Margin = new Padding(3, 2, 3, 1); m_CheckBoxCtrl.Name = "CheckBoxCtrl"; m_CheckBoxCtrl.Size = new Size(54, 17); m_CheckBoxCtrl.TabIndex = 1; m_CheckBoxCtrl.Text = Resources.TextCtrl; m_CheckBoxCtrl.UseVisualStyleBackColor = true; m_CheckBoxCtrl.CheckedChanged += CheckBoxCtrlCheckedChanged; m_CheckBoxShift.Anchor = AnchorStyles.None; m_CheckBoxShift.AutoSize = true; m_CheckBoxShift.Location = new Point(112, 2); m_CheckBoxShift.Margin = new Padding(3, 2, 0, 1); m_CheckBoxShift.Name = "CheckBoxShift"; m_CheckBoxShift.Size = new Size(57, 17); m_CheckBoxShift.TabIndex = 2; m_CheckBoxShift.Text = Resources.TextShift; m_CheckBoxShift.UseVisualStyleBackColor = true; m_CheckBoxShift.CheckedChanged += CheckBoxShiftCheckedChanged; m_ComboBoxClients.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_ComboBoxClients.DropDownStyle = ComboBoxStyle.DropDownList; m_ComboBoxClients.FormattingEnabled = true; m_ComboBoxClients.Location = new Point(81, 1); m_ComboBoxClients.Margin = new Padding(4, 1, 4, 3); m_ComboBoxClients.Name = "ComboBoxClients"; m_ComboBoxClients.Size = new Size(383, 21); m_ComboBoxClients.TabIndex = 1; m_ComboBoxKeys.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_ComboBoxKeys.DropDownStyle = ComboBoxStyle.DropDownList; m_ComboBoxKeys.FormattingEnabled = true; m_ComboBoxKeys.Items.AddRange(Macro.GetKeys()); m_ComboBoxKeys.Location = new Point(53, 1); m_ComboBoxKeys.Margin = new Padding(0, 1, 0, 3); m_ComboBoxKeys.Name = "ComboBoxKeys"; m_ComboBoxKeys.Size = new Size(169, 21); m_ComboBoxKeys.TabIndex = 1; m_ComboBoxKeys.SelectedIndexChanged += ComboBoxKeysSelectedIndexChanged; m_ComboBoxPresets.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_ComboBoxPresets.DropDownStyle = ComboBoxStyle.DropDownList; m_ComboBoxPresets.FormattingEnabled = true; m_ComboBoxPresets.Location = new Point(4, 1); m_ComboBoxPresets.Margin = new Padding(4, 1, 0, 3); m_ComboBoxPresets.Name = "ComboBoxPresets"; m_ComboBoxPresets.Size = new Size(226, 21); m_ComboBoxPresets.TabIndex = 0; m_ComboBoxPresets.SelectedIndexChanged += ComboBoxPresetsSelectedIndexChanged; m_GroupBoxClients.AutoSize = true; m_GroupBoxClients.Controls.Add(m_TableLayoutPanelClients); m_GroupBoxClients.Dock = DockStyle.Fill; m_GroupBoxClients.Location = new Point(5, 3); m_GroupBoxClients.Margin = new Padding(5, 3, 5, 2); m_GroupBoxClients.Name = "GroupBoxClients"; m_GroupBoxClients.Padding = new Padding(3, 2, 3, 3); m_GroupBoxClients.Size = new Size(474, 44); m_GroupBoxClients.TabIndex = 0; m_GroupBoxClients.TabStop = false; m_GroupBoxClients.Text = Resources.TextClients; m_GroupBoxMacro.AutoSize = true; m_GroupBoxMacro.Controls.Add(m_TableLayoutPanelMacro); m_GroupBoxMacro.Dock = DockStyle.Fill; m_GroupBoxMacro.Location = new Point(5, 50); m_GroupBoxMacro.Margin = new Padding(5, 1, 5, 2); m_GroupBoxMacro.Name = "GroupBoxMacro"; m_GroupBoxMacro.Padding = new Padding(3, 2, 3, 3); m_GroupBoxMacro.Size = new Size(474, 95); m_GroupBoxMacro.TabIndex = 1; m_GroupBoxMacro.TabStop = false; m_GroupBoxMacro.Text = Resources.TextMacro; m_GroupBoxPresets.AutoSize = true; m_GroupBoxPresets.Controls.Add(m_TableLayoutPanelPresets); m_GroupBoxPresets.Dock = DockStyle.Fill; m_GroupBoxPresets.Location = new Point(5, 148); m_GroupBoxPresets.Margin = new Padding(5, 1, 5, 2); m_GroupBoxPresets.Name = "GroupBoxPresets"; m_GroupBoxPresets.Padding = new Padding(3, 2, 3, 3); m_GroupBoxPresets.Size = new Size(474, 44); m_GroupBoxPresets.TabIndex = 2; m_GroupBoxPresets.TabStop = false; m_GroupBoxPresets.Text = Resources.TextPresetMacros; m_LabelCounterRuns.Anchor = AnchorStyles.Right; m_LabelCounterRuns.AutoSize = true; m_LabelCounterRuns.Location = new Point(236, 31); m_LabelCounterRuns.Margin = new Padding(2, 0, 0, 0); m_LabelCounterRuns.Name = "LabelCounterRuns"; m_LabelCounterRuns.Size = new Size(62, 13); m_LabelCounterRuns.TabIndex = 8; m_LabelCounterRuns.Text = Resources.TextTotalRuns; m_LabelCounterTime.Anchor = AnchorStyles.Right; m_LabelCounterTime.AutoSize = true; m_LabelCounterTime.Location = new Point(224, 57); m_LabelCounterTime.Margin = new Padding(2, 0, 0, 0); m_LabelCounterTime.Name = "LabelCounterTime"; m_LabelCounterTime.Size = new Size(74, 13); m_LabelCounterTime.TabIndex = 10; m_LabelCounterTime.Text = Resources.TextTimeElapsed; m_LabelDelay.Anchor = AnchorStyles.Right; m_LabelDelay.AutoSize = true; m_LabelDelay.Location = new Point(16, 31); m_LabelDelay.Margin = new Padding(0); m_LabelDelay.Name = "LabelDelay"; m_LabelDelay.Size = new Size(37, 13); m_LabelDelay.TabIndex = 2; m_LabelDelay.Text = Resources.TextDelay; m_LabelKey.Anchor = AnchorStyles.Right; m_LabelKey.AutoSize = true; m_LabelKey.Location = new Point(25, 6); m_LabelKey.Margin = new Padding(0); m_LabelKey.Name = "LabelKey"; m_LabelKey.Size = new Size(28, 13); m_LabelKey.TabIndex = 0; m_LabelKey.Text = Resources.TextKey; m_LabelModifiers.Anchor = AnchorStyles.Right; m_LabelModifiers.AutoSize = true; m_LabelModifiers.Location = new Point(1, 57); m_LabelModifiers.Margin = new Padding(1, 0, 0, 0); m_LabelModifiers.Name = "LabelModifiers"; m_LabelModifiers.Size = new Size(52, 13); m_LabelModifiers.TabIndex = 4; m_LabelModifiers.Text = Resources.TextModifiers; m_LabelRuns.Anchor = AnchorStyles.Right; m_LabelRuns.AutoSize = true; m_LabelRuns.Location = new Point(263, 6); m_LabelRuns.Margin = new Padding(2, 0, 0, 0); m_LabelRuns.Name = "LabelRuns"; m_LabelRuns.Size = new Size(35, 13); m_LabelRuns.TabIndex = 6; m_LabelRuns.Text = Resources.TextRuns; m_MenuStrip.Items.AddRange(new ToolStripItem[] { m_ToolStripMenuItemOptions }); m_MenuStrip.Location = new Point(0, 0); m_MenuStrip.Name = "MenuStrip"; m_MenuStrip.RenderMode = ToolStripRenderMode.System; m_MenuStrip.RightToLeft = RightToLeft.Yes; m_MenuStrip.Size = new Size(484, 24); m_MenuStrip.TabIndex = 0; m_MenuStrip.Text = Resources.TextMenuStrip; m_Messenger.ContainerControl = this; m_NumberFormatInfo.NumberDecimalDigits = 0; m_NumberFormatInfo.NumberGroupSeparator = "."; m_NumericUpDownDelay.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_NumericUpDownDelay.Font = new Font("Microsoft Sans Serif", 8.75f, FontStyle.Regular, GraphicsUnit.Point, 0); m_NumericUpDownDelay.Increment = 50m; m_NumericUpDownDelay.Location = new Point(53, 27); m_NumericUpDownDelay.Margin = new Padding(0, 2, 0, 3); m_NumericUpDownDelay.Maximum = Macro.MAXIMUM_DELAY; m_NumericUpDownDelay.Minimum = Macro.MINIMUM_DELAY; m_NumericUpDownDelay.Name = "NumericUpDownDelay"; m_NumericUpDownDelay.Size = new Size(169, 21); m_NumericUpDownDelay.TabIndex = 3; m_NumericUpDownDelay.Value = 100m; m_NumericUpDownDelay.ValueChanged += NumericUpDownDelayValueChanged; m_NumericUpDownRuns.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_NumericUpDownRuns.Location = new Point(298, 2); m_NumericUpDownRuns.Margin = new Padding(0, 2, 4, 3); m_NumericUpDownRuns.Maximum = 1000000m; m_NumericUpDownRuns.Name = "NumericUpDownRuns"; m_NumericUpDownRuns.Size = new Size(166, 20); m_NumericUpDownRuns.TabIndex = 7; m_TableLayoutPanelClients.AutoSize = true; m_TableLayoutPanelClients.ColumnCount = 2; m_TableLayoutPanelClients.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelClients.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f)); m_TableLayoutPanelClients.Controls.Add(m_ButtonScan, 0, 0); m_TableLayoutPanelClients.Controls.Add(m_ComboBoxClients, 1, 0); m_TableLayoutPanelClients.Dock = DockStyle.Fill; m_TableLayoutPanelClients.Location = new Point(3, 15); m_TableLayoutPanelClients.Margin = new Padding(0); m_TableLayoutPanelClients.Name = "TableLayoutPanelClients"; m_TableLayoutPanelClients.RowCount = 1; m_TableLayoutPanelClients.RowStyles.Add(new RowStyle()); m_TableLayoutPanelClients.Size = new Size(468, 26); m_TableLayoutPanelClients.TabIndex = 0; m_TableLayoutPanelContainer.AutoSize = true; m_TableLayoutPanelContainer.ColumnCount = 1; m_TableLayoutPanelContainer.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f)); m_TableLayoutPanelContainer.Controls.Add(m_GroupBoxClients, 0, 0); m_TableLayoutPanelContainer.Controls.Add(m_GroupBoxMacro, 0, 1); m_TableLayoutPanelContainer.Controls.Add(m_GroupBoxPresets, 0, 2); m_TableLayoutPanelContainer.Dock = DockStyle.Top; m_TableLayoutPanelContainer.Location = new Point(0, 24); m_TableLayoutPanelContainer.Name = "TableLayoutPanelContainer"; m_TableLayoutPanelContainer.RowCount = 3; m_TableLayoutPanelContainer.RowStyles.Add(new RowStyle()); m_TableLayoutPanelContainer.RowStyles.Add(new RowStyle()); m_TableLayoutPanelContainer.RowStyles.Add(new RowStyle()); m_TableLayoutPanelContainer.Size = new Size(484, 194); m_TableLayoutPanelContainer.TabIndex = 1; m_TableLayoutPanelMacro.AutoSize = true; m_TableLayoutPanelMacro.ColumnCount = 5; m_TableLayoutPanelMacro.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelMacro.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelMacro.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelMacro.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f)); m_TableLayoutPanelMacro.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelMacro.Controls.Add(m_LabelKey, 0, 0); m_TableLayoutPanelMacro.Controls.Add(m_ComboBoxKeys, 1, 0); m_TableLayoutPanelMacro.Controls.Add(m_LabelDelay, 0, 1); m_TableLayoutPanelMacro.Controls.Add(m_NumericUpDownDelay, 1, 1); m_TableLayoutPanelMacro.Controls.Add(m_LabelModifiers, 0, 2); m_TableLayoutPanelMacro.Controls.Add(m_TableLayoutPanelModifiers, 1, 2); m_TableLayoutPanelMacro.Controls.Add(m_LabelRuns, 2, 0); m_TableLayoutPanelMacro.Controls.Add(m_NumericUpDownRuns, 3, 0); m_TableLayoutPanelMacro.Controls.Add(m_LabelCounterRuns, 2, 1); m_TableLayoutPanelMacro.Controls.Add(m_TextBoxRuns, 3, 1); m_TableLayoutPanelMacro.Controls.Add(m_LabelCounterTime, 2, 2); m_TableLayoutPanelMacro.Controls.Add(m_TextBoxTime, 3, 2); m_TableLayoutPanelMacro.Controls.Add(m_ButtonReset, 4, 1); m_TableLayoutPanelMacro.Dock = DockStyle.Fill; m_TableLayoutPanelMacro.Location = new Point(3, 15); m_TableLayoutPanelMacro.Margin = new Padding(0); m_TableLayoutPanelMacro.Name = "TableLayoutPanelMacro"; m_TableLayoutPanelMacro.RowCount = 3; m_TableLayoutPanelMacro.RowStyles.Add(new RowStyle()); m_TableLayoutPanelMacro.RowStyles.Add(new RowStyle()); m_TableLayoutPanelMacro.RowStyles.Add(new RowStyle()); m_TableLayoutPanelMacro.SetColumnSpan(m_NumericUpDownRuns, 2); m_TableLayoutPanelMacro.SetRowSpan(m_ButtonReset, 2); m_TableLayoutPanelMacro.Size = new Size(468, 77); m_TableLayoutPanelMacro.TabIndex = 0; m_TableLayoutPanelModifiers.Anchor = AnchorStyles.None; m_TableLayoutPanelModifiers.AutoSize = true; m_TableLayoutPanelModifiers.ColumnCount = 3; m_TableLayoutPanelModifiers.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelModifiers.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelModifiers.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelModifiers.Controls.Add(m_CheckBoxAlt, 0, 0); m_TableLayoutPanelModifiers.Controls.Add(m_CheckBoxCtrl, 1, 0); m_TableLayoutPanelModifiers.Controls.Add(m_CheckBoxShift, 2, 0); m_TableLayoutPanelModifiers.Location = new Point(53, 54); m_TableLayoutPanelModifiers.Margin = new Padding(0); m_TableLayoutPanelModifiers.Name = "TableLayoutPanelModifiers"; m_TableLayoutPanelModifiers.RowCount = 1; m_TableLayoutPanelModifiers.RowStyles.Add(new RowStyle()); m_TableLayoutPanelModifiers.Size = new Size(169, 20); m_TableLayoutPanelModifiers.TabIndex = 5; m_TableLayoutPanelPresets.AutoSize = true; m_TableLayoutPanelPresets.ColumnCount = 4; m_TableLayoutPanelPresets.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100.0f)); m_TableLayoutPanelPresets.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelPresets.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelPresets.ColumnStyles.Add(new ColumnStyle()); m_TableLayoutPanelPresets.Controls.Add(m_ComboBoxPresets, 0, 0); m_TableLayoutPanelPresets.Controls.Add(m_ButtonAdd, 1, 0); m_TableLayoutPanelPresets.Controls.Add(m_ButtonRemove, 2, 0); m_TableLayoutPanelPresets.Controls.Add(m_ButtonReload, 3, 0); m_TableLayoutPanelPresets.Dock = DockStyle.Fill; m_TableLayoutPanelPresets.Location = new Point(3, 15); m_TableLayoutPanelPresets.Margin = new Padding(0); m_TableLayoutPanelPresets.Name = "TableLayoutPanelPresets"; m_TableLayoutPanelPresets.RowCount = 1; m_TableLayoutPanelPresets.RowStyles.Add(new RowStyle()); m_TableLayoutPanelPresets.Size = new Size(468, 26); m_TableLayoutPanelPresets.TabIndex = 0; m_TextBoxRuns.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_TextBoxRuns.Font = new Font("Microsoft Sans Serif", 8.75f, FontStyle.Regular, GraphicsUnit.Point, 0); m_TextBoxRuns.Location = new Point(298, 27); m_TextBoxRuns.Margin = new Padding(0, 2, 0, 3); m_TextBoxRuns.Name = "TextBoxRuns"; m_TextBoxRuns.ReadOnly = true; m_TextBoxRuns.Size = new Size(88, 21); m_TextBoxRuns.TabIndex = 9; m_TextBoxRuns.Text = Resources.TextZero; m_TextBoxTime.Anchor = AnchorStyles.Left | AnchorStyles.Right; m_TextBoxTime.Font = new Font("Microsoft Sans Serif", 8.75f, FontStyle.Regular, GraphicsUnit.Point, 0); m_TextBoxTime.Location = new Point(298, 53); m_TextBoxTime.Margin = new Padding(0, 2, 0, 4); m_TextBoxTime.Name = "TextBoxTime"; m_TextBoxTime.ReadOnly = true; m_TextBoxTime.Size = new Size(88, 20); m_TextBoxTime.TabIndex = 11; m_TextBoxTime.Text = Resources.TextZeroSeconds; m_TimerClient.Interval = 10; m_TimerClient.Tick += TimerClientTick; m_TimerMacro.Tick += TimerMacroTick; m_ToolStripMenuItemOptions.DropDownItems.AddRange(new ToolStripItem[] { m_ToolStripMenuItemTopMost, m_ToolStripMenuItemTransparency }); m_ToolStripMenuItemOptions.Name = "ToolStripMenuItemOptions"; m_ToolStripMenuItemOptions.Size = new Size(61, 20); m_ToolStripMenuItemOptions.Text = Resources.TextOptions; m_ToolStripMenuItemTopMost.Checked = topMost; m_ToolStripMenuItemTopMost.CheckOnClick = true; m_ToolStripMenuItemTopMost.Name = "ToolStripMenuItemTopMost"; m_ToolStripMenuItemTopMost.Size = new Size(145, 22); m_ToolStripMenuItemTopMost.Text = Resources.TextTopMost; m_ToolStripMenuItemTopMost.CheckedChanged += ToolStripMenuItemTopMostCheckedChanged; m_ToolStripMenuItemTransparency.Checked = transparency; m_ToolStripMenuItemTransparency.CheckOnClick = true; m_ToolStripMenuItemTransparency.Name = "ToolStripMenuItemTransparency"; m_ToolStripMenuItemTransparency.Size = new Size(145, 22); m_ToolStripMenuItemTransparency.Text = Resources.TextTransparency; m_ToolStripMenuItemTransparency.CheckedChanged += ToolStripMenuItemTransparencyChanged; AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; AutoValidate = AutoValidate.Disable; CausesValidation = false; ClientSize = new Size(484, 255); Controls.Add(m_TableLayoutPanelContainer); Controls.Add(m_ButtonStart); Controls.Add(m_ButtonStop); Controls.Add(m_ButtonResize); Controls.Add(m_MenuStrip); FormBorderStyle = FormBorderStyle.FixedSingle; Icon = Program.Icon; MainMenuStrip = m_MenuStrip; MaximizeBox = false; MinimizeBox = false; Name = "ApplicationDialog"; Opacity = transparency ? 0.6d : 1.0d; StartPosition = FormStartPosition.CenterScreen; Text = String.Concat(Resources.TextTitle, " ", Program.Version); TopMost = topMost; m_MenuStrip.ResumeLayout(true); m_TableLayoutPanelContainer.ResumeLayout(true); m_GroupBoxClients.ResumeLayout(true); m_TableLayoutPanelClients.ResumeLayout(true); m_GroupBoxMacro.ResumeLayout(true); m_TableLayoutPanelMacro.ResumeLayout(true); m_TableLayoutPanelModifiers.ResumeLayout(true); m_NumericUpDownDelay.EndInit(); m_NumericUpDownRuns.EndInit(); m_GroupBoxPresets.ResumeLayout(true); m_TableLayoutPanelPresets.ResumeLayout(true); ResumeLayout(true); } #endregion #region Events private void ButtonAddClick(Object sender, EventArgs e) { ActiveControl = null; m_ButtonAdd.Enabled = false; Boolean presetAssigned = false; String presetName = null; UInt32 presetNumber = 1u; while (presetNumber < UInt32.MaxValue) { presetName = String.Concat("Preset ", presetNumber); if (m_Presets.Any(x => x.Name == presetName)) ++presetNumber; else { presetAssigned = true; break; } } if (!presetAssigned) throw new InvalidOperationException("The maximum number of presets has been reached."); m_Presets.Add(new Macro { ModifierAlt = m_CheckBoxAlt.Checked, ModifierCtrl = m_CheckBoxCtrl.Checked, ModifierShift = m_CheckBoxShift.Checked, Key = (MacroKey)m_ComboBoxKeys.SelectedItem, Name = presetName, Delay = (UInt32)m_NumericUpDownDelay.Value }); m_PresetsChanged = true; m_ComboBoxPresets.BeginUpdate(); if (m_Presets.Count == 1) { m_ComboBoxPresets.Items.Clear(); m_ComboBoxPresets.Items.AddRange(new Object[] { Resources.TextPresetsUnselected, presetName }); } else m_ComboBoxPresets.Items.Add(presetName); m_ComboBoxPresets.SelectedIndex = m_ComboBoxPresets.Items.Count - 1; m_ComboBoxPresets.EndUpdate(); ActiveControl = m_ButtonRemove; } private void ButtonReloadClick(Object sender, EventArgs e) { if (!m_PresetsChanged || m_Messenger.DisplayQuestionImportant(Resources.QuestionPresetsModified)) PresetsLoad(); } private void ButtonRemoveClick(Object sender, EventArgs e) { ActiveControl = null; m_ButtonRemove.Enabled = false; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; Int32 selectedIndexMinus = selectedIndex - 1; m_Presets.RemoveAt(selectedIndexMinus); m_PresetsChanged = true; if (m_Presets.Count == 0) { m_ComboBoxPresets.BeginUpdate(); m_ComboBoxPresets.Items.Clear(); m_ComboBoxPresets.Items.Add(Resources.TextPresetsEmpty); m_ComboBoxPresets.SelectedIndex = 0; m_ComboBoxPresets.EndUpdate(); m_ComboBoxPresets.Enabled = false; m_ButtonAdd.Enabled = true; ActiveControl = m_ButtonAdd; } else { m_ComboBoxPresets.BeginUpdate(); m_ComboBoxPresets.Items.RemoveAt(selectedIndex); m_ComboBoxPresets.SelectedIndex = (selectedIndexMinus == 0) ? selectedIndex : selectedIndexMinus; m_ComboBoxPresets.EndUpdate(); m_ButtonRemove.Enabled = true; ActiveControl = m_ButtonRemove; } } private void ButtonResetClick(Object sender, EventArgs e) { CountersReset(); } private void ButtonResizeClick(Object sender, EventArgs e) { m_ButtonResize.Enabled = false; SuspendLayout(); if (m_Collapsed) { Size size = ClientSize; ClientSize = new Size(484, 255); Int32 x = Location.X - (ClientSize.Width - size.Width); Int32 y = Location.Y - (ClientSize.Height - size.Height); SetLocation(x, y); m_ButtonStart.Location = new Point(4, 221); m_ButtonStop.Location = new Point(97, 221); m_ButtonResize.Location = new Point(390, 221); m_ButtonResize.Text = Resources.TextCollapse; m_TableLayoutPanelContainer.Visible = true; m_Collapsed = false; } else { m_TableLayoutPanelContainer.Visible = false; m_ButtonStart.Location = new Point(4, 28); m_ButtonStop.Location = new Point(97, 28); m_ButtonResize.Location = new Point(195, 28); m_ButtonResize.Text = Resources.TextExpand; Size size = ClientSize; ClientSize = new Size(289, 62); Int32 x = Location.X + (size.Width - ClientSize.Width); Int32 y = Location.Y + (size.Height - ClientSize.Height); SetLocation(x, y); m_Collapsed = true; } ResumeLayout(true); m_ButtonResize.Enabled = true; ActiveControl = m_ButtonResize; } private void ButtonScanClick(Object sender, EventArgs e) { ClientsScan(); } private void ButtonStartClick(Object sender, EventArgs e) { MacroStart(); } private void ButtonStopClick(Object sender, EventArgs e) { MacroStop(); } private void CheckBoxAltCheckedChanged(Object sender, EventArgs e) { if (!m_CheckBoxAlt.Focused) return; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return; m_Presets[(selectedIndex - 1)].ModifierAlt = m_CheckBoxAlt.Checked; m_PresetsChanged = true; } private void CheckBoxCtrlCheckedChanged(Object sender, EventArgs e) { if (!m_CheckBoxCtrl.Focused) return; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return; m_Presets[(selectedIndex - 1)].ModifierCtrl = m_CheckBoxCtrl.Checked; m_PresetsChanged = true; } private void CheckBoxShiftCheckedChanged(Object sender, EventArgs e) { if (!m_CheckBoxShift.Focused) return; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return; m_Presets[(selectedIndex - 1)].ModifierShift = m_CheckBoxShift.Checked; m_PresetsChanged = true; } private void ComboBoxKeysSelectedIndexChanged(Object sender, EventArgs e) { if (!m_ComboBoxKeys.Focused) return; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return; m_Presets[(selectedIndex - 1)].Key = (MacroKey)m_ComboBoxKeys.SelectedItem; m_PresetsChanged = true; } private void ComboBoxPresetsSelectedIndexChanged(Object sender, EventArgs e) { Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex == m_PresetsPreviousIndex) return; if (selectedIndex == 0) { m_ButtonAdd.Enabled = true; m_ButtonRemove.Enabled = false; m_PresetsPreviousIndex = 0; return; } Macro macro = m_Presets[(selectedIndex - 1)]; m_ButtonAdd.Enabled = false; m_ButtonRemove.Enabled = true; m_ComboBoxKeys.SelectedItem = macro.Key; m_NumericUpDownDelay.Value = macro.Delay; m_CheckBoxAlt.Checked = macro.ModifierAlt; m_CheckBoxCtrl.Checked = macro.ModifierCtrl; m_CheckBoxShift.Checked = macro.ModifierShift; m_PresetsPreviousIndex = selectedIndex; } private void NumericUpDownDelayValueChanged(Object sender, EventArgs e) { if (!m_NumericUpDownDelay.Focused) return; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return; m_Presets[(selectedIndex - 1)].Delay = (UInt32)m_NumericUpDownDelay.Value; m_PresetsChanged = true; } private void TimerClientTick(Object sender, EventArgs e) { if (NativeMethods.IsValidWindow(m_MacroCurrent.WindowHandle)) return; MacroStop(); if (m_Clients.Count == 1) { m_Clients.Clear(); m_ComboBoxClients.BeginUpdate(); m_ComboBoxClients.Items.Clear(); m_ComboBoxClients.Items.Add(Resources.TextClientsEmpty); m_ComboBoxClients.SelectedIndex = 0; m_ComboBoxClients.EndUpdate(); m_ComboBoxClients.Enabled = false; ActiveControl = m_ButtonScan; m_Messenger.DisplayError(Resources.ErrorClientNone); } else { Int32 selectedIndex = m_ComboBoxClients.SelectedIndex; m_Clients.RemoveAt(selectedIndex); m_ComboBoxClients.BeginUpdate(); m_ComboBoxClients.Items.RemoveAt(selectedIndex); m_ComboBoxClients.EndUpdate(); ActiveControl = m_ButtonStart; m_Messenger.DisplayError(Resources.ErrorClientSome); } } private void TimerMacroTick(Object sender, EventArgs e) { IntPtr windowHandle = m_MacroCurrent.WindowHandle; UInt32 keyCode = m_MacroCurrent.KeyCode; if (m_MacroCurrent.Modifiers > 0) { UInt32 windowThreadIdClient = m_MacroCurrent.WindowThreadId; UInt32 windowThreadIdThis = NativeMethods.GetThreadId(); if (NativeMethods.ThreadInputAttach(windowThreadIdThis, windowThreadIdClient)) { Byte[] keyboardState = NativeMethods.GetKeyboardState(); if (m_CheckBoxAlt.Checked) keyboardState[18] |= 0x80; if (m_CheckBoxCtrl.Checked) keyboardState[17] |= 0x80; if (m_CheckBoxShift.Checked) keyboardState[16] |= 0x80; NativeMethods.KeyboardState(keyboardState); NativeMethods.SendKeyDown(windowHandle, m_KeyboardLayout, keyCode); if (m_CheckBoxAlt.Checked) keyboardState[18] &= 0x7F; if (m_CheckBoxCtrl.Checked) keyboardState[17] &= 0x7F; if (m_CheckBoxShift.Checked) keyboardState[16] &= 0x7F; NativeMethods.KeyboardState(keyboardState); NativeMethods.ThreadInputDetach(windowThreadIdThis, windowThreadIdClient); if (CountersIncrease()) MacroStop(); } else { MacroStop(); m_Messenger.DisplayError(Resources.ErrorClientInput); } } else { NativeMethods.SendKeyDown(windowHandle, m_KeyboardLayout, keyCode); if (CountersIncrease()) MacroStop(); } } private void ToolStripMenuItemTopMostCheckedChanged(Object sender, EventArgs e) { TopMost = Settings.Default.TopMost = m_ToolStripMenuItemTopMost.Checked; } private void ToolStripMenuItemTransparencyChanged(Object sender, EventArgs e) { if (m_ToolStripMenuItemTransparency.Checked) { Settings.Default.Transparent = true; Opacity = 0.60d; } else { Settings.Default.Transparent = false; Opacity = 1.0d; } } #endregion #region Methods private Boolean CountersIncrease() { ++m_CounterRuns; m_TextBoxRuns.Text = m_CounterRuns.ToString("N", m_NumberFormatInfo); m_CounterTime += m_NumericUpDownDelay.Value; m_TextBoxTime.Text = m_CounterTime.ToStringTime(); if (m_MacroCurrent.Runs == -1m) return false; return (--m_MacroCurrent.Runs == 0m); } private Boolean EnumerateWindow(IntPtr windowHandle, IntPtr lParameter) { String windowClass = NativeMethods.GetWindowClass(windowHandle); if (!windowClass.Contains("Ultima Online")) return true; String windowText = NativeMethods.GetWindowText(windowHandle); if (!windowText.Contains("Ultima Online - ")) return true; UInt32 windowThreadId = NativeMethods.GetWindowThreadId(windowHandle); m_Clients.Add(new Client(windowText, windowHandle, windowThreadId)); return true; } protected override Boolean ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData != Keys.F2) return base.ProcessCmdKey(ref msg, keyData); if (!m_ComboBoxPresets.Enabled || !m_ComboBoxPresets.Visible || m_ComboBoxPresets.DroppedDown) return true; Int32 selectedIndex = m_ComboBoxPresets.SelectedIndex; if (selectedIndex < 1) return true; Int32 presetIndex = selectedIndex - 1; Macro preset = m_Presets[presetIndex]; String presetName = preset.Name; String[] existingNames = m_Presets.GetNames(presetIndex); using (RenameDialog dialog = new RenameDialog(presetName, existingNames)) { if (dialog.ShowDialog(this) != DialogResult.OK) return true; String newName = dialog.NewName; if (newName == presetName) return true; preset.Name = newName; m_PresetsChanged = true; m_ComboBoxPresets.BeginUpdate(); m_ComboBoxPresets.Items[selectedIndex] = newName; m_ComboBoxPresets.EndUpdate(); return true; } } private void ClientsScan() { ActiveControl = null; m_ButtonStart.Enabled = false; m_TableLayoutPanelClients.Enabled = false; m_ComboBoxClients.BeginUpdate(); m_ComboBoxClients.Items.Clear(); m_ComboBoxClients.Items.Add(Resources.TextClientsEmpty); m_ComboBoxClients.SelectedIndex = 0; m_ComboBoxClients.EndUpdate(); Refresh(); m_Clients.Clear(); NativeMethods.EnumerateWindows(EnumerateWindow); Int32 clientsCount = m_Clients.Count; Boolean clientsFound = (clientsCount > 0); if (clientsFound) { Object[] names = new Object[clientsCount]; for (Int32 i = 0; i < clientsCount; ++i) { Client client = m_Clients[i]; names[i] = String.Concat(client.Name, " (", client.WindowHandle, ")"); } m_ComboBoxClients.BeginUpdate(); m_ComboBoxClients.Items.Clear(); m_ComboBoxClients.Items.AddRange(names); m_ComboBoxClients.SelectedIndex = 0; m_ComboBoxClients.EndUpdate(); } Thread.Sleep(250); m_ComboBoxClients.Enabled = clientsFound; m_TableLayoutPanelClients.Enabled = true; m_ButtonStart.Enabled = clientsFound; ActiveControl = m_ButtonScan; } private void CountersReset() { m_CounterRuns = 0m; m_TextBoxRuns.Text = Resources.TextZero; m_CounterTime = 0m; m_TextBoxTime.Text = Resources.TextZeroSeconds; } protected override void Dispose(Boolean disposing) { if (disposing) m_Components?.Dispose(); base.Dispose(disposing); } private void MacroStart() { m_ButtonStart.Enabled = false; m_TableLayoutPanelClients.Enabled = false; m_TableLayoutPanelPresets.Enabled = false; m_LabelKey.Enabled = false; m_ComboBoxKeys.Enabled = false; m_LabelDelay.Enabled = false; m_NumericUpDownDelay.Enabled = false; m_LabelModifiers.Enabled = false; m_CheckBoxAlt.Enabled = false; m_CheckBoxCtrl.Enabled = false; m_CheckBoxShift.Enabled = false; if (m_NumericUpDownRuns.Value == 0m) { m_LabelRuns.Enabled = false; m_NumericUpDownRuns.Enabled = false; } else m_NumericUpDownRuns.ReadOnly = true; m_ButtonStop.Enabled = true; ActiveControl = m_ButtonStop; Client client = m_Clients[m_ComboBoxClients.SelectedIndex]; UInt32 keyCode = ((MacroKey)m_ComboBoxKeys.SelectedItem).Code; UInt32 modifiers = (UInt32)((m_CheckBoxAlt.Checked ? Keys.Alt : Keys.None) | (m_CheckBoxCtrl.Checked ? Keys.Control : Keys.None) | (m_CheckBoxShift.Checked ? Keys.Shift : Keys.None)); Decimal runs = (m_NumericUpDownRuns.Value == 0m) ? -1m : m_NumericUpDownRuns.Value; m_MacroCurrent = new MacroRunning(client.WindowHandle, client.WindowThreadId, keyCode, modifiers, runs); if ((m_MacroLast != null) && (m_MacroLast != m_MacroCurrent)) CountersReset(); m_MacroLast = m_MacroCurrent; m_TimerMacro.Interval = (Int32)m_NumericUpDownDelay.Value; m_TimerClient.Start(); m_TimerMacro.Start(); } private void MacroStop() { m_TimerClient.Stop(); m_TimerMacro.Stop(); m_ButtonStop.Enabled = false; m_TableLayoutPanelClients.Enabled = true; m_TableLayoutPanelPresets.Enabled = true; m_LabelKey.Enabled = true; m_ComboBoxKeys.Enabled = true; m_LabelDelay.Enabled = true; m_NumericUpDownDelay.Enabled = true; m_LabelModifiers.Enabled = true; m_CheckBoxAlt.Enabled = true; m_CheckBoxCtrl.Enabled = true; m_CheckBoxShift.Enabled = true; m_LabelRuns.Enabled = true; m_NumericUpDownRuns.ReadOnly = false; m_NumericUpDownRuns.Enabled = true; m_ButtonStart.Enabled = true; ActiveControl = m_ButtonStart; } protected override void OnFormClosing(FormClosingEventArgs e) { if (m_PresetsChanged) { try { DataContractSerializer dcs = new DataContractSerializer(typeof(MacroCollection)); XmlWriterSettings xws = new XmlWriterSettings { Indent = true, IndentChars = "\t" }; using (XmlWriter writer = XmlWriter.Create(Program.MacrosFile, xws)) { writer.WriteStartDocument(true); dcs.WriteObject(writer, m_Presets); } } catch { m_Messenger.DisplayError(Resources.ErrorPresetsSave); } } Settings.Default.Save(); base.OnFormClosing(e); } protected override void OnLoad(EventArgs e) { ClientsScan(); PresetsLoad(); ActiveControl = m_ButtonStart.Enabled ? m_ButtonStart : m_ButtonScan; base.OnLoad(e); } private void PresetsLoad() { ActiveControl = null; m_ButtonStart.Enabled = false; m_TableLayoutPanelMacro.Enabled = false; m_TableLayoutPanelPresets.Enabled = false; m_ComboBoxKeys.SelectedIndex = 0; m_NumericUpDownDelay.Value = 100m; m_CheckBoxAlt.Checked = false; m_CheckBoxCtrl.Checked = false; m_CheckBoxShift.Checked = false; Refresh(); m_PresetsChanged = false; Boolean firstLoad = (m_Presets == null); String error = null; FileStream stream = null; try { stream = new FileStream(Program.MacrosFile, FileMode.Open); DataContractSerializer dcs = new DataContractSerializer(typeof(MacroCollection)); XmlDictionaryReader reader = XmlDictionaryReader.CreateTextReader(stream, (new XmlDictionaryReaderQuotas())); m_Presets = (MacroCollection)dcs.ReadObject(reader); String result = m_Presets.Validate(); if (result != null) throw new InvalidDataException(result); } catch (InvalidDataException e) { m_Presets = new MacroCollection(); error = e.Message; } catch { m_Presets = new MacroCollection(); error = Resources.ErrorPresetsFileMissingOrMalformed; } finally { stream?.Dispose(); } Int32 presetsCount = m_Presets.Count; Boolean presetsFound = (presetsCount > 0); Object[] names; if (presetsFound) { Int32 namesLength = presetsCount + 1; names = new Object[namesLength]; names[0] = Resources.TextPresetsUnselected; for (Int32 i = 1; i < namesLength; ++i) names[i] = m_Presets[(i - 1)].Name; } else names = new Object[] { Resources.TextPresetsEmpty }; m_ComboBoxPresets.BeginUpdate(); m_ComboBoxPresets.Items.Clear(); m_ComboBoxPresets.Items.AddRange(names); m_ComboBoxPresets.SelectedIndex = 0; m_ComboBoxPresets.EndUpdate(); if (error != null) m_Messenger.DisplayError(String.Format(CultureInfo.CurrentCulture, Resources.ErrorPresetsFile, error)); else if (!firstLoad) m_Messenger.DisplayInformation(Resources.SuccessPresetsReload); m_ComboBoxPresets.Enabled = presetsFound; m_TableLayoutPanelMacro.Enabled = true; m_TableLayoutPanelPresets.Enabled = true; m_ButtonStart.Enabled = (m_Clients.Count > 0); ActiveControl = m_ButtonReload; } private void SetLocation(Int32 x, Int32 y) { if (x < 0) x = 0; else { Int32 screenRight = Screen.FromControl(this).WorkingArea.Right; if ((x + Size.Width) > screenRight) x = screenRight - Size.Width; } if (y < 0) y = 0; else { Int32 screenBottom = Screen.FromControl(this).WorkingArea.Bottom; if ((y + Size.Height) > screenBottom) y = screenBottom - Size.Height; } Location = new Point(x, y); } protected override void WndProc(ref Message m) { if (m.Msg == Program.MutexMessage) NativeMethods.Restore(this); base.WndProc(ref m); } #endregion #region Nesting (Structures) private struct Client { #region Properties public IntPtr WindowHandle { get; } public String Name { get; } public UInt32 WindowThreadId { get; } #endregion #region Constructors public Client(String name, IntPtr windowHandle, UInt32 windowThreadID) { WindowHandle = windowHandle; Name = name; WindowThreadId = windowThreadID; } #endregion } #endregion } }
41.314937
196
0.590913
[ "MIT" ]
TommasoBelluzzo/MacroUO
Solution/ApplicationDialog.cs
56,147
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace CRM.Interface.Models { using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Linq; /// <summary> /// Microsoft.Dynamics.CRM.msdyn_tour /// </summary> public partial class MicrosoftDynamicsCRMmsdynTour { /// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMmsdynTour /// class. /// </summary> public MicrosoftDynamicsCRMmsdynTour() { CustomInit(); } /// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMmsdynTour /// class. /// </summary> public MicrosoftDynamicsCRMmsdynTour(string msdynTourdefinition = default(string), System.DateTimeOffset? createdon = default(System.DateTimeOffset?), string componentidunique = default(string), int? statecode = default(int?), string msdynLabelsresource = default(string), int? importsequencenumber = default(int?), string _createdonbehalfbyValue = default(string), int? utcconversiontimezonecode = default(int?), string iscustomizable = default(string), System.DateTimeOffset? overriddencreatedon = default(System.DateTimeOffset?), string _organizationidValue = default(string), System.DateTimeOffset? modifiedon = default(System.DateTimeOffset?), int? componentstate = default(int?), string _createdbyValue = default(string), bool? ismanaged = default(bool?), int? timezoneruleversionnumber = default(int?), string solutionid = default(string), string _modifiedonbehalfbyValue = default(string), string msdynDisplayname = default(string), System.DateTimeOffset? overwritetime = default(System.DateTimeOffset?), string _modifiedbyValue = default(string), string msdynTourid = default(string), string msdynPath = default(string), int? statuscode = default(int?), string versionnumber = default(string), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMorganization organizationid = default(MicrosoftDynamicsCRMorganization), IList<MicrosoftDynamicsCRMsyncerror> msdynTourSyncErrors = default(IList<MicrosoftDynamicsCRMsyncerror>), IList<MicrosoftDynamicsCRMasyncoperation> msdynTourAsyncOperations = default(IList<MicrosoftDynamicsCRMasyncoperation>), IList<MicrosoftDynamicsCRMmailboxtrackingfolder> msdynTourMailboxTrackingFolders = default(IList<MicrosoftDynamicsCRMmailboxtrackingfolder>), IList<MicrosoftDynamicsCRMprocesssession> msdynTourProcessSession = default(IList<MicrosoftDynamicsCRMprocesssession>), IList<MicrosoftDynamicsCRMbulkdeletefailure> msdynTourBulkDeleteFailures = default(IList<MicrosoftDynamicsCRMbulkdeletefailure>), IList<MicrosoftDynamicsCRMprincipalobjectattributeaccess> msdynTourPrincipalObjectAttributeAccesses = default(IList<MicrosoftDynamicsCRMprincipalobjectattributeaccess>)) { MsdynTourdefinition = msdynTourdefinition; Createdon = createdon; Componentidunique = componentidunique; Statecode = statecode; MsdynLabelsresource = msdynLabelsresource; Importsequencenumber = importsequencenumber; this._createdonbehalfbyValue = _createdonbehalfbyValue; Utcconversiontimezonecode = utcconversiontimezonecode; Iscustomizable = iscustomizable; Overriddencreatedon = overriddencreatedon; this._organizationidValue = _organizationidValue; Modifiedon = modifiedon; Componentstate = componentstate; this._createdbyValue = _createdbyValue; Ismanaged = ismanaged; Timezoneruleversionnumber = timezoneruleversionnumber; Solutionid = solutionid; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; MsdynDisplayname = msdynDisplayname; Overwritetime = overwritetime; this._modifiedbyValue = _modifiedbyValue; MsdynTourid = msdynTourid; MsdynPath = msdynPath; Statuscode = statuscode; Versionnumber = versionnumber; Createdby = createdby; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; Modifiedonbehalfby = modifiedonbehalfby; Organizationid = organizationid; MsdynTourSyncErrors = msdynTourSyncErrors; MsdynTourAsyncOperations = msdynTourAsyncOperations; MsdynTourMailboxTrackingFolders = msdynTourMailboxTrackingFolders; MsdynTourProcessSession = msdynTourProcessSession; MsdynTourBulkDeleteFailures = msdynTourBulkDeleteFailures; MsdynTourPrincipalObjectAttributeAccesses = msdynTourPrincipalObjectAttributeAccesses; CustomInit(); } /// <summary> /// An initialization method that performs custom operations like setting defaults /// </summary> partial void CustomInit(); /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tourdefinition")] public string MsdynTourdefinition { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "createdon")] public System.DateTimeOffset? Createdon { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "componentidunique")] public string Componentidunique { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "statecode")] public int? Statecode { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_labelsresource")] public string MsdynLabelsresource { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "importsequencenumber")] public int? Importsequencenumber { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "_createdonbehalfby_value")] public string _createdonbehalfbyValue { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "utcconversiontimezonecode")] public int? Utcconversiontimezonecode { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "iscustomizable")] public string Iscustomizable { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "overriddencreatedon")] public System.DateTimeOffset? Overriddencreatedon { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "_organizationid_value")] public string _organizationidValue { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "modifiedon")] public System.DateTimeOffset? Modifiedon { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "componentstate")] public int? Componentstate { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "_createdby_value")] public string _createdbyValue { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "ismanaged")] public bool? Ismanaged { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "timezoneruleversionnumber")] public int? Timezoneruleversionnumber { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "solutionid")] public string Solutionid { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "_modifiedonbehalfby_value")] public string _modifiedonbehalfbyValue { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_displayname")] public string MsdynDisplayname { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "overwritetime")] public System.DateTimeOffset? Overwritetime { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "_modifiedby_value")] public string _modifiedbyValue { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tourid")] public string MsdynTourid { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_path")] public string MsdynPath { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "statuscode")] public int? Statuscode { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "versionnumber")] public string Versionnumber { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "createdby")] public MicrosoftDynamicsCRMsystemuser Createdby { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "createdonbehalfby")] public MicrosoftDynamicsCRMsystemuser Createdonbehalfby { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "modifiedby")] public MicrosoftDynamicsCRMsystemuser Modifiedby { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "modifiedonbehalfby")] public MicrosoftDynamicsCRMsystemuser Modifiedonbehalfby { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "organizationid")] public MicrosoftDynamicsCRMorganization Organizationid { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_SyncErrors")] public IList<MicrosoftDynamicsCRMsyncerror> MsdynTourSyncErrors { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_AsyncOperations")] public IList<MicrosoftDynamicsCRMasyncoperation> MsdynTourAsyncOperations { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_MailboxTrackingFolders")] public IList<MicrosoftDynamicsCRMmailboxtrackingfolder> MsdynTourMailboxTrackingFolders { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_ProcessSession")] public IList<MicrosoftDynamicsCRMprocesssession> MsdynTourProcessSession { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_BulkDeleteFailures")] public IList<MicrosoftDynamicsCRMbulkdeletefailure> MsdynTourBulkDeleteFailures { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "msdyn_tour_PrincipalObjectAttributeAccesses")] public IList<MicrosoftDynamicsCRMprincipalobjectattributeaccess> MsdynTourPrincipalObjectAttributeAccesses { get; set; } } }
44.542308
2,446
0.662378
[ "MIT" ]
msehudi/cms-accelerator
OData.OpenAPI/odata2openapi/Client/Models/MicrosoftDynamicsCRMmsdynTour.cs
11,581
C#
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using Orchard.DisplayManagement.Descriptors; using Orchard.DisplayManagement.Shapes; using Orchard.DisplayManagement.Theming; namespace Orchard.DisplayManagement.Implementation { public class DefaultShapeFactory : DynamicObject, IShapeFactory { private readonly IEnumerable<IShapeFactoryEvents> _events; private readonly IShapeTableManager _shapeTableManager; private readonly IThemeManager _themeManager; private ShapeTable _scopedShapeTable; public DefaultShapeFactory( IEnumerable<IShapeFactoryEvents> events, IShapeTableManager shapeTableManager, IThemeManager themeManager) { _events = events; _shapeTableManager = shapeTableManager; _themeManager = themeManager; } public dynamic New { get { return this; } } public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result) { result = ShapeFactoryExtensions.Create(this, binder.Name, Arguments.From(args, binder.CallInfo.ArgumentNames)); return true; } private ShapeTable GetShapeTable() { if (_scopedShapeTable == null) { var theme = _themeManager.GetThemeAsync().GetAwaiter().GetResult(); _scopedShapeTable = _shapeTableManager.GetShapeTable(theme?.Id); } return _scopedShapeTable; } public IShape Create(string shapeType, Func<dynamic> shapeFactory, Action<ShapeCreatingContext> creating, Action<ShapeCreatedContext> created) { ShapeDescriptor shapeDescriptor; GetShapeTable().Descriptors.TryGetValue(shapeType, out shapeDescriptor); var creatingContext = new ShapeCreatingContext { New = this, ShapeFactory = this, ShapeType = shapeType, OnCreated = new List<Action<ShapeCreatedContext>>(), Create = shapeFactory }; creating?.Invoke(creatingContext); // "creating" events may add behaviors and alter base type foreach (var ev in _events) { ev.Creating(creatingContext); } if (shapeDescriptor != null) { foreach (var ev in shapeDescriptor.Creating) { ev(creatingContext); } } // Create the new instance var createdContext = new ShapeCreatedContext { New = creatingContext.New, ShapeFactory = creatingContext.ShapeFactory, ShapeType = creatingContext.ShapeType, Shape = creatingContext.Create() }; var shape = createdContext.Shape as IShape; if (shape == null) { throw new InvalidOperationException("Invalid base type for shape: " + createdContext.Shape.GetType().ToString()); } if (shape.Metadata == null) { shape.Metadata = new ShapeMetadata(); } ShapeMetadata shapeMetadata = shape.Metadata; shape.Metadata.Type = shapeType; // Concatenate wrappers if there are any if (shapeDescriptor != null && shapeMetadata.Wrappers.Count + shapeDescriptor.Wrappers.Count > 0) { shapeMetadata.Wrappers = shapeMetadata.Wrappers.Concat(shapeDescriptor.Wrappers).ToList(); } // "created" events provides default values and new object initialization foreach (var ev in _events) { ev.Created(createdContext); } if (shapeDescriptor != null) { foreach (var ev in shapeDescriptor.Created) { ev(createdContext); } } if (creatingContext.OnCreated != null) { foreach (var ev in creatingContext.OnCreated) { ev(createdContext); } } created?.Invoke(createdContext); return createdContext.Shape; } } }
32.625
150
0.57043
[ "BSD-3-Clause" ]
hishamco/Orchard2
src/OrchardCore/Orchard.DisplayManagement/Implementation/DefaultShapeFactory.cs
4,437
C#
using System; using System.ComponentModel.DataAnnotations; namespace Api.Domain.Entities { public class CepEntity : BaseEntity { [Required] [MaxLength(10)] public string Cep { get; set; } [Required] [MaxLength(60)] public string Logradouro { get; set; } [MaxLength(10)] public string Numero { get; set; } [Required] public Guid MunicipioId { get; set; } public MunicipioEntity Municipio { get; set; } } }
20.4
54
0.588235
[ "MIT" ]
JoaoDiasDev/Projetos
api_net_coreMVC_5/src/Api.Domain/Entities/CepEntity.cs
510
C#
// LICENSE: // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // // AUTHORS: // // Moritz Eberl <moritz@semiodesk.com> // Sebastian Faubel <sebastian@semiodesk.com> // // Copyright (c) Semiodesk GmbH 2015 using System.Collections.Generic; namespace Semiodesk.Trinity { /// <summary> /// A dictionary of named value bindings which represents a single query solution. /// </summary> public class BindingSet : Dictionary<string, object> {} }
41.108108
87
0.729126
[ "MIT" ]
DarthStem/trinity-rdf
Trinity/Query/BindingSet.cs
1,523
C#
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; using Roslyn.Test.Utilities; using Xunit; namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Recommendations { public class DefaultKeywordRecommenderTests : KeywordRecommenderTests { [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AtRoot_Interactive() { VerifyKeyword(SourceCodeKind.Script, @"$$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterClass_Interactive() { VerifyKeyword(SourceCodeKind.Script, @"class C { } $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterGlobalStatement_Interactive() { VerifyKeyword(SourceCodeKind.Script, @"System.Console.WriteLine(); $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterGlobalVariableDeclaration_Interactive() { VerifyKeyword(SourceCodeKind.Script, @"int i = 0; $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInUsingAlias() { VerifyAbsence( @"using Foo = $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInPreprocessor1() { VerifyAbsence( @"class C { #$$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInPreprocessor2() { VerifyAbsence( @"class C { #if $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterHash() { VerifyKeyword( @"#line $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterHashAndSpace() { VerifyKeyword( @"# line $$"); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void InEmptyStatement() { VerifyKeyword(AddInsideMethod( @"$$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void InExpression() { VerifyKeyword(AddInsideMethod( @"var q = $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterSwitch() { VerifyKeyword(AddInsideMethod( @"switch (expr) { $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterCase() { VerifyKeyword(AddInsideMethod( @"switch (expr) { case 0: $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterDefault() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterOneStatement() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: Console.WriteLine(); $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterTwoStatements() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: Console.WriteLine(); Console.WriteLine(); $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterBlock() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: { } $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterIfElse() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: if (foo) { } else { } $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterIncompleteStatement() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: Console.WriteLine( $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void InsideBlock() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: { $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterCompleteIf() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: if (foo) Console.WriteLine(); $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterIncompleteIf() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: if (foo) $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void AfterWhile() { VerifyKeyword(AddInsideMethod( @"switch (expr) { default: while (true) { } $$")); } [WorkItem(552717)] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotAfterGotoInSwitch() { VerifyAbsence(AddInsideMethod( @"switch (expr) { default: goto $$")); } [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotAfterGotoOutsideSwitch() { VerifyAbsence(AddInsideMethod( @"goto $$")); } [WorkItem(538804)] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInTypeOf() { VerifyAbsence(AddInsideMethod( @"typeof($$")); } [WorkItem(538804)] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInDefault() { VerifyAbsence(AddInsideMethod( @"default($$")); } [WorkItem(538804)] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInSizeOf() { VerifyAbsence(AddInsideMethod( @"sizeof($$")); } [WorkItem(544219)] [Fact, Trait(Traits.Feature, Traits.Features.KeywordRecommending)] public void NotInObjectInitializerMemberContext() { VerifyAbsence(@" class C { public int x, y; void M() { var c = new C { x = 2, y = 3, $$"); } } }
25.423792
160
0.58298
[ "Apache-2.0" ]
drieseng/roslyn
src/EditorFeatures/CSharpTest2/Recommendations/DefaultKeywordRecommenderTests.cs
6,839
C#
// Copyright (c) Microsoft. All rights reserved. namespace SampleUnitTestProject3 { using Microsoft.VisualStudio.TestTools.UnitTesting; using System; using System.IO; using System.Reflection; using System.Threading; [TestClass] public class UnitTest1 { [TestMethod] public void WorkingDirectoryTest() { Assert.AreEqual(Path.GetDirectoryName(typeof(UnitTest1).GetTypeInfo().Assembly.Location), Directory.GetCurrentDirectory()); } [TestMethod] public void ExitwithUnhandleException() { Action fail = () => throw new InvalidOperationException(); var thread = new Thread(new ThreadStart(fail)); thread.Start(); thread.Join(); } [TestMethod] public void ExitWithStackoverFlow() { ExitWithStackoverFlow(); } } }
25.388889
135
0.610503
[ "MIT" ]
eerhardt/vstest
test/TestAssets/SimpleTestProject3/UnitTest1.cs
914
C#
// Copyright (c) .NET Foundation and contributors. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.DotNet.Cli.Telemetry { internal interface IDockerContainerDetector { IsDockerContainer IsDockerContainer(); } }
29.818182
101
0.753049
[ "MIT" ]
01xOfFoo/sdk
src/Cli/dotnet/Telemetry/IDockerContainerDetector.cs
330
C#
namespace WebServer { using System; using System.Linq; using System.Net.Sockets; using System.Text; using System.Threading.Tasks; using Http; using Http.Contracts; using Http.Response; using Common; using Contracts; public class ConnectionHandler { private readonly Socket client; private readonly IHandleable mvcRequestHandler; private readonly IHandleable fileHandler; public ConnectionHandler( Socket client, IHandleable mvcRequestHandler, IHandleable fileHandler) { CoreValidator.ThrowIfNull(client, nameof(client)); CoreValidator.ThrowIfNull(mvcRequestHandler, nameof(mvcRequestHandler)); CoreValidator.ThrowIfNull(fileHandler, nameof(fileHandler)); this.client = client; this.mvcRequestHandler = mvcRequestHandler; this.fileHandler = fileHandler; } public async Task ProcessRequestAsync() { var httpRequest = await this.ReadRequest(); if (httpRequest != null) { var httpResponse = HandleRequest(httpRequest); await PrepareResponse(httpResponse); Console.WriteLine($"-----REQUEST-----"); Console.WriteLine(httpRequest); Console.WriteLine($"-----RESPONSE-----"); Console.WriteLine(httpResponse); Console.WriteLine(); } this.client.Shutdown(SocketShutdown.Both); } private async Task<IHttpRequest> ReadRequest() { var result = new StringBuilder(); var data = new ArraySegment<byte>(new byte[1024]); while (true) { int numberOfBytesRead = await this.client.ReceiveAsync(data.Array, SocketFlags.None); if (numberOfBytesRead == 0) { break; } var bytesAsString = Encoding.UTF8.GetString(data.Array, 0, numberOfBytesRead); result.Append(bytesAsString); if (numberOfBytesRead < 1023) { break; } } if (result.Length == 0) { return null; } return new HttpRequest(result.ToString()); } private IHttpResponse HandleRequest(IHttpRequest httpRequest) { IHttpResponse httpResponse; if (httpRequest.Path.Contains(".")) { httpResponse = this.fileHandler.Handle(httpRequest); } else { string sessionId = this.SetRequestSession(httpRequest); httpResponse = this.mvcRequestHandler.Handle(httpRequest); this.SetResponseSession(httpResponse, sessionId); } return httpResponse; } private string SetRequestSession(IHttpRequest httpRequest) { string sessionId = null; if (httpRequest.Cookies.ContainsKey(SessionStore.SessionCookieKey)) { var cookie = httpRequest.Cookies.Get(SessionStore.SessionCookieKey); sessionId = cookie.Value; httpRequest.Session = SessionStore.Get(sessionId); } else { sessionId = Guid.NewGuid().ToString(); httpRequest.Session = SessionStore.Get(sessionId); } return sessionId; } private void SetResponseSession(IHttpResponse httpResponse, string sessionId) { var session = SessionStore.Get(sessionId); httpResponse.Headers.Add(HttpHeader.SetCookie, sessionId); } private async Task PrepareResponse(IHttpResponse httpResponse) { var responseBytes = Encoding.UTF8.GetBytes(httpResponse.ToString()).ToList(); if (httpResponse is FileResponse) { responseBytes.AddRange((httpResponse as FileResponse).FileData); } var byteSegments = new ArraySegment<byte>(responseBytes.ToArray()); await this.client.SendAsync(byteSegments, SocketFlags.None); } } }
30.468531
101
0.558871
[ "MIT" ]
msotiroff/Softuni-learning
C# Web Module/CSharp-Web-Development-Basics/10.ExamPreparation_1/Resourses/MVCServer/WebServer/ConnectionHandler.cs
4,359
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using PubnubApi.Interface; using System.Threading.Tasks; using System.Threading; using System.Net; using Newtonsoft.Json; namespace PubnubApi.EndPoint { public class ManageChannelMembersOperation : PubnubCoreBase { private readonly PNConfiguration config; private readonly IJsonPluggableLibrary jsonLibrary; private readonly IPubnubUnitTest unit; private readonly IPubnubLog pubnubLog; private readonly EndPoint.TelemetryManager pubnubTelemetryMgr; private string chMetadataId = ""; private List<PNChannelMember> setMember; private List<string> delMember; private string commandDelimitedIncludeOptions = ""; private PNPageObject page; private int limit = -1; private bool includeCount; private List<string> sortField; private PNCallback<PNChannelMembersResult> savedCallback; private Dictionary<string, object> queryParam; public ManageChannelMembersOperation(PNConfiguration pubnubConfig, IJsonPluggableLibrary jsonPluggableLibrary, IPubnubUnitTest pubnubUnit, IPubnubLog log, EndPoint.TelemetryManager telemetryManager, EndPoint.TokenManager tokenManager, Pubnub instance) : base(pubnubConfig, jsonPluggableLibrary, pubnubUnit, log, telemetryManager, tokenManager, instance) { config = pubnubConfig; jsonLibrary = jsonPluggableLibrary; unit = pubnubUnit; pubnubLog = log; pubnubTelemetryMgr = telemetryManager; if (instance != null) { if (!ChannelRequest.ContainsKey(instance.InstanceId)) { ChannelRequest.GetOrAdd(instance.InstanceId, new ConcurrentDictionary<string, HttpWebRequest>()); } if (!ChannelInternetStatus.ContainsKey(instance.InstanceId)) { ChannelInternetStatus.GetOrAdd(instance.InstanceId, new ConcurrentDictionary<string, bool>()); } if (!ChannelGroupInternetStatus.ContainsKey(instance.InstanceId)) { ChannelGroupInternetStatus.GetOrAdd(instance.InstanceId, new ConcurrentDictionary<string, bool>()); } } } public ManageChannelMembersOperation Channel(string channelName) { this.chMetadataId = channelName; return this; } public ManageChannelMembersOperation Set(List<PNChannelMember> members) { this.setMember = members; return this; } public ManageChannelMembersOperation Remove(List<string> uuidList) { this.delMember = uuidList; return this; } public ManageChannelMembersOperation Include(PNChannelMemberField[] includeOptions) { if (includeOptions != null) { string[] arrayInclude = includeOptions.Select(x => MapEnumValueToEndpoint(x.ToString())).ToArray(); this.commandDelimitedIncludeOptions = string.Join(",", arrayInclude); } return this; } public ManageChannelMembersOperation Page(PNPageObject pageObject) { this.page = pageObject; return this; } public ManageChannelMembersOperation Limit(int numberOfObjects) { this.limit = numberOfObjects; return this; } public ManageChannelMembersOperation IncludeCount(bool includeTotalCount) { this.includeCount = includeTotalCount; return this; } public ManageChannelMembersOperation Sort(List<string> sortByField) { this.sortField = sortByField; return this; } public ManageChannelMembersOperation QueryParam(Dictionary<string, object> customQueryParam) { this.queryParam = customQueryParam; return this; } public void Execute(PNCallback<PNChannelMembersResult> callback) { if (string.IsNullOrEmpty(this.chMetadataId) || string.IsNullOrEmpty(chMetadataId.Trim())) { throw new ArgumentException("Missing Channel"); } if (string.IsNullOrEmpty(config.SubscribeKey) || string.IsNullOrEmpty(config.SubscribeKey.Trim()) || config.SubscribeKey.Length <= 0) { throw new MissingMemberException("Invalid subscribe key"); } if (callback == null) { throw new ArgumentException("Missing callback"); } #if NETFX_CORE || WINDOWS_UWP || UAP || NETSTANDARD10 || NETSTANDARD11 || NETSTANDARD12 Task.Factory.StartNew(() => { this.savedCallback = callback; ProcessMembersOperationRequest(this.chMetadataId, this.setMember, this.delMember, this.page, this.limit, this.includeCount, this.commandDelimitedIncludeOptions, this.sortField, this.queryParam, callback); }, CancellationToken.None, TaskCreationOptions.PreferFairness, TaskScheduler.Default).ConfigureAwait(false); #else new Thread(() => { this.savedCallback = callback; ProcessMembersOperationRequest(this.chMetadataId, this.setMember, this.delMember, this.page, this.limit, this.includeCount, this.commandDelimitedIncludeOptions, this.sortField, this.queryParam, callback); }) { IsBackground = true }.Start(); #endif } public async Task<PNResult<PNChannelMembersResult>> ExecuteAsync() { return await ProcessMembersOperationRequest(this.chMetadataId, this.setMember, this.delMember, this.page, this.limit, this.includeCount, this.commandDelimitedIncludeOptions, this.sortField, this.queryParam).ConfigureAwait(false); } internal void Retry() { #if NETFX_CORE || WINDOWS_UWP || UAP || NETSTANDARD10 || NETSTANDARD11 || NETSTANDARD12 Task.Factory.StartNew(() => { ProcessMembersOperationRequest(this.chMetadataId, this.setMember, this.delMember, this.page, this.limit, this.includeCount, this.commandDelimitedIncludeOptions, this.sortField, this.queryParam, savedCallback); }, CancellationToken.None, TaskCreationOptions.PreferFairness, TaskScheduler.Default).ConfigureAwait(false); #else new Thread(() => { ProcessMembersOperationRequest(this.chMetadataId, this.setMember, this.delMember, this.page, this.limit, this.includeCount, this.commandDelimitedIncludeOptions, this.sortField, this.queryParam, savedCallback); }) { IsBackground = true }.Start(); #endif } private void ProcessMembersOperationRequest(string spaceId, List<PNChannelMember> setMemberList, List<string> removeMemberList, PNPageObject page, int limit, bool includeCount, string includeOptions, List<string> sort, Dictionary<string, object> externalQueryParam, PNCallback<PNChannelMembersResult> callback) { PNPageObject internalPage; if (page == null) { internalPage = new PNPageObject(); } else { internalPage = page; } RequestState<PNChannelMembersResult> requestState = new RequestState<PNChannelMembersResult>(); requestState.ResponseType = PNOperationType.PNManageChannelMembersOperation; requestState.PubnubCallback = callback; requestState.Reconnect = false; requestState.EndPointOperation = this; requestState.UsePatchMethod = true; Dictionary<string, object> messageEnvelope = new Dictionary<string, object>(); if (setMemberList != null) { List<Dictionary<string, object>> setMemberFormatList = new List<Dictionary<string, object>>(); for (int index = 0; index < setMemberList.Count; index++) { Dictionary<string, object> currentMemberFormat = new Dictionary<string, object>(); currentMemberFormat.Add("uuid", new Dictionary<string, string> { { "id", setMemberList[index].Uuid } }); if (setMemberList[index].Custom != null) { currentMemberFormat.Add("custom", setMemberList[index].Custom); } setMemberFormatList.Add(currentMemberFormat); } if (setMemberFormatList.Count > 0) { messageEnvelope.Add("set", setMemberFormatList); } } if (removeMemberList != null) { List<Dictionary<string, Dictionary<string, string>>> removeMemberFormatList = new List<Dictionary<string, Dictionary<string, string>>>(); for (int index = 0; index < removeMemberList.Count; index++) { Dictionary<string, Dictionary<string, string>> currentMemberFormat = new Dictionary<string, Dictionary<string, string>>(); if (!string.IsNullOrEmpty(removeMemberList[index])) { currentMemberFormat.Add("uuid", new Dictionary<string, string> { { "id", removeMemberList[index] } }); removeMemberFormatList.Add(currentMemberFormat); } } if (removeMemberFormatList.Count > 0) { messageEnvelope.Add("delete", removeMemberFormatList); } } string patchMessage = jsonLibrary.SerializeToJsonString(messageEnvelope); byte[] patchData = Encoding.UTF8.GetBytes(patchMessage); IUrlRequestBuilder urlBuilder = new UrlRequestBuilder(config, jsonLibrary, unit, pubnubLog, pubnubTelemetryMgr, (PubnubInstance != null && !string.IsNullOrEmpty(PubnubInstance.InstanceId) && PubnubTokenMgrCollection.ContainsKey(PubnubInstance.InstanceId)) ? PubnubTokenMgrCollection[PubnubInstance.InstanceId] : null, (PubnubInstance != null) ? PubnubInstance.InstanceId : ""); Uri request = urlBuilder.BuildMemberAddUpdateRemoveChannelRequest("PATCH", patchMessage, spaceId, internalPage.Next, internalPage.Prev, limit, includeCount, includeOptions, sort, externalQueryParam); UrlProcessRequest(request, requestState, false, patchData).ContinueWith(r => { string json = r.Result.Item1; if (!string.IsNullOrEmpty(json)) { List<object> result = ProcessJsonResponse(requestState, json); ProcessResponseCallbacks(result, requestState); } else { if (r.Result.Item2 != null) { callback.OnResponse(null, r.Result.Item2); } } }, TaskContinuationOptions.ExecuteSynchronously).Wait(); } private async Task<PNResult<PNChannelMembersResult>> ProcessMembersOperationRequest(string channel, List<PNChannelMember> setMemberList, List<string> removeMemberList, PNPageObject page, int limit, bool includeCount, string includeOptions, List<string> sort, Dictionary<string, object> externalQueryParam) { PNResult<PNChannelMembersResult> ret = new PNResult<PNChannelMembersResult>(); if (string.IsNullOrEmpty(channel) || string.IsNullOrEmpty(channel.Trim())) { PNStatus errStatus = new PNStatus { Error = true, ErrorData = new PNErrorData("Missing Channel", new ArgumentException("Missing Channel")) }; ret.Status = errStatus; return ret; } if (string.IsNullOrEmpty(config.SubscribeKey) || string.IsNullOrEmpty(config.SubscribeKey.Trim()) || config.SubscribeKey.Length <= 0) { PNStatus errStatus = new PNStatus { Error = true, ErrorData = new PNErrorData("Invalid Subscribe key", new ArgumentException("Invalid Subscribe key")) }; ret.Status = errStatus; return ret; } PNPageObject internalPage; if (page == null) { internalPage = new PNPageObject(); } else { internalPage = page; } RequestState<PNChannelMembersResult> requestState = new RequestState<PNChannelMembersResult>(); requestState.ResponseType = PNOperationType.PNManageChannelMembersOperation; requestState.Reconnect = false; requestState.EndPointOperation = this; requestState.UsePatchMethod = true; requestState.UsePatchMethod = true; Dictionary<string, object> messageEnvelope = new Dictionary<string, object>(); if (setMemberList != null) { List<Dictionary<string, object>> setMemberFormatList = new List<Dictionary<string, object>>(); for (int index = 0; index < setMemberList.Count; index++) { Dictionary<string, object> currentMemberFormat = new Dictionary<string, object>(); currentMemberFormat.Add("uuid", new Dictionary<string, string> { { "id", setMemberList[index].Uuid } }); if (setMemberList[index].Custom != null) { currentMemberFormat.Add("custom", setMemberList[index].Custom); } setMemberFormatList.Add(currentMemberFormat); } if (setMemberFormatList.Count > 0) { messageEnvelope.Add("set", setMemberFormatList); } } if (removeMemberList != null) { List<Dictionary<string, Dictionary<string, string>>> removeMemberFormatList = new List<Dictionary<string, Dictionary<string, string>>>(); for (int index = 0; index < removeMemberList.Count; index++) { Dictionary<string, Dictionary<string, string>> currentMemberFormat = new Dictionary<string, Dictionary<string, string>>(); if (!string.IsNullOrEmpty(removeMemberList[index])) { currentMemberFormat.Add("uuid", new Dictionary<string, string> { { "id", removeMemberList[index] } }); removeMemberFormatList.Add(currentMemberFormat); } } if (removeMemberFormatList.Count > 0) { messageEnvelope.Add("delete", removeMemberFormatList); } } string patchMessage = jsonLibrary.SerializeToJsonString(messageEnvelope); byte[] patchData = Encoding.UTF8.GetBytes(patchMessage); IUrlRequestBuilder urlBuilder = new UrlRequestBuilder(config, jsonLibrary, unit, pubnubLog, pubnubTelemetryMgr, (PubnubInstance != null && !string.IsNullOrEmpty(PubnubInstance.InstanceId) && PubnubTokenMgrCollection.ContainsKey(PubnubInstance.InstanceId)) ? PubnubTokenMgrCollection[PubnubInstance.InstanceId] : null, (PubnubInstance != null) ? PubnubInstance.InstanceId : ""); Uri request = urlBuilder.BuildMemberAddUpdateRemoveChannelRequest("PATCH", patchMessage, channel, internalPage.Next, internalPage.Prev, limit, includeCount, includeOptions, sort, externalQueryParam); Tuple<string, PNStatus> JsonAndStatusTuple = await UrlProcessRequest(request, requestState, false, patchData).ConfigureAwait(false); ret.Status = JsonAndStatusTuple.Item2; string json = JsonAndStatusTuple.Item1; if (!string.IsNullOrEmpty(json)) { List<object> resultList = ProcessJsonResponse(requestState, json); ResponseBuilder responseBuilder = new ResponseBuilder(config, jsonLibrary, pubnubLog); PNChannelMembersResult responseResult = responseBuilder.JsonToObject<PNChannelMembersResult>(resultList, true); if (responseResult != null) { ret.Result = responseResult; } } return ret; } private static string MapEnumValueToEndpoint(string enumValue) { string ret = ""; if (enumValue.ToLowerInvariant() == "custom") { ret = "custom"; } else if (enumValue.ToLowerInvariant() == "uuid") { ret = "uuid"; } else if (enumValue.ToLowerInvariant() == "channel") { ret = "channel"; } else if (enumValue.ToLowerInvariant() == "channel_custom") { ret = "channel.custom"; } else if (enumValue.ToLowerInvariant() == "uuid_custom") { ret = "uuid.custom"; } return ret; } } }
48.08078
389
0.612189
[ "MIT" ]
StockDrops/c-sharp
src/Api/PubnubApi/EndPoint/Objects/ManageChannelMembersOperation.cs
17,263
C#
using System; using System.Net; namespace Microsoft.Azure.WebJobs.Extensions.OpenApi.Core.Attributes { /// <summary> /// This represents the attribute entity for HTTP triggers to define response body payload. /// </summary> [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)] public class OpenApiResponseWithoutBodyAttribute : Attribute { /// <summary> /// Initializes a new instance of the <see cref="OpenApiResponseWithoutBodyAttribute"/> class. /// </summary> /// <param name="statusCode">HTTP status code.</param> public OpenApiResponseWithoutBodyAttribute(HttpStatusCode statusCode) { this.StatusCode = statusCode; } /// <summary> /// Gets the HTTP status code value. /// </summary> public virtual HttpStatusCode StatusCode { get; } /// <summary> /// Gets or sets the type containing the collection of the additional response headers. /// </summary> public virtual Type CustomHeaderType { get; set; } /// <summary> /// Gets or sets the summary. /// </summary> public virtual string Summary { get; set; } /// <summary> /// Gets or sets the description. /// </summary> public virtual string Description { get; set; } } }
32.952381
102
0.617775
[ "MIT" ]
2gplus/azure-functions-openapi-extension
src/Microsoft.Azure.WebJobs.Extensions.OpenApi.Core/Attributes/OpenApiResponseWithoutBodyAttribute.cs
1,384
C#
namespace SharedServices.Interfaces { public interface IActionValidator { #region Current Type Interface bool GetIsEnabled(int actionId); #endregion } }
19
40
0.663158
[ "MIT" ]
artakhak/IoC.Configuration
TestProjects.SharedServices/Interfaces/IActionValidator.cs
192
C#
namespace ServiceSentry.Testing { public partial class Tests { private const string Alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; private const string AlphaNumeric = Alpha + "1234567890"; private const string AtomChars = AlphaNumeric + "!#$%&'*+-/=?^_`{|}~"; } }
32.6
92
0.650307
[ "MIT" ]
auturge/servicesentry
tests/ServiceSentry.Testing/Testing Framework/Randoms/Sets.cs
328
C#
#region → Usings . using citPOINT.eNeg.Common; using citPOINT.eNeg.ViewModel; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Messaging; using System.ComponentModel.Composition; using System.Windows.Controls; using Telerik.Windows.Controls; using System; #endregion #region → History . /* Date User Change * * 05.08.10 m.Wahab • creation * */ #endregion #region → ToDos . /* * Date set by User Description * * */ #endregion namespace citPOINT.eNeg.Client { /// <summary> /// Quick Register /// </summary> public partial class QuickRegister : UserControl, ICleanup { #region → Properties . #region " Using MEF to import UserRegisterViewModel " /// <summary> /// Gets or sets the view model. /// </summary> /// <value>The view model.</value> [Import(ViewModelTypes.UserRegisterViewModel)] public UserRegisterViewModel ViewModel { get { return (this.DataContext as UserRegisterViewModel); } set { DataContext = value; } } /// <summary> /// Gets or sets the view model. /// </summary> /// <value>The view model.</value> [Import(ViewModelTypes.ManageUserOrganizationViewModel)] public ManageUserOrganizationViewModel ManageUserOrganizationViewModel { get { return this.ViewModel.ManageUserOrgViewModel; } set { this.ViewModel.ManageUserOrgViewModel = value; } } #endregion #endregion #region → Constructors . /// <summary> /// Default Constructor /// </summary> public QuickRegister() { InitializeComponent(); #region → Use MEF To load the View Model if (!GalaSoft.MvvmLight.ViewModelBase.IsInDesignModeStatic) { // Use MEF To load the View Model CompositionInitializer.SatisfyImports(this); } #endregion #region → Initialize Regiteration type if (!GalaSoft.MvvmLight.ViewModelBase.IsInDesignModeStatic) { this.ViewModel.IsQuickRegister = true; } #endregion #region → Registeration for needed messages in eNegMessenger eNegMessanger.SendCustomMessage.Register(this, OnUpdateMessage); eNegMessanger.BuildControl.Register(this, OnFocusControl); #endregion } #endregion #region → Event Handlers . /// <summary> /// For Make Register button as Accept Key /// </summary> /// <param name="sender">Value of Sender</param> /// <param name="e">Value of KeyEventArgs</param> private void UserControl_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == System.Windows.Input.Key.Enter) { uxcmdRegister.Focus(); Dispatcher.BeginInvoke(() => { uxcmdRegister.Command.Execute(uxcmdRegister.CommandParameter); }); } } #endregion #region → Methods . #region → Private . /// <summary> /// Called when [focus control]. /// </summary> /// <param name="controlName">Name of the control.</param> private void OnFocusControl(string controlName) { var control = this.FindName(controlName); if (control is RadButton) { Dispatcher.BeginInvoke(() => { (control as RadButton).Focus(); }); } } /// <summary> /// Called when [update message]. /// </summary> /// <param name="Message">The message.</param> private void OnUpdateMessage(eNegMessage Message) { if (Message.ViewName == ViewTypes.QuickRegisterView && Message.ReceiverApplicationID == Guid.Empty) { Dispatcher.BeginInvoke(() => { uxSPSucessMessage.MessageText = Message.Message; uxSPSucessMessage.Completed = Message.ShowMessageCompleted; uxSPSucessMessage.Show(); }); eNegMessanger.DoOperationMessage.Send(eNegMessanger.OperationType.ClearValidationMesssages); } } #endregion #region → Public . /// <summary> /// ICleanup interface implementation /// </summary> public void Cleanup() { // call Cleanup on its ViewModel ((ICleanup)this.DataContext).Cleanup(); // Cleanup itself Messenger.Default.Unregister(this); } #endregion #endregion } }
26.414508
113
0.531581
[ "MIT" ]
ivconsult/eNeg
citPoint.eNeg.Client/Views/AuthenticationViews/QuickRegister.xaml.cs
5,126
C#
using TdLib; using Tel.Egram.Model.Messenger.Explorer.Messages; using Tel.Egram.Model.Messenger.Explorer.Messages.Basic; using Tel.Egram.Services.Messaging.Messages; namespace Tel.Egram.Model.Messenger.Explorer.Factories { public class BasicMessageModelFactory : IBasicMessageModelFactory { public BasicMessageModelFactory() { } public TextMessageModel CreateTextMessage( Message message, TdApi.MessageContent.MessageText messageText) { var text = messageText.Text.Text; return new TextMessageModel { Text = text }; } public MessageModel CreateUnsupportedMessage(Message message) { return new UnsupportedMessageModel { Message = message }; } } }
25.885714
69
0.587196
[ "MIT" ]
ForNeVeR/egram.tel
src/Tel.Egram.Model/Messenger/Explorer/Factories/BasicMessageModelFactory.cs
906
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace elibarymanagementsystem { public partial class viewbooks : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } }
20.235294
61
0.668605
[ "Apache-2.0" ]
Hasan-Uz-Zaman-Piyas/Elibary-Management-System
viewbooks.aspx.cs
346
C#
using System.IO; namespace GameSpec.Tes.Formats.Records { public class HAIRRecord : Record, IHaveEDID, IHaveMODL { public override string ToString() => $"HAIR: {EDID.Value}"; public STRVField EDID { get; set; } // Editor ID public STRVField FULL; public MODLGroup MODL { get; set; } public FILEField ICON; public BYTEField DATA; // Playable, Not Male, Not Female, Fixed public override bool CreateField(BinaryReader r, TesFormat format, string type, int dataSize) { switch (type) { case "EDID": EDID = r.ReadSTRV(dataSize); return true; case "FULL": FULL = r.ReadSTRV(dataSize); return true; case "MODL": MODL = new MODLGroup(r, dataSize); return true; case "MODB": MODL.MODBField(r, dataSize); return true; case "ICON": ICON = r.ReadFILE(dataSize); return true; case "DATA": DATA = r.ReadT<BYTEField>(dataSize); return true; default: return false; } } } }
39.928571
102
0.561717
[ "MIT" ]
bclnet/GameSpec
Tes/GameSpec.Tes/Formats/Records/040-HAIR.Hair.cs
1,120
C#
using System; using System.Threading.Tasks; using Nethereum.Contracts.Constants; using Nethereum.Contracts.Services; using Nethereum.Contracts.Standards.ENS.PublicResolver.ContractDefinition; using Nethereum.Hex.HexConvertors.Extensions; using Nethereum.RPC.Eth.DTOs; namespace Nethereum.Contracts.Standards.ENS { public class ENSService { private readonly IEthApiContractService _ethApiContractService; public static string REVERSE_NAME_SUFFIX = ".addr.reverse"; public ENSService(IEthApiContractService ethApiContractService, string ensRegistryAddress = CommonAddresses.ENS_REGISTRY_ADDRESS) { if (ethApiContractService == null) throw new ArgumentNullException(nameof(ethApiContractService)); _ethApiContractService = ethApiContractService; EnsRegistryAddress = ensRegistryAddress ?? throw new ArgumentNullException(nameof(ensRegistryAddress)); _ensUtil = new EnsUtil(); ENSRegistryService = new ENSRegistryService(ethApiContractService, EnsRegistryAddress); } public string EnsRegistryAddress { get; } public ENSRegistryService ENSRegistryService { get; private set; } private readonly EnsUtil _ensUtil; #if !DOTNET35 public async Task<string> ResolveAddressAsync(string fullName) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.AddrQueryAsync(fullNameNode).ConfigureAwait(false); } public async Task<ABIOutputDTO> ResolveABIAsync(string fullName, AbiTypeContentType abiTypeContentType) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.ABIQueryAsync(fullNameNode, (int)abiTypeContentType).ConfigureAwait(false); } public Task<string> SetSubnodeOwnerRequestAsync(string fullName, string label, string owner) { var fullNameHash = _ensUtil.GetNameHash(fullName).HexToByteArray(); var labelHash = _ensUtil.GetLabelHash(label).HexToByteArray(); return ENSRegistryService.SetSubnodeOwnerRequestAsync(fullNameHash, labelHash, owner); } public Task<TransactionReceipt> SetSubnodeOwnerRequestAndWaitForReceiptAsync(string fullName, string label, string owner) { var fullNameHash = _ensUtil.GetNameHash(fullName).HexToByteArray(); var labelHash = _ensUtil.GetLabelHash(label).HexToByteArray(); return ENSRegistryService.SetSubnodeOwnerRequestAndWaitForReceiptAsync(fullNameHash, labelHash, owner); } public async Task<string> ResolveTextAsync(string fullName, TextDataKey textDataKey) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.TextQueryAsync(fullNameNode, textDataKey.GetDataKeyAsString()).ConfigureAwait(false); } public async Task<string> SetTextRequestAsync(string fullName, TextDataKey textDataKey, string value) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.SetTextRequestAsync(fullNameNode, textDataKey.GetDataKeyAsString(), value).ConfigureAwait(false); } public async Task<string> SetAddressRequestAsync(string fullName, string address) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.SetAddrRequestAsync(fullNameNode, address).ConfigureAwait(false); } public async Task<string> SetContentHashRequestAsync(string fullName, string contentHashInHex) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.SetContenthashRequestAsync(fullNameNode, contentHashInHex.HexToByteArray()).ConfigureAwait(false); } public async Task<byte[]> GetContentHashAsync(string fullName) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.ContenthashQueryAsync(fullNameNode).ConfigureAwait(false); } public async Task<TransactionReceipt> SetTextRequestAndWaitForReceiptAsync(string fullName, TextDataKey textDataKey, string value) { var fullNameNode = _ensUtil.GetNameHash(fullName).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.SetTextRequestAndWaitForReceiptAsync(fullNameNode, textDataKey.GetDataKeyAsString(), value).ConfigureAwait(false); } public Task<PublicResolverService> GetResolverAsync(string fullNameNode) { var fullNameNodeAsBytes = new EnsUtil().GetNameHash(fullNameNode).HexToByteArray(); return GetResolverAsync(fullNameNodeAsBytes); } public async Task<string> ReverseResolveAsync(string address) { var addressReverse = address.RemoveHexPrefix().ToLower() + REVERSE_NAME_SUFFIX; var fullNameNode = _ensUtil.GetNameHash(addressReverse).HexToByteArray(); var resolverService = await GetResolverAsync(fullNameNode).ConfigureAwait(false); return await resolverService.NameQueryAsync(fullNameNode).ConfigureAwait(false); } public async Task<PublicResolverService> GetResolverAsync(byte[] fullNameNode) { var resolverAddress = await ENSRegistryService.ResolverQueryAsync(fullNameNode).ConfigureAwait(false); var resolverService = new PublicResolverService(_ethApiContractService, resolverAddress); return resolverService; } #endif } }
51.816
155
0.724564
[ "MIT" ]
GitHubPang/Nethereum
src/Nethereum.Contracts/Standards/ENS/ENSService.cs
6,479
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Runtime.CompilerServices; public static class Tests { private static int returnCode = 100; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox1<T>(T t) => t is int n ? n : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox2<T>(T t) => t is string n ? n.Length : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox3<T>(T t) => t is Struct1<int> n ? n.a : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox4<T>(T t) => t is Struct1<IDisposable> n ? n.GetHashCode() : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox5<T>(T t) => t is Class1<int> n ? n.a : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox6<T>(T t) => t is RefBase n ? n.a : -1; [MethodImpl(MethodImplOptions.NoInlining)] public static int BoxIsInstUnbox7<T>(T t) => t is object[] n ? n.Length : -1; public static void Expect(this int actual, int expected, [CallerLineNumber] int line = 0) { if (expected != actual) { Console.WriteLine($"{actual} != {expected}, line {line}."); returnCode++; } } public static int Main() { BoxIsInstUnbox1<int>(1).Expect(1); BoxIsInstUnbox1<uint>(1).Expect(-1); BoxIsInstUnbox1<byte>(1).Expect(-1); BoxIsInstUnbox1<long>(1).Expect(-1); BoxIsInstUnbox1<decimal>(1).Expect(-1); BoxIsInstUnbox1<int?>(1).Expect(1); BoxIsInstUnbox1<int?>(null).Expect(-1); BoxIsInstUnbox1<uint?>(1).Expect(-1); BoxIsInstUnbox1<string>("1").Expect(-1); BoxIsInstUnbox1<string>(1.ToString()).Expect(-1); BoxIsInstUnbox1<string>(null).Expect(-1); BoxIsInstUnbox1<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox1<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox1<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox1<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox1<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox1<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox2<int>(1).Expect(-1); BoxIsInstUnbox2<uint>(1).Expect(-1); BoxIsInstUnbox2<byte>(1).Expect(-1); BoxIsInstUnbox2<long>(1).Expect(-1); BoxIsInstUnbox2<decimal>(1).Expect(-1); BoxIsInstUnbox2<int?>(1).Expect(-1); BoxIsInstUnbox2<int?>(null).Expect(-1); BoxIsInstUnbox2<uint?>(1).Expect(-1); BoxIsInstUnbox2<string>("1").Expect(1); BoxIsInstUnbox2<string>(1.ToString()).Expect(1); BoxIsInstUnbox2<string>(null).Expect(-1); BoxIsInstUnbox2<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox2<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox2<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox2<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox2<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox2<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox3<int>(1).Expect(-1); BoxIsInstUnbox3<uint>(1).Expect(-1); BoxIsInstUnbox3<byte>(1).Expect(-1); BoxIsInstUnbox3<long>(1).Expect(-1); BoxIsInstUnbox3<decimal>(1).Expect(-1); BoxIsInstUnbox3<int?>(1).Expect(-1); BoxIsInstUnbox3<int?>(null).Expect(-1); BoxIsInstUnbox3<uint?>(1).Expect(-1); BoxIsInstUnbox3<string>("1").Expect(-1); BoxIsInstUnbox3<string>(1.ToString()).Expect(-1); BoxIsInstUnbox3<string>(null).Expect(-1); BoxIsInstUnbox3<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(1); BoxIsInstUnbox3<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(1); BoxIsInstUnbox3<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox3<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox3<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox3<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox3<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox3<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox4<int>(1).Expect(-1); BoxIsInstUnbox4<uint>(1).Expect(-1); BoxIsInstUnbox4<byte>(1).Expect(-1); BoxIsInstUnbox4<long>(1).Expect(-1); BoxIsInstUnbox4<decimal>(1).Expect(-1); BoxIsInstUnbox4<int?>(1).Expect(-1); BoxIsInstUnbox4<int?>(null).Expect(-1); BoxIsInstUnbox4<uint?>(1).Expect(-1); BoxIsInstUnbox4<string>("1").Expect(-1); BoxIsInstUnbox4<string>(1.ToString()).Expect(-1); BoxIsInstUnbox4<string>(null).Expect(-1); BoxIsInstUnbox4<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox4<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox4<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox4<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox4<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox4<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox5<int>(1).Expect(-1); BoxIsInstUnbox5<uint>(1).Expect(-1); BoxIsInstUnbox5<byte>(1).Expect(-1); BoxIsInstUnbox5<long>(1).Expect(-1); BoxIsInstUnbox5<decimal>(1).Expect(-1); BoxIsInstUnbox5<int?>(1).Expect(-1); BoxIsInstUnbox5<int?>(null).Expect(-1); BoxIsInstUnbox5<uint?>(1).Expect(-1); BoxIsInstUnbox5<string>("1").Expect(-1); BoxIsInstUnbox5<string>(1.ToString()).Expect(-1); BoxIsInstUnbox5<string>(null).Expect(-1); BoxIsInstUnbox5<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox5<Class1<int>>(new Class1<int> { a = 1 }).Expect(1); BoxIsInstUnbox5<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Class1<int>>(new Class1<int> { a = 1 }).Expect(1); BoxIsInstUnbox5<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox5<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox5<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox5<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox5<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox6<int>(1).Expect(-1); BoxIsInstUnbox6<uint>(1).Expect(-1); BoxIsInstUnbox6<byte>(1).Expect(-1); BoxIsInstUnbox6<long>(1).Expect(-1); BoxIsInstUnbox6<decimal>(1).Expect(-1); BoxIsInstUnbox6<int?>(1).Expect(-1); BoxIsInstUnbox6<int?>(null).Expect(-1); BoxIsInstUnbox6<uint?>(1).Expect(-1); BoxIsInstUnbox6<string>("1").Expect(-1); BoxIsInstUnbox6<string>(1.ToString()).Expect(-1); BoxIsInstUnbox6<string>(null).Expect(-1); BoxIsInstUnbox6<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox6<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox6<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox6<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox6<Class1<int>>(new Class1<int> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<string>>(new Class1<string> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<int>>(new Class1<int> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<string>>(new Class1<string> { a = 1 }).Expect(1); BoxIsInstUnbox6<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(1); BoxIsInstUnbox6<string[]>(new string[1]).Expect(-1); BoxIsInstUnbox6<object[]>(new string[1]).Expect(-1); BoxIsInstUnbox6<IEnumerable<object>>(new string[1]).Expect(-1); BoxIsInstUnbox7<int>(1).Expect(-1); BoxIsInstUnbox7<uint>(1).Expect(-1); BoxIsInstUnbox7<byte>(1).Expect(-1); BoxIsInstUnbox7<long>(1).Expect(-1); BoxIsInstUnbox7<decimal>(1).Expect(-1); BoxIsInstUnbox7<int?>(1).Expect(-1); BoxIsInstUnbox7<int?>(null).Expect(-1); BoxIsInstUnbox7<uint?>(1).Expect(-1); BoxIsInstUnbox7<string>("1").Expect(-1); BoxIsInstUnbox7<string>(1.ToString()).Expect(-1); BoxIsInstUnbox7<string>(null).Expect(-1); BoxIsInstUnbox7<Struct1<int>>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Struct1<int>?>(new Struct1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Struct1<uint>>(new Struct1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Struct2<IDisposable>>(new Struct2<IDisposable>()).Expect(-1); BoxIsInstUnbox7<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<int>>(new Class1<int> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<uint>>(new Class1<uint> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<string>>(new Class1<string> { a = 1 }).Expect(-1); BoxIsInstUnbox7<Class1<IDisposable>>(new Class1<IDisposable> { a = 1 }).Expect(-1); BoxIsInstUnbox7<string[]>(new string[1]).Expect(1); BoxIsInstUnbox7<object[]>(new string[1]).Expect(1); BoxIsInstUnbox7<IEnumerable<object>>(new string[1]).Expect(1); return returnCode; } } public struct Struct1<T> { public T a; } public struct Struct2<T> { public T a; } public class RefBase : IDisposable { public int a; public void Dispose() { } } public class Class1<T> : RefBase { public T b; }
51.992032
100
0.625517
[ "MIT" ]
06needhamt/runtime
src/coreclr/tests/src/JIT/Generics/Conversions/Boxing/box_isinst_unbox.cs
13,050
C#
using System; using System.Threading.Tasks; using Discord; using NadekoBot.Extensions; using NadekoBot.Core.Services.Database.Models; using NadekoBot.Core.Services.Database; using Discord.WebSocket; namespace NadekoBot.Core.Services { public class CurrencyService : INService { private readonly IBotConfigProvider _config; private readonly DbService _db; private readonly ulong _botId; public CurrencyService(IBotConfigProvider config, DbService db, DiscordSocketClient c) { _config = config; _db = db; _botId = c.CurrentUser.Id; } public async Task<bool> RemoveAsync(IUser author, string reason, long amount, bool sendMessage, bool gamble = false) { var success = await RemoveAsync(author.Id, reason, amount, gamble: gamble, user: author); if (success && sendMessage) try { await author.SendErrorAsync($"`You lost:` {amount} {_config.BotConfig.CurrencySign}\n`Reason:` {reason}").ConfigureAwait(false); } catch { } return success; } public async Task<bool> RemoveAsync(ulong authorId, string reason, long amount, IUnitOfWork uow = null, bool gamble = false, IUser user = null) { if (amount < 0) throw new ArgumentNullException(nameof(amount)); if (uow == null) { using (uow = _db.UnitOfWork) { if (user != null) uow.DiscordUsers.GetOrCreate(user); var toReturn = InternalRemoveCurrency(authorId, reason, amount, uow, gamble); await uow.CompleteAsync().ConfigureAwait(false); return toReturn; } } if (user != null) uow.DiscordUsers.GetOrCreate(user); return InternalRemoveCurrency(authorId, reason, amount, uow, gamble); } private bool InternalRemoveCurrency(ulong authorId, string reason, long amount, IUnitOfWork uow, bool addToBot) { var success = uow.DiscordUsers.TryUpdateCurrencyState(authorId, -amount); if (!success) return false; else if (addToBot) uow.DiscordUsers.TryUpdateCurrencyState(_botId, amount); uow.CurrencyTransactions.Add(new CurrencyTransaction() { UserId = authorId, Reason = reason, Amount = -amount, }); return true; } public async Task AddToManyAsync(string reason, long amount, params ulong[] userIds) { using (var uow = _db.UnitOfWork) { foreach (var userId in userIds) { var transaction = new CurrencyTransaction() { UserId = userId, Reason = reason, Amount = amount, }; uow.DiscordUsers.TryUpdateCurrencyState(userId, amount); uow.CurrencyTransactions.Add(transaction); } await uow.CompleteAsync(); } } public async Task AddAsync(IUser author, string reason, long amount, bool sendMessage, string note = null, bool gamble = false) { await AddAsync(author.Id, reason, amount, gamble: gamble, user: author); if (sendMessage) try { await author.SendConfirmAsync($"`You received:` {amount} {_config.BotConfig.CurrencySign}\n`Reason:` {reason}\n`Note:`{(note ?? "-")}").ConfigureAwait(false); } catch { } } public async Task AddAsync(ulong receiverId, string reason, long amount, IUnitOfWork uow = null, bool gamble = false, IUser user = null) { if (amount < 0) throw new ArgumentNullException(nameof(amount)); var transaction = new CurrencyTransaction() { UserId = receiverId, Reason = reason, Amount = amount, }; if (uow == null) using (uow = _db.UnitOfWork) { if (user != null) uow.DiscordUsers.GetOrCreate(user); uow.DiscordUsers.TryUpdateCurrencyState(receiverId, amount); uow.DiscordUsers.TryUpdateCurrencyState(_botId, -amount, true); uow.CurrencyTransactions.Add(transaction); await uow.CompleteAsync(); } else { uow.DiscordUsers.TryUpdateCurrencyState(receiverId, amount); uow.DiscordUsers.TryUpdateCurrencyState(_botId, -amount, true); uow.CurrencyTransactions.Add(transaction); } } } }
37.832061
192
0.548023
[ "MIT" ]
BraveNetwork/LinBot
NadekoBot.Core/Services/CurrencyService.cs
4,958
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org) // Copyright (c) 2018-2021 Stride and its contributors (https://stride3d.net) // Copyright (c) 2011-2018 Silicon Studio Corp. (https://www.siliconstudio.co.jp) // See the LICENSE.md file in the project root for full license information. using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Stride.Core.Assets; using Stride.Core; using Stride.Core.Annotations; using Stride.Core.Presentation.Services; using Stride.Core.Quantum; namespace Stride.Editor.EditorGame.ContentLoader { public class LoaderReferenceManager { private struct ReferenceAccessor { private readonly IGraphNode contentNode; private readonly NodeIndex index; public ReferenceAccessor(IGraphNode contentNode, NodeIndex index) { this.contentNode = contentNode; this.index = index; } public void Update(object newValue) { if (index == NodeIndex.Empty) { ((IMemberNode)contentNode).Update(newValue); } else { ((IObjectNode)contentNode).Update(newValue, index); } } public Task Clear([NotNull] LoaderReferenceManager manager, AbsoluteId referencerId, AssetId contentId) { return manager.ClearContentReference(referencerId, contentId, contentNode, index); } } private readonly IDispatcherService gameDispatcher; private readonly IEditorContentLoader loader; private readonly Dictionary<AbsoluteId, Dictionary<AssetId, List<ReferenceAccessor>>> references = new Dictionary<AbsoluteId, Dictionary<AssetId, List<ReferenceAccessor>>>(); private readonly Dictionary<AssetId, object> contents = new Dictionary<AssetId, object>(); private readonly HashSet<AssetId> buildPending = new HashSet<AssetId>(); public LoaderReferenceManager(IDispatcherService gameDispatcher, IEditorContentLoader loader) { this.gameDispatcher = gameDispatcher; this.loader = loader; } public async Task RegisterReferencer(AbsoluteId referencerId) { gameDispatcher.EnsureAccess(); using (await loader.LockDatabaseAsynchronously()) { if (references.ContainsKey(referencerId)) throw new InvalidOperationException("The given referencer is already registered."); references.Add(referencerId, new Dictionary<AssetId, List<ReferenceAccessor>>()); } } public async Task RemoveReferencer(AbsoluteId referencerId) { gameDispatcher.EnsureAccess(); using (await loader.LockDatabaseAsynchronously()) { if (!references.ContainsKey(referencerId)) throw new InvalidOperationException("The given referencer is not registered."); var referencer = references[referencerId]; // Properly clear all reference first foreach (var content in referencer.ToDictionary(x => x.Key, x => x.Value)) { foreach (var reference in content.Value.ToList()) { // Ok to await in the loop, Clear should never yield because we already own the lock. await reference.Clear(this, referencerId, content.Key); } } references.Remove(referencerId); } } public async Task PushContentReference(AbsoluteId referencerId, AssetId contentId, IGraphNode contentNode, NodeIndex index) { gameDispatcher.EnsureAccess(); using (await loader.LockDatabaseAsynchronously()) { if (!references.ContainsKey(referencerId)) throw new InvalidOperationException("The given referencer is not registered."); var referencer = references[referencerId]; List<ReferenceAccessor> accessors; if (!referencer.TryGetValue(contentId, out accessors)) { accessors = new List<ReferenceAccessor>(); referencer[contentId] = accessors; } var accessor = new ReferenceAccessor(contentNode, index); if (accessors.Contains(accessor)) { // If the reference already exists, clear it and re-enter await ClearContentReference(referencerId, contentId, contentNode, index); await PushContentReference(referencerId, contentId, contentNode, index); return; } accessors.Add(accessor); object value; if (contents.TryGetValue(contentId, out value)) { accessor.Update(value); } else { // Build only if not requested yet (otherwise we just need to wait for ReplaceContent() to be called, it will also replace this reference since it was added just before) if (buildPending.Add(contentId)) loader.BuildAndReloadAsset(contentId); } } } public async Task ClearContentReference(AbsoluteId referencerId, AssetId contentId, IGraphNode contentNode, NodeIndex index) { gameDispatcher.EnsureAccess(); using (await loader.LockDatabaseAsynchronously()) { if (!references.ContainsKey(referencerId)) throw new InvalidOperationException("The given referencer is not registered."); var referencer = references[referencerId]; if (!referencer.ContainsKey(contentId)) throw new InvalidOperationException("The given content is not registered to the given referencer."); var accessors = referencer[contentId]; var accessor = new ReferenceAccessor(contentNode, index); var accesorIndex = accessors.IndexOf(accessor); if (accesorIndex < 0) throw new InvalidOperationException("The given reference is not registered for the given content and referencer."); accessors.RemoveAt(accesorIndex); if (accessors.Count == 0) { referencer.Remove(contentId); // Unload the content if nothing else is referencing it anymore var unloadContent = references.Values.SelectMany(x => x.Keys).All(x => x != contentId); if (unloadContent) { await loader.UnloadAsset(contentId); contents.Remove(contentId); } } } } public async Task ReplaceContent(AssetId contentId, object newValue) { gameDispatcher.EnsureAccess(); using (await loader.LockDatabaseAsynchronously()) { buildPending.Remove(contentId); // In case content was not properly loaded, just keep existing one if (newValue != null) { foreach (var referencer in references.Values) { List<ReferenceAccessor> accessors; if (referencer.TryGetValue(contentId, out accessors)) { foreach (var accessor in accessors) { accessor.Update(newValue); } } } contents[contentId] = newValue; } } } public async Task<HashSet<AssetId>> ComputeReferencedAssets() { using ((await loader.ReserveDatabaseSyncLock()).Lock()) { return new HashSet<AssetId>(references.Values.SelectMany(x => x.Keys)); } } } }
41.362745
189
0.563641
[ "MIT" ]
Ethereal77/stride
sources/editor/Stride.Editor/EditorGame/ContentLoader/LoaderReferenceManager.cs
8,438
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; namespace SnapshotTests.Snapshots { internal static class ValueComparer { private static readonly MethodInfo UseComparerMethod; internal static IComparer<object> Comparer = new ComparerImpl(); private class ComparerImpl : IComparer<object> { #region Implementation of IComparer<in object> int IComparer<object>.Compare(object x, object y) { return Compare(x, y); } #endregion } static ValueComparer() { UseComparerMethod = typeof(ValueComparer).GetMethod(nameof(UseComparer), BindingFlags.NonPublic | BindingFlags.Static); Debug.Assert(UseComparerMethod != null); } internal static int Compare(object mine, object other) { if (mine == null) return other == null ? 0 : -1; if (other == null) { return 1; } var myType = mine.GetType(); var otherType = other.GetType(); var method = UseComparerMethod.MakeGenericMethod(otherType); var (isComparable, result) = ((bool, int))method.Invoke(null, new[] {mine, other}); if (isComparable) return result; if (myType != otherType) { if (TypeCoercer.TryCoerce(mine, other, out var mineCoerced, out var otherCoerced)) return Compare(mineCoerced, otherCoerced); } return string.Compare(mine.ToString(), other.ToString(), StringComparison.Ordinal); } private static (bool IsComparable, int CompareResult) UseComparer<T>(object mine, T other) { if (mine is IComparable<T> comparable) { return (true, comparable.CompareTo(other)); } return (false, 0); } } }
29.449275
131
0.562008
[ "MIT" ]
jamie-davis/SnapshotTests
src/SnapshotTests/Snapshots/ValueComparer.cs
2,034
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("JavaScriptRegions")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("JavaScriptRegions")] [assembly: AssemblyCopyright("")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
36.676471
84
0.744988
[ "Apache-2.0" ]
bradlee2018/JavaScriptRegions
src/Properties/AssemblyInfo.cs
1,249
C#
using BigTycoon.Celle; using BigTycoon.Celle.Edifici; using BigTycoon.Generale; using BigTycoon.Oggetti; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using BigTycoon.Trasporti; namespace BigTycoon { public partial class Form1 : Form { Giocatore giocatore; Mappa mappa; PictureBox[,] griglia; Label[,] luoghi; PictureBox[,] attenzione; Image materialeTemp = null; //crea edificio int r_selezionato, c_selezionato; //coordinate nella griglia int prec_r_selezionato, prec_c_selezionato; //serve alla creazione viaggi int tipo; Image iconaSelezionata; //gestione edifici Edificio edificioSelezionato; //form accessori GestioneEdificio formProduzione; //non so, si definisce da solo ^^ GestioneTrasporti gestioneTrasporti; //form trasporti FormTrasporti formTrasporti; //form avvio viaggio CreazioneViaggio menuViaggio; public Form1(Mappa mappa) { InitializeComponent(); formProduzione = new GestioneEdificio(); gestioneTrasporti = new GestioneTrasporti(); formTrasporti = new FormTrasporti(); menuViaggio = new CreazioneViaggio(gestioneTrasporti); giocatore = new Giocatore(500, 5, 10); LordoTotale.Text = "Lordo: " + giocatore.portafogli.Reddito + "$"; SpeseTotali.Text = "Spese: " + giocatore.portafogli.Spese + "$"; GuadagnoGiornaliero.Text = "Guadagno giornaliero: " + giocatore.portafogli.Bilancio + "$"; portafoglio_label.Text = "Portafoglio: " + giocatore.portafogli.Soldi + "$"; immagineAzienda_label.Text = "Immagine azienda: " + giocatore.FamaAziendale + "/10"; richiesteLavoro_label.Text = "Richieste lavoro: " + giocatore.DipendentiDisponibili; #region InizializzazioneMappa this.mappa = mappa; griglia = new PictureBox[3, 5]{ { cell1, cell2, cell3, cell4, cell5 }, { cell6, cell7, cell8, cell9, cell10 }, { cell11, cell12, cell13, cell14, cell15 } }; luoghi = new Label[3, 5] { { luogo1, luogo2, luogo3, luogo4, luogo5}, { luogo6, luogo7, luogo8, luogo9, luogo10}, { luogo11, luogo12, luogo13, luogo14, luogo15}}; attenzione = new PictureBox[3, 5] { { attenzione1, attenzione2, attenzione3, attenzione4, attenzione5}, { attenzione6, attenzione7, attenzione8, attenzione9, attenzione10}, { attenzione11, attenzione12, attenzione13, attenzione14, attenzione15}}; //Materiale sottostante for (int j = 0; j < griglia.GetLength(1); j++) { for (int i = 0; i < griglia.GetLength(0); i++) { if (mappa.CelleMateriali[i, j] == "MaterialeComune") { griglia[i, j].BackgroundImage = Properties.Resources.comuni; } else if (mappa.CelleMateriali[i, j] == "MaterialePrezioso") { griglia[i, j].BackgroundImage = Properties.Resources.preziosi; } else if (mappa.CelleMateriali[i, j] == "MaterialeRaro") { griglia[i, j].BackgroundImage = Properties.Resources.rari; } } } //Nomi città for (int i = 0; i < griglia.GetLength(0); i++) { for (int j = 0; j < griglia.GetLength(1); j++) { luoghi[i, j].Text = mappa.CelleNomi[i, j]; } } #endregion } #region Timer private void EdificiUpdate(object sender, EventArgs e) { mappa.UpdateAll(giocatore); giocatore.Update(); AggiornaInfoGrafiche(); if (giocatore.portafogli.Soldi >= 1000000) { //NOI LO SAPEVAMO... (E Iuri ha detto NOOOOOOOO!!!!) timerEdifici.Stop(); timerGiocatore.Enabled = false; timerViaggi.Stop(); if (giocatore.DipendentiDisponibili < 0) { MessageBox.Show("Sei sfuggito al tribunale!"); MessageBox.Show("Hai vinto, ma a quale prezzo..."); } else { MessageBox.Show("Compliementi hai vinto!"); MessageBox.Show("E il premio sara'..."); } Environment.Exit(0); } } private void timerGiocatore_Tick(object sender, EventArgs e) { if(giocatore.DipendentiDisponibili >= 0) giocatore.CalcolaDipendentiDisponibili(); immagineAzienda_label.Text = "Immagine azienda: " + giocatore.FamaAziendale + "/10"; } private void timerViaggi_Tick(object sender, EventArgs e) { gestioneTrasporti.UpdateAll(); } #endregion #region MetodiVari private void cella_Click(object sender, EventArgs e) { MouseEventArgs me = (MouseEventArgs)e; if (me.Button == System.Windows.Forms.MouseButtons.Left) { SelezionaCella(sender, e); } if (me.Button == System.Windows.Forms.MouseButtons.Right) { AvvioViaggio(sender, e); } } bool CellaVuota(PictureBox immagine) { //estraggo il numero della cella int indice = int.Parse(immagine.Name.Substring(4)); indice--; //perchè i nomi sono conteggiati partendo da 1 //partendo dalla formula //[width*y]+x = indice //y = (indice - x) / width //calcolo le coordinate int c = indice % mappa.Colon; int r = (indice - c) / mappa.Colon; return mappa.CelleEdifici[r, c] == null; } void Reset() { //icone base industria_bottone.Image = Properties.Resources.industria_BN; fabbrica_bottone.Image = Properties.Resources.fabbrica_BN; negozio_bottone.Image = Properties.Resources.negozio_BN; //nascondi bottoni costruisci_bottone.Visible = false; //nascondo i pannelli crea_edificio_panel.Visible = false; gestioneEdificio_panel.Visible = false; } void AggiornaInfoGrafiche() { LordoTotale.Text = "Lordo: " + giocatore.portafogli.Reddito + "$"; SpeseTotali.Text = "Spese: " + giocatore.portafogli.Spese + "$"; GuadagnoGiornaliero.Text = "Guadagno giornaliero: " + giocatore.portafogli.Bilancio + "$"; portafoglio_label.Text = "Portafoglio: " + giocatore.portafogli.Soldi + "$"; immagineAzienda_label.Text = "Immagine azienda: " + giocatore.FamaAziendale + "/10"; richiesteLavoro_label.Text = "Richieste lavoro: " + giocatore.DipendentiDisponibili; if (edificioSelezionato != null) { indicatoreDipendenti.Text = edificioSelezionato.Dipendenti.Quantita + "/" + edificioSelezionato.Dipendenti.MassimoDipendenti; indicatoreFelicita.Text = "+" + edificioSelezionato.Dipendenti.Felicita; gestione_button.BackgroundImage = Properties.Resources.ingranaggio; if (gestioneEdificio_panel.Visible) { stipendiPerc_label.Text = edificioSelezionato.Dipendenti.StipendiPerc + "%"; guadagnoEdificio.Text = "GUADAGNO " + edificioSelezionato.Bilancio + "$"; lordoEdificio.Text = "LORDO " + edificioSelezionato.Reddito + "$"; puntiProduzione.Text = "+" + edificioSelezionato.PuntiProduzione; minimoDipendenti_label.Text = "(min " + edificioSelezionato.Dipendenti.MinimoDipendenti + ")"; //Magazzino (GUI) if (edificioSelezionato.GetType() == typeof(Industria)) { Industria industria = (Industria)edificioSelezionato; materiali_comuni.Text = industria.SlotMateriali.GetElemento("MaterialeComune").Quantita.ToString(); materiali_rari.Text = industria.SlotMateriali.GetElemento("MaterialeRaro").Quantita.ToString(); materiali_preziosi.Text = industria.SlotMateriali.GetElemento("MaterialePrezioso").Quantita.ToString(); prodotti_comuni.Text = "--"; prodotti_rari.Text = "--"; prodotti_preziosi.Text = "--"; prodotti_comuniRari.Text = "--"; prodotti_comuniPreziosi.Text = "--"; prodotti_rariPreziosi.Text = "--"; //BottoneProduzione if (((Industria)edificioSelezionato).RisorsaTerreno == "MaterialeComune") gestione_button.BackgroundImage = Properties.Resources.comuni; else if (((Industria)edificioSelezionato).RisorsaTerreno == "MaterialeRaro") gestione_button.BackgroundImage = Properties.Resources.rari; else if (((Industria)edificioSelezionato).RisorsaTerreno == "MaterialePrezioso") gestione_button.BackgroundImage = Properties.Resources.preziosi; } else if (edificioSelezionato.GetType() == typeof(Fabbrica)) { Fabbrica fabbrica = (Fabbrica)edificioSelezionato; materiali_comuni.Text = fabbrica.SlotMateriali.GetElemento("MaterialeComune").Quantita.ToString(); materiali_rari.Text = fabbrica.SlotMateriali.GetElemento("MaterialeRaro").Quantita.ToString(); materiali_preziosi.Text = fabbrica.SlotMateriali.GetElemento("MaterialePrezioso").Quantita.ToString(); prodotti_comuni.Text = fabbrica.SlotProdotti.GetElemento("ProdottoComune").Quantita.ToString(); prodotti_rari.Text = fabbrica.SlotProdotti.GetElemento("ProdottoRaro").Quantita.ToString(); prodotti_preziosi.Text = fabbrica.SlotProdotti.GetElemento("ProdottoPrezioso").Quantita.ToString(); prodotti_comuniRari.Text = fabbrica.SlotProdotti.GetElemento("ProdottoComuneRaro").Quantita.ToString(); prodotti_comuniPreziosi.Text = fabbrica.SlotProdotti.GetElemento("ProdottoComunePrezioso").Quantita.ToString(); prodotti_rariPreziosi.Text = fabbrica.SlotProdotti.GetElemento("ProdottoRaroPrezioso").Quantita.ToString(); } else if (edificioSelezionato.GetType() == typeof(Negozio)) { Negozio negozio = (Negozio)edificioSelezionato; materiali_comuni.Text = "--"; materiali_rari.Text = "--"; materiali_preziosi.Text = "--"; prodotti_comuni.Text = negozio.SlotProdotti.GetElemento("ProdottoComune").Quantita.ToString(); prodotti_rari.Text = negozio.SlotProdotti.GetElemento("ProdottoRaro").Quantita.ToString(); prodotti_preziosi.Text = negozio.SlotProdotti.GetElemento("ProdottoPrezioso").Quantita.ToString(); prodotti_comuniRari.Text = negozio.SlotProdotti.GetElemento("ProdottoComuneRaro").Quantita.ToString(); prodotti_comuniPreziosi.Text = negozio.SlotProdotti.GetElemento("ProdottoComunePrezioso").Quantita.ToString(); prodotti_rariPreziosi.Text = negozio.SlotProdotti.GetElemento("ProdottoRaroPrezioso").Quantita.ToString(); } } } //Punti esclamativi for (int r = 0; r < mappa.Righe; r++) { for (int c = 0; c < mappa.Colon; c++) { if (mappa.CelleEdifici[r, c] != null) { if (!mappa.CelleEdifici[r, c].EdificioAttivo) attenzione[r, c].Visible = true; else attenzione[r, c].Visible = false; } } } } #endregion #region GestioneEdificio //Numero dipendenti///////////////// private void incDipendenti_bottone_Click(object sender, EventArgs e) { edificioSelezionato.Dipendenti.AggiungiDipendenti(giocatore); edificioSelezionato.CalcolaBilancio(); AggiornaInfoGrafiche(); } private void dimDipendenti_bottone_Click(object sender, EventArgs e) { edificioSelezionato.Dipendenti.RimuoviDipendenti(giocatore); edificioSelezionato.CalcolaBilancio(); AggiornaInfoGrafiche(); } //////////////////////////////////// //Gestione stipendi //////////////// private void incStipendi_button_Click(object sender, EventArgs e) { edificioSelezionato.Dipendenti.ModStipendi(10); edificioSelezionato.CalcolaFelicita(); AggiornaInfoGrafiche(); } private void dimStipendi_button_Click(object sender, EventArgs e) { edificioSelezionato.Dipendenti.ModStipendi(-10); edificioSelezionato.CalcolaFelicita(); AggiornaInfoGrafiche(); } ////////////////////////////////// private void gestione_button_Click(object sender, EventArgs e) { if (edificioSelezionato.GetType() == typeof(Fabbrica) || edificioSelezionato.GetType() == typeof(Negozio)) { formProduzione.CambiaEdificio(edificioSelezionato); formProduzione.Show(); } } #endregion #region IconaPlus_AggiungiEdificio private void OnMouseEnter(object sender, EventArgs e) { //solo se la cella è vuota if (CellaVuota((PictureBox)sender)) { materialeTemp = ((PictureBox)sender).BackgroundImage; ((PictureBox)sender).BackgroundImage = Properties.Resources.plus; } } private void OnMouseLeave(object sender, EventArgs e) { //solo se la cella è vuota if (CellaVuota((PictureBox)sender)) { ((PictureBox)sender).BackgroundImage = materialeTemp; } } #endregion #region CreaEdificio private void industria_bottone_Click(object sender, EventArgs e) { tipo = 0; costruisci_bottone.Visible = true; industria_bottone.Image = Properties.Resources.industria; fabbrica_bottone.Image = Properties.Resources.fabbrica_BN; negozio_bottone.Image = Properties.Resources.negozio_BN; iconaSelezionata = Properties.Resources.industria; } private void fabbrica_bottone_Click(object sender, EventArgs e) { tipo = 1; costruisci_bottone.Visible = true; industria_bottone.Image = Properties.Resources.industria_BN; fabbrica_bottone.Image = Properties.Resources.fabbrica; negozio_bottone.Image = Properties.Resources.negozio_BN; iconaSelezionata = Properties.Resources.fabbrica; } private void negozio_bottone_Click(object sender, EventArgs e) { tipo = 2; costruisci_bottone.Visible = true; industria_bottone.Image = Properties.Resources.industria_BN; fabbrica_bottone.Image = Properties.Resources.fabbrica_BN; negozio_bottone.Image = Properties.Resources.negozio; iconaSelezionata = Properties.Resources.negozio; } private void SelezionaCella(object sender, EventArgs e) { Reset(); PictureBox cellaSelezionata = (PictureBox)sender; //estraggo il numero della cella int indice = int.Parse(cellaSelezionata.Name.Substring(4)); indice--; //perchè i nomi sono conteggiati partendo da 1 //calcolo le coordinate c_selezionato = indice % mappa.Colon; r_selezionato = (indice - c_selezionato) / mappa.Colon; prec_c_selezionato = c_selezionato; prec_r_selezionato = r_selezionato; if (CellaVuota(cellaSelezionata)) { //rendi visibile il pannello crea_edificio_panel.Visible = true; cellaSelezionata_label.Text = "CELLA SELEZIONATA: " + mappa.CelleNomi[r_selezionato, c_selezionato]; } else { //rendi visibile il pannello gestioneEdificio_panel.Visible = true; edificioSelezionato_label.Text = ""; //Tipo di edificio edificioSelezionato = mappa.CelleEdifici[r_selezionato, c_selezionato]; if (edificioSelezionato.GetType() == typeof(Industria)) { edificioSelezionato_label.Text += "Industria di "; } else if (edificioSelezionato.GetType() == typeof(Fabbrica)) { edificioSelezionato_label.Text += "Fabbrica di "; } else if (edificioSelezionato.GetType() == typeof(Negozio)) { edificioSelezionato_label.Text += "Negozio di "; } //Nome edificio edificioSelezionato_label.Text += mappa.CelleNomi[r_selezionato, c_selezionato]; AggiornaInfoGrafiche(); } } private void costruisci_bottone_Click(object sender, EventArgs e) { if (mappa.AggiungiEdificio(r_selezionato, c_selezionato, tipo, giocatore)) { //immagine if (tipo == 0) //tipo industria { if (mappa.CelleMateriali[r_selezionato, c_selezionato] == "MaterialeComune") { griglia[r_selezionato, c_selezionato].BackgroundImage = Properties.Resources.industria_comuni; } else if (mappa.CelleMateriali[r_selezionato, c_selezionato] == "MaterialeRaro") { griglia[r_selezionato, c_selezionato].BackgroundImage = Properties.Resources.industria_rari; } else if (mappa.CelleMateriali[r_selezionato, c_selezionato] == "MaterialePrezioso") { griglia[r_selezionato, c_selezionato].BackgroundImage = Properties.Resources.industria_preziosi; } } else { griglia[r_selezionato, c_selezionato].BackgroundImage = iconaSelezionata; } AggiornaInfoGrafiche(); Reset(); } } #endregion #region Trasporti private void Trasporti_pics_Click(object sender, EventArgs e) { formTrasporti.Show(); } private void AvvioViaggio(object sender, EventArgs e) { PictureBox cellaSelezionata = (PictureBox)sender; //estraggo il numero della cella int indice = int.Parse(cellaSelezionata.Name.Substring(4)); indice--; //perchè i nomi sono conteggiati partendo da 1 //calcolo le coordinate int c_sel = indice % mappa.Colon; int r_sel = (indice - c_selezionato) / mappa.Colon; Edificio destinatario = mappa.CelleEdifici[r_sel, c_sel]; if (destinatario == null) { return; } if (edificioSelezionato.GetType() == typeof(Industria) && destinatario.GetType() == typeof(Fabbrica) || edificioSelezionato.GetType() == typeof(Fabbrica) && destinatario.GetType() == typeof(Negozio)) { menuViaggio.UpdateDirezione(luoghi[prec_r_selezionato, prec_c_selezionato].Text, luoghi[r_sel, c_sel].Text); menuViaggio.Mittente = edificioSelezionato; menuViaggio.Destinatario = destinatario; menuViaggio.Show(); } } #endregion } }
39.086239
211
0.557976
[ "MIT" ]
Men-Who-Sold-The-World/BigTycoon
BigTycoon/Form1.cs
21,310
C#
using UnityEngine; using System.Collections; using GameFramework.GameStructure.GameItems.Components.AbstractClasses; using GameFramework.GameStructure.GameItems.ObjectModel; using GameFramework.GameStructure.PlayerGameItems.ObjectModel; public abstract class GameItemInstanceHolder<T> : ShowPrefab<T> where T : GameItem { /// <summary> /// The PlayerGameItem this context represents. /// </summary> public PlayerGameItem PlayerGameItem { get; set; } }
31.4
82
0.785563
[ "Unlicense" ]
tiwater/GameFramework
Scripts/GameStructure/GameItems/Components/AbstractClasses/GameItemInstanceHolder.cs
473
C#
using System.Collections.Generic; using System.Linq; namespace Simple.Permissions { /// <summary> /// Storage for calculations /// </summary> public class PermissionsCalculationContext<TIdentity> { /// <summary> /// The permission cache /// </summary> private readonly Dictionary<TIdentity, List<IPermission<TIdentity>>> _permissionCache = new Dictionary<TIdentity, List<IPermission<TIdentity>>>(); /// <summary> /// Gets the permissions. /// </summary> /// <param name="protectedObject">The protected object.</param> /// <param name="protectedObjectMembership">The protected object membership.</param> /// <param name="orderedPermissionProvider">The ordered permission provider.</param> /// <param name="context">The context.</param> /// <returns></returns> internal static List<IPermission<TIdentity>> GetPermissions( TIdentity protectedObject, IObjectIdentity<TIdentity>[][] protectedObjectMembership, IOrderedPermissionProvider<TIdentity> orderedPermissionProvider, PermissionsCalculationContext<TIdentity> context) { if (context == null) return orderedPermissionProvider.GetOrderedPermissions(protectedObjectMembership).ToList(); if (context._permissionCache.TryGetValue(protectedObject, out List<IPermission<TIdentity>> result)) return result; result = orderedPermissionProvider.GetOrderedPermissions(protectedObjectMembership).ToList(); context._permissionCache.Add(protectedObject, result); return result; } } }
40.046512
111
0.655633
[ "MIT" ]
georgemcz/SimplePermissions
Simple.Permissions/Implementation/PermissionsCalculationContext.cs
1,724
C#
using System.Collections.Generic; using System.Linq; using System.Text; namespace pgdiff.schema { public class PgSchema { private readonly List<PgFunction> _functions = new List<PgFunction>(); private readonly List<PgIndex> _indexes = new List<PgIndex>(); private readonly List<PgConstraint> _primaryKeys = new List<PgConstraint>(); private readonly List<PgSequence> _sequences = new List<PgSequence>(); private readonly List<PgTable> _tables = new List<PgTable>(); private readonly List<PgView> _views = new List<PgView>(); public PgSchema(string name) { Name = name; } public string Authorization { get; set; } public string Comment { get; set; } public string Definition { get; set; } public string Name { get; } public string GetCreationSql() { var sbSql = new StringBuilder(50); sbSql.Append("CREATE SCHEMA "); sbSql.Append(PgDiffUtils.GetQuotedName(Name)); if (Authorization != null) { sbSql.Append(" AUTHORIZATION "); sbSql.Append(PgDiffUtils.GetQuotedName(Authorization)); } sbSql.Append(';'); if (!string.IsNullOrEmpty(Comment)) { sbSql.Append("\n\nCOMMENT ON SCHEMA "); sbSql.Append(PgDiffUtils.GetQuotedName(Name)); sbSql.Append(" IS "); sbSql.Append(Comment); sbSql.Append(';'); } return sbSql.ToString(); } public PgFunction GetFunction(string signature) => _functions.FirstOrDefault(function => function.GetSignature().Equals(signature)); public List<PgFunction> GetFunctions() => _functions; public PgIndex GetIndex(string name) => _indexes.FirstOrDefault(index => index.Name.Equals(name)); public PgConstraint GetPrimaryKey(string name) => _primaryKeys.FirstOrDefault(constraint => constraint.Name.Equals(name)); public PgSequence GetSequence(string name) => _sequences.FirstOrDefault(sequence => sequence.Name.Equals(name)); public List<PgIndex> GetIndexes() => _indexes; public List<PgConstraint> GetPrimaryKeys() => _primaryKeys; public List<PgSequence> GetSequences() => _sequences; public PgTable GetTable(string name) => _tables.FirstOrDefault(table => table.Name.Equals(name)); public List<PgTable> GetTables() => _tables; public PgView GetView(string name) => _views.FirstOrDefault(view => view.Name.Equals(name)); public List<PgView> GetViews() => _views; public void AddIndex(PgIndex index) => _indexes.Add(index); public void AddPrimaryKey(PgConstraint primaryKey) => _primaryKeys.Add(primaryKey); public void AddFunction(PgFunction function) => _functions.Add(function); public void AddSequence(PgSequence sequence) => _sequences.Add(sequence); public void AddTable(PgTable table) => _tables.Add(table); public void AddView(PgView view) => _views.Add(view); public bool ContainsFunction(string signature) => _functions.Any(function => function.GetSignature().Equals(signature)); public bool ContainsSequence(string name) => _sequences.Any(sequence => sequence.Name.Equals(name)); public bool ContainsTable(string name) => _tables.Any(table => table.Name.Equals(name)); public bool ContainsView(string name) => _views.Any(view => view.Name.Equals(name)); } }
34.311321
140
0.632664
[ "MIT" ]
hryz/apgdiff.net
src/pgdiff/schema/PgSchema.cs
3,637
C#
using DevIO.Api.Extensions; using DevIO.Data.Context; using HealthChecks.UI.Client; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Diagnostics.HealthChecks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Net.Http.Headers; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace DevIO.Api.Configuration { public static class ApiConfig { public static IServiceCollection AddApiConfig(this IServiceCollection services) { services.AddControllers().AddNewtonsoftJson(options => { options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore; }); services.AddApiVersioning(options => { options.AssumeDefaultVersionWhenUnspecified = true; options.DefaultApiVersion = new ApiVersion(1, 0); options.ReportApiVersions = true; }); services.AddVersionedApiExplorer(options => { options.GroupNameFormat = "'v'VVV"; options.SubstituteApiVersionInUrl = true; }); services.Configure<ApiBehaviorOptions>(options => { // Suprime a validação automática da ViewModel options.SuppressModelStateInvalidFilter = true; }); services.AddCors(options => { options.AddPolicy("Development", builder => builder .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader() //.AllowCredentials() ); options.AddPolicy("Production", builder => builder .WithMethods("GET") .WithOrigins("http://desenvolvedor.io") .SetIsOriginAllowedToAllowWildcardSubdomains() //.WithHeaders(HeaderNames.ContentType,"x-custom-header") .AllowAnyHeader()); }); return services; } public static IApplicationBuilder UseApiConfig(this IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseCors("Development"); app.UseDeveloperExceptionPage(); } else { app.UseCors("Development"); // Usar apenas nas demos => Configuração Ideal: Production app.UseHsts(); } app.UseMiddleware<ExceptionMiddleware>(); app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); app.UseStaticFiles(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); endpoints.MapHealthChecks("/api/hc", new HealthCheckOptions() { Predicate = _ => true, ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse }); endpoints.MapHealthChecksUI(options => { options.UIPath = "/api/hc-ui"; options.ResourcesPath = "/api/hc-ui-resources"; options.UseRelativeApiPath = false; options.UseRelativeResourcesPath = false; options.UseRelativeWebhookPath = false; }); }); return app; } } }
33.140351
112
0.55532
[ "MIT" ]
Rafael955/ApiCompleta
src/DevIO.Api/Configuration/ApiConfig.cs
3,785
C#
//--------------------------------------------------------- // <auto-generated> // This code was generated by a tool. Changes to this // file may cause incorrect behavior and will be lost // if the code is regenerated. // // Generated on 2020 October 09 04:45:51 UTC // </auto-generated> //--------------------------------------------------------- using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; #nullable enable namespace go { public static partial class runtime_package { [GeneratedCode("go2cs", "0.1.0.0")] private partial struct sockaddr_un { // Constructors public sockaddr_un(NilType _) { this.family = default; this.path = default; } public sockaddr_un(ushort family = default, array<byte> path = default) { this.family = family; this.path = path; } // Enable comparisons between nil and sockaddr_un struct [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator ==(sockaddr_un value, NilType nil) => value.Equals(default(sockaddr_un)); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator !=(sockaddr_un value, NilType nil) => !(value == nil); [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator ==(NilType nil, sockaddr_un value) => value == nil; [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool operator !=(NilType nil, sockaddr_un value) => value != nil; [MethodImpl(MethodImplOptions.AggressiveInlining)] public static implicit operator sockaddr_un(NilType nil) => default(sockaddr_un); } [GeneratedCode("go2cs", "0.1.0.0")] private static sockaddr_un sockaddr_un_cast(dynamic value) { return new sockaddr_un(value.family, value.path); } } }
34.370968
113
0.587987
[ "MIT" ]
GridProtectionAlliance/go2cs
src/go-src-converted/runtime/defs_linux_arm64_sockaddr_unStruct.cs
2,131
C#
using System.Threading.Tasks; using Tweetinvi.Core.Iterators; using Tweetinvi.Core.Web; using Tweetinvi.Models.DTO; using Tweetinvi.Models.DTO.QueryDTO; using Tweetinvi.Parameters; namespace Tweetinvi.Client.Requesters { /// <summary> /// A client providing all the methods related with tweets. /// The results from this client contain additional metadata. /// </summary> public interface ITweetsRequester { /// <summary> /// Get a tweet /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id </para> /// </summary> /// <returns>TwitterResult containing specified tweet</returns> Task<ITwitterResult<ITweetDTO>> GetTweetAsync(IGetTweetParameters parameters); /// <summary> /// Publish a tweet /// <para>Read more : https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id </para> /// </summary> /// <returns>TwitterResult containing the published tweet</returns> Task<ITwitterResult<ITweetDTO>> PublishTweetAsync(IPublishTweetParameters parameters); /// <summary> /// Destroy a tweet /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id </para> /// </summary> /// <returns>TwitterResult containing the destroyed tweet</returns> Task<ITwitterResult<ITweetDTO>> DestroyTweetAsync(IDestroyTweetParameters parameters); /// <summary> /// Get favorite tweets of a user /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-favorites-list </para> /// </summary> /// <returns>Iterator over the list of tweets favorited by a user</returns> ITwitterPageIterator<ITwitterResult<ITweetDTO[]>, long?> GetUserFavoriteTweetsIterator(IGetUserFavoriteTweetsParameters parameters); /// <summary> /// Get multiple tweets /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup </para> /// </summary> /// <returns>TwitterResult containing requested tweets</returns> Task<ITwitterResult<ITweetDTO[]>> GetTweetsAsync(IGetTweetsParameters parameters); /// <summary> /// Get the retweets associated with a specific tweet /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id </para> /// </summary> /// <returns>TwitterResult containing the retweets</returns> Task<ITwitterResult<ITweetDTO[]>> GetRetweetsAsync(IGetRetweetsParameters parameters); /// <summary> /// Publish a retweet /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id </para> /// </summary> /// <returns>TwitterResult containing the published retweet</returns> Task<ITwitterResult<ITweetDTO>> PublishRetweetAsync(IPublishRetweetParameters parameters); /// <summary> /// Get the ids of the users who retweeted a specific tweet /// <para> Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids </para> /// </summary> /// <returns>TwitterCursorResult to iterate over all the user's friends</returns> ITwitterPageIterator<ITwitterResult<IIdsCursorQueryResultDTO>> GetRetweeterIdsIterator(IGetRetweeterIdsParameters parameters); /// <summary> /// Destroy a retweet /// <para>Read more : https://dev.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-unretweet-id </para> /// </summary> /// <returns>TwitterResult containing the success status of the request</returns> Task<ITwitterResult<ITweetDTO>> DestroyRetweetAsync(IDestroyRetweetParameters parameters); /// <summary> /// Favorite a tweet /// </summary> /// <para>Read more : https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy </para> /// <returns>TwitterResult containing the favorited tweet</returns> Task<ITwitterResult<ITweetDTO>> FavoriteTweetAsync(IFavoriteTweetParameters parameters); /// <summary> /// Remove the favorite of a tweet /// </summary> /// <para>Read more : https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-destroy </para> /// <returns>TwitterResult containing the no longer favorited tweet</returns> Task<ITwitterResult<ITweetDTO>> UnfavoriteTweetAsync(IUnfavoriteTweetParameters parameters); /// <summary> /// Get an oembed tweet /// </summary> /// <para>Read more : https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-oembed </para> /// <returns>TwitterResult containing the oembed tweet</returns> Task<ITwitterResult<IOEmbedTweetDTO>> GetOEmbedTweetAsync(IGetOEmbedTweetParameters parameters); } }
52.08
140
0.678571
[ "MIT" ]
IEvangelist/tweetinvi
src/Tweetinvi.Core/Public/Client/Requesters/ITweetsRequester.cs
5,208
C#
// This file has been generated by the GUI designer. Do not modify. namespace Moscrif.IDE.Controls { public partial class NewFileDialog { private global::Gtk.Notebook notebook1; private global::Gtk.VBox vbox2; private global::Gtk.HBox hbox1; private global::Gtk.ScrolledWindow GtkScrolledWindow; private global::Gtk.TreeView tvItem; private global::Gtk.Table tblMain; private global::Gtk.Entry entrName; private global::Gtk.Label label1; private global::Gtk.Label label3; private global::Gtk.Table tblMain1; private global::Gtk.Entry entrName2; private global::Gtk.ScrolledWindow GtkScrolledWindow1; private global::Gtk.TreeView tvItem1; private global::Gtk.Label label7; private global::Gtk.Label label4; private global::Gtk.VBox vbox3; private global::Gtk.Label lblPrjName; private global::Gtk.Label label6; private global::Gtk.Table tblAtributes; private global::Gtk.Label label5; private global::Gtk.Button buttonCancel; private global::Gtk.Button btnBack; private global::Gtk.Button btnOk; protected virtual void Build () { global::Stetic.Gui.Initialize (this); // Widget Moscrif.IDE.Controls.NewFileDialog this.Name = "Moscrif.IDE.Controls.NewFileDialog"; this.Title = global::Mono.Unix.Catalog.GetString ("New File"); this.WindowPosition = ((global::Gtk.WindowPosition)(4)); // Internal child Moscrif.IDE.Controls.NewFileDialog.VBox global::Gtk.VBox w1 = this.VBox; w1.Name = "dialog1_VBox"; w1.BorderWidth = ((uint)(2)); // Container child dialog1_VBox.Gtk.Box+BoxChild this.notebook1 = new global::Gtk.Notebook (); this.notebook1.CanFocus = true; this.notebook1.Name = "notebook1"; this.notebook1.CurrentPage = 0; this.notebook1.ShowBorder = false; this.notebook1.BorderWidth = ((uint)(10)); // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox2 = new global::Gtk.VBox (); this.vbox2.Name = "vbox2"; this.vbox2.Spacing = 6; // Container child vbox2.Gtk.Box+BoxChild this.hbox1 = new global::Gtk.HBox (); this.hbox1.Name = "hbox1"; this.hbox1.Spacing = 6; // Container child hbox1.Gtk.Box+BoxChild this.GtkScrolledWindow = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow.Name = "GtkScrolledWindow"; this.GtkScrolledWindow.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow.Gtk.Container+ContainerChild this.tvItem = new global::Gtk.TreeView (); this.tvItem.CanFocus = true; this.tvItem.Name = "tvItem"; this.GtkScrolledWindow.Add (this.tvItem); this.hbox1.Add (this.GtkScrolledWindow); global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.GtkScrolledWindow])); w3.Position = 1; this.vbox2.Add (this.hbox1); global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); w4.Position = 0; // Container child vbox2.Gtk.Box+BoxChild this.tblMain = new global::Gtk.Table (((uint)(1)), ((uint)(3)), false); this.tblMain.Name = "tblMain"; this.tblMain.RowSpacing = ((uint)(6)); this.tblMain.ColumnSpacing = ((uint)(6)); // Container child tblMain.Gtk.Table+TableChild this.entrName = new global::Gtk.Entry (); this.entrName.CanFocus = true; this.entrName.Name = "entrName"; this.entrName.IsEditable = true; this.entrName.InvisibleChar = '●'; this.tblMain.Add (this.entrName); global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.tblMain [this.entrName])); w5.LeftAttach = ((uint)(1)); w5.RightAttach = ((uint)(2)); w5.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tblMain.Gtk.Table+TableChild this.label1 = new global::Gtk.Label (); this.label1.Name = "label1"; this.label1.Xalign = 1F; this.label1.LabelProp = global::Mono.Unix.Catalog.GetString ("Name :"); this.tblMain.Add (this.label1); global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.tblMain [this.label1])); w6.XOptions = ((global::Gtk.AttachOptions)(4)); w6.YOptions = ((global::Gtk.AttachOptions)(4)); this.vbox2.Add (this.tblMain); global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.tblMain])); w7.Position = 1; w7.Expand = false; w7.Fill = false; w7.Padding = ((uint)(2)); this.notebook1.Add (this.vbox2); // Notebook tab this.label3 = new global::Gtk.Label (); this.label3.Name = "label3"; this.label3.LabelProp = global::Mono.Unix.Catalog.GetString ("page1"); this.notebook1.SetTabLabel (this.vbox2, this.label3); this.label3.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.tblMain1 = new global::Gtk.Table (((uint)(2)), ((uint)(3)), false); this.tblMain1.Name = "tblMain1"; this.tblMain1.RowSpacing = ((uint)(6)); this.tblMain1.ColumnSpacing = ((uint)(6)); // Container child tblMain1.Gtk.Table+TableChild this.entrName2 = new global::Gtk.Entry (); this.entrName2.CanFocus = true; this.entrName2.Name = "entrName2"; this.entrName2.IsEditable = true; this.entrName2.InvisibleChar = '●'; this.tblMain1.Add (this.entrName2); global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.tblMain1 [this.entrName2])); w9.LeftAttach = ((uint)(1)); w9.RightAttach = ((uint)(2)); w9.YOptions = ((global::Gtk.AttachOptions)(4)); // Container child tblMain1.Gtk.Table+TableChild this.GtkScrolledWindow1 = new global::Gtk.ScrolledWindow (); this.GtkScrolledWindow1.Name = "GtkScrolledWindow1"; this.GtkScrolledWindow1.ShadowType = ((global::Gtk.ShadowType)(1)); // Container child GtkScrolledWindow1.Gtk.Container+ContainerChild this.tvItem1 = new global::Gtk.TreeView (); this.tvItem1.CanFocus = true; this.tvItem1.Name = "tvItem1"; this.GtkScrolledWindow1.Add (this.tvItem1); this.tblMain1.Add (this.GtkScrolledWindow1); global::Gtk.Table.TableChild w11 = ((global::Gtk.Table.TableChild)(this.tblMain1 [this.GtkScrolledWindow1])); w11.TopAttach = ((uint)(1)); w11.BottomAttach = ((uint)(2)); w11.RightAttach = ((uint)(2)); w11.XPadding = ((uint)(3)); // Container child tblMain1.Gtk.Table+TableChild this.label7 = new global::Gtk.Label (); this.label7.Name = "label7"; this.label7.Xalign = 1F; this.label7.LabelProp = global::Mono.Unix.Catalog.GetString ("Name :"); this.tblMain1.Add (this.label7); global::Gtk.Table.TableChild w12 = ((global::Gtk.Table.TableChild)(this.tblMain1 [this.label7])); w12.XPadding = ((uint)(3)); w12.XOptions = ((global::Gtk.AttachOptions)(4)); w12.YOptions = ((global::Gtk.AttachOptions)(4)); this.notebook1.Add (this.tblMain1); global::Gtk.Notebook.NotebookChild w13 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.tblMain1])); w13.Position = 1; // Notebook tab this.label4 = new global::Gtk.Label (); this.label4.Name = "label4"; this.label4.LabelProp = global::Mono.Unix.Catalog.GetString ("page3"); this.notebook1.SetTabLabel (this.tblMain1, this.label4); this.label4.ShowAll (); // Container child notebook1.Gtk.Notebook+NotebookChild this.vbox3 = new global::Gtk.VBox (); this.vbox3.Name = "vbox3"; this.vbox3.Spacing = 6; // Container child vbox3.Gtk.Box+BoxChild this.lblPrjName = new global::Gtk.Label (); this.lblPrjName.Name = "lblPrjName"; this.lblPrjName.Xalign = 0F; this.lblPrjName.LabelProp = global::Mono.Unix.Catalog.GetString ("label1"); this.vbox3.Add (this.lblPrjName); global::Gtk.Box.BoxChild w14 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.lblPrjName])); w14.Position = 0; w14.Expand = false; w14.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.label6 = new global::Gtk.Label (); this.label6.Name = "label6"; this.label6.Xalign = 0F; this.label6.LabelProp = global::Mono.Unix.Catalog.GetString ("Use Following Parameters to Create Content of Your File..."); this.vbox3.Add (this.label6); global::Gtk.Box.BoxChild w15 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.label6])); w15.Position = 1; w15.Expand = false; w15.Fill = false; // Container child vbox3.Gtk.Box+BoxChild this.tblAtributes = new global::Gtk.Table (((uint)(3)), ((uint)(3)), false); this.tblAtributes.Name = "tblAtributes"; this.tblAtributes.RowSpacing = ((uint)(6)); this.tblAtributes.ColumnSpacing = ((uint)(6)); this.vbox3.Add (this.tblAtributes); global::Gtk.Box.BoxChild w16 = ((global::Gtk.Box.BoxChild)(this.vbox3 [this.tblAtributes])); w16.Position = 2; this.notebook1.Add (this.vbox3); global::Gtk.Notebook.NotebookChild w17 = ((global::Gtk.Notebook.NotebookChild)(this.notebook1 [this.vbox3])); w17.Position = 2; // Notebook tab this.label5 = new global::Gtk.Label (); this.label5.Name = "label5"; this.label5.LabelProp = global::Mono.Unix.Catalog.GetString ("page2"); this.notebook1.SetTabLabel (this.vbox3, this.label5); this.label5.ShowAll (); w1.Add (this.notebook1); global::Gtk.Box.BoxChild w18 = ((global::Gtk.Box.BoxChild)(w1 [this.notebook1])); w18.Position = 0; // Internal child Moscrif.IDE.Controls.NewFileDialog.ActionArea global::Gtk.HButtonBox w19 = this.ActionArea; w19.Name = "dialog1_ActionArea"; w19.Spacing = 10; w19.BorderWidth = ((uint)(10)); w19.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.buttonCancel = new global::Gtk.Button (); this.buttonCancel.CanDefault = true; this.buttonCancel.CanFocus = true; this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.UseStock = true; this.buttonCancel.UseUnderline = true; this.buttonCancel.Label = "gtk-cancel"; this.AddActionWidget (this.buttonCancel, -6); global::Gtk.ButtonBox.ButtonBoxChild w20 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w19 [this.buttonCancel])); w20.Expand = false; w20.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.btnBack = new global::Gtk.Button (); this.btnBack.CanFocus = true; this.btnBack.Name = "btnBack"; this.btnBack.UseUnderline = true; this.btnBack.Label = global::Mono.Unix.Catalog.GetString ("_Back"); w19.Add (this.btnBack); global::Gtk.ButtonBox.ButtonBoxChild w21 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w19 [this.btnBack])); w21.Position = 1; w21.Expand = false; w21.Fill = false; // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild this.btnOk = new global::Gtk.Button (); this.btnOk.CanFocus = true; this.btnOk.Name = "btnOk"; this.btnOk.UseUnderline = true; this.btnOk.Label = global::Mono.Unix.Catalog.GetString ("_Next"); w19.Add (this.btnOk); global::Gtk.ButtonBox.ButtonBoxChild w22 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w19 [this.btnOk])); w22.Position = 2; w22.Expand = false; w22.Fill = false; if ((this.Child != null)) { this.Child.ShowAll (); } this.DefaultWidth = 538; this.DefaultHeight = 372; this.Show (); this.entrName.KeyReleaseEvent += new global::Gtk.KeyReleaseEventHandler (this.OnEntrNameKeyReleaseEvent); this.btnBack.Clicked += new global::System.EventHandler (this.OnBrnBackClicked); this.btnOk.Clicked += new global::System.EventHandler (this.OnButtonOkClicked); } } }
44.105469
126
0.699407
[ "BSD-3-Clause" ]
moscrif/ide
gtk-gui/Moscrif.IDE.Controls.NewFileDialog.cs
11,295
C#
using HotChocolate; namespace Example { public class FooDirective { } }
10.5
29
0.666667
[ "MIT" ]
PascalSenn/hotchocolate-directive-example
FooDirective.cs
84
C#
using System.Threading; using System.Windows.Forms; using Glyssen.Controls; using Glyssen.Utilities; using NUnit.Framework; namespace GlyssenTests.Controls { [TestFixture] [Apartment(ApartmentState.STA)] public class BrowserTests { [Test] [Explicit] // By hand public void Navigate() { using (var form = new Form()) { GeckoUtilities.InitializeGecko(); using (var browser = new Browser()) { form.Controls.Add(browser); browser.Navigate("www.google.com"); form.ShowDialog(); } } } [Test] [Explicit] // By hand public void DisplayHtml() { using (var form = new Form()) { GeckoUtilities.InitializeGecko(); using (var browser = new Browser()) { form.Controls.Add(browser); browser.DisplayHtml("normal <em>italics</em> <strong>bold</strong>"); form.ShowDialog(); } } } } }
18.270833
74
0.641961
[ "MIT" ]
sillsdev/Glyssen
GlyssenTests/Controls/BrowserTests.cs
879
C#
using System.Collections.Generic; using System.Net.Http; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using Telegram.Bot.Requests.Abstractions; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; using Telegram.Bot.Types.InputFiles; using Telegram.Bot.Types.ReplyMarkups; // ReSharper disable once CheckNamespace namespace Telegram.Bot.Requests { /// <summary> /// Use this method to send photos. On success, the sent <see cref="Message"/> is returned. /// </summary> [JsonObject(MemberSerialization.OptIn, NamingStrategyType = typeof(SnakeCaseNamingStrategy))] public class SendPhotoRequest : FileRequestBase<Message>, IChatTargetable { /// <inheritdoc /> [JsonProperty(Required = Required.Always)] public ChatId ChatId { get; } /// <summary> /// Photo to send. Pass a <see cref="InputTelegramFile.FileId"/> as String to send a photo that /// exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to /// get a photo from the Internet, or upload a new photo using multipart/form-data. The photo /// must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. /// Width and height ratio must be at most 20 /// </summary> [JsonProperty(Required = Required.Always)] public InputOnlineFile Photo { get; } /// <summary> /// Photo caption (may also be used when resending photos by <see cref="InputTelegramFile.FileId"/>), /// 0-1024 characters after entities parsing /// </summary> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public string? Caption { get; set; } /// <inheritdoc cref="Abstractions.Documentation.ParseMode"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public ParseMode? ParseMode { get; set; } /// <inheritdoc cref="Abstractions.Documentation.CaptionEntities"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public IEnumerable<MessageEntity>? CaptionEntities { get; set; } /// <inheritdoc cref="Abstractions.Documentation.DisableNotification"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public bool? DisableNotification { get; set; } /// <inheritdoc cref="Abstractions.Documentation.ReplyToMessageId"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public int? ReplyToMessageId { get; set; } /// <inheritdoc cref="Abstractions.Documentation.AllowSendingWithoutReply"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public bool? AllowSendingWithoutReply { get; set; } /// <inheritdoc cref="Abstractions.Documentation.ReplyMarkup"/> [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)] public IReplyMarkup? ReplyMarkup { get; set; } /// <summary> /// Initializes a new request with chatId and photo /// </summary> /// <param name="chatId">Unique identifier for the target chat or username of the target channel /// (in the format <c>@channelusername</c>) /// </param> /// <param name="photo"> /// Photo to send. Pass a <see cref="InputTelegramFile.FileId"/> as String to send a photo that /// exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to /// get a photo from the Internet, or upload a new photo using multipart/form-data. The photo /// must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. /// Width and height ratio must be at most 20</param> public SendPhotoRequest(ChatId chatId, InputOnlineFile photo) : base("sendPhoto") { ChatId = chatId; Photo = photo; } /// <inheritdoc /> public override HttpContent? ToHttpContent() => Photo.FileType switch { FileType.Stream => ToMultipartFormDataContent(fileParameterName: "photo", inputFile: Photo), _ => base.ToHttpContent() }; } }
46.11828
109
0.662625
[ "MIT" ]
AKomyshan/Telegram.Bot
src/Telegram.Bot/Requests/Available methods/Messages/SendPhotoRequest.cs
4,289
C#
using System; using System.Globalization; using GeoAPI.Geometries; using Proj4Net.Utility; namespace Proj4Net.Projection { /// <summary> /// List of named meridians /// </summary> public enum NamedMeridian { /// <summary> /// Undefined /// </summary> Undefined = 0, /// <summary> /// Greenwich, England /// </summary> Greenwich = 8901, /// <summary> /// Lisbon, Portugal /// </summary> Lisbon = 8902, /// <summary> /// Paris, France /// </summary> Paris = 8903, /// <summary> /// Bogota, Colombia /// </summary> Bogota = 8904, /// <summary> /// Madrid, Spain /// </summary> Madrid = 8905, /// <summary> /// Rome, Italy /// </summary> Rome = 8906, /// <summary> /// Berne, Switzerland /// </summary> Bern = 8907, /// <summary> /// Jakarta, Indonesia /// </summary> Jakarta = 8908, /// <summary> /// Brasil /// </summary> Ferro = 8909, /// <summary> /// Brussels, Belgiuum /// </summary> Brussels = 8910, /// <summary> /// Stockholm, Sweden /// </summary> Stockholm = 8911, /// <summary> /// Athens, Greece /// </summary> Athens = 8912, /// <summary> /// Oslo, Norway /// </summary> Oslo = 8913, /// <summary> /// Unknown /// </summary> Unknown = int.MaxValue, } /// <summary> /// A meridian structure /// </summary> public struct Meridian { private const double Epsilon = 1e-7; private readonly double _longitude; private NamedMeridian _name; /// <summary> /// Gets the longitude. /// </summary> /// <value> /// The longitude. /// </value> public double Longitude { get { return _longitude; } } /// <summary> /// Gets the name. /// </summary> /// <value> /// The name. /// </value> public NamedMeridian Name { get { TestName(); return _name; } } /// <summary> /// Gets the code. /// </summary> /// <value> /// The code. /// </value> public int Code { get { TestName(); return (int)_name; } } /// <summary> /// Gets the proj4 description. /// </summary> /// <value> /// The proj4 description. /// </value> public string Proj4Description { get { TestName(); string rhs = _name != NamedMeridian.Unknown ? _name.ToString().ToLower() : ProjectionMath.ToDegrees(_longitude).ToString(NumberFormatInfo.InvariantInfo); return " +pm=" + rhs; } } private void TestName() { if (_name == NamedMeridian.Undefined) { QueryNameAndCode(_longitude, out _name); } } private static void QueryNameAndCode(double longitude, out NamedMeridian name) { //in degrees var val = longitude/ProjectionMath.DegreesToRadians; if (Math.Abs(val) < Epsilon) { name = NamedMeridian.Greenwich; return; } if (Math.Abs(val - -9.131906111) < Epsilon) { name = NamedMeridian.Lisbon; return; } if (Math.Abs(val - 2.337229167) < Epsilon) { name = NamedMeridian.Paris; return; } if (Math.Abs(val - -74.08091667) < Epsilon) { name = NamedMeridian.Bogota; return; } if (Math.Abs(val - -3.687938889) < Epsilon) { name = NamedMeridian.Madrid; return; } if (Math.Abs(val - 12.45233333) < Epsilon) { name = NamedMeridian.Rome; return; } if (Math.Abs(val - 7.439583333) < Epsilon) { name = NamedMeridian.Bern; return; } if (Math.Abs(val - 106.8077194) < Epsilon) { name = NamedMeridian.Jakarta; return; } if (Math.Abs(val - -17.66666667) < Epsilon) { name = NamedMeridian.Ferro; return; } if (Math.Abs(val - 4.367975) < Epsilon) { name = NamedMeridian.Brussels; return; } if (Math.Abs(val - 18.05827778) < Epsilon) { name = NamedMeridian.Stockholm; return; } if (Math.Abs(val - 23.7163375) < Epsilon) { name = NamedMeridian.Athens; return; } if (Math.Abs(val - 10.72291667) < Epsilon) { name = NamedMeridian.Oslo; return; } name = NamedMeridian.Unknown; } /// <summary> /// Creates a new Meridian /// </summary> /// <param name="name">Name of meridian</param> /// <param name="longitude">Longitude of meridian in radians</param> private Meridian(NamedMeridian name, double longitude) { _name = name; _longitude = longitude; } /// <summary> /// Factory method to create meridians by their name> /// </summary> /// <param name="name">The name of the meridian</param> /// <returns>The meridian</returns> public static Meridian CreateByName(string name) { var namedMeridian = (NamedMeridian) Enum.Parse(typeof (NamedMeridian), name, true); return CreateByNamedMeridian(namedMeridian); } /// <summary> /// Factory method to create meridians by their <see cref="NamedMeridian"/> /// </summary> /// <param name="meridan">The named meridian</param> /// <returns>The meridian</returns> public static Meridian CreateByNamedMeridian(NamedMeridian meridan) { switch (meridan) { case NamedMeridian.Greenwich: return new Meridian(meridan, 0); case NamedMeridian.Lisbon: return new Meridian(meridan, ProjectionMath.ToRadians(-9.131906111)); case NamedMeridian.Paris: return new Meridian(meridan, ProjectionMath.ToRadians(2.337229167)); case NamedMeridian.Bogota: return new Meridian(meridan, ProjectionMath.ToRadians(-74.08091667)); case NamedMeridian.Madrid: return new Meridian(meridan, ProjectionMath.ToRadians(-3.687938889)); case NamedMeridian.Rome: return new Meridian(meridan, ProjectionMath.ToRadians(12.45233333)); case NamedMeridian.Bern: return new Meridian(meridan, ProjectionMath.ToRadians(7.439583333)); case NamedMeridian.Jakarta: return new Meridian(meridan, ProjectionMath.ToRadians(106.8077194)); case NamedMeridian.Ferro: return new Meridian(meridan, ProjectionMath.ToRadians(-17.66666667)); case NamedMeridian.Brussels: return new Meridian(meridan, ProjectionMath.ToRadians(4.367975)); case NamedMeridian.Stockholm: return new Meridian(meridan, ProjectionMath.ToRadians(18.05827778)); case NamedMeridian.Athens: return new Meridian(meridan, ProjectionMath.ToRadians(23.7163375)); case NamedMeridian.Oslo: return new Meridian(meridan, ProjectionMath.ToRadians(10.72291667)); } throw new ArgumentOutOfRangeException("meridan"); } /// <summary> /// Factory method to create meridians by their degree value /// </summary> /// <param name="degree">The longitude of the meridian in degrees</param> /// <returns>The meridian</returns> public static Meridian CreateByDegree(double degree) { return new Meridian(NamedMeridian.Undefined, ProjectionMath.ToRadians(degree)); } public override string ToString() { return Proj4Description.Trim(); } public override int GetHashCode () { return 6524 ^ _longitude.GetHashCode (); } public override bool Equals (object obj) { if (!(obj is Meridian)) return false; var other = (Meridian)obj; return this == other; } public static bool operator==(Meridian lhs, Meridian rhs) { lhs.TestName(); rhs.TestName(); if (lhs._name == rhs._name && lhs._name != NamedMeridian.Unknown) return true; return Math.Abs(lhs._longitude - rhs._longitude) < Epsilon; } public static bool operator !=(Meridian lhs, Meridian rhs) { return !(lhs == rhs); } public Coordinate InverseAdjust(Coordinate geoCoord) { if (!double.IsPositiveInfinity(geoCoord.X)) geoCoord.X += _longitude; return geoCoord; } public Coordinate Adjust(Coordinate geoCoord) { if (!double.IsPositiveInfinity(geoCoord.X)) geoCoord.X -= _longitude; return geoCoord; } } }
29.353623
111
0.487509
[ "Apache-2.0" ]
jugstalt/gview5
gView.Proj/Proj4Net/Projection/Meridian.cs
10,129
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.AzureNextGen.Cache.V20171001 { public static class GetFirewallRule { /// <summary> /// A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect /// </summary> public static Task<GetFirewallRuleResult> InvokeAsync(GetFirewallRuleArgs args, InvokeOptions? options = null) => Pulumi.Deployment.Instance.InvokeAsync<GetFirewallRuleResult>("azure-nextgen:cache/v20171001:getFirewallRule", args ?? new GetFirewallRuleArgs(), options.WithVersion()); } public sealed class GetFirewallRuleArgs : Pulumi.InvokeArgs { /// <summary> /// The name of the Redis cache. /// </summary> [Input("cacheName", required: true)] public string CacheName { get; set; } = null!; /// <summary> /// The name of the resource group. /// </summary> [Input("resourceGroupName", required: true)] public string ResourceGroupName { get; set; } = null!; /// <summary> /// The name of the firewall rule. /// </summary> [Input("ruleName", required: true)] public string RuleName { get; set; } = null!; public GetFirewallRuleArgs() { } } [OutputType] public sealed class GetFirewallRuleResult { /// <summary> /// highest IP address included in the range /// </summary> public readonly string EndIP; /// <summary> /// Resource ID. /// </summary> public readonly string Id; /// <summary> /// Resource name. /// </summary> public readonly string Name; /// <summary> /// lowest IP address included in the range /// </summary> public readonly string StartIP; /// <summary> /// Resource type. /// </summary> public readonly string Type; [OutputConstructor] private GetFirewallRuleResult( string endIP, string id, string name, string startIP, string type) { EndIP = endIP; Id = id; Name = name; StartIP = startIP; Type = type; } } }
28.402174
184
0.573287
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Cache/V20171001/GetFirewallRule.cs
2,613
C#
using System; using System.Linq; using NUnit.Framework; using Umbraco.Core; using Umbraco.Core.Cache; using Umbraco.Core.Models; using Umbraco.Core.Persistence; using Umbraco.Core.Persistence.Dtos; using Umbraco.Core.Persistence.Repositories; using Umbraco.Core.Persistence.Repositories.Implement; using Umbraco.Core.Scoping; using Umbraco.Tests.TestHelpers; using Umbraco.Tests.TestHelpers.Entities; using Umbraco.Tests.Testing; namespace Umbraco.Tests.Persistence.Repositories { [TestFixture] [UmbracoTest(Database = UmbracoTestOptions.Database.NewSchemaPerTest)] public class MediaTypeRepositoryTest : TestWithDatabaseBase { private MediaTypeRepository CreateRepository(IScopeProvider provider) { return new MediaTypeRepository((IScopeAccessor) provider, AppCaches.Disabled, Logger); } private EntityContainerRepository CreateContainerRepository(IScopeProvider provider) { return new EntityContainerRepository((IScopeAccessor) provider, AppCaches.Disabled, Logger, Constants.ObjectTypes.MediaTypeContainer); } [Test] public void Can_Move() { var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var containerRepository = CreateContainerRepository(provider); var repository = CreateRepository(provider); var container1 = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah1" }; containerRepository.Save(container1); var container2 = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah2", ParentId = container1.Id }; containerRepository.Save(container2); var contentType = (IMediaType)MockedContentTypes.CreateVideoMediaType(); contentType.ParentId = container2.Id; repository.Save(contentType); //create a var contentType2 = (IMediaType)new MediaType(contentType, "hello") { Name = "Blahasdfsadf" }; contentType.ParentId = contentType.Id; repository.Save(contentType2); var result = repository.Move(contentType, container1).ToArray(); Assert.AreEqual(2, result.Length); //re-get contentType = repository.Get(contentType.Id); contentType2 = repository.Get(contentType2.Id); Assert.AreEqual(container1.Id, contentType.ParentId); Assert.AreNotEqual(result.Single(x => x.Entity.Id == contentType.Id).OriginalPath, contentType.Path); Assert.AreNotEqual(result.Single(x => x.Entity.Id == contentType2.Id).OriginalPath, contentType2.Path); } } [Test] public void Can_Create_Container() { var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var containerRepository = CreateContainerRepository(provider); var container = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah" }; containerRepository.Save(container); Assert.That(container.Id, Is.GreaterThan(0)); var found = containerRepository.Get(container.Id); Assert.IsNotNull(found); } } [Test] public void Can_Delete_Container() { var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var containerRepository = CreateContainerRepository(provider); var container = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah" }; containerRepository.Save(container); Assert.That(container.Id, Is.GreaterThan(0)); // Act containerRepository.Delete(container); var found = containerRepository.Get(container.Id); Assert.IsNull(found); } } [Test] public void Can_Create_Container_Containing_Media_Types() { var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var containerRepository = CreateContainerRepository(provider); var repository = CreateRepository(provider); var container = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah" }; containerRepository.Save(container); var contentType = MockedContentTypes.CreateVideoMediaType(); contentType.ParentId = container.Id; repository.Save(contentType); Assert.AreEqual(container.Id, contentType.ParentId); } } [Test] public void Can_Delete_Container_Containing_Media_Types() { var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var containerRepository = CreateContainerRepository(provider); var repository = CreateRepository(provider); var container = new EntityContainer(Constants.ObjectTypes.MediaType) { Name = "blah" }; containerRepository.Save(container); IMediaType contentType = MockedContentTypes.CreateVideoMediaType(); contentType.ParentId = container.Id; repository.Save(contentType); // Act containerRepository.Delete(container); var found = containerRepository.Get(container.Id); Assert.IsNull(found); contentType = repository.Get(contentType.Id); Assert.IsNotNull(contentType); Assert.AreEqual(-1, contentType.ParentId); } } [Test] public void Can_Perform_Add_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var contentType = MockedContentTypes.CreateVideoMediaType(); repository.Save(contentType); var fetched = repository.Get(contentType.Id); // Assert Assert.That(contentType.HasIdentity, Is.True); Assert.That(contentType.PropertyGroups.All(x => x.HasIdentity), Is.True); Assert.That(contentType.Path.Contains(","), Is.True); Assert.That(contentType.SortOrder, Is.GreaterThan(0)); TestHelper.AssertPropertyValuesAreEqual(contentType, fetched, "yyyy-MM-dd HH:mm:ss", ignoreProperties: new[] { "UpdateDate" }); } } [Test] public void Can_Perform_Update_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); var videoMediaType = MockedContentTypes.CreateVideoMediaType(); repository.Save(videoMediaType); // Act var mediaType = repository.Get(NodeDto.NodeIdSeed); mediaType.Thumbnail = "Doc2.png"; mediaType.PropertyGroups["Media"].PropertyTypes.Add(new PropertyType("test", ValueStorageType.Ntext, "subtitle") { Name = "Subtitle", Description = "Optional Subtitle", Mandatory = false, SortOrder = 1, DataTypeId = -88 }); repository.Save(mediaType); var dirty = ((MediaType) mediaType).IsDirty(); // Assert Assert.That(mediaType.HasIdentity, Is.True); Assert.That(dirty, Is.False); Assert.That(mediaType.Thumbnail, Is.EqualTo("Doc2.png")); Assert.That(mediaType.PropertyTypes.Any(x => x.Alias == "subtitle"), Is.True); } } [Test] public void Can_Perform_Delete_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var mediaType = MockedContentTypes.CreateVideoMediaType(); repository.Save(mediaType); var contentType2 = repository.Get(mediaType.Id); repository.Delete(contentType2); var exists = repository.Exists(mediaType.Id); // Assert Assert.That(exists, Is.False); } } [Test] public void Can_Perform_Get_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var mediaType = repository.Get(1033); //File // Assert Assert.That(mediaType, Is.Not.Null); Assert.That(mediaType.Id, Is.EqualTo(1033)); Assert.That(mediaType.Name, Is.EqualTo(Constants.Conventions.MediaTypes.File)); } } [Test] public void Can_Perform_Get_By_Guid_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); var mediaType = repository.Get(1033); //File // Act mediaType = repository.Get(mediaType.Key); // Assert Assert.That(mediaType, Is.Not.Null); Assert.That(mediaType.Id, Is.EqualTo(1033)); Assert.That(mediaType.Name, Is.EqualTo(Constants.Conventions.MediaTypes.File)); } } [Test] public void Can_Perform_GetAll_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var mediaTypes = repository.GetMany(); int count = scope.Database.ExecuteScalar<int>( "SELECT COUNT(*) FROM umbracoNode WHERE nodeObjectType = @NodeObjectType", new { NodeObjectType = Constants.ObjectTypes.MediaType }); // Assert Assert.That(mediaTypes.Any(), Is.True); Assert.That(mediaTypes.Count(), Is.EqualTo(count)); } } [Test] public void Can_Perform_GetAll_By_Guid_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); var allGuidIds = repository.GetMany().Select(x => x.Key).ToArray(); // Act var mediaTypes = ((IReadRepository<Guid, IMediaType>)repository).GetMany(allGuidIds); int count = scope.Database.ExecuteScalar<int>( "SELECT COUNT(*) FROM umbracoNode WHERE nodeObjectType = @NodeObjectType", new { NodeObjectType = Constants.ObjectTypes.MediaType }); // Assert Assert.That(mediaTypes.Any(), Is.True); Assert.That(mediaTypes.Count(), Is.EqualTo(count)); } } [Test] public void Can_Perform_Exists_On_MediaTypeRepository() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var exists = repository.Exists(1032); //Image // Assert Assert.That(exists, Is.True); } } [Test] public void Can_Update_MediaType_With_PropertyType_Removed() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); var mediaType = MockedContentTypes.CreateVideoMediaType(); repository.Save(mediaType); // Act var mediaTypeV2 = repository.Get(NodeDto.NodeIdSeed); mediaTypeV2.PropertyGroups["Media"].PropertyTypes.Remove("title"); repository.Save(mediaTypeV2); var mediaTypeV3 = repository.Get(NodeDto.NodeIdSeed); // Assert Assert.That(mediaTypeV3.PropertyTypes.Any(x => x.Alias == "title"), Is.False); Assert.That(mediaTypeV2.PropertyGroups.Count, Is.EqualTo(mediaTypeV3.PropertyGroups.Count)); Assert.That(mediaTypeV2.PropertyTypes.Count(), Is.EqualTo(mediaTypeV3.PropertyTypes.Count())); } } [Test] public void Can_Verify_PropertyTypes_On_Video_MediaType() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); var mediaType = MockedContentTypes.CreateVideoMediaType(); repository.Save(mediaType); // Act var contentType = repository.Get(NodeDto.NodeIdSeed); // Assert Assert.That(contentType.PropertyTypes.Count(), Is.EqualTo(2)); Assert.That(contentType.PropertyGroups.Count(), Is.EqualTo(1)); } } [Test] public void Can_Verify_PropertyTypes_On_File_MediaType() { // Arrange var provider = TestObjects.GetScopeProvider(Logger); using (var scope = provider.CreateScope()) { var repository = CreateRepository(provider); // Act var contentType = repository.Get(1033); //File // Assert Assert.That(contentType.PropertyTypes.Count(), Is.EqualTo(3)); Assert.That(contentType.PropertyGroups.Count(), Is.EqualTo(1)); } } [TearDown] public override void TearDown() { base.TearDown(); } } }
35.646396
146
0.552095
[ "MIT" ]
AndersBrohus/Umbraco-CMS
src/Umbraco.Tests/Persistence/Repositories/MediaTypeRepositoryTest.cs
15,829
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.VisualStudio.TestPlatform.MSTestAdapter.UnitTests { extern alias FrameworkV1; extern alias FrameworkV2; using System; using System.Linq; using System.Reflection; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter; using Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Helpers; using Moq; using TestableImplementations; using Assert = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.Assert; using CollectionAssert = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.CollectionAssert; using TestClass = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute; using TestCleanup = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute; using TestInitialize = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute; using TestMethod = FrameworkV1::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute; using UTF = FrameworkV2::Microsoft.VisualStudio.TestTools.UnitTesting; [TestClass] public class ReflectHelperTests { private TestableReflectHelper reflectHelper; private Mock<MethodInfo> method; private TestablePlatformServiceProvider testablePlatformServiceProvider; [TestInitialize] public void IntializeTests() { this.reflectHelper = new TestableReflectHelper(); this.method = new Mock<MethodInfo>(); this.method.Setup(x => x.MemberType).Returns(MemberTypes.Method); this.testablePlatformServiceProvider = new TestablePlatformServiceProvider(); this.testablePlatformServiceProvider.SetupMockReflectionOperations(); PlatformServiceProvider.Instance = this.testablePlatformServiceProvider; } [TestCleanup] public void TestCleanup() { PlatformServiceProvider.Instance = null; } /// <summary> /// Testing test category attribute adorned at class level /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeTestCategoriesAtClassLevel() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("ClassLevel") }, MemberTypes.TypeInfo); string[] expected = new[] { "ClassLevel" }; var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing test category attributes adorned at class, assembly and method level are getting collected. /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeTestCategoriesAtAllLevels() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel1"), new UTF.TestCategoryAttribute("AsmLevel2") }, MemberTypes.All); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel3") }, MemberTypes.All); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("ClassLevel") }, MemberTypes.TypeInfo); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("MethodLevel") }, MemberTypes.Method); var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); string[] expected = new[] { "MethodLevel", "ClassLevel", "AsmLevel1", "AsmLevel2", "AsmLevel3" }; CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing test category attributes adorned at class, assembly and method level are getting collected. /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldConcatCustomAttributeOfSameType() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel1") }, MemberTypes.All); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel2") }, MemberTypes.All); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("ClassLevel1") }, MemberTypes.TypeInfo); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("ClassLevel2") }, MemberTypes.TypeInfo); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("MethodLevel1") }, MemberTypes.Method); this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("MethodLevel2") }, MemberTypes.Method); var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); string[] expected = new[] { "MethodLevel1", "MethodLevel2", "ClassLevel1", "ClassLevel2", "AsmLevel1", "AsmLevel2" }; CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing test category attributes adorned at assembly level /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeTestCategoriesAtAssemblyLevel() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel") }, MemberTypes.All); string[] expected = new[] { "AsmLevel" }; var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing multiple test category attribute adorned at class level /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeMultipleTestCategoriesAtClassLevel() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("ClassLevel"), new UTF.TestCategoryAttribute("ClassLevel1") }, MemberTypes.TypeInfo); string[] expected = new[] { "ClassLevel", "ClassLevel1" }; var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing multiple test category attributes adorned at assembly level /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeMultipleTestCategoriesAtAssemblyLevel() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("AsmLevel"), new UTF.TestCategoryAttribute("AsmLevel1") }, MemberTypes.All); string[] expected = new[] { "AsmLevel", "AsmLevel1" }; var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); CollectionAssert.AreEqual(expected, actual); } /// <summary> /// Testing test category attributes adorned at method level - regression /// </summary> [TestMethod] public void GetTestCategoryAttributeShouldIncludeTestCategoriesAtMethodLevel() { this.reflectHelper.SetCustomAttribute(typeof(UTF.TestCategoryBaseAttribute), new[] { new UTF.TestCategoryAttribute("MethodLevel") }, MemberTypes.Method); string[] expected = new[] { "MethodLevel" }; var actual = this.reflectHelper.GetCategories(this.method.Object, typeof(ReflectHelperTests)).ToArray(); CollectionAssert.AreEqual(expected, actual); } [TestMethod] public void IsAttributeDefinedShouldReturnTrueIfSpecifiedAttributeIsDefinedOnAMember() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new UTF.TestMethodAttribute() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns(attribs); Assert.IsTrue(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)); } [TestMethod] public void IsAttributeDefinedShouldReturnFalseIfSpecifiedAttributeIsNotDefinedOnAMember() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new UTF.TestClassAttribute() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns(attribs); Assert.IsFalse(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)); } [TestMethod] public void IsAttributeDefinedShouldReturnFromCache() { var rh = new ReflectHelper(); // Not using mocks here because for some reason a dictionary match of the mock is not returning true in the product code. var memberInfo = typeof(ReflectHelperTests).GetMethod("IsAttributeDefinedShouldReturnFromCache"); // new Mock<MemberInfo>(); var attribs = new Attribute[] { new UTF.TestMethodAttribute() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(memberInfo, true)). Returns(attribs); Assert.IsTrue(rh.IsAttributeDefined(memberInfo, typeof(UTF.TestMethodAttribute), true)); // Validate that reflection APIs are not called again. Assert.IsTrue(rh.IsAttributeDefined(memberInfo, typeof(UTF.TestMethodAttribute), true)); this.testablePlatformServiceProvider.MockReflectionOperations.Verify(ro => ro.GetCustomAttributes(memberInfo, true), Times.Once); // Also validate that reflection APIs for an individual type is not called since the cache gives us what we need already. this.testablePlatformServiceProvider.MockReflectionOperations.Verify(ro => ro.GetCustomAttributes(It.IsAny<MemberInfo>(), It.IsAny<Type>(), It.IsAny<bool>()), Times.Never); } [TestMethod] public void IsAttributeDefinedShouldReturnTrueQueryingASpecificAttributesExistenceEvenIfGettingAllAttributesFail() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new UTF.TestMethodAttribute() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns((object[])null); this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)). Returns(attribs); Assert.IsTrue(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)); } [TestMethod] public void HasAttributeDerivedFromShouldReturnTrueIfSpecifiedAttributeIsDefinedOnAMember() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new TestableExtendedTestMethod() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns(attribs); Assert.IsTrue(rh.HasAttributeDerivedFrom(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)); } [TestMethod] public void HasAttributeDerivedFromShouldReturnFalseIfSpecifiedAttributeIsNotDefinedOnAMember() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new TestableExtendedTestMethod() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns(attribs); Assert.IsFalse(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(UTF.TestClassAttribute), true)); } [TestMethod] public void HasAttributeDerivedFromShouldReturnFromCache() { var rh = new ReflectHelper(); // Not using mocks here because for some reason a dictionary match of the mock is not returning true in the product code. var memberInfo = typeof(ReflectHelperTests).GetMethod("HasAttributeDerivedFromShouldReturnFromCache"); // new Mock<MemberInfo>(); var attribs = new Attribute[] { new TestableExtendedTestMethod() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(memberInfo, true)). Returns(attribs); Assert.IsTrue(rh.HasAttributeDerivedFrom(memberInfo, typeof(UTF.TestMethodAttribute), true)); // Validate that reflection APIs are not called again. Assert.IsTrue(rh.HasAttributeDerivedFrom(memberInfo, typeof(UTF.TestMethodAttribute), true)); this.testablePlatformServiceProvider.MockReflectionOperations.Verify(ro => ro.GetCustomAttributes(memberInfo, true), Times.Once); // Also validate that reflection APIs for an individual type is not called since the cache gives us what we need already. this.testablePlatformServiceProvider.MockReflectionOperations.Verify(ro => ro.GetCustomAttributes(It.IsAny<MemberInfo>(), It.IsAny<Type>(), It.IsAny<bool>()), Times.Never); } [TestMethod] public void HasAttributeDerivedFromShouldReturnFalseQueryingProvidedAttributesExistenceIfGettingAllAttributesFail() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new TestableExtendedTestMethod() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns((object[])null); this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)). Returns(attribs); Assert.IsFalse(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(UTF.TestMethodAttribute), true)); } [TestMethod] public void HasAttributeDerivedFromShouldReturnTrueQueryingProvidedAttributesExistenceIfGettingAllAttributesFail() { var rh = new ReflectHelper(); var mockMemberInfo = new Mock<MemberInfo>(); var attribs = new Attribute[] { new TestableExtendedTestMethod() }; this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, true)). Returns((object[])null); this.testablePlatformServiceProvider.MockReflectionOperations. Setup(ro => ro.GetCustomAttributes(mockMemberInfo.Object, typeof(TestableExtendedTestMethod), true)). Returns(attribs); Assert.IsTrue(rh.IsAttributeDefined(mockMemberInfo.Object, typeof(TestableExtendedTestMethod), true)); } } #region Dummy Implmentations public class TestableExtendedTestMethod : UTF.TestMethodAttribute { } #endregion }
50.616564
212
0.690322
[ "MIT" ]
AF250329/testfx
test/UnitTests/MSTest.CoreAdapter.Unit.Tests/Helpers/ReflectHelperTests.cs
16,501
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the autoscaling-2011-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScaling.Model { /// <summary> /// Container for the parameters to the DetachLoadBalancerTargetGroups operation. /// Detaches one or more target groups from the specified Auto Scaling group. /// </summary> public partial class DetachLoadBalancerTargetGroupsRequest : AmazonAutoScalingRequest { private string _autoScalingGroupName; private List<string> _targetGroupARNs = new List<string>(); /// <summary> /// Gets and sets the property AutoScalingGroupName. /// <para> /// The name of the Auto Scaling group. /// </para> /// </summary> public string AutoScalingGroupName { get { return this._autoScalingGroupName; } set { this._autoScalingGroupName = value; } } // Check to see if AutoScalingGroupName property is set internal bool IsSetAutoScalingGroupName() { return this._autoScalingGroupName != null; } /// <summary> /// Gets and sets the property TargetGroupARNs. /// <para> /// The Amazon Resource Names (ARN) of the target groups. /// </para> /// </summary> public List<string> TargetGroupARNs { get { return this._targetGroupARNs; } set { this._targetGroupARNs = value; } } // Check to see if TargetGroupARNs property is set internal bool IsSetTargetGroupARNs() { return this._targetGroupARNs != null && this._targetGroupARNs.Count > 0; } } }
32.631579
109
0.650403
[ "Apache-2.0" ]
Bynder/aws-sdk-net
sdk/src/Services/AutoScaling/Generated/Model/DetachLoadBalancerTargetGroupsRequest.cs
2,480
C#
using System; using System.Diagnostics; using System.Threading.Tasks; using Jasper.Logging; using Jasper.Transports; namespace Jasper.Runtime.WorkerQueues { public class InlineWorkerQueue : IListeningWorkerQueue { private readonly IHandlerPipeline _pipeline; private readonly ITransportLogger _logger; private readonly AdvancedSettings _settings; public InlineWorkerQueue(IHandlerPipeline pipeline, ITransportLogger logger, IListener listener, AdvancedSettings settings) { Listener = listener; _pipeline = pipeline; _logger = logger; _settings = settings; Listener.Start(this, settings.Cancellation); } public void Dispose() { Listener = null; // making sure the listener can be released } public IListener Listener { get; private set; } public async Task Received(Uri uri, Envelope[] messages) { foreach (var envelope in messages) { await Received(uri, envelope); } } public async Task Received(Uri uri, Envelope envelope) { using var activity = JasperTracing.StartExecution(_settings.OpenTelemetryReceiveSpanName, envelope, ActivityKind.Consumer); try { envelope.MarkReceived(uri, DateTime.UtcNow, _settings.UniqueNodeId); await _pipeline.Invoke(envelope, Listener, activity); _logger.IncomingReceived(envelope); // TODO -- mark success on the activity? } catch (Exception e) { // TODO -- Mark failures onto the activity? _logger.LogException(e, envelope.Id, "Failure to receive an incoming message"); try { await Listener.Defer(envelope); } catch (Exception ex) { _logger.LogException(ex, envelope.CorrelationId,"Error when trying to Nack a Rabbit MQ message that failed in the HandlerPipeline"); } } } } }
31.380282
152
0.576302
[ "MIT" ]
JasperFx/jasper
src/Jasper/Runtime/WorkerQueues/InlineWorkerQueue.cs
2,228
C#
namespace Microsoft.AspNetCore.Mvc { using System; using System.Collections.Generic; using System.Threading.Tasks; using Extensions.Primitives; using Http; using Net.Http.Headers; /// <summary> /// A <see cref="StatusCodeResult"/> that when executed will produce an empty /// <see cref="StatusCodes.Status416RequestedRangeNotSatisfiable"/> response. /// </summary> public class RequestedRangeNotSatisfiableResult : StatusCodeResult { /// <summary> /// Initializes a new instance of the <see cref="RequestedRangeNotSatisfiableResult"/> class. /// </summary> public RequestedRangeNotSatisfiableResult() : base(StatusCodes.Status416RequestedRangeNotSatisfiable) { } /// <summary> /// Initializes a new instance of the <see cref="RequestedRangeNotSatisfiableResult"/> class. /// </summary> /// <param name="selectedResourceLength"></param> public RequestedRangeNotSatisfiableResult(long? selectedResourceLength) : this() { this.SelectedResourceLength = selectedResourceLength; } /// <summary> /// Gets or sets the current length of the selected resource. /// </summary> public long? SelectedResourceLength { get; set; } /// <inheritdoc /> public override Task ExecuteResultAsync(ActionContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (context.HttpContext.Response.Headers.Contains(new KeyValuePair<string, StringValues>(HeaderNames.ContentType, new StringValues("multipart/byteranges")))) { throw new OperationCanceledException("This response MUST NOT use the multipart/byteranges content-type."); } if (this.SelectedResourceLength.HasValue) { context.HttpContext.Response.Headers.Add(HeaderNames.ContentRange, new StringValues(this.SelectedResourceLength.ToString())); } return base.ExecuteResultAsync(context); } } }
35.983607
169
0.631891
[ "MIT" ]
Magicianred/AspNetCore.Mvc.HttpActionResults
src/AspNetCore.Mvc.HttpActionResults.ClientError/RequestedRangeNotSatisfiableResult.cs
2,197
C#
using System; namespace Ockham.Reflection { /// <summary> /// Static utility methods for inspecting types /// </summary> public static class TypeUtil { public static bool IsStaticClass(Type type) => throw null; public static bool IsIntegerType(Type type) => throw null; public static bool IsNumberType(Type type) => throw null; public static bool IsNullableOfT(Type type) => throw null; public static bool IsNullableOfT(Type type, ref Type elementType) => throw null; public static bool IsEnumerable(Type type, ref Type elementType) => throw null; public static bool IsEnumerable(Type type, bool excludeString, ref Type elementType) => throw null; public static bool Implements(Type type, Type interfaceType) => throw null; public static bool Implements(Type type, Type interfaceType, ref Type[] typeArguments) => throw null; public static bool IsConstructedType(Type type, Type genericTypeDefinition) => throw null; public static bool IsConstructedType(Type type, Type genericTypeDefinition, ref Type[] typeArguments) => throw null; public static object Default(Type type) => throw null; } }
50.791667
124
0.701395
[ "MIT" ]
joshua-honig/ockham.net.data
src/ref/Reflection/TypeUtil.cs
1,221
C#
using System; using System.Linq.Expressions; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; // ReSharper disable once CheckNamespace namespace ProgressOnderwijsUtils { public interface IValueConverterSource<TModel, TProvider> { ValueConverter<TModel, TProvider> GetValueConverter(); } public static class IConverterSourceExtensions { public static ValueConverter<TModel, TProvider> DefineConverter<TModel, TProvider>( // ReSharper disable once UnusedParameter.Global this IValueConverterSource<TModel, TProvider> _, Expression<Func<TModel, TProvider>> convertToProviderExpression, Expression<Func<TProvider, TModel>> convertFromProviderExpression ) => new(convertToProviderExpression, convertFromProviderExpression); } }
36.166667
92
0.717742
[ "Apache-2.0" ]
progressonderwijs/ProgressOnderwijsUtils
src/ProgressOnderwijsUtils/Pocos/IValueConverterSource.cs
868
C#
namespace Microsoft.ApplicationInsights.Metrics.Extensibility { /// <summary> /// /// </summary> public interface IMetricValueFilter { /// <summary> /// /// </summary> /// <param name="dataSeries"></param> /// <param name="metricValue"></param> /// <returns></returns> bool WillConsume(MetricSeries dataSeries, double metricValue); /// <summary> /// /// </summary> /// <param name="dataSeries"></param> /// <param name="metricValue"></param> /// <returns></returns> bool WillConsume(MetricSeries dataSeries, object metricValue); } }
28.041667
70
0.543834
[ "MIT" ]
Bhaskers-Blu-Org2/ApplicationInsights-SDK-Labs
Metrics/Microsoft.ApplicationInsights.Metrics.Core/Public/Microsoft.ApplicationInsights.Metrics.Extensibility/IMetricValueFilter.cs
675
C#
// <auto-generated /> // https://github.com/dotnet/corefx/blob/1597b894a2e9cac668ce6e484506eca778a85197/src/Common/src/CoreLib/System/Index.cs // https://github.com/dotnet/corefx/blob/1597b894a2e9cac668ce6e484506eca778a85197/src/Common/src/CoreLib/System/Range.cs #pragma warning disable CS0436 // Type conflicts with imported type #nullable enable using System.Runtime.CompilerServices; namespace System { /// <summary>Represent a type can be used to index a collection either from the start or the end.</summary> /// <remarks> /// Index is used by the C# compiler to support the new index syntax /// <code> /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 } ; /// int lastElement = someArray[^1]; // lastElement = 5 /// </code> /// </remarks> readonly struct Index : IEquatable<Index> { readonly int _value; /// <summary>Construct an Index using a value and indicating if the index is from the start or from the end.</summary> /// <param name="value">The index value. it has to be zero or positive number.</param> /// <param name="fromEnd">Indicating if the index is from the start or from the end.</param> /// <remarks> /// If the Index constructed from the end, index value 1 means pointing at the last element and index value 0 means pointing at beyond last element. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public Index(int value, bool fromEnd = false) { if (value < 0) { throw new ArgumentOutOfRangeException(nameof(value), "value must be non-negative"); } if (fromEnd) _value = ~value; else _value = value; } // The following private constructors mainly created for perf reason to avoid the checks Index(int value) { _value = value; } /// <summary>Create an Index pointing at first element.</summary> public static Index Start => new Index(0); /// <summary>Create an Index pointing at beyond last element.</summary> public static Index End => new Index(~0); /// <summary>Create an Index from the start at the position indicated by the value.</summary> /// <param name="value">The index value from the start.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Index FromStart(int value) { if (value < 0) { throw new ArgumentOutOfRangeException(nameof(value), "value must be non-negative"); } return new Index(value); } /// <summary>Create an Index from the end at the position indicated by the value.</summary> /// <param name="value">The index value from the end.</param> [MethodImpl(MethodImplOptions.AggressiveInlining)] public static Index FromEnd(int value) { if (value < 0) { throw new ArgumentOutOfRangeException(nameof(value), "value must be non-negative"); } return new Index(~value); } /// <summary>Returns the index value.</summary> public int Value { get { if (_value < 0) { return ~_value; } else { return _value; } } } /// <summary>Indicates whether the index is from the start or the end.</summary> public bool IsFromEnd => _value < 0; /// <summary>Calculate the offset from the start using the giving collection length.</summary> /// <param name="length">The length of the collection that the Index will be used with. length has to be a positive value</param> /// <remarks> /// For performance reason, we don't validate the input length parameter and the returned offset value against negative values. /// we don't validate either the returned offset is greater than the input length. /// It is expected Index will be used with collections which always have non negative length/count. If the returned offset is negative and /// then used to index a collection will get out of range exception which will be same affect as the validation. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public int GetOffset(int length) { var offset = _value; if (IsFromEnd) { // offset = length - (~value) // offset = length + (~(~value) + 1) // offset = length + value + 1 offset += length + 1; } return offset; } /// <summary>Indicates whether the current Index object is equal to another object of the same type.</summary> /// <param name="value">An object to compare with this object</param> public override bool Equals(object? value) => value is Index && _value == ((Index)value)._value; /// <summary>Indicates whether the current Index object is equal to another Index object.</summary> /// <param name="other">An object to compare with this object</param> public bool Equals(Index other) => _value == other._value; /// <summary>Returns the hash code for this instance.</summary> public override int GetHashCode() => _value; /// <summary>Converts integer number to an Index.</summary> public static implicit operator Index(int value) => FromStart(value); /// <summary>Converts the value of the current Index object to its equivalent string representation.</summary> public override string ToString() { if (IsFromEnd) return "^" + ((uint)Value).ToString(); return ((uint)Value).ToString(); } } /// <summary>Represent a range has start and end indexes.</summary> /// <remarks> /// Range is used by the C# compiler to support the range syntax. /// <code> /// int[] someArray = new int[5] { 1, 2, 3, 4, 5 }; /// int[] subArray1 = someArray[0..2]; // { 1, 2 } /// int[] subArray2 = someArray[1..^0]; // { 2, 3, 4, 5 } /// </code> /// </remarks> readonly struct Range : IEquatable<Range> { /// <summary>Represent the inclusive start index of the Range.</summary> public Index Start { get; } /// <summary>Represent the exclusive end index of the Range.</summary> public Index End { get; } /// <summary>Construct a Range object using the start and end indexes.</summary> /// <param name="start">Represent the inclusive start index of the range.</param> /// <param name="end">Represent the exclusive end index of the range.</param> public Range(Index start, Index end) { Start = start; End = end; } /// <summary>Indicates whether the current Range object is equal to another object of the same type.</summary> /// <param name="value">An object to compare with this object</param> public override bool Equals(object? value) => value is Range r && r.Start.Equals(Start) && r.End.Equals(End); /// <summary>Indicates whether the current Range object is equal to another Range object.</summary> /// <param name="other">An object to compare with this object</param> public bool Equals(Range other) => other.Start.Equals(Start) && other.End.Equals(End); /// <summary>Returns the hash code for this instance.</summary> public override int GetHashCode() { return Start.GetHashCode() * 31 + End.GetHashCode(); } /// <summary>Converts the value of the current Range object to its equivalent string representation.</summary> public override string ToString() { return Start + ".." + End; } /// <summary>Create a Range object starting from start index to the end of the collection.</summary> public static Range StartAt(Index start) => new Range(start, Index.End); /// <summary>Create a Range object starting from first element in the collection to the end Index.</summary> public static Range EndAt(Index end) => new Range(Index.Start, end); /// <summary>Create a Range object starting from first element to the end.</summary> public static Range All => new Range(Index.Start, Index.End); /// <summary>Calculate the start offset and length of range object using a collection length.</summary> /// <param name="length">The length of the collection that the range will be used with. length has to be a positive value.</param> /// <remarks> /// For performance reason, we don't validate the input length parameter against negative values. /// It is expected Range will be used with collections which always have non negative length/count. /// We validate the range is inside the length scope though. /// </remarks> [MethodImpl(MethodImplOptions.AggressiveInlining)] public (int Offset, int Length) GetOffsetAndLength(int length) { int start; var startIndex = Start; if (startIndex.IsFromEnd) start = length - startIndex.Value; else start = startIndex.Value; int end; var endIndex = End; if (endIndex.IsFromEnd) end = length - endIndex.Value; else end = endIndex.Value; if ((uint)end > (uint)length || (uint)start > (uint)end) { throw new ArgumentOutOfRangeException(nameof(length)); } return (start, end - start); } } } namespace System.Runtime.CompilerServices { static class RuntimeHelpers { /// <summary> /// Slices the specified array using the specified range. /// </summary> public static T[] GetSubArray<T>(T[] array, Range range) { if (array == null) { throw new ArgumentNullException(nameof(array)); } (var offset, var length) = range.GetOffsetAndLength(array.Length); if (default(T) != null || typeof(T[]) == array.GetType()) { // We know the type of the array to be exactly T[]. if (length == 0) { return Array.Empty<T>(); } var dest = new T[length]; Array.Copy(array, offset, dest, 0, length); return dest; } else { // The array is actually a U[] where U:T. #pragma warning disable CS8604 // Possible null reference argument. var dest = (T[])Array.CreateInstance(array.GetType().GetElementType(), length); #pragma warning restore CS8604 // Possible null reference argument. Array.Copy(array, offset, dest, 0, length); return dest; } } } } #pragma warning restore CS0436 // Type conflicts with imported type
40.640569
156
0.587391
[ "MIT" ]
devlooped/MSBuild.Json
src/JsonPoke/Range.cs
11,422
C#
// <copyright file="IMMALConvert.cs" company="Techyian"> // Copyright (c) Ian Auty. All rights reserved. // Licensed under the MIT License. Please see LICENSE.txt for License info. // </copyright> using System.Threading.Tasks; namespace MMALSharp.Components { /// <summary> /// Supports converting user provided image data. /// </summary> public interface IMMALConvert { /// <summary> /// Encodes/decodes user provided image data. /// </summary> /// <param name="outputPort">The output port to begin processing on.</param> /// <returns>An awaitable task.</returns> Task Convert(int outputPort); } }
29.304348
84
0.645401
[ "MIT" ]
mike-moede/MMALSharp
src/MMALSharp/Components/EncoderComponents/IMMALConvert.cs
676
C#
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace Microsoft.Azure.Cosmos { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Data.Common; using System.Linq; using System.Net; using System.Net.Http; using Microsoft.Azure.Cosmos.Fluent; using Microsoft.Azure.Documents; using Microsoft.Azure.Documents.Client; using Newtonsoft.Json; /// <summary> /// Defines all the configurable options that the CosmosClient requires. /// </summary> /// <example> /// An example on how to configure the serialization option to ignore null values. /// <code language="c#"> /// <![CDATA[ /// CosmosClientOptions clientOptions = new CosmosClientOptions() /// { /// SerializerOptions = new CosmosSerializationOptions(){ /// IgnoreNullValues = true /// }, /// ConnectionMode = ConnectionMode.Gateway, /// }; /// /// CosmosClient client = new CosmosClient("endpoint", "key", clientOptions); /// ]]> /// </code> /// </example> public class CosmosClientOptions { /// <summary> /// Default connection mode /// </summary> private const ConnectionMode DefaultConnectionMode = ConnectionMode.Direct; /// <summary> /// Default Protocol mode /// </summary> private const Protocol DefaultProtocol = Protocol.Tcp; private const string ConnectionStringAccountEndpoint = "AccountEndpoint"; private const string ConnectionStringAccountKey = "AccountKey"; private const ApiType DefaultApiType = ApiType.None; /// <summary> /// Default request timeout /// </summary> private int gatewayModeMaxConnectionLimit; private CosmosSerializationOptions serializerOptions; private CosmosSerializer serializerInternal; private ConnectionMode connectionMode; private Protocol connectionProtocol; private TimeSpan? idleTcpConnectionTimeout; private TimeSpan? openTcpConnectionTimeout; private int? maxRequestsPerTcpConnection; private int? maxTcpConnectionsPerEndpoint; private PortReuseMode? portReuseMode; private IWebProxy webProxy; private Func<HttpClient> httpClientFactory; /// <summary> /// Creates a new CosmosClientOptions /// </summary> public CosmosClientOptions() { this.GatewayModeMaxConnectionLimit = ConnectionPolicy.Default.MaxConnectionLimit; this.RequestTimeout = ConnectionPolicy.Default.RequestTimeout; this.TokenCredentialBackgroundRefreshInterval = null; this.ConnectionMode = CosmosClientOptions.DefaultConnectionMode; this.ConnectionProtocol = CosmosClientOptions.DefaultProtocol; this.ApiType = CosmosClientOptions.DefaultApiType; this.CustomHandlers = new Collection<RequestHandler>(); } /// <summary> /// Get or set user-agent suffix to include with every Azure Cosmos DB service interaction. /// </summary> /// <remarks> /// Setting this property after sending any request won't have any effect. /// </remarks> public string ApplicationName { get; set; } /// <summary> /// Get or set session container for the client /// </summary> internal ISessionContainer SessionContainer { get; set; } /// <summary> /// Get or set the preferred geo-replicated region to be used for Azure Cosmos DB service interaction. /// </summary> /// <remarks> /// When this property is specified, the SDK prefers the region to perform operations. Also SDK auto-selects /// fallback geo-replicated regions for high availability. /// When this property is not specified, the SDK uses the write region as the preferred region for all operations. /// </remarks> /// <seealso cref="CosmosClientBuilder.WithApplicationRegion(string)"/> /// <seealso href="https://docs.microsoft.com/azure/cosmos-db/high-availability#high-availability-with-cosmos-db-in-the-event-of-regional-outages">High availability on regional outages</seealso> public string ApplicationRegion { get; set; } /// <summary> /// Gets and sets the preferred regions for geo-replicated database accounts in the Azure Cosmos DB service. /// </summary> /// <remarks> /// When this property is specified, the SDK will use the region list in the provided order to define the endpoint failover order. /// This configuration is an alternative to <see cref="ApplicationRegion"/>, either one can be set but not both. /// </remarks> /// <seealso href="https://docs.microsoft.com/azure/cosmos-db/high-availability#high-availability-with-cosmos-db-in-the-event-of-regional-outages">High availability on regional outages</seealso> public IReadOnlyList<string> ApplicationPreferredRegions { get; set; } /// <summary> /// Get or set the maximum number of concurrent connections allowed for the target /// service endpoint in the Azure Cosmos DB service. /// </summary> /// <remarks> /// This setting is only applicable in Gateway mode. /// </remarks> /// <value>Default value is 50.</value> /// <seealso cref="CosmosClientBuilder.WithConnectionModeGateway(int?, IWebProxy)"/> public int GatewayModeMaxConnectionLimit { get => this.gatewayModeMaxConnectionLimit; set { if (value <= 0) { throw new ArgumentOutOfRangeException(nameof(value)); } if (this.HttpClientFactory != null && value != ConnectionPolicy.Default.MaxConnectionLimit) { throw new ArgumentException($"{nameof(this.httpClientFactory)} can not be set along with {nameof(this.GatewayModeMaxConnectionLimit)}. This must be set on the HttpClientHandler.MaxConnectionsPerServer property."); } this.gatewayModeMaxConnectionLimit = value; } } /// <summary> /// Gets the request timeout in seconds when connecting to the Azure Cosmos DB service. /// The number specifies the time to wait for response to come back from network peer. /// </summary> /// <value>Default value is 1 minute.</value> /// <seealso cref="CosmosClientBuilder.WithRequestTimeout(TimeSpan)"/> public TimeSpan RequestTimeout { get; set; } /// <summary> /// The SDK does a background refresh based on the time interval set to refresh the token credentials. /// This avoids latency issues because the old token is used until the new token is retrieved. /// </summary> /// <remarks> /// The recommended minimum value is 5 minutes. The default value is 50% of the token expire time. /// </remarks> public TimeSpan? TokenCredentialBackgroundRefreshInterval { get; set; } /// <summary> /// Gets the handlers run before the process /// </summary> /// <seealso cref="CosmosClientBuilder.AddCustomHandlers(RequestHandler[])"/> [JsonConverter(typeof(ClientOptionJsonConverter))] public Collection<RequestHandler> CustomHandlers { get; } /// <summary> /// Get or set the connection mode used by the client when connecting to the Azure Cosmos DB service. /// </summary> /// <value> /// Default value is <see cref="Cosmos.ConnectionMode.Direct"/> /// </value> /// <remarks> /// For more information, see <see href="https://docs.microsoft.com/azure/documentdb/documentdb-performance-tips#direct-connection">Connection policy: Use direct connection mode</see>. /// </remarks> /// <seealso cref="CosmosClientBuilder.WithConnectionModeDirect()"/> /// <seealso cref="CosmosClientBuilder.WithConnectionModeGateway(int?, IWebProxy)"/> public ConnectionMode ConnectionMode { get => this.connectionMode; set { if (value == ConnectionMode.Gateway) { this.ConnectionProtocol = Protocol.Https; } else if (value == ConnectionMode.Direct) { this.connectionProtocol = Protocol.Tcp; } this.ValidateDirectTCPSettings(); this.connectionMode = value; } } /// <summary> /// This can be used to weaken the database account consistency level for read operations. /// If this is not set the database account consistency level will be used for all requests. /// </summary> public ConsistencyLevel? ConsistencyLevel { get; set; } /// <summary> /// Gets or sets the maximum number of retries in the case where the request fails /// because the Azure Cosmos DB service has applied rate limiting on the client. /// </summary> /// <value> /// The default value is 9. This means in the case where the request is rate limited, /// the same request will be issued for a maximum of 10 times to the server before /// an error is returned to the application. /// /// If the value of this property is set to 0, there will be no automatic retry on rate /// limiting requests from the client and the exception needs to be handled at the /// application level. /// </value> /// <remarks> /// <para> /// When a client is sending requests faster than the allowed rate, /// the service will return HttpStatusCode 429 (Too Many Requests) to rate limit the client. The current /// implementation in the SDK will then wait for the amount of time the service tells it to wait and /// retry after the time has elapsed. /// </para> /// <para> /// For more information, see <see href="https://docs.microsoft.com/azure/cosmos-db/performance-tips#throughput">Handle rate limiting/request rate too large</see>. /// </para> /// </remarks> /// <seealso cref="CosmosClientBuilder.WithThrottlingRetryOptions(TimeSpan, int)"/> public int? MaxRetryAttemptsOnRateLimitedRequests { get; set; } /// <summary> /// Gets or sets the maximum retry time in seconds for the Azure Cosmos DB service. /// </summary> /// <value> /// The default value is 30 seconds. /// </value> /// <remarks> /// <para> /// The minimum interval is seconds. Any interval that is smaller will be ignored. /// </para> /// <para> /// When a request fails due to a rate limiting error, the service sends back a response that /// contains a value indicating the client should not retry before the <see cref="Microsoft.Azure.Cosmos.CosmosException.RetryAfter"/> time period has /// elapsed. /// /// This property allows the application to set a maximum wait time for all retry attempts. /// If the cumulative wait time exceeds the this value, the client will stop retrying and return the error to the application. /// </para> /// <para> /// For more information, see <see href="https://docs.microsoft.com/azure/cosmos-db/performance-tips#throughput">Handle rate limiting/request rate too large</see>. /// </para> /// </remarks> /// <seealso cref="CosmosClientBuilder.WithThrottlingRetryOptions(TimeSpan, int)"/> public TimeSpan? MaxRetryWaitTimeOnRateLimitedRequests { get; set; } /// <summary> /// Gets or sets the boolean to only return the headers and status code in /// the Cosmos DB response for write item operation like Create, Upsert, Patch and Replace. /// Setting the option to false will cause the response to have a null resource. This reduces networking and CPU load by not sending /// the resource back over the network and serializing it on the client. /// </summary> /// <remarks> /// <para>This is optimal for workloads where the returned resource is not used.</para> /// <para>This option can be overriden by similar property in ItemRequestOptions and TransactionalBatchItemRequestOptions</para> /// </remarks> /// <seealso cref="CosmosClientBuilder.WithContentResponseOnWrite(bool)"/> /// <seealso cref="ItemRequestOptions.EnableContentResponseOnWrite"/> /// <seealso cref="TransactionalBatchItemRequestOptions.EnableContentResponseOnWrite"/> public bool? EnableContentResponseOnWrite { get; set; } /// <summary> /// (Direct/TCP) Controls the amount of idle time after which unused connections are closed. /// </summary> /// <value> /// By default, idle connections are kept open indefinitely. Value must be greater than or equal to 10 minutes. Recommended values are between 20 minutes and 24 hours. /// </value> /// <remarks> /// Mainly useful for sparse infrequent access to a large database account. /// </remarks> public TimeSpan? IdleTcpConnectionTimeout { get => this.idleTcpConnectionTimeout; set { this.idleTcpConnectionTimeout = value; this.ValidateDirectTCPSettings(); } } /// <summary> /// (Direct/TCP) Controls the amount of time allowed for trying to establish a connection. /// </summary> /// <value> /// The default timeout is 5 seconds. Recommended values are greater than or equal to 5 seconds. /// </value> /// <remarks> /// When the time elapses, the attempt is cancelled and an error is returned. Longer timeouts will delay retries and failures. /// </remarks> public TimeSpan? OpenTcpConnectionTimeout { get => this.openTcpConnectionTimeout; set { this.openTcpConnectionTimeout = value; this.ValidateDirectTCPSettings(); } } /// <summary> /// (Direct/TCP) Controls the number of requests allowed simultaneously over a single TCP connection. When more requests are in flight simultaneously, the direct/TCP client will open additional connections. /// </summary> /// <value> /// The default settings allow 30 simultaneous requests per connection. /// Do not set this value lower than 4 requests per connection or higher than 50-100 requests per connection. /// The former can lead to a large number of connections to be created. /// The latter can lead to head of line blocking, high latency and timeouts. /// </value> /// <remarks> /// Applications with a very high degree of parallelism per connection, with large requests or responses, or with very tight latency requirements might get better performance with 8-16 requests per connection. /// </remarks> public int? MaxRequestsPerTcpConnection { get => this.maxRequestsPerTcpConnection; set { this.maxRequestsPerTcpConnection = value; this.ValidateDirectTCPSettings(); } } /// <summary> /// (Direct/TCP) Controls the maximum number of TCP connections that may be opened to each Cosmos DB back-end. /// Together with MaxRequestsPerTcpConnection, this setting limits the number of requests that are simultaneously sent to a single Cosmos DB back-end(MaxRequestsPerTcpConnection x MaxTcpConnectionPerEndpoint). /// </summary> /// <value> /// The default value is 65,535. Value must be greater than or equal to 16. /// </value> public int? MaxTcpConnectionsPerEndpoint { get => this.maxTcpConnectionsPerEndpoint; set { this.maxTcpConnectionsPerEndpoint = value; this.ValidateDirectTCPSettings(); } } /// <summary> /// (Direct/TCP) Controls the client port reuse policy used by the transport stack. /// </summary> /// <value> /// The default value is PortReuseMode.ReuseUnicastPort. /// </value> /// <remarks> /// ReuseUnicastPort and PrivatePortPool are not mutually exclusive. /// When PrivatePortPool is enabled, the client first tries to reuse a port it already has. /// It falls back to allocating a new port if the initial attempts failed. If this fails, too, the client then falls back to ReuseUnicastPort. /// </remarks> public PortReuseMode? PortReuseMode { get => this.portReuseMode; set { this.portReuseMode = value; this.ValidateDirectTCPSettings(); } } /// <summary> /// (Gateway/Https) Get or set the proxy information used for web requests. /// </summary> [JsonIgnore] public IWebProxy WebProxy { get => this.webProxy; set { if (value != null && this.HttpClientFactory != null) { throw new ArgumentException($"{nameof(this.WebProxy)} cannot be set along {nameof(this.HttpClientFactory)}"); } this.webProxy = value; } } /// <summary> /// Get to set optional serializer options. /// </summary> /// <example> /// An example on how to configure the serialization option to ignore null values /// <code language="c#"> /// <![CDATA[ /// CosmosClientOptions clientOptions = new CosmosClientOptions() /// { /// SerializerOptions = new CosmosSerializationOptions(){ /// IgnoreNullValues = true /// } /// }; /// /// CosmosClient client = new CosmosClient("endpoint", "key", clientOptions); /// ]]> /// </code> /// </example> public CosmosSerializationOptions SerializerOptions { get => this.serializerOptions; set { if (this.Serializer != null) { throw new ArgumentException( $"{nameof(this.SerializerOptions)} is not compatible with {nameof(this.Serializer)}. Only one can be set. "); } this.serializerOptions = value; } } /// <summary> /// Get to set an optional JSON serializer. The client will use it to serialize or de-serialize user's cosmos request/responses. /// SDK owned types such as DatabaseProperties and ContainerProperties will always use the SDK default serializer. /// </summary> /// <example> /// An example on how to set a custom serializer. For basic serializer options look at CosmosSerializationOptions /// <code language="c#"> /// <![CDATA[ /// CosmosSerializer ignoreNullSerializer = new MyCustomIgnoreNullSerializer(); /// /// CosmosClientOptions clientOptions = new CosmosClientOptions() /// { /// Serializer = ignoreNullSerializer /// }; /// /// CosmosClient client = new CosmosClient("endpoint", "key", clientOptions); /// ]]> /// </code> /// </example> [JsonConverter(typeof(ClientOptionJsonConverter))] public CosmosSerializer Serializer { get => this.serializerInternal; set { if (this.SerializerOptions != null) { throw new ArgumentException( $"{nameof(this.Serializer)} is not compatible with {nameof(this.SerializerOptions)}. Only one can be set. "); } this.serializerInternal = value; } } /// <summary> /// Limits the operations to the provided endpoint on the CosmosClient. /// </summary> /// <value> /// Default value is false. /// </value> /// <remarks> /// When the value of this property is false, the SDK will automatically discover write and read regions, and use them when the configured application region is not available. /// When set to true, availability is limited to the endpoint specified on the CosmosClient constructor. /// Defining the <see cref="ApplicationRegion"/> or <see cref="ApplicationPreferredRegions"/> is not allowed when setting the value to true. /// </remarks> /// <seealso href="https://docs.microsoft.com/azure/cosmos-db/high-availability">High availability</seealso> public bool LimitToEndpoint { get; set; } = false; /// <summary> /// Allows optimistic batching of requests to service. Setting this option might impact the latency of the operations. Hence this option is recommended for non-latency sensitive scenarios only. /// </summary> public bool AllowBulkExecution { get; set; } /// <summary> /// Gets or sets the flag to enable address cache refresh on TCP connection reset notification. /// </summary> /// <remarks> /// Does not apply if <see cref="ConnectionMode.Gateway"/> is used. /// </remarks> /// <value> /// The default value is false /// </value> public bool EnableTcpConnectionEndpointRediscovery { get; set; } = false; /// <summary> /// Gets or sets a delegate to use to obtain an HttpClient instance to be used for HTTPS communication. /// </summary> /// <remarks> /// <para> /// HTTPS communication is used when <see cref="ConnectionMode"/> is set to <see cref="ConnectionMode.Gateway"/> for all operations and when <see cref="ConnectionMode"/> is <see cref="ConnectionMode.Direct"/> (default) for metadata operations. /// </para> /// <para> /// Useful in scenarios where the application is using a pool of HttpClient instances to be shared, like ASP.NET Core applications with IHttpClientFactory or Blazor WebAssembly applications. /// </para> /// <para> /// For .NET core applications the default GatewayConnectionLimit will be ignored. It must be set on the HttpClientHandler.MaxConnectionsPerServer to limit the number of connections /// </para> /// </remarks> [JsonIgnore] public Func<HttpClient> HttpClientFactory { get => this.httpClientFactory; set { if (value != null && this.WebProxy != null) { throw new ArgumentException($"{nameof(this.HttpClientFactory)} cannot be set along {nameof(this.WebProxy)}"); } if (this.GatewayModeMaxConnectionLimit != ConnectionPolicy.Default.MaxConnectionLimit) { throw new ArgumentException($"{nameof(this.httpClientFactory)} can not be set along with {nameof(this.GatewayModeMaxConnectionLimit)}. This must be set on the HttpClientHandler.MaxConnectionsPerServer property."); } this.httpClientFactory = value; } } /// <summary> /// Enable partition key level failover /// </summary> internal bool EnablePartitionLevelFailover { get; set; } = false; /// <summary> /// Gets or sets the connection protocol when connecting to the Azure Cosmos service. /// </summary> /// <value> /// Default value is <see cref="Protocol.Tcp"/>. /// </value> /// <remarks> /// This setting is not used when <see cref="ConnectionMode"/> is set to <see cref="Cosmos.ConnectionMode.Gateway"/>. /// Gateway mode only supports HTTPS. /// For more information, see <see href="https://docs.microsoft.com/azure/documentdb/documentdb-performance-tips#use-tcp">Connection policy: Use the TCP protocol</see>. /// </remarks> internal Protocol ConnectionProtocol { get => this.connectionProtocol; set { this.ValidateDirectTCPSettings(); this.connectionProtocol = value; } } /// <summary> /// The event handler to be invoked before the request is sent. /// </summary> internal EventHandler<SendingRequestEventArgs> SendingRequestEventArgs { get; set; } /// <summary> /// (Optional) transport interceptor factory /// </summary> internal Func<TransportClient, TransportClient> TransportClientHandlerFactory { get; set; } /// <summary> /// API type for the account /// </summary> internal ApiType ApiType { get; set; } /// <summary> /// Optional store client factory instance to use for all transport requests. /// </summary> internal IStoreClientFactory StoreClientFactory { get; set; } /// <summary> /// Gets or sets the initial delay retry time in milliseconds for the Azure Cosmos DB service /// for requests that hit RetryWithExceptions. This covers errors that occur due to concurrency errors in the store. /// </summary> /// <value> /// The default value is 1 second. For an example on how to set this value, please refer to <see cref="ConnectionPolicy.RetryOptions"/>. /// </value> /// <remarks> /// <para> /// When a request fails due to a RetryWith error, the client delays and retries the request. This configures the client /// to delay the time specified before retrying the request. /// </para> /// </remarks> internal int? InitialRetryForRetryWithMilliseconds { get; set; } /// <summary> /// Gets or sets the maximum delay retry time in milliseconds for the Azure Cosmos DB service /// for requests that hit RetryWithExceptions. This covers errors that occur due to concurrency errors in the store. /// </summary> /// <value> /// The default value is 30 seconds. For an example on how to set this value, please refer to <see cref="ConnectionPolicy.RetryOptions"/>. /// </value> /// <remarks> /// <para> /// When a request fails due to a RetryWith error, the client delays and retries the request. This configures the maximum time /// the client should delay before failing the request. /// </para> /// </remarks> internal int? MaximumRetryForRetryWithMilliseconds { get; set; } /// <summary> /// Gets or sets the interval to salt retry with value. This will spread the retry values from 1..n from the exponential back-off /// subscribed. /// </summary> /// <value> /// The default value is to not salt. /// </value> /// <remarks> /// <para> /// When a request fails due to a RetryWith error, the client delays and retries the request. This configures the jitter on the retry attempted. /// </para> /// </remarks> internal int? RandomSaltForRetryWithMilliseconds { get; set; } /// <summary> /// Gets or sets the total time to wait before failing the request for retry with failures. /// subscribed. /// </summary> /// <value> /// The default value 30 seconds. /// </value> /// <remarks> /// <para> /// When a request fails due to a RetryWith error, the client delays and retries the request. This configures total time spent waiting on the request. /// </para> /// </remarks> internal int? TotalWaitTimeForRetryWithMilliseconds { get; set; } /// <summary> /// Flag that controls whether CPU monitoring thread is created to enrich timeout exceptions with additional diagnostic. Default value is true. /// </summary> internal bool? EnableCpuMonitor { get; set; } /// <summary> /// Flag to enable telemetry /// </summary> internal bool? EnableClientTelemetry { get; set; } internal void SetSerializerIfNotConfigured(CosmosSerializer serializer) { if (this.serializerInternal == null) { this.serializerInternal = serializer ?? throw new ArgumentNullException(nameof(serializer)); } } internal CosmosClientOptions Clone() { CosmosClientOptions cloneConfiguration = (CosmosClientOptions)this.MemberwiseClone(); return cloneConfiguration; } internal virtual ConnectionPolicy GetConnectionPolicy(int clientId) { this.ValidateDirectTCPSettings(); this.ValidateLimitToEndpointSettings(); ConnectionPolicy connectionPolicy = new ConnectionPolicy() { MaxConnectionLimit = this.GatewayModeMaxConnectionLimit, RequestTimeout = this.RequestTimeout, ConnectionMode = this.ConnectionMode, ConnectionProtocol = this.ConnectionProtocol, UserAgentContainer = this.CreateUserAgentContainerWithFeatures(clientId), UseMultipleWriteLocations = true, IdleTcpConnectionTimeout = this.IdleTcpConnectionTimeout, OpenTcpConnectionTimeout = this.OpenTcpConnectionTimeout, MaxRequestsPerTcpConnection = this.MaxRequestsPerTcpConnection, MaxTcpConnectionsPerEndpoint = this.MaxTcpConnectionsPerEndpoint, EnableEndpointDiscovery = !this.LimitToEndpoint, EnablePartitionLevelFailover = this.EnablePartitionLevelFailover, PortReuseMode = this.portReuseMode, EnableTcpConnectionEndpointRediscovery = this.EnableTcpConnectionEndpointRediscovery, HttpClientFactory = this.httpClientFactory }; if (this.EnableClientTelemetry.HasValue) { connectionPolicy.EnableClientTelemetry = this.EnableClientTelemetry.Value; } if (this.ApplicationRegion != null) { connectionPolicy.SetCurrentLocation(this.ApplicationRegion); } if (this.ApplicationPreferredRegions != null) { connectionPolicy.SetPreferredLocations(this.ApplicationPreferredRegions); } if (this.MaxRetryAttemptsOnRateLimitedRequests != null) { connectionPolicy.RetryOptions.MaxRetryAttemptsOnThrottledRequests = this.MaxRetryAttemptsOnRateLimitedRequests.Value; } if (this.MaxRetryWaitTimeOnRateLimitedRequests != null) { connectionPolicy.RetryOptions.MaxRetryWaitTimeInSeconds = (int)this.MaxRetryWaitTimeOnRateLimitedRequests.Value.TotalSeconds; } if (this.InitialRetryForRetryWithMilliseconds != null) { connectionPolicy.RetryOptions.InitialRetryForRetryWithMilliseconds = this.InitialRetryForRetryWithMilliseconds; } if (this.MaximumRetryForRetryWithMilliseconds != null) { connectionPolicy.RetryOptions.MaximumRetryForRetryWithMilliseconds = this.MaximumRetryForRetryWithMilliseconds; } if (this.RandomSaltForRetryWithMilliseconds != null) { connectionPolicy.RetryOptions.RandomSaltForRetryWithMilliseconds = this.RandomSaltForRetryWithMilliseconds; } if (this.TotalWaitTimeForRetryWithMilliseconds != null) { connectionPolicy.RetryOptions.TotalWaitTimeForRetryWithMilliseconds = this.TotalWaitTimeForRetryWithMilliseconds; } return connectionPolicy; } internal Documents.ConsistencyLevel? GetDocumentsConsistencyLevel() { if (!this.ConsistencyLevel.HasValue) { return null; } return (Documents.ConsistencyLevel)this.ConsistencyLevel.Value; } internal static string GetAccountEndpoint(string connectionString) { return CosmosClientOptions.GetValueFromConnectionString(connectionString, CosmosClientOptions.ConnectionStringAccountEndpoint); } internal static string GetAccountKey(string connectionString) { return CosmosClientOptions.GetValueFromConnectionString(connectionString, CosmosClientOptions.ConnectionStringAccountKey); } private static string GetValueFromConnectionString(string connectionString, string keyName) { if (connectionString == null) { throw new ArgumentNullException(nameof(connectionString)); } DbConnectionStringBuilder builder = new DbConnectionStringBuilder { ConnectionString = connectionString }; if (builder.TryGetValue(keyName, out object value)) { string keyNameValue = value as string; if (!string.IsNullOrEmpty(keyNameValue)) { return keyNameValue; } } throw new ArgumentException("The connection string is missing a required property: " + keyName); } private void ValidateLimitToEndpointSettings() { if (!string.IsNullOrEmpty(this.ApplicationRegion) && this.LimitToEndpoint) { throw new ArgumentException($"Cannot specify {nameof(this.ApplicationRegion)} and enable {nameof(this.LimitToEndpoint)}. Only one can be set."); } if (this.ApplicationPreferredRegions?.Count > 0 && this.LimitToEndpoint) { throw new ArgumentException($"Cannot specify {nameof(this.ApplicationPreferredRegions)} and enable {nameof(this.LimitToEndpoint)}. Only one can be set."); } if (!string.IsNullOrEmpty(this.ApplicationRegion) && this.ApplicationPreferredRegions?.Count > 0) { throw new ArgumentException($"Cannot specify {nameof(this.ApplicationPreferredRegions)} and {nameof(this.ApplicationRegion)}. Only one can be set."); } } private void ValidateDirectTCPSettings() { string settingName = string.Empty; if (this.ConnectionMode != ConnectionMode.Direct) { if (this.IdleTcpConnectionTimeout.HasValue) { settingName = nameof(this.IdleTcpConnectionTimeout); } else if (this.OpenTcpConnectionTimeout.HasValue) { settingName = nameof(this.OpenTcpConnectionTimeout); } else if (this.MaxRequestsPerTcpConnection.HasValue) { settingName = nameof(this.MaxRequestsPerTcpConnection); } else if (this.MaxTcpConnectionsPerEndpoint.HasValue) { settingName = nameof(this.MaxTcpConnectionsPerEndpoint); } else if (this.PortReuseMode.HasValue) { settingName = nameof(this.PortReuseMode); } } if (!string.IsNullOrEmpty(settingName)) { throw new ArgumentException($"{settingName} requires {nameof(this.ConnectionMode)} to be set to {nameof(ConnectionMode.Direct)}"); } } internal UserAgentContainer CreateUserAgentContainerWithFeatures(int clientId) { CosmosClientOptionsFeatures features = CosmosClientOptionsFeatures.NoFeatures; if (this.AllowBulkExecution) { features |= CosmosClientOptionsFeatures.AllowBulkExecution; } if (this.HttpClientFactory != null) { features |= CosmosClientOptionsFeatures.HttpClientFactory; } string featureString = null; if (features != CosmosClientOptionsFeatures.NoFeatures) { featureString = Convert.ToString((int)features, 2).PadLeft(8, '0'); } string regionConfiguration = this.GetRegionConfiguration(); return new UserAgentContainer( clientId: clientId, features: featureString, regionConfiguration: regionConfiguration, suffix: this.ApplicationName); } /// <summary> /// This generates a key that added to the user agent to make it /// possible to determine if the SDK has region failover enabled. /// </summary> /// <returns>Format Reg-{D (Disabled discovery)}-S(application region)|L(List of preferred regions)|N(None, user did not configure it)</returns> private string GetRegionConfiguration() { string regionConfig = this.LimitToEndpoint ? "D" : string.Empty; if (!string.IsNullOrEmpty(this.ApplicationRegion)) { return regionConfig + "S"; } if (this.ApplicationPreferredRegions != null) { return regionConfig + "L"; } return regionConfig + "N"; } /// <summary> /// Serialize the current configuration into a JSON string /// </summary> /// <returns>Returns a JSON string of the current configuration.</returns> internal string GetSerializedConfiguration() { return JsonConvert.SerializeObject(this); } /// <summary> /// The complex object passed in by the user can contain objects that can not be serialized. Instead just log the types. /// </summary> private class ClientOptionJsonConverter : JsonConverter { public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) { if (value is Collection<RequestHandler> handlers) { writer.WriteValue(string.Join(":", handlers.Select(x => x.GetType()))); return; } CosmosJsonSerializerWrapper cosmosJsonSerializerWrapper = value as CosmosJsonSerializerWrapper; if (value is CosmosJsonSerializerWrapper) { writer.WriteValue(cosmosJsonSerializerWrapper.InternalJsonSerializer.GetType().ToString()); } CosmosSerializer cosmosSerializer = value as CosmosSerializer; if (cosmosSerializer is CosmosSerializer) { writer.WriteValue(cosmosSerializer.GetType().ToString()); } } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { throw new NotImplementedException("Unnecessary because CanRead is false. The type will skip the converter."); } public override bool CanRead => false; public override bool CanConvert(Type objectType) { return objectType == typeof(DateTime); } } } }
44.114504
251
0.604356
[ "MIT" ]
askazakov/azure-cosmos-dotnet-v3
Microsoft.Azure.Cosmos/src/CosmosClientOptions.cs
40,455
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text; namespace QDMarketPlace.Data.Entities { public class Permission { public int Id { get; set; } //[Required] public Guid RoleId { get; set; } /*[StringLength(128)] [Required] [Column(TypeName ="varchar(128)")]*/ public string FunctionId { get; set; } public bool CanCreate { set; get; } public bool CanRead { set; get; } public bool CanUpdate { set; get; } public bool CanDelete { set; get; } //[ForeignKey("RoleId")] //public virtual AppRole AppRole { get; set; } //[ForeignKey("FunctionId")] public Function Function { get; set; } } }
23.722222
54
0.600703
[ "MIT" ]
quocitspkt/QDMarketPlaceNew1
QDMarketPlace.Data/Entities/Permission.cs
856
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; [CreateAssetMenu(fileName = "newLookForPlayerStateData", menuName = "Data/State Data/Look For Player State")] public class D_LookForPlayer : ScriptableObject { public int amountOfTurns = 2; public float timeBetweenTurns = 0.75f; }
29
109
0.783699
[ "MIT" ]
ab-gregor/ProjectCelest
ProjectCelest/Assets/Scripts/Enemies/States/Data/D_LookForPlayer.cs
319
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace RFIDTest { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } }
22.043478
65
0.609467
[ "Apache-2.0" ]
dingfeng/rfid
RFIDApplication/RFIDTest/Program.cs
509
C#
using System; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Swashbuckle.AspNetCore.Annotations; using vr.mock.api.Dtos; using vr.mock.api.Services; namespace vr.mock.api.Controllers { [Route("api/[controller]")] public class StrategyController : ControllerBase { private readonly IStrategyRepository _strategyRepository; public StrategyController(IStrategyRepository strategyRepository) { _strategyRepository = strategyRepository; } [HttpPost] [SwaggerOperation(nameof(RegisterStrategy))] [SwaggerResponse(StatusCodes.Status200OK, "OK", typeof(string))] public IActionResult RegisterStrategy(StrategyDetailsDto strategyDetails) { var result = this._strategyRepository.RegisterStrategy(strategyDetails); return new OkObjectResult(new ApiResponse { Success = result != null, StrategyId = result }); } [HttpDelete("{id}")] [SwaggerOperation(nameof(UnregisterStrategy))] [SwaggerResponse(StatusCodes.Status200OK, "OK")] [SwaggerResponse(StatusCodes.Status404NotFound, "Not Found")] public IActionResult UnregisterStrategy(string id) { var result = this._strategyRepository.UnregisterStrategy(id); return new OkObjectResult(new ApiResponse { Success = result, StrategyId = id }); } [HttpGet] [SwaggerOperation(nameof(GetExecutedStrategies))] public IActionResult GetExecutedStrategies() { return new OkObjectResult(this._strategyRepository.GetExecutedStrategies()); } } }
32.122807
88
0.639541
[ "MIT" ]
birajbhow/VRCapital.TradingApi
vr.mock.api/Controllers/StrategyController.cs
1,833
C#
#region Using using Android.App; using Android.Views; using Android.Widget; using System.Collections.Generic; using System.Linq; using Users.Common.Helpers; using Users.Common.Models; #endregion namespace Users.Droid.CustomAdapters { public class UsersListAdapter : BaseAdapter<User> { #region Properties public override User this[int position] => users.ElementAt(position); public override int Count => users.Count(); #endregion #region Fields private IEnumerable<User> users; private Activity context; #endregion #region Constructor public UsersListAdapter(Activity context, IEnumerable<User> users) : base() { Check.IsNull(context); this.context = context; Check.IsNull(users); this.users = users; } #endregion #region Methods (Public) public override View GetView(int position, View convertView, ViewGroup parent) { // Get item to display var user = this[position]; // Try to reuse view before creating the new one var view = convertView; if (view == null) { view = context.LayoutInflater.Inflate( Android.Resource.Layout.SimpleListItem2, null); } // Configure cell properties view.FindViewById<TextView>( Android.Resource.Id.Text1).Text = user.Name; view.FindViewById<TextView>( Android.Resource.Id.Text2).Text = user.Company.Name; return view; } public override long GetItemId(int position) { return this[position].Id; } #endregion } }
24.131579
86
0.571974
[ "MIT" ]
dawidborycki/Users-Xamarin
Users.Droid/CustomAdapters/UsersListAdapter.cs
1,836
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschränkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System; using Squidex.Infrastructure.Commands; namespace Squidex.Domain.Apps.Entities { public abstract class SchemaCommand : SquidexCommand, IAggregateCommand { public Guid SchemaId { get; set; } Guid IAggregateCommand.AggregateId { get { return SchemaId; } } } }
30.304348
78
0.449067
[ "MIT" ]
Imato/squidex
src/Squidex.Domain.Apps.Entities/Schemas/Commands/SchemaCommand.cs
700
C#
//---------------------- // <auto-generated> // Generated by T4FluentNH. // </auto-generated> //---------------------- // ReSharper disable All using System; using System.Collections.Generic; using System.ComponentModel; using System.CodeDom.Compiler; using System.Linq; using System.Linq.Expressions; using System.Reflection; using FluentNHibernate.Automapping; using FluentNHibernate.Mapping; //<EntityProjectItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><EntityFullName>SharperArchitecture.Authentication.Entities.UserSetting</EntityFullName><EntityFilePaths><string>Entities\UserSetting.cs</string></EntityFilePaths><OverrideFilePaths /><GeneratedFilePath>UserSetting.generated.cs</GeneratedFilePath></EntityProjectItem> namespace SharperArchitecture.Authentication.Entities { [GeneratedCode("T4Template", "1.0")] public partial class UserSetting { private void ResetField<T>(ref T field, T value, ref bool synthIsSetField) { field = value; synthIsSetField = false; } } }
35.580645
387
0.721668
[ "MIT" ]
maca88/PowerArhitecture
Source/SharperArchitecture.Authentication/UserSetting.generated.cs
1,103
C#
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Net; using System.Threading; using System.Threading.Tasks; using Octokit.Internal; namespace Octokit { /// <summary> /// A connection for making API requests against URI endpoints. /// Provides type-friendly convenience methods that wrap <see cref="IConnection"/> methods. /// </summary> public class ApiConnection : IApiConnection { readonly IApiPagination _pagination; /// <summary> /// Initializes a new instance of the <see cref="ApiConnection"/> class. /// </summary> /// <param name="connection">A connection for making HTTP requests</param> public ApiConnection(IConnection connection) : this(connection, new ApiPagination()) { } /// <summary> /// Initializes a new instance of the <see cref="ApiConnection"/> class. /// </summary> /// <param name="connection">A connection for making HTTP requests</param> /// <param name="pagination">A pagination for paging API responses</param> protected ApiConnection(IConnection connection, IApiPagination pagination) { Ensure.ArgumentNotNull(connection, nameof(connection)); Ensure.ArgumentNotNull(pagination, nameof(pagination)); Connection = connection; _pagination = pagination; } /// <summary> /// The underlying connection. /// </summary> public IConnection Connection { get; private set; } /// <summary> /// Gets the API resource at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource to get.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <returns>The API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<T> Get<T>(Uri uri) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Get<T>(uri, null); } /// <summary> /// Gets the API resource at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource to get.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <returns>The API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Get<T>(Uri uri, IDictionary<string, string> parameters) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.Get<T>(uri, parameters, null).ConfigureAwait(false); return response.Body; } /// <summary> /// Gets the API resource at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource to get.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns>The API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Get<T>(Uri uri, IDictionary<string, string> parameters, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); var response = await Connection.Get<T>(uri, parameters, accepts).ConfigureAwait(false); return response.Body; } /// <summary> /// Gets the API resource header informationat the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource to get.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns>The API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<IApiResponse<T>> GetApi<T>(Uri uri, IDictionary<string, string> parameters = null, string accepts = null) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.Get<T>(uri, parameters, accepts).ConfigureAwait(false); return response; } /// <summary> /// Gets the HTML content of the API resource at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <returns>The API resource's HTML content.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<string> GetHtml(Uri uri, IDictionary<string, string> parameters) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.GetHtml(uri, parameters).ConfigureAwait(false); return response.Body; } /// <summary> /// Gets the raw content of the API resource at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <returns>The API resource's raw content or <c>null</c> if the <paramref name="uri"/> points to a directory.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<byte[]> GetRaw(Uri uri, IDictionary<string, string> parameters) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.GetRaw(uri, parameters).ConfigureAwait(false); return response.Body; } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri) { return GetAll<T>(uri, ApiOptions.None); } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="options">Options for changing the API response</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, ApiOptions options) { return GetAll<T>(uri, null, null, options); } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, IDictionary<string, string> parameters) { return GetAll<T>(uri, parameters, null, ApiOptions.None); } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, string accepts) { return GetAll<T>(uri, null, accepts, ApiOptions.None); } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <param name="options">Options for changing the API response</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, IDictionary<string, string> parameters, ApiOptions options) { return GetAll<T>(uri, parameters, null, options); } /// <summary> /// Gets all API resources in the list at the specified URI. /// </summary> /// <typeparam name="T">Type of the API resource in the list.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="parameters">Parameters to add to the API request</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns><see cref="IReadOnlyList{T}"/> of the API resources in the list.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, IDictionary<string, string> parameters, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); return _pagination.GetAllPages(async () => await GetPage<T>(uri, parameters, accepts).ConfigureAwait(false), uri); } public Task<IReadOnlyList<T>> GetAll<T>(Uri uri, IDictionary<string, string> parameters, string accepts, ApiOptions options) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(options, nameof(options)); parameters = Pagination.Setup(parameters, options); return _pagination.GetAllPages(async () => await GetPage<T>(uri, parameters, accepts, options).ConfigureAwait(false), uri); } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <param name="uri">URI endpoint to send request to</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns><seealso cref="HttpStatusCode"/>Representing the received HTTP response</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task Post(Uri uri, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Connection.Post(uri, cancellationToken); } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Post<T>(Uri uri, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.Post<T>(uri, cancellationToken).ConfigureAwait(false); return response.Body; } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="data">Object that describes the new API resource; this will be serialized and used as the request's body</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<T> Post<T>(Uri uri, object data, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); return Post<T>(uri, data, null, null, cancellationToken); } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="data">Object that describes the new API resource; this will be serialized and used as the request's body</param> /// <param name="accepts">Accept header to use for the API request</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public Task<T> Post<T>(Uri uri, object data, string accepts, CancellationToken cancellationToken = default) { return Post<T>(uri, data, accepts, null, cancellationToken); } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="data">Object that describes the new API resource; this will be serialized and used as the request's body</param> /// <param name="accepts">Accept header to use for the API request</param> /// <param name="contentType">Content type of the API request</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Post<T>(Uri uri, object data, string accepts, string contentType, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Post<T>(uri, data, accepts, contentType, cancellationToken: cancellationToken).ConfigureAwait(false); return response.Body; } /// <summary> /// Creates a new API resource in the list at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to get</param> /// <param name="data">Object that describes the new API resource; this will be serialized and used as the request's body</param> /// <param name="accepts">Accept header to use for the API request</param> /// <param name="contentType">Content type of the API request</param> /// <param name="twoFactorAuthenticationCode">Two Factor Authentication Code</param> /// <param name="cancellationToken">An optional token to monitor for cancellation requests</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Post<T>(Uri uri, object data, string accepts, string contentType, string twoFactorAuthenticationCode, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); Ensure.ArgumentNotNull(twoFactorAuthenticationCode, nameof(twoFactorAuthenticationCode)); var response = await Connection.Post<T>(uri, data, accepts, contentType, twoFactorAuthenticationCode, cancellationToken).ConfigureAwait(false); return response.Body; } public async Task<T> Post<T>(Uri uri, object data, string accepts, string contentType, TimeSpan timeout, CancellationToken cancellationToken = default) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Post<T>(uri, data, accepts, contentType, timeout, cancellationToken).ConfigureAwait(false); return response.Body; } /// <summary> /// Creates or replaces the API resource at the specified URI /// </summary> /// <param name="uri">URI of the API resource to put</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Put(Uri uri) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Connection.Put(uri); } /// <summary> /// Creates or replaces the API resource at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to create or replace</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Put<T>(Uri uri, object data) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Put<T>(uri, data).ConfigureAwait(false); return response.Body; } /// <summary> /// Creates or replaces the API resource at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to create or replace</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <param name="twoFactorAuthenticationCode">The two-factor authentication code in response to the current user's previous challenge</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Put<T>(Uri uri, object data, string twoFactorAuthenticationCode) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); Ensure.ArgumentNotNullOrEmptyString(twoFactorAuthenticationCode, nameof(twoFactorAuthenticationCode)); var response = await Connection.Put<T>(uri, data, twoFactorAuthenticationCode).ConfigureAwait(false); return response.Body; } /// <summary> /// Creates or replaces the API resource at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to create or replace</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <param name="twoFactorAuthenticationCode">The two-factor authentication code in response to the current user's previous challenge</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns>The created API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Put<T>(Uri uri, object data, string twoFactorAuthenticationCode, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Put<T>(uri, data, twoFactorAuthenticationCode, accepts).ConfigureAwait(false); return response.Body; } /// <summary> /// Updates the API resource at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to patch</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Patch(Uri uri) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Connection.Patch(uri); } /// <summary> /// Updates the API resource at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to patch</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Patch(Uri uri, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); return Connection.Patch(uri, accepts); } /// <summary> /// Updates the API resource at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to update</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <returns>The updated API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Patch<T>(Uri uri, object data) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Patch<T>(uri, data).ConfigureAwait(false); return response.Body; } /// <summary> /// Updates the API resource at the specified URI. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to update</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <param name="accepts">Accept header to use for the API request</param> /// <returns>The updated API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<T> Patch<T>(Uri uri, object data, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); var response = await Connection.Patch<T>(uri, data, accepts).ConfigureAwait(false); return response.Body; } /// <summary> /// Deletes the API object at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to delete</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Delete(Uri uri) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Connection.Delete(uri); } /// <summary> /// Deletes the API object at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to delete</param> /// <param name="twoFactorAuthenticationCode">Two Factor Code</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Delete(Uri uri, string twoFactorAuthenticationCode) { Ensure.ArgumentNotNull(uri, nameof(uri)); return Connection.Delete(uri, twoFactorAuthenticationCode); } /// <summary> /// Deletes the API object at the specified URI. /// </summary> /// <param name="uri">URI of the API resource to delete</param> /// <param name="data">Object that describes the API resource; this will be serialized and used as the request's body</param> /// <returns>A <see cref="Task"/> for the request's execution.</returns> public Task Delete(Uri uri, object data) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); return Connection.Delete(uri, data); } /// <summary> /// Performs an asynchronous HTTP DELETE request that expects an empty response. /// </summary> /// <param name="uri">URI endpoint to send request to</param> /// <param name="data">The object to serialize as the body of the request</param> /// <param name="accepts">Specifies accept response media type</param> /// <returns>The returned <seealso cref="HttpStatusCode"/></returns> public Task Delete(Uri uri, object data, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); return Connection.Delete(uri, data, accepts); } /// <summary> /// Performs an asynchronous HTTP DELETE request. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI endpoint to send request to</param> /// <param name="data">The object to serialize as the body of the request</param> public async Task<T> Delete<T>(Uri uri, object data) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); var response = await Connection.Delete<T>(uri, data).ConfigureAwait(false); return response.Body; } /// <summary> /// Performs an asynchronous HTTP DELETE request. /// Attempts to map the response body to an object of type <typeparamref name="T"/> /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI endpoint to send request to</param> /// <param name="accepts">Specifies accept response media type</param> /// <returns>The returned <seealso cref="HttpStatusCode"/></returns> public async Task<T> Delete<T>(Uri uri, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); var response = await Connection.Delete<T>(uri, null, accepts).ConfigureAwait(false); return response.Body; } /// <summary> /// Performs an asynchronous HTTP DELETE request. /// Attempts to map the response body to an object of type <typeparamref name="T"/> /// </summary> /// <typeparam name="T">The type to map the response to</typeparam> /// <param name="uri">URI endpoint to send request to</param> /// <param name="data">The object to serialize as the body of the request</param> /// <param name="accepts">Specifies accept response media type</param> public async Task<T> Delete<T>(Uri uri, object data, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); Ensure.ArgumentNotNull(data, nameof(data)); Ensure.ArgumentNotNull(accepts, nameof(accepts)); var response = await Connection.Delete<T>(uri, data, accepts).ConfigureAwait(false); return response.Body; } /// <summary> /// Executes a GET to the API object at the specified URI. This operation is appropriate for API calls which /// queue long running calculations and return a collection of a resource. /// It expects the API to respond with an initial 202 Accepted, and queries again until a 200 OK is received. /// It returns an empty collection if it receives a 204 No Content response. /// </summary> /// <typeparam name="T">The API resource's type.</typeparam> /// <param name="uri">URI of the API resource to update</param> /// <param name="cancellationToken">A token used to cancel this potentially long running request</param> /// <returns>The updated API resource.</returns> /// <exception cref="ApiException">Thrown when an API error occurs.</exception> public async Task<IReadOnlyList<T>> GetQueuedOperation<T>(Uri uri, CancellationToken cancellationToken) { while (true) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.GetResponse<IReadOnlyList<T>>(uri, cancellationToken).ConfigureAwait(false); switch (response.HttpResponse.StatusCode) { case HttpStatusCode.Accepted: continue; case HttpStatusCode.NoContent: return new ReadOnlyCollection<T>(new T[] { }); case HttpStatusCode.OK: return response.Body; } throw new ApiException("Queued Operations expect status codes of Accepted, No Content, or OK.", response.HttpResponse.StatusCode); } } async Task<IReadOnlyPagedCollection<T>> GetPage<T>( Uri uri, IDictionary<string, string> parameters, string accepts) { Ensure.ArgumentNotNull(uri, nameof(uri)); var response = await Connection.Get<List<T>>(uri, parameters, accepts).ConfigureAwait(false); return new ReadOnlyPagedCollection<T>( response, nextPageUri => Connection.Get<List<T>>(nextPageUri, parameters, accepts)); } async Task<IReadOnlyPagedCollection<TU>> GetPage<TU>( Uri uri, IDictionary<string, string> parameters, string accepts, ApiOptions options) { Ensure.ArgumentNotNull(uri, nameof(uri)); var connection = Connection; var response = await connection.Get<List<TU>>(uri, parameters, accepts).ConfigureAwait(false); return new ReadOnlyPagedCollection<TU>( response, nextPageUri => { var shouldContinue = Pagination.ShouldContinue( nextPageUri, options); return shouldContinue ? connection.Get<List<TU>>(nextPageUri, parameters, accepts) : null; }); } } }
48.531014
177
0.616946
[ "MIT" ]
fathym-it/octokit.net
Octokit/Http/ApiConnection.cs
32,081
C#
using SuperSocket.JTT.JTTBase.Interface; using SuperSocket.JTT.JTTBase.Model; using System; using System.Buffers; using System.Collections.Generic; using System.Text; namespace SuperSocket.JTT.JTT808 { public class JTT808PackageInfo : IJTTPackageInfo { public ReadOnlySequence<byte> Buffer { get; set; } public ReadOnlyMemory<byte> HeadFlag { get; set; } public IJTTMessageHeader MessageHeader { get; set; } public JTT808MessageHeader JTT808MessageHeader { get { return (JTT808MessageHeader)MessageHeader; } set { MessageHeader = value; } } public IJTTMessageBody MessageBody { get; set; } /// <summary> /// 额外的分包数据 /// </summary> public List<byte[]> SubPackages { get; set; } /// <summary> /// 分包数据是否已完全处理 /// </summary> /// <remarks>为 null时消息包未分包</remarks> public bool? SubPackagesComplete { get; set; } public ReadOnlyMemory<byte> Crc_Code { get; set; } public ReadOnlyMemory<byte> EndFlag { get; set; } public bool Success { get; set; } public byte Step { get; set; } public ApplicationException Exception { get; set; } public byte[] GetBytes() { return Buffer.ToArray(); } } }
33.815789
140
0.628016
[ "Apache-2.0" ]
Lc3586/SuperSocket.JTT
src/Protocols/JTT808/JTT808PackageInfo.cs
1,339
C#
using LagoVista.Core; using LagoVista.Core.Attributes; using LagoVista.Core.Interfaces; using LagoVista.Core.Models; using LagoVista.Core.Validation; using LagoVista.IoT.Deployment.Models.Resources; using LagoVista.IoT.DeviceManagement.Core.Models; using LagoVista.IoT.Pipeline.Admin.Models; using LagoVista.IoT.Pipeline.Models; using System; using System.Collections.Generic; namespace LagoVista.IoT.Deployment.Admin.Models { [EntityDescription(DeploymentAdminDomain.DeploymentAdmin, DeploymentAdminResources.Names.Instance_Title, DeploymentAdminResources.Names.Instance_Help, DeploymentAdminResources.Names.Instance_Description, EntityDescriptionAttribute.EntityTypes.SimpleModel, typeof(DeploymentAdminResources))] public class DeploymentInstance : LagoVista.IoT.DeviceAdmin.Models.IoTModelBase, IOwnedEntity, IValidateable, IKeyedEntity, INoSQLEntity, IFormDescriptor { public DeploymentInstance() { Status = EntityHeader<DeploymentInstanceStates>.Create(DeploymentInstanceStates.Offline); InputCommandSSL = false; InputCommandPort = 80; SettingsValues = new List<AttributeValue>(); CloudProvider = new EntityHeader() { Text = "Digital Ocean", Id = "378463ADF57B4C02B60FEF4DCB30F7E2" }; DataStreams = new List<EntityHeader<DataStream>>(); ApplicationCaches = new List<EntityHeader<ApplicationCache>>(); Integrations = new List<EntityHeader<Integration>>(); DeploymentErrors = new Dictionary<string, string>(); HealthCheckEnabled = true; TimeZone = new EntityHeader() { Id = "UTC", Text = "(UTC) Coordinated Universal Time", }; } public const string Status_Offline = "offline"; public const string Status_DeployingRuntime = "deployingruntime"; public const string Status_CreatingRuntime = "creatingruntime"; public const string Status_StartingRuntime = "startingruntime"; public const string Status_Initializing = "initializing"; public const string Status_Starting = "starting"; public const string Status_Running = "running"; public const string Status_Paused = "paused"; public const string Status_Pausing = "pausing"; public const string Status_Stopping = "stopping"; public const string Status_Stopped = "stopped"; public const string Status_HostRestarting = "hostrestarting"; public const string Status_UpdatingSolution = "updatingsolution"; public const string Status_FatalError = "fatalerror"; public const string Status_FailedToDeploy = "failedtodeploy"; public const string Status_FailedToInitialize = "failedtoinitialize"; public const string Status_FailedToStart = "failedtostart"; public const string Status_HostFailedHealthCheck = "hostfailedhealthcheck"; public const string DeploymentType_Cloud = "cloud"; public const string DeploymentType_Managed = "managed"; public const string DeploymentType_OnPremise = "onpremise"; public const string DeploymentConfiguration_UWP = "uwp"; public const string DeploymentConfiguration_SingleInstance = "singleinstance"; public const string DeploymentConfiguration_Kubernetes = "kubernetes"; public const string DeploymentConfiguration_DockerSwarm = "dockerswarm"; public const string DeploymentQueueType_InMemory = "inmemory"; public const string DeploymentQueueType_Kafka = "kafka"; public const string DeploymentQueueType_RabbitMQ = "rabbitmq"; public const string DeploymentQueueType_ServiceBus = "servicebus"; public const string Deployment_Logging_Local = "local"; public const string Deployment_Logging_Cloud = "cloud"; public const string Deployment_WorkingStorage_Local = "local"; public const string Deployment_WorkingStorage_Cloud = "cloud"; public const string Deployment_MessageArchiveStorage_FileSystem = "local"; public const string Deployment_MessageArchiveStorage_Cloud = "cloud"; public const string Deployment_MessageArchiveStorage_Elastic = "elastic"; public const string NuvIoTEdition_App = "app"; public const string NuvIoTEdition_Container = "container"; public const string NuvIoTEdition_Cluster = "cluster"; public string DatabaseName { get; set; } public string EntityType { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Common_Key, HelpResource: DeploymentAdminResources.Names.Common_Key_Help, FieldType: FieldTypes.Key, RegExValidationMessageResource: DeploymentAdminResources.Names.Common_Key_Validation, ResourceType: typeof(DeploymentAdminResources), IsRequired: true)] public String Key { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_IsDeployed, HelpResource: DeploymentAdminResources.Names.Instance_IsDeployed_Help, FieldType: FieldTypes.Bool, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public bool IsDeployed { get; set; } private EntityHeader<DeploymentInstanceStates> _status; [FormField(LabelResource: DeploymentAdminResources.Names.Instance_Status, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public EntityHeader<DeploymentInstanceStates> Status { get { return _status; } set { _status = value; StatusTimeStamp = DateTime.UtcNow.ToJSONString(); } } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_TimeZone, IsRequired:true, FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: true)] public EntityHeader TimeZone { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_StatusTimeStamp, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string StatusTimeStamp { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_StatusDetails, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string StatusDetails{ get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_Host, HelpResource: DeploymentAdminResources.Names.Instance_Host_Help, WaterMark: DeploymentAdminResources.Names.Instance_Host_Watermark, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources))] public EntityHeader<DeploymentHost> Host { get; set; } /// <summary> /// This is the primary host that will be used as an access point into the instance, if the instance consists of many machines, this will manage all the other hosts for a clustered version of an instance. /// </summary> EntityHeader<DeploymentHost> _primaryHost; [FormField(LabelResource: DeploymentAdminResources.Names.Instance_Host, HelpResource: DeploymentAdminResources.Names.Instance_Host_Help, WaterMark: DeploymentAdminResources.Names.Instance_Host_Watermark, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources))] public EntityHeader<DeploymentHost> PrimaryHost { get { if (EntityHeader.IsNullOrEmpty(_primaryHost)) { _primaryHost = Host; return Host; } else { return _primaryHost; } } set { _primaryHost = value; } } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_DataStreams, FieldType: FieldTypes.ChildItem, ResourceType: typeof(DeploymentAdminResources))] public List<EntityHeader<DataStream>> DataStreams { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_Caches, FieldType: FieldTypes.ChildItem, ResourceType: typeof(DeploymentAdminResources))] public List<EntityHeader<ApplicationCache>> ApplicationCaches { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Common_IsPublic, FieldType: FieldTypes.Bool, ResourceType: typeof(DeploymentAdminResources))] public bool IsPublic { get; set; } public EntityHeader OwnerOrganization { get; set; } public EntityHeader OwnerUser { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_Integrations, FieldType: FieldTypes.ChildItem, ResourceType: typeof(DeploymentAdminResources))] public List<EntityHeader<Integration>> Integrations { get; set; } public EntityHeader ToEntityHeader() { return new EntityHeader() { Id = Id, Text = Name, }; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_UpSince, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsRequired: false, IsUserEditable: false)] public string UpSince { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_Subscription, WaterMark: DeploymentAdminResources.Names.Host_SubscriptionSelect, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: true, IsRequired: true)] public EntityHeader Subscription { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_Size, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Host_SelectSize)] public EntityHeader Size { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_DeviceRepo, HelpResource: DeploymentAdminResources.Names.Instance_DeviceRepo_Help, WaterMark: DeploymentAdminResources.Names.Instance_DeviceRepo_Select, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), IsRequired: true)] public EntityHeader<DeviceRepository> DeviceRepository { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_SettingsValues, FieldType: FieldTypes.ChildList, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public List<AttributeValue> SettingsValues { get; set; } public Dictionary<string, object> PropertyBag { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_Version, HelpResource: DeploymentAdminResources.Names.DeploymentInstance_Version_Help, WaterMark: DeploymentAdminResources.Names.DeploymentInstance_Version_Select, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), IsRequired: false)] public EntityHeader Version { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_ContainerRepository, WaterMark: DeploymentAdminResources.Names.Host_ContainerRepository_Select, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources))] public EntityHeader ContainerRepository { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_HealthCheckEnabled, HelpResource: DeploymentAdminResources.Names.DeploymentInstance_HealthCheckEnabled, FieldType: FieldTypes.CheckBox, ResourceType: typeof(DeploymentAdminResources))] public bool HealthCheckEnabled { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_ContainerTag, WaterMark: DeploymentAdminResources.Names.Host_ContainerTag_Select, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources))] public EntityHeader ContainerTag { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_SharedAccessKey1, HelpResource: DeploymentAdminResources.Names.DeploymentInstance_SharedAccessKey_Help, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string SharedAccessKey1 { get; set; } public string SharedAccessKeySecureId1 { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentInstance_SharedAccessKey2, HelpResource: DeploymentAdminResources.Names.DeploymentInstance_SharedAccessKey_Help, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string SharedAccessKey2 { get; set; } public string SharedAccessKeySecureId2 { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_LastPing, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string LastPing { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_DNSName, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false)] public string DnsHostName { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_InputCommandSSL, FieldType: FieldTypes.CheckBox, HelpResource: DeploymentAdminResources.Names.Instance_InputCommandSSL_Help, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: true)] public bool InputCommandSSL { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_InputCommandPort, FieldType: FieldTypes.Integer, HelpResource: DeploymentAdminResources.Names.Instance_InputCommandPort_Help, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: true)] public int InputCommandPort { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Host_CloudProvider, HelpResource: DeploymentAdminResources.Names.Host_CloudProvider_Help, FieldType: FieldTypes.Text, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: false, IsRequired: true)] public EntityHeader CloudProvider { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_PrimaryCacheType, EnumType: (typeof(CacheTypes)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Instance_PrimaryCacheType_Select, IsRequired: true, IsUserEditable: true)] public EntityHeader<CacheTypes> PrimaryCacheType { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_PrimaryCache, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Instance_PrimaryCache_Select, IsRequired: false, IsUserEditable: true)] public EntityHeader<ApplicationCache> PrimaryCache { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_DeploymentType, EnumType: (typeof(DeploymentTypes)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Instance_DeploymentType_Select, IsRequired: true, IsUserEditable: true)] public EntityHeader<DeploymentTypes> DeploymentType { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_DeploymentConfiguration, EnumType: (typeof(DeploymentConfigurations)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Instance_DeploymentConfiguration_Select, IsRequired: true, IsUserEditable: true)] public EntityHeader<DeploymentConfigurations> DeploymentConfiguration { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.NuvIoT_Edition, EnumType: (typeof(NuvIoTEditions)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.NuvIoTEdition_Select, IsRequired: true, IsUserEditable: true)] public EntityHeader<NuvIoTEditions> NuvIoTEdition { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.WorkingStorage, EnumType: (typeof(WorkingStorage)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.WorkingStorage_Select, IsUserEditable: true)] public EntityHeader<WorkingStorage> WorkingStorage { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.DeploymentQueueType_QueueTechnology, EnumType: (typeof(QueueTypes)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.DeploymentQueueType_QueueTechnology_Select, HelpResource: DeploymentAdminResources.Names.DeploymentQueueType_QueueTechnology_Help, IsRequired: true, IsUserEditable: true)] public EntityHeader<QueueTypes> QueueType { get; set; } public Dictionary<string, string> DeploymentErrors { get; set; } public EntityHeader<IConnectionSettings> QueueConnection { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Deployment_Logging, EnumType: (typeof(LogStorage)), FieldType: FieldTypes.Picker, ResourceType: typeof(DeploymentAdminResources), WaterMark: DeploymentAdminResources.Names.Deployment_Logging_Select, HelpResource: DeploymentAdminResources.Names.Deployment_Logging_Help, IsRequired: true, IsUserEditable: true)] public EntityHeader<LogStorage> LogStorage { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_DebugMode, HelpResource: DeploymentAdminResources.Names.Instance_DebugMode_Help, FieldType: FieldTypes.CheckBox, ResourceType: typeof(DeploymentAdminResources), IsUserEditable: true)] public bool DebugMode { get; set; } // we never want to delete an instance since billing records are tied to it. public bool IsArchived { get; set; } [FormField(LabelResource: DeploymentAdminResources.Names.Instance_Solution, WaterMark: DeploymentAdminResources.Names.Instance_Solution_Select, FieldType: FieldTypes.EntityHeaderPicker, ResourceType: typeof(DeploymentAdminResources), IsRequired: true)] public EntityHeader<Solution> Solution { get; set; } public DeploymentInstanceSummary CreateSummary() { var summary = new DeploymentInstanceSummary() { Description = Description, Name = Name, Key = Key, Id = Id, IsPublic = IsPublic, IsDeployed = IsDeployed, Status = Status, NuvIoTEdition = EntityHeader.IsNullOrEmpty(NuvIoTEdition) ? "???" : NuvIoTEdition.Text, DeploymentType = EntityHeader.IsNullOrEmpty(DeploymentType) ? "???" : DeploymentType.Text, WorkingStorage = EntityHeader.IsNullOrEmpty(WorkingStorage) ? "???" : WorkingStorage.Text, QueueType = EntityHeader.IsNullOrEmpty(QueueType) ? "???" : QueueType.Text, OrgId = OwnerOrganization.Id, OrgName = OwnerOrganization.Text, DeviceRepoId = DeviceRepository?.Id, DeviceRepoName = DeviceRepository?.Text }; if (EntityHeader.IsNullOrEmpty(DeviceRepository)) { summary.DeviceRepoId = DeviceRepository.Id; summary.DeviceRepoName = DeviceRepository.Text; }; return summary; } public List<string> GetFormFields() { return new List<string>() { nameof(DeploymentInstance.Name), nameof(DeploymentInstance.Key), nameof(DeploymentInstance.DeploymentType), nameof(DeploymentInstance.DeploymentConfiguration), nameof(DeploymentInstance.DnsHostName), nameof(DeploymentInstance.Status), nameof(DeploymentInstance.IsDeployed), nameof(DeploymentInstance.Subscription), nameof(DeploymentInstance.Size), nameof(DeploymentInstance.CloudProvider), nameof(DeploymentInstance.ContainerRepository), nameof(DeploymentInstance.ContainerTag), nameof(DeploymentInstance.DeviceRepository), nameof(DeploymentInstance.Solution), }; } [CustomValidator] public void Validate(ValidationResult result, Actions action) { if (action == Actions.Create) { if (String.IsNullOrEmpty(SharedAccessKey1)) { result.AddSystemError("Upon creation, Shared Access Key 1 is Required."); } if (String.IsNullOrEmpty(SharedAccessKey2)) { result.AddSystemError("Upon creation, Shared Access Key 2 is Required."); } } if (NuvIoTEdition?.Value == NuvIoTEditions.Container) { if (EntityHeader.IsNullOrEmpty(ContainerRepository)) { result.AddSystemError("Container Repository Is Required for NuvIoT Container Editions."); } if (EntityHeader.IsNullOrEmpty(ContainerTag)) { result.AddSystemError("Container Tag Is Required for NuvIoT Container Editions."); } if (EntityHeader.IsNullOrEmpty(Size)) { result.AddSystemError("Image Size is a Required FIeld."); } if (EntityHeader.IsNullOrEmpty(WorkingStorage)) { result.AddSystemError("Image Size is a Required FIeld."); } } else if (NuvIoTEdition?.Value == NuvIoTEditions.Cluster) { if (EntityHeader.IsNullOrEmpty(WorkingStorage)) { result.AddSystemError("Image Size is a Required FIeld."); } } if (action == Actions.Update) { if (String.IsNullOrEmpty(SharedAccessKey1) && String.IsNullOrEmpty(SharedAccessKeySecureId1)) { result.AddSystemError("Upon creation, Shared Access Key 1 or Shared Access Secure Id 1 is Required."); } if (String.IsNullOrEmpty(SharedAccessKey2) && String.IsNullOrEmpty(SharedAccessKeySecureId2)) { result.AddSystemError("Upon updates, Shared Access Key 2 or Shared Access Secure Id 2 is Required."); } } if (!EntityHeader.IsNullOrEmpty(PrimaryCacheType) && PrimaryCacheType.Value == CacheTypes.Redis) { if (EntityHeader.IsNullOrEmpty(PrimaryCache)) { result.AddSystemError("Must provide primary cache type."); } } } } public class DeploymentInstanceSummary : SummaryData { public EntityHeader<DeploymentInstanceStates> Status { get; set; } public bool IsDeployed { get; set; } public string NuvIoTEdition { get; set; } public string DeploymentType { get; set; } public string WorkingStorage { get; set; } public string QueueType { get; set; } public string DeviceRepoId { get; set; } public string DeviceRepoName { get; set; } public string OrgName { get; set; } public string OrgId { get; set; } } }
59.72
357
0.715296
[ "MIT" ]
LagoVista/Deployments
src/LagoVista.IoT.Deployment.Models/DeploymentInstance.cs
23,890
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RosettaCode.RankingMethods { public class StandardScoreToRankTransformer : IScoreToRankTransformer { public List<IHasRank> ComputeRank( List<IHasScore> itemsWithScore ) { if ( itemsWithScore == null || !itemsWithScore.Any() ) return new List<IHasRank>(); //keeping track of what is the next rank that needs to be assigned decimal nextRank = 1m; //slight optimization to prevent re-allocation of the underlying array List<IHasRank> output = new List<IHasRank>( itemsWithScore.Count ); //this is the item we are comparing against //it changes along the loop as differently scored items are found //initially, this is the first item IHasScore referenceItem = itemsWithScore[ 0 ]; //keeping track of the current set of tie / equally scored items are are traversing (acts sort-of like a buffer) //initially this contains the first item List<IHasScore> currentTieItemSet = new List<IHasScore>() { referenceItem }; for ( int i = 1; i < itemsWithScore.Count; i++ ) { //fetch item that needs to be compared IHasScore toCompare = itemsWithScore[ i ]; //found a different score - empty buffer into the output ranked items list and: //- update the reference item //- increase the next assignable rank //- add the current item to the tie-item buffer if ( toCompare.Score != referenceItem.Score ) { AddOutputItems( currentTieItemSet, output, ref nextRank ); currentTieItemSet = new List<IHasScore>() { toCompare }; referenceItem = toCompare; } else //equal score; just add it to buffer an move on currentTieItemSet.Add( toCompare ); } //if the list ends with at least two equally scored items, we need to empty the buffer if ( currentTieItemSet.Any() ) AddOutputItems( currentTieItemSet, output, ref nextRank ); return output; } private void AddOutputItems( List<IHasScore> currentTieItemSet, List<IHasRank> output, ref decimal nextRank ) { foreach ( IHasScore it in currentTieItemSet ) output.Add( new ItemWithRank( it.Item, it.Score, nextRank ) ); nextRank += currentTieItemSet.Count; } public string Name { get { return "Standard [1224]"; } } } }
35.84
121
0.61756
[ "MIT" ]
alexboia/Code-Fun
Rosetta-Code/Ranking-Methods/C_Sharp/RosettaCode.RankingMethods/RosettaCode.RankingMethods/Transformers/StandardScoreToRankTransformer.cs
2,690
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("01. Debit Card Number")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("01. Debit Card Number")] [assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e99645d9-ad9b-491d-996f-582bb9a4d4a7")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.108108
84
0.74539
[ "MIT" ]
bobo4aces/02.SoftUni-TechModule
01. PF - 98. Labs/01.23.2018/01. Debit Card Number/Properties/AssemblyInfo.cs
1,413
C#
using System; using System.Collections.Immutable; using System.IO; using AngleSharp; using AngleSharp.Html; using AngleSharp.Html.Dom; using AngleSharp.Html.Parser; using Markdig.Syntax.Inlines; namespace ITGlobal.MarkDocs.Format.Impl.Extensions.IncludeHtml { internal sealed class HtmlImageRenderer : IImageRenderer { private static readonly ImmutableHashSet<string> SupportedFileExtensions = ImmutableHashSet.CreateRange( StringComparer.OrdinalIgnoreCase, new[] { ".html", ".htm" } ); private static readonly IMarkupFormatter MarkupFormatter = new PrettyMarkupFormatter(); public IRenderable TryCreateRenderable(IPageReadContext ctx, LinkInline obj) { var u = new Uri(obj.Url, UriKind.RelativeOrAbsolute); if (u.IsAbsoluteUri) { return null; } var url = obj.Url; url = ctx.NormalizeResourceUrl(url); var ext = Path.GetExtension(obj.Url); if (!SupportedFileExtensions.Contains(ext)) { return null; } if (!ctx.TryResolveFileResourcePath(url, out var path)) { ctx.Error($"Unable to find file \"{obj.Url}\"", obj.Line); return null; } var filename = Path.Combine( Path.GetDirectoryName(url), Path.ChangeExtension(Path.GetFileName(url), ".html") ); var markup = ReadHtml(path); ctx.CreateAttachment(markup, filename, new HtmlAssetContent(markup), out var asset, out _); return new HtmlRenderable(asset); } private static string ReadHtml(string path) { var parser = new HtmlParser(); IHtmlDocument html; using (var file = File.OpenRead(path)) { html = parser.ParseDocument(file); } string markup; using (var writer = new StringWriter()) { html.ToHtml(writer, MarkupFormatter); markup = writer.ToString(); } html = parser.ParseDocument(markup); markup = html.Body.InnerHtml; return markup; } } }
29.772152
103
0.558248
[ "MIT" ]
ITGlobal/MarkDocs
src/ITGlobal.MarkDocs.Markdown/Format/Impl/Extensions/IncludeHtml/HtmlImageRenderer.cs
2,352
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Extensions.Logging.Testing; using Moq; using Xunit; namespace Microsoft.Extensions.Logging.Test { public class LoggerFactoryExtensionsTest { [Fact] public void LoggerFactoryCreateOfT_CallsCreateWithCorrectName() { // Arrange var expected = typeof(TestType).FullName; var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger( It.IsAny<string>())) .Returns(new Mock<ILogger>().Object); // Act factory.Object.CreateLogger<TestType>(); // Assert factory.Verify(f => f.CreateLogger(expected)); } [Fact] public void LoggerFactoryCreateOfT_SingleGeneric_CallsCreateWithCorrectName() { // Arrange var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger(It.Is<string>( x => x.Equals("Microsoft.Extensions.Logging.Test.GenericClass<Microsoft.Extensions.Logging.Test.TestType>")))) .Returns(new Mock<ILogger>().Object); var logger = factory.Object.CreateLogger<GenericClass<TestType>>(); // Assert Assert.NotNull(logger); } [Fact] public void LoggerFactoryCreateOfT_TwoGenerics_CallsCreateWithCorrectName() { // Arrange var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger(It.Is<string>( x => x.Equals("Microsoft.Extensions.Logging.Test.GenericClass<Microsoft.Extensions.Logging.Test.TestType, Microsoft.Extensions.Logging.Test.SecondTestType>")))) .Returns(new Mock<ILogger>().Object); var logger = factory.Object.CreateLogger<GenericClass<TestType, SecondTestType>>(); // Assert Assert.NotNull(logger); } [Fact] public void CreatesLoggerName_WithoutGenericTypeArgumentsInformation() { // Arrange var fullName = typeof(GenericClass<string>).GetGenericTypeDefinition().FullName; var fullNameWithoutBacktick = fullName.Substring(0, fullName.IndexOf('`')); var testSink = new TestSink(); var factory = new TestLoggerFactory(testSink, enabled: true); // Act var logger = factory.CreateLogger<GenericClass<string>>(); logger.LogInformation("test message"); // Assert var sinkWrite = Assert.Single(testSink.Writes); Assert.Equal(fullNameWithoutBacktick, sinkWrite.LoggerName); } [Fact] public void CreatesLoggerName_OnNestedGenericType_CreatesWithoutGenericTypeArgumentsInformation() { // Arrange var fullName = typeof(GenericClass<GenericClass<string>>).GetGenericTypeDefinition().FullName; var fullNameWithoutBacktick = fullName.Substring(0, fullName.IndexOf('`')); var testSink = new TestSink(); var factory = new TestLoggerFactory(testSink, enabled: true); // Act var logger = factory.CreateLogger<GenericClass<GenericClass<string>>>(); logger.LogInformation("test message"); // Assert var sinkWrite = Assert.Single(testSink.Writes); Assert.Equal(fullNameWithoutBacktick, sinkWrite.LoggerName); } [Fact] public void CreatesLoggerName_OnMultipleTypeArgumentGenericType_CreatesWithoutGenericTypeArgumentsInformation() { // Arrange var fullName = typeof(GenericClass<string, string>).GetGenericTypeDefinition().FullName; var fullNameWithoutBacktick = fullName.Substring(0, fullName.IndexOf('`')); var testSink = new TestSink(); var factory = new TestLoggerFactory(testSink, enabled: true); // Act var logger = factory.CreateLogger<GenericClass<string, string>>(); logger.LogInformation("test message"); // Assert var sinkWrite = Assert.Single(testSink.Writes); Assert.Equal(fullNameWithoutBacktick, sinkWrite.LoggerName); } [Fact] public void LoggerFactoryCreate_CallsCreateWithCorrectName() { // Arrange var expected = typeof(TestType).FullName; var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger( It.IsAny<string>())) .Returns(new Mock<ILogger>().Object); // Act factory.Object.CreateLogger(typeof(TestType)); // Assert factory.Verify(f => f.CreateLogger(expected)); } [Fact] public void LoggerFactoryCreate_SingleGeneric_CallsCreateWithCorrectName() { // Arrange var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger(It.Is<string>( x => x.Equals("Microsoft.Extensions.Logging.Test.GenericClass")))) .Returns(new Mock<ILogger>().Object); var logger = factory.Object.CreateLogger(typeof(GenericClass<TestType>)); // Assert Assert.NotNull(logger); } [Fact] public void LoggerFactoryCreate_TwoGenerics_CallsCreateWithCorrectName() { // Arrange var factory = new Mock<ILoggerFactory>(); factory.Setup(f => f.CreateLogger(It.Is<string>( x => x.Equals("Microsoft.Extensions.Logging.Test.GenericClass")))) .Returns(new Mock<ILogger>().Object); var logger = factory.Object.CreateLogger(typeof(GenericClass<TestType, SecondTestType>)); // Assert Assert.NotNull(logger); } } internal class TestType { // intentionally holds nothing } internal class SecondTestType { // intentionally holds nothing } internal class GenericClass<X, Y> where X : class where Y : class { // intentionally holds nothing } internal class GenericClass<X> where X : class { // intentionally holds nothing } }
34.854054
176
0.607165
[ "MIT" ]
ARhj/runtime
src/libraries/Microsoft.Extensions.Logging/tests/Common/LoggerFactoryExtensionsTest.cs
6,448
C#
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Generated code. DO NOT EDIT! namespace Google.Apis.GoogleAnalyticsAdmin.v1alpha { /// <summary>The GoogleAnalyticsAdmin Service.</summary> public class GoogleAnalyticsAdminService : Google.Apis.Services.BaseClientService { /// <summary>The API version.</summary> public const string Version = "v1alpha"; /// <summary>The discovery version used to generate this service.</summary> public static Google.Apis.Discovery.DiscoveryVersion DiscoveryVersionUsed = Google.Apis.Discovery.DiscoveryVersion.Version_1_0; /// <summary>Constructs a new service.</summary> public GoogleAnalyticsAdminService() : this(new Google.Apis.Services.BaseClientService.Initializer()) { } /// <summary>Constructs a new service.</summary> /// <param name="initializer">The service initializer.</param> public GoogleAnalyticsAdminService(Google.Apis.Services.BaseClientService.Initializer initializer) : base(initializer) { AccountSummaries = new AccountSummariesResource(this); Accounts = new AccountsResource(this); Properties = new PropertiesResource(this); } /// <summary>Gets the service supported features.</summary> public override System.Collections.Generic.IList<string> Features => new string[0]; /// <summary>Gets the service name.</summary> public override string Name => "analyticsadmin"; /// <summary>Gets the service base URI.</summary> public override string BaseUri => #if NETSTANDARD1_3 || NETSTANDARD2_0 || NET45 BaseUriOverride ?? "https://analyticsadmin.googleapis.com/"; #else "https://analyticsadmin.googleapis.com/"; #endif /// <summary>Gets the service base path.</summary> public override string BasePath => ""; #if !NET40 /// <summary>Gets the batch base URI; <c>null</c> if unspecified.</summary> public override string BatchUri => "https://analyticsadmin.googleapis.com/batch"; /// <summary>Gets the batch base path; <c>null</c> if unspecified.</summary> public override string BatchPath => "batch"; #endif /// <summary>Available OAuth 2.0 scopes for use with the Google Analytics Admin API.</summary> public class Scope { /// <summary>Edit Google Analytics management entities</summary> public static string AnalyticsEdit = "https://www.googleapis.com/auth/analytics.edit"; /// <summary>Manage Google Analytics Account users by email address</summary> public static string AnalyticsManageUsers = "https://www.googleapis.com/auth/analytics.manage.users"; /// <summary>View Google Analytics user permissions</summary> public static string AnalyticsManageUsersReadonly = "https://www.googleapis.com/auth/analytics.manage.users.readonly"; /// <summary>See and download your Google Analytics data</summary> public static string AnalyticsReadonly = "https://www.googleapis.com/auth/analytics.readonly"; } /// <summary>Available OAuth 2.0 scope constants for use with the Google Analytics Admin API.</summary> public static class ScopeConstants { /// <summary>Edit Google Analytics management entities</summary> public const string AnalyticsEdit = "https://www.googleapis.com/auth/analytics.edit"; /// <summary>Manage Google Analytics Account users by email address</summary> public const string AnalyticsManageUsers = "https://www.googleapis.com/auth/analytics.manage.users"; /// <summary>View Google Analytics user permissions</summary> public const string AnalyticsManageUsersReadonly = "https://www.googleapis.com/auth/analytics.manage.users.readonly"; /// <summary>See and download your Google Analytics data</summary> public const string AnalyticsReadonly = "https://www.googleapis.com/auth/analytics.readonly"; } /// <summary>Gets the AccountSummaries resource.</summary> public virtual AccountSummariesResource AccountSummaries { get; } /// <summary>Gets the Accounts resource.</summary> public virtual AccountsResource Accounts { get; } /// <summary>Gets the Properties resource.</summary> public virtual PropertiesResource Properties { get; } } /// <summary>A base abstract class for GoogleAnalyticsAdmin requests.</summary> public abstract class GoogleAnalyticsAdminBaseServiceRequest<TResponse> : Google.Apis.Requests.ClientServiceRequest<TResponse> { /// <summary>Constructs a new GoogleAnalyticsAdminBaseServiceRequest instance.</summary> protected GoogleAnalyticsAdminBaseServiceRequest(Google.Apis.Services.IClientService service) : base(service) { } /// <summary>V1 error format.</summary> [Google.Apis.Util.RequestParameterAttribute("$.xgafv", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<XgafvEnum> Xgafv { get; set; } /// <summary>V1 error format.</summary> public enum XgafvEnum { /// <summary>v1 error format</summary> [Google.Apis.Util.StringValueAttribute("1")] Value1 = 0, /// <summary>v2 error format</summary> [Google.Apis.Util.StringValueAttribute("2")] Value2 = 1, } /// <summary>OAuth access token.</summary> [Google.Apis.Util.RequestParameterAttribute("access_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string AccessToken { get; set; } /// <summary>Data format for response.</summary> [Google.Apis.Util.RequestParameterAttribute("alt", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<AltEnum> Alt { get; set; } /// <summary>Data format for response.</summary> public enum AltEnum { /// <summary>Responses with Content-Type of application/json</summary> [Google.Apis.Util.StringValueAttribute("json")] Json = 0, /// <summary>Media download with context-dependent Content-Type</summary> [Google.Apis.Util.StringValueAttribute("media")] Media = 1, /// <summary>Responses with Content-Type of application/x-protobuf</summary> [Google.Apis.Util.StringValueAttribute("proto")] Proto = 2, } /// <summary>JSONP</summary> [Google.Apis.Util.RequestParameterAttribute("callback", Google.Apis.Util.RequestParameterType.Query)] public virtual string Callback { get; set; } /// <summary>Selector specifying which fields to include in a partial response.</summary> [Google.Apis.Util.RequestParameterAttribute("fields", Google.Apis.Util.RequestParameterType.Query)] public virtual string Fields { get; set; } /// <summary> /// API key. Your API key identifies your project and provides you with API access, quota, and reports. Required /// unless you provide an OAuth 2.0 token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("key", Google.Apis.Util.RequestParameterType.Query)] public virtual string Key { get; set; } /// <summary>OAuth 2.0 token for the current user.</summary> [Google.Apis.Util.RequestParameterAttribute("oauth_token", Google.Apis.Util.RequestParameterType.Query)] public virtual string OauthToken { get; set; } /// <summary>Returns response with indentations and line breaks.</summary> [Google.Apis.Util.RequestParameterAttribute("prettyPrint", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> PrettyPrint { get; set; } /// <summary> /// Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a /// user, but should not exceed 40 characters. /// </summary> [Google.Apis.Util.RequestParameterAttribute("quotaUser", Google.Apis.Util.RequestParameterType.Query)] public virtual string QuotaUser { get; set; } /// <summary>Legacy upload protocol for media (e.g. "media", "multipart").</summary> [Google.Apis.Util.RequestParameterAttribute("uploadType", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadType { get; set; } /// <summary>Upload protocol for media (e.g. "raw", "multipart").</summary> [Google.Apis.Util.RequestParameterAttribute("upload_protocol", Google.Apis.Util.RequestParameterType.Query)] public virtual string UploadProtocol { get; set; } /// <summary>Initializes GoogleAnalyticsAdmin parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("$.xgafv", new Google.Apis.Discovery.Parameter { Name = "$.xgafv", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("access_token", new Google.Apis.Discovery.Parameter { Name = "access_token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("alt", new Google.Apis.Discovery.Parameter { Name = "alt", IsRequired = false, ParameterType = "query", DefaultValue = "json", Pattern = null, }); RequestParameters.Add("callback", new Google.Apis.Discovery.Parameter { Name = "callback", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("fields", new Google.Apis.Discovery.Parameter { Name = "fields", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("key", new Google.Apis.Discovery.Parameter { Name = "key", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("oauth_token", new Google.Apis.Discovery.Parameter { Name = "oauth_token", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("prettyPrint", new Google.Apis.Discovery.Parameter { Name = "prettyPrint", IsRequired = false, ParameterType = "query", DefaultValue = "true", Pattern = null, }); RequestParameters.Add("quotaUser", new Google.Apis.Discovery.Parameter { Name = "quotaUser", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("uploadType", new Google.Apis.Discovery.Parameter { Name = "uploadType", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("upload_protocol", new Google.Apis.Discovery.Parameter { Name = "upload_protocol", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>The "accountSummaries" collection of methods.</summary> public class AccountSummariesResource { private const string Resource = "accountSummaries"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AccountSummariesResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Returns summaries of all accounts accessible by the caller.</summary> public virtual ListRequest List() { return new ListRequest(service); } /// <summary>Returns summaries of all accounts accessible by the caller.</summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListAccountSummariesResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service) : base(service) { InitParameters(); } /// <summary> /// The maximum number of AccountSummary resources to return. The service may return fewer than this value, /// even if there are additional pages. If unspecified, at most 50 resources will be returned. The maximum /// value is 200; (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListAccountSummaries` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListAccountSummaries` must match the /// call that provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/accountSummaries"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>The "accounts" collection of methods.</summary> public class AccountsResource { private const string Resource = "accounts"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AccountsResource(Google.Apis.Services.IClientService service) { this.service = service; UserLinks = new UserLinksResource(service); } /// <summary>Gets the UserLinks resource.</summary> public virtual UserLinksResource UserLinks { get; } /// <summary>The "userLinks" collection of methods.</summary> public class UserLinksResource { private const string Resource = "userLinks"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public UserLinksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary> /// Lists all user links on an account or property, including implicit ones that come from effective /// permissions granted by groups or organization admin roles. If a returned user link does not have direct /// permissions, they cannot be removed from the account or property directly with the DeleteUserLink /// command. They have to be removed from the group/etc that gives them permissions, which is currently only /// usable/discoverable in the GA or GMP UIs. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual AuditRequest Audit(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body, string parent) { return new AuditRequest(service, body, parent); } /// <summary> /// Lists all user links on an account or property, including implicit ones that come from effective /// permissions granted by groups or organization admin roles. If a returned user link does not have direct /// permissions, they cannot be removed from the account or property directly with the DeleteUserLink /// command. They have to be removed from the group/etc that gives them permissions, which is currently only /// usable/discoverable in the GA or GMP UIs. /// </summary> public class AuditRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse> { /// <summary>Constructs a new Audit request.</summary> public AuditRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "audit"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:audit"; /// <summary>Initializes Audit parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary> /// Creates information about multiple users' links to an account or property. This method is transactional. /// If any UserLink cannot be created, none of the UserLinks will be created. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. This field is required. /// The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example /// format: accounts/1234 /// </param> public virtual BatchCreateRequest BatchCreate(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body, string parent) { return new BatchCreateRequest(service, body, parent); } /// <summary> /// Creates information about multiple users' links to an account or property. This method is transactional. /// If any UserLink cannot be created, none of the UserLinks will be created. /// </summary> public class BatchCreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse> { /// <summary>Constructs a new BatchCreate request.</summary> public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. This field is /// required. The parent field in the CreateUserLinkRequest messages must either be empty or match this /// field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchCreate"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchCreate"; /// <summary>Initializes BatchCreate parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary>Deletes information about multiple users' links to an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent of all values /// for user link names to delete must match this field. Example format: accounts/1234 /// </param> public virtual BatchDeleteRequest BatchDelete(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body, string parent) { return new BatchDeleteRequest(service, body, parent); } /// <summary>Deletes information about multiple users' links to an account or property.</summary> public class BatchDeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new BatchDelete request.</summary> public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent of all /// values for user link names to delete must match this field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchDelete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchDelete"; /// <summary>Initializes BatchDelete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary>Gets information about multiple users' links to an account or property.</summary> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent of all provided /// values for the 'names' field must match this field. Example format: accounts/1234 /// </param> public virtual BatchGetRequest BatchGet(string parent) { return new BatchGetRequest(service, parent); } /// <summary>Gets information about multiple users' links to an account or property.</summary> public class BatchGetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse> { /// <summary>Constructs a new BatchGet request.</summary> public BatchGetRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent of all /// provided values for the 'names' field must match this field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in /// a batch. Format: accounts/{accountId}/userLinks/{userLinkId} /// </summary> [Google.Apis.Util.RequestParameterAttribute("names", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Names { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "batchGet"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchGet"; /// <summary>Initializes BatchGet parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); RequestParameters.Add("names", new Google.Apis.Discovery.Parameter { Name = "names", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates information about multiple users' links to an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent field in the /// UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234 /// </param> public virtual BatchUpdateRequest BatchUpdate(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body, string parent) { return new BatchUpdateRequest(service, body, parent); } /// <summary>Updates information about multiple users' links to an account or property.</summary> public class BatchUpdateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse> { /// <summary>Constructs a new BatchUpdate request.</summary> public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent field in /// the UpdateUserLinkRequest messages must either be empty or match this field. Example format: /// accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchUpdate"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchUpdate"; /// <summary>Initializes BatchUpdate parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary> /// Creates a user link on an account or property. If the user with the specified email already has /// permissions on the account or property, then the user's existing permissions will be unioned with the /// permissions specified in the new UserLink. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string parent) { return new CreateRequest(service, body, parent); } /// <summary> /// Creates a user link on an account or property. If the user with the specified email already has /// permissions on the account or property, then the user's existing permissions will be unioned with the /// permissions specified in the new UserLink. /// </summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// Optional. If set, then email the new user notifying them that they've been granted permissions to /// the resource. /// </summary> [Google.Apis.Util.RequestParameterAttribute("notifyNewUser", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> NotifyNewUser { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); RequestParameters.Add("notifyNewUser", new Google.Apis.Discovery.Parameter { Name = "notifyNewUser", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a user link on an account or property.</summary> /// <param name="name">Required. Example format: accounts/1234/userLinks/5678</param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes a user link on an account or property.</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary>Required. Example format: accounts/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+/userLinks/[^/]+$", }); } } /// <summary>Gets information about a user's link to an account or property.</summary> /// <param name="name">Required. Example format: accounts/1234/userLinks/5678</param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Gets information about a user's link to an account or property.</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary>Required. Example format: accounts/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+/userLinks/[^/]+$", }); } } /// <summary>Lists all user links on an account or property.</summary> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary>Lists all user links on an account or property.</summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListUserLinksResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of user links to return. The service may return fewer than this value. If /// unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 /// will be coerced to 500. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent /// page. When paginating, all other parameters provided to `ListUserLinks` must match the call that /// provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a user link on an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name">Example format: properties/1234/userLinks/5678</param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a user link on an account or property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary>Example format: properties/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+/userLinks/[^/]+$", }); } } } /// <summary> /// Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to /// restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not /// restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, /// Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns /// an error if the target is not found. /// </summary> /// <param name="name"> /// Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary> /// Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to /// restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not /// restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, /// Streams, UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns /// an error if the target is not found. /// </summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary>Lookup for a single Account.</summary> /// <param name="name"> /// Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" /// </param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Lookup for a single Account.</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAccount> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the account to lookup. Format: accounts/{account} Example: "accounts/100" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } /// <summary>Get data sharing settings on an account. Data sharing settings are singletons.</summary> /// <param name="name"> /// Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: /// "accounts/1000/dataSharingSettings" /// </param> public virtual GetDataSharingSettingsRequest GetDataSharingSettings(string name) { return new GetDataSharingSettingsRequest(service, name); } /// <summary>Get data sharing settings on an account. Data sharing settings are singletons.</summary> public class GetDataSharingSettingsRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaDataSharingSettings> { /// <summary>Constructs a new GetDataSharingSettings request.</summary> public GetDataSharingSettingsRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the settings to lookup. Format: accounts/{account}/dataSharingSettings Example: /// "accounts/1000/dataSharingSettings" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "getDataSharingSettings"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes GetDataSharingSettings parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+/dataSharingSettings$", }); } } /// <summary> /// Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 /// properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no /// relevant accounts are found. /// </summary> public virtual ListRequest List() { return new ListRequest(service); } /// <summary> /// Returns all accounts accessible by the caller. Note that these accounts might not currently have GA4 /// properties. Soft-deleted (ie: "trashed") accounts are excluded by default. Returns an empty list if no /// relevant accounts are found. /// </summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListAccountsResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service) : base(service) { InitParameters(); } /// <summary> /// The maximum number of resources to return. The service may return fewer than this value, even if there /// are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; /// (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent /// page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided /// the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary> /// Whether to include soft-deleted (ie: "trashed") Accounts in the results. Accounts can be inspected to /// determine whether they are deleted or not. /// </summary> [Google.Apis.Util.RequestParameterAttribute("showDeleted", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> ShowDeleted { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/accounts"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("showDeleted", new Google.Apis.Discovery.Parameter { Name = "showDeleted", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates an account.</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAccount body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates an account.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAccount> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAccount body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). /// Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to /// match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAccount Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Requests a ticket for creating an account.</summary> /// <param name="body">The body of the request.</param> public virtual ProvisionAccountTicketRequest ProvisionAccountTicket(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest body) { return new ProvisionAccountTicketRequest(service, body); } /// <summary>Requests a ticket for creating an account.</summary> public class ProvisionAccountTicketRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse> { /// <summary>Constructs a new ProvisionAccountTicket request.</summary> public ProvisionAccountTicketRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest body) : base(service) { Body = body; InitParameters(); } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "provisionAccountTicket"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/accounts:provisionAccountTicket"; /// <summary>Initializes ProvisionAccountTicket parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary> /// Searches through all changes to an account or its children given the specified set of filters. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="account">Required. The account resource for which to return change history resources.</param> public virtual SearchChangeHistoryEventsRequest SearchChangeHistoryEvents(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest body, string account) { return new SearchChangeHistoryEventsRequest(service, body, account); } /// <summary> /// Searches through all changes to an account or its children given the specified set of filters. /// </summary> public class SearchChangeHistoryEventsRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse> { /// <summary>Constructs a new SearchChangeHistoryEvents request.</summary> public SearchChangeHistoryEventsRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest body, string account) : base(service) { Account = account; Body = body; InitParameters(); } /// <summary>Required. The account resource for which to return change history resources.</summary> [Google.Apis.Util.RequestParameterAttribute("account", Google.Apis.Util.RequestParameterType.Path)] public virtual string Account { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "searchChangeHistoryEvents"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+account}:searchChangeHistoryEvents"; /// <summary>Initializes SearchChangeHistoryEvents parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("account", new Google.Apis.Discovery.Parameter { Name = "account", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^accounts/[^/]+$", }); } } } /// <summary>The "properties" collection of methods.</summary> public class PropertiesResource { private const string Resource = "properties"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public PropertiesResource(Google.Apis.Services.IClientService service) { this.service = service; AndroidAppDataStreams = new AndroidAppDataStreamsResource(service); FirebaseLinks = new FirebaseLinksResource(service); GoogleAdsLinks = new GoogleAdsLinksResource(service); IosAppDataStreams = new IosAppDataStreamsResource(service); UserLinks = new UserLinksResource(service); WebDataStreams = new WebDataStreamsResource(service); } /// <summary>Gets the AndroidAppDataStreams resource.</summary> public virtual AndroidAppDataStreamsResource AndroidAppDataStreams { get; } /// <summary>The "androidAppDataStreams" collection of methods.</summary> public class AndroidAppDataStreamsResource { private const string Resource = "androidAppDataStreams"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public AndroidAppDataStreamsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary> /// Creates an Android app stream with the specified location and attributes. Note that an Android app /// stream must be linked to a Firebase app to receive traffic. To create a working app stream, make sure /// your property is linked to a Firebase project. Then, use the Firebase API to create a Firebase app, /// which will also create an appropriate data stream in Analytics (may take up to 24 hours). /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The parent resource where this android app data stream will be created. Format: properties/123 /// </param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream body, string parent) { return new CreateRequest(service, body, parent); } /// <summary> /// Creates an Android app stream with the specified location and attributes. Note that an Android app /// stream must be linked to a Firebase app to receive traffic. To create a working app stream, make sure /// your property is linked to a Firebase project. Then, use the Firebase API to create a Firebase app, /// which will also create an appropriate data stream in Analytics (may take up to 24 hours). /// </summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The parent resource where this android app data stream will be created. Format: /// properties/123 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/androidAppDataStreams"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes an android app stream on a property.</summary> /// <param name="name"> /// Required. The name of the android app data stream to delete. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/123/androidAppDataStreams/456" /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes an android app stream on a property.</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the android app data stream to delete. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/123/androidAppDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/androidAppDataStreams/[^/]+$", }); } } /// <summary>Lookup for a single AndroidAppDataStream</summary> /// <param name="name"> /// Required. The name of the android app data stream to lookup. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/123/androidAppDataStreams/456" /// </param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Lookup for a single AndroidAppDataStream</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the android app data stream to lookup. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/123/androidAppDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/androidAppDataStreams/[^/]+$", }); } } /// <summary> /// Returns child android app streams under the specified parent property. Android app streams will be /// excluded if the caller does not have access. Returns an empty list if no relevant android app streams /// are found. /// </summary> /// <param name="parent"> /// Required. The name of the parent property. For example, to limit results to app streams under the /// property with Id 123: "properties/123" /// </param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary> /// Returns child android app streams under the specified parent property. Android app streams will be /// excluded if the caller does not have access. Returns an empty list if no relevant android app streams /// are found. /// </summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary> /// Required. The name of the parent property. For example, to limit results to app streams under the /// property with Id 123: "properties/123" /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of resources to return. If unspecified, at most 50 resources will be returned. /// The maximum value is 200; (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous call. Provide this to retrieve the subsequent page. When /// paginating, all other parameters provided to `ListAndroidAppDataStreams` must match the call that /// provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/androidAppDataStreams"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates an android app stream on a property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/1000/androidAppDataStreams/2000" /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates an android app stream on a property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/1000/androidAppDataStreams/2000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAndroidAppDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/androidAppDataStreams/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>Gets the FirebaseLinks resource.</summary> public virtual FirebaseLinksResource FirebaseLinks { get; } /// <summary>The "firebaseLinks" collection of methods.</summary> public class FirebaseLinksResource { private const string Resource = "firebaseLinks"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public FirebaseLinksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Creates a FirebaseLink. Properties can have at most one FirebaseLink.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Format: properties/{property_id} Example: properties/1234</param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink body, string parent) { return new CreateRequest(service, body, parent); } /// <summary>Creates a FirebaseLink. Properties can have at most one FirebaseLink.</summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Format: properties/{property_id} Example: properties/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/firebaseLinks"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes a FirebaseLink on a property</summary> /// <param name="name"> /// Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: /// properties/1234/firebaseLinks/5678 /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes a FirebaseLink on a property</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} Example: /// properties/1234/firebaseLinks/5678 /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/firebaseLinks/[^/]+$", }); } } /// <summary>Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.</summary> /// <param name="parent">Required. Format: properties/{property_id} Example: properties/1234</param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary>Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.</summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary>Required. Format: properties/{property_id} Example: properties/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of resources to return. The service may return fewer than this value, even if /// there are additional pages. If unspecified, at most 50 resources will be returned. The maximum value /// is 200; (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListFirebaseLinks` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListProperties` must match the /// call that provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/firebaseLinks"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a FirebaseLink on a property</summary> /// <param name="body">The body of the request.</param> /// <param name="name">Output only. Example format: properties/1234/firebaseLinks/5678</param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a FirebaseLink on a property</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary>Output only. Example format: properties/1234/firebaseLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaFirebaseLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/firebaseLinks/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>Gets the GoogleAdsLinks resource.</summary> public virtual GoogleAdsLinksResource GoogleAdsLinks { get; } /// <summary>The "googleAdsLinks" collection of methods.</summary> public class GoogleAdsLinksResource { private const string Resource = "googleAdsLinks"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public GoogleAdsLinksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Creates a GoogleAdsLink.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Example format: properties/1234</param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink body, string parent) { return new CreateRequest(service, body, parent); } /// <summary>Creates a GoogleAdsLink.</summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Example format: properties/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/googleAdsLinks"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes a GoogleAdsLink on a property</summary> /// <param name="name">Required. Example format: properties/1234/googleAdsLinks/5678</param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes a GoogleAdsLink on a property</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary>Required. Example format: properties/1234/googleAdsLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/googleAdsLinks/[^/]+$", }); } } /// <summary>Lists GoogleAdsLinks on a property.</summary> /// <param name="parent">Required. Example format: properties/1234</param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary>Lists GoogleAdsLinks on a property.</summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary>Required. Example format: properties/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of resources to return. If unspecified, at most 50 resources will be returned. /// The maximum value is 200 (higher values will be coerced to the maximum). /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListGoogleAdsLinks` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListGoogleAdsLinks` must match /// the call that provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/googleAdsLinks"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a GoogleAdsLink on a property</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is /// not the Google Ads customer ID. /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a GoogleAdsLink on a property</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId /// is not the Google Ads customer ID. /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGoogleAdsLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/googleAdsLinks/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>Gets the IosAppDataStreams resource.</summary> public virtual IosAppDataStreamsResource IosAppDataStreams { get; } /// <summary>The "iosAppDataStreams" collection of methods.</summary> public class IosAppDataStreamsResource { private const string Resource = "iosAppDataStreams"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public IosAppDataStreamsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary> /// Creates an iOS app stream with the specified location and attributes. Note that an iOS app stream must /// be linked to a Firebase app to receive traffic. To create a working app stream, make sure your property /// is linked to a Firebase project. Then, use the Firebase API to create a Firebase app, which will also /// create an appropriate data stream in Analytics (may take up to 24 hours). /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The parent resource where this ios app data stream will be created. Format: properties/123 /// </param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream body, string parent) { return new CreateRequest(service, body, parent); } /// <summary> /// Creates an iOS app stream with the specified location and attributes. Note that an iOS app stream must /// be linked to a Firebase app to receive traffic. To create a working app stream, make sure your property /// is linked to a Firebase project. Then, use the Firebase API to create a Firebase app, which will also /// create an appropriate data stream in Analytics (may take up to 24 hours). /// </summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The parent resource where this ios app data stream will be created. Format: properties/123 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/iosAppDataStreams"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes an iOS app stream on a property.</summary> /// <param name="name"> /// Required. The name of the iOS app data stream to delete. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes an iOS app stream on a property.</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the iOS app data stream to delete. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: /// "properties/123/iosAppDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/iosAppDataStreams/[^/]+$", }); } } /// <summary>Lookup for a single IosAppDataStream</summary> /// <param name="name"> /// Required. The name of the iOS app data stream to lookup. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/123/iosAppDataStreams/456" /// </param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Lookup for a single IosAppDataStream</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the iOS app data stream to lookup. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: /// "properties/123/iosAppDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/iosAppDataStreams/[^/]+$", }); } } /// <summary> /// Returns child iOS app data streams under the specified parent property. iOS app data streams will be /// excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams /// are found. /// </summary> /// <param name="parent"> /// Required. The name of the parent property. For example, to list results of app streams under the /// property with Id 123: "properties/123" /// </param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary> /// Returns child iOS app data streams under the specified parent property. iOS app data streams will be /// excluded if the caller does not have access. Returns an empty list if no relevant iOS app data streams /// are found. /// </summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary> /// Required. The name of the parent property. For example, to list results of app streams under the /// property with Id 123: "properties/123" /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of resources to return. If unspecified, at most 50 resources will be returned. /// The maximum value is 200; (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListIosAppDataStreams` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListIosAppDataStreams` must /// match the call that provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/iosAppDataStreams"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates an iOS app stream on a property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/1000/iosAppDataStreams/2000" /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates an iOS app stream on a property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: /// "properties/1000/iosAppDataStreams/2000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaIosAppDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/iosAppDataStreams/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>Gets the UserLinks resource.</summary> public virtual UserLinksResource UserLinks { get; } /// <summary>The "userLinks" collection of methods.</summary> public class UserLinksResource { private const string Resource = "userLinks"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public UserLinksResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary> /// Lists all user links on an account or property, including implicit ones that come from effective /// permissions granted by groups or organization admin roles. If a returned user link does not have direct /// permissions, they cannot be removed from the account or property directly with the DeleteUserLink /// command. They have to be removed from the group/etc that gives them permissions, which is currently only /// usable/discoverable in the GA or GMP UIs. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual AuditRequest Audit(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body, string parent) { return new AuditRequest(service, body, parent); } /// <summary> /// Lists all user links on an account or property, including implicit ones that come from effective /// permissions granted by groups or organization admin roles. If a returned user link does not have direct /// permissions, they cannot be removed from the account or property directly with the DeleteUserLink /// command. They have to be removed from the group/etc that gives them permissions, which is currently only /// usable/discoverable in the GA or GMP UIs. /// </summary> public class AuditRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksResponse> { /// <summary>Constructs a new Audit request.</summary> public AuditRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaAuditUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "audit"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:audit"; /// <summary>Initializes Audit parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary> /// Creates information about multiple users' links to an account or property. This method is transactional. /// If any UserLink cannot be created, none of the UserLinks will be created. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. This field is required. /// The parent field in the CreateUserLinkRequest messages must either be empty or match this field. Example /// format: accounts/1234 /// </param> public virtual BatchCreateRequest BatchCreate(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body, string parent) { return new BatchCreateRequest(service, body, parent); } /// <summary> /// Creates information about multiple users' links to an account or property. This method is transactional. /// If any UserLink cannot be created, none of the UserLinks will be created. /// </summary> public class BatchCreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse> { /// <summary>Constructs a new BatchCreate request.</summary> public BatchCreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. This field is /// required. The parent field in the CreateUserLinkRequest messages must either be empty or match this /// field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchCreate"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchCreate"; /// <summary>Initializes BatchCreate parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes information about multiple users' links to an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent of all values /// for user link names to delete must match this field. Example format: accounts/1234 /// </param> public virtual BatchDeleteRequest BatchDelete(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body, string parent) { return new BatchDeleteRequest(service, body, parent); } /// <summary>Deletes information about multiple users' links to an account or property.</summary> public class BatchDeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new BatchDelete request.</summary> public BatchDeleteRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent of all /// values for user link names to delete must match this field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchDelete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchDelete"; /// <summary>Initializes BatchDelete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Gets information about multiple users' links to an account or property.</summary> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent of all provided /// values for the 'names' field must match this field. Example format: accounts/1234 /// </param> public virtual BatchGetRequest BatchGet(string parent) { return new BatchGetRequest(service, parent); } /// <summary>Gets information about multiple users' links to an account or property.</summary> public class BatchGetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse> { /// <summary>Constructs a new BatchGet request.</summary> public BatchGetRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent of all /// provided values for the 'names' field must match this field. Example format: accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// Required. The names of the user links to retrieve. A maximum of 1000 user links can be retrieved in /// a batch. Format: accounts/{accountId}/userLinks/{userLinkId} /// </summary> [Google.Apis.Util.RequestParameterAttribute("names", Google.Apis.Util.RequestParameterType.Query)] public virtual Google.Apis.Util.Repeatable<string> Names { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "batchGet"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchGet"; /// <summary>Initializes BatchGet parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("names", new Google.Apis.Discovery.Parameter { Name = "names", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates information about multiple users' links to an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The account or property that all user links in the request are for. The parent field in the /// UpdateUserLinkRequest messages must either be empty or match this field. Example format: accounts/1234 /// </param> public virtual BatchUpdateRequest BatchUpdate(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body, string parent) { return new BatchUpdateRequest(service, body, parent); } /// <summary>Updates information about multiple users' links to an account or property.</summary> public class BatchUpdateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse> { /// <summary>Constructs a new BatchUpdate request.</summary> public BatchUpdateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The account or property that all user links in the request are for. The parent field in /// the UpdateUserLinkRequest messages must either be empty or match this field. Example format: /// accounts/1234 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "batchUpdate"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks:batchUpdate"; /// <summary>Initializes BatchUpdate parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary> /// Creates a user link on an account or property. If the user with the specified email already has /// permissions on the account or property, then the user's existing permissions will be unioned with the /// permissions specified in the new UserLink. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string parent) { return new CreateRequest(service, body, parent); } /// <summary> /// Creates a user link on an account or property. If the user with the specified email already has /// permissions on the account or property, then the user's existing permissions will be unioned with the /// permissions specified in the new UserLink. /// </summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// Optional. If set, then email the new user notifying them that they've been granted permissions to /// the resource. /// </summary> [Google.Apis.Util.RequestParameterAttribute("notifyNewUser", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> NotifyNewUser { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("notifyNewUser", new Google.Apis.Discovery.Parameter { Name = "notifyNewUser", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Deletes a user link on an account or property.</summary> /// <param name="name">Required. Example format: accounts/1234/userLinks/5678</param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes a user link on an account or property.</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary>Required. Example format: accounts/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/userLinks/[^/]+$", }); } } /// <summary>Gets information about a user's link to an account or property.</summary> /// <param name="name">Required. Example format: accounts/1234/userLinks/5678</param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Gets information about a user's link to an account or property.</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary>Required. Example format: accounts/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/userLinks/[^/]+$", }); } } /// <summary>Lists all user links on an account or property.</summary> /// <param name="parent">Required. Example format: accounts/1234</param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary>Lists all user links on an account or property.</summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListUserLinksResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary>Required. Example format: accounts/1234</summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of user links to return. The service may return fewer than this value. If /// unspecified, at most 200 user links will be returned. The maximum value is 500; values above 500 /// will be coerced to 500. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListUserLinks` call. Provide this to retrieve the subsequent /// page. When paginating, all other parameters provided to `ListUserLinks` must match the call that /// provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/userLinks"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a user link on an account or property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name">Example format: properties/1234/userLinks/5678</param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a user link on an account or property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary>Example format: properties/1234/userLinks/5678</summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaUserLink Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/userLinks/[^/]+$", }); } } } /// <summary>Gets the WebDataStreams resource.</summary> public virtual WebDataStreamsResource WebDataStreams { get; } /// <summary>The "webDataStreams" collection of methods.</summary> public class WebDataStreamsResource { private const string Resource = "webDataStreams"; /// <summary>The service which this resource belongs to.</summary> private readonly Google.Apis.Services.IClientService service; /// <summary>Constructs a new resource.</summary> public WebDataStreamsResource(Google.Apis.Services.IClientService service) { this.service = service; } /// <summary>Creates a web stream with the specified location and attributes.</summary> /// <param name="body">The body of the request.</param> /// <param name="parent"> /// Required. The parent resource where this web data stream will be created. Format: properties/123 /// </param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream body, string parent) { return new CreateRequest(service, body, parent); } /// <summary>Creates a web stream with the specified location and attributes.</summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream body, string parent) : base(service) { Parent = parent; Body = body; InitParameters(); } /// <summary> /// Required. The parent resource where this web data stream will be created. Format: properties/123 /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/webDataStreams"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Deletes a web stream on a property.</summary> /// <param name="name"> /// Required. The name of the web data stream to delete. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary>Deletes a web stream on a property.</summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleProtobufEmpty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the web data stream to delete. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+$", }); } } /// <summary>Lookup for a single WebDataStream</summary> /// <param name="name"> /// Required. The name of the web data stream to lookup. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" /// </param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Lookup for a single WebDataStream</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the web data stream to lookup. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/123/webDataStreams/456" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+$", }); } } /// <summary> /// Returns the singleton enhanced measurement settings for this web stream. Note that the stream must /// enable enhanced measurement for these settings to take effect. /// </summary> /// <param name="name"> /// Required. The name of the settings to lookup. Format: /// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: /// "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" /// </param> public virtual GetEnhancedMeasurementSettingsRequest GetEnhancedMeasurementSettings(string name) { return new GetEnhancedMeasurementSettingsRequest(service, name); } /// <summary> /// Returns the singleton enhanced measurement settings for this web stream. Note that the stream must /// enable enhanced measurement for these settings to take effect. /// </summary> public class GetEnhancedMeasurementSettingsRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings> { /// <summary>Constructs a new GetEnhancedMeasurementSettings request.</summary> public GetEnhancedMeasurementSettingsRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the settings to lookup. Format: /// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: /// "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "getEnhancedMeasurementSettings"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes GetEnhancedMeasurementSettings parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+/enhancedMeasurementSettings$", }); } } /// <summary> /// Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. /// </summary> /// <param name="name"> /// Required. The name of the site tag to lookup. Note that site tags are singletons and do not have unique /// IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: /// "properties/123/webDataStreams/456/globalSiteTag" /// </param> public virtual GetGlobalSiteTagRequest GetGlobalSiteTag(string name) { return new GetGlobalSiteTagRequest(service, name); } /// <summary> /// Returns the Site Tag for the specified web stream. Site Tags are immutable singletons. /// </summary> public class GetGlobalSiteTagRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaGlobalSiteTag> { /// <summary>Constructs a new GetGlobalSiteTag request.</summary> public GetGlobalSiteTagRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the site tag to lookup. Note that site tags are singletons and do not have /// unique IDs. Format: properties/{property_id}/webDataStreams/{stream_id}/globalSiteTag Example: /// "properties/123/webDataStreams/456/globalSiteTag" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "getGlobalSiteTag"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes GetGlobalSiteTag parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+/globalSiteTag$", }); } } /// <summary> /// Returns child web data streams under the specified parent property. Web data streams will be excluded if /// the caller does not have access. Returns an empty list if no relevant web data streams are found. /// </summary> /// <param name="parent"> /// Required. The name of the parent property. For example, to list results of web streams under the /// property with Id 123: "properties/123" /// </param> public virtual ListRequest List(string parent) { return new ListRequest(service, parent); } /// <summary> /// Returns child web data streams under the specified parent property. Web data streams will be excluded if /// the caller does not have access. Returns an empty list if no relevant web data streams are found. /// </summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service, string parent) : base(service) { Parent = parent; InitParameters(); } /// <summary> /// Required. The name of the parent property. For example, to list results of web streams under the /// property with Id 123: "properties/123" /// </summary> [Google.Apis.Util.RequestParameterAttribute("parent", Google.Apis.Util.RequestParameterType.Path)] public virtual string Parent { get; private set; } /// <summary> /// The maximum number of resources to return. If unspecified, at most 50 resources will be returned. /// The maximum value is 200; (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListWebDataStreams` call. Provide this to retrieve the /// subsequent page. When paginating, all other parameters provided to `ListWebDataStreams` must match /// the call that provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+parent}/webDataStreams"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("parent", new Google.Apis.Discovery.Parameter { Name = "parent", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a web stream on a property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/1000/webDataStreams/2000" /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a web stream on a property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/webDataStreams/{stream_id} Example: "properties/1000/webDataStreams/2000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaWebDataStream Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary> /// Updates the singleton enhanced measurement settings for this web stream. Note that the stream must /// enable enhanced measurement for these settings to take effect. /// </summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: /// "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" /// </param> public virtual UpdateEnhancedMeasurementSettingsRequest UpdateEnhancedMeasurementSettings(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings body, string name) { return new UpdateEnhancedMeasurementSettingsRequest(service, body, name); } /// <summary> /// Updates the singleton enhanced measurement settings for this web stream. Note that the stream must /// enable enhanced measurement for these settings to take effect. /// </summary> public class UpdateEnhancedMeasurementSettingsRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings> { /// <summary>Constructs a new UpdateEnhancedMeasurementSettings request.</summary> public UpdateEnhancedMeasurementSettingsRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: /// "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., /// "field_to_update"). Omitted fields will not be updated. To replace the entire entity, use one path /// with the string "*" to match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "updateEnhancedMeasurementSettings"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes UpdateEnhancedMeasurementSettings parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+/webDataStreams/[^/]+/enhancedMeasurementSettings$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } /// <summary>Creates an "GA4" property with the specified location and attributes.</summary> /// <param name="body">The body of the request.</param> public virtual CreateRequest Create(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty body) { return new CreateRequest(service, body); } /// <summary>Creates an "GA4" property with the specified location and attributes.</summary> public class CreateRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty> { /// <summary>Constructs a new Create request.</summary> public CreateRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty body) : base(service) { Body = body; InitParameters(); } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "create"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "POST"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/properties"; /// <summary>Initializes Create parameter list.</summary> protected override void InitParameters() { base.InitParameters(); } } /// <summary> /// Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to /// restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are /// not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, /// UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error /// if the target is not found, or is not an GA4 Property. /// </summary> /// <param name="name"> /// Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: /// "properties/1000" /// </param> public virtual DeleteRequest Delete(string name) { return new DeleteRequest(service, name); } /// <summary> /// Marks target Property as soft-deleted (ie: "trashed") and returns it. This API does not have a method to /// restore soft-deleted properties. However, they can be restored using the Trash Can UI. If the properties are /// not restored before the expiration time, the Property and all child resources (eg: GoogleAdsLinks, Streams, /// UserLinks) will be permanently purged. https://support.google.com/analytics/answer/6154772 Returns an error /// if the target is not found, or is not an GA4 Property. /// </summary> public class DeleteRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty> { /// <summary>Constructs a new Delete request.</summary> public DeleteRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the Property to soft-delete. Format: properties/{property_id} Example: /// "properties/1000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "delete"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "DELETE"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Delete parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary>Lookup for a single "GA4" Property.</summary> /// <param name="name"> /// Required. The name of the property to lookup. Format: properties/{property_id} Example: "properties/1000" /// </param> public virtual GetRequest Get(string name) { return new GetRequest(service, name); } /// <summary>Lookup for a single "GA4" Property.</summary> public class GetRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty> { /// <summary>Constructs a new Get request.</summary> public GetRequest(Google.Apis.Services.IClientService service, string name) : base(service) { Name = name; InitParameters(); } /// <summary> /// Required. The name of the property to lookup. Format: properties/{property_id} Example: /// "properties/1000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary>Gets the method name.</summary> public override string MethodName => "get"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Get parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); } } /// <summary> /// Returns child Properties under the specified parent Account. Only "GA4" properties will be returned. /// Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are /// excluded by default. Returns an empty list if no relevant properties are found. /// </summary> public virtual ListRequest List() { return new ListRequest(service); } /// <summary> /// Returns child Properties under the specified parent Account. Only "GA4" properties will be returned. /// Properties will be excluded if the caller does not have access. Soft-deleted (ie: "trashed") properties are /// excluded by default. Returns an empty list if no relevant properties are found. /// </summary> public class ListRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaListPropertiesResponse> { /// <summary>Constructs a new List request.</summary> public ListRequest(Google.Apis.Services.IClientService service) : base(service) { InitParameters(); } /// <summary> /// Required. An expression for filtering the results of the request. Fields eligible for filtering are: /// `parent:`(The resource name of the parent account) or `firebase_project:`(The id or number of the linked /// firebase project). Some examples of filters: ``` | Filter | Description | /// |-----------------------------|-------------------------------------------| | parent:accounts/123 | The /// account with account id: 123. | | firebase_project:project-id | The firebase project with id: /// project-id. | | firebase_project:123 | The firebase project with number: 123. | ``` /// </summary> [Google.Apis.Util.RequestParameterAttribute("filter", Google.Apis.Util.RequestParameterType.Query)] public virtual string Filter { get; set; } /// <summary> /// The maximum number of resources to return. The service may return fewer than this value, even if there /// are additional pages. If unspecified, at most 50 resources will be returned. The maximum value is 200; /// (higher values will be coerced to the maximum) /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageSize", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `ListProperties` call. Provide this to retrieve the subsequent /// page. When paginating, all other parameters provided to `ListProperties` must match the call that /// provided the page token. /// </summary> [Google.Apis.Util.RequestParameterAttribute("pageToken", Google.Apis.Util.RequestParameterType.Query)] public virtual string PageToken { get; set; } /// <summary> /// Whether to include soft-deleted (ie: "trashed") Properties in the results. Properties can be inspected /// to determine whether they are deleted or not. /// </summary> [Google.Apis.Util.RequestParameterAttribute("showDeleted", Google.Apis.Util.RequestParameterType.Query)] public virtual System.Nullable<bool> ShowDeleted { get; set; } /// <summary>Gets the method name.</summary> public override string MethodName => "list"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "GET"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/properties"; /// <summary>Initializes List parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("filter", new Google.Apis.Discovery.Parameter { Name = "filter", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageSize", new Google.Apis.Discovery.Parameter { Name = "pageSize", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("pageToken", new Google.Apis.Discovery.Parameter { Name = "pageToken", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); RequestParameters.Add("showDeleted", new Google.Apis.Discovery.Parameter { Name = "showDeleted", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } /// <summary>Updates a property.</summary> /// <param name="body">The body of the request.</param> /// <param name="name"> /// Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" /// </param> public virtual PatchRequest Patch(Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty body, string name) { return new PatchRequest(service, body, name); } /// <summary>Updates a property.</summary> public class PatchRequest : GoogleAnalyticsAdminBaseServiceRequest<Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty> { /// <summary>Constructs a new Patch request.</summary> public PatchRequest(Google.Apis.Services.IClientService service, Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty body, string name) : base(service) { Name = name; Body = body; InitParameters(); } /// <summary> /// Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" /// </summary> [Google.Apis.Util.RequestParameterAttribute("name", Google.Apis.Util.RequestParameterType.Path)] public virtual string Name { get; private set; } /// <summary> /// Required. The list of fields to be updated. Field names must be in snake case (e.g., "field_to_update"). /// Omitted fields will not be updated. To replace the entire entity, use one path with the string "*" to /// match all fields. /// </summary> [Google.Apis.Util.RequestParameterAttribute("updateMask", Google.Apis.Util.RequestParameterType.Query)] public virtual object UpdateMask { get; set; } /// <summary>Gets or sets the body of this request.</summary> Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data.GoogleAnalyticsAdminV1alphaProperty Body { get; set; } /// <summary>Returns the body of the request.</summary> protected override object GetBody() => Body; /// <summary>Gets the method name.</summary> public override string MethodName => "patch"; /// <summary>Gets the HTTP method.</summary> public override string HttpMethod => "PATCH"; /// <summary>Gets the REST path.</summary> public override string RestPath => "v1alpha/{+name}"; /// <summary>Initializes Patch parameter list.</summary> protected override void InitParameters() { base.InitParameters(); RequestParameters.Add("name", new Google.Apis.Discovery.Parameter { Name = "name", IsRequired = true, ParameterType = "path", DefaultValue = null, Pattern = @"^properties/[^/]+$", }); RequestParameters.Add("updateMask", new Google.Apis.Discovery.Parameter { Name = "updateMask", IsRequired = false, ParameterType = "query", DefaultValue = null, Pattern = null, }); } } } } namespace Google.Apis.GoogleAnalyticsAdmin.v1alpha.Data { /// <summary>A resource message representing a Google Analytics account.</summary> public class GoogleAnalyticsAdminV1alphaAccount : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Output only. Time when this account was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary> /// Output only. Indicates whether this Account is soft-deleted or not. Deleted accounts are excluded from List /// results unless specifically requested. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("deleted")] public virtual System.Nullable<bool> Deleted { get; set; } /// <summary>Required. Human-readable display name for this account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Output only. Resource name of this account. Format: accounts/{account} Example: "accounts/100" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Country of business. Must be a Unicode CLDR region code.</summary> [Newtonsoft.Json.JsonPropertyAttribute("regionCode")] public virtual string RegionCode { get; set; } /// <summary>Output only. Time when account payload fields were last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A virtual resource representing an overview of an account and all its child GA4 properties.</summary> public class GoogleAnalyticsAdminV1alphaAccountSummary : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Resource name of account referred to by this account summary Format: accounts/{account_id} Example: /// "accounts/1000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("account")] public virtual string Account { get; set; } /// <summary>Display name for the account referred to in this account summary.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Resource name for this account summary. Format: accountSummaries/{account_id} Example: /// "accountSummaries/1000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>List of summaries for child accounts of this account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("propertySummaries")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaPropertySummary> PropertySummaries { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing a Google Analytics Android app stream.</summary> public class GoogleAnalyticsAdminV1alphaAndroidAppDataStream : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Output only. Time when this stream was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary> /// Human-readable display name for the Data Stream. The max allowed display name length is 255 UTF-16 code /// units. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Output only. ID of the corresponding Android app in Firebase, if any. This ID can change if the Android app /// is deleted and recreated. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("firebaseAppId")] public virtual string FirebaseAppId { get; set; } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/androidAppDataStreams/{stream_id} Example: /// "properties/1000/androidAppDataStreams/2000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// Immutable. The package name for the app being measured. Example: "com.example.myandroidapp" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("packageName")] public virtual string PackageName { get; set; } /// <summary>Output only. Time when stream payload fields were last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Read-only resource used to summarize a principal's effective roles.</summary> public class GoogleAnalyticsAdminV1alphaAuditUserLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Roles directly assigned to this user for this entity. Format: predefinedRoles/read Excludes roles that are /// inherited from an account (if this is for a property), group, or organization admin role. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("directRoles")] public virtual System.Collections.Generic.IList<string> DirectRoles { get; set; } /// <summary> /// Union of all permissions a user has at this account or property (includes direct permissions, /// group-inherited permissions, etc.). Format: predefinedRoles/read /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("effectiveRoles")] public virtual System.Collections.Generic.IList<string> EffectiveRoles { get; set; } /// <summary>Email address of the linked user</summary> [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// <summary>Example format: properties/1234/userLinks/5678</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for AuditUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// The maximum number of user links to return. The service may return fewer than this value. If unspecified, at /// most 1000 user links will be returned. The maximum value is 5000; values above 5000 will be coerced to 5000. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageSize")] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// A page token, received from a previous `AuditUserLinks` call. Provide this to retrieve the subsequent page. /// When paginating, all other parameters provided to `AuditUserLinks` must match the call that provided the /// page token. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageToken")] public virtual string PageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for AuditUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>List of AuditUserLinks. These will be ordered stably, but in an arbitrary order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaAuditUserLink> UserLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for BatchCreateUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Optional. If set, then email the new users notifying them that they've been granted permissions to the /// resource. Regardless of whether this is set or not, notify_new_user field inside each individual request is /// ignored. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("notifyNewUsers")] public virtual System.Nullable<bool> NotifyNewUsers { get; set; } /// <summary> /// Required. The requests specifying the user links to create. A maximum of 1000 user links can be created in a /// batch. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaCreateUserLinkRequest> Requests { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for BatchCreateUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The user links created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaUserLink> UserLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for BatchDeleteUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a /// batch. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest> Requests { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for BatchGetUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The requested user links.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaUserLink> UserLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for BatchUpdateUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Required. The requests specifying the user links to update. A maximum of 1000 user links can be updated in a /// batch. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("requests")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest> Requests { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for BatchUpdateUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The user links updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaUserLink> UserLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A description of a change to a single Google Analytics resource.</summary> public class GoogleAnalyticsAdminV1alphaChangeHistoryChange : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The type of action that changed this resource.</summary> [Newtonsoft.Json.JsonPropertyAttribute("action")] public virtual string Action { get; set; } /// <summary>Resource name of the resource whose changes are described by this entry.</summary> [Newtonsoft.Json.JsonPropertyAttribute("resource")] public virtual string Resource { get; set; } /// <summary> /// Resource contents from after the change was made. If this resource was deleted in this change, this field /// will be missing. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("resourceAfterChange")] public virtual GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource ResourceAfterChange { get; set; } /// <summary> /// Resource contents from before the change was made. If this resource was created in this change, this field /// will be missing. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("resourceBeforeChange")] public virtual GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource ResourceBeforeChange { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A snapshot of a resource as before or after the result of a change in change history.</summary> public class GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource : Google.Apis.Requests.IDirectResponseSchema { /// <summary>A snapshot of an Account resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("account")] public virtual GoogleAnalyticsAdminV1alphaAccount Account { get; set; } /// <summary>A snapshot of an AndroidAppDataStream resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("androidAppDataStream")] public virtual GoogleAnalyticsAdminV1alphaAndroidAppDataStream AndroidAppDataStream { get; set; } /// <summary>A snapshot of a FirebaseLink resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("firebaseLink")] public virtual GoogleAnalyticsAdminV1alphaFirebaseLink FirebaseLink { get; set; } /// <summary>A snapshot of a GoogleAdsLink resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleAdsLink")] public virtual GoogleAnalyticsAdminV1alphaGoogleAdsLink GoogleAdsLink { get; set; } /// <summary>A snapshot of an IosAppDataStream resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("iosAppDataStream")] public virtual GoogleAnalyticsAdminV1alphaIosAppDataStream IosAppDataStream { get; set; } /// <summary>A snapshot of a Property resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("property")] public virtual GoogleAnalyticsAdminV1alphaProperty Property { get; set; } /// <summary>A snapshot of a WebDataStream resource in change history.</summary> [Newtonsoft.Json.JsonPropertyAttribute("webDataStream")] public virtual GoogleAnalyticsAdminV1alphaWebDataStream WebDataStream { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary> /// A set of changes within a Google Analytics account or its child properties that resulted from the same cause. /// Common causes would be updates made in the Google Analytics UI, changes from customer support, or automatic /// Google Analytics system changes. /// </summary> public class GoogleAnalyticsAdminV1alphaChangeHistoryEvent : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The type of actor that made this change.</summary> [Newtonsoft.Json.JsonPropertyAttribute("actorType")] public virtual string ActorType { get; set; } /// <summary>Time when change was made.</summary> [Newtonsoft.Json.JsonPropertyAttribute("changeTime")] public virtual object ChangeTime { get; set; } /// <summary> /// A list of changes made in this change history event that fit the filters specified in /// SearchChangeHistoryEventsRequest. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("changes")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaChangeHistoryChange> Changes { get; set; } /// <summary> /// If true, then the list of changes returned was filtered, and does not represent all changes that occurred in /// this event. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("changesFiltered")] public virtual System.Nullable<bool> ChangesFiltered { get; set; } /// <summary>ID of this change history event. This ID is unique across Google Analytics.</summary> [Newtonsoft.Json.JsonPropertyAttribute("id")] public virtual string Id { get; set; } /// <summary> /// Email address of the Google account that made the change. This will be a valid email address if the actor /// field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("userActorEmail")] public virtual string UserActorEmail { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary> /// Request message for CreateUserLink RPC. Users can have multiple email addresses associated with their Google /// account, and one of these email addresses is the "primary" email address. Any of the email addresses associated /// with a Google account may be used for a new UserLink, but the returned UserLink will always contain the /// "primary" email address. As a result, the input and output email address for this request may differ. /// </summary> public class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Optional. If set, then email the new user notifying them that they've been granted permissions to the /// resource. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("notifyNewUser")] public virtual System.Nullable<bool> NotifyNewUser { get; set; } /// <summary>Required. Example format: accounts/1234</summary> [Newtonsoft.Json.JsonPropertyAttribute("parent")] public virtual string Parent { get; set; } /// <summary>Required. The user link to create.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLink")] public virtual GoogleAnalyticsAdminV1alphaUserLink UserLink { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing data sharing settings of a Google Analytics account.</summary> public class GoogleAnalyticsAdminV1alphaDataSharingSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Output only. Resource name. Format: accounts/{account}/dataSharingSettings Example: /// "accounts/1000/dataSharingSettings" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// Allows any of Google sales to access the data in order to suggest configuration changes to improve results. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("sharingWithGoogleAnySalesEnabled")] public virtual System.Nullable<bool> SharingWithGoogleAnySalesEnabled { get; set; } /// <summary> /// Allows Google sales teams that are assigned to the customer to access the data in order to suggest /// configuration changes to improve results. Sales team restrictions still apply when enabled. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("sharingWithGoogleAssignedSalesEnabled")] public virtual System.Nullable<bool> SharingWithGoogleAssignedSalesEnabled { get; set; } /// <summary>Allows Google to use the data to improve other Google products or services.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sharingWithGoogleProductsEnabled")] public virtual System.Nullable<bool> SharingWithGoogleProductsEnabled { get; set; } /// <summary>Allows Google support to access the data in order to help troubleshoot issues.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sharingWithGoogleSupportEnabled")] public virtual System.Nullable<bool> SharingWithGoogleSupportEnabled { get; set; } /// <summary>Allows Google to share the data anonymously in aggregate form with others.</summary> [Newtonsoft.Json.JsonPropertyAttribute("sharingWithOthersEnabled")] public virtual System.Nullable<bool> SharingWithOthersEnabled { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for DeleteUserLink RPC.</summary> public class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Required. Example format: accounts/1234/userLinks/5678</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary> /// Singleton resource under a WebDataStream, configuring measurement of additional site interactions and content. /// </summary> public class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// If enabled, capture a file download event each time a link is clicked with a common document, compressed /// file, application, video, or audio extension. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("fileDownloadsEnabled")] public virtual System.Nullable<bool> FileDownloadsEnabled { get; set; } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/webDataStreams/{stream_id}/enhancedMeasurementSettings Example: /// "properties/1000/webDataStreams/2000/enhancedMeasurementSettings" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// If enabled, capture an outbound click event each time a visitor clicks a link that leads them away from your /// domain. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("outboundClicksEnabled")] public virtual System.Nullable<bool> OutboundClicksEnabled { get; set; } /// <summary> /// If enabled, capture a page view event each time the website changes the browser history state. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageChangesEnabled")] public virtual System.Nullable<bool> PageChangesEnabled { get; set; } /// <summary>Output only. If enabled, capture a page view event each time a page loads.</summary> [Newtonsoft.Json.JsonPropertyAttribute("pageLoadsEnabled")] public virtual System.Nullable<bool> PageLoadsEnabled { get; set; } /// <summary> /// Output only. If enabled, capture a page view event each time a page loads or the website changes the browser /// history state. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageViewsEnabled")] public virtual System.Nullable<bool> PageViewsEnabled { get; set; } /// <summary>If enabled, capture scroll events each time a visitor gets to the bottom of a page.</summary> [Newtonsoft.Json.JsonPropertyAttribute("scrollsEnabled")] public virtual System.Nullable<bool> ScrollsEnabled { get; set; } /// <summary> /// Required. URL query parameters to interpret as site search parameters. Max length is 1024 characters. Must /// not be empty. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("searchQueryParameter")] public virtual string SearchQueryParameter { get; set; } /// <summary> /// If enabled, capture a view search results event each time a visitor performs a search on your site (based on /// a query parameter). /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("siteSearchEnabled")] public virtual System.Nullable<bool> SiteSearchEnabled { get; set; } /// <summary> /// Indicates whether Enhanced Measurement Settings will be used to automatically measure interactions and /// content on this web stream. Changing this value does not affect the settings themselves, but determines /// whether they are respected. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("streamEnabled")] public virtual System.Nullable<bool> StreamEnabled { get; set; } /// <summary>Additional URL query parameters. Max length is 1024 characters.</summary> [Newtonsoft.Json.JsonPropertyAttribute("uriQueryParameter")] public virtual string UriQueryParameter { get; set; } /// <summary> /// If enabled, capture video play, progress, and complete events as visitors view embedded videos on your site. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("videoEngagementEnabled")] public virtual System.Nullable<bool> VideoEngagementEnabled { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A link between an GA4 property and a Firebase project.</summary> public class GoogleAnalyticsAdminV1alphaFirebaseLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Output only. Time when this FirebaseLink was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary>Maximum user access to the GA4 property allowed to admins of the linked Firebase project.</summary> [Newtonsoft.Json.JsonPropertyAttribute("maximumUserAccess")] public virtual string MaximumUserAccess { get; set; } /// <summary>Output only. Example format: properties/1234/firebaseLinks/5678</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// Immutable. Firebase project resource name. When creating a FirebaseLink, you may provide this resource name /// using either a project number or project ID. Once this resource has been created, returned FirebaseLinks /// will always have a project_name that contains a project number. Format: 'projects/{project number}' Example: /// 'projects/1234' /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("project")] public virtual string Project { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Read-only resource with the tag for sending data from a website to a WebDataStream.</summary> public class GoogleAnalyticsAdminV1alphaGlobalSiteTag : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Output only. Resource name for this GlobalSiteTag resource. Format: properties/{propertyId}/globalSiteTag /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to /// measure. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("snippet")] public virtual string Snippet { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A link between an GA4 property and a Google Ads account.</summary> public class GoogleAnalyticsAdminV1alphaGoogleAdsLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Enable personalized advertising features with this integration. Automatically publish my Google Analytics /// audience lists and Google Analytics remarketing events/parameters to the linked Google Ads account. If this /// field is not set on create/update it will be defaulted to true. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("adsPersonalizationEnabled")] public virtual System.Nullable<bool> AdsPersonalizationEnabled { get; set; } /// <summary>Output only. If true, this link is for a Google Ads manager account.</summary> [Newtonsoft.Json.JsonPropertyAttribute("canManageClients")] public virtual System.Nullable<bool> CanManageClients { get; set; } /// <summary>Output only. Time when this link was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary>Immutable. Google Ads customer ID.</summary> [Newtonsoft.Json.JsonPropertyAttribute("customerId")] public virtual string CustomerId { get; set; } /// <summary> /// Output only. Email address of the user that created the link. An empty string will be returned if the email /// address can't be retrieved. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// <summary> /// Output only. Format: properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: googleAdsLinkId is not /// the Google Ads customer ID. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Output only. Time when this link was last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing a Google Analytics IOS app stream.</summary> public class GoogleAnalyticsAdminV1alphaIosAppDataStream : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.example.myiosapp" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("bundleId")] public virtual string BundleId { get; set; } /// <summary>Output only. Time when this stream was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary> /// Human-readable display name for the Data Stream. The max allowed display name length is 255 UTF-16 code /// units. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Output only. ID of the corresponding iOS app in Firebase, if any. This ID can change if the iOS app is /// deleted and recreated. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("firebaseAppId")] public virtual string FirebaseAppId { get; set; } /// <summary> /// Output only. Resource name of this Data Stream. Format: /// properties/{property_id}/iosAppDataStreams/{stream_id} Example: "properties/1000/iosAppDataStreams/2000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Output only. Time when stream payload fields were last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ListAccountSummaries RPC.</summary> public class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Account summaries of all accounts the caller has access to.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountSummaries")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaAccountSummary> AccountSummaries { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for ListAccounts RPC.</summary> public class GoogleAnalyticsAdminV1alphaListAccountsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Results that were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accounts")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaAccount> Accounts { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for ListAndroidDataStreams RPC.</summary> public class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Results that matched the filter criteria and were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("androidAppDataStreams")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaAndroidAppDataStream> AndroidAppDataStreams { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ListFirebaseLinks RPC</summary> public class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>List of FirebaseLinks. This will have at most one value.</summary> [Newtonsoft.Json.JsonPropertyAttribute("firebaseLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaFirebaseLink> FirebaseLinks { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. Currently, Google Analytics supports only one FirebaseLink per property, so this will /// never be populated. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ListGoogleAdsLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>List of GoogleAdsLinks.</summary> [Newtonsoft.Json.JsonPropertyAttribute("googleAdsLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaGoogleAdsLink> GoogleAdsLinks { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for ListIosAppDataStreams RPC.</summary> public class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Results that matched the filter criteria and were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("iosAppDataStreams")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaIosAppDataStream> IosAppDataStreams { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ListProperties RPC.</summary> public class GoogleAnalyticsAdminV1alphaListPropertiesResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>Results that matched the filter criteria and were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("properties")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaProperty> Properties { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ListUserLinks RPC.</summary> public class GoogleAnalyticsAdminV1alphaListUserLinksResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>List of UserLinks. These will be ordered stably, but in an arbitrary order.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLinks")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaUserLink> UserLinks { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for ListWebDataStreams RPC.</summary> public class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>Results that matched the filter criteria and were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("webDataStreams")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaWebDataStream> WebDataStreams { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing a Google Analytics GA4 property.</summary> public class GoogleAnalyticsAdminV1alphaProperty : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Output only. Time when the entity was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary> /// The currency type used in reports involving monetary values. Format: https://en.wikipedia.org/wiki/ISO_4217 /// Examples: "USD", "EUR", "JPY" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("currencyCode")] public virtual string CurrencyCode { get; set; } /// <summary> /// Output only. If set, the time at which this property was trashed. If not set, then this property is not /// currently in the trash can. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("deleteTime")] public virtual object DeleteTime { get; set; } /// <summary> /// Required. Human-readable display name for this property. The max allowed display name length is 100 UTF-16 /// code units. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Output only. If set, the time at which this trashed property will be permanently deleted. If not set, then /// this property is not currently in the trash can and is not slated to be deleted. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("expireTime")] public virtual object ExpireTime { get; set; } /// <summary>Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK</summary> [Newtonsoft.Json.JsonPropertyAttribute("industryCategory")] public virtual string IndustryCategory { get; set; } /// <summary> /// Output only. Resource name of this property. Format: properties/{property_id} Example: "properties/1000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary> /// Immutable. Resource name of this property's logical parent. Note: The Property-Moving UI can be used to /// change the parent. Format: accounts/{account} Example: "accounts/100" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("parent")] public virtual string Parent { get; set; } /// <summary> /// Required. Reporting Time Zone, used as the day boundary for reports, regardless of where the data /// originates. If the time zone honors DST, Analytics will automatically adjust for the changes. NOTE: Changing /// the time zone only affects data going forward, and is not applied retroactively. Format: /// https://www.iana.org/time-zones Example: "America/Los_Angeles" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("timeZone")] public virtual string TimeZone { get; set; } /// <summary>Output only. Time when entity payload fields were last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A virtual resource representing metadata for an GA4 property.</summary> public class GoogleAnalyticsAdminV1alphaPropertySummary : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Display name for the property referred to in this account summary.</summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Resource name of property referred to by this property summary Format: properties/{property_id} Example: /// "properties/1000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("property")] public virtual string Property { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for ProvisionAccountTicket RPC.</summary> public class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The account to create.</summary> [Newtonsoft.Json.JsonPropertyAttribute("account")] public virtual GoogleAnalyticsAdminV1alphaAccount Account { get; set; } /// <summary> /// Redirect URI where the user will be sent after accepting Terms of Service. Must be configured in Developers /// Console as a Redirect URI /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("redirectUri")] public virtual string RedirectUri { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for ProvisionAccountTicket RPC.</summary> public class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The param to be passed in the ToS link.</summary> [Newtonsoft.Json.JsonPropertyAttribute("accountTicketId")] public virtual string AccountTicketId { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for SearchChangeHistoryEvents RPC.</summary> public class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Optional. If set, only return changes that match one or more of these types of actions.</summary> [Newtonsoft.Json.JsonPropertyAttribute("action")] public virtual System.Collections.Generic.IList<string> Action { get; set; } /// <summary>Optional. If set, only return changes if they are made by a user in this list.</summary> [Newtonsoft.Json.JsonPropertyAttribute("actorEmail")] public virtual System.Collections.Generic.IList<string> ActorEmail { get; set; } /// <summary>Optional. If set, only return changes made after this time (inclusive).</summary> [Newtonsoft.Json.JsonPropertyAttribute("earliestChangeTime")] public virtual object EarliestChangeTime { get; set; } /// <summary>Optional. If set, only return changes made before this time (inclusive).</summary> [Newtonsoft.Json.JsonPropertyAttribute("latestChangeTime")] public virtual object LatestChangeTime { get; set; } /// <summary> /// Optional. The maximum number of ChangeHistoryEvent items to return. The service may return fewer than this /// value, even if there are additional pages. If unspecified, at most 50 items will be returned. The maximum /// value is 200 (higher values will be coerced to the maximum). /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageSize")] public virtual System.Nullable<int> PageSize { get; set; } /// <summary> /// Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. Provide this to retrieve /// the subsequent page. When paginating, all other parameters provided to `SearchChangeHistoryEvents` must /// match the call that provided the page token. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("pageToken")] public virtual string PageToken { get; set; } /// <summary> /// Optional. Resource name for a child property. If set, only return changes made to this property or its child /// resources. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("property")] public virtual string Property { get; set; } /// <summary> /// Optional. If set, only return changes if they are for a resource that matches at least one of these types. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("resourceType")] public virtual System.Collections.Generic.IList<string> ResourceType { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Response message for SearchAccounts RPC.</summary> public class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Results that were accessible to the caller.</summary> [Newtonsoft.Json.JsonPropertyAttribute("changeHistoryEvents")] public virtual System.Collections.Generic.IList<GoogleAnalyticsAdminV1alphaChangeHistoryEvent> ChangeHistoryEvents { get; set; } /// <summary> /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no /// subsequent pages. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("nextPageToken")] public virtual string NextPageToken { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>Request message for UpdateUserLink RPC.</summary> public class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Required. The user link to update.</summary> [Newtonsoft.Json.JsonPropertyAttribute("userLink")] public virtual GoogleAnalyticsAdminV1alphaUserLink UserLink { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing a user's permissions on an Account or Property resource.</summary> public class GoogleAnalyticsAdminV1alphaUserLink : Google.Apis.Requests.IDirectResponseSchema { /// <summary> /// Roles directly assigned to this user for this account or property. Valid values: predefinedRoles/read /// predefinedRoles/collaborate predefinedRoles/edit predefinedRoles/manage-users Excludes roles that are /// inherited from a higher-level entity, group, or organization admin role. A UserLink that is updated to have /// an empty list of direct_roles will be deleted. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("directRoles")] public virtual System.Collections.Generic.IList<string> DirectRoles { get; set; } /// <summary>Email address of the user to link</summary> [Newtonsoft.Json.JsonPropertyAttribute("emailAddress")] public virtual string EmailAddress { get; set; } /// <summary>Example format: properties/1234/userLinks/5678</summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary>A resource message representing a Google Analytics web stream.</summary> public class GoogleAnalyticsAdminV1alphaWebDataStream : Google.Apis.Requests.IDirectResponseSchema { /// <summary>Output only. Time when this stream was originally created.</summary> [Newtonsoft.Json.JsonPropertyAttribute("createTime")] public virtual object CreateTime { get; set; } /// <summary> /// Immutable. Domain name of the web app being measured, or empty. Example: "http://www.google.com", /// "https://www.google.com" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("defaultUri")] public virtual string DefaultUri { get; set; } /// <summary> /// Required. Human-readable display name for the Data Stream. The max allowed display name length is 100 UTF-16 /// code units. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("displayName")] public virtual string DisplayName { get; set; } /// <summary> /// Output only. ID of the corresponding web app in Firebase, if any. This ID can change if the web app is /// deleted and recreated. /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("firebaseAppId")] public virtual string FirebaseAppId { get; set; } /// <summary> /// Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-1A2BCD345E" would just be /// "1A2BCD345E" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("measurementId")] public virtual string MeasurementId { get; set; } /// <summary> /// Output only. Resource name of this Data Stream. Format: properties/{property_id}/webDataStreams/{stream_id} /// Example: "properties/1000/webDataStreams/2000" /// </summary> [Newtonsoft.Json.JsonPropertyAttribute("name")] public virtual string Name { get; set; } /// <summary>Output only. Time when stream payload fields were last updated.</summary> [Newtonsoft.Json.JsonPropertyAttribute("updateTime")] public virtual object UpdateTime { get; set; } /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } /// <summary> /// A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical /// example is to use it as the request or the response type of an API method. For instance: service Foo { rpc /// Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON /// object `{}`. /// </summary> public class GoogleProtobufEmpty : Google.Apis.Requests.IDirectResponseSchema { /// <summary>The ETag of the item.</summary> public virtual string ETag { get; set; } } }
50.443441
244
0.589449
[ "Apache-2.0" ]
arithmetic1728/google-api-dotnet-client
Src/Generated/Google.Apis.GoogleAnalyticsAdmin.v1alpha/Google.Apis.GoogleAnalyticsAdmin.v1alpha.cs
268,006
C#
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace org.camunda.bpm.engine.@delegate { /// /// <summary> /// @author Daniel Meyer /// @author Roman Smirnov /// @author Sebastian Menski /// /// </summary> public interface BaseDelegateExecution : VariableScope { /// <summary> /// Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states. </summary> string Id {get;} /// <summary> /// The <seealso cref="ExecutionListener.EVENTNAME_START event name"/> in case this execution is passed in for an <seealso cref="ExecutionListener"/> </summary> string EventName {get;} /// <summary> /// The business key for the root execution (e.g. process instance). /// </summary> string BusinessKey {get;} } }
35.909091
163
0.721519
[ "Apache-2.0" ]
luizfbicalho/Camunda.NET
camunda-bpm-platform-net/engine/src/main/java/org/camunda/bpm/engine/delegate/BaseDelegateExecution.cs
1,582
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("NamedFontSizes.WinPhone")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NamedFontSizes.WinPhone")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("65077432-0c92-466b-b68d-911a8ec84f1d")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: NeutralResourcesLanguageAttribute("en-US")]
38.368421
84
0.755144
[ "Apache-2.0" ]
NoleHealth/xamarin-forms-book-preview-2
Chapter03/NamedFontSizes/NamedFontSizes/NamedFontSizes.WinPhone/Properties/AssemblyInfo.cs
1,461
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ScratchNet { public class SizeExpression : Expression { public override string ReturnType { get { return "number"; } } protected override Completion ExecuteImpl(ExecutionEnvironment enviroment) { Sprite sp = enviroment.GetValue("$$INSTANCE$$") as Sprite; return new Completion(sp.Size); } public override Descriptor Descriptor { get { Descriptor desc = new Descriptor(); desc.Add(new TextItemDescriptor(this, "Size")); return desc; } } public override string Type { get { return "XPositionExpression"; } } public bool IsClosing { get { return false; } } } }
22.804878
82
0.53369
[ "MIT" ]
HenJigg/WPF-Blocky
demo/ScratchNet/appearance/SizeExpression.cs
937
C#
using System; using System.Collections.Generic; namespace FieldVisitHotFolderService { public class Context { public string Server { get; set; } public string Username { get; set; } = "admin"; public string Password { get; set; } = "admin"; public string HotFolderPath { get; set; } public string FileMask { get; set; } public string ProcessingFolder { get; set; } = "Processing"; public string UploadedFolder { get; set; } = "Uploaded"; public string PartialFolder { get; set; } = "PartialUploads"; public string ArchivedFolder { get; set; } = "Archived"; public string FailedFolder { get; set; } = "Failed"; public TimeSpan FileQuietDelay { get; set; } = TimeSpan.FromSeconds(5); public TimeSpan FileScanInterval { get; set; } = TimeSpan.FromMinutes(1); public int MaximumConnectionAttempts { get; set; } = 3; public TimeSpan ConnectionRetryDelay { get; set; } = TimeSpan.FromMinutes(1); public MergeMode MergeMode { get; set; } = MergeMode.Skip; public bool OverlapIncludesWholeDay { get; set; } public int MaximumConcurrentRequests { get; set; } = Environment.ProcessorCount; public int? MaximumFileCount { get; set; } public TimeSpan? MaximumFileWaitInterval { get; set; } public int MaximumDuplicateRetry { get; set; } = 3; public Dictionary<string, string> LocationAliases { get; } = new Dictionary<string, string>(StringComparer.CurrentCultureIgnoreCase); public TimeSpan MaximumVisitDuration { get; set; } = TimeSpan.FromDays(1.25); public bool DryRun { get; set; } public Dictionary<string, Dictionary<string,string>> PluginSettings { get; } = new Dictionary<string, Dictionary<string, string>>(StringComparer.InvariantCultureIgnoreCase); } }
54.676471
181
0.668101
[ "Apache-2.0" ]
RamonRakowAI/aquarius-field-data-framework
src/FieldVisitHotFolderService/Context.cs
1,861
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class HitPS : VolatilizeVisualEffect { }
16
43
0.820313
[ "MIT" ]
kevin41307/Pong
Assets/Scripts/HitPS.cs
128
C#
// <copyright file="NotificationDataRepository.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // </copyright> namespace Microsoft.Teams.Apps.DIConnect.Common.Repositories.NotificationData { using System; using System.Collections.Generic; using System.Threading.Tasks; using Microsoft.Azure.Cosmos.Table; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; /// <summary> /// Repository of the notification data in the table storage. /// </summary> public class NotificationDataRepository : BaseRepository<NotificationDataEntity> { /// <summary> /// Initializes a new instance of the <see cref="NotificationDataRepository"/> class. /// </summary> /// <param name="logger">The logging service.</param> /// <param name="repositoryOptions">Options used to create the repository.</param> /// <param name="tableRowKeyGenerator">Table row key generator service.</param> public NotificationDataRepository( ILogger<NotificationDataRepository> logger, IOptions<RepositoryOptions> repositoryOptions, TableRowKeyGenerator tableRowKeyGenerator) : base( logger, storageAccountConnectionString: repositoryOptions.Value.StorageAccountConnectionString, tableName: NotificationDataTableNames.TableName, defaultPartitionKey: NotificationDataTableNames.DraftNotificationsPartition, ensureTableExists: repositoryOptions.Value.EnsureTableExists) { this.TableRowKeyGenerator = tableRowKeyGenerator; } /// <summary> /// Gets table row key generator. /// </summary> public TableRowKeyGenerator TableRowKeyGenerator { get; } /// <summary> /// Get all draft notification entities from the table storage. /// </summary> /// <returns>All draft notification entities.</returns> public async Task<IEnumerable<NotificationDataEntity>> GetAllDraftNotificationsAsync() { string strFilter = TableQuery.GenerateFilterConditionForBool("IsScheduled", QueryComparisons.Equal, false); var result = await this.GetWithFilterAsync(strFilter, NotificationDataTableNames.DraftNotificationsPartition); return result; } /// <summary> /// Get all scheduled notification entities from the table storage. Scheduled notifications are draft notifications with IsScheduled equal true /// </summary> /// <returns>All scheduled notification entities.</returns> public async Task<IEnumerable<NotificationDataEntity>> GetAllScheduledNotificationsAsync() { string strFilter = TableQuery.GenerateFilterConditionForBool("IsScheduled", QueryComparisons.Equal, true); var result = await this.GetWithFilterAsync(strFilter, NotificationDataTableNames.DraftNotificationsPartition); return result; } /// <summary> /// Get all pending scheduled notification entities from the table storage. Pending Scheduled notifications are draft notifications with IsScheduled equal true and scheduled date previous than now /// </summary> /// <returns>All pending scheduled notification entities.</returns> public async Task<IEnumerable<NotificationDataEntity>> GetAllPendingScheduledNotificationsAsync() { DateTime now = DateTime.UtcNow; string filter1 = TableQuery.GenerateFilterConditionForBool("IsScheduled", QueryComparisons.Equal, true); string filter2 = TableQuery.GenerateFilterConditionForDate("ScheduledDate", QueryComparisons.LessThanOrEqual, now); string filter = TableQuery.CombineFilters(filter1, TableOperators.And, filter2); var result = await this.GetWithFilterAsync(filter, NotificationDataTableNames.DraftNotificationsPartition); return result; } /// <summary> /// Get the top 25 most recently sent notification entities from the table storage. /// </summary> /// <returns>The top 25 most recently sent notification entities.</returns> public async Task<IEnumerable<NotificationDataEntity>> GetMostRecentSentNotificationsAsync() { var result = await this.GetAllAsync(NotificationDataTableNames.SentNotificationsPartition, 25); return result; } /// <summary> /// Move a draft notification from draft to sent partition. /// </summary> /// <param name="draftNotificationEntity">The draft notification instance to be moved to the sent partition.</param> /// <returns>The new SentNotification ID.</returns> public async Task<string> MoveDraftToSentPartitionAsync(NotificationDataEntity draftNotificationEntity) { try { if (draftNotificationEntity == null) { throw new ArgumentNullException(nameof(draftNotificationEntity)); } var newSentNotificationId = this.TableRowKeyGenerator.CreateNewKeyOrderingMostRecentToOldest(); // Create a sent notification based on the draft notification. var sentNotificationEntity = new NotificationDataEntity { PartitionKey = NotificationDataTableNames.SentNotificationsPartition, RowKey = newSentNotificationId, Id = newSentNotificationId, Title = draftNotificationEntity.Title, ImageLink = draftNotificationEntity.ImageLink, Summary = draftNotificationEntity.Summary, Author = draftNotificationEntity.Author, ButtonTitle = draftNotificationEntity.ButtonTitle, ButtonLink = draftNotificationEntity.ButtonLink, CreatedBy = draftNotificationEntity.CreatedBy, CreatedDate = draftNotificationEntity.CreatedDate, SentDate = null, IsDraft = false, Teams = draftNotificationEntity.Teams, Rosters = draftNotificationEntity.Rosters, Groups = draftNotificationEntity.Groups, AllUsers = draftNotificationEntity.AllUsers, MessageVersion = draftNotificationEntity.MessageVersion, Succeeded = 0, Failed = 0, Throttled = 0, TotalMessageCount = draftNotificationEntity.TotalMessageCount, SendingStartedDate = DateTime.UtcNow, Status = NotificationStatus.Queued.ToString(), }; await this.CreateOrUpdateAsync(sentNotificationEntity); // Delete the draft notification. await this.DeleteAsync(draftNotificationEntity); return newSentNotificationId; } catch (Exception ex) { this.Logger.LogError(ex, ex.Message); throw; } } /// <summary> /// Duplicate an existing draft notification. /// </summary> /// <param name="notificationEntity">The notification entity to be duplicated.</param> /// <param name="createdBy">Created by.</param> /// <returns>A task that represents the work queued to execute.</returns> public async Task DuplicateDraftNotificationAsync( NotificationDataEntity notificationEntity, string createdBy) { try { var newId = this.TableRowKeyGenerator.CreateNewKeyOrderingOldestToMostRecent(); var newNotificationEntity = new NotificationDataEntity { PartitionKey = NotificationDataTableNames.DraftNotificationsPartition, RowKey = newId, Id = newId, Title = notificationEntity.Title, ImageLink = notificationEntity.ImageLink, Summary = notificationEntity.Summary, Author = notificationEntity.Author, ButtonTitle = notificationEntity.ButtonTitle, ButtonLink = notificationEntity.ButtonLink, CreatedBy = createdBy, CreatedDate = DateTime.UtcNow, IsDraft = true, Teams = notificationEntity.Teams, Groups = notificationEntity.Groups, Rosters = notificationEntity.Rosters, AllUsers = notificationEntity.AllUsers, }; await this.CreateOrUpdateAsync(newNotificationEntity); } catch (Exception ex) { this.Logger.LogError(ex, ex.Message); throw; } } /// <summary> /// Updates notification status. /// </summary> /// <param name="notificationId">Notificaion Id.</param> /// <param name="status">Status.</param> /// <returns><see cref="Task"/> representing the asynchronous operation.</returns> public async Task UpdateNotificationStatusAsync(string notificationId, NotificationStatus status) { var notificationDataEntity = await this.GetAsync( NotificationDataTableNames.SentNotificationsPartition, notificationId); if (notificationDataEntity != null) { notificationDataEntity.Status = status.ToString(); await this.CreateOrUpdateAsync(notificationDataEntity); } } /// <summary> /// Save exception error message in a notification data entity. /// </summary> /// <param name="notificationDataEntityId">Notification data entity id.</param> /// <param name="errorMessage">Error message.</param> /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> public async Task SaveExceptionInNotificationDataEntityAsync( string notificationDataEntityId, string errorMessage) { var notificationDataEntity = await this.GetAsync( NotificationDataTableNames.SentNotificationsPartition, notificationDataEntityId); if (notificationDataEntity != null) { notificationDataEntity.ErrorMessage = this.AppendNewLine(notificationDataEntity.ErrorMessage, errorMessage); notificationDataEntity.Status = NotificationStatus.Failed.ToString(); // Set the end date as current date. notificationDataEntity.SentDate = DateTime.UtcNow; await this.CreateOrUpdateAsync(notificationDataEntity); } } /// <summary> /// Save warning message in a notification data entity. /// </summary> /// <param name="notificationDataEntityId">Notification data entity id.</param> /// <param name="warningMessage">Warning message to be saved.</param> /// <returns>A <see cref="Task"/> representing the result of the asynchronous operation.</returns> public async Task SaveWarningInNotificationDataEntityAsync( string notificationDataEntityId, string warningMessage) { try { var notificationDataEntity = await this.GetAsync( NotificationDataTableNames.SentNotificationsPartition, notificationDataEntityId); if (notificationDataEntity != null) { notificationDataEntity.WarningMessage = this.AppendNewLine(notificationDataEntity.WarningMessage, warningMessage); await this.CreateOrUpdateAsync(notificationDataEntity); } } catch (Exception ex) { this.Logger.LogError(ex, ex.Message); throw; } } private string AppendNewLine(string originalString, string newString) { return string.IsNullOrWhiteSpace(originalString) ? newString : $"{originalString}{Environment.NewLine}{newString}"; } } }
45.633094
204
0.616033
[ "MIT" ]
cristianoag/microsoft-teams-apps-diversityandinclusion-dev
Source/DIConnect.Common/Repositories/NotificationData/NotificationDataRepository.cs
12,688
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the devicefarm-2015-06-23.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.DeviceFarm.Model { /// <summary> /// The result of the purchase offering (for example, success or failure). /// </summary> public partial class PurchaseOfferingResponse : AmazonWebServiceResponse { private OfferingTransaction _offeringTransaction; /// <summary> /// Gets and sets the property OfferingTransaction. /// <para> /// Represents the offering transaction for the purchase result. /// </para> /// </summary> public OfferingTransaction OfferingTransaction { get { return this._offeringTransaction; } set { this._offeringTransaction = value; } } // Check to see if OfferingTransaction property is set internal bool IsSetOfferingTransaction() { return this._offeringTransaction != null; } } }
31.553571
108
0.680815
[ "Apache-2.0" ]
NGL321/aws-sdk-net
sdk/src/Services/DeviceFarm/Generated/Model/PurchaseOfferingResponse.cs
1,767
C#
using System.Collections.Generic; using System.Linq; using Klei.AI; namespace Database { public class PlantMutations : ResourceSet<PlantMutation> { public PlantMutation moderatelyLoose; public PlantMutation moderatelyTight; public PlantMutation extremelyTight; public PlantMutation bonusLice; public PlantMutation sunnySpeed; public PlantMutation slowBurn; public PlantMutation blooms; public PlantMutation loadedWithFruit; public PlantMutation heavyFruit; public PlantMutation rottenHeaps; public PlantMutation AddPlantMutation(string id) { StringEntry stringEntry = Strings.Get(new StringKey("STRINGS.CREATURES.PLANT_MUTATIONS." + id.ToUpper() + ".NAME")); StringEntry stringEntry2 = Strings.Get(new StringKey("STRINGS.CREATURES.PLANT_MUTATIONS." + id.ToUpper() + ".DESCRIPTION")); PlantMutation plantMutation = new PlantMutation(id, stringEntry, stringEntry2); Add(plantMutation); return plantMutation; } public PlantMutations(ResourceSet parent) : base("PlantMutations", parent) { moderatelyLoose = AddPlantMutation("moderatelyLoose").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.WiltTempRangeMod, 0.5f, multiplier: true).AttributeModifier(Db.Get().PlantAttributes.YieldAmount, -0.25f, multiplier: true) .AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, -0.5f, multiplier: true) .VisualTint(-0.4f, -0.4f, -0.4f); moderatelyTight = AddPlantMutation("moderatelyTight").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.WiltTempRangeMod, -0.5f, multiplier: true).AttributeModifier(Db.Get().PlantAttributes.YieldAmount, 0.5f, multiplier: true) .VisualTint(0.2f, 0.2f, 0.2f); extremelyTight = AddPlantMutation("extremelyTight").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.WiltTempRangeMod, -0.8f, multiplier: true).AttributeModifier(Db.Get().PlantAttributes.YieldAmount, 1f, multiplier: true) .VisualTint(0.3f, 0.3f, 0.3f) .VisualBGFX("mutate_glow_fx_kanim"); bonusLice = AddPlantMutation("bonusLice").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, 0.25f, multiplier: true).BonusCrop("BasicPlantFood", 1f) .VisualSymbolOverride("snapTo_mutate1", "mutate_snaps_kanim", "meal_lice_mutate1") .VisualSymbolOverride("snapTo_mutate2", "mutate_snaps_kanim", "meal_lice_mutate2") .AddSoundEvent(GlobalAssets.GetSound("Plant_mutation_MealLice")); sunnySpeed = AddPlantMutation("sunnySpeed").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.MinLightLux, 1000f).AttributeModifier(Db.Get().Amounts.Maturity.maxAttribute, -0.5f, multiplier: true) .AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, 0.25f, multiplier: true) .VisualSymbolOverride("snapTo_mutate1", "mutate_snaps_kanim", "leaf_mutate1") .VisualSymbolOverride("snapTo_mutate2", "mutate_snaps_kanim", "leaf_mutate2") .AddSoundEvent(GlobalAssets.GetSound("Plant_mutation_Leaf")); slowBurn = AddPlantMutation("slowBurn").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, -0.9f, multiplier: true).AttributeModifier(Db.Get().Amounts.Maturity.maxAttribute, 3.5f, multiplier: true) .VisualTint(-0.3f, -0.3f, -0.5f); blooms = AddPlantMutation("blooms").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().BuildingAttributes.Decor, 20f).VisualSymbolOverride("snapTo_mutate1", "mutate_snaps_kanim", "blossom_mutate1") .VisualSymbolOverride("snapTo_mutate2", "mutate_snaps_kanim", "blossom_mutate2") .AddSoundEvent(GlobalAssets.GetSound("Plant_mutation_PrickleFlower")); loadedWithFruit = AddPlantMutation("loadedWithFruit").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.YieldAmount, 1f, multiplier: true).AttributeModifier(Db.Get().PlantAttributes.HarvestTime, 4f, multiplier: true) .AttributeModifier(Db.Get().PlantAttributes.MinLightLux, 200f) .AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, 0.2f, multiplier: true) .VisualSymbolScale("swap_crop01", 1.3f) .VisualSymbolScale("swap_crop02", 1.3f); rottenHeaps = AddPlantMutation("rottenHeaps").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().Amounts.Maturity.maxAttribute, -0.75f, multiplier: true).AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, 0.5f, multiplier: true) .BonusCrop(RotPileConfig.ID, 4f) .AddDiseaseToHarvest(Db.Get().Diseases.GetIndex(Db.Get().Diseases.FoodGerms.Id), 10000) .ForcePrefersDarkness() .RestrictPrefabID("GasGrass") .VisualFGFX("mutate_stink_fx_kanim") .VisualSymbolTint("swap_crop01", -0.2f, -0.1f, -0.5f) .VisualSymbolTint("swap_crop02", -0.2f, -0.1f, -0.5f); heavyFruit = AddPlantMutation("heavyFruit").AttributeModifier(Db.Get().PlantAttributes.MinRadiationThreshold, 25f).AttributeModifier(Db.Get().PlantAttributes.FertilizerUsageMod, 0.25f, multiplier: true).ForceSelfHarvestOnGrown() .VisualSymbolTint("swap_crop01", -0.1f, -0.5f, -0.5f) .VisualSymbolTint("swap_crop02", -0.1f, -0.5f, -0.5f); } public List<string> GetNamesForMutations(List<string> mutationIDs) { List<string> list = new List<string>(mutationIDs.Count); foreach (string mutationID in mutationIDs) { list.Add(Get(mutationID).Name); } return list; } public PlantMutation GetRandomMutation(string targetPlantPrefabID) { return resources.Where((PlantMutation m) => !m.originalMutation && !m.restrictedPrefabIDs.Contains(targetPlantPrefabID) && (m.requiredPrefabIDs.Count == 0 || m.requiredPrefabIDs.Contains(targetPlantPrefabID))).ToList().GetRandom(); } } }
62.402062
294
0.778787
[ "MIT" ]
undancer/oni-data
Managed/main/Database/PlantMutations.cs
6,053
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // NullableLongSumAggregationOperator.cs // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Collections.Generic; using System.Diagnostics; using System.Threading; namespace System.Linq.Parallel { /// <summary> /// An inlined sum aggregation and its enumerator, for Nullable longs. /// </summary> internal sealed class NullableLongSumAggregationOperator : InlinedAggregationOperator<long?, long?, long?> { //--------------------------------------------------------------------------------------- // Constructs a new instance of a sum associative operator. // internal NullableLongSumAggregationOperator(IEnumerable<long?> child) : base(child) { } //--------------------------------------------------------------------------------------- // Executes the entire query tree, and aggregates the intermediate results into the // final result based on the binary operators and final reduction. // // Return Value: // The single result of aggregation. // protected override long? InternalAggregate(ref Exception singularExceptionToThrow) { // Because the final reduction is typically much cheaper than the intermediate // reductions over the individual partitions, and because each parallel partition // will do a lot of work to produce a single output element, we prefer to turn off // pipelining, and process the final reductions serially. using (IEnumerator<long?> enumerator = GetEnumerator(ParallelMergeOptions.FullyBuffered, true)) { // We just reduce the elements in each output partition. long sum = 0L; while (enumerator.MoveNext()) { checked { sum += enumerator.Current.GetValueOrDefault(); } } return sum; } } //--------------------------------------------------------------------------------------- // Creates an enumerator that is used internally for the final aggregation step. // protected override QueryOperatorEnumerator<long?, int> CreateEnumerator<TKey>( int index, int count, QueryOperatorEnumerator<long?, TKey> source, object sharedData, CancellationToken cancellationToken) { return new NullableLongSumAggregationOperatorEnumerator<TKey>(source, index, cancellationToken); } //--------------------------------------------------------------------------------------- // This enumerator type encapsulates the intermediary aggregation over the underlying // (possibly partitioned) data source. // private class NullableLongSumAggregationOperatorEnumerator<TKey> : InlinedAggregationOperatorEnumerator<long?> { private readonly QueryOperatorEnumerator<long?, TKey> _source; // The source data. //--------------------------------------------------------------------------------------- // Instantiates a new aggregation operator. // internal NullableLongSumAggregationOperatorEnumerator(QueryOperatorEnumerator<long?, TKey> source, int partitionIndex, CancellationToken cancellationToken) : base(partitionIndex, cancellationToken) { Debug.Assert(source != null); _source = source; } //--------------------------------------------------------------------------------------- // Tallies up the sum of the underlying data source, walking the entire thing the first // time MoveNext is called on this object. // protected override bool MoveNextCore(ref long? currentElement) { long? element = default(long?); TKey keyUnused = default(TKey); QueryOperatorEnumerator<long?, TKey> source = _source; if (source.MoveNext(ref element, ref keyUnused)) { // We just scroll through the enumerator and accumulate the sum. long tempSum = 0L; int i = 0; do { if ((i++ & CancellationState.POLL_INTERVAL) == 0) CancellationState.ThrowIfCanceled(_cancellationToken); checked { tempSum += element.GetValueOrDefault(); } } while (source.MoveNext(ref element, ref keyUnused)); // The sum has been calculated. Now just return. currentElement = tempSum; return true; } return false; } //--------------------------------------------------------------------------------------- // Dispose of resources associated with the underlying enumerator. // protected override void Dispose(bool disposing) { Debug.Assert(_source != null); _source.Dispose(); } } } }
41.214286
130
0.487175
[ "MIT" ]
2E0PGS/corefx
src/System.Linq.Parallel/src/System/Linq/Parallel/QueryOperators/Inlined/NullableLongSumAggregationOperator.cs
5,770
C#
using MongoDB.Driver; using System; using System.Collections.Generic; using System.Threading.Tasks; using TaskoMask.Domain.Core.Data; using TaskoMask.Domain.Core.Models; using TaskoMask.Infrastructure.Data.Common.DbContext; namespace TaskoMask.Infrastructure.Data.Common.Repositories { public class BaseRepository<TEntity> : IBaseRepository<TEntity> where TEntity : BaseEntity { #region Fields private readonly IMongoCollection<TEntity> _collection; #endregion #region Ctors public BaseRepository(IMongoDbContext dbContext) { _collection = dbContext.GetCollection<TEntity>(); } #endregion #region Public Methods /// <summary> /// /// </summary> public virtual async Task CreateAsync(TEntity entity) { await _collection.InsertOneAsync(entity); } /// <summary> /// /// </summary> public virtual async Task UpdateAsync(TEntity entity) { await _collection.ReplaceOneAsync(p => p.Id == entity.Id, entity, new ReplaceOptions() { IsUpsert = false }); } /// <summary> /// /// </summary> public virtual async Task<TEntity> GetByIdAsync(string id) { return await _collection.Find(e => e.Id == id).FirstOrDefaultAsync(); } /// <summary> /// /// </summary> public virtual async Task<IEnumerable<TEntity>> GetListAsync() { return await _collection.AsQueryable().ToListAsync(); } /// <summary> /// /// </summary> public virtual async Task<long> CountAsync() { return await _collection.CountDocumentsAsync(f => true); } /// <summary> /// /// </summary> public void Dispose() { // Db.Dispose(); GC.SuppressFinalize(this); } #endregion #region Private Methods #endregion } }
20.89
121
0.558162
[ "MIT" ]
GhalamborM/TaskoMask
Src/Libraries/1-Infrastructure/Infrastructure.Data/Common/Repositories/BaseRepository.cs
2,091
C#
using System; class NullValuesArithmetic { static void Main() { string firstName = "Georgi"; string middleName = "Peshov"; string lastname = "Ivanov"; long balance = 123456789; string bankName = "UniCredit Bulbank "; string iBan = "BG67UNCR90874638205765"; string firstCreditCard = "3714496353984318"; string secondCreditCard = "4568191645456143"; string thirdCreditCard = "5531452832147691"; } }
28.764706
53
0.627812
[ "MIT" ]
Supbads/Softuni-Education
00. Basics/03. CSharpTypes/BankAccountData/BankAccountData.cs
491
C#
using System; using System.Collections.Generic; using System.Runtime.Serialization; namespace ToeKnife.Common.Transport { /// <summary> /// Represents a serialised object with basic features similar to XML. /// </summary> [Serializable] public class SerialisedObject : ISerializable { /// <summary> /// The name of the object /// </summary> public string Name { get; set; } /// <summary> /// The properties (or attributes) of the object /// </summary> public List<KeyValuePair<string, string>> Properties { get; set; } /// <summary> /// A list of child objects /// </summary> public List<SerialisedObject> Children { get; set; } public SerialisedObject(string name) { Name = name; Properties = new List<KeyValuePair<string, string>>(); Children = new List<SerialisedObject>(); } protected SerialisedObject(SerializationInfo info, StreamingContext context) { Name = info.GetString("Name"); Properties = (List<KeyValuePair<string, string>>) info.GetValue("Properties", typeof(List<KeyValuePair<string, string>>)); Children = (List<SerialisedObject>) info.GetValue("Children", typeof(List<SerialisedObject>)); } public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("Name", Name); info.AddValue("Properties", Properties); info.AddValue("Children", Children); } } }
32.22
134
0.60149
[ "BSD-3-Clause" ]
The-Next-Big-Team/ToeKnife
ToeKnife.Common/Transport/SerialisedObject.cs
1,613
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Seclusion.Droid")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Seclusion.Droid")] [assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
34.419355
84
0.741331
[ "MIT" ]
slimCODE/slim-lib
src/samples/Seclusion/Seclusion.Droid/Properties/AssemblyInfo.cs
1,070
C#
using EPiServer.Framework; using EPiServer.Framework.Initialization; using EPiServer.ServiceLocation; using EPiServer.Web; namespace AdvancedExternalReviews.BlocksPreview { /// <summary> /// Module for support external blocks rendering. /// </summary> [ModuleDependency(typeof(EPiServer.Web.InitializationModule))] public class BlockPreviewInitialization : IInitializableModule { public void Initialize(InitializationEngine context) { context.Locate.TemplateResolver() .TemplateResolved += BlocksTemplateCoordinator.OnTemplateResolved; } public void Uninitialize(InitializationEngine context) { ServiceLocator.Current.GetInstance<TemplateResolver>() .TemplateResolved -= BlocksTemplateCoordinator.OnTemplateResolved; } public void Preload(string[] parameters) { } } }
29.935484
82
0.688578
[ "Apache-2.0" ]
Halloweenh20/advanced-reviews
src/external-reviews/BlocksPreview/BlockPreviewInitialization.cs
930
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ce-2017-10-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CostExplorer.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CostExplorer.Model.Internal.MarshallTransformations { /// <summary> /// GetUsageForecast Request Marshaller /// </summary> public class GetUsageForecastRequestMarshaller : IMarshaller<IRequest, GetUsageForecastRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetUsageForecastRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetUsageForecastRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CostExplorer"); string target = "AWSInsightsIndexService.GetUsageForecast"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-10-25"; request.HttpMethod = "POST"; request.ResourcePath = "/"; request.MarshallerVersion = 2; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("Filter"); context.Writer.WriteObjectStart(); var marshaller = ExpressionMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetGranularity()) { context.Writer.WritePropertyName("Granularity"); context.Writer.Write(publicRequest.Granularity); } if(publicRequest.IsSetMetric()) { context.Writer.WritePropertyName("Metric"); context.Writer.Write(publicRequest.Metric); } if(publicRequest.IsSetPredictionIntervalLevel()) { context.Writer.WritePropertyName("PredictionIntervalLevel"); context.Writer.Write(publicRequest.PredictionIntervalLevel); } if(publicRequest.IsSetTimePeriod()) { context.Writer.WritePropertyName("TimePeriod"); context.Writer.WriteObjectStart(); var marshaller = DateIntervalMarshaller.Instance; marshaller.Marshall(publicRequest.TimePeriod, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static GetUsageForecastRequestMarshaller _instance = new GetUsageForecastRequestMarshaller(); internal static GetUsageForecastRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetUsageForecastRequestMarshaller Instance { get { return _instance; } } } }
36.043165
147
0.603393
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/CostExplorer/Generated/Model/Internal/MarshallTransformations/GetUsageForecastRequestMarshaller.cs
5,010
C#
using System; using System.Collections.Generic; using Microsoft.AspNetCore.Identity; namespace IdentitySample.Authentication.Entities { public class ApplicationUser : IdentityUser<Guid> { public string FirstName { get; set; } public string LastName { get; set; } public string RefreshToken { get; set; } public DateTime? RefreshTokenExpirationDate { get; set; } public virtual ICollection<ApplicationUserRole> UserRoles { get; set; } } }
24.8
79
0.697581
[ "MIT" ]
diegosilvestri/IdentitySample
IdentitySample/IdentitySample.Authentication/Entities/ApplicationUser.cs
498
C#
using System; using RabbitMQ.Client; using System.Text; class NewTask { public static void Main(string[] args) { var factory = new ConnectionFactory() { HostName = "localhost" }; using(var connection = factory.CreateConnection()) using(var channel = connection.CreateModel()) { channel.QueueDeclare(queue: "task_queue", durable: true, exclusive: false, autoDelete: false, arguments: null); var message = GetMessage(args); var body = Encoding.UTF8.GetBytes(message); var properties = channel.CreateBasicProperties(); properties.SetPersistent(true); channel.BasicPublish(exchange: "", routingKey: "task_queue", basicProperties: properties, body: body); Console.WriteLine(" [x] Sent {0}", message); } Console.WriteLine(" Press [enter] to exit."); Console.ReadLine(); } private static string GetMessage(string[] args) { return ((args.Length > 0) ? string.Join(" ", args) : "Hello World!"); } }
31.411765
123
0.617978
[ "Apache-2.0" ]
Leslie1sMe/rabbitmq-tutorials
dotnet/NewTask/NewTask.cs
1,068
C#
using YAF.Lucene.Net.Analysis.TokenAttributes; namespace YAF.Lucene.Net.Analysis.Hi { /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /// <summary> /// A <see cref="TokenFilter"/> that applies <see cref="HindiNormalizer"/> to normalize the /// orthography. /// <para> /// In some cases the normalization may cause unrelated terms to conflate, so /// to prevent terms from being normalized use an instance of /// <see cref="Miscellaneous.SetKeywordMarkerFilter"/> or a custom <see cref="TokenFilter"/> that sets /// the <see cref="KeywordAttribute"/> before this <see cref="TokenStream"/>. /// </para> /// </summary> /// <seealso cref="HindiNormalizer"/> public sealed class HindiNormalizationFilter : TokenFilter { private readonly HindiNormalizer normalizer = new HindiNormalizer(); private readonly ICharTermAttribute termAtt; private readonly IKeywordAttribute keywordAtt; public HindiNormalizationFilter(TokenStream input) : base(input) { termAtt = AddAttribute<ICharTermAttribute>(); keywordAtt = AddAttribute<IKeywordAttribute>(); } public override bool IncrementToken() { if (m_input.IncrementToken()) { if (!keywordAtt.IsKeyword) { termAtt.Length = normalizer.Normalize(termAtt.Buffer, termAtt.Length); } return true; } return false; } } }
40.372881
107
0.638539
[ "Apache-2.0" ]
AlbertoP57/YAFNET
yafsrc/Lucene.Net/Lucene.Net.Analysis.Common/Analysis/Hi/HindiNormalizationFilter.cs
2,326
C#
using Org.Codecop.Dependencies.ExtractAndOverrideCall; using Xunit; namespace Org.Codecop.Dependencies.ExtractAndOverrideCall.Tests { public class CheckoutTest { [Fact] public void Test3() { var checkout = new Checkout(); checkout.CreateReceipt(new Money(12)); Assert.NotNull(checkout); } } }
22.058824
63
0.621333
[ "BSD-3-Clause" ]
afhswe/dependency-breaking-katas
CSharp/DependencyBreakingTests/ExtractAndOverrideCall/CheckoutTest.cs
377
C#
namespace HealthyNutGuysAPI.Auth.Jwt { public static class Constants { public static class Roles { public const string AdminRole = "admin"; public const string UserRole = "user"; } public static class Strings { public const string TokenName = "jwt"; public static class JwtClaimIdentifiers { public const string Role = "role", Id = "id", UserName = "username", Permission = "permission"; } public static class JwtClaims { public const string ApiAccess = "Admin"; } } } }
22.88
103
0.615385
[ "MIT" ]
omikolaj/healthy-nut-guys-api
HealthyNutGuysAPI/Auth/Jwt/Constants.cs
572
C#
using System.Collections; using System.Collections.Generic; using System.Linq; using Fissoft.LinqIndex.Indexes; namespace Fissoft.LinqIndex.Internal { internal class InternalIndexCollection<T> : IEnumerable<DictionaryHashIndex<T>> { private readonly Dictionary<string, DictionaryHashIndex<T>> _internalIndexList = new Dictionary<string, DictionaryHashIndex<T>>(); public IEnumerator<DictionaryHashIndex<T>> GetEnumerator() { return _internalIndexList.Select(s => s.Value).GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public bool ContainsIndex(string propertyName) { return _internalIndexList.ContainsKey(propertyName); } public bool RemoveIndex(string propertyName) { if (_internalIndexList.ContainsKey(propertyName)) return _internalIndexList.Remove(propertyName); return false; } public void AddIndexFor(IndexPropertySpecification indexPropertySpecification, DictionaryHashIndex<T> index) { _internalIndexList.Add(indexPropertySpecification.PropertyName, index); } public DictionaryHashIndex<T> GetIndexByPropertyName(string propertyName) { return _internalIndexList[propertyName]; } public void Clear() { _internalIndexList.Clear(); } } }
30.08
116
0.652926
[ "MIT" ]
fissoft/Fissoft.Core
src/Fissoft.Core/LinqIndex/Internal/InternalIndexCollection.cs
1,506
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using MyTimesheet.Models; using Swashbuckle.AspNetCore.Swagger; namespace MyTimesheet { public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); // Register the Swagger generator, defining 1 or more Swagger documents services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new Info { Title = "My Timesheet API", Version = "v1" }); }); var connection = @"Server=sql101labs1793591179000.westeurope.cloudapp.azure.com;Database=sql101.thandi.tshabalala;User Id=thanditshabalala;Password=Rabbit97;"; services.AddDbContext<TimesheetContext> (options => options.UseSqlServer(connection)); services.AddSingleton(Configuration); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env) { // Enable middleware to serve generated Swagger as a JSON endpoint. app.UseSwagger(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), // specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My Timesheet API V1"); }); app.UseMvc(); } } }
34.909091
171
0.654514
[ "MIT" ]
ThandiTQ/sequel
src/MyTimesheet/MyTimesheet/Startup.cs
2,306
C#
using System; using System.Collections.Generic; using System.Linq; namespace CoreSchematic.Parser { public class ResolveComponentEventArgs : EventArgs { public ResolveComponentEventArgs(string[] path) { this.Path = path.ToArray(); } public Component Component { get; set; } public IReadOnlyList<string> Path { get; } } }
18.888889
51
0.735294
[ "BSD-3-Clause" ]
MasterQ32/CoreSCM
CoreSchematic/Parser/ResolveComponentEventArgs.cs
342
C#
using FluentNHibernate.Cfg.Db; using FluentNHibernate.Testing; using Fohjin.Core.Config; using Fohjin.Core.Domain; using NUnit.Framework; namespace Fohjin.IntegrationTests.Domain_Persistence { public class PersistenceTesterContext<ENTITY> where ENTITY : DomainEntity, new() { private SingleConnectionSessionSourceForSQLiteInMemoryTesting _source; [SetUp] public void SetUp() { var properties = new SQLiteConfiguration() .UseOuterJoin() //.ShowSql() .InMemory() .ToProperties(); var autoPersistenceModel = new NHibernatePersistenceModel().GetPersistenceModel(); _source = new SingleConnectionSessionSourceForSQLiteInMemoryTesting(properties, autoPersistenceModel); _source.BuildSchema(); } public PersistenceSpecification<ENTITY> Specification { get { return new PersistenceSpecification<ENTITY>(_source); } } } }
33.645161
128
0.644295
[ "Apache-2.0" ]
Anupam-/fubumvc-contrib
samples/Fohjin/Fohjin.IntegrationTests/Domain_Persistence/PersistenceTesterContext.cs
1,043
C#
using PrzychodniaPOZ.DAL; using PrzychodniaPOZ.Models; using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace PrzychodniaPOZ { public class MvcApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } } }
25.703704
71
0.682997
[ "MIT" ]
dpetasz/ProjektZespolowy
PrzychodniaPOZ/PrzychodniaPOZ/Global.asax.cs
696
C#
using BaGet.Core; using Microsoft.EntityFrameworkCore; using MySql.Data.MySqlClient; namespace BaGet.Database.MySql { public class MySqlContext : AbstractContext<MySqlContext> { /// <summary> /// The MySQL Server error code for when a unique constraint is violated. /// </summary> private const int UniqueConstraintViolationErrorCode = 1062; public MySqlContext(DbContextOptions<MySqlContext> options) : base(options) { } public override bool IsUniqueConstraintViolationException(DbUpdateException exception) { return exception.InnerException is MySqlException mysqlException && mysqlException.Number == UniqueConstraintViolationErrorCode; } /// <summary> /// MySQL does not support LIMIT clauses in subqueries for certain subquery operators. /// See: https://dev.mysql.com/doc/refman/8.0/en/subquery-restrictions.html /// </summary> public override bool SupportsLimitInSubqueries => false; } }
34.258065
94
0.676083
[ "MIT" ]
AChehre/BaGet
src/BaGet.Database.MySql/MySqlContext.cs
1,062
C#
/* * Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ namespace SafeExamBrowser.Communication.Contracts.Hosts { /// <summary> /// A factory to create host objects for communication hosts. /// </summary> public interface IHostObjectFactory { /// <summary> /// Utilizes the given communication object to create a host object (see <see cref="IHostObject"/>) for the specified endpoint address. /// </summary> IHostObject CreateObject(string address, ICommunication communicationObject); } }
33.727273
137
0.727763
[ "MPL-2.0" ]
RickAllMighty8195/seb-win-refactoring
SafeExamBrowser.Communication.Contracts/Hosts/IHostObjectFactory.cs
745
C#
using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using System.ComponentModel.DataAnnotations; namespace CBAPI_Insights.API { /// <summary> /// Contact /// </summary> [DataContract] public partial class Contact : Entity { /// <summary> /// Gets or Sets FullName /// </summary> [DataMember(Name = "FullName", EmitDefaultValue = false)] public StringValue FullName { get; set; } /// <summary> /// Gets or Sets Active /// </summary> [DataMember(Name = "Active", EmitDefaultValue = false)] public BooleanValue Active { get; set; } /// <summary> /// Gets or Sets Address /// </summary> [DataMember(Name = "Address", EmitDefaultValue = false)] public Address Address { get; set; } /// <summary> /// Gets or Sets AddressIsSameAsInAccount /// </summary> [DataMember(Name = "AddressIsSameAsInAccount", EmitDefaultValue = false)] public BooleanValue AddressIsSameAsInAccount { get; set; } /// <summary> /// Gets or Sets AddressValidated /// </summary> [DataMember(Name = "AddressValidated", EmitDefaultValue = false)] public BooleanValue AddressValidated { get; set; } /// <summary> /// Gets or Sets Attention /// </summary> [DataMember(Name = "Attention", EmitDefaultValue = false)] public StringValue Attention { get; set; } /// <summary> /// Gets or Sets Attributes /// </summary> [DataMember(Name = "Attributes", EmitDefaultValue = false)] public List<AttributeDetail> Attributes { get; set; } /// <summary> /// Gets or Sets BusinessAccount /// </summary> [DataMember(Name = "BusinessAccount", EmitDefaultValue = false)] public StringValue BusinessAccount { get; set; } /// <summary> /// Gets or Sets Cases /// </summary> [DataMember(Name = "Cases", EmitDefaultValue = false)] public List<CaseDetail> Cases { get; set; } /// <summary> /// Gets or Sets CompanyName /// </summary> [DataMember(Name = "CompanyName", EmitDefaultValue = false)] public StringValue CompanyName { get; set; } /// <summary> /// Gets or Sets ContactClass /// </summary> [DataMember(Name = "ContactClass", EmitDefaultValue = false)] public StringValue ContactClass { get; set; } /// <summary> /// Gets or Sets ContactID /// </summary> [DataMember(Name = "ContactID", EmitDefaultValue = false)] public IntValue ContactID { get; set; } /// <summary> /// Gets or Sets ContactMethod /// </summary> [DataMember(Name = "ContactMethod", EmitDefaultValue = false)] public StringValue ContactMethod { get; set; } /// <summary> /// Gets or Sets ConvertedBy /// </summary> [DataMember(Name = "ConvertedBy", EmitDefaultValue = false)] public StringValue ConvertedBy { get; set; } /// <summary> /// Gets or Sets DateOfBirth /// </summary> [DataMember(Name = "DateOfBirth", EmitDefaultValue = false)] public DateTimeValue DateOfBirth { get; set; } /// <summary> /// Gets or Sets DisplayName /// </summary> [DataMember(Name = "DisplayName", EmitDefaultValue = false)] public StringValue DisplayName { get; set; } /// <summary> /// Gets or Sets DoNotCall /// </summary> [DataMember(Name = "DoNotCall", EmitDefaultValue = false)] public BooleanValue DoNotCall { get; set; } /// <summary> /// Gets or Sets DoNotEmail /// </summary> [DataMember(Name = "DoNotEmail", EmitDefaultValue = false)] public BooleanValue DoNotEmail { get; set; } /// <summary> /// Gets or Sets DoNotFax /// </summary> [DataMember(Name = "DoNotFax", EmitDefaultValue = false)] public BooleanValue DoNotFax { get; set; } /// <summary> /// Gets or Sets DoNotMail /// </summary> [DataMember(Name = "DoNotMail", EmitDefaultValue = false)] public BooleanValue DoNotMail { get; set; } /// <summary> /// Gets or Sets Duplicate /// </summary> [DataMember(Name = "Duplicate", EmitDefaultValue = false)] public StringValue Duplicate { get; set; } /// <summary> /// Gets or Sets DuplicateFound /// </summary> [DataMember(Name = "DuplicateFound", EmitDefaultValue = false)] public BooleanValue DuplicateFound { get; set; } /// <summary> /// Gets or Sets Email /// </summary> [DataMember(Name = "Email", EmitDefaultValue = false)] public StringValue Email { get; set; } /// <summary> /// Gets or Sets Fax /// </summary> [DataMember(Name = "Fax", EmitDefaultValue = false)] public StringValue Fax { get; set; } /// <summary> /// Gets or Sets FaxType /// </summary> [DataMember(Name = "FaxType", EmitDefaultValue = false)] public StringValue FaxType { get; set; } /// <summary> /// Gets or Sets FirstName /// </summary> [DataMember(Name = "FirstName", EmitDefaultValue = false)] public StringValue FirstName { get; set; } /// <summary> /// Gets or Sets Gender /// </summary> [DataMember(Name = "Gender", EmitDefaultValue = false)] public StringValue Gender { get; set; } /// <summary> /// Gets or Sets Image /// </summary> [DataMember(Name = "Image", EmitDefaultValue = false)] public StringValue Image { get; set; } /// <summary> /// Gets or Sets JobTitle /// </summary> [DataMember(Name = "JobTitle", EmitDefaultValue = false)] public StringValue JobTitle { get; set; } /// <summary> /// Gets or Sets LanguageOrLocale /// </summary> [DataMember(Name = "LanguageOrLocale", EmitDefaultValue = false)] public StringValue LanguageOrLocale { get; set; } /// <summary> /// Gets or Sets LastIncomingActivity /// </summary> [DataMember(Name = "LastIncomingActivity", EmitDefaultValue = false)] public DateTimeValue LastIncomingActivity { get; set; } /// <summary> /// Gets or Sets LastModifiedDateTime /// </summary> [DataMember(Name = "LastModifiedDateTime", EmitDefaultValue = false)] public DateTimeValue LastModifiedDateTime { get; set; } /// <summary> /// Gets or Sets LastName /// </summary> [DataMember(Name = "LastName", EmitDefaultValue = false)] public StringValue LastName { get; set; } /// <summary> /// Gets or Sets LastOutgoingActivity /// </summary> [DataMember(Name = "LastOutgoingActivity", EmitDefaultValue = false)] public DateTimeValue LastOutgoingActivity { get; set; } /// <summary> /// Gets or Sets MaritalStatus /// </summary> [DataMember(Name = "MaritalStatus", EmitDefaultValue = false)] public StringValue MaritalStatus { get; set; } /// <summary> /// Gets or Sets MiddleName /// </summary> [DataMember(Name = "MiddleName", EmitDefaultValue = false)] public StringValue MiddleName { get; set; } /// <summary> /// Gets or Sets NoMarketing /// </summary> [DataMember(Name = "NoMarketing", EmitDefaultValue = false)] public BooleanValue NoMarketing { get; set; } /// <summary> /// Gets or Sets NoMassMail /// </summary> [DataMember(Name = "NoMassMail", EmitDefaultValue = false)] public BooleanValue NoMassMail { get; set; } /// <summary> /// Gets or Sets Owner /// </summary> [DataMember(Name = "Owner", EmitDefaultValue = false)] public StringValue Owner { get; set; } /// <summary> /// Gets or Sets OwnerEmployeeName /// </summary> [DataMember(Name = "OwnerEmployeeName", EmitDefaultValue = false)] public StringValue OwnerEmployeeName { get; set; } /// <summary> /// Gets or Sets ParentAccount /// </summary> [DataMember(Name = "ParentAccount", EmitDefaultValue = false)] public StringValue ParentAccount { get; set; } /// <summary> /// Gets or Sets Phone1 /// </summary> [DataMember(Name = "Phone1", EmitDefaultValue = false)] public StringValue Phone1 { get; set; } /// <summary> /// Gets or Sets Phone1Type /// </summary> [DataMember(Name = "Phone1Type", EmitDefaultValue = false)] public StringValue Phone1Type { get; set; } /// <summary> /// Gets or Sets Phone2 /// </summary> [DataMember(Name = "Phone2", EmitDefaultValue = false)] public StringValue Phone2 { get; set; } /// <summary> /// Gets or Sets Phone2Type /// </summary> [DataMember(Name = "Phone2Type", EmitDefaultValue = false)] public StringValue Phone2Type { get; set; } /// <summary> /// Gets or Sets Phone3 /// </summary> [DataMember(Name = "Phone3", EmitDefaultValue = false)] public StringValue Phone3 { get; set; } /// <summary> /// Gets or Sets Phone3Type /// </summary> [DataMember(Name = "Phone3Type", EmitDefaultValue = false)] public StringValue Phone3Type { get; set; } /// <summary> /// Gets or Sets QualificationDate /// </summary> [DataMember(Name = "QualificationDate", EmitDefaultValue = false)] public DateTimeValue QualificationDate { get; set; } /// <summary> /// Gets or Sets Reason /// </summary> [DataMember(Name = "Reason", EmitDefaultValue = false)] public StringValue Reason { get; set; } /// <summary> /// Gets or Sets Source /// </summary> [DataMember(Name = "Source", EmitDefaultValue = false)] public StringValue Source { get; set; } /// <summary> /// Gets or Sets SourceCampaign /// </summary> [DataMember(Name = "SourceCampaign", EmitDefaultValue = false)] public StringValue SourceCampaign { get; set; } /// <summary> /// Gets or Sets SpouseOrPartnerName /// </summary> [DataMember(Name = "SpouseOrPartnerName", EmitDefaultValue = false)] public StringValue SpouseOrPartnerName { get; set; } /// <summary> /// Gets or Sets Status /// </summary> [DataMember(Name = "Status", EmitDefaultValue = false)] public StringValue Status { get; set; } /// <summary> /// Gets or Sets Synchronize /// </summary> [DataMember(Name = "Synchronize", EmitDefaultValue = false)] public BooleanValue Synchronize { get; set; } /// <summary> /// Gets or Sets Title /// </summary> [DataMember(Name = "Title", EmitDefaultValue = false)] public StringValue Title { get; set; } /// <summary> /// Gets or Sets Type /// </summary> [DataMember(Name = "Type", EmitDefaultValue = false)] public StringValue Type { get; set; } /// <summary> /// Gets or Sets WebSite /// </summary> [DataMember(Name = "WebSite", EmitDefaultValue = false)] public StringValue WebSite { get; set; } /// <summary> /// Gets or Sets Workgroup /// </summary> [DataMember(Name = "Workgroup", EmitDefaultValue = false)] public StringValue Workgroup { get; set; } /// <summary> /// Gets or Sets WorkgroupDescription /// </summary> [DataMember(Name = "WorkgroupDescription", EmitDefaultValue = false)] public StringValue WorkgroupDescription { get; set; } } }
28.398936
75
0.659299
[ "MIT" ]
smarenich/CBAPI_Insights
CBAPI_Insights/CBAPI_Insights/API/Contact.cs
10,680
C#
#if XENKO_GRAPHICS_API_DIRECT3D //------------------------------------------------------------------------------ // <auto-generated> // Xenko Effect Compiler File Generated: // Effect [HandEffect] // // Command Line: D:\Xenko\sources\engine\Xenko.Graphics\Shaders.Bytecodes\..\..\..\..\sources\assets\Xenko.Core.Assets.CompilerApp\bin\Release\net472\Xenko.Core.Assets.CompilerApp.exe --platform=Windows --property:RuntimeIdentifier=win --output-path=D:\Xenko\sources\engine\Xenko.Graphics\Shaders.Bytecodes\obj\app_data --build-path=D:\Xenko\sources\engine\Xenko.Graphics\Shaders.Bytecodes\obj\build_app_data --package-file=Graphics.xkpkg // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace Xenko.Graphics { public partial class HandEffect { private static readonly byte[] binaryBytecode = new byte[] { 7, 192, 254, 239, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 7, 80, 101, 114, 68, 114, 97, 119, 10, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 7, 80, 101, 114, 68, 114, 97, 119, 0, 7, 80, 101, 114, 68, 114, 97, 119, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 7, 71, 108, 111, 98, 97, 108, 115, 10, 0, 0, 0, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 7, 71, 108, 111, 98, 97, 108, 115, 0, 7, 71, 108, 111, 98, 97, 108, 115, 5, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 7, 80, 101, 114, 68, 114, 97, 119, 192, 6, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 1, 1, 0, 26, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 0, 20, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 0, 0, 0, 0, 64, 0, 0, 0, 1, 1, 3, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 1, 1, 0, 15, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 86, 105, 101, 119, 0, 9, 86, 105, 101, 119, 95, 105, 100, 49, 57, 64, 0, 0, 0, 64, 0, 0, 0, 1, 1, 3, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 25, 0, 0, 0, 64, 0, 0, 0, 1, 1, 0, 17, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 74, 111, 105, 110, 116, 115, 0, 11, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 128, 0, 0, 0, 64, 6, 0, 0, 1, 1, 0, 0, 7, 71, 108, 111, 98, 97, 108, 115, 64, 0, 0, 0, 1, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 1, 1, 0, 18, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 79, 112, 97, 99, 105, 116, 121, 0, 12, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 0, 0, 0, 0, 4, 0, 0, 0, 1, 1, 1, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 1, 1, 0, 33, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 0, 27, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 4, 0, 0, 0, 12, 0, 0, 0, 1, 1, 13, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 1, 1, 0, 29, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 0, 23, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 16, 0, 0, 0, 12, 0, 0, 0, 1, 1, 13, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 1, 1, 0, 28, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 0, 22, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 0, 0, 0, 12, 0, 0, 0, 1, 1, 13, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 0, 1, 1, 0, 20, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 46, 71, 108, 111, 119, 67, 111, 108, 111, 114, 0, 14, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 48, 0, 0, 0, 12, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 8, 80, 79, 83, 73, 84, 73, 79, 78, 0, 0, 0, 0, 0, 12, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 0, 0, 0, 0, 0, 12, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 0, 0, 0, 0, 0, 6, 78, 79, 82, 77, 65, 76, 0, 0, 0, 0, 0, 3, 0, 0, 0, 10, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 1, 138, 46, 1, 40, 73, 254, 70, 30, 137, 206, 54, 85, 110, 103, 14, 197, 10, 83, 104, 97, 100, 101, 114, 66, 97, 115, 101, 1, 172, 190, 61, 77, 68, 160, 70, 238, 222, 135, 17, 118, 190, 233, 199, 84, 16, 83, 104, 97, 100, 101, 114, 66, 97, 115, 101, 83, 116, 114, 101, 97, 109, 1, 163, 165, 191, 129, 133, 242, 163, 216, 153, 114, 41, 63, 128, 100, 48, 211, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 1, 45, 164, 189, 51, 227, 16, 133, 61, 117, 108, 147, 87, 210, 4, 37, 224, 0, 140, 111, 0, 0, 68, 88, 66, 67, 4, 230, 201, 73, 112, 138, 64, 138, 45, 131, 213, 155, 61, 179, 26, 177, 1, 0, 0, 0, 140, 111, 0, 0, 6, 0, 0, 0, 56, 0, 0, 0, 220, 1, 0, 0, 120, 2, 0, 0, 8, 3, 0, 0, 232, 8, 0, 0, 132, 9, 0, 0, 82, 68, 69, 70, 156, 1, 0, 0, 1, 0, 0, 0, 100, 0, 0, 0, 1, 0, 0, 0, 60, 0, 0, 0, 0, 5, 254, 255, 1, 65, 0, 0, 116, 1, 0, 0, 82, 68, 49, 49, 60, 0, 0, 0, 24, 0, 0, 0, 32, 0, 0, 0, 40, 0, 0, 0, 36, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 80, 101, 114, 68, 114, 97, 119, 0, 92, 0, 0, 0, 3, 0, 0, 0, 124, 0, 0, 0, 192, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 2, 0, 0, 0, 20, 1, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 56, 1, 0, 0, 64, 0, 0, 0, 64, 0, 0, 0, 2, 0, 0, 0, 20, 1, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 66, 1, 0, 0, 128, 0, 0, 0, 64, 6, 0, 0, 2, 0, 0, 0, 80, 1, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 0, 102, 108, 111, 97, 116, 52, 120, 52, 0, 171, 171, 3, 0, 3, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 0, 0, 86, 105, 101, 119, 95, 105, 100, 49, 57, 0, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 0, 171, 171, 3, 0, 3, 0, 4, 0, 4, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 0, 0, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 49, 48, 46, 49, 0, 73, 83, 71, 78, 148, 0, 0, 0, 4, 0, 0, 0, 8, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 15, 15, 0, 0, 113, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 3, 3, 0, 0, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 3, 3, 0, 0, 139, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0, 7, 7, 0, 0, 80, 79, 83, 73, 84, 73, 79, 78, 0, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 0, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 0, 78, 79, 82, 77, 65, 76, 0, 171, 171, 79, 83, 71, 78, 136, 0, 0, 0, 3, 0, 0, 0, 8, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 7, 8, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 7, 8, 0, 0, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 0, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 0, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 0, 171, 83, 72, 69, 88, 216, 5, 0, 0, 80, 0, 1, 0, 118, 1, 0, 0, 106, 8, 0, 1, 89, 8, 0, 4, 70, 142, 32, 0, 0, 0, 0, 0, 108, 0, 0, 0, 95, 0, 0, 3, 242, 16, 16, 0, 0, 0, 0, 0, 95, 0, 0, 3, 50, 16, 16, 0, 1, 0, 0, 0, 95, 0, 0, 3, 50, 16, 16, 0, 2, 0, 0, 0, 95, 0, 0, 3, 114, 16, 16, 0, 3, 0, 0, 0, 103, 0, 0, 4, 242, 32, 16, 0, 0, 0, 0, 0, 1, 0, 0, 0, 101, 0, 0, 3, 114, 32, 16, 0, 1, 0, 0, 0, 101, 0, 0, 3, 114, 32, 16, 0, 2, 0, 0, 0, 104, 0, 0, 2, 3, 0, 0, 0, 41, 0, 0, 10, 50, 0, 16, 0, 0, 0, 0, 0, 70, 16, 16, 0, 1, 0, 0, 0, 2, 64, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 10, 18, 0, 16, 0, 1, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 8, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 34, 0, 16, 0, 1, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 9, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 66, 0, 16, 0, 1, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 10, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 130, 0, 16, 0, 1, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 11, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 56, 0, 0, 7, 242, 0, 16, 0, 1, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 86, 21, 16, 0, 2, 0, 0, 0, 17, 0, 0, 10, 18, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 8, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 34, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 9, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 66, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 17, 0, 0, 10, 130, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 6, 0, 0, 0, 0, 11, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 50, 0, 0, 9, 242, 0, 16, 0, 1, 0, 0, 0, 70, 14, 16, 0, 2, 0, 0, 0, 6, 16, 16, 0, 2, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 17, 0, 0, 8, 18, 32, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 8, 34, 32, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 17, 0, 0, 8, 66, 32, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 2, 0, 0, 0, 17, 0, 0, 8, 130, 32, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 1, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 3, 0, 0, 0, 56, 0, 0, 10, 114, 0, 16, 0, 1, 0, 0, 0, 246, 143, 32, 128, 65, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 70, 130, 32, 0, 0, 0, 0, 0, 5, 0, 0, 0, 50, 0, 0, 12, 114, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 0, 0, 0, 0, 0, 4, 0, 0, 0, 246, 143, 32, 128, 65, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 50, 0, 0, 12, 114, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 0, 0, 0, 0, 0, 6, 0, 0, 0, 246, 143, 32, 128, 65, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 17, 0, 0, 8, 18, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 8, 34, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 17, 0, 0, 8, 66, 0, 16, 0, 2, 0, 0, 0, 70, 30, 16, 0, 0, 0, 0, 0, 70, 142, 32, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 8, 114, 0, 16, 0, 1, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 70, 2, 16, 128, 65, 0, 0, 0, 2, 0, 0, 0, 16, 0, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 68, 0, 0, 5, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 56, 0, 0, 7, 114, 32, 16, 0, 1, 0, 0, 0, 166, 10, 16, 0, 0, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 16, 0, 0, 10, 18, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 8, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 16, 0, 0, 10, 34, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 9, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 16, 0, 0, 10, 66, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 10, 0, 0, 0, 26, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 56, 0, 0, 7, 226, 0, 16, 0, 0, 0, 0, 0, 6, 9, 16, 0, 1, 0, 0, 0, 86, 21, 16, 0, 2, 0, 0, 0, 16, 0, 0, 10, 18, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 8, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 16, 0, 0, 10, 34, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 9, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 16, 0, 0, 10, 66, 0, 16, 0, 1, 0, 0, 0, 70, 130, 32, 6, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 3, 0, 0, 0, 50, 0, 0, 9, 114, 0, 16, 0, 0, 0, 0, 0, 70, 2, 16, 0, 1, 0, 0, 0, 6, 16, 16, 0, 2, 0, 0, 0, 150, 7, 16, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 56, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 5, 0, 0, 0, 32, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 198, 90, 0, 0, 89, 186, 3, 0, 117, 131, 1, 0, 76, 232, 3, 0, 150, 205, 1, 0, 156, 202, 1, 0, 152, 210, 1, 0, 37, 49, 1, 0, 69, 103, 0, 0, 125, 10, 2, 0, 97, 171, 0, 0, 103, 159, 1, 0, 117, 79, 3, 0, 133, 255, 3, 0, 67, 77, 3, 0, 193, 33, 3, 0, 125, 218, 1, 0, 4, 252, 0, 0, 202, 179, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 116, 114, 117, 99, 116, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 58, 32, 83, 86, 95, 84, 97, 114, 103, 101, 116, 48, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 58, 32, 80, 79, 83, 73, 84, 73, 79, 78, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 58, 32, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 58, 32, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 58, 32, 78, 79, 82, 77, 65, 76, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 80, 101, 114, 68, 114, 97, 119, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 50, 53, 93, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 71, 108, 111, 98, 97, 108, 115, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 32, 61, 32, 49, 46, 48, 102, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 49, 102, 44, 32, 48, 46, 48, 48, 55, 53, 102, 44, 32, 48, 46, 48, 48, 54, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 125, 59, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 53, 95, 105, 100, 52, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 50, 32, 42, 32, 120, 50, 32, 42, 32, 120, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 52, 32, 61, 32, 120, 50, 32, 42, 32, 120, 50, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 56, 32, 61, 32, 120, 52, 32, 42, 32, 120, 52, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 49, 54, 32, 61, 32, 120, 56, 32, 42, 32, 120, 56, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 49, 54, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 80, 83, 77, 97, 105, 110, 40, 80, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 68, 105, 114, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 110, 111, 114, 109, 97, 108, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 76, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 41, 44, 32, 48, 46, 48, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 41, 32, 42, 32, 110, 68, 111, 116, 76, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 104, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 43, 32, 101, 121, 101, 68, 105, 114, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 72, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 104, 41, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 61, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 110, 68, 111, 116, 72, 41, 32, 42, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 118, 68, 111, 116, 78, 32, 61, 32, 100, 111, 116, 40, 101, 121, 101, 68, 105, 114, 44, 32, 110, 111, 114, 109, 97, 108, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 102, 114, 101, 115, 110, 101, 108, 32, 61, 32, 99, 108, 97, 109, 112, 40, 80, 111, 119, 53, 95, 105, 100, 52, 40, 49, 46, 48, 102, 32, 45, 32, 118, 68, 111, 116, 78, 41, 44, 32, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 32, 61, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 42, 32, 102, 114, 101, 115, 110, 101, 108, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 61, 32, 102, 108, 111, 97, 116, 52, 40, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 43, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 43, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 43, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 42, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 59, 13, 10, 32, 32, 32, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 80, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 86, 83, 77, 97, 105, 110, 40, 86, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 32, 61, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 109, 117, 108, 40, 108, 111, 99, 97, 108, 80, 111, 115, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 32, 61, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 45, 86, 105, 101, 119, 95, 105, 100, 49, 57, 91, 51, 93, 46, 120, 121, 122, 44, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 101, 121, 101, 32, 45, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 46, 120, 121, 122, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 32, 61, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 41, 59, 13, 10, 32, 32, 32, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 86, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 239, 254, 239, 1, 0, 0, 0, 70, 19, 0, 0, 0, 68, 58, 92, 88, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 88, 101, 110, 107, 111, 46, 67, 111, 114, 101, 46, 65, 115, 115, 101, 116, 115, 46, 67, 111, 109, 112, 105, 108, 101, 114, 65, 112, 112, 92, 98, 105, 110, 92, 82, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 0, 100, 58, 92, 120, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 120, 101, 110, 107, 111, 46, 99, 111, 114, 101, 46, 97, 115, 115, 101, 116, 115, 46, 99, 111, 109, 112, 105, 108, 101, 114, 97, 112, 112, 92, 98, 105, 110, 92, 114, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 104, 97, 110, 100, 101, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 58, 32, 83, 86, 95, 84, 97, 114, 103, 101, 116, 48, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 27, 226, 48, 1, 128, 0, 0, 0, 200, 93, 208, 191, 226, 204, 215, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 135, 0, 0, 0, 40, 0, 0, 0, 27, 226, 48, 1, 134, 221, 86, 245, 57, 18, 0, 0, 1, 0, 0, 0, 134, 0, 0, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 66, 0, 60, 17, 16, 1, 0, 0, 0, 1, 10, 0, 1, 0, 173, 2, 97, 74, 10, 0, 1, 0, 173, 2, 97, 74, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 49, 48, 46, 49, 0, 0, 0, 58, 0, 61, 17, 1, 104, 108, 115, 108, 70, 108, 97, 103, 115, 0, 48, 120, 52, 48, 48, 49, 0, 104, 108, 115, 108, 84, 97, 114, 103, 101, 116, 0, 118, 115, 95, 53, 95, 48, 0, 104, 108, 115, 108, 69, 110, 116, 114, 121, 0, 86, 83, 77, 97, 105, 110, 0, 0, 0, 0, 46, 0, 16, 17, 0, 0, 0, 0, 120, 8, 0, 0, 0, 0, 0, 0, 92, 5, 0, 0, 0, 0, 0, 0, 92, 5, 0, 0, 10, 16, 0, 0, 124, 0, 0, 0, 1, 0, 160, 86, 83, 77, 97, 105, 110, 0, 0, 0, 50, 0, 62, 17, 5, 16, 0, 0, 9, 0, 95, 95, 105, 110, 112, 117, 116, 95, 95, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 0, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 4, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 4, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 8, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 8, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 12, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 12, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 16, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 16, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 20, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 20, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 24, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 32, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 28, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 36, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 32, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 48, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 36, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 52, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 40, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 56, 0, 0, 0, 62, 0, 62, 17, 9, 16, 0, 0, 136, 0, 60, 86, 83, 77, 97, 105, 110, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 28, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 32, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 32, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 36, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 36, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 40, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 16, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 16, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 20, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 20, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 24, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 24, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 0, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 4, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 4, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 8, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 8, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 12, 0, 4, 0, 124, 0, 0, 0, 1, 0, 92, 5, 12, 0, 0, 0, 50, 0, 62, 17, 0, 16, 0, 0, 8, 0, 108, 111, 99, 97, 108, 80, 111, 115, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 136, 1, 0, 0, 1, 0, 196, 1, 32, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 176, 1, 0, 0, 1, 0, 188, 1, 36, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 216, 1, 0, 0, 1, 0, 180, 1, 40, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 12, 0, 4, 0, 0, 2, 0, 0, 1, 0, 216, 3, 44, 0, 0, 0, 50, 0, 62, 17, 0, 16, 0, 0, 8, 0, 108, 111, 99, 97, 108, 80, 111, 115, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 204, 0, 0, 0, 1, 0, 148, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 244, 0, 0, 0, 1, 0, 108, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 28, 1, 0, 0, 1, 0, 68, 0, 24, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 12, 0, 4, 0, 68, 1, 0, 0, 1, 0, 28, 0, 28, 0, 0, 0, 46, 0, 62, 17, 0, 16, 0, 0, 8, 0, 108, 111, 99, 97, 108, 80, 111, 115, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 36, 2, 0, 0, 1, 0, 168, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 36, 2, 0, 0, 1, 0, 168, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 36, 2, 0, 0, 1, 0, 168, 0, 24, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 12, 0, 4, 0, 36, 2, 0, 0, 1, 0, 180, 3, 28, 0, 0, 0, 50, 0, 62, 17, 3, 16, 0, 0, 8, 0, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 40, 5, 0, 0, 1, 0, 124, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 40, 5, 0, 0, 1, 0, 176, 0, 4, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 40, 5, 0, 0, 1, 0, 176, 0, 8, 0, 0, 0, 50, 0, 77, 17, 132, 0, 0, 0, 28, 6, 0, 0, 0, 16, 0, 0, 7, 0, 9, 5, 13, 128, 150, 6, 2, 12, 128, 136, 130, 40, 8, 0, 9, 122, 13, 128, 133, 1, 130, 164, 3, 0, 9, 107, 3, 40, 13, 128, 148, 12, 48, 48, 74, 0, 62, 17, 13, 16, 0, 0, 136, 0, 60, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 44, 3, 0, 0, 1, 0, 32, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 44, 3, 0, 0, 1, 0, 32, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 44, 3, 0, 0, 1, 0, 32, 0, 24, 0, 0, 0, 2, 0, 78, 17, 54, 0, 77, 17, 132, 0, 0, 0, 228, 6, 0, 0, 1, 16, 0, 0, 7, 0, 9, 5, 13, 128, 150, 6, 2, 12, 120, 131, 124, 8, 0, 9, 19, 13, 60, 1, 131, 248, 3, 0, 9, 63, 13, 104, 3, 40, 9, 107, 13, 128, 148, 12, 40, 40, 0, 0, 66, 0, 62, 17, 13, 16, 0, 0, 136, 0, 60, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 32, 4, 0, 0, 1, 0, 108, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 72, 4, 0, 0, 1, 0, 68, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 112, 4, 0, 0, 1, 0, 28, 0, 24, 0, 0, 0, 2, 0, 78, 17, 54, 0, 77, 17, 132, 0, 0, 0, 172, 7, 0, 0, 1, 16, 0, 0, 7, 0, 9, 5, 13, 128, 150, 6, 2, 12, 120, 132, 16, 8, 0, 9, 19, 13, 60, 1, 132, 140, 3, 0, 9, 63, 13, 104, 3, 40, 9, 107, 13, 128, 148, 12, 40, 40, 0, 0, 66, 0, 62, 17, 13, 16, 0, 0, 136, 0, 60, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 140, 4, 0, 0, 1, 0, 156, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 140, 4, 0, 0, 1, 0, 156, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 140, 4, 0, 0, 1, 0, 156, 0, 24, 0, 0, 0, 2, 0, 78, 17, 54, 0, 77, 17, 132, 0, 0, 0, 116, 8, 0, 0, 1, 16, 0, 0, 7, 0, 9, 5, 13, 128, 150, 6, 2, 12, 96, 132, 172, 8, 0, 9, 19, 13, 60, 1, 133, 40, 3, 0, 9, 63, 13, 104, 3, 32, 9, 107, 13, 128, 148, 12, 32, 32, 0, 0, 66, 0, 62, 17, 13, 16, 0, 0, 136, 0, 60, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 40, 5, 0, 0, 1, 0, 124, 0, 16, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 40, 5, 0, 0, 1, 0, 124, 0, 20, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 40, 5, 0, 0, 1, 0, 124, 0, 24, 0, 0, 0, 2, 0, 78, 17, 2, 0, 6, 0, 244, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 0, 16, 1, 185, 98, 246, 6, 125, 144, 158, 115, 57, 163, 78, 164, 179, 109, 33, 140, 0, 0, 242, 0, 0, 0, 216, 3, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 216, 5, 0, 0, 0, 0, 0, 0, 80, 0, 0, 0, 204, 3, 0, 0, 124, 0, 0, 0, 104, 0, 0, 128, 124, 0, 0, 0, 104, 0, 0, 0, 164, 0, 0, 0, 104, 0, 0, 128, 164, 0, 0, 0, 104, 0, 0, 0, 204, 0, 0, 0, 104, 0, 0, 128, 204, 0, 0, 0, 104, 0, 0, 0, 244, 0, 0, 0, 104, 0, 0, 128, 244, 0, 0, 0, 104, 0, 0, 0, 28, 1, 0, 0, 104, 0, 0, 128, 28, 1, 0, 0, 104, 0, 0, 0, 68, 1, 0, 0, 105, 0, 0, 128, 68, 1, 0, 0, 105, 0, 0, 0, 96, 1, 0, 0, 103, 0, 0, 128, 96, 1, 0, 0, 103, 0, 0, 0, 136, 1, 0, 0, 103, 0, 0, 128, 136, 1, 0, 0, 103, 0, 0, 0, 176, 1, 0, 0, 103, 0, 0, 128, 176, 1, 0, 0, 103, 0, 0, 0, 216, 1, 0, 0, 103, 0, 0, 128, 216, 1, 0, 0, 103, 0, 0, 0, 0, 2, 0, 0, 105, 0, 0, 128, 0, 2, 0, 0, 105, 0, 0, 0, 36, 2, 0, 0, 106, 0, 0, 128, 36, 2, 0, 0, 106, 0, 0, 0, 68, 2, 0, 0, 106, 0, 0, 128, 68, 2, 0, 0, 106, 0, 0, 0, 100, 2, 0, 0, 106, 0, 0, 128, 100, 2, 0, 0, 106, 0, 0, 0, 132, 2, 0, 0, 106, 0, 0, 128, 132, 2, 0, 0, 106, 0, 0, 0, 164, 2, 0, 0, 107, 0, 0, 128, 164, 2, 0, 0, 107, 0, 0, 0, 204, 2, 0, 0, 107, 0, 0, 128, 204, 2, 0, 0, 107, 0, 0, 0, 252, 2, 0, 0, 107, 0, 0, 128, 252, 2, 0, 0, 107, 0, 0, 0, 44, 3, 0, 0, 108, 0, 0, 128, 44, 3, 0, 0, 108, 0, 0, 0, 76, 3, 0, 0, 108, 0, 0, 128, 76, 3, 0, 0, 108, 0, 0, 0, 108, 3, 0, 0, 108, 0, 0, 128, 108, 3, 0, 0, 108, 0, 0, 0, 140, 3, 0, 0, 108, 0, 0, 128, 140, 3, 0, 0, 108, 0, 0, 0, 172, 3, 0, 0, 108, 0, 0, 128, 172, 3, 0, 0, 108, 0, 0, 0, 200, 3, 0, 0, 108, 0, 0, 128, 200, 3, 0, 0, 108, 0, 0, 0, 220, 3, 0, 0, 108, 0, 0, 128, 220, 3, 0, 0, 108, 0, 0, 0, 248, 3, 0, 0, 110, 0, 0, 128, 248, 3, 0, 0, 110, 0, 0, 0, 32, 4, 0, 0, 110, 0, 0, 128, 32, 4, 0, 0, 110, 0, 0, 0, 72, 4, 0, 0, 110, 0, 0, 128, 72, 4, 0, 0, 110, 0, 0, 0, 112, 4, 0, 0, 111, 0, 0, 128, 112, 4, 0, 0, 111, 0, 0, 0, 140, 4, 0, 0, 109, 0, 0, 128, 140, 4, 0, 0, 109, 0, 0, 0, 180, 4, 0, 0, 109, 0, 0, 128, 180, 4, 0, 0, 109, 0, 0, 0, 220, 4, 0, 0, 109, 0, 0, 128, 220, 4, 0, 0, 109, 0, 0, 0, 4, 5, 0, 0, 111, 0, 0, 128, 4, 5, 0, 0, 111, 0, 0, 0, 40, 5, 0, 0, 112, 0, 0, 128, 40, 5, 0, 0, 112, 0, 0, 0, 72, 5, 0, 0, 112, 0, 0, 128, 72, 5, 0, 0, 112, 0, 0, 0, 104, 5, 0, 0, 112, 0, 0, 128, 104, 5, 0, 0, 112, 0, 0, 0, 136, 5, 0, 0, 112, 0, 0, 128, 136, 5, 0, 0, 112, 0, 0, 0, 164, 5, 0, 0, 112, 0, 0, 128, 164, 5, 0, 0, 112, 0, 0, 0, 184, 5, 0, 0, 112, 0, 0, 128, 184, 5, 0, 0, 112, 0, 0, 0, 212, 5, 0, 0, 117, 0, 0, 128, 212, 5, 0, 0, 117, 0, 0, 0, 5, 0, 92, 0, 51, 0, 90, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 108, 0, 68, 0, 106, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 92, 0, 24, 0, 91, 0, 5, 0, 108, 0, 23, 0, 107, 0, 5, 0, 70, 0, 35, 0, 69, 0, 5, 0, 70, 0, 35, 0, 69, 0, 5, 0, 70, 0, 35, 0, 69, 0, 5, 0, 70, 0, 35, 0, 69, 0, 5, 0, 69, 0, 18, 0, 68, 0, 5, 0, 69, 0, 18, 0, 68, 0, 5, 0, 69, 0, 18, 0, 68, 0, 5, 0, 100, 0, 47, 0, 94, 0, 5, 0, 100, 0, 47, 0, 94, 0, 5, 0, 100, 0, 47, 0, 94, 0, 5, 0, 100, 0, 41, 0, 98, 0, 5, 0, 100, 0, 31, 0, 99, 0, 5, 0, 100, 0, 31, 0, 99, 0, 5, 0, 100, 0, 31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, 202, 49, 1, 56, 0, 0, 0, 0, 16, 0, 0, 19, 16, 0, 0, 20, 2, 0, 0, 10, 0, 255, 255, 4, 0, 0, 0, 255, 255, 3, 0, 0, 0, 0, 0, 76, 0, 0, 0, 76, 0, 0, 0, 8, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 22, 0, 27, 21, 64, 0, 0, 0, 4, 0, 0, 0, 16, 0, 102, 108, 111, 97, 116, 52, 0, 243, 242, 241, 18, 0, 27, 21, 116, 0, 0, 0, 2, 0, 0, 0, 8, 0, 105, 110, 116, 50, 0, 241, 22, 0, 27, 21, 64, 0, 0, 0, 2, 0, 0, 0, 8, 0, 102, 108, 111, 97, 116, 50, 0, 243, 242, 241, 22, 0, 27, 21, 64, 0, 0, 0, 3, 0, 0, 0, 12, 0, 102, 108, 111, 97, 116, 51, 0, 243, 242, 241, 106, 0, 3, 18, 13, 21, 3, 0, 0, 16, 0, 0, 0, 0, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 0, 13, 21, 3, 0, 1, 16, 0, 0, 16, 0, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 0, 13, 21, 3, 0, 2, 16, 0, 0, 24, 0, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 0, 13, 21, 3, 0, 3, 16, 0, 0, 32, 0, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 0, 242, 241, 30, 0, 5, 21, 4, 0, 0, 0, 4, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 44, 0, 86, 83, 95, 73, 78, 80, 85, 84, 0, 241, 10, 0, 1, 18, 1, 0, 0, 0, 5, 16, 0, 0, 94, 0, 3, 18, 13, 21, 3, 0, 0, 16, 0, 0, 0, 0, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 0, 242, 241, 13, 21, 3, 0, 3, 16, 0, 0, 16, 0, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 0, 242, 241, 13, 21, 3, 0, 3, 16, 0, 0, 28, 0, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 0, 243, 242, 241, 30, 0, 5, 21, 3, 0, 0, 0, 7, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 86, 83, 95, 79, 85, 84, 80, 85, 84, 0, 10, 0, 24, 21, 8, 16, 0, 0, 1, 0, 1, 0, 14, 0, 8, 16, 9, 16, 0, 0, 23, 0, 1, 0, 6, 16, 0, 0, 30, 0, 28, 21, 64, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0, 0, 16, 0, 0, 0, 0, 64, 0, 102, 108, 111, 97, 116, 52, 120, 52, 0, 14, 0, 1, 18, 2, 0, 0, 0, 3, 16, 0, 0, 11, 16, 0, 0, 10, 0, 24, 21, 3, 16, 0, 0, 175, 64, 2, 0, 139, 231, 2, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 58, 32, 80, 79, 83, 73, 84, 73, 79, 78, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 58, 32, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 58, 32, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 58, 32, 78, 79, 82, 77, 65, 76, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 80, 101, 114, 68, 114, 97, 119, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 50, 53, 93, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 71, 108, 111, 98, 97, 108, 115, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 32, 61, 32, 49, 46, 48, 102, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 49, 102, 44, 32, 48, 46, 48, 48, 55, 53, 102, 44, 32, 48, 46, 48, 48, 54, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 125, 59, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 53, 95, 105, 100, 52, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 50, 32, 42, 32, 120, 50, 32, 42, 32, 120, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 52, 32, 61, 32, 120, 50, 32, 42, 32, 120, 50, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 56, 32, 61, 32, 120, 52, 32, 42, 32, 120, 52, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 49, 54, 32, 61, 32, 120, 56, 32, 42, 32, 120, 56, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 49, 54, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 80, 83, 77, 97, 105, 110, 40, 80, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 68, 105, 114, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 110, 111, 114, 109, 97, 108, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 76, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 41, 44, 32, 48, 46, 48, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 41, 32, 42, 32, 110, 68, 111, 116, 76, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 104, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 43, 32, 101, 121, 101, 68, 105, 114, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 72, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 104, 41, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 61, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 110, 68, 111, 116, 72, 41, 32, 42, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 118, 68, 111, 116, 78, 32, 61, 32, 100, 111, 116, 40, 101, 121, 101, 68, 105, 114, 44, 32, 110, 111, 114, 109, 97, 108, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 102, 114, 101, 115, 110, 101, 108, 32, 61, 32, 99, 108, 97, 109, 112, 40, 80, 111, 119, 53, 95, 105, 100, 52, 40, 49, 46, 48, 102, 32, 45, 32, 118, 68, 111, 116, 78, 41, 44, 32, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 32, 61, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 42, 32, 102, 114, 101, 115, 110, 101, 108, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 61, 32, 102, 108, 111, 97, 116, 52, 40, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 43, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 43, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 43, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 42, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 59, 13, 10, 32, 32, 32, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 80, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 86, 83, 77, 97, 105, 110, 40, 86, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 32, 61, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 109, 117, 108, 40, 108, 111, 99, 97, 108, 80, 111, 115, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 32, 61, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 45, 86, 105, 101, 119, 95, 105, 100, 49, 57, 91, 51, 93, 46, 120, 121, 122, 44, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 101, 121, 101, 32, 45, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 46, 120, 121, 122, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 32, 61, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 41, 59, 13, 10, 32, 32, 32, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 86, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 0, 7, 0, 0, 0, 1, 0, 0, 0, 134, 0, 0, 0, 135, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11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, 0, 37, 17, 0, 0, 0, 0, 132, 0, 0, 0, 1, 0, 86, 83, 77, 97, 105, 110, 0, 0, 0, 0, 42, 0, 81, 17, 16, 16, 0, 0, 8, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 0, 0, 0, 0, 30, 0, 81, 17, 16, 16, 0, 0, 8, 0, 0, 0, 64, 0, 255, 255, 255, 255, 255, 255, 86, 105, 101, 119, 95, 105, 100, 49, 57, 0, 0, 0, 30, 0, 81, 17, 18, 16, 0, 0, 8, 0, 0, 0, 128, 0, 255, 255, 255, 255, 255, 255, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 46, 49, 1, 108, 34, 124, 97, 1, 0, 0, 0, 189, 191, 171, 33, 136, 87, 213, 74, 190, 197, 176, 25, 140, 184, 106, 242, 178, 0, 0, 0, 47, 76, 105, 110, 107, 73, 110, 102, 111, 0, 47, 110, 97, 109, 101, 115, 0, 47, 115, 114, 99, 47, 104, 101, 97, 100, 101, 114, 98, 108, 111, 99, 107, 0, 47, 115, 114, 99, 47, 102, 105, 108, 101, 115, 47, 100, 58, 92, 120, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 120, 101, 110, 107, 111, 46, 99, 111, 114, 101, 46, 97, 115, 115, 101, 116, 115, 46, 99, 111, 109, 112, 105, 108, 101, 114, 97, 112, 112, 92, 98, 105, 110, 92, 114, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 104, 97, 110, 100, 101, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 4, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 7, 0, 0, 0, 10, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 34, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 220, 81, 51, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 2, 0, 2, 0, 7, 0, 0, 0, 0, 0, 1, 0, 255, 255, 255, 255, 0, 0, 0, 0, 216, 5, 0, 0, 8, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 68, 58, 92, 88, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 88, 101, 110, 107, 111, 46, 67, 111, 114, 101, 46, 65, 115, 115, 101, 116, 115, 46, 67, 111, 109, 112, 105, 108, 101, 114, 65, 112, 112, 92, 98, 105, 110, 92, 82, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 0, 0, 0, 254, 239, 254, 239, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 12, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16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0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 71, 108, 111, 98, 97, 108, 115, 0, 92, 0, 0, 0, 5, 0, 0, 0, 124, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 68, 1, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 2, 0, 0, 0, 88, 1, 0, 0, 124, 1, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 128, 1, 0, 0, 4, 0, 0, 0, 12, 0, 0, 0, 2, 0, 0, 0, 164, 1, 0, 0, 200, 1, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 212, 1, 0, 0, 16, 0, 0, 0, 12, 0, 0, 0, 2, 0, 0, 0, 164, 1, 0, 0, 236, 1, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 248, 1, 0, 0, 32, 0, 0, 0, 12, 0, 0, 0, 2, 0, 0, 0, 164, 1, 0, 0, 16, 2, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 28, 2, 0, 0, 48, 0, 0, 0, 12, 0, 0, 0, 2, 0, 0, 0, 164, 1, 0, 0, 44, 2, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 0, 102, 108, 111, 97, 116, 0, 171, 0, 0, 3, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 128, 63, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 0, 102, 108, 111, 97, 116, 51, 0, 171, 1, 0, 3, 0, 1, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 1, 0, 0, 0, 0, 0, 0, 0, 0, 128, 63, 0, 0, 0, 0, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 0, 10, 215, 35, 60, 143, 194, 245, 59, 166, 155, 196, 59, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 0, 171, 111, 18, 131, 58, 111, 18, 131, 58, 111, 18, 131, 58, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 0, 171, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 49, 48, 46, 49, 0, 73, 83, 71, 78, 136, 0, 0, 0, 3, 0, 0, 0, 8, 0, 0, 0, 80, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 0, 7, 7, 0, 0, 112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 7, 7, 0, 0, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 0, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 0, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 0, 171, 79, 83, 71, 78, 44, 0, 0, 0, 1, 0, 0, 0, 8, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 83, 86, 95, 84, 97, 114, 103, 101, 116, 0, 171, 171, 83, 72, 69, 88, 132, 3, 0, 0, 80, 0, 0, 0, 225, 0, 0, 0, 106, 8, 0, 1, 89, 0, 0, 4, 70, 142, 32, 0, 0, 0, 0, 0, 4, 0, 0, 0, 98, 16, 0, 3, 114, 16, 16, 0, 1, 0, 0, 0, 98, 16, 0, 3, 114, 16, 16, 0, 2, 0, 0, 0, 101, 0, 0, 3, 242, 32, 16, 0, 0, 0, 0, 0, 104, 0, 0, 2, 3, 0, 0, 0, 16, 0, 0, 7, 18, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 1, 0, 0, 0, 70, 18, 16, 0, 1, 0, 0, 0, 68, 0, 0, 5, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 50, 0, 0, 10, 226, 0, 16, 0, 0, 0, 0, 0, 6, 25, 16, 0, 1, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 86, 142, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 0, 0, 7, 114, 0, 16, 0, 1, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 1, 0, 0, 0, 16, 0, 0, 7, 18, 0, 16, 0, 0, 0, 0, 0, 150, 7, 16, 0, 0, 0, 0, 0, 150, 7, 16, 0, 0, 0, 0, 0, 68, 0, 0, 5, 18, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 0, 0, 0, 0, 56, 0, 0, 7, 114, 0, 16, 0, 0, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 150, 7, 16, 0, 0, 0, 0, 0, 16, 0, 0, 7, 130, 0, 16, 0, 0, 0, 0, 0, 70, 18, 16, 0, 2, 0, 0, 0, 70, 18, 16, 0, 2, 0, 0, 0, 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, 16, 0, 1, 0, 0, 0, 86, 5, 16, 0, 0, 0, 0, 0, 2, 64, 0, 0, 143, 194, 245, 60, 143, 194, 245, 60, 143, 194, 245, 60, 0, 0, 0, 0, 70, 130, 32, 0, 0, 0, 0, 0, 2, 0, 0, 0, 50, 0, 0, 10, 178, 0, 16, 0, 0, 0, 0, 0, 6, 0, 16, 0, 0, 0, 0, 0, 70, 136, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 70, 8, 16, 0, 1, 0, 0, 0, 56, 0, 0, 7, 18, 0, 16, 0, 1, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 56, 0, 0, 7, 18, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 56, 32, 0, 7, 66, 0, 16, 0, 0, 0, 0, 0, 42, 0, 16, 0, 0, 0, 0, 0, 10, 0, 16, 0, 1, 0, 0, 0, 50, 0, 0, 10, 114, 0, 16, 0, 0, 0, 0, 0, 70, 130, 32, 0, 0, 0, 0, 0, 3, 0, 0, 0, 166, 10, 16, 0, 0, 0, 0, 0, 70, 3, 16, 0, 0, 0, 0, 0, 54, 0, 0, 5, 130, 0, 16, 0, 0, 0, 0, 0, 1, 64, 0, 0, 0, 0, 128, 63, 56, 0, 0, 8, 242, 32, 16, 0, 0, 0, 0, 0, 70, 14, 16, 0, 0, 0, 0, 0, 6, 128, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 1, 83, 84, 65, 84, 148, 0, 0, 0, 29, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 56, 0, 0, 0, 0, 192, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 5, 0, 0, 0, 32, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 6, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 198, 90, 0, 0, 76, 232, 3, 0, 161, 255, 0, 0, 162, 202, 1, 0, 38, 247, 2, 0, 92, 248, 0, 0, 71, 103, 0, 0, 49, 251, 3, 0, 168, 209, 0, 0, 42, 229, 1, 0, 146, 230, 3, 0, 68, 117, 1, 0, 57, 206, 1, 0, 233, 240, 2, 0, 177, 197, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 58, 32, 83, 86, 95, 84, 97, 114, 103, 101, 116, 48, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 58, 32, 83, 86, 95, 80, 111, 115, 105, 116, 105, 111, 110, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 69, 89, 69, 95, 73, 68, 50, 54, 95, 83, 69, 77, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 58, 32, 80, 79, 83, 73, 84, 73, 79, 78, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 58, 32, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 58, 32, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 58, 32, 78, 79, 82, 77, 65, 76, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 80, 101, 114, 68, 114, 97, 119, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 50, 53, 93, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 71, 108, 111, 98, 97, 108, 115, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 32, 61, 32, 49, 46, 48, 102, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 49, 102, 44, 32, 48, 46, 48, 48, 55, 53, 102, 44, 32, 48, 46, 48, 48, 54, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 125, 59, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 53, 95, 105, 100, 52, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 50, 32, 42, 32, 120, 50, 32, 42, 32, 120, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 52, 32, 61, 32, 120, 50, 32, 42, 32, 120, 50, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 56, 32, 61, 32, 120, 52, 32, 42, 32, 120, 52, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 49, 54, 32, 61, 32, 120, 56, 32, 42, 32, 120, 56, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 49, 54, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 80, 83, 77, 97, 105, 110, 40, 80, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 68, 105, 114, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 110, 111, 114, 109, 97, 108, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 76, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 41, 44, 32, 48, 46, 48, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 41, 32, 42, 32, 110, 68, 111, 116, 76, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 104, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 43, 32, 101, 121, 101, 68, 105, 114, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 72, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 104, 41, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 61, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 110, 68, 111, 116, 72, 41, 32, 42, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 118, 68, 111, 116, 78, 32, 61, 32, 100, 111, 116, 40, 101, 121, 101, 68, 105, 114, 44, 32, 110, 111, 114, 109, 97, 108, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 102, 114, 101, 115, 110, 101, 108, 32, 61, 32, 99, 108, 97, 109, 112, 40, 80, 111, 119, 53, 95, 105, 100, 52, 40, 49, 46, 48, 102, 32, 45, 32, 118, 68, 111, 116, 78, 41, 44, 32, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 32, 61, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 42, 32, 102, 114, 101, 115, 110, 101, 108, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 61, 32, 102, 108, 111, 97, 116, 52, 40, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 43, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 43, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 43, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 42, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 59, 13, 10, 32, 32, 32, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 80, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 86, 83, 77, 97, 105, 110, 40, 86, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 32, 61, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 109, 117, 108, 40, 108, 111, 99, 97, 108, 80, 111, 115, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 32, 61, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 45, 86, 105, 101, 119, 95, 105, 100, 49, 57, 91, 51, 93, 46, 120, 121, 122, 44, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 101, 121, 101, 32, 45, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 46, 120, 121, 122, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 32, 61, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 41, 59, 13, 10, 32, 32, 32, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 86, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 239, 254, 239, 1, 0, 0, 0, 70, 19, 0, 0, 0, 68, 58, 92, 88, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 88, 101, 110, 107, 111, 46, 67, 111, 114, 101, 46, 65, 115, 115, 101, 116, 115, 46, 67, 111, 109, 112, 105, 108, 101, 114, 65, 112, 112, 92, 98, 105, 110, 92, 82, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 0, 100, 58, 92, 120, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 120, 101, 110, 107, 111, 46, 99, 111, 114, 101, 46, 97, 115, 115, 101, 116, 115, 46, 99, 111, 109, 112, 105, 108, 101, 114, 97, 112, 112, 92, 98, 105, 110, 92, 114, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 104, 97, 110, 100, 101, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 58, 32, 83, 86, 95, 84, 97, 114, 103, 101, 116, 48, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 80, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 27, 226, 48, 1, 128, 0, 0, 0, 206, 24, 213, 191, 226, 204, 215, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 66, 0, 60, 17, 16, 1, 0, 0, 0, 1, 10, 0, 1, 0, 173, 2, 97, 74, 10, 0, 1, 0, 173, 2, 97, 74, 77, 105, 99, 114, 111, 115, 111, 102, 116, 32, 40, 82, 41, 32, 72, 76, 83, 76, 32, 83, 104, 97, 100, 101, 114, 32, 67, 111, 109, 112, 105, 108, 101, 114, 32, 49, 48, 46, 49, 0, 0, 0, 58, 0, 61, 17, 1, 104, 108, 115, 108, 70, 108, 97, 103, 115, 0, 48, 120, 52, 48, 48, 49, 0, 104, 108, 115, 108, 84, 97, 114, 103, 101, 116, 0, 112, 115, 95, 53, 95, 48, 0, 104, 108, 115, 108, 69, 110, 116, 114, 121, 0, 80, 83, 77, 97, 105, 110, 0, 0, 0, 0, 46, 0, 16, 17, 0, 0, 0, 0, 164, 7, 0, 0, 0, 0, 0, 0, 60, 3, 0, 0, 0, 0, 0, 0, 60, 3, 0, 0, 8, 16, 0, 0, 72, 0, 0, 0, 1, 0, 160, 80, 83, 77, 97, 105, 110, 0, 0, 0, 50, 0, 62, 17, 3, 16, 0, 0, 9, 0, 95, 95, 105, 110, 112, 117, 116, 95, 95, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 0, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 0, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 4, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 4, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 8, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 8, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 12, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 12, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 16, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 16, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 20, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 20, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 24, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 24, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 28, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 32, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 32, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 36, 0, 0, 0, 22, 0, 80, 17, 1, 0, 5, 0, 36, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 40, 0, 0, 0, 62, 0, 62, 17, 7, 16, 0, 0, 136, 0, 60, 80, 83, 77, 97, 105, 110, 32, 114, 101, 116, 117, 114, 110, 32, 118, 97, 108, 117, 101, 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 0, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 0, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 4, 0, 4, 0, 72, 0, 0, 0, 1, 0, 60, 3, 4, 0, 0, 0, 22, 0, 80, 17, 2, 0, 5, 0, 8, 0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54, 0, 62, 17, 0, 16, 0, 0, 8, 0, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 0, 0, 4, 0, 76, 3, 0, 0, 1, 0, 56, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 4, 0, 4, 0, 76, 3, 0, 0, 1, 0, 56, 0, 4, 0, 0, 0, 22, 0, 80, 17, 0, 0, 5, 0, 8, 0, 4, 0, 76, 3, 0, 0, 1, 0, 56, 0, 8, 0, 0, 0, 74, 0, 77, 17, 132, 0, 0, 0, 216, 6, 0, 0, 0, 16, 0, 0, 7, 0, 9, 5, 13, 21, 6, 2, 3, 129, 68, 13, 23, 6, 2, 3, 28, 6, 2, 3, 28, 13, 24, 6, 2, 12, 28, 28, 8, 0, 9, 16, 13, 20, 1, 129, 140, 11, 112, 13, 22, 6, 2, 3, 28, 6, 2, 3, 28, 9, 17, 13, 23, 6, 2, 12, 28, 28, 0, 0, 42, 0, 62, 17, 64, 0, 0, 0, 0, 0, 120, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 1, 0, 0, 0, 4, 0, 168, 1, 0, 0, 1, 0, 28, 0, 0, 0, 0, 0, 42, 0, 62, 17, 64, 0, 0, 0, 0, 0, 120, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 80, 17, 0, 0, 1, 0, 0, 0, 4, 0, 196, 1, 0, 0, 1, 0, 28, 0, 0, 0, 0, 0, 42, 0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 0, 244, 0, 0, 0, 24, 0, 0, 0, 1, 0, 0, 0, 16, 1, 185, 98, 246, 6, 125, 144, 158, 115, 57, 163, 78, 164, 179, 109, 33, 140, 0, 0, 242, 0, 0, 0, 208, 2, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 132, 3, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 196, 2, 0, 0, 72, 0, 0, 0, 80, 0, 0, 128, 72, 0, 0, 0, 80, 0, 0, 0, 100, 0, 0, 0, 80, 0, 0, 128, 100, 0, 0, 0, 80, 0, 0, 0, 120, 0, 0, 0, 84, 0, 0, 128, 120, 0, 0, 0, 84, 0, 0, 0, 160, 0, 0, 0, 80, 0, 0, 128, 160, 0, 0, 0, 80, 0, 0, 0, 188, 0, 0, 0, 84, 0, 0, 128, 188, 0, 0, 0, 84, 0, 0, 0, 216, 0, 0, 0, 84, 0, 0, 128, 216, 0, 0, 0, 84, 0, 0, 0, 236, 0, 0, 0, 84, 0, 0, 128, 236, 0, 0, 0, 84, 0, 0, 0, 8, 1, 0, 0, 81, 0, 0, 128, 8, 1, 0, 0, 81, 0, 0, 0, 36, 1, 0, 0, 81, 0, 0, 128, 36, 1, 0, 0, 81, 0, 0, 0, 56, 1, 0, 0, 81, 0, 0, 128, 56, 1, 0, 0, 81, 0, 0, 0, 84, 1, 0, 0, 85, 0, 0, 128, 84, 1, 0, 0, 85, 0, 0, 0, 112, 1, 0, 0, 85, 0, 0, 128, 112, 1, 0, 0, 85, 0, 0, 0, 140, 1, 0, 0, 86, 0, 0, 128, 140, 1, 0, 0, 86, 0, 0, 0, 168, 1, 0, 0, 86, 0, 0, 128, 168, 1, 0, 0, 86, 0, 0, 0, 196, 1, 0, 0, 86, 0, 0, 128, 196, 1, 0, 0, 86, 0, 0, 0, 224, 1, 0, 0, 86, 0, 0, 128, 224, 1, 0, 0, 86, 0, 0, 0, 252, 1, 0, 0, 82, 0, 0, 128, 252, 1, 0, 0, 82, 0, 0, 0, 28, 2, 0, 0, 87, 0, 0, 128, 28, 2, 0, 0, 87, 0, 0, 0, 56, 2, 0, 0, 88, 0, 0, 128, 56, 2, 0, 0, 88, 0, 0, 0, 88, 2, 0, 0, 82, 0, 0, 128, 88, 2, 0, 0, 82, 0, 0, 0, 116, 2, 0, 0, 90, 0, 0, 128, 116, 2, 0, 0, 90, 0, 0, 0, 168, 2, 0, 0, 90, 0, 0, 128, 168, 2, 0, 0, 90, 0, 0, 0, 208, 2, 0, 0, 88, 0, 0, 128, 208, 2, 0, 0, 88, 0, 0, 0, 236, 2, 0, 0, 88, 0, 0, 128, 236, 2, 0, 0, 88, 0, 0, 0, 8, 3, 0, 0, 88, 0, 0, 128, 8, 3, 0, 0, 88, 0, 0, 0, 36, 3, 0, 0, 90, 0, 0, 128, 36, 3, 0, 0, 90, 0, 0, 0, 76, 3, 0, 0, 91, 0, 0, 128, 76, 3, 0, 0, 91, 0, 0, 0, 96, 3, 0, 0, 91, 0, 0, 128, 96, 3, 0, 0, 91, 0, 0, 0, 128, 3, 0, 0, 94, 0, 0, 128, 128, 3, 0, 0, 94, 0, 0, 0, 5, 0, 55, 0, 21, 0, 54, 0, 5, 0, 55, 0, 21, 0, 54, 0, 5, 0, 63, 0, 26, 0, 61, 0, 5, 0, 55, 0, 21, 0, 54, 0, 5, 0, 63, 0, 16, 0, 62, 0, 5, 0, 63, 0, 16, 0, 62, 0, 5, 0, 63, 0, 16, 0, 62, 0, 5, 0, 58, 0, 21, 0, 57, 0, 5, 0, 58, 0, 21, 0, 57, 0, 5, 0, 58, 0, 21, 0, 57, 0, 5, 0, 44, 0, 23, 0, 36, 0, 5, 0, 44, 0, 19, 0, 43, 0, 5, 0, 70, 0, 28, 0, 43, 0, 5, 0, 70, 0, 28, 0, 43, 0, 5, 0, 70, 0, 28, 0, 43, 0, 5, 0, 70, 0, 28, 0, 43, 0, 5, 0, 69, 0, 23, 0, 62, 0, 5, 0, 38, 0, 19, 0, 37, 0, 5, 0, 62, 0, 36, 0, 47, 0, 5, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 202, 49, 1, 56, 0, 0, 0, 0, 16, 0, 0, 15, 16, 0, 0, 100, 1, 0, 0, 10, 0, 255, 255, 4, 0, 0, 0, 255, 255, 3, 0, 0, 0, 0, 0, 60, 0, 0, 0, 60, 0, 0, 0, 8, 0, 0, 0, 68, 0, 0, 0, 0, 0, 0, 0, 22, 0, 27, 21, 64, 0, 0, 0, 4, 0, 0, 0, 16, 0, 102, 108, 111, 97, 116, 52, 0, 243, 242, 241, 22, 0, 27, 21, 64, 0, 0, 0, 3, 0, 0, 0, 12, 0, 102, 108, 111, 97, 116, 51, 0, 243, 242, 241, 94, 0, 3, 18, 13, 21, 3, 0, 0, 16, 0, 0, 0, 0, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 0, 242, 241, 13, 21, 3, 0, 1, 16, 0, 0, 16, 0, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 0, 242, 241, 13, 21, 3, 0, 1, 16, 0, 0, 28, 0, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 0, 243, 242, 241, 30, 0, 5, 21, 3, 0, 0, 0, 2, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 80, 83, 95, 73, 78, 80, 85, 84, 0, 241, 10, 0, 1, 18, 1, 0, 0, 0, 3, 16, 0, 0, 30, 0, 3, 18, 13, 21, 3, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 50, 55, 32, 58, 32, 83, 72, 65, 68, 73, 78, 71, 78, 79, 82, 77, 65, 76, 95, 73, 68, 50, 55, 95, 83, 69, 77, 59, 13, 10, 125, 59, 13, 10, 115, 116, 114, 117, 99, 116, 32, 86, 83, 95, 73, 78, 80, 85, 84, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 58, 32, 80, 79, 83, 73, 84, 73, 79, 78, 59, 13, 10, 32, 32, 32, 32, 105, 110, 116, 50, 32, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 58, 32, 66, 76, 69, 78, 68, 73, 78, 68, 73, 67, 69, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 50, 32, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 58, 32, 66, 76, 69, 78, 68, 87, 69, 73, 71, 72, 84, 83, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 58, 32, 78, 79, 82, 77, 65, 76, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 80, 101, 114, 68, 114, 97, 119, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 59, 13, 10, 32, 32, 32, 32, 109, 97, 116, 114, 105, 120, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 50, 53, 93, 59, 13, 10, 125, 59, 13, 10, 99, 98, 117, 102, 102, 101, 114, 32, 71, 108, 111, 98, 97, 108, 115, 32, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 32, 61, 32, 49, 46, 48, 102, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 49, 102, 44, 32, 48, 46, 48, 48, 55, 53, 102, 44, 32, 48, 46, 48, 48, 54, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 44, 32, 48, 46, 48, 48, 49, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 125, 59, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 53, 95, 105, 100, 52, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 50, 32, 42, 32, 120, 50, 32, 42, 32, 120, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 102, 108, 111, 97, 116, 32, 120, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 50, 32, 61, 32, 120, 32, 42, 32, 120, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 52, 32, 61, 32, 120, 50, 32, 42, 32, 120, 50, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 56, 32, 61, 32, 120, 52, 32, 42, 32, 120, 52, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 120, 49, 54, 32, 61, 32, 120, 56, 32, 42, 32, 120, 56, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 120, 49, 54, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 102, 108, 111, 97, 116, 51, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 102, 108, 111, 97, 116, 51, 32, 118, 44, 32, 109, 97, 116, 114, 105, 120, 32, 109, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 102, 108, 111, 97, 116, 51, 40, 109, 91, 48, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 48, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 48, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 49, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 49, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 49, 93, 46, 122, 32, 42, 32, 118, 46, 122, 44, 32, 109, 91, 50, 93, 46, 120, 32, 42, 32, 118, 46, 120, 32, 43, 32, 109, 91, 50, 93, 46, 121, 32, 42, 32, 118, 46, 121, 32, 43, 32, 109, 91, 50, 93, 46, 122, 32, 42, 32, 118, 46, 122, 41, 59, 13, 10, 125, 13, 10, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 80, 83, 77, 97, 105, 110, 40, 80, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 80, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 68, 105, 114, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 110, 111, 114, 109, 97, 108, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 76, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 41, 44, 32, 48, 46, 48, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 61, 32, 102, 108, 111, 97, 116, 51, 40, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 44, 32, 48, 46, 48, 51, 102, 41, 32, 42, 32, 110, 68, 111, 116, 76, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 104, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 32, 43, 32, 101, 121, 101, 68, 105, 114, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 110, 68, 111, 116, 72, 32, 61, 32, 109, 97, 120, 40, 100, 111, 116, 40, 110, 111, 114, 109, 97, 108, 44, 32, 104, 41, 44, 32, 48, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 61, 32, 80, 111, 119, 49, 54, 95, 105, 100, 53, 40, 110, 68, 111, 116, 72, 41, 32, 42, 32, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 118, 68, 111, 116, 78, 32, 61, 32, 100, 111, 116, 40, 101, 121, 101, 68, 105, 114, 44, 32, 110, 111, 114, 109, 97, 108, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 32, 102, 114, 101, 115, 110, 101, 108, 32, 61, 32, 99, 108, 97, 109, 112, 40, 80, 111, 119, 53, 95, 105, 100, 52, 40, 49, 46, 48, 102, 32, 45, 32, 118, 68, 111, 116, 78, 41, 44, 32, 48, 46, 48, 102, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 32, 61, 32, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 32, 42, 32, 102, 114, 101, 115, 110, 101, 108, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 61, 32, 102, 108, 111, 97, 116, 52, 40, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 32, 43, 32, 100, 105, 102, 102, 117, 115, 101, 86, 97, 108, 117, 101, 32, 43, 32, 115, 112, 101, 99, 117, 108, 97, 114, 86, 97, 108, 117, 101, 32, 43, 32, 102, 114, 101, 115, 110, 101, 108, 86, 97, 108, 117, 101, 44, 32, 49, 46, 48, 102, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 99, 111, 110, 116, 114, 111, 108, 108, 101, 114, 67, 111, 108, 111, 114, 32, 42, 32, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 59, 13, 10, 32, 32, 32, 32, 80, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 80, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 67, 111, 108, 111, 114, 84, 97, 114, 103, 101, 116, 95, 105, 100, 50, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 86, 83, 77, 97, 105, 110, 40, 86, 83, 95, 73, 78, 80, 85, 84, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 41, 13, 10, 123, 13, 10, 32, 32, 32, 32, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 32, 115, 116, 114, 101, 97, 109, 115, 32, 61, 32, 40, 86, 83, 95, 83, 84, 82, 69, 65, 77, 83, 41, 48, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 32, 61, 32, 95, 95, 105, 110, 112, 117, 116, 95, 95, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 61, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 52, 32, 108, 111, 99, 97, 108, 80, 111, 115, 32, 61, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 80, 111, 115, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 109, 117, 108, 40, 108, 111, 99, 97, 108, 80, 111, 115, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 101, 121, 101, 32, 61, 32, 84, 114, 97, 110, 115, 112, 111, 115, 101, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 51, 40, 45, 86, 105, 101, 119, 95, 105, 100, 49, 57, 91, 51, 93, 46, 120, 121, 122, 44, 32, 86, 105, 101, 119, 95, 105, 100, 49, 57, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 101, 121, 101, 32, 45, 32, 109, 117, 108, 40, 115, 116, 114, 101, 97, 109, 115, 46, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 49, 52, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 46, 120, 121, 122, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 120, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 61, 32, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 115, 116, 114, 101, 97, 109, 115, 46, 78, 111, 114, 109, 97, 108, 95, 105, 100, 49, 53, 44, 32, 74, 111, 105, 110, 116, 115, 95, 105, 100, 50, 48, 91, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 73, 110, 100, 105, 99, 101, 115, 95, 105, 100, 49, 54, 46, 121, 93, 41, 59, 13, 10, 32, 32, 32, 32, 102, 108, 111, 97, 116, 51, 32, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 32, 61, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 49, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 120, 41, 32, 43, 32, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 50, 32, 42, 32, 115, 116, 114, 101, 97, 109, 115, 46, 66, 108, 101, 110, 100, 87, 101, 105, 103, 104, 116, 115, 95, 105, 100, 49, 55, 46, 121, 41, 59, 13, 10, 32, 32, 32, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 110, 111, 114, 109, 97, 108, 105, 122, 101, 40, 77, 117, 108, 116, 105, 112, 108, 121, 95, 105, 100, 50, 40, 108, 111, 99, 97, 108, 78, 111, 114, 109, 97, 108, 44, 32, 77, 97, 116, 114, 105, 120, 84, 114, 97, 110, 115, 102, 111, 114, 109, 95, 105, 100, 49, 56, 41, 41, 59, 13, 10, 32, 32, 32, 32, 86, 83, 95, 79, 85, 84, 80, 85, 84, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 32, 61, 32, 40, 86, 83, 95, 79, 85, 84, 80, 85, 84, 41, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 80, 111, 115, 105, 116, 105, 111, 110, 95, 105, 100, 48, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 69, 121, 101, 95, 105, 100, 50, 54, 59, 13, 10, 32, 32, 32, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 32, 61, 32, 115, 116, 114, 101, 97, 109, 115, 46, 83, 104, 97, 100, 105, 110, 103, 78, 111, 114, 109, 97, 108, 95, 105, 100, 50, 55, 59, 13, 10, 32, 32, 32, 32, 114, 101, 116, 117, 114, 110, 32, 95, 95, 111, 117, 116, 112, 117, 116, 95, 95, 59, 13, 10, 125, 13, 10, 0, 7, 0, 0, 0, 1, 0, 0, 0, 134, 0, 0, 0, 135, 0, 0, 0, 12, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 37, 17, 0, 0, 0, 0, 132, 0, 0, 0, 1, 0, 80, 83, 77, 97, 105, 110, 0, 0, 0, 0, 34, 0, 81, 17, 12, 16, 0, 0, 8, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 79, 112, 97, 99, 105, 116, 121, 95, 105, 100, 50, 49, 0, 0, 0, 0, 46, 0, 81, 17, 14, 16, 0, 0, 8, 0, 0, 0, 4, 0, 255, 255, 255, 255, 255, 255, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 68, 105, 114, 101, 99, 116, 105, 111, 110, 95, 105, 100, 50, 50, 0, 42, 0, 81, 17, 14, 16, 0, 0, 8, 0, 0, 0, 16, 0, 255, 255, 255, 255, 255, 255, 83, 112, 101, 99, 117, 108, 97, 114, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 51, 0, 42, 0, 81, 17, 14, 16, 0, 0, 8, 0, 0, 0, 32, 0, 255, 255, 255, 255, 255, 255, 65, 109, 98, 105, 101, 110, 116, 76, 105, 103, 104, 116, 67, 111, 108, 111, 114, 95, 105, 100, 50, 52, 0, 0, 34, 0, 81, 17, 14, 16, 0, 0, 8, 0, 0, 0, 48, 0, 255, 255, 255, 255, 255, 255, 71, 108, 111, 119, 67, 111, 108, 111, 114, 95, 105, 100, 50, 53, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148, 46, 49, 1, 108, 34, 124, 97, 1, 0, 0, 0, 97, 211, 239, 241, 124, 76, 241, 70, 184, 33, 127, 28, 98, 74, 60, 140, 178, 0, 0, 0, 47, 76, 105, 110, 107, 73, 110, 102, 111, 0, 47, 110, 97, 109, 101, 115, 0, 47, 115, 114, 99, 47, 104, 101, 97, 100, 101, 114, 98, 108, 111, 99, 107, 0, 47, 115, 114, 99, 47, 102, 105, 108, 101, 115, 47, 100, 58, 92, 120, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 120, 101, 110, 107, 111, 46, 99, 111, 114, 101, 46, 97, 115, 115, 101, 116, 115, 46, 99, 111, 109, 112, 105, 108, 101, 114, 97, 112, 112, 92, 98, 105, 110, 92, 114, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 104, 97, 110, 100, 101, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 4, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 17, 0, 0, 0, 7, 0, 0, 0, 10, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 5, 0, 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, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 9, 0, 168, 7, 0, 0, 0, 0, 0, 0, 28, 3, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 83, 77, 97, 105, 110, 0, 110, 111, 110, 101, 0, 45, 186, 46, 241, 1, 0, 0, 0, 0, 0, 0, 0, 132, 3, 0, 0, 32, 0, 0, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 2, 0, 7, 0, 0, 0, 0, 0, 1, 0, 255, 255, 255, 255, 0, 0, 0, 0, 132, 3, 0, 0, 8, 2, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 68, 58, 92, 88, 101, 110, 107, 111, 92, 115, 111, 117, 114, 99, 101, 115, 92, 97, 115, 115, 101, 116, 115, 92, 88, 101, 110, 107, 111, 46, 67, 111, 114, 101, 46, 65, 115, 115, 101, 116, 115, 46, 67, 111, 109, 112, 105, 108, 101, 114, 65, 112, 112, 92, 98, 105, 110, 92, 82, 101, 108, 101, 97, 115, 101, 92, 110, 101, 116, 52, 55, 50, 92, 108, 111, 103, 92, 115, 104, 97, 100, 101, 114, 95, 72, 97, 110, 100, 69, 102, 102, 101, 99, 116, 95, 53, 57, 53, 98, 51, 53, 51, 49, 48, 52, 101, 97, 99, 53, 54, 52, 100, 101, 57, 98, 101, 54, 97, 97, 98, 57, 53, 52, 48, 97, 55, 100, 46, 104, 108, 115, 108, 0, 0, 0, 0, 254, 239, 254, 239, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 12, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; } } #endif
234.747758
442
0.462437
[ "MIT" ]
guygodin/xenko
sources/engine/Xenko.Graphics/Shaders.Bytecodes/HandEffect.bytecode.Direct3D11.Level_11_0.cs
209,397
C#
using System.IO; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEditorInternal; using RectEx; using System; namespace OneLine.Settings { [CustomEditor(typeof(Settings))] public class SettingsEditor : Editor { private const String SETTINGS_README = @"<b>OneLine Settings</b> Here you can manage OneLine features (every column represents a separate feature, read the tooltips over buttons). There are features of two types: <b>drawing feature</b> and <b>optimization feature</b>. All of them are Enabled by default. You can disable them globally (store in ScriptableObject and share with your team) or locally (store on your PC only). If value <b>is not null</b>, it <b>overrides</b> column above. Resulting values are shown in the bottom row (RESULTS row). Do not forget to click <b>Save</b>. By clicking <b>Remove</b> you reset your global <b>and</b> local settings to default, remove this ScriptableObject and add #define ONE_LINE_DEFAULTS_ONLY=true to the solution. It is shared with your team. If you just remove this ScriptableObject, your local settings stay changed."; private new Settings target { get { return (Settings) base.target;} } public override void OnInspectorGUI() { #if ONE_LINE_DEFAULTS_ONLY PrintErrorUnusedSettingsFile(); #else if (SettingsMenu.LoadSettingsFromResources() != target) { PrintErrorUnusedSettingsFile(); EditorGUI.BeginDisabledGroup(true); } DrawReadme(); var height = EditorGUIUtility.singleLineHeight; var rect = EditorGUILayout.GetControlRect(false, height); //In order to beat EventType.Layout rect.height = 16; var startRect = rect; DrawHeader(rect); DrawReadOnlyLayer(rect = rect.MoveDown(), "Defaults", target.Defaults); DrawLayer(rect = rect.MoveDown(), "Global override", target.Layer); DrawLayer(rect = rect.MoveDown(), "Local override", target.Local); DrawReadOnlyLayer(rect = rect.MoveDown(20), "Results", target); DrawSaveButton(rect = rect.MoveDown(20)); DrawRemoveButton(rect = rect.MoveDown(20)); //In order to beat EventType.Layout EditorGUILayout.GetControlRect(false, rect.yMax - startRect.yMin); #endif } private void PrintErrorUnusedSettingsFile(){ EditorGUILayout.HelpBox("This settings file is not actually used by OneLine.\nDelete it, please.", MessageType.Error); } private void DrawReadme() { var style = new GUIStyle(GUI.skin.box); style.padding = new RectOffset(10, 10, 10, 10); style.richText = true; style.alignment = TextAnchor.MiddleLeft; GUILayout.Box(SETTINGS_README, style); } private void DrawHeader(Rect rect) { var rects = Row(rect); EditorGUI.LabelField(rects[1], "Enabled"); EditorGUI.LabelField(rects[2], "V Separator"); EditorGUI.LabelField(rects[3], "H Separator"); EditorGUI.LabelField(rects[4], "Expandable"); EditorGUI.LabelField(rects[5], "Custom Drawer"); EditorGUI.LabelField(rects[6], "Culling"); EditorGUI.LabelField(rects[7], "Cache"); } private void DrawReadOnlyLayer(Rect rect, string label, ISettings layer) { EditorGUI.BeginDisabledGroup(true); DrawLayer(rect, label, layer); EditorGUI.EndDisabledGroup(); } private void DrawLayer(Rect rect, string label, ISettings layer) { var rects = Row(rect); EditorGUI.LabelField(rects[0], label); Draw(rects[1], layer.Enabled, "Enable OneLine"); Draw(rects[2], layer.DrawVerticalSeparator, "Draw Vertical Separator"); Draw(rects[3], layer.DrawHorizontalSeparator, "Draw Horizontal Separator"); Draw(rects[4], layer.Expandable, "Expand Object references via [Expandable]"); Draw(rects[5], layer.CustomDrawer, "Draw custom property drawers"); Draw(rects[6], layer.CullingOptimization, "Use culling optimization"); Draw(rects[7], layer.CacheOptimization, "Use cache optimization"); } private void Draw(Rect rect, TernaryBoolean value, string tooltip) { var content = new GUIContent(value.ToString(), tooltip); if (GUI.Button(rect, content)){ value.SwitchToNext(); } } private Rect[] Row(Rect rect) { return rect.Row( new float[]{0, 0, 0, 0, 0, 0, 0, 0}, new float[]{100, 50, 50, 50, 50, 50, 50, 50} ); } private void DrawSaveButton(Rect rect) { if (GUI.Button(rect.CutFromLeft(50)[0], "Save")){ target.SaveAndApply(); } } private void DrawRemoveButton(Rect rect) { var rects = rect.CutFromRight(75); EditorGUI.LabelField(rects[0], "Remove Settings File And Always Use Default Parameters"); if (GUI.Button(rects[1], "Remove")){ SettingsMenu.RemoveSettingsForever(target); } } } }
38.633094
204
0.622533
[ "MIT" ]
Team-on/SeriousGameJam
SeriousGameJam/Assets/Plugins/one-line/Editor/Scripts/Settings/SettingsEditor.cs
5,372
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ using CsSystem = System; using Fox; namespace Fox.Core { public partial class TransformRTEntity : Fox.Core.DataElement { // Properties public UnityEngine.Quaternion transform_rotation_quat; public UnityEngine.Vector3 transform_translation; public UnityEngine.Quaternion rotQuat; public UnityEngine.Vector3 translation; // PropertyInfo private static Fox.EntityInfo classInfo; public static new Fox.EntityInfo ClassInfo { get { return classInfo; } } public override Fox.EntityInfo GetClassEntityInfo() { return classInfo; } static TransformRTEntity() { classInfo = new Fox.EntityInfo("TransformRTEntity", new Fox.Core.DataElement(0, 0, 0).GetClassEntityInfo(), 0, null, 0); classInfo.StaticProperties.Insert("transform_rotation_quat", new Fox.Core.PropertyInfo(Fox.Core.PropertyInfo.PropertyType.Quat, 64, 1, Fox.Core.PropertyInfo.ContainerType.StaticArray, Fox.Core.PropertyInfo.PropertyExport.Never, Fox.Core.PropertyInfo.PropertyExport.Never, null, null, Fox.Core.PropertyInfo.PropertyStorage.Instance)); classInfo.StaticProperties.Insert("transform_translation", new Fox.Core.PropertyInfo(Fox.Core.PropertyInfo.PropertyType.Vector3, 80, 1, Fox.Core.PropertyInfo.ContainerType.StaticArray, Fox.Core.PropertyInfo.PropertyExport.Never, Fox.Core.PropertyInfo.PropertyExport.Never, null, null, Fox.Core.PropertyInfo.PropertyStorage.Instance)); classInfo.StaticProperties.Insert("rotQuat", new Fox.Core.PropertyInfo(Fox.Core.PropertyInfo.PropertyType.Quat, 0, 1, Fox.Core.PropertyInfo.ContainerType.StaticArray, Fox.Core.PropertyInfo.PropertyExport.EditorAndGame, Fox.Core.PropertyInfo.PropertyExport.EditorAndGame, null, null, Fox.Core.PropertyInfo.PropertyStorage.Instance)); classInfo.StaticProperties.Insert("translation", new Fox.Core.PropertyInfo(Fox.Core.PropertyInfo.PropertyType.Vector3, 0, 1, Fox.Core.PropertyInfo.ContainerType.StaticArray, Fox.Core.PropertyInfo.PropertyExport.EditorAndGame, Fox.Core.PropertyInfo.PropertyExport.EditorAndGame, null, null, Fox.Core.PropertyInfo.PropertyStorage.Instance)); } // Constructor public TransformRTEntity(ulong address, ushort idA, ushort idB) : base(address, idA, idB) { } public override void SetProperty(string propertyName, Fox.Value value) { switch(propertyName) { case "transform_rotation_quat": this.transform_rotation_quat = value.GetValueAsQuat(); return; case "transform_translation": this.transform_translation = value.GetValueAsVector3(); return; case "rotQuat": this.rotQuat = value.GetValueAsQuat(); return; case "translation": this.translation = value.GetValueAsVector3(); return; default: base.SetProperty(propertyName, value); return; } } public override void SetPropertyElement(string propertyName, ushort index, Fox.Value value) { switch(propertyName) { default: base.SetPropertyElement(propertyName, index, value); return; } } public override void SetPropertyElement(string propertyName, string key, Fox.Value value) { switch(propertyName) { default: base.SetPropertyElement(propertyName, key, value); return; } } } }
44.195876
342
0.608118
[ "MIT" ]
Joey35233/FoxKit-3
FoxKit/Assets/FoxKit/Fox/Generated/Fox/Core/TransformRTEntity.generated.cs
4,287
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Forms; namespace CapsLockMacros { class LowLevelKeyboard : IDisposable { #region constants private const int KEYEVENTF_KEYUP = 0x2; private const int KEYEVENTF_KEYDOWN = 0x0; private const int WM_KEYUP = 0x101; private const int WM_KEYDOWN = 0x0100; private const uint KEYEVENTF_EXTENDEDKEY = 1; private const int WH_KEYBOARD_LL = 13; #endregion #region events public delegate void KeyEventHandler(KeyEventArgs e); public class KeyEventArgs { public readonly Keys Key; public bool Cancel { get; set; } public KeyEventArgs(Keys key) { Key = key; } } public event KeyEventHandler KeyDown; public event KeyEventHandler KeyUp; #endregion #region Properties public readonly HashSet<Keys> DownKeys = new HashSet<Keys>(); #endregion #region send key presses public void SendKeyDown(Keys key) { keybd_event((byte)key, 0x0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYDOWN, 0); } public void SendKeyUp(Keys key) { keybd_event((byte)key, 0x0, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0); } public void SendKeyPress(Keys key) { SendKeyDown(key); SendKeyUp(key); } #endregion #region global keyboard hook private LowLevelKeyboardProc HookCallbackProc; private IntPtr HookCallback(int nCode, IntPtr wParam, IntPtr lParam) { if (nCode >= 0) { int vkCode = Marshal.ReadInt32(lParam); Keys key = (Keys)vkCode; var eventArgs = new KeyEventArgs(key); if (wParam == (IntPtr)WM_KEYDOWN || wParam == (IntPtr)260) { DownKeys.Add(key); KeyDown?.Invoke(eventArgs); } else if (wParam == (IntPtr)WM_KEYUP) { DownKeys.Remove(key); KeyUp?.Invoke(eventArgs); } if (eventArgs.Cancel) return new IntPtr(1); } return CallNextHookEx(HookID, nCode, wParam, lParam); } private IntPtr HookID = IntPtr.Zero; private void SetHook() { if (HookID != IntPtr.Zero) return; using (Process curProcess = Process.GetCurrentProcess()) using (ProcessModule curModule = curProcess.MainModule) { HookCallbackProc = HookCallback; HookID = SetWindowsHookEx(WH_KEYBOARD_LL, HookCallbackProc, GetModuleHandle(curModule.ModuleName), 0); } } private void Unhook() { if (HookID == IntPtr.Zero) return; UnhookWindowsHookEx(HookID); HookID = IntPtr.Zero; } #endregion #region disposal public void Start() { SetHook(); } public void Stop() { Unhook(); } public void Dispose() { Stop(); } #endregion #region dll imports private delegate IntPtr LowLevelKeyboardProc(int nCode, IntPtr wParam, IntPtr lParam); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] private static extern IntPtr SetWindowsHookEx(int idHook, LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool UnhookWindowsHookEx(IntPtr hhk); [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] private static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam); [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] private static extern IntPtr GetModuleHandle(string lpModuleName); [DllImport("user32.dll", EntryPoint = "keybd_event")] private static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo); #endregion } }
29.697368
123
0.56934
[ "MIT" ]
Thomi7/CapsLockMacros
CapsLockShortcuts/LowLevelKeyboard.cs
4,516
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Net.Http; namespace Yarp.ReverseProxy.Forwarder { /// <summary> /// Config for <see cref="IHttpForwarder.SendAsync"/> /// </summary> public sealed record ForwarderRequestConfig { /// <summary> /// An empty instance of this type. /// </summary> public static ForwarderRequestConfig Empty { get; } = new(); /// <summary> /// How long a request is allowed to remain idle between any operation completing, after which it will be canceled. /// The default is 100 seconds. The timeout will reset when response headers are received or after successfully reading or /// writing any request, response, or streaming data like gRPC or WebSockets. TCP keep-alives and HTTP/2 protocol pings will /// not reset the timeout, but WebSocket pings will. /// </summary> public TimeSpan? ActivityTimeout { get; init; } /// <summary> /// Preferred version of the outgoing request. /// The default is HTTP/2.0. /// </summary> public Version? Version { get; init; } #if NET /// <summary> /// The policy applied to version selection, e.g. whether to prefer downgrades, upgrades or /// request an exact version. The default is `RequestVersionOrLower`. /// </summary> public HttpVersionPolicy? VersionPolicy { get; init; } #endif /// <summary> /// Allows to use write buffering when sending a response back to the client, /// if the server hosting YARP (e.g. IIS) supports it. /// NOTE: enabling it can break SSE (server side event) scenarios. /// </summary> public bool? AllowResponseBuffering { get; init; } public bool Equals(ForwarderRequestConfig? other) { if (other == null) { return false; } return ActivityTimeout == other.ActivityTimeout #if NET && VersionPolicy == other.VersionPolicy #endif && Version == other.Version && AllowResponseBuffering == other.AllowResponseBuffering; } public override int GetHashCode() { return HashCode.Combine(ActivityTimeout, #if NET VersionPolicy, #endif Version, AllowResponseBuffering); } } }
33.12
132
0.599839
[ "MIT" ]
ScriptBox21/reverse-proxy
src/ReverseProxy/Forwarder/ForwarderRequestConfig.cs
2,484
C#
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace TietoCRM.Models { public class ExportSentOffersToExcel { } }
15.363636
40
0.745562
[ "MIT" ]
AndreasBlom/TSS
TESS/Models/ExportSentOffersToExcel.cs
171
C#
// <copyright file="EbayPurchase_Without_PurchaseFaceade_Tests.cs" company="Automate The Planet Ltd."> // Copyright 2021 Automate The Planet Ltd. // Licensed under the Apache License, Version 2.0 (the "License"); // You may not use this file except in compliance with the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // </copyright> // <author>Anton Angelov</author> // <site>http://automatetheplanet.com/</site> using FacadeDesignPattern.Data; using FacadeDesignPattern.Pages.CheckoutPage; using FacadeDesignPattern.Pages.ItemPage; using FacadeDesignPattern.Pages.ShippingAddressPage; using FacadeDesignPattern.Pages.SignInPage; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FacadeDesignPattern { [TestClass] public class EbayPurchaseWithoutPurchaseFaceadeTests { [TestInitialize] public void SetupTest() { Core.Driver.StartBrowser(); } [TestCleanup] public void TeardownTest() { Core.Driver.StopBrowser(); } [TestMethod] public void Purchase_Casio_GShock() { var itemUrl = "Casio-G-Shock-Standard-GA-100-1A2-Mens-Watch-Brand-New-/161209550414?pt=LH_DefaultDomain_15&hash=item2588d6864e"; var itemPrice = "AU $168.00"; var currentClientInfo = new ClientInfo() { FirstName = "Anton", LastName = "Angelov", Country = "Bulgaria", Address1 = "33 Alexander Malinov Blvd.", City = "Sofia", Zip = "1729", Phone = "0035964644885", Email = "aangelov@yahoo.com" }; var itemPage = new ItemPage(); var checkoutPage = new CheckoutPage(); var shippingAddressPage = new ShippingAddressPage(); var signInPage = new SignInPage(); itemPage.Navigate(itemUrl); itemPage.Validate().Price(itemPrice); itemPage.ClickBuyNowButton(); signInPage.ClickContinueAsGuestButton(); shippingAddressPage.FillShippingInfo(currentClientInfo); shippingAddressPage.Validate().Subtotal(itemPrice); shippingAddressPage.ClickContinueButton(); checkoutPage.Validate().Subtotal(itemPrice); } [TestMethod] public void Purchase_WhiteOpticalKeyboard() { var itemUrl = "Wireless-White-2-4G-Optical-Keyboard-and-Mouse-USB-Receiver-Kit-For-PC-/360649772948?pt=LH_DefaultDomain_2&hash=item53f866cf94"; var itemPrice = "C $20.86"; var currentClientInfo = new ClientInfo() { FirstName = "Anton", LastName = "Angelov", Country = "Bulgaria", Address1 = "33 Alexander Malinov Blvd.", City = "Stara Zagora", Zip = "6000", Phone = "0035964644885", Email = "aangelov@yahoo.com" }; var itemPage = new ItemPage(); var checkoutPage = new CheckoutPage(); var shippingAddressPage = new ShippingAddressPage(); var signInPage = new SignInPage(); itemPage.Navigate(itemUrl); itemPage.Validate().Price(itemPrice); itemPage.ClickBuyNowButton(); signInPage.ClickContinueAsGuestButton(); shippingAddressPage.FillShippingInfo(currentClientInfo); shippingAddressPage.Validate().Subtotal(itemPrice); shippingAddressPage.ClickContinueButton(); checkoutPage.Validate().Subtotal(itemPrice); } } }
40.079208
155
0.624012
[ "Apache-2.0" ]
AutomateThePlanet/AutomateThePlanet-Learning-Series
dotnet/Design-Architecture-Series/FacadeDesignPattern/EbayPurchase_Without_PurchaseFaceade_Tests.cs
4,050
C#
using ApplicationCore.DTOs; using ApplicationCore.Entities; using ApplicationCore.Interfaces.Repositories; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using System.Linq.Dynamic.Core; namespace Infrastructure.Data.Repositories { /// <summary> /// "There's some repetition here - couldn't we have some the sync methods call the async?" /// https://blogs.msdn.microsoft.com/pfxteam/2012/04/13/should-i-expose-synchronous-wrappers-for-asynchronous-methods/ /// </summary> /// <typeparam name="T"></typeparam> public class EfRepository<T> : IEfRepository<T> where T : class, IBaseEntity { protected readonly AppDbContext _dbContext; protected readonly DbSet<T> _dbSet; public EfRepository(AppDbContext dbContext) { _dbContext = dbContext; _dbSet = _dbContext.Set<T>(); } public T GetById(int id) { return _dbSet.Find(id); } public T GetSingleByExpr(Expression<Func<T, bool>> criteria) { return _dbSet.FirstOrDefault(criteria); } public async Task<T> GetByIdAsync(int id) { return await _dbSet.FindAsync(id); } public async Task<T> GetSingleByExprAsync(Expression<Func<T, bool>> criteria) { return await _dbSet.FirstOrDefaultAsync(criteria); } public bool Exists(int id) { return _dbSet.Any(x => x.Id == id); } public async Task<bool> ExistsAsync(int id) { return await _dbSet.AnyAsync(x => x.Id == id); } public int Count() { return _dbSet.Count(); } public async Task<int> CountAsync() { return await _dbSet.CountAsync(); } public List<T> ListAll() { return _dbSet.ToList(); } public async Task<List<T>> ListAllAsync() { return await _dbSet.ToListAsync(); } public List<T> ListAll(int page, int pageSize) { return _dbSet .OrderBy(x => x.Id) .Skip((page - 1) * pageSize) .Take(pageSize) .ToList(); } public List<T> ListAll(int offset, int limit, FilterByExpressionModel filterByExpressionModel, string sort, string order, out int count) { try { count = 0; if (filterByExpressionModel == null && string.IsNullOrEmpty(sort)) { count = _dbSet.Count(); return _dbSet.OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToList(); } else if (filterByExpressionModel == null && !string.IsNullOrEmpty(sort)) { var orderByExpression = $"{sort} {order}"; count = _dbSet.Count(); return _dbSet.OrderBy(orderByExpression).Skip(offset).Take(limit).ToList(); } else if (filterByExpressionModel != null && string.IsNullOrEmpty(sort)) { var records = _dbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()); count = records.Count(); return records.OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToList(); } else { var orderByExpression = $"{sort} {order}"; var records = _dbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()); count = records.Count(); return records.OrderBy(orderByExpression).Skip(offset).Take(limit).ToList(); } } catch (Exception ex) { throw ex; } } public List<T> ListAll(Expression<Func<T, bool>> criteria, int offset, int limit, FilterByExpressionModel filterByExpressionModel, string sort, string order, out int count) { try { count = 0; var filteredDbSet = _dbSet.Where(criteria); if (filterByExpressionModel == null && string.IsNullOrEmpty(sort)) { count = filteredDbSet.Count(); return filteredDbSet.OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToList(); } else if (filterByExpressionModel == null && !string.IsNullOrEmpty(sort)) { var orderByExpression = $"{sort} {order}"; count = filteredDbSet.Count(); return filteredDbSet.OrderBy(orderByExpression).Skip(offset).Take(limit).ToList(); } else if (filterByExpressionModel != null && string.IsNullOrEmpty(sort)) { var records = filteredDbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()); count = records.Count(); return records.OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToList(); } else { var orderByExpression = $"{sort} {order}"; var records = filteredDbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()); count = records.Count(); return records.OrderBy(orderByExpression).Skip(offset).Take(limit).ToList(); } } catch (Exception ex) { throw ex; } } public async Task<List<T>> ListAllAsync(int page, int pageSize) { return await _dbSet .OrderBy(x => x.Id) .Skip((page - 1) * pageSize) .Take(pageSize) .ToListAsync(); } public async Task<List<T>> ListAllAsync(int offset, int limit, FilterByExpressionModel filterByExpressionModel, string sort, string order) { try { if (filterByExpressionModel == null && string.IsNullOrEmpty(sort)) { return await _dbSet.OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToListAsync(); } else if (filterByExpressionModel == null && !string.IsNullOrEmpty(sort)) { var orderByExpression = $"{sort} {order}"; return await _dbSet.OrderBy(orderByExpression).Skip(offset).Take(limit).ToListAsync(); } else if (filterByExpressionModel != null && string.IsNullOrEmpty(sort)) { return await _dbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()).OrderByDescending(x => x.Id).Skip(offset).Take(limit).ToListAsync(); } else { var orderByExpression = $"{sort} {order}"; return await _dbSet.Where(filterByExpressionModel.Expression, filterByExpressionModel.Parameters.ToArray()).OrderBy(orderByExpression).Skip(offset).Take(limit).ToListAsync(); } } catch (Exception ex) { throw ex; } } public IQueryable<T> List(Expression<Func<T, bool>> criteria) { return _dbSet.Where(criteria).AsQueryable(); } public T Add(T entity, string tableName) { _dbSet.Add(entity); _dbContext.SaveChanges(); return entity; } public async Task<T> AddAsync(T entity) { _dbSet.Add(entity); await _dbContext.SaveChangesAsync(); return entity; } public void Update(T entity) { _dbContext.Entry(entity).State = EntityState.Modified; _dbContext.SaveChanges(); } public async Task UpdateAsync(T entity) { _dbContext.Entry(entity).State = EntityState.Modified; await _dbContext.SaveChangesAsync(); } public void Delete(T entity) { _dbSet.Remove(entity); _dbContext.SaveChanges(); } public async Task DeleteAsync(T entity) { _dbSet.Remove(entity); await _dbContext.SaveChangesAsync(); } } }
35.865306
196
0.537612
[ "Apache-2.0" ]
lisansojib/portfolio
Infrastructure/Data/Repositories/EfRepository.cs
8,789
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace DbapyInc { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new LoginForm()); } } }
22.217391
65
0.612524
[ "MIT" ]
ron-popov/FinalProject
Code/DbapyInc/DbapyInc/Program.cs
513
C#
using System; using System.Text; using System.Linq; using System.Collections.Generic; using Phantasma.Core; using Phantasma.Core.Log; using Phantasma.Storage; using Phantasma.Numerics; using Phantasma.VM; using Phantasma.VM.Utils; using Phantasma.Core.Types; using Phantasma.Blockchain.Contracts; using Phantasma.Cryptography; using Phantasma.Blockchain.Tokens; using Phantasma.Storage.Context; using Phantasma.Domain; using Phantasma.Core.Utils; using Phantasma.Core.Performance; using Phantasma.Storage.Utils; namespace Phantasma.Blockchain { public sealed class Chain : IChain { private const string TransactionHashMapTag = ".txs"; private const string BlockHashMapTag = ".blocks"; private const string BlockHeightListTag = ".height"; private const string TxBlockHashMapTag = ".txblmp"; private const string AddressTxHashMapTag = ".adblmp"; private const string TaskListTag = ".tasks"; #region PUBLIC public static readonly uint InitialHeight = 1; public Nexus Nexus { get; private set; } public string Name { get; private set; } public Address Address { get; private set; } public BigInteger Height => GetBlockHeight(); public readonly Logger Log; public StorageContext Storage { get; private set; } public bool IsRoot => this.Name == DomainSettings.RootChainName; #endregion public Chain(Nexus nexus, string name, Logger log = null) { Throw.IfNull(nexus, "nexus required"); this.Name = name; this.Nexus = nexus; this.Address = Address.FromHash(this.Name); this.Storage = new KeyStoreStorage(Nexus.GetChainStorage(this.Name)); this.Log = Logger.Init(log); } public IContract[] GetContracts(StorageContext storage) { var contractList = new StorageList(GetContractListKey(), storage); var addresses = contractList.All<Address>(); return addresses.Select(x => this.GetContractByAddress(storage, x)).ToArray(); } public override string ToString() { return $"{Name} ({Address})"; } private bool VerifyBlockBeforeAdd(Block block) { if (block.TransactionCount > DomainSettings.MaxTxPerBlock) { return false; } if (block.OracleData.Count() > DomainSettings.MaxOracleEntriesPerBlock) { return false; } if (block.Events.Count() > DomainSettings.MaxEventsPerBlock) { return false; } foreach (var txHash in block.TransactionHashes) { var evts = block.GetEventsForTransaction(txHash); if (evts.Count() > DomainSettings.MaxEventsPerTx) { return false; } } return true; } public void AddBlock(Block block, IEnumerable<Transaction> transactions, BigInteger minimumFee, StorageChangeSetContext changeSet) { if (!block.IsSigned) { throw new BlockGenerationException($"block must be signed"); } var unsignedBytes = block.ToByteArray(false); if (!block.Signature.Verify(unsignedBytes, block.Validator)) { throw new BlockGenerationException($"block signature does not match validator {block.Validator.Text}"); } if (!VerifyBlockBeforeAdd(block)) { throw new BlockGenerationException($"block verification failed, would have overflown, hash:{block.Hash}"); } var hashList = new StorageList(BlockHeightListTag, this.Storage); var expectedBlockHeight = hashList.Count() + 1; if (expectedBlockHeight != block.Height) { throw new ChainException("unexpected block height"); } // from here on, the block is accepted using (var m = new ProfileMarker("changeSet.Execute")) changeSet.Execute(); hashList.Add<Hash>(block.Hash); using (var m = new ProfileMarker("Compress")) { var blockMap = new StorageMap(BlockHashMapTag, this.Storage); var blockBytes = block.ToByteArray(true); blockBytes = CompressionUtils.Compress(blockBytes); blockMap.Set<Hash, byte[]>(block.Hash, blockBytes); var txMap = new StorageMap(TransactionHashMapTag, this.Storage); var txBlockMap = new StorageMap(TxBlockHashMapTag, this.Storage); foreach (Transaction tx in transactions) { var txBytes = tx.ToByteArray(true); txBytes = CompressionUtils.Compress(txBytes); txMap.Set<Hash, byte[]>(tx.Hash, txBytes); txBlockMap.Set<Hash, Hash>(tx.Hash, block.Hash); } } using (var m = new ProfileMarker("AddressBlockHashMapTag")) foreach (var transaction in transactions) { var addresses = new HashSet<Address>(); var events = block.GetEventsForTransaction(transaction.Hash); foreach (var evt in events) { if (evt.Contract == "gas" && (evt.Address.IsSystem || evt.Address == block.Validator)) { continue; } addresses.Add(evt.Address); } var addressTxMap = new StorageMap(AddressTxHashMapTag, this.Storage); foreach (var address in addresses) { var addressList = addressTxMap.Get<Address, StorageList>(address); addressList.Add<Hash>(transaction.Hash); } } using (var m = new ProfileMarker("Nexus.PluginTriggerBlock")) Nexus.PluginTriggerBlock(this, block); } // signingKeys should be null if the block should not be modified public StorageChangeSetContext ProcessTransactions(Block block, IEnumerable<Transaction> transactions , OracleReader oracle, BigInteger minimumFee, out Transaction inflationTx, PhantasmaKeys signingKeys) { bool allowModify = signingKeys != null; if (allowModify) { block.CleanUp(); } var changeSet = new StorageChangeSetContext(this.Storage); transactions = ProcessPendingTasks(block, oracle, minimumFee, changeSet, allowModify).Concat(transactions); int txIndex = 0; foreach (var tx in transactions) { VMObject vmResult; try { using (var m = new ProfileMarker("ExecuteTransaction")) { if (ExecuteTransaction(txIndex, tx, tx.Script, block.Validator, block.Timestamp, changeSet, block.Notify, oracle, ChainTask.Null, minimumFee, out vmResult, allowModify)) { if (vmResult != null) { if (allowModify) { var resultBytes = Serialization.Serialize(vmResult); block.SetResultForHash(tx.Hash, resultBytes); } } } else { throw new InvalidTransactionException(tx.Hash, "script execution failed"); } } } catch (Exception e) { e = e.ExpandInnerExceptions(); // log original exception, throwing it again kills the call stack! Log.Error($"Exception while transactions of block {block.Height}: " + e); if (tx == null) { throw new BlockGenerationException(e.Message); } throw new InvalidTransactionException(tx.Hash, e.Message); } txIndex++; } inflationTx = null; if (this.IsRoot && allowModify) { var inflationReady = NativeContract.LoadFieldFromStorage<bool>(changeSet, NativeContractKind.Gas, nameof(GasContract._inflationReady)); if (inflationReady) { if (!(block.Height >= 242942) && !(block.Height <= 242944)) { Console.WriteLine("do inflation now"); var script = new ScriptBuilder() .AllowGas(block.Validator, Address.Null, minimumFee, 999999) .CallContract(NativeContractKind.Gas, nameof(GasContract.ApplyInflation), block.Validator) .SpendGas(block.Validator) .EndScript(); var transaction = new Transaction(this.Nexus.Name, this.Name, script, block.Timestamp.Value + 1, "SYSTEM"); transaction.Sign(signingKeys); VMObject vmResult; if (!ExecuteTransaction(-1, transaction, transaction.Script, block.Validator, block.Timestamp, changeSet, block.Notify, oracle, ChainTask.Null, minimumFee, out vmResult, allowModify)) { throw new ChainException("failed to execute inflation transaction"); } inflationTx = transaction; block.AddTransactionHash(transaction.Hash); } } } if (block.Protocol > DomainSettings.LatestKnownProtocol) { throw new BlockGenerationException($"unexpected protocol number {block.Protocol}, maybe software update required?"); } // Only check protocol version if block is created on this node, no need to check if it's a non validator node. if (allowModify) { var expectedProtocol = Nexus.GetGovernanceValue(Nexus.RootStorage, Nexus.NexusProtocolVersionTag); if (block.Protocol != expectedProtocol) { throw new BlockGenerationException($"invalid protocol number {block.Protocol}, expected protocol {expectedProtocol}"); } using (var m = new ProfileMarker("CloseBlock")) { CloseBlock(block, changeSet); } } return changeSet; } public StorageChangeSetContext ProcessBlock(Block block, IEnumerable<Transaction> transactions, BigInteger minimumFee, out Transaction inflationTx, PhantasmaKeys signingKeys) { if (!block.Validator.IsUser) { throw new BlockGenerationException($"block validator must be user address"); } Block lastBlock; using (var m = new ProfileMarker("GetLastBlock")) { var lastBlockHash = GetLastBlockHash(); lastBlock = GetBlockByHash(lastBlockHash); } if (lastBlock != null) { if (lastBlock.Height != block.Height - 1) { throw new BlockGenerationException($"height of block should be {lastBlock.Height + 1}"); } if (block.PreviousHash != lastBlock.Hash) { throw new BlockGenerationException($"previous hash should be {lastBlock.PreviousHash}"); } if (block.Timestamp < lastBlock.Timestamp) { throw new BlockGenerationException($"timestamp of block {block.Timestamp} should be greater than {lastBlock.Timestamp}"); } } var inputHashes = new HashSet<Hash>(transactions.Select(x => x.Hash).Distinct()); var txBlockMap = new StorageMap(TxBlockHashMapTag, this.Storage); var diff = transactions.Count() - inputHashes.Count; if (diff > 0) { var temp = new HashSet<Hash>(); foreach (var tx in transactions) { if (temp.Contains(tx.Hash)) { throw new DuplicatedTransactionException(tx.Hash, $"transaction {tx.Hash} appears more than once in the block being minted"); } else if (txBlockMap.ContainsKey<Hash>(tx.Hash)) { var previousBlockHash = txBlockMap.Get<Hash, Hash>(tx.Hash); throw new DuplicatedTransactionException(tx.Hash, $"transaction {tx.Hash} already added to previous block {previousBlockHash}"); } else { temp.Add(tx.Hash); } } } foreach (var hash in block.TransactionHashes) { if (!inputHashes.Contains(hash)) { throw new BlockGenerationException($"missing in inputs transaction with hash {hash}"); } } var outputHashes = new HashSet<Hash>(block.TransactionHashes); foreach (var tx in transactions) { if (!outputHashes.Contains(tx.Hash)) { throw new BlockGenerationException($"missing in outputs transaction with hash {tx.Hash}"); } } foreach (var tx in transactions) { if (!tx.IsValid(this)) { #if DEBUG tx.IsValid(this); #endif throw new InvalidTransactionException(tx.Hash, $"invalid transaction with hash {tx.Hash}"); } } var oracle = Nexus.GetOracleReader(); block.CleanUp(); var changeSet = ProcessTransactions(block, transactions, oracle, minimumFee, out inflationTx, signingKeys); Address expectedValidator; using (var m = new ProfileMarker("GetValidator")) expectedValidator = Nexus.HasGenesis ? GetValidator(Nexus.RootStorage, block.Timestamp) : Nexus.GetGenesisAddress(Nexus.RootStorage); var migrationFound = false; var migratedAddress = Address.Null; foreach (var hash in outputHashes) { if (migrationFound) { break; } var events = block.GetEventsForTransaction(hash); foreach (var evt in events) { if (evt.Kind == EventKind.AddressMigration && evt.Contract == "validator") { var oldAddress = evt.GetContent<Address>(); if (oldAddress == expectedValidator) { migratedAddress = evt.Address; migrationFound = true; break; } } } } if (block.Validator != expectedValidator && !expectedValidator.IsNull) { if (migrationFound && migratedAddress == block.Validator) { expectedValidator = migratedAddress; } else { throw new BlockGenerationException($"unexpected validator {block.Validator}, expected {expectedValidator}"); } } if (oracle.Entries.Any()) { block.MergeOracle(oracle); oracle.Clear(); } return changeSet; } private bool ExecuteTransaction(int index, Transaction transaction, byte[] script, Address validator, Timestamp time, StorageChangeSetContext changeSet , Action<Hash, Event> onNotify, OracleReader oracle, ITask task, BigInteger minimumFee, out VMObject result, bool allowModify = true) { if (!transaction.HasSignatures) { throw new ChainException("Cannot execute unsigned transaction"); } result = null; uint offset = 0; RuntimeVM runtime; using (var m = new ProfileMarker("new RuntimeVM")) { runtime = new RuntimeVM(index, script, offset, this, validator, time, transaction, changeSet, oracle, task, false); } runtime.MinimumFee = minimumFee; ExecutionState state; using (var m = new ProfileMarker("runtime.Execute")) state = runtime.Execute(); if (state != ExecutionState.Halt) { return false; } //var cost = runtime.UsedGas; using (var m = new ProfileMarker("runtime.Events")) { foreach (var evt in runtime.Events) { using (var m2 = new ProfileMarker(evt.ToString())) if (allowModify) { onNotify(transaction.Hash, evt); } } } if (runtime.Stack.Count > 0) { result = runtime.Stack.Pop(); } // merge transaction oracle data oracle.MergeTxData(); return true; } // NOTE should never be used directly from a contract, instead use Runtime.GetBalance! public BigInteger GetTokenBalance(StorageContext storage, IToken token, Address address) { if (token.Flags.HasFlag(TokenFlags.Fungible)) { var balances = new BalanceSheet(token); return balances.Get(storage, address); } else { var ownerships = new OwnershipSheet(token.Symbol); var items = ownerships.Get(storage, address); return items.Length; } } public BigInteger GetTokenBalance(StorageContext storage, string symbol, Address address) { var token = Nexus.GetTokenInfo(storage, symbol); return GetTokenBalance(storage, token, address); } public BigInteger GetTokenSupply(StorageContext storage, string symbol) { var supplies = new SupplySheet(symbol, this, Nexus); return supplies.GetTotal(storage); } // NOTE this lists only nfts owned in this chain public BigInteger[] GetOwnedTokens(StorageContext storage, string tokenSymbol, Address address) { var ownership = new OwnershipSheet(tokenSymbol); return ownership.Get(storage, address).ToArray(); } /// <summary> /// Deletes all blocks starting at the specified hash. /// </summary> /* public void DeleteBlocks(Hash targetHash) { var targetBlock = FindBlockByHash(targetHash); Throw.IfNull(targetBlock, nameof(targetBlock)); var currentBlock = this.LastBlock; while (true) { Throw.IfNull(currentBlock, nameof(currentBlock)); var changeSet = _blockChangeSets[currentBlock.Hash]; changeSet.Undo(); _blockChangeSets.Remove(currentBlock.Hash); _blockHeightMap.Remove(currentBlock.Height); _blocks.Remove(currentBlock.Hash); currentBlock = FindBlockByHash(currentBlock.PreviousHash); if (currentBlock.PreviousHash == targetHash) { break; } } }*/ internal ExecutionContext GetContractContext(StorageContext storage, SmartContract contract) { if (!IsContractDeployed(storage, contract.Address)) { throw new ChainException($"contract '{contract.Name}' not deployed on '{Name}' chain"); } var context = new ChainExecutionContext(contract); return context; } public VMObject InvokeContractAtTimestamp(StorageContext storage, Timestamp time, NativeContractKind nativeContract, string methodName, params object[] args) { return InvokeContractAtTimestamp(storage, time, nativeContract.GetContractName(), methodName, args); } public VMObject InvokeContract(StorageContext storage, NativeContractKind nativeContract, string methodName, params object[] args) { return InvokeContract(storage, nativeContract.GetContractName(), methodName, args); } public VMObject InvokeContract(StorageContext storage, string contractName, string methodName, params object[] args) { return InvokeContractAtTimestamp(storage, Timestamp.Now, contractName, methodName, args); } public VMObject InvokeContractAtTimestamp(StorageContext storage, Timestamp time, string contractName, string methodName, params object[] args) { var script = ScriptUtils.BeginScript().CallContract(contractName, methodName, args).EndScript(); var result = InvokeScript(storage, script, time); if (result == null) { throw new ChainException($"Invocation of method '{methodName}' of contract '{contractName}' failed"); } return result; } public VMObject InvokeScript(StorageContext storage, byte[] script) { return InvokeScript(storage, script, Timestamp.Now); } public VMObject InvokeScript(StorageContext storage, byte[] script, Timestamp time) { var oracle = Nexus.GetOracleReader(); var changeSet = new StorageChangeSetContext(storage); uint offset = 0; var vm = new RuntimeVM(-1, script, offset, this, Address.Null, time, null, changeSet, oracle, ChainTask.Null, true); var state = vm.Execute(); if (state != ExecutionState.Halt) { return null; } if (vm.Stack.Count == 0) { throw new ChainException($"No result, vm stack is empty"); } var result = vm.Stack.Pop(); return result; } // generates incremental ID (unique to this chain) public BigInteger GenerateUID(StorageContext storage) { var key = Encoding.ASCII.GetBytes("_uid"); var lastID = storage.Has(key) ? storage.Get<BigInteger>(key) : 0; lastID++; storage.Put<BigInteger>(key, lastID); return lastID; } #region FEES public BigInteger GetBlockReward(Block block) { var lastTxHash = block.TransactionHashes[block.TransactionHashes.Length - 1]; var evts = block.GetEventsForTransaction(lastTxHash); BigInteger total = 0; foreach (var evt in evts) { if (evt.Kind == EventKind.TokenClaim && evt.Contract == "block") { var data = evt.GetContent<TokenEventData>(); total += data.Value; } } return total; } public BigInteger GetTransactionFee(Transaction tx) { Throw.IfNull(tx, nameof(tx)); return GetTransactionFee(tx.Hash); } public BigInteger GetTransactionFee(Hash transactionHash) { Throw.IfNull(transactionHash, nameof(transactionHash)); BigInteger fee = 0; var blockHash = GetBlockHashOfTransaction(transactionHash); var block = GetBlockByHash(blockHash); Throw.IfNull(block, nameof(block)); var events = block.GetEventsForTransaction(transactionHash); foreach (var evt in events) { if (evt.Kind == EventKind.GasPayment && evt.Contract == "gas") { var info = evt.GetContent<GasEventData>(); fee += info.amount * info.price; } } return fee; } #endregion #region Contracts private byte[] GetContractListKey() { return Encoding.ASCII.GetBytes("contracts."); } private byte[] GetContractKey(Address contractAddress, string field) { var bytes = Encoding.ASCII.GetBytes(field); var key = ByteArrayUtils.ConcatBytes(bytes, contractAddress.ToByteArray()); return key; } public bool IsContractDeployed(StorageContext storage, string name) { if (ValidationUtils.IsValidTicker(name)) { return Nexus.TokenExists(storage, name); } return IsContractDeployed(storage, SmartContract.GetAddressForName(name)); } public bool IsContractDeployed(StorageContext storage, Address contractAddress) { if (contractAddress == SmartContract.GetAddressForName(Nexus.GasContractName)) { return true; } if (contractAddress == SmartContract.GetAddressForName(Nexus.BlockContractName)) { return true; } var key = GetContractKey(contractAddress, "script"); if (storage.Has(key)) { return true; } var token = Nexus.GetTokenInfo(storage, contractAddress); return (token != null); } public bool DeployContractScript(StorageContext storage, Address contractOwner, string name, Address contractAddress, byte[] script, ContractInterface abi) { var scriptKey = GetContractKey(contractAddress, "script"); if (storage.Has(scriptKey)) { return false; } storage.Put(scriptKey, script); var ownerBytes = contractOwner.ToByteArray(); var ownerKey = GetContractKey(contractAddress, "owner"); storage.Put(ownerKey, ownerBytes); var abiBytes = abi.ToByteArray(); var abiKey = GetContractKey(contractAddress, "abi"); storage.Put(abiKey, abiBytes); var nameBytes = Encoding.ASCII.GetBytes(name); var nameKey = GetContractKey(contractAddress, "name"); storage.Put(nameKey, nameBytes); var contractList = new StorageList(GetContractListKey(), storage); contractList.Add<Address>(contractAddress); return true; } public SmartContract GetContractByAddress(StorageContext storage, Address contractAddress) { var nameKey = GetContractKey(contractAddress, "name"); if (storage.Has(nameKey)) { var nameBytes = storage.Get(nameKey); var name = Encoding.ASCII.GetString(nameBytes); return GetContractByName(storage, name); } var symbols = Nexus.GetTokens(storage); foreach (var symbol in symbols) { var tokenAddress = TokenUtils.GetContractAddress(symbol); if (tokenAddress == contractAddress) { var token = Nexus.GetTokenInfo(storage, symbol); return new CustomContract(token.Symbol, token.Script, token.ABI); } } return Nexus.GetNativeContractByAddress(contractAddress); } public SmartContract GetContractByName(StorageContext storage, string name) { if (Nexus.IsNativeContract(name) || ValidationUtils.IsValidTicker(name)) { return Nexus.GetContractByName(storage, name); } var address = SmartContract.GetAddressForName(name); var scriptKey = GetContractKey(address, "script"); if (!storage.Has(scriptKey)) { return null; } var script = storage.Get(scriptKey); var abiKey = GetContractKey(address, "abi"); var abiBytes = storage.Get(abiKey); var abi = ContractInterface.FromBytes(abiBytes); return new CustomContract(name, script, abi); } public void UpgradeContract(StorageContext storage, string name, byte[] script, ContractInterface abi) { if (Nexus.IsNativeContract(name) || ValidationUtils.IsValidTicker(name)) { throw new ChainException($"Cannot upgrade this type of contract: {name}"); } if (!IsContractDeployed(storage, name)) { throw new ChainException($"Cannot upgrade non-existing contract: {name}"); } var address = SmartContract.GetAddressForName(name); var scriptKey = GetContractKey(address, "script"); storage.Put(scriptKey, script); var abiKey = GetContractKey(address, "abi"); var abiBytes = abi.ToByteArray(); storage.Put(abiKey, abiBytes); } public Address GetContractOwner(StorageContext storage, Address contractAddress) { if (contractAddress.IsSystem) { var ownerKey = GetContractKey(contractAddress, "owner"); var bytes = storage.Get(ownerKey); if (bytes != null) { return Address.FromBytes(bytes); } var token = Nexus.GetTokenInfo(storage, contractAddress); if (token != null) { return token.Owner; } } return Address.Null; } #endregion private BigInteger GetBlockHeight() { var hashList = new StorageList(BlockHeightListTag, this.Storage); return hashList.Count(); } public Hash GetLastBlockHash() { var lastHeight = GetBlockHeight(); if (lastHeight <= 0) { return Hash.Null; } return GetBlockHashAtHeight(lastHeight); } public Hash GetBlockHashAtHeight(BigInteger height) { if (height <= 0) { throw new ChainException("invalid block height"); } if (height > this.Height) { return Hash.Null; } var hashList = new StorageList(BlockHeightListTag, this.Storage); // NOTE chain heights start at 1, but list index start at 0 var hash = hashList.Get<Hash>(height - 1); return hash; } public Block GetBlockByHash(Hash hash) { if (hash == Hash.Null) { return null; } var blockMap = new StorageMap(BlockHashMapTag, this.Storage); if (blockMap.ContainsKey<Hash>(hash)) { var bytes = blockMap.Get<Hash, byte[]>(hash); bytes = CompressionUtils.Decompress(bytes); var block = Block.Unserialize(bytes); if (block.Hash != hash) { throw new ChainException("data corruption on block: " + hash); } return block; } return null; } public bool ContainsBlockHash(Hash hash) { if (hash == null) { return false; } return GetBlockByHash(hash) != null; } public BigInteger GetTransactionCount() { var txMap = new StorageMap(TransactionHashMapTag, this.Storage); return txMap.Count(); } public bool ContainsTransaction(Hash hash) { var txMap = new StorageMap(TransactionHashMapTag, this.Storage); return txMap.ContainsKey(hash); } public Transaction GetTransactionByHash(Hash hash) { var txMap = new StorageMap(TransactionHashMapTag, this.Storage); if (txMap.ContainsKey<Hash>(hash)) { var bytes = txMap.Get<Hash, byte[]>(hash); bytes = CompressionUtils.Decompress(bytes); var tx = Transaction.Unserialize(bytes); if (tx.Hash != hash) { throw new ChainException("data corruption on transaction: " + hash); } return tx; } return null; } public Hash GetBlockHashOfTransaction(Hash transactionHash) { var txBlockMap = new StorageMap(TxBlockHashMapTag, this.Storage); if (txBlockMap.ContainsKey(transactionHash)) { var blockHash = txBlockMap.Get<Hash, Hash>(transactionHash); return blockHash; } return Hash.Null; } public IEnumerable<Transaction> GetBlockTransactions(Block block) { return block.TransactionHashes.Select(hash => GetTransactionByHash(hash)); } public Hash[] GetTransactionHashesForAddress(Address address) { var addressTxMap = new StorageMap(AddressTxHashMapTag, this.Storage); var addressList = addressTxMap.Get<Address, StorageList>(address); return addressList.All<Hash>(); } public Timestamp GetLastActivityOfAddress(Address address) { var addressTxMap = new StorageMap(AddressTxHashMapTag, this.Storage); var addressList = addressTxMap.Get<Address, StorageList>(address); var count = addressList.Count(); if (count <=0) { return Timestamp.Null; } var lastTxHash = addressList.Get<Hash>(count - 1); var blockHash = GetBlockHashOfTransaction(lastTxHash); var block = GetBlockByHash(blockHash); if (block == null) // should never happen { return Timestamp.Null; } return block.Timestamp; } #region SWAPS private StorageList GetSwapListForAddress(StorageContext storage, Address address) { var key = ByteArrayUtils.ConcatBytes(Encoding.UTF8.GetBytes(".swapaddr"), address.ToByteArray()); return new StorageList(key, storage); } private StorageMap GetSwapMap(StorageContext storage) { var key = Encoding.UTF8.GetBytes(".swapmap"); return new StorageMap(key, storage); } public void RegisterSwap(StorageContext storage, Address from, ChainSwap swap) { var list = GetSwapListForAddress(storage, from); list.Add<Hash>(swap.sourceHash); var map = GetSwapMap(storage); map.Set<Hash, ChainSwap>(swap.sourceHash, swap); } public ChainSwap GetSwap(StorageContext storage, Hash sourceHash) { var map = GetSwapMap(storage); if (map.ContainsKey<Hash>(sourceHash)) { return map.Get<Hash, ChainSwap>(sourceHash); } throw new ChainException("invalid chain swap hash: " + sourceHash); } public Hash[] GetSwapHashesForAddress(StorageContext storage, Address address) { var list = GetSwapListForAddress(storage, address); return list.All<Hash>(); } #endregion #region TASKS private byte[] GetTaskKey(BigInteger taskID, string field) { var bytes = Encoding.ASCII.GetBytes(field); var key = ByteArrayUtils.ConcatBytes(bytes, taskID.ToUnsignedByteArray()); return key; } public ITask StartTask(StorageContext storage, Address from, string contractName, ContractMethod method, uint frequency, uint delay, TaskFrequencyMode mode, BigInteger gasLimit) { if (!IsContractDeployed(storage, contractName)) { return null; } var taskID = GenerateUID(storage); var task = new ChainTask(taskID, from, contractName, method.name, frequency, delay, mode, gasLimit, this.Height + 1, true); var taskKey = GetTaskKey(taskID, "task_info"); var taskBytes = task.ToByteArray(); storage.Put(taskKey, taskBytes); var taskList = new StorageList(TaskListTag, this.Storage); taskList.Add<BigInteger>(taskID); return task; } public bool StopTask(StorageContext storage, BigInteger taskID) { var taskKey = GetTaskKey(taskID, "task_info"); if (this.Storage.Has(taskKey)) { this.Storage.Delete(taskKey); taskKey = GetTaskKey(taskID, "task_run"); if (this.Storage.Has(taskKey)) { this.Storage.Delete(taskKey); } var taskList = new StorageList(TaskListTag, this.Storage); taskList.Remove<BigInteger>(taskID); return true; } return false; } public ChainTask GetTask(StorageContext storage, BigInteger taskID) { var taskKey = GetTaskKey(taskID, "task_info"); var taskBytes = this.Storage.Get(taskKey); var task = ChainTask.FromBytes(taskID, taskBytes); return task; } private IEnumerable<Transaction> ProcessPendingTasks(Block block, OracleReader oracle, BigInteger minimumFee, StorageChangeSetContext changeSet, bool allowModify) { var taskList = new StorageList(TaskListTag, changeSet); var taskCount = taskList.Count(); List<Transaction> transactions = null; int i = 0; while (i < taskCount) { var taskID = taskList.Get<BigInteger>(i); var task = GetTask(changeSet, taskID); Transaction tx; var taskResult = ProcessPendingTask(block, oracle, minimumFee, changeSet, allowModify, task, out tx); if (taskResult == TaskResult.Running) { i++; } else { taskList.RemoveAt(i); } if (tx != null) { if (transactions == null) { transactions = new List<Transaction>(); } transactions.Add(tx); } } if (transactions != null) { return transactions; } return Enumerable.Empty<Transaction>(); } private BigInteger GetTaskTimeFromBlock(TaskFrequencyMode mode, Block block) { switch (mode) { case TaskFrequencyMode.Blocks: { return block.Height; } case TaskFrequencyMode.Time: { return block.Timestamp.Value; } default: throw new ChainException("Unknown task mode: " + mode); } } private TaskResult ProcessPendingTask(Block block, OracleReader oracle, BigInteger minimumFee, StorageChangeSetContext changeSet, bool allowModify, ChainTask task, out Transaction transaction) { transaction = null; BigInteger currentRun = GetTaskTimeFromBlock(task.Mode, block); var taskKey = GetTaskKey(task.ID, "task_run"); if (task.Mode != TaskFrequencyMode.Always) { bool isFirstRun = !changeSet.Has(taskKey); if (isFirstRun) { var taskBlockHash = GetBlockHashAtHeight(task.Height); var taskBlock = GetBlockByHash(taskBlockHash); BigInteger firstRun = GetTaskTimeFromBlock(task.Mode, taskBlock) + task.Delay; if (currentRun < firstRun) { return TaskResult.Skipped; // skip execution for now } } else { BigInteger lastRun = isFirstRun ? changeSet.Get<BigInteger>(taskKey) : 0; var diff = currentRun - lastRun; if (diff < task.Frequency) { return TaskResult.Skipped; // skip execution for now } } } else { currentRun = 0; } using (var m = new ProfileMarker("ExecuteTask")) { var taskScript = new ScriptBuilder() .AllowGas(task.Owner, Address.Null, minimumFee, task.GasLimit) .CallContract(task.ContextName, task.Method) .SpendGas(task.Owner) .EndScript(); transaction = new Transaction(this.Nexus.Name, this.Name, taskScript, block.Timestamp.Value + 1, "TASK"); VMObject vmResult; if (ExecuteTransaction(-1, transaction, transaction.Script, block.Validator, block.Timestamp, changeSet, block.Notify, oracle, task, minimumFee, out vmResult, allowModify)) { var resultBytes = Serialization.Serialize(vmResult); block.SetResultForHash(transaction.Hash, resultBytes); // update last_run value in storage if (currentRun > 0) { changeSet.Put<BigInteger>(taskKey, currentRun); } var shouldStop = vmResult.AsBool(); return shouldStop ? TaskResult.Halted : TaskResult.Running; } else { transaction = null; return TaskResult.Crashed; } } } #endregion #region block validation public Address GetValidator(StorageContext storage, Timestamp targetTime) { var rootStorage = this.IsRoot ? storage : Nexus.RootStorage; if (!Nexus.HasGenesis) { return Nexus.GetGenesisAddress(rootStorage); } var slotDuration = (int)Nexus.GetGovernanceValue(rootStorage, ValidatorContract.ValidatorRotationTimeTag); var genesisHash = Nexus.GetGenesisHash(rootStorage); var genesisBlock = Nexus.RootChain.GetBlockByHash(genesisHash); Timestamp validationSlotTime = genesisBlock.Timestamp; var diff = targetTime - validationSlotTime; int validatorIndex = (int)(diff / slotDuration); var validatorCount = Nexus.GetPrimaryValidatorCount(); var chainIndex = Nexus.GetIndexOfChain(this.Name); if (chainIndex < 0) { return Address.Null; } validatorIndex += chainIndex; validatorIndex = validatorIndex % validatorCount; var currentIndex = validatorIndex; do { var validator = Nexus.GetValidatorByIndex(validatorIndex); if (validator.type == ValidatorType.Primary && !validator.address.IsNull) { return validator.address; } validatorIndex++; if (validatorIndex >= validatorCount) { validatorIndex = 0; } } while (currentIndex != validatorIndex); // should never reached here, failsafe return Nexus.GetGenesisAddress(rootStorage); } public void CloseBlock(Block block, StorageChangeSetContext storage) { var rootStorage = this.IsRoot ? storage : Nexus.RootStorage; if (block.Height > 1) { var prevBlock = GetBlockByHash(block.PreviousHash); if (prevBlock.Validator != block.Validator) { block.Notify(new Event(EventKind.ValidatorSwitch, block.Validator, "block", Serialization.Serialize(prevBlock))); } } var tokenStorage = this.Name == DomainSettings.RootChainName ? storage : Nexus.RootStorage; var token = this.Nexus.GetTokenInfo(tokenStorage, DomainSettings.FuelTokenSymbol); var balance = new BalanceSheet(token); var blockAddress = Address.FromHash("block"); var totalAvailable = balance.Get(storage, blockAddress); var targets = new List<Address>(); if (Nexus.HasGenesis) { var validators = Nexus.GetValidators(); var totalValidators = Nexus.GetPrimaryValidatorCount(); for (int i = 0; i < totalValidators; i++) { var validator = validators[i]; if (validator.type != ValidatorType.Primary) { continue; } targets.Add(validator.address); } } else if (totalAvailable > 0) { targets.Add(Nexus.GetGenesisAddress(rootStorage)); } if (targets.Count > 0) { if (!balance.Subtract(storage, blockAddress, totalAvailable)) { throw new BlockGenerationException("could not subtract balance from block address"); } var amountPerValidator = totalAvailable / targets.Count; var leftOvers = totalAvailable - (amountPerValidator * targets.Count); foreach (var address in targets) { BigInteger amount = amountPerValidator; if (address == block.Validator) { amount += leftOvers; } // TODO this should use triggers when available... if (!balance.Add(storage, address, amount)) { throw new BlockGenerationException($"could not add balance to {address}"); } var eventData = Serialization.Serialize(new TokenEventData(DomainSettings.FuelTokenSymbol, amount, this.Name)); block.Notify(new Event(EventKind.TokenClaim, address, "block", eventData)); } } } #endregion public Address LookUpName(StorageContext storage, string name) { if (IsContractDeployed(storage, name)) { return SmartContract.GetAddressForName(name); } return this.Nexus.LookUpName(storage, name); } public string GetNameFromAddress(StorageContext storage, Address address) { if (address.IsNull) { return ValidationUtils.NULL_NAME; } if (address.IsSystem) { if (address == DomainSettings.InfusionAddress) { return DomainSettings.InfusionName; } var contract = this.GetContractByAddress(storage, address); if (contract != null) { return contract.Name; } else { var tempChain = Nexus.GetChainByAddress(address); if (tempChain != null) { return tempChain.Name; } var org = Nexus.GetOrganizationByAddress(storage, address); if (org != null) { return org.ID; } return ValidationUtils.ANONYMOUS_NAME; } } return Nexus.RootChain.InvokeContract(storage, Nexus.AccountContractName, nameof(AccountContract.LookUpAddress), address).AsString(); } } }
34.834613
207
0.529829
[ "MIT" ]
sfichera/PhantasmaChain
Phantasma.Blockchain/Chain.cs
49,918
C#