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 |
|---|---|---|---|---|---|---|---|---|
using System;
using System.Collections;
using Broker;
using Broker.Messages;
using InventoryAndStore;
using UnityEngine;
using WorldGrid;
using Random = UnityEngine.Random;
namespace Tools.WateringTool
{
public class WateringToolSelected : MonoBehaviour {
private bool toolSelected;
private MoveMetronome MoveMetronome => GetComponent<MoveMetronome>();
private void Start() {
MessageBroker.Instance().SubscribeTo<WateringToolSelectedMessage>(UpdateToolSelected);
MessageBroker.Instance().SubscribeTo<CancelSelectedToolMessage>(UpdateToolSelected);
}
void OnDestroy() {
MessageBroker.Instance().UnSubscribeFrom<WateringToolSelectedMessage>(UpdateToolSelected);
MessageBroker.Instance().UnSubscribeFrom<CancelSelectedToolMessage>(UpdateToolSelected);
}
void UpdateToolSelected(WateringToolSelectedMessage m) {
toolSelected = true;
StartCoroutine(WaterThePlant());
}
void UpdateToolSelected(CancelSelectedToolMessage m) {
toolSelected = false;
}
private IEnumerator WaterThePlant() {
while(toolSelected){
var ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out var hit) && Input.GetMouseButtonDown(0))
{
var currentPlant = hit.collider.transform.GetComponent<GridPlant>();
if (currentPlant != null)
{
MoveMetronome.UISetActive(true);
MoveMetronome.selectedPlant = currentPlant;
MoveMetronome.currentAngle = Random.Range(MoveMetronome.rotateAt - MoveMetronome.rotateAt * 2, MoveMetronome.rotateAt);
MoveMetronome.speed = (int)currentPlant.plant.rarity;
MoveMetronome.StartCoroutine(MoveMetronome.Rotate());
yield break;
}
}
yield return null;
}
}
}
}
| 36.644068 | 143 | 0.60037 | [
"MIT"
] | forsbergsskola-se/growe | Assets/Scripts/Tools/WateringTool/WateringToolSelected.cs | 2,162 | C# |
using System;
using System.Linq;
using System.Net;
using Lemonade.Fakes;
using Lemonade.Services;
using Lemonade.Sql.Migrations;
using Lemonade.Sql.Queries;
using Lemonade.Web.Core.Mappers;
using Lemonade.Web.Tests.Mocks;
using Nancy.Testing;
using Newtonsoft.Json;
using NSubstitute;
using NUnit.Framework;
using SelfishHttp;
using Application = Lemonade.Web.Contracts.Application;
using HttpStatusCode = Nancy.HttpStatusCode;
namespace Lemonade.Web.Tests
{
public class GivenFeaturesModule
{
[SetUp]
public void SetUp()
{
_createApplication = new CreateApplicationFake();
_getApplication = new GetApplicationByName();
_getFeature = new GetFeatureByNameAndApplication();
_server = new Server(64978);
_testBootstrapper = new TestBootstrapper();
_browser = new Browser(_testBootstrapper, context => context.UserHostAddress("localhost"));
Runner.SqlCompact(ConnectionString).Down();
Runner.SqlCompact(ConnectionString).Up();
}
[TearDown]
public void Teardown()
{
_server.Dispose();
}
[Test]
public void WhenIPostAFeature_ThenICanGetItViaHttpAndSignalRClientsAreNotified()
{
var application = new Data.Entities.Application { ApplicationId = 1, Name = "TestApplication1" };
_createApplication.Execute(application);
var feature = GetFeatureModel("MySuperCoolFeature1", _getApplication.Execute(application.Name).ToContract());
Post(feature);
var response = _browser.Get("/api/feature", with =>
{
with.Header("Accept", "application/json");
with.Query("application", application.Name);
with.Query("feature", "MySuperCoolFeature1");
});
var result = JsonConvert.DeserializeObject<Contracts.Feature>(response.Body.AsString());
Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK));
Assert.That(result.IsEnabled, Is.True);
_testBootstrapper
.Resolve<IMockClient>()
.Received()
.addFeature(Arg.Any<dynamic>());
}
[Test]
public void WhenIHaveAnUnknownUrlAppConfigAndITryToResolveAFeatureUsingHttpFeatureResolver_ThenUnknownUrlExceptionIsThrown()
{
var application = new Data.Entities.Application { ApplicationId = 1, Name = "TestApplication1" };
_createApplication.Execute(application);
_browser.Post("/api/features", with =>
{
with.Header("Content-Type", "application/json");
with.Body(JsonConvert.SerializeObject(GetFeatureModel("MySuperCoolFeature1", _getApplication.Execute(application.Name).ToContract())));
});
Assert.Throws<UriFormatException>(() => new HttpFeatureResolver("TestTestTest!!!"));
}
[Test]
public void WhenIDeleteAFeature_ThenTheFeatureIsRemovedAndSignalRClientsAreNotified()
{
var application = new Data.Entities.Application { ApplicationId = 1, Name = "TestApplication1" };
_createApplication.Execute(application);
var featureModel = GetFeatureModel("MySuperCoolFeature1", _getApplication.Execute(application.Name).ToContract());
Post(featureModel);
_browser.Delete("/api/features", with => { with.Query("id", "1"); });
var feature = _getFeature.Execute(featureModel.Name, application.Name);
Assert.That(feature, Is.Null);
_testBootstrapper
.Resolve<IMockClient>()
.Received()
.removeFeature(Arg.Any<dynamic>());
}
[Test]
public void WhenIPutAFeature_ThenTheFeatureIsUpdatedAndSignalRClientsAreNotified()
{
var application = new Data.Entities.Application { ApplicationId = 1, Name = "TestApplication1" };
_createApplication.Execute(application);
var featureModel = GetFeatureModel("MySuperCoolFeature1", _getApplication.Execute(application.Name).ToContract());
Post(featureModel);
var feature = _getFeature.Execute("MySuperCoolFeature1", application.Name);
featureModel = feature.ToContract();
featureModel.Name = "Ponies";
Put(featureModel);
feature = _getFeature.Execute("MySuperCoolFeature1", application.Name);
Assert.That(feature, Is.Null);
_testBootstrapper
.Resolve<IMockClient>()
.Received()
.updateFeature(Arg.Any<dynamic>());
}
[Test]
public void WhenIGetAFeatureWithAHostnameOverride_ThenTheFeatureIsRetrieved()
{
var application = new Data.Entities.Application { Name = "TestApplication" };
new CreateApplicationFake().Execute(application);
var feature = new Data.Entities.Feature { ApplicationId = application.ApplicationId, Name = "MyTestFeature" };
new CreateFeatureFake().Execute(feature);
new CreateFeatureOverrideFake().Execute(new Data.Entities.FeatureOverride { FeatureId = feature.FeatureId, Hostname = Dns.GetHostName(), IsEnabled = true });
var response = _browser.Get("/api/feature", with =>
{
with.Header("Accept", "application/json");
with.Query("application", application.Name);
with.Query("feature", feature.Name);
});
var result = JsonConvert.DeserializeObject<Contracts.Feature>(response.Body.AsString());
Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK));
Assert.That(result.FeatureOverrides.Any(f => f.FeatureId == feature.FeatureId && f.IsEnabled), Is.True);
}
private void Post(Contracts.Feature feature)
{
_browser.Post("/api/features", with =>
{
with.Header("Content-Type", "application/json");
with.Body(JsonConvert.SerializeObject(feature));
});
}
private void Put(Contracts.Feature feature)
{
_browser.Put("/api/features", with =>
{
with.Header("Content-Type", "application/json");
with.Body(JsonConvert.SerializeObject(feature));
});
}
private static Contracts.Feature GetFeatureModel(string name, Application application)
{
return new Contracts.Feature
{
IsEnabled = true,
Name = name,
Application = application,
ApplicationId = application.ApplicationId
};
}
private Browser _browser;
private Server _server;
private CreateApplicationFake _createApplication;
private GetApplicationByName _getApplication;
private GetFeatureByNameAndApplication _getFeature;
private TestBootstrapper _testBootstrapper;
private const string ConnectionString = "Lemonade";
}
} | 39.540107 | 170 | 0.606032 | [
"MIT"
] | thesheps/lemonade | tests/Lemonade.Web.Tests/GivenFeaturesModule.cs | 7,396 | C# |
namespace ARKBreedingStats
{
partial class BreedingPlan
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Komponenten-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.panelCombinations = new System.Windows.Forms.Panel();
this.labelInfo = new System.Windows.Forms.Label();
this.labelTitle = new System.Windows.Forms.Label();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.labelBreedingInfos = new System.Windows.Forms.Label();
this.labelProbabilityBest = new System.Windows.Forms.Label();
this.groupBoxTimer = new System.Windows.Forms.GroupBox();
this.buttonBabyPhase = new System.Windows.Forms.Button();
this.buttonHatching = new System.Windows.Forms.Button();
this.listView1 = new System.Windows.Forms.ListView();
this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.labelBreedingDataTitle = new System.Windows.Forms.Label();
this.panelHeader = new System.Windows.Forms.Panel();
this.labelBreedingScore = new System.Windows.Forms.Label();
this.offspringPossibilities1 = new ARKBreedingStats.OffspringPossibilities();
this.pedigreeCreatureBest = new ARKBreedingStats.PedigreeCreature();
this.pedigreeCreatureWorst = new ARKBreedingStats.PedigreeCreature();
this.pedigreeCreature2 = new ARKBreedingStats.PedigreeCreature();
this.pedigreeCreature1 = new ARKBreedingStats.PedigreeCreature();
this.panelCombinations.SuspendLayout();
this.tableLayoutPanel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBoxTimer.SuspendLayout();
this.panelHeader.SuspendLayout();
this.SuspendLayout();
//
// panelCombinations
//
this.panelCombinations.AutoScroll = true;
this.panelCombinations.Controls.Add(this.labelInfo);
this.panelCombinations.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelCombinations.Location = new System.Drawing.Point(3, 73);
this.panelCombinations.Name = "panelCombinations";
this.panelCombinations.Size = new System.Drawing.Size(1045, 424);
this.panelCombinations.TabIndex = 3;
//
// labelInfo
//
this.labelInfo.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelInfo.Location = new System.Drawing.Point(10, 75);
this.labelInfo.Name = "labelInfo";
this.labelInfo.Size = new System.Drawing.Size(683, 193);
this.labelInfo.TabIndex = 0;
this.labelInfo.Text = "Infotext";
this.labelInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labelInfo.Visible = false;
//
// labelTitle
//
this.labelTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelTitle.Location = new System.Drawing.Point(6, 0);
this.labelTitle.Name = "labelTitle";
this.labelTitle.Size = new System.Drawing.Size(599, 20);
this.labelTitle.TabIndex = 1;
this.labelTitle.Text = "Select a species and click on \"Determine Best Breeding\" to see suggestions";
this.labelTitle.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.groupBox1, 0, 2);
this.tableLayoutPanel1.Controls.Add(this.panelCombinations, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.panelHeader, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 70F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 182F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1051, 682);
this.tableLayoutPanel1.TabIndex = 4;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.offspringPossibilities1);
this.groupBox1.Controls.Add(this.labelBreedingInfos);
this.groupBox1.Controls.Add(this.labelProbabilityBest);
this.groupBox1.Controls.Add(this.groupBoxTimer);
this.groupBox1.Controls.Add(this.listView1);
this.groupBox1.Controls.Add(this.labelBreedingDataTitle);
this.groupBox1.Controls.Add(this.pedigreeCreatureBest);
this.groupBox1.Controls.Add(this.pedigreeCreatureWorst);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Location = new System.Drawing.Point(3, 503);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(1045, 176);
this.groupBox1.TabIndex = 2;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Offspring";
//
// labelBreedingInfos
//
this.labelBreedingInfos.Location = new System.Drawing.Point(573, 125);
this.labelBreedingInfos.Name = "labelBreedingInfos";
this.labelBreedingInfos.Size = new System.Drawing.Size(438, 48);
this.labelBreedingInfos.TabIndex = 7;
this.labelBreedingInfos.Text = "Breeding Infos";
//
// labelProbabilityBest
//
this.labelProbabilityBest.AutoSize = true;
this.labelProbabilityBest.Location = new System.Drawing.Point(6, 24);
this.labelProbabilityBest.Name = "labelProbabilityBest";
this.labelProbabilityBest.Size = new System.Drawing.Size(202, 13);
this.labelProbabilityBest.TabIndex = 6;
this.labelProbabilityBest.Text = "Probability for this Best Possible outcome:";
//
// groupBoxTimer
//
this.groupBoxTimer.Controls.Add(this.buttonBabyPhase);
this.groupBoxTimer.Controls.Add(this.buttonHatching);
this.groupBoxTimer.Location = new System.Drawing.Point(899, 19);
this.groupBoxTimer.Name = "groupBoxTimer";
this.groupBoxTimer.Size = new System.Drawing.Size(112, 103);
this.groupBoxTimer.TabIndex = 5;
this.groupBoxTimer.TabStop = false;
this.groupBoxTimer.Text = "Add Timer";
//
// buttonBabyPhase
//
this.buttonBabyPhase.Location = new System.Drawing.Point(6, 48);
this.buttonBabyPhase.Name = "buttonBabyPhase";
this.buttonBabyPhase.Size = new System.Drawing.Size(95, 23);
this.buttonBabyPhase.TabIndex = 1;
this.buttonBabyPhase.Text = "Baby-Phase";
this.buttonBabyPhase.UseVisualStyleBackColor = true;
this.buttonBabyPhase.Click += new System.EventHandler(this.buttonBabyPhase_Click);
//
// buttonHatching
//
this.buttonHatching.Location = new System.Drawing.Point(6, 19);
this.buttonHatching.Name = "buttonHatching";
this.buttonHatching.Size = new System.Drawing.Size(95, 23);
this.buttonHatching.TabIndex = 0;
this.buttonHatching.Text = "Pregnancy";
this.buttonHatching.UseVisualStyleBackColor = true;
this.buttonHatching.Click += new System.EventHandler(this.buttonHatching_Click);
//
// listView1
//
this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeader1,
this.columnHeader2,
this.columnHeader3,
this.columnHeader4});
this.listView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listView1.Location = new System.Drawing.Point(576, 36);
this.listView1.Name = "listView1";
this.listView1.ShowGroups = false;
this.listView1.Size = new System.Drawing.Size(317, 86);
this.listView1.TabIndex = 4;
this.listView1.UseCompatibleStateImageBehavior = false;
this.listView1.View = System.Windows.Forms.View.Details;
//
// columnHeader1
//
this.columnHeader1.Text = "";
this.columnHeader1.Width = 70;
//
// columnHeader2
//
this.columnHeader2.Text = "Time";
this.columnHeader2.Width = 70;
//
// columnHeader3
//
this.columnHeader3.Text = "Total Time";
this.columnHeader3.Width = 70;
//
// columnHeader4
//
this.columnHeader4.Text = "Finished at";
this.columnHeader4.Width = 103;
//
// labelBreedingDataTitle
//
this.labelBreedingDataTitle.AutoSize = true;
this.labelBreedingDataTitle.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelBreedingDataTitle.Location = new System.Drawing.Point(573, 16);
this.labelBreedingDataTitle.Name = "labelBreedingDataTitle";
this.labelBreedingDataTitle.Size = new System.Drawing.Size(121, 17);
this.labelBreedingDataTitle.TabIndex = 3;
this.labelBreedingDataTitle.Text = "Breeding Times";
//
// panelHeader
//
this.panelHeader.Controls.Add(this.labelTitle);
this.panelHeader.Controls.Add(this.labelBreedingScore);
this.panelHeader.Controls.Add(this.pedigreeCreature2);
this.panelHeader.Controls.Add(this.pedigreeCreature1);
this.panelHeader.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelHeader.Location = new System.Drawing.Point(3, 3);
this.panelHeader.Name = "panelHeader";
this.panelHeader.Size = new System.Drawing.Size(1045, 64);
this.panelHeader.TabIndex = 4;
//
// labelBreedingScore
//
this.labelBreedingScore.AutoSize = true;
this.labelBreedingScore.Location = new System.Drawing.Point(312, 50);
this.labelBreedingScore.Name = "labelBreedingScore";
this.labelBreedingScore.Size = new System.Drawing.Size(80, 13);
this.labelBreedingScore.TabIndex = 4;
this.labelBreedingScore.Text = "Breeding-Score";
//
// offspringPossibilities1
//
this.offspringPossibilities1.Location = new System.Drawing.Point(315, 19);
this.offspringPossibilities1.Name = "offspringPossibilities1";
this.offspringPossibilities1.Size = new System.Drawing.Size(247, 151);
this.offspringPossibilities1.TabIndex = 1;
//
// pedigreeCreatureBest
//
this.pedigreeCreatureBest.Cursor = System.Windows.Forms.Cursors.Hand;
this.pedigreeCreatureBest.IsVirtual = false;
this.pedigreeCreatureBest.Location = new System.Drawing.Point(6, 46);
this.pedigreeCreatureBest.Name = "pedigreeCreatureBest";
this.pedigreeCreatureBest.Size = new System.Drawing.Size(296, 35);
this.pedigreeCreatureBest.TabIndex = 1;
//
// pedigreeCreatureWorst
//
this.pedigreeCreatureWorst.Cursor = System.Windows.Forms.Cursors.Hand;
this.pedigreeCreatureWorst.IsVirtual = false;
this.pedigreeCreatureWorst.Location = new System.Drawing.Point(6, 88);
this.pedigreeCreatureWorst.Name = "pedigreeCreatureWorst";
this.pedigreeCreatureWorst.Size = new System.Drawing.Size(296, 35);
this.pedigreeCreatureWorst.TabIndex = 2;
//
// pedigreeCreature2
//
this.pedigreeCreature2.IsVirtual = false;
this.pedigreeCreature2.Location = new System.Drawing.Point(10, 28);
this.pedigreeCreature2.Name = "pedigreeCreature2";
this.pedigreeCreature2.Size = new System.Drawing.Size(296, 35);
this.pedigreeCreature2.TabIndex = 3;
//
// pedigreeCreature1
//
this.pedigreeCreature1.IsVirtual = false;
this.pedigreeCreature1.Location = new System.Drawing.Point(397, 28);
this.pedigreeCreature1.Name = "pedigreeCreature1";
this.pedigreeCreature1.Size = new System.Drawing.Size(296, 35);
this.pedigreeCreature1.TabIndex = 2;
//
// BreedingPlan
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScroll = true;
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "BreedingPlan";
this.Size = new System.Drawing.Size(1051, 682);
this.panelCombinations.ResumeLayout(false);
this.tableLayoutPanel1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBoxTimer.ResumeLayout(false);
this.panelHeader.ResumeLayout(false);
this.panelHeader.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private PedigreeCreature pedigreeCreatureBest;
private PedigreeCreature pedigreeCreatureWorst;
private System.Windows.Forms.Panel panelCombinations;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Label labelTitle;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label labelBreedingDataTitle;
private System.Windows.Forms.ListView listView1;
private System.Windows.Forms.ColumnHeader columnHeader1;
private System.Windows.Forms.ColumnHeader columnHeader2;
private System.Windows.Forms.ColumnHeader columnHeader3;
private System.Windows.Forms.ColumnHeader columnHeader4;
private PedigreeCreature pedigreeCreature1;
private PedigreeCreature pedigreeCreature2;
private System.Windows.Forms.GroupBox groupBoxTimer;
private System.Windows.Forms.Button buttonHatching;
private System.Windows.Forms.Label labelProbabilityBest;
private System.Windows.Forms.Label labelBreedingScore;
private System.Windows.Forms.Panel panelHeader;
private System.Windows.Forms.Label labelInfo;
private System.Windows.Forms.Button buttonBabyPhase;
private System.Windows.Forms.Label labelBreedingInfos;
private OffspringPossibilities offspringPossibilities1;
}
}
| 52.325228 | 179 | 0.6298 | [
"MIT"
] | Ark-Miwok/Ark-Miwoks- | ARKBreedingStats/BreedingPlan.Designer.cs | 17,221 | C# |
namespace Exemplum.Application.Common.Mapping;
using AutoMapper;
public interface IMapFrom<T>
{
void Mapping(Profile profile) => profile.CreateMap(typeof(T), GetType());
} | 22.25 | 77 | 0.758427 | [
"MIT"
] | ForrestTech/Exemplum | src/Application/Common/Mapping/IMapFrom.cs | 180 | C# |
namespace Medoz.CommandLine;
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
public abstract class Flag
{
public string Name { set; get; }
public string[] Alias { set; get; }
public string Usage { set; get; }
public object? Value { protected set; get; }
#pragma warning disable CS8618
public Flag(string name)
{
Name = name;
Alias = Array.Empty<string>();
Usage = string.Empty;
Value = null;
}
#pragma warning restore CS8618
public string[] Names()
{
var names = new string[Alias.Length + 1];
names[0] = Name;
for (int i = 0; i < Alias.Length; i++)
{
names[i + 1] = Alias[i];
}
return names;
}
public string[] NamesAppendHyphen()
{
var names = new string[Alias.Length + 1];
names[0] = AddHyphen(Name);
for (int i = 0; i < Alias.Length; i++)
{
names[i + 1] = AddHyphen(Alias[i]);
}
return names;
}
private string AddHyphen(string param) => param.Count() > 1 ? "--" + param : "-" + param;
}
public class Flag<T> : Flag
{
public Flag(string name) : base(name) { }
public void SetDefaultValue(T value) => Value = value;
public T GetDefaultValue() => (T)Value ?? default;
}
public class IntFlag : Flag
{
public IntFlag(string name) : base(name) { }
public void SetDefaultValue(int value) => Value = value;
public int GetDefaultValue() => (int)Value;
}
public class StringFlag : Flag
{
public StringFlag(string name) : base(name) { }
public void SetDefaultValue(string value) => Value = value;
public string GetDefaultValue() => (string)Value;
}
public class BoolFlag : Flag
{
public BoolFlag(string name) : base(name) { }
public void SetDefaultValue(bool value) => Value = value;
public bool GetDefaultValue() => (bool)Value;
}
| 26.230769 | 94 | 0.583089 | [
"MIT"
] | Atoyr/CommandLine | Src/Medoz.CommandLine/Flag.cs | 2,046 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using Azure.Core;
using Azure.Core.Testing;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Azure.Identity.Tests
{
public class DeviceCodeCredentialTests : ClientTestBase
{
public DeviceCodeCredentialTests(bool isAsync) : base(isAsync)
{
}
private const string ClientId = "04b07795-8ddb-461a-bbee-02f9e1bf7b46";
private readonly HashSet<string> _requestedCodes = new HashSet<string>();
private readonly object _requestedCodesLock = new object();
private Task VerifyDeviceCode(DeviceCodeInfo code, string message)
{
Assert.AreEqual(message, code.Message);
return Task.CompletedTask;
}
private Task VerifyDeviceCodeAndCancel(DeviceCodeInfo code, string message, CancellationTokenSource cancelSource)
{
Assert.AreEqual(message, code.Message);
cancelSource.Cancel();
return Task.CompletedTask;
}
private async Task VerifyDeviceCodeCallbackCancellationToken(DeviceCodeInfo code, CancellationToken cancellationToken)
{
await Task.Delay(2000, cancellationToken);
cancellationToken.ThrowIfCancellationRequested();
}
private class MockException : Exception
{
}
private async Task ThrowingDeviceCodeCallback(DeviceCodeInfo code, CancellationToken cancellationToken)
{
await Task.CompletedTask;
throw new MockException();
}
[Test]
public async Task AuthenticateWithDeviceCodeMockAsync()
{
var expectedCode = Guid.NewGuid().ToString();
var expectedToken = Guid.NewGuid().ToString();
var mockTransport = new MockTransport(request => ProcessMockRequest(request, expectedCode, expectedToken));
var options = new TokenCredentialOptions() { Transport = mockTransport };
var cred = InstrumentClient(new DeviceCodeCredential((code, cancelToken) => VerifyDeviceCode(code, expectedCode), ClientId, options: options));
AccessToken token = await cred.GetTokenAsync(new TokenRequestContext(new string[] { "https://vault.azure.net/.default" }));
Assert.AreEqual(token.Token, expectedToken);
}
[Test]
public async Task AuthenticateWithDeviceCodeMockAsync2()
{
var expectedCode = Guid.NewGuid().ToString();
var expectedToken = Guid.NewGuid().ToString();
var mockTransport = new MockTransport(request => ProcessMockRequest(request, expectedCode, expectedToken));
var options = new TokenCredentialOptions() { Transport = mockTransport };
var cred = InstrumentClient(new DeviceCodeCredential((code, cancelToken) => VerifyDeviceCode(code, expectedCode), ClientId, options: options));
AccessToken token = await cred.GetTokenAsync(new TokenRequestContext(new string[] { "https://vault.azure.net/.default" }));
Assert.AreEqual(token.Token, expectedToken);
}
[Test]
public void AuthenticateWithDeviceCodeMockVerifyMsalCancellationAsync()
{
var expectedCode = Guid.NewGuid().ToString();
var expectedToken = Guid.NewGuid().ToString();
var cancelSource = new CancellationTokenSource();
var mockTransport = new MockTransport(request => ProcessMockRequest(request, expectedCode, expectedToken));
var options = new TokenCredentialOptions() { Transport = mockTransport };
var cred = InstrumentClient(new DeviceCodeCredential((code, cancelToken) => VerifyDeviceCodeAndCancel(code, expectedCode, cancelSource), null, ClientId, options: options));
Assert.ThrowsAsync<OperationCanceledException>(async () => await cred.GetTokenAsync(new TokenRequestContext(new string[] { "https://vault.azure.net/.default" }), cancelSource.Token));
}
[Test]
public async Task AuthenticateWithDeviceCodeMockVerifyCallbackCancellationAsync()
{
var expectedCode = Guid.NewGuid().ToString();
var expectedToken = Guid.NewGuid().ToString();
var mockTransport = new MockTransport(request => ProcessMockRequest(request, expectedCode, expectedToken));
var options = new TokenCredentialOptions() { Transport = mockTransport };
var cancelSource = new CancellationTokenSource(1000);
var cred = InstrumentClient(new DeviceCodeCredential(VerifyDeviceCodeCallbackCancellationToken, ClientId, options: options));
ValueTask<AccessToken> getTokenTask = cred.GetTokenAsync(new TokenRequestContext(new string[] { "https://vault.azure.net/.default" }), cancelSource.Token);
try
{
AccessToken token = await getTokenTask;
Assert.Fail();
}
catch (TaskCanceledException)
{
}
}
[Test]
public void AuthenticateWithDeviceCodeCallbackThrowsAsync()
{
var expectedCode = Guid.NewGuid().ToString();
var expectedToken = Guid.NewGuid().ToString();
var cancelSource = new CancellationTokenSource();
var mockTransport = new MockTransport(request => ProcessMockRequest(request, expectedCode, expectedToken));
var options = new TokenCredentialOptions() { Transport = mockTransport };
var cred = InstrumentClient(new DeviceCodeCredential(ThrowingDeviceCodeCallback, ClientId, options: options));
Assert.ThrowsAsync<MockException>(async () => await cred.GetTokenAsync(new TokenRequestContext(new string[] { "https://vault.azure.net/.default" }), cancelSource.Token));
}
private MockResponse ProcessMockRequest(MockRequest mockRequest, string code, string token)
{
string requestUrl = mockRequest.Uri.ToUri().AbsoluteUri;
if (requestUrl.StartsWith("https://login.microsoftonline.com/common/discovery/instance"))
{
return DiscoveryInstanceResponse;
}
if (requestUrl.StartsWith("https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration"))
{
return OpenIdConfigurationResponse;
}
if (requestUrl.StartsWith("https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode"))
{
return CreateDeviceCodeResponse(code);
}
if (requestUrl.StartsWith("https://login.microsoftonline.com/organizations/oauth2/v2.0/token"))
{
return CreateTokenResponse(code, token);
}
throw new InvalidOperationException();
}
private MockResponse CreateTokenResponse(string code, string token)
{
lock (_requestedCodesLock)
{
if (_requestedCodes.Add(code))
{
return AuthorizationPendingResponse;
}
else
{
return CreateAuthorizationResponse(token);
}
}
}
private MockResponse CreateDeviceCodeResponse(string code)
{
MockResponse response = new MockResponse(200).WithContent($@"{{
""user_code"": ""{code}"",
""device_code"": ""{code}_{code}"",
""verification_uri"": ""https://microsoft.com/devicelogin"",
""expires_in"": 900,
""interval"": 1,
""message"": ""{code}""
}}");
return response;
}
private MockResponse CreateAuthorizationResponse(string accessToken)
{
MockResponse response = new MockResponse(200).WithContent(@$"{{
""token_type"": ""Bearer"",
""scope"": ""https://vault.azure.net/user_impersonation https://vault.azure.net/.default"",
""expires_in"": 3600,
""ext_expires_in"": 3600,
""access_token"": ""{accessToken}"",
""refresh_token"": ""eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9-eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ-SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"",
""foci"": ""1"",
""id_token"": ""eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6InU0T2ZORlBId0VCb3NIanRyYXVPYlY4NExuWSJ9.eyJhdWQiOiJFMDFCNUY2NC03OEY1LTRGODgtQjI4Mi03QUUzOUI4QUM0QkQiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vRDEwOUI0NkUtM0E5Ri00NDQwLTg2MjItMjVEQjQxOTg1MDUxL3YyLjAiLCJpYXQiOjE1NjM5OTA0MDEsIm5iZiI6MTU2Mzk5MDQwMSwiZXhwIjoxNTYzOTk0MzAxLCJhaW8iOiJRMVV3TlV4YVNFeG9aak5uUWpSd00zcFRNamRrV2pSTFNVcEdMMVV3TWt0a2FrZDFTRkJVVlZwMmVFODRNMFZ0VXk4Mlp6TjJLM1JrVVVzeVQyVXhNamxJWTNKQ1p6MGlMQ0p1WVcxbElqb2lVMk52ZEhRZ1UyTiIsIm5hbWUiOiJTb21lIFVzZXIiLCJvaWQiOiIyQ0M5QzNBOC0yNTA5LTQyMEYtQjAwQi02RTczQkM1MURDQjUiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzb21ldXNlckBtaWNyb3NvZnQuY29tIiwic3ViIjoiQ0p6ZFdJaU9pSkdXakY0UVVOS1JFRnBRWFp6IiwidGlkIjoiMjRGRTMxMUYtN0E3MS00RjgzLTkxNkEtOTQ3OEQ0NUMwNDI3IiwidXRpIjoidFFqSTRNaTAzUVVVek9VSTRRVU0wUWtRaUxDSnBjM01pT2lKb2RIUiIsInZlciI6IjIuMCJ9.eVyG1AL8jwnTo3m9mGsV4EDHa_8PN6rRPEN9E3cQzxNoPU9HZTFt1SgOnLB7n1a4J_E3iVoZ3VB5I-NdDBESRdlg1k4XlrWqtisxl3I7pvWVFZKEhwHYYQ_nZITNeCb48LfZNz-Mr4EZeX6oyUymha5tOomikBLLxP78LOTlbGQiFn9AjtV0LtMeoiDf-K9t-kgU-XwsVjCyFKFBQhcyv7zaBEpeA-Kzh3-HG7wZ-geteM5y-JF97nD_rJ8ow1FmvtDYy6MVcwuNTv2YYT8dn8s-SGB4vpNNignlL0QgYh2P2cIrPdhZVc2iQqYTn_FK_UFPqyb_MZSjl1QkXVhgJA"",
""client_info"": ""eyJ1aWQiOiIyQ0M5QzNBOC0yNTA5LTQyMEYtQjAwQi02RTczQkM1MURDQjUiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0""
}}");
return response;
}
private static MockResponse DiscoveryInstanceResponse
{
get
{
return new MockResponse(200).WithContent(@"
{
""tenant_discovery_endpoint"": ""https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration"",
""api-version"": ""1.1"",
""metadata"": [
{
""preferred_network"": ""login.microsoftonline.com"",
""preferred_cache"": ""login.windows.net"",
""aliases"": [
""login.microsoftonline.com"",
""login.windows.net"",
""login.microsoft.com"",
""sts.windows.net""
]
},
{
""preferred_network"": ""login.partner.microsoftonline.cn"",
""preferred_cache"": ""login.partner.microsoftonline.cn"",
""aliases"": [
""login.partner.microsoftonline.cn"",
""login.chinacloudapi.cn""
]
},
{
""preferred_network"": ""login.microsoftonline.de"",
""preferred_cache"": ""login.microsoftonline.de"",
""aliases"": [
""login.microsoftonline.de""
]
},
{
""preferred_network"": ""login.microsoftonline.us"",
""preferred_cache"": ""login.microsoftonline.us"",
""aliases"": [
""login.microsoftonline.us"",
""login.usgovcloudapi.net""
]
},
{
""preferred_network"": ""login-us.microsoftonline.com"",
""preferred_cache"": ""login-us.microsoftonline.com"",
""aliases"": [
""login-us.microsoftonline.com""
]
}
]
}");
}
}
private static MockResponse OpenIdConfigurationResponse
{
get
{
return new MockResponse(200).WithContent(@"{
""authorization_endpoint"": ""https://login.microsoftonline.com/common/oauth2/v2.0/authorize"",
""token_endpoint"": ""https://login.microsoftonline.com/common/oauth2/v2.0/token"",
""token_endpoint_auth_methods_supported"": [
""client_secret_post"",
""private_key_jwt"",
""client_secret_basic""
],
""jwks_uri"": ""https://login.microsoftonline.com/common/discovery/v2.0/keys"",
""response_modes_supported"": [
""query"",
""fragment"",
""form_post""
],
""subject_types_supported"": [
""pairwise""
],
""id_token_signing_alg_values_supported"": [
""RS256""
],
""http_logout_supported"": true,
""frontchannel_logout_supported"": true,
""end_session_endpoint"": ""https://login.microsoftonline.com/common/oauth2/v2.0/logout"",
""response_types_supported"": [
""code"",
""id_token"",
""code id_token"",
""id_token token""
],
""scopes_supported"": [
""openid"",
""profile"",
""email"",
""offline_access""
],
""issuer"": ""https://login.microsoftonline.com/{tenantid}/v2.0"",
""claims_supported"": [
""sub"",
""iss"",
""cloud_instance_name"",
""cloud_instance_host_name"",
""cloud_graph_host_name"",
""msgraph_host"",
""aud"",
""exp"",
""iat"",
""auth_time"",
""acr"",
""nonce"",
""preferred_username"",
""name"",
""tid"",
""ver"",
""at_hash"",
""c_hash"",
""email""
],
""request_uri_parameter_supported"": false,
""userinfo_endpoint"": ""https://graph.microsoft.com/oidc/userinfo"",
""tenant_region_scope"": null,
""cloud_instance_name"": ""microsoftonline.com"",
""cloud_graph_host_name"": ""graph.windows.net"",
""msgraph_host"": ""graph.microsoft.com"",
""rbac_url"": ""https://pas.windows.net""
}");
}
}
private static MockResponse AuthorizationPendingResponse
{
get
{
return new MockResponse(404).WithContent(@"{
""error"": ""authorization_pending"",
""error_description"": ""AADSTS70016: Pending end-user authorization.\r\nTrace ID: c40ce91e-5009-4e64-9a10-7732b2500100\r\nCorrelation ID: 73a2edae-f747-44da-8ebf-7cba565fe49d\r\nTimestamp: 2019-07-24 17:49:13Z"",
""error_codes"": [
70016
],
""timestamp"": ""2019-07-24 17:49:13Z"",
""trace_id"": ""c40ce91e-5009-4e64-9a10-7732b2500100"",
""correlation_id"": ""73a2edae-f747-44da-8ebf-7cba565fe49d""
}");
}
}
}
}
| 37.762402 | 1,199 | 0.634654 | [
"MIT"
] | LingyunSu/azure-sdk-for-net | sdk/identity/Azure.Identity/tests/DeviceCodeCredentialTests.cs | 14,465 | C# |
namespace Solu.Framework.Services
{
public interface IIdentify
{
string Id
{
get;
set;
}
}
}
| 12.833333 | 34 | 0.441558 | [
"MIT"
] | saeedmaghdam/Solu | src/Solu.Framework/Services/IIdentify.cs | 156 | C# |
/*
* Copyright 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 chime-2018-05-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Chime.Model
{
/// <summary>
/// Container for the parameters to the GetUser operation.
/// Retrieves details for the specified user ID, such as primary email address, license
/// type,and personal meeting PIN.
///
///
/// <para>
/// To retrieve user details with an email address instead of a user ID, use the <a>ListUsers</a>
/// action, and then filter by email address.
/// </para>
/// </summary>
public partial class GetUserRequest : AmazonChimeRequest
{
private string _accountId;
private string _userId;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// The Amazon Chime account ID.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property UserId.
/// <para>
/// The user ID.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
}
} | 29.755814 | 104 | 0.586948 | [
"Apache-2.0"
] | philasmar/aws-sdk-net | sdk/src/Services/Chime/Generated/Model/GetUserRequest.cs | 2,559 | C# |
//------------------------------------------------------------------------------
//<copyright company="Microsoft">
//
// The MIT License (MIT)
//
// Copyright (c) 2015 Microsoft
//
// 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.
//</copyright>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
namespace Public.Dac.Samples
{
/// <summary>
/// Utility class for tracking and disposing of objects that implement IDisposable.
/// </summary>
public sealed class DisposableList : List<IDisposable>, IDisposable
{
/// <summary>
/// Disposes of all elements of list.
/// </summary>
public void Dispose()
{
Dispose(true);
}
/// <summary>
/// Internal implementation of Dispose logic.
/// </summary>
private void Dispose(bool isDisposing)
{
foreach (IDisposable disposable in this)
{
disposable.Dispose();
}
}
/// <summary>
/// Add an item to the list.
/// </summary>
public T Add<T>(T item) where T : IDisposable
{
base.Add(item);
return item;
}
}
}
| 35.41791 | 87 | 0.586599 | [
"MIT"
] | AzureMentor/DACExtensions | Samples/DisposableList.cs | 2,375 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace neonrpg.Utilities {
class Color {
private static readonly StringBuilder sb = new StringBuilder();
public static readonly Color TRANSPARENT = new Color();
public static readonly Color BLACK = new Color(0, 0, 0);
public static readonly Color WHITE = new Color(255, 255, 255);
public static readonly Color RED = new Color(255, 0, 0);
public static readonly Color GREEN = new Color(0, 255, 0);
public static readonly Color BLUE = new Color(0, 0, 255);
public static readonly Color YELLOW = new Color(255, 255, 0);
public string Red { get; set; }
public string Green { get; set; }
public string Blue { get; set; }
public bool Transparent { get; set; }
public Color() {
Red = "0";
Green = "0";
Blue = "0";
Transparent = true;
}
public Color(string r, string g, string b) {
Red = r;
Green = g;
Blue = b;
Transparent = false;
}
public Color(int r, int g, int b) {
Red = r.ToString();
Green = g.ToString();
Blue = b.ToString();
Transparent = false;
}
public string AsAnsiForeground() {
sb.Clear();
sb.Append("\u001b[38;2;");
sb.Append(Red);
sb.Append(";");
sb.Append(Green);
sb.Append(";");
sb.Append(Blue);
sb.Append("m");
return sb.ToString();
}
public string AsAnsiBackground() {
sb.Clear();
sb.Append("\u001b[48;2;");
sb.Append(Red);
sb.Append(";");
sb.Append(Green);
sb.Append(";");
sb.Append(Blue);
sb.Append("m");
return sb.ToString();
}
}
}
| 28.171429 | 71 | 0.495436 | [
"MIT"
] | dskprt/neonrpg | neonrpg/Utilities/Color.cs | 1,974 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Azure.Functions.Cli.Common;
using Azure.Functions.Cli.ExtensionBundle;
using Azure.Functions.Cli.Helpers;
using Azure.Functions.Cli.Interfaces;
using Azure.Functions.Cli.Telemetry;
using Colors.Net;
using Fclp;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using static Azure.Functions.Cli.Common.Constants;
using static Azure.Functions.Cli.Common.OutputTheme;
namespace Azure.Functions.Cli.Actions.LocalActions
{
[Action(Name = "new", Context = Context.Function, HelpText = "Create a new function from a template.")]
[Action(Name = "new", HelpText = "Create a new function from a template.")]
[Action(Name = "create", Context = Context.Function, HelpText = "Create a new function from a template.")]
internal class CreateFunctionAction : BaseAction
{
private ITemplatesManager _templatesManager;
private readonly ISecretsManager _secretsManager;
private readonly InitAction _initAction;
public string Language { get; set; }
public string TemplateName { get; set; }
public string FunctionName { get; set; }
public bool Csx { get; set; }
public AuthorizationLevel? AuthorizationLevel { get; set; }
Lazy<IEnumerable<Template>> _templates;
public CreateFunctionAction(ITemplatesManager templatesManager, ISecretsManager secretsManager)
{
_templatesManager = templatesManager;
_secretsManager = secretsManager;
_templates = new Lazy<IEnumerable<Template>>(() => { return _templatesManager.Templates.Result; });
_initAction = new InitAction(_templatesManager, _secretsManager);
}
public override ICommandLineParserResult ParseArgs(string[] args)
{
Parser
.Setup<string>('l', "language")
.WithDescription($"Template programming language, such as C#, F#, JavaScript, etc.")
.Callback(l => Language = l);
Parser
.Setup<string>('t', "template")
.WithDescription("Template name")
.Callback(t => TemplateName = t);
Parser
.Setup<string>('n', "name")
.WithDescription("Function name")
.Callback(n => FunctionName = n);
Parser
.Setup<AuthorizationLevel?>('a', "authlevel")
.WithDescription("Authorization level is applicable to templates that use Http trigger, Allowed values: [function, anonymous, admin]. Authorization level is not enforced when running functions from core tools")
.Callback(a => AuthorizationLevel = a);
Parser
.Setup<bool>("csx")
.WithDescription("use old style csx dotnet functions")
.Callback(csx => Csx = csx);
_initAction.ParseArgs(args);
return base.ParseArgs(args);
}
public async override Task RunAsync()
{
if (Console.IsOutputRedirected || Console.IsInputRedirected)
{
if (string.IsNullOrEmpty(TemplateName) ||
string.IsNullOrEmpty(FunctionName))
{
ColoredConsole
.Error
.WriteLine(ErrorColor("Running with stdin\\stdout redirected. Command must specify --template, and --name explicitly."))
.WriteLine(ErrorColor("See 'func help function' for more details"));
return;
}
}
var workerRuntime = GlobalCoreToolsSettings.CurrentWorkerRuntimeOrNone;
if (!FileSystemHelpers.FileExists(Path.Combine(Environment.CurrentDirectory, "local.settings.json")))
{
// we're assuming "func init" has not been run
await _initAction.RunAsync();
workerRuntime = _initAction.ResolvedWorkerRuntime;
Language = _initAction.ResolvedLanguage;
}
var templates = await _templatesManager.Templates;
if (workerRuntime != WorkerRuntime.None && !string.IsNullOrWhiteSpace(Language))
{
// validate
var workerRuntimeSelected = WorkerRuntimeLanguageHelper.NormalizeWorkerRuntime(Language);
if (workerRuntime != workerRuntimeSelected)
{
throw new CliException("Selected language doesn't match worker set in local.settings.json." +
$"Selected worker is: {workerRuntime} and selected language is: {workerRuntimeSelected}");
}
}
else if (string.IsNullOrWhiteSpace(Language))
{
if (workerRuntime == WorkerRuntime.None)
{
SelectionMenuHelper.DisplaySelectionWizardPrompt("language");
Language = SelectionMenuHelper.DisplaySelectionWizard(_templates.Value.Select(t => t.Metadata.Language).Where(l => !l.Equals("python", StringComparison.OrdinalIgnoreCase)).Distinct());
workerRuntime = WorkerRuntimeLanguageHelper.SetWorkerRuntime(_secretsManager, Language);
}
else if (workerRuntime != WorkerRuntime.dotnet || Csx)
{
var languages = WorkerRuntimeLanguageHelper.LanguagesForWorker(workerRuntime);
var displayList = _templates.Value
.Select(t => t.Metadata.Language)
.Where(l => languages.Contains(l, StringComparer.OrdinalIgnoreCase))
.Distinct()
.ToArray();
if (displayList.Length == 1)
{
Language = displayList.First();
}
else if (!InferAndUpdateLanguage(workerRuntime))
{
SelectionMenuHelper.DisplaySelectionWizardPrompt("language");
Language = SelectionMenuHelper.DisplaySelectionWizard(displayList);
}
}
}
else if (!string.IsNullOrWhiteSpace(Language))
{
workerRuntime = WorkerRuntimeLanguageHelper.SetWorkerRuntime(_secretsManager, Language);
}
if (workerRuntime == WorkerRuntime.dotnet && !Csx)
{
SelectionMenuHelper.DisplaySelectionWizardPrompt("template");
TemplateName = TemplateName ?? SelectionMenuHelper.DisplaySelectionWizard(DotnetHelpers.GetTemplates());
ColoredConsole.Write("Function name: ");
FunctionName = FunctionName ?? Console.ReadLine();
ColoredConsole.WriteLine(FunctionName);
var namespaceStr = Path.GetFileName(Environment.CurrentDirectory);
await DotnetHelpers.DeployDotnetFunction(TemplateName.Replace(" ", string.Empty), Utilities.SanitizeClassName(FunctionName), Utilities.SanitizeNameSpace(namespaceStr), AuthorizationLevel);
}
else
{
SelectionMenuHelper.DisplaySelectionWizardPrompt("template");
string templateLanguage;
try
{
templateLanguage = WorkerRuntimeLanguageHelper.NormalizeLanguage(Language);
}
catch (Exception)
{
// Ideally this should never happen.
templateLanguage = WorkerRuntimeLanguageHelper.GetDefaultTemplateLanguageFromWorker(workerRuntime);
}
TelemetryHelpers.AddCommandEventToDictionary(TelemetryCommandEvents, "language", templateLanguage);
TemplateName = TemplateName ?? SelectionMenuHelper.DisplaySelectionWizard(_templates.Value.Where(t => t.Metadata.Language.Equals(templateLanguage, StringComparison.OrdinalIgnoreCase)).Select(t => t.Metadata.Name).Distinct());
ColoredConsole.WriteLine(TitleColor(TemplateName));
var template = _templates.Value.FirstOrDefault(t => Utilities.EqualsIgnoreCaseAndSpace(t.Metadata.Name, TemplateName) && t.Metadata.Language.Equals(templateLanguage, StringComparison.OrdinalIgnoreCase));
if (template == null)
{
TelemetryHelpers.AddCommandEventToDictionary(TelemetryCommandEvents, "template", "N/A");
throw new CliException($"Can't find template \"{TemplateName}\" in \"{Language}\"");
}
else
{
TelemetryHelpers.AddCommandEventToDictionary(TelemetryCommandEvents, "template", TemplateName);
var extensionBundleManager = ExtensionBundleHelper.GetExtensionBundleManager();
if (template.Metadata.Extensions != null && !extensionBundleManager.IsExtensionBundleConfigured() && !CommandChecker.CommandExists("dotnet"))
{
throw new CliException($"The {template.Metadata.Name} template has extensions. {Constants.Errors.ExtensionsNeedDotnet}");
}
if (AuthorizationLevel.HasValue)
{
ConfigureAuthorizationLevel(template);
}
ColoredConsole.Write($"Function name: [{template.Metadata.DefaultFunctionName}] ");
FunctionName = FunctionName ?? Console.ReadLine();
FunctionName = string.IsNullOrEmpty(FunctionName) ? template.Metadata.DefaultFunctionName : FunctionName;
await _templatesManager.Deploy(FunctionName, template);
PerformPostDeployTasks(FunctionName, Language);
}
}
ColoredConsole.WriteLine($"The function \"{FunctionName}\" was created successfully from the \"{TemplateName}\" template.");
}
private void ConfigureAuthorizationLevel(Template template)
{
var bindings = template.Function["bindings"];
bool IsHttpTriggerTemplate = bindings.Any(b => b["type"].ToString() == "httpTrigger");
if (!IsHttpTriggerTemplate)
{
throw new CliException(AuthLevelErrorMessage);
}
else
{
var binding = bindings.Where(b => b["type"].ToString().Equals(HttpTriggerTemplateName, StringComparison.OrdinalIgnoreCase)).FirstOrDefault();
binding["authLevel"] = AuthorizationLevel.ToString();
}
}
private bool InferAndUpdateLanguage(WorkerRuntime workerRuntime)
{
// If there is a tsconfig.json present, we assume that the language is typescript
if (workerRuntime == WorkerRuntime.node)
{
Language = FileSystemHelpers.FileExists(Path.Combine(Environment.CurrentDirectory, "tsconfig.json")) ? Constants.Languages.TypeScript : Constants.Languages.JavaScript;
return true;
}
return false;
}
private void PerformPostDeployTasks(string functionName, string language)
{
if (language == Constants.Languages.TypeScript)
{
// Update typescript function.json
var funcJsonFile = Path.Combine(Environment.CurrentDirectory, functionName, Constants.FunctionJsonFileName);
var jsonStr = FileSystemHelpers.ReadAllTextFromFile(funcJsonFile);
var funcObj = JsonConvert.DeserializeObject<JObject>(jsonStr);
funcObj.Add("scriptFile", $"../dist/{functionName}/index.js");
FileSystemHelpers.WriteAllTextToFile(funcJsonFile, JsonConvert.SerializeObject(funcObj, Formatting.Indented));
}
}
}
}
| 48.485944 | 241 | 0.604158 | [
"MIT"
] | AnnMerlyn/azure-functions-core-tools | src/Azure.Functions.Cli/Actions/LocalActions/CreateFunctionAction.cs | 12,075 | C# |
using AoCHelper;
namespace AdventOfCode
{
public class Day_21 : BaseDay
{
private readonly string _input;
public Day_21()
{
_input = File.ReadAllText(InputFilePath);
}
public override ValueTask<string> Solve_1() => new("Solution 1");
public override ValueTask<string> Solve_2() => new("Solution 2");
}
}
| 20 | 73 | 0.6 | [
"MIT"
] | Tohaker/AdventOfCode2021 | AdventOfCode/Day_21.cs | 380 | C# |
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using MoviesService.Contracts;
namespace MoviesService
{
[ServiceContract]
public interface IMoviesService
{
[OperationContract]
Movie[] GetAllMovies();
[OperationContract]
Movie[] GetMovies(MovieSortFields? sortField = null, IDictionary<MovieFilterFields, string> filterFieldsValues = null);
[OperationContract]
void Create(Movie movie);
[OperationContract]
void Update(Movie movie);
}
} | 25.73913 | 128 | 0.673986 | [
"MIT"
] | jonathanconway/cbamovieexercise | MoviesService/IMoviesService.cs | 594 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NoController : MonoBehaviour {
protected OVRInput.Controller left = OVRInput.Controller.LTrackedRemote;
protected OVRInput.Controller right = OVRInput.Controller.RTrackedRemote;
protected Canvas canvas = null;
private bool m_prevControllerConnected = false;
private bool m_prevControllerConnectedCached = false;
void Awake() {
canvas = GetComponent<Canvas> ();
}
void Update()
{
bool controllerConnected = OVRInput.IsControllerConnected(left) || OVRInput.IsControllerConnected(right);
if ((controllerConnected != m_prevControllerConnected) || !m_prevControllerConnectedCached)
{
canvas.enabled = !controllerConnected;
m_prevControllerConnected = controllerConnected;
m_prevControllerConnectedCached = true;
}
if (!controllerConnected)
{
return;
}
}
}
| 25.4 | 107 | 0.777278 | [
"MIT"
] | PickardChilton/GoVR | ArcTeleporter/Scripts/Menu/NoController.cs | 891 | C# |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System.Linq;
using System.Web.Http.Description;
using System.Web.Http.Dispatcher;
using Microsoft.TestCommon;
namespace System.Web.Http.ApiExplorer
{
public class ParameterSourceTest
{
[Fact]
public void FromUriParameterSource_ShowUpCorrectlyOnDescription()
{
HttpConfiguration config = new HttpConfiguration();
config.Routes.MapHttpRoute("Default", "{controller}/{action}/{id}", new { id = RouteParameter.Optional });
DefaultHttpControllerSelector controllerSelector = ApiExplorerHelper.GetStrictControllerSelector(config, typeof(ParameterSourceController));
config.Services.Replace(typeof(IHttpControllerSelector), controllerSelector);
IApiExplorer explorer = config.Services.GetApiExplorer();
ApiDescription description = explorer.ApiDescriptions.FirstOrDefault(desc => desc.ActionDescriptor.ActionName == "GetCompleTypeFromUri");
Assert.NotNull(description);
Assert.True(description.ParameterDescriptions.All(param => param.Source == ApiParameterSource.FromUri), "All parameters should come from URI.");
description = explorer.ApiDescriptions.FirstOrDefault(desc => desc.ActionDescriptor.ActionName == "GetCustomFromUriAttribute");
Assert.NotNull(description);
Assert.True(description.ParameterDescriptions.Any(param => param.Source == ApiParameterSource.FromUri && param.Name == "value"), "The 'value' parameter should come from URI.");
Assert.True(description.ParameterDescriptions.Any(param => param.Source == ApiParameterSource.FromBody && param.Name == "bodyValue"), "The 'bodyValue' parameter should come from body.");
}
[Fact]
public void FromBodyParameterSource_ShowUpCorrectlyOnDescription()
{
HttpConfiguration config = new HttpConfiguration();
config.Routes.MapHttpRoute("Default", "{controller}/{action}/{id}", new { id = RouteParameter.Optional });
DefaultHttpControllerSelector controllerSelector = ApiExplorerHelper.GetStrictControllerSelector(config, typeof(ParameterSourceController));
config.Services.Replace(typeof(IHttpControllerSelector), controllerSelector);
IApiExplorer explorer = config.Services.GetApiExplorer();
ApiDescription description = explorer.ApiDescriptions.FirstOrDefault(desc => desc.ActionDescriptor.ActionName == "PostSimpleTypeFromBody");
Assert.NotNull(description);
Assert.True(description.ParameterDescriptions.All(param => param.Source == ApiParameterSource.FromBody), "The parameter should come from Body.");
}
[Fact]
public void UnknownParameterSource_ShowUpCorrectlyOnDescription()
{
HttpConfiguration config = new HttpConfiguration();
config.Routes.MapHttpRoute("Default", "{controller}/{action}/{id}", new { id = RouteParameter.Optional });
DefaultHttpControllerSelector controllerSelector = ApiExplorerHelper.GetStrictControllerSelector(config, typeof(ParameterSourceController));
config.Services.Replace(typeof(IHttpControllerSelector), controllerSelector);
IApiExplorer explorer = config.Services.GetApiExplorer();
ApiDescription description = explorer.ApiDescriptions.FirstOrDefault(desc => desc.ActionDescriptor.ActionName == "GetFromHeaderAttribute");
Assert.NotNull(description);
Assert.True(description.ParameterDescriptions.All(param => param.Source == ApiParameterSource.Unknown), "The parameter source should be Unknown.");
}
}
}
| 63.1 | 198 | 0.722134 | [
"Apache-2.0"
] | charliefr/aspnetwebstack | test/System.Web.Http.Integration.Test/ApiExplorer/ParameterSourceTest.cs | 3,788 | C# |
namespace UblTr.Common
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2")]
[System.Xml.Serialization.XmlRootAttribute("PaymentFrequencyCode", Namespace = "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2", IsNullable = false)]
public partial class PaymentFrequencyCodeType : CodeType1
{
}
} | 53.083333 | 175 | 0.77551 | [
"MIT"
] | canyener/Ubl-Tr | Ubl-Tr/Common/CommonBasicComponents/PaymentFrequencyCodeType.cs | 637 | C# |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Org.DotNetToscana.CosmosDBGlobalDistribution.Models;
using Org.DotNetToscana.CosmosDBGlobalDistribution.Services;
using Microsoft.Extensions.Options;
using Org.DotNetToscana.CosmosDBGlobalDistribution.Common;
using Org.DotNetToscana.CosmosDBGlobalDistribution.ViewModels;
namespace Org.DotNetToscana.CosmosDBGlobalDistribution.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View();
}
public IActionResult Error()
{
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
} | 27.925926 | 103 | 0.811671 | [
"MIT"
] | DotNetToscana/CosmosDB-GlobalDistribution | CosmosDBGlobalDistribution/Controllers/HomeController.cs | 756 | C# |
using Riven.AspNetCore.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Riven.AspNetCore.Models
{
/// <summary>
/// This class is used to create standard responses for AJAX/remote requests.
/// </summary>
[Serializable]
public class AjaxResponse : AjaxResponse<object>
{
/// <summary>
/// Creates an <see cref="AjaxResponse"/> object.
/// <see cref="AjaxResponseBase.Success"/> is set as true.
/// </summary>
public AjaxResponse()
{
}
/// <summary>
/// Creates an <see cref="AjaxResponse"/> object with <see cref="AjaxResponseBase.Success"/> specified.
/// </summary>
/// <param name="success">Indicates success status of the result</param>
public AjaxResponse(bool success)
: base(success)
{
}
/// <summary>
/// Creates an <see cref="AjaxResponse"/> object with <see cref="AjaxResponse{TResult}.Result"/> specified.
/// <see cref="AjaxResponseBase.Success"/> is set as true.
/// </summary>
/// <param name="result">The actual result object</param>
public AjaxResponse(object result)
: base(result)
{
}
}
}
| 28.434783 | 115 | 0.58945 | [
"Apache-2.0"
] | rivenfx/Framework | src/Riven.AspNetCore/AspNetCore/Models/AjaxResponseOfObject.cs | 1,310 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class TargetDelagate
{
public GameObject target;
public string action;
public void runAction()
{
target.SendMessage(action);
}
}
| 15.764706 | 35 | 0.716418 | [
"MIT"
] | KenMunk/CSC131_Project-Autism-Target-Learning | 01_FrontEnd/Project_AutismTargetLearning/Assets/Scripts/UtilityScripts/MultiClick/TargetDelagate.cs | 268 | C# |
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Web.Http;
namespace System.Net.Http
{
/// <summary>
/// Provides extension methods for the <see cref="HttpRequestMessage"/> class.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static class HttpRequestMessageExtensions
{
/// <summary>
/// Creates an <see cref="HttpResponseMessage"/> wired up to the associated <see cref="HttpRequestMessage"/>.
/// </summary>
/// <param name="request">The HTTP request.</param>
/// <param name="statusCode">The HTTP status code.</param>
/// <returns>An initialized <see cref="HttpResponseMessage"/>.</returns>
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Caller will dispose")]
public static HttpResponseMessage CreateResponse(this HttpRequestMessage request, HttpStatusCode statusCode)
{
if (request == null)
{
throw Error.ArgumentNull("request");
}
return new HttpResponseMessage
{
StatusCode = statusCode,
RequestMessage = request
};
}
/// <summary>
/// Creates an <see cref="HttpResponseMessage"/> wired up to the associated <see cref="HttpRequestMessage"/>.
/// </summary>
/// <param name="request">The HTTP request.</param>
/// <returns>An initialized <see cref="HttpResponseMessage"/>.</returns>
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Caller will dispose")]
public static HttpResponseMessage CreateResponse(this HttpRequestMessage request)
{
if (request == null)
{
throw Error.ArgumentNull("request");
}
return new HttpResponseMessage
{
RequestMessage = request
};
}
}
}
| 37.962963 | 135 | 0.607317 | [
"Apache-2.0"
] | douchedetector/mvc-razor | src/System.Net.Http.Formatting/HttpRequestMessageExtensions.cs | 2,052 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
namespace Azure.ResourceManager.Resources.Models
{
internal partial class ResourceListResult
{
internal static ResourceListResult DeserializeResourceListResult(JsonElement element)
{
Optional<IReadOnlyList<GenericResourceExpandedData>> value = default;
Optional<string> nextLink = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("value"))
{
if (property.Value.ValueKind == JsonValueKind.Null)
{
property.ThrowNonNullablePropertyIsNull();
continue;
}
List<GenericResourceExpandedData> array = new List<GenericResourceExpandedData>();
foreach (var item in property.Value.EnumerateArray())
{
array.Add(GenericResourceExpandedData.DeserializeGenericResourceExpanded(item));
}
value = array;
continue;
}
if (property.NameEquals("nextLink"))
{
nextLink = property.Value.GetString();
continue;
}
}
return new ResourceListResult(Optional.ToList(value), nextLink.Value);
}
}
}
| 34.425532 | 104 | 0.55377 | [
"MIT"
] | EitanGayor/azure-sdk-for-net | sdk/resourcemanager/Azure.ResourceManager/src/Generated/Resources/Models/ResourceListResult.Serialization.cs | 1,618 | C# |
using System;
namespace GadzhiCommon.Extensions.Functional
{
/// <summary>
/// Методы расширения для функций высшего порядка
/// </summary>
public static class CurryExtensions
{
/// <summary>
/// Преобразование функции высшего порядка для одного аргумента
/// </summary>
public static Func<TOut> Curry<TIn1, TOut>(this Func<TIn1, TOut> @this, TIn1 arg1)
{
if (@this == null) throw new ArgumentNullException(nameof(@this));
return () => @this(arg1);
}
/// <summary>
/// Преобразование функции высшего порядка для двух аргументов
/// </summary>
public static Func<TIn2, TOut> Curry<TIn1, TIn2, TOut>(this Func<TIn1, TIn2, TOut> @this, TIn1 arg1)
{
if (@this == null) throw new ArgumentNullException(nameof(@this));
return (arg2) => @this(arg1, arg2);
}
/// <summary>
/// Преобразование функции высшего порядка для трех аргументов
/// </summary>
public static Func<TIn2, TIn3, TOut> Curry<TIn1, TIn2, TIn3, TOut>(this Func<TIn1, TIn2, TIn3, TOut> @this, TIn1 arg1)
{
if (@this == null) throw new ArgumentNullException(nameof(@this));
return (arg2, arg3) => @this(arg1, arg2, arg3);
}
/// <summary>
/// Преобразование функции высшего порядка для трех аргументов
/// </summary>
public static Func<TIn2, TIn3, TIn4, TOut> Curry<TIn1, TIn2, TIn3, TIn4, TOut>(this Func<TIn1, TIn2, TIn3, TIn4, TOut> @this, TIn1 arg1)
{
if (@this == null) throw new ArgumentNullException(nameof(@this));
return (arg2, arg3, arg4) => @this(arg1, arg2, arg3, arg4);
}
}
} | 35.3 | 144 | 0.577337 | [
"MIT"
] | rubilnik4/GadzhiResurrected | GadzhiCommon/Extensions/Functional/CurryExtensions.cs | 2,016 | C# |
using UnityEngine;
public enum AudioPlayState
{
Playing,
Pause,
Stoping,
Stop,
}
/// <summary>
/// 音乐资源类型,音乐还是音效
/// </summary>
public enum AudioSourceType
{
Music,
SFX,
}
public class AudioAsset
{
public AudioSource audioSource;
public AudioSourceType sourceType;
public string flag = "";
public string assetName = "";
private float totleVolume = 1;
/// <summary>
/// 总音量
/// </summary>
public float TotleVolume
{
get
{
return totleVolume;
}
set
{
totleVolume = value;
Volume = TotleVolume * volumeScale;
}
}
/// <summary>
/// 当前AudioSource 实际音量
/// </summary>
public float Volume
{
get { return audioSource.volume; }
set { audioSource.volume = value; }
}
/// <summary>
/// 实际音量恢复到当前的最大
/// </summary>
public void ResetVolume()
{
Volume = TotleVolume * volumeScale;
}
public float GetMaxRealVolume()
{
return TotleVolume * volumeScale;
}
/// <summary>
/// 相对于总音量当前当前AudioSource的音量缩放 Volume=TotleVolume * volumeScale
/// </summary>
private float volumeScale = 1f;
public float VolumeScale
{
get { return volumeScale; }
set
{
volumeScale = Mathf.Clamp01 ( value );
ResetVolume ();
}
}
public bool IsPlay
{
get { return audioSource.isPlaying; }
}
private AudioPlayState playState = AudioPlayState.Stop;
public AudioPlayState PlayState
{
get
{
return playState;
}
}
public void SetPlayState(AudioPlayState state)
{
playState = state;
}
public void CheckState()
{
if (audioSource == null || (!audioSource.isPlaying && playState != AudioPlayState.Pause))
Stop();
}
public void Play(float delay = 0f)
{
if (audioSource != null && audioSource.clip != null)
{
audioSource.PlayDelayed(delay);
playState = AudioPlayState.Playing;
}
}
public void Pause()
{
if (audioSource != null && audioSource.clip != null && audioSource.isPlaying)
{
audioSource.Pause();
playState = AudioPlayState.Pause;
}
}
public void Stop()
{
if (audioSource)
audioSource.Stop();
playState = AudioPlayState.Stop;
}
/// <summary>
/// 重置某些参数,防止回收后再使用参数不对
/// </summary>
public void ResetData()
{
audioSource.pitch = 1;
flag = "";
}
}
public class VolumeFadeData
{
public AudioAsset au;
public float fadeTime;
/// <summary>
/// 记录临时音量
/// </summary>
public float tempVolume;
/// <summary>
/// 延迟播放music
/// </summary>
public float delayTime;
public VolumeFadeType fadeType;
public VolumeFadeStateType fadeState;
public System.Action<AudioAsset> fadeCompleteCallBack;
/// <summary>
/// 用于VolumeFadeType.FadeOut2In 当fade out完成时回调
/// </summary>
public System.Action<AudioAsset> fadeOutCompleteCallBack;
}
public enum VolumeFadeType
{
FadeIn,
FadeOut,
FadeOut2In,
}
public enum VolumeFadeStateType
{
FadeIn,
FadeOut,
Delay,
Complete,
}
| 19.857143 | 97 | 0.568345 | [
"MIT"
] | lost-home/CiGA2020 | Assets/Scripts/Audio/AudioAsset.cs | 3,510 | C# |
using HEAL.Entities.DataAccess.Dwh.DataVaultV2.Abstractions;
using HEAL.Entities.DataAccess.Caching.Abstractions;
using HEAL.Entities.DataAccess.EFCore.Caching;
using HEAL.Entities.DataAccess.EFCore.Dwh.DataVaultV2.Generic;
using HEAL.Entities.Objects.Dwh.DataVaultV2;
using Microsoft.Extensions.Logging;
namespace HEAL.Entities.DataAccess.EFCore.Dwh.DataVaultV2 {
public class LinkRepository<TEntity> : LinkRepository<TEntity, string,long>, ILinkRepository<TEntity>
where TEntity : class, ILink<string> {
public LinkRepository(DwhDbContext context
, DataVaultHashFunction<string> hashFunction
, IPrimaryKeyCache keyCache = null
, DVKeyCaching useKeyCaching = DVKeyCaching.Disabled
, ILogger<LinkRepository<TEntity, string,long>> logger = null)
: base(context, hashFunction,keyCache,useKeyCaching,logger) {
}
}
} | 45.181818 | 103 | 0.679074 | [
"MIT"
] | florianBachinger/HEAL.Entities | src/HEAL.Entities.DataAccess.EFCore/Dwh/DataVaultV2/LinkRepository.cs | 996 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("DataStreams.UnitTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DataStreams.UnitTest")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("65568734-ecf3-487d-aa3c-93ba5e98a3f1")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 30.47619 | 56 | 0.757813 | [
"Apache-2.0"
] | mantis1262/TP | ExDataManagement/P03.DataStreams/DataStreams.UnitTest/Properties/AssemblyInfo.cs | 641 | C# |
using System;
using System.Linq;
using System.Reflection;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Supabase.Realtime
{
/// <summary>
/// A custom resolver that handles mapping column names and property names as well
/// as handling the conversion of Postgrest Ranges to a C# `Range`.
/// </summary>
internal class CustomContractResolver : DefaultContractResolver
{
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization)
{
JsonProperty prop = base.CreateProperty(member, memberSerialization);
if (prop.PropertyType == typeof(DateTime))
{
prop.Converter = new RealtimeTimestampConverter();
}
return prop;
}
}
}
| 29.357143 | 114 | 0.6691 | [
"MIT"
] | elrhomariyounes/realtime-csharp | Realtime/CustomContractResolver.cs | 824 | 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>
//------------------------------------------------------------------------------
namespace Imitate.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}
| 34.258065 | 151 | 0.580038 | [
"MIT"
] | js94766524/Win_Imitate | Imitate/Properties/Settings.Designer.cs | 1,064 | C# |
using GraphQL.Samples.Schemas.Chat;
using GraphQL.Server.Transports.AspNetCore;
using GraphQL.Server.Transports.Subscriptions.Abstractions;
using GraphQL.Server.Transports.WebSockets;
using GraphQL.Server.Ui.GraphiQL;
using GraphQL.Server.Ui.Playground;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using MessageType = GraphQL.Samples.Schemas.Chat.MessageType;
namespace GraphQL.Samples.Server
{
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.AddSingleton<IChat, Chat>();
services.AddSingleton<ChatSchema>();
services.AddSingleton<ChatQuery>();
services.AddSingleton<ChatMutation>();
services.AddSingleton<ChatSubscriptions>();
services.AddSingleton<MessageType>();
services.AddSingleton<MessageInputType>();
// http
services.AddGraphQLHttp();
// subscriptions
services.Configure<ExecutionOptions<ChatSchema>>(options =>
{
options.EnableMetrics = true;
options.ExposeExceptions = true;
});
services.AddSingleton<IOperationMessageListener, LogMessagesListener>();
services.AddGraphQLWebSocket<ChatSchema>();
services.AddMvc();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
app.UseDeveloperExceptionPage();
app.UseDefaultFiles();
app.UseStaticFiles();
app.UseWebSockets();
app.UseGraphQLWebSocket<ChatSchema>(new GraphQLWebSocketsOptions());
app.UseGraphQLHttp<ChatSchema>(new GraphQLHttpOptions());
app.UseGraphQLPlayground(new GraphQLPlaygroundOptions()
{
Path = "/ui/playground"
});
app.UseGraphiQLServer(new GraphiQLOptions
{
GraphiQLPath = "/ui/graphiql",
GraphQLEndPoint = "/graphql"
});
app.UseMvc();
}
}
}
| 35.554054 | 106 | 0.633219 | [
"MIT"
] | BenjaBobs/server | samples/Samples.Server/Startup.cs | 2,631 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Clase_05.Entidades;
//using Lucchettinni;
namespace Clase_05
{
class Program
{
static void Main(string[] args)
{
string b;
Tinta tintita = new Tinta();
Pluma plumita = new Pluma("tuvieja", tintita);
b = (string)plumita;
/* LuccheTools.MessageColoured( b, ConsoleColor.Blue );
LuccheTools.MessagePause("Presione una tecla para continuar...");*/
}
}
}
| 22.423077 | 79 | 0.61235 | [
"MIT"
] | Luchettinni/Segundo-Cuatrimestre | Aranda.Luciano/Clase_05/Program.cs | 585 | C# |
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
//
// Microsoft Cognitive Services: http://www.microsoft.com/cognitive
//
// Microsoft Cognitive Services Github:
// https://github.com/Microsoft/Cognitive
//
// Copyright (c) Microsoft Corporation
// All rights reserved.
//
// MIT 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.
//
using Microsoft.ProjectOxford.Common.Contract;
using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
// The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236
namespace Sentiment.Controls
{
public sealed partial class RealTimeFaceIdentificationBorder : UserControl
{
public RealTimeFaceIdentificationBorder()
{
this.InitializeComponent();
}
public void ShowFaceRectangle(double left, double top, double width, double height)
{
this.faceRectangle.Margin = new Thickness(left, top, 0, 0);
this.faceRectangle.Width = width;
this.faceRectangle.Height = height;
this.faceRectangle.Visibility = Visibility.Visible;
}
public void ShowRealTimeEmotionData(EmotionScores scores)
{
this.emotionEmojiControl.UpdateEmotion(scores);
}
public void ShowIdentificationData(double age, string gender, uint confidence, string name = null, string uniqueId = null)
{
int roundedAge = (int)Math.Round(age);
if (!string.IsNullOrEmpty(name))
{
this.captionTextHeader.Text = string.Format("{0}, {1} ({2}%)", name, roundedAge, confidence);
}
else if (!string.IsNullOrEmpty(gender))
{
this.captionTextHeader.Text = string.Format("{0}, {1}", roundedAge.ToString(), gender);
}
if (uniqueId != null)
{
this.captionTextSubHeader.Text = string.Format("Face Id: {0}", uniqueId);
}
this.captionBorder.Visibility = Visibility.Visible;
this.captionBorder.Margin = new Thickness(this.faceRectangle.Margin.Left - (this.captionBorder.Width - this.faceRectangle.Width) / 2,
this.faceRectangle.Margin.Top - this.captionBorder.Height - 2, 0, 0);
}
public void SetBorderColor(Brush brush)
{
this.faceRectangle.Stroke = brush;
}
}
} | 38.268817 | 145 | 0.663951 | [
"MIT"
] | oasalonen/passport-picture | Sentiment/RealTimeFaceIdentificationBorder.xaml.cs | 3,561 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
namespace Avast.SmsConnectorClient
{
/// <summary>
/// SMS connector client.
/// </summary>
public class SmsConnector
{
private static readonly IEnumerable<string> ErrorResponseKeysToIncludeInExceptionDetails = new[] { "responseType", "responseCode", "responseDescription" };
/// <summary>
/// Initializes new instance of <see cref="SmsConnector"/>.
/// </summary>
/// <param name="smsConnectorConfiguration">Sms connector configuration.</param>
/// <exception cref="ArgumentNullException">If <paramref name="smsConnectorConfiguration"/> is <c>null</c>.</exception>
public SmsConnector(SmsConnectorConfiguration smsConnectorConfiguration)
{
if (smsConnectorConfiguration == null) throw new ArgumentNullException(nameof(smsConnectorConfiguration));
SmsConnectorConfiguration = smsConnectorConfiguration;
}
/// <summary>
/// SMS connector configuration.
/// </summary>
public SmsConnectorConfiguration SmsConnectorConfiguration { get; }
/// <summary>
/// Sends an SMS message.
/// </summary>
/// <param name="message">SMS message.</param>
/// <returns>Task.</returns>
/// <exception cref="ArgumentNullException">If <paramref name="message"/> is <c>null</c>.</exception>
public async Task SendSmsAsync(SmsMessage message)
{
if (message == null) throw new ArgumentNullException(nameof(message));
var url = ComposeUrl(message);
#if NET45
var messageHandler = new WebRequestHandler();
messageHandler.ClientCertificates.Add(SmsConnectorConfiguration.Certificate);
#else
var messageHandler = new WinHttpHandler();
messageHandler.ClientCertificates.Add(SmsConnectorConfiguration.Certificate);
#endif
using (var client = new HttpClient(messageHandler))
{
var response = await client.GetAsync(url).ConfigureAwait(false);
await HandleErrorResponse(response).ConfigureAwait(false);
}
}
private Uri ComposeUrl(SmsMessage message)
{
const string pattern =
"https://smsconnector.cz.o2.com/smsconnector/getpost/GP?action=send&baID={0}&toNumber={1}&text={2}&intruder=FALSE&multipart={3}&deliveryReport=FALSE&validityPeriod=10000&priority=1";
var baId = WebUtility.UrlEncode(SmsConnectorConfiguration.ApplicationId);
var phoneNumber = WebUtility.UrlEncode(message.PhoneNumber.FullPhoneNumberWithNormalizedPrefix);
var messageText = WebUtility.UrlEncode(message.Text);
var multipart = message.Multipart.ToString();
return new Uri(string.Format(pattern, baId, phoneNumber, messageText, multipart));
}
private static async Task HandleErrorResponse(HttpResponseMessage response)
{
if (response.IsSuccessStatusCode)
{
return;
}
// In case of errors, the response should contain additional textual information
// formatted as key=value pairs separated by the \n character.
if (response.Content != null)
{
var mediaType = response.Content.Headers?.ContentType?.MediaType;
if (string.Equals(mediaType, "text/plain"))
{
var textResponseBody = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
var detailsToInclude = textResponseBody?.Split('\n')
.Select(s => s.Trim())
.Where(s => s.Length > 0)
.Where(v => ErrorResponseKeysToIncludeInExceptionDetails.Any(key => v.StartsWith(key, StringComparison.OrdinalIgnoreCase)))
.ToList();
if (detailsToInclude?.Count > 0)
{
throw new Exception(
$"Received error response from SMS connector ({(int) response.StatusCode} {response.ReasonPhrase}). {string.Join("; ", detailsToInclude)}");
}
}
}
response.EnsureSuccessStatusCode();
}
}
}
| 41.862385 | 199 | 0.600044 | [
"MIT"
] | LaudateCorpus1/sms-connector-client | src/Avast.SmsConnectorClient/SmsConnector.cs | 4,565 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CurrencyConversion.Service
{
public class CurrencyConversion
{
private class TripletBlock
{
public int Index { get; private set; }
public int Value { get; private set; }
public TripletBlock(int index, int value)
{
Index = index;
Value = value;
}
}
private readonly Dictionary<int, string> singleDigitNames = new Dictionary<int, string>
{
{ 0, "zero" },
{ 1, "one" },
{ 2, "two" },
{ 3, "three" },
{ 4, "four" },
{ 5, "five" },
{ 6, "six" },
{ 7, "seven" },
{ 8, "eight" },
{ 9, "nine" },
};
private readonly Dictionary<int, string> doubleDigitNames = new Dictionary<int, string>
{
{ 1, "ten" },
{ 2, "twenty" },
{ 3, "thirty" },
{ 4, "forty" },
{ 5, "fifty" },
{ 6, "sixty" },
{ 7, "seventy" },
{ 8, "eighty" },
{ 9, "ninety" }
};
private readonly Dictionary<int, string> irregulars = new Dictionary<int, string>
{
{ 10, "ten" },
{ 11, "eleven" },
{ 12, "twelve" },
{ 13, "theirteen" },
{ 14, "forteen" },
{ 15, "fifteen" },
{ 16, "sixteen" },
{ 17, "seventeen" },
{ 18, "eighteen" },
{ 19, "nineteen" }
};
private readonly Dictionary<int, string> powersOfTen = new Dictionary<int, string>
{
{2, "thousand" },
{3, "million" },
{4, "billion" },
{5, "trillion" }
};
public CurrencyConversion()
{
}
public string Convert(decimal input)
{
int cents = GetCents(input);
long dollars = (long)input;
List<TripletBlock> hundredblocks = new List<TripletBlock>();
int blockindex = 1;
while (TrySplitAtPowerOf10(dollars, 3, out long left, out int right))
{
hundredblocks.Add(new TripletBlock(blockindex, right));
dollars = left;
blockindex++;
}
hundredblocks.Add(new TripletBlock(blockindex, (int)dollars));
TripletBlock centsBlock = new TripletBlock(0, cents);
return CombineBlocks(hundredblocks, centsBlock, dollars != 1, cents > 0, cents != 1);
}
private string CombineBlocks(List<TripletBlock> blocks, TripletBlock cents, bool usePluralForDollars, bool displayCents, bool usePluralForCents)
{
StringBuilder builder = new StringBuilder();
var blocksOrdered = blocks.OrderBy(x => -x.Index);
List<string> stringvalues = new List<string>();
foreach (var block in blocksOrdered)
{
stringvalues.AddRange(BlockToStrings(block.Value, includeZero: blocks.Count == 1));
if(powersOfTen.ContainsKey(block.Index))
stringvalues.Add(powersOfTen[block.Index]);
}
if (usePluralForDollars)
stringvalues.Add("dollars");
else
stringvalues.Add("dollar");
if (displayCents)
{
stringvalues.Add("and");
stringvalues.AddRange(BlockToStrings(cents.Value, includeZero: false));
if (usePluralForCents)
stringvalues.Add("cents");
else
stringvalues.Add("cent");
}
return string.Join(" ", stringvalues.ToArray());
}
public int GetCents(decimal input) => (int)((input - (long) input) * 100);
private bool TrySplitAtPowerOf10(long sourceValue, int powersOf10, out long left, out int right)
{
left = sourceValue;
right = 0;
int blockSize = (int)Math.Pow(10, powersOf10);
if (sourceValue < blockSize)
return false;
var block = sourceValue / blockSize * blockSize;
left = block / blockSize;
right = (int)(sourceValue - block);
return true;
}
private bool HandleIrregular10To19(int source, out string name)
{
name = "";
if(source > 9 && source < 20)
{
name = irregulars[source];
return true;
}
else
return false;
}
private List<string> BlockToStrings(int block, bool includeZero)
{
List<string> values = new List<string>();
if (block == 0 && !includeZero)
return values;
bool blockHasNumber = false;
if (TrySplitAtPowerOf10(block, 2, out long left, out int right))
{
values.Add(singleDigitNames[(int)left] + " hundred");
blockHasNumber = true;
}
else
right = block;
if (HandleIrregular10To19(right, out string irregularNumber))
{
values.Add(irregularNumber);
blockHasNumber = true;
}
else
{
string tensResult = "";
if (TrySplitAtPowerOf10(right, 1, out left, out right))
{
tensResult += doubleDigitNames[(int)left];
blockHasNumber = true;
}
else if (right != 0)
right = block;
if (right == 0 && block > 0 && block < 10)
tensResult += singleDigitNames[block];
else if (TrySplitAtPowerOf10(right, 0, out left, out right))
tensResult += "-" + singleDigitNames[(int)left];
else if (right == 0 && blockHasNumber == false)
tensResult += singleDigitNames[0];
if(!string.IsNullOrEmpty(tensResult))
values.Add(tensResult);
}
return values;
}
}
}
| 31.821782 | 153 | 0.478376 | [
"MIT"
] | Jurgler321/CodingTask_Qoniac | CurrencyConversion/CurrencyConversion.Service/CurrencyConversion.cs | 6,430 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using SF.Core.QueryExtensions.SearchExtensions.Helpers.ExpressionBuilders.EqualsExpressionBuilder;
namespace SF.Core.QueryExtensions.SearchExtensions
{
public class QueryableChildSearch<TParent, TChild, TProperty> : QueryableChildSearchBase<TParent, TChild, TProperty>
{
public QueryableChildSearch(IQueryable<TParent> parent, Expression<Func<TParent, IEnumerable<TChild>>>[] childProperties, Expression<Func<TChild, TProperty>>[] properties)
: base(parent, childProperties, properties, null, null)
{
}
public QueryableChildSearch(IQueryable<TParent> parent, Expression<Func<TParent, IEnumerable<TChild>>>[] childProperties, Expression<Func<TChild, TProperty>>[] properties, Expression completeExpression, ParameterExpression childParameter)
: base(parent, childProperties, properties, completeExpression, childParameter)
{
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are equal to any of the supplied <paramref name="values">values</paramref>
/// </summary>
/// <param name="values">A collection of values to match upon</param>
public QueryableChildSearch<TParent, TChild, TProperty> EqualTo(params TProperty[] values)
{
AppendExpression(ExpressionBuilder.EqualsExpression(Properties, values));
return this;
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are greater than any of the supplied <paramref name="value">value</paramref>
/// </summary>
/// <param name="value">A collection of values to match upon</param>
public QueryableChildSearch<TParent, TChild, TProperty> GreaterThan(TProperty value)
{
AppendExpression(ExpressionBuilder.GreaterThanExpression(Properties, value));
return this;
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are greater than or equal to any of the supplied <paramref name="value">value</paramref>
/// </summary>
/// <param name="value">A collection of values to match upon</param>
public QueryableChildSearch<TParent, TChild, TProperty> GreaterThanOrEqualTo(TProperty value)
{
AppendExpression(ExpressionBuilder.GreaterThanOrEqualExpression(Properties, value));
return this;
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are greater than any of the supplied <paramref name="value">value</paramref>
/// </summary>
/// <param name="value">A collection of values to match upon</param>
public QueryableChildSearch<TParent, TChild, TProperty> LessThan(TProperty value)
{
AppendExpression(ExpressionBuilder.LessThanExpression(Properties, value));
return this;
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are greater than any of the supplied <paramref name="value">value</paramref>
/// </summary>
/// <param name="value">A collection of values to match upon</param>
public QueryableChildSearch<TParent, TChild, TProperty> LessThanOrEqualTo(TProperty value)
{
AppendExpression(ExpressionBuilder.LessThanOrEqualExpression(Properties, value));
return this;
}
/// <summary>
/// Retrieves items where any of the defined properties
/// are greater than any of the supplied <paramref name="value">value</paramref>
/// </summary>
public QueryableChildSearch<TParent, TChild, TProperty> Between(TProperty minvalue, TProperty maxValue)
{
AppendExpression(ExpressionBuilder.BetweenExpression(Properties, minvalue, maxValue));
return this;
}
}
} | 46.837209 | 246 | 0.666336 | [
"Apache-2.0"
] | ZHENGZHENGRONG/SF-Boilerplate | SF.Core/Extensions/QueryExtensions/SearchExtensions/QueryableChildSearch.cs | 4,028 | C# |
using SpiceSharp.ParameterSets;
using SpiceSharp.Attributes;
namespace SpiceSharp.Components.Mosfets.Level2
{
/// <summary>
/// Base parameters for a <see cref="Mosfet2Model" />
/// </summary>
/// <seealso cref="Mosfets.ModelParameters" />
[GeneratedParameters]
public partial class ModelParameters : Mosfets.ModelParameters, ICloneable<ModelParameters>
{
/// <summary>
/// Gets the channel length modulation parameter.
/// </summary>
/// <value>
/// The channel length modulation parameter.
/// </value>
[ParameterName("lambda"), ParameterInfo("Channel length modulation")]
[GreaterThanOrEquals(0), Finite]
private GivenParameter<double> _lambda;
/// <summary>
/// Gets or sets the width effect on the threshold voltage.
/// </summary>
/// <value>
/// The width effect on the threshold voltage.
/// </value>
[ParameterName("delta"), ParameterInfo("Width effect on threshold")]
[Finite]
private GivenParameter<double> _narrowFactor;
/// <summary>
/// Gets or sets the critical field for mobility degradation.
/// </summary>
/// <value>
/// The critical field for mobility degradation.
/// </value>
[ParameterName("ucrit"), ParameterInfo("Crit. field for mob. degradation")]
[GreaterThan(0), Finite]
private GivenParameter<double> _criticalField = new GivenParameter<double>(1e4, false);
/// <summary>
/// Gets or sets the critical field exponent for mobility degradation.
/// </summary>
/// <value>
/// The critical field exponent for mobility degradation.
/// </value>
[ParameterName("uexp"), ParameterInfo("Crit. field exp for mob. deg.")]
[GreaterThanOrEquals(0), Finite]
private GivenParameter<double> _criticalFieldExp;
/// <summary>
/// Gets the total channel charge coefficient.
/// </summary>
/// <value>
/// The total channel charge coefficient.
/// </value>
[ParameterName("neff"), ParameterInfo("Total channel charge coeff.")]
[GreaterThan(0), Finite]
private GivenParameter<double> _channelCharge = new GivenParameter<double>(1, false);
/// <summary>
/// Gets the fast surface state density.
/// </summary>
/// <value>
/// The fast surface state density.
/// </value>
[ParameterName("nfs"), ParameterInfo("Fast surface state density")]
[GreaterThanOrEquals(0), Finite]
private GivenParameter<double> _fastSurfaceStateDensity;
/// <summary>
/// Gets the maximum drift velocity.
/// </summary>
/// <value>
/// The maximum drift velocity.
/// </value>
[ParameterName("vmax"), ParameterInfo("Maximum carrier drift velocity")]
[Finite]
private GivenParameter<double> _maxDriftVelocity;
/// <summary>
/// Gets the junction depth.
/// </summary>
/// <value>
/// The junction depth.
/// </value>
[ParameterName("xj"), ParameterInfo("Junction depth")]
[GreaterThanOrEquals(0), Finite]
private GivenParameter<double> _junctionDepth;
/// <inheritdoc/>
ModelParameters ICloneable<ModelParameters>.Clone() => (ModelParameters)Clone();
}
}
| 35.783505 | 95 | 0.594641 | [
"MIT"
] | Neos-Metaverse/SpiceSharp | SpiceSharp/Components/Semiconductors/Mosfets/Level2/ModelParameters.cs | 3,471 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _005FanShop
{
class Program
{
static void Main(string[] args)
{
int budget = int.Parse(Console.ReadLine());
int n = int.Parse(Console.ReadLine());
int articlePrice = 0;
int totalPrice = 0;
for (int i = 1; i <= n; i++)
{
string article = Console.ReadLine();
if(article == "hoodie")
{
articlePrice = 30;
}
else if(article == "keychain")
{
articlePrice = 4;
}
else if (article == "T-shirt")
{
articlePrice = 20;
}
else if (article == "flag")
{
articlePrice = 15;
}
else if (article == "sticker")
{
articlePrice = 1;
}
totalPrice = totalPrice + articlePrice;
}
if (budget >= totalPrice)
{
Console.WriteLine($"You bought {n} items and left with {budget-totalPrice} lv.");
}
else
{
Console.WriteLine($"Not enough money, you need {totalPrice-budget} more lv.");
}
}
}
}
| 25.724138 | 97 | 0.410188 | [
"MIT"
] | kalintsenkov/SoftUni-Software-Engineering | CSharp-Programming-Basics/Exams/ExamJuly2018/005FanShop/Program.cs | 1,494 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace GRA.Data.Model
{
public class DrawingCriterion : Abstract.BaseDbEntity
{
[Required]
public int SiteId { get; set; }
[Required]
public int RelatedSystemId { get; set; }
[Required]
public int RelatedBranchId { get; set; }
[MaxLength(255)]
[Required]
public string Name { get; set; }
public int? ProgramId { get; set; }
public int? SystemId { get; set; }
public virtual System System { get; set; }
public int? BranchId { get; set; }
public virtual Branch Branch { get; set; }
public int? PointsMinimum { get; set; }
public int? PointsMaximum { get; set; }
public DateTime? StartOfPeriod { get; set; }
public DateTime? EndOfPeriod { get; set; }
public bool ReadABook { get; set; }
public bool IncludeAdmin { get; set; }
public bool ExcludePreviousWinners { get; set; }
public ICollection<DrawingCriterionProgram> CriterionPrograms { get; set; }
}
}
| 33.5 | 83 | 0.615452 | [
"MIT"
] | MCLD/greatreadingadventure | src/GRA.Data/Model/DrawingCriterion.cs | 1,141 | C# |
using System;
using PlanetWars.Contracts.AlienContracts.Serialization;
namespace Tools
{
class Program
{
static int Main(string[] args)
{
if (args.Length == 0)
{
Console.Error.WriteLine("No command provided. Use --help.");
return -1;
}
switch (args[0])
{
case "--help":
Console.Error.WriteLine("CosmicTools");
Console.Error.WriteLine(" --help show this help");
Console.Error.WriteLine(" --mod <data>|STDIN modulate to alien format");
Console.Error.WriteLine(" --dem <data>|STDIN demodulate from alien format");
return 0;
case "--mod":
if (args.Length > 1)
return Modulate(args[1]);
else
{
string line;
while ((line = Console.ReadLine()) != null)
{
var exitCode = Modulate(line);
if (exitCode != 0)
return exitCode;
}
return 0;
}
case "--dem":
if (args.Length > 1)
return Demodulate(args[1]);
else
{
string line;
while ((line = Console.ReadLine()) != null)
{
var exitCode = Demodulate(line);
if (exitCode != 0)
return exitCode;
}
return 0;
}
default:
Console.Error.WriteLine($"Unknown command '{args[0]}'. Use --help.");
return -1;
}
}
private static int Modulate(string source)
{
try
{
var data = DataExtensions.ReadFromFormatted(source);
Console.Out.WriteLine(data.AlienEncode());
return 0;
}
catch (FormatException e)
{
Console.Error.WriteLine(e.Message);
return -2;
}
}
private static int Demodulate(string source)
{
try
{
var data = source.AlienDecode();
Console.Out.WriteLine(data.Format());
return 0;
}
catch (FormatException e)
{
Console.Error.WriteLine(e.Message);
return -2;
}
}
}
} | 30.913043 | 100 | 0.372363 | [
"MIT"
] | icfpcontest2020/galaxy | src/Tools/Program.cs | 2,846 | C# |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
namespace CompositionTests.Pages
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class iBooksPage : Page
{
public iBooksPage()
{
this.InitializeComponent();
}
}
}
| 26.548387 | 94 | 0.72661 | [
"MIT"
] | ratishphilip/CompositeHomeScreen | CompositeHomeScreen/Pages/iBooksPage.xaml.cs | 825 | C# |
using System;
using System.Collections.Generic;
namespace Nuve.Lexicon
{
/// <summary>
/// Search through a trie for all the strings which have a given prefix which will be entered character by character.
/// </summary>
/// <typeparam name="V">Order of the value stored in the trie.</typeparam>
class PrefixMatcher<V> : IPrefixMatcher<V> where V : class
{
private TrieNode<V> root;
private TrieNode<V> currMatch;
private string prefixMatched;
/// <summary>
/// Create a matcher, associating it to the trie to search in.
/// </summary>
/// <param name="root">Root node of the trie which the matcher will search in.</param>
public PrefixMatcher(TrieNode<V> root)
{
this.root = root;
this.currMatch = root;
}
/// <inheritdoc/>
public String GetPrefix()
{
return prefixMatched;
}
/// <inheritdoc/>
public void ResetMatch()
{
currMatch = root;
prefixMatched = "";
}
/// <inheritdoc/>
public void BackMatch()
{
if (currMatch != root)
{
currMatch = currMatch.Parent;
prefixMatched = prefixMatched.Substring(0, prefixMatched.Length - 1);
}
}
/// <inheritdoc/>
public char LastMatch()
{
return currMatch.Key;
}
/// <inheritdoc/>
public bool NextMatch(char next)
{
if (currMatch.ContainsKey(next))
{
currMatch = currMatch.GetChild(next);
prefixMatched += next;
return true;
}
return false;
}
/// <inheritdoc/>
public List<V> GetPrefixMatches()
{
return currMatch.PrefixMatches();
}
/// <inheritdoc/>
public bool IsExactMatch()
{
return currMatch.IsTerminater();
}
/// <inheritdoc/>
public V GetExactMatch()
{
return IsExactMatch() ? currMatch.Value : null;
}
}
} | 24.752809 | 121 | 0.507036 | [
"MIT"
] | celikmustafa89/nuve | Nuve/Lexicon/PrefixMatcher.cs | 2,205 | C# |
namespace interfaces_example
{
public enum Marka{
Ford,
Toyota,
Honda
}
public enum Renk{
Beyaz,
Gri
}
} | 12.384615 | 28 | 0.490683 | [
"MIT"
] | bkalenderoglu/Patika_C_Sharp_101 | practices/interfaces_example/Sabitler.cs | 161 | C# |
using Amazon.JSII.Runtime.Deputy;
#pragma warning disable CS0672,CS0809,CS1591
namespace AlibabaCloud.SDK.ROS.CDK.Ros
{
/// <summary>Properties for defining a `ALIYUN::ROS::WaitConditionHandle`.</summary>
[JsiiByValue(fqn: "@alicloud/ros-cdk-ros.WaitConditionHandleProps")]
public class WaitConditionHandleProps : AlibabaCloud.SDK.ROS.CDK.Ros.IWaitConditionHandleProps
{
/// <summary>Property count: There are 3 preconditions that make Count taking effect: 1.Mode is set to Full. 2.Count >= 0. 3.The id of signal is not specified. If so, it will be a self-increasing integer started from 1. For example, the id of the first signal is 1, the id of the second signal is 2, and so on.</summary>
/// <remarks>
/// If Count takes effect, signals with id > Count will be deleted before update.
/// The default value is -1, which means no effect.
/// It is recommended to quote the same value with WaitCondition.Count.
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "count", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"number\"},{\"fqn\":\"@alicloud/ros-cdk-core.IResolvable\"}]}}", isOptional: true)]
public object? Count
{
get;
set;
}
/// <summary>Property mode: If set to Increment, all old signals will be deleted before update.</summary>
/// <remarks>
/// In this mode, WaitCondition.Count should reference an incremental value instead of a full value, such as ScalingGroupEnable.ScalingRuleArisExecuteResultNumberOfAddedInstances.
///
/// If set to Full, no old signal will be deleted unless Count is set. In this mode, WaitCondition.Count should reference a full value, such as the same value with InstanceGroup.MaxAmount. It is recommended to use this mode with Count.
///
/// Default to Full.
/// </remarks>
[JsiiOptional]
[JsiiProperty(name: "mode", typeJson: "{\"union\":{\"types\":[{\"primitive\":\"string\"},{\"fqn\":\"@alicloud/ros-cdk-core.IResolvable\"}]}}", isOptional: true)]
public object? Mode
{
get;
set;
}
}
}
| 52.47619 | 331 | 0.646098 | [
"Apache-2.0"
] | piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit | multiple-languages/dotnet/AlibabaCloud.SDK.ROS.CDK.Ros/AlibabaCloud/SDK/ROS/CDK/Ros/WaitConditionHandleProps.cs | 2,204 | C# |
using Verse;
namespace ArchotechPlus
{
public class HediffCompProperties_Regeneration : HediffCompProperties
{
public HediffCompProperties_Regeneration()
{
compClass = typeof (HediffComp_Regeneration);
}
}
} | 21.416667 | 73 | 0.673152 | [
"MIT"
] | Aneduna/ArchotechPlus | Source/ArchotechPlus/HediffCompProperties_Regeneration.cs | 259 | C# |
using EPiServer.Shell.ObjectEditing;
using System.Collections.Generic;
namespace Foundation.Features.Blocks.CallToActionBlock
{
class BackgroundImageSelectionFactory : ISelectionFactory
{
public IEnumerable<ISelectItem> GetSelections(ExtendedMetadata metadata)
{
return new List<SelectItem>
{
new SelectItem { Text = "Fit width", Value = "image-fit-width" },
new SelectItem { Text = "Fit height", Value = "image-fit-height" },
new SelectItem { Text = "Stretch", Value = "image-stretch" },
new SelectItem { Text = "Tile", Value = "image-tile" },
new SelectItem { Text = "Default", Value = "image-default" }
};
}
}
}
| 36.619048 | 83 | 0.594278 | [
"Apache-2.0"
] | Beerwulf/foundation-mvc-cms | src/Foundation/Features/Blocks/CallToActionBlock/CallToActionBlockSelectionFactory.cs | 771 | C# |
using Core.Entity;
using Core.Queries;
namespace DAL.Queries.GetAllEmployees
{
public class GetAllEmployeesQuery : IQuery<IList<Employee>>
{
}
}
| 15.9 | 63 | 0.72327 | [
"MIT"
] | mustaphash/HomeBuilding | src/DAL/Queries/GetAllEmployees/GetAllEmployeesQuery.cs | 161 | C# |
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. 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.
* 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 TencentCloud.Tdcpg.V20211118.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ModifyClustersAutoRenewFlagResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
public override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}
| 30.568182 | 81 | 0.667658 | [
"Apache-2.0"
] | tencentcloudapi-test/tencentcloud-sdk-dotnet | TencentCloud/Tdcpg/V20211118/Models/ModifyClustersAutoRenewFlagResponse.cs | 1,403 | C# |
using System;
using System.IO;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Bson.IO;
using MongoDB.Bson.Serialization;
using MongoDB.Bson.Serialization.Conventions;
using JsonConvert = Newtonsoft.Json.JsonConvert;
namespace Sining.Tools
{
public static class SerializationHelper
{
private static readonly JsonWriterSettings JsonWriterSettings = new JsonWriterSettings()
{OutputMode = JsonOutputMode.Strict};
public static void Init()
{
// 自动注册IgnoreExtraElements
var conventionPack = new ConventionPack {new IgnoreExtraElementsConvention(true)};
ConventionRegistry.Register("IgnoreExtraElements", conventionPack, type => true);
foreach (var type in AssemblyManagement.AllType.Values.SelectMany(allTypes => allTypes.Where(d =>
!d.IsInterface && typeof(IObject).IsAssignableFrom(d))))
{
BsonClassMap.LookupClassMap(type);
}
}
public static string ToJson<T>(this T t)
{
return JsonConvert.SerializeObject(t);
}
public static byte[] ToBytes<T>(this T t)
{
return t.ToBson();
}
public static object Deserialize(this string json, Type type)
{
return JsonConvert.DeserializeObject(json, type);
}
public static T Deserialize<T>(this string json)
{
return JsonConvert.DeserializeObject<T>(json);
}
public static T Deserialize<T>(this byte[] bytes)
{
return BsonSerializer.Deserialize<T>(bytes);
}
public static T Deserialize<T>(this Stream stream)
{
return BsonSerializer.Deserialize<T>(stream);
}
public static object Deserialize(this Stream stream,Type type)
{
return BsonSerializer.Deserialize(stream, type);
}
public static T Clone<T>(this T t)
{
return Deserialize<T>(ToBytes(t));
}
}
} | 28.819444 | 109 | 0.604819 | [
"MIT"
] | qq362946/Sining | Server/Model/Base/Tools/SerializationHelper.cs | 2,083 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Platformer
{
public interface IPosition
{
Vector2 Position { get; set; }
}
}
| 16.142857 | 38 | 0.707965 | [
"BSD-3-Clause"
] | blackdragon723/RandomPlatformer | Platformer/Platformer/IPosition.cs | 228 | C# |
// Assembly TeamAgile.RegexKit.Common, Version 1.0.0.0
[assembly: System.Reflection.AssemblyVersion("1.0.0.0")]
[assembly: System.Reflection.AssemblyFileVersion("1.0.0.0")]
[assembly: System.Runtime.InteropServices.Guid("b7f6e823-fd10-4e2a-ad8c-4f0afe48ee34")]
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: System.Reflection.AssemblyTrademark("")]
[assembly: System.Reflection.AssemblyCopyright("Copyright \x00a9 2005 Roy Osherove")]
[assembly: System.Reflection.AssemblyProduct("Team Agile Regex Kit")]
[assembly: System.Reflection.AssemblyCompany("Team Agile")]
[assembly: System.Reflection.AssemblyConfiguration("")]
[assembly: System.Reflection.AssemblyDescription("Regex Kit by Team Agile")]
[assembly: System.Reflection.AssemblyTitle("Regex Kit")]
[assembly: System.Diagnostics.Debuggable(System.Diagnostics.DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: System.Runtime.CompilerServices.CompilationRelaxations(8)]
[assembly: System.Runtime.CompilerServices.RuntimeCompatibility(WrapNonExceptionThrows=true)]
| 60.722222 | 129 | 0.806038 | [
"Apache-2.0"
] | UNIVERSAL-IT-SYSTEMS/dotnet-regex-tools | RegexVisualizers/TeamAgile.RegexKit.Common_Source/AssemblyInfo.cs | 1,093 | 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.AzureNative.Cache.V20200601
{
/// <summary>
/// Response to put/get linked server (with properties) for Redis cache.
/// </summary>
[AzureNativeResourceType("azure-native:cache/v20200601:LinkedServer")]
public partial class LinkedServer : Pulumi.CustomResource
{
/// <summary>
/// Fully qualified resourceId of the linked redis cache.
/// </summary>
[Output("linkedRedisCacheId")]
public Output<string> LinkedRedisCacheId { get; private set; } = null!;
/// <summary>
/// Location of the linked redis cache.
/// </summary>
[Output("linkedRedisCacheLocation")]
public Output<string> LinkedRedisCacheLocation { get; private set; } = null!;
/// <summary>
/// Resource name.
/// </summary>
[Output("name")]
public Output<string> Name { get; private set; } = null!;
/// <summary>
/// Terminal state of the link between primary and secondary redis cache.
/// </summary>
[Output("provisioningState")]
public Output<string> ProvisioningState { get; private set; } = null!;
/// <summary>
/// Role of the linked server.
/// </summary>
[Output("serverRole")]
public Output<string> ServerRole { get; private set; } = null!;
/// <summary>
/// Resource type.
/// </summary>
[Output("type")]
public Output<string> Type { get; private set; } = null!;
/// <summary>
/// Create a LinkedServer resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public LinkedServer(string name, LinkedServerArgs args, CustomResourceOptions? options = null)
: base("azure-native:cache/v20200601:LinkedServer", name, args ?? new LinkedServerArgs(), MakeResourceOptions(options, ""))
{
}
private LinkedServer(string name, Input<string> id, CustomResourceOptions? options = null)
: base("azure-native:cache/v20200601:LinkedServer", name, null, MakeResourceOptions(options, id))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
Aliases =
{
new Pulumi.Alias { Type = "azure-nextgen:cache/v20200601:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache/v20170201:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache/v20170201:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache/v20171001:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache/v20171001:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache/v20180301:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache/v20180301:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache/v20190701:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache/v20190701:LinkedServer"},
new Pulumi.Alias { Type = "azure-native:cache/v20201201:LinkedServer"},
new Pulumi.Alias { Type = "azure-nextgen:cache/v20201201:LinkedServer"},
},
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
/// <summary>
/// Get an existing LinkedServer resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static LinkedServer Get(string name, Input<string> id, CustomResourceOptions? options = null)
{
return new LinkedServer(name, id, options);
}
}
public sealed class LinkedServerArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Fully qualified resourceId of the linked redis cache.
/// </summary>
[Input("linkedRedisCacheId", required: true)]
public Input<string> LinkedRedisCacheId { get; set; } = null!;
/// <summary>
/// Location of the linked redis cache.
/// </summary>
[Input("linkedRedisCacheLocation", required: true)]
public Input<string> LinkedRedisCacheLocation { get; set; } = null!;
/// <summary>
/// The name of the linked server that is being added to the Redis cache.
/// </summary>
[Input("linkedServerName")]
public Input<string>? LinkedServerName { get; set; }
/// <summary>
/// The name of the Redis cache.
/// </summary>
[Input("name", required: true)]
public Input<string> Name { get; set; } = null!;
/// <summary>
/// The name of the resource group.
/// </summary>
[Input("resourceGroupName", required: true)]
public Input<string> ResourceGroupName { get; set; } = null!;
/// <summary>
/// Role of the linked server.
/// </summary>
[Input("serverRole", required: true)]
public Input<Pulumi.AzureNative.Cache.V20200601.ReplicationRole> ServerRole { get; set; } = null!;
public LinkedServerArgs()
{
}
}
}
| 42.378205 | 135 | 0.595825 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Cache/V20200601/LinkedServer.cs | 6,611 | C# |
// Copyright 2018 Benjamin Moir
//
// 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.
using System.IO;
using Microsoft.CodeAnalysis.CSharp;
class CompilerContext
{
public BinaryReader Reader { get; }
public BinaryWriter Writer { get; }
public CSharpCompilation Compilation { get; set; }
public CSharpParseOptions ParseOptions { get; set; }
public CompilerContext(BinaryReader reader, BinaryWriter writer)
{
Reader = reader;
Writer = writer;
}
}
| 29.411765 | 75 | 0.723 | [
"Apache-2.0"
] | GamePluginKit/CSharpPluginLoader | CSharpPluginLoader.Compiler/CompilerContext.cs | 1,002 | C# |
using System;
using System.ComponentModel;
using System.Reflection;
using System.Linq;
using System.Diagnostics;
namespace Bindings
{
/// <summary>
/// Creates a binding between the property on the source object and a property on the destination object.
///
/// For one way or two bindings, the destination property will be updated, when the source property changes.
///
/// For two way bindings, the source property also be updated, when the destination property changes.
/// </summary>
public class HierarchicalBinding :IDisposable
{
/// <summary>
/// Create a binding between the property on the source object and a property on the destination object.
/// </summary>
/// <param name="sourceObject">Object to retrieve the source property from.</param>
/// <param name="sourcePath">Name of the source property to retrieve.</param>
/// <param name="destinationObject">Object to set the destination property on.</param>
/// <param name="destinationPath">Name of the destination property to set.</param>
/// <param name="bindingMode">Indicates whether to copy properties to the source object, destination object or both.</param>
public HierarchicalBinding(object sourceObject, string sourcePath, object destinationObject, string destinationPath, BindingModes bindingMode, object fallbackValue=null)
{
if(sourceObject == null)
throw new ArgumentNullException(nameof(sourceObject));
if(destinationObject == null)
throw new ArgumentNullException(nameof(destinationObject));
if(string.IsNullOrEmpty(sourcePath))
throw new ArgumentNullException(nameof(sourcePath));
if(string.IsNullOrEmpty(destinationPath))
throw new ArgumentNullException(nameof(destinationPath));
string[] sourcePathParts = sourcePath.Split('.');
foreach(string sourcePathPart in sourcePathParts)
if(string.IsNullOrEmpty(sourcePathPart))
throw new ArgumentException($"The path \"{sourcePath}\" is not valid.", nameof(sourcePath));
string[] destinationPathParts = destinationPath.Split('.');
foreach(string destinationPathPart in destinationPathParts)
if(string.IsNullOrEmpty(destinationPathPart))
throw new ArgumentException($"The path \"{destinationPath}\" is not valid.", nameof(destinationPath));
SourceObject = sourceObject;
SourcePath = sourcePath;
DestinationObject = destinationObject;
DestinationPath = destinationPath;
BindingMode = bindingMode;
FallbackValue = fallbackValue;
SourceBindingParts = CreateBindingParts(sourcePathParts);
DestinationBindingParts = CreateBindingParts(destinationPathParts);
// Update the chain of source binding parts and remember the resolved property value of the last element in the chain.
object sourceValue = UpdateBindingPartSourceObject(SourceBindingParts[0], sourceObject);
if(sourceValue == UnresolvedValue)
sourceValue = FallbackValue;
UpdateBindingPartSourceObject(DestinationBindingParts[0], destinationObject);
// Copy the value from the source property to the destination property.
UpdatePropertyValue(DestinationBindingParts[DestinationBindingParts.Length-1], sourceValue);
}
#region Types
[DebuggerDisplay("{SourceObject?.GetType().Name,nq}.{PropertyName,nq} = {ResolvedValue}")]
protected class BindingPart
{
#region Properties
public string PropertyName
{
get;
set;
}
public object SourceObject
{
get;
set;
}
public PropertyInfo PropertyInfo
{
get;
set;
}
public DependencyPropertyDescriptor DependencyPropertyDescriptor
{
get;
set;
}
public EventHandler DependencyPropertyEventHandler
{
get;
set;
}
public bool CanGet
{
get;
set;
}
public bool CanSet
{
get;
set;
}
public BindingPart NextBindingPart
{
get;
set;
}
public object ResolvedValue
{
get;
set;
}
#endregion
}
#endregion
#region IDisposable Members
/// <summary>
/// Dispose of the object and its unmanaged resources.
/// </summary>
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
/// <summary>
/// Dispose pattern implementation.
/// </summary>
/// <param name="disposing">True if disposing, false if finalizing.</param>
protected virtual void Dispose(bool disposing)
{
lock(LockObject)
{
if(Disposed)
return;
if(disposing)
{
foreach(BindingPart bindingPart in this.SourceBindingParts)
if(bindingPart.SourceObject is INotifyPropertyChanged previousSourceObject)
previousSourceObject.PropertyChanged -= BindingPart_PropertyChanged;
foreach(BindingPart bindingPart in this.DestinationBindingParts)
if(bindingPart.SourceObject is INotifyPropertyChanged previousSourceObject)
previousSourceObject.PropertyChanged -= BindingPart_PropertyChanged;
SourceBindingParts = null;
DestinationBindingParts = null;
}
Disposed = true;
}
}
/// <summary>
/// Indicates if the object has been disposed.
/// </summary>
public bool Disposed
{
get;
protected set;
}
#endregion
#region Properties
/// <summary>
/// Object to retrieve the source property from.
/// </summary>
public object SourceObject
{
get;
protected set;
}
/// <summary>
/// Name of the source property to retrieve.
/// </summary>
public string SourcePath
{
get;
protected set;
}
/// <summary>
/// Object to set the destination property on.
/// </summary>
public object DestinationObject
{
get;
protected set;
}
/// <summary>
/// Name of the destination property to set.
/// </summary>
public string DestinationPath
{
get;
protected set;
}
/// <summary>
/// Indicates whether to copy properties to the source object, destination object or both.
/// </summary>
public BindingModes BindingMode
{
get;
protected set;
}
/// <summary>
/// Object used to lock methods for use with a single thread at the time.
/// </summary>
protected object LockObject
{
get;
} = new object();
/// <summary>
/// Value to set when binding fails.
/// </summary>
public object FallbackValue
{
get;
protected set;
}
/// <summary>
/// Parts that the source binding is split into.
///
/// The binding parts are created by splitting the <see cref="SourcePath"/> into individual properties, separated by a ".".
/// </summary>
protected BindingPart[] SourceBindingParts
{
get;
set;
}
/// <summary>
/// Parts that the source binding is split into.
///
/// The binding parts are created by splitting the <see cref="DestinationPath"/> into individual properties, separated by a ".".
/// </summary>
protected BindingPart[] DestinationBindingParts
{
get;
set;
}
#endregion
#region Event handlers
/// <summary>
/// Copy the source property value to the destination property, when the source property changes.
/// </summary>
/// <param name="sender">Source object on which the property changed.</param>
/// <param name="e">Name of the property that changed.</param>
protected virtual void BindingPart_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
lock(LockObject)
{
if(Disposed)
return;
// When a binding part match is found, that binding and all bindings following it,
// must be updated, to match the new objects they refer to.
for(int count=0; count<SourceBindingParts.Length; count++)
{
BindingPart bindingPart = SourceBindingParts[count];
// If the property changed event came from the source object of the current binding part.
if(bindingPart.SourceObject == sender && e.PropertyName == bindingPart.PropertyName)
{
// Update the binding part and any binding parts following it.
object resolvedValue = UpdateBindingPart(bindingPart);
if(resolvedValue == ResolvedObjectUnchanged)
return;
if(resolvedValue == UnresolvedValue)
resolvedValue = FallbackValue;
// Copy the value from the source property to the destination property.
UpdatePropertyValue(DestinationBindingParts[DestinationBindingParts.Length-1], resolvedValue);
return;
}
}
// When a binding part match is found, that binding and all bindings following it,
// must be updated, to match the new objects they refer to.
for(int count=0; count<DestinationBindingParts.Length; count++)
{
BindingPart bindingPart = DestinationBindingParts[count];
// If the property changed event came from the source object of the current binding part.
if(bindingPart.SourceObject == sender && e.PropertyName == bindingPart.PropertyName)
{
// Update the binding part and any binding parts following it.
// Retrieve the current value of the last binding part.
object resolvedValue = UpdateBindingPart(bindingPart);
if(resolvedValue == ResolvedObjectUnchanged || resolvedValue == UnresolvedValue)
return;
// Find the last source binding part.
BindingPart finalSourceBindingPart = SourceBindingParts[SourceBindingParts.Length-1];
// If using a two way binding, copy the value from the destination property to the source property.
if(BindingMode == BindingModes.TwoWay)
UpdatePropertyValue(finalSourceBindingPart, resolvedValue);
else
{
BindingPart finalDestinationBindingPart = DestinationBindingParts[DestinationBindingParts.Length-1];
// Retrieve the resolved value from the source binding.
resolvedValue = finalSourceBindingPart?.ResolvedValue;
if(resolvedValue == UnresolvedValue)
resolvedValue = FallbackValue;
UpdatePropertyValue(finalDestinationBindingPart, resolvedValue);
}
return;
}
}
}
}
#endregion
#region Methods
/// <summary>
/// Create an array of binding parts and assign the property name of each created binding part.
///
/// The first created binding part will have its <see cref="BindingPart.SourceObject"/> property set
/// to the specified <paramref name="sourceObject"/>.
/// </summary>
/// <param name="sourceObject">Source object to set on the first created binding part.</param>
/// <param name="pathParts">Property names to assign to the created binding parts.</param>
/// <returns>Created array of binding parts.</returns>
protected virtual BindingPart[] CreateBindingParts(string[] pathParts)
{
BindingPart[] bindingParts = new BindingPart[pathParts.Length];
for(int count=0; count<pathParts.Length; count++)
{
bindingParts[count] = new BindingPart();
bindingParts[count].SourceObject = Uninitialized;
bindingParts[count].PropertyName = pathParts[count];
if(count > 0)
bindingParts[count-1].NextBindingPart = bindingParts[count];
}
return bindingParts;
}
/// <summary>
/// Retrieves the value of the specified binding part.
///
/// If another binding part depends on the value of the specified binding part, the other binding part's
/// source object is updated, resulting in a cascading update of all following binding parts.
///
/// When the chain of binding parts have been updated, the value of the final binding part is returned.
/// </summary>
/// <param name="bindingPart">Binding part who's property has changed.</param>
/// <returns>Resolved value of the final binding part, in the chain of depending binding parts.</returns>
protected object UpdateBindingPart(BindingPart bindingPart)
{
// Retrieve the resolved value of the binding part.
if(bindingPart.SourceObject != null && bindingPart.CanGet)
bindingPart.ResolvedValue = bindingPart.PropertyInfo.GetValue(bindingPart.SourceObject);
else
bindingPart.ResolvedValue = UnresolvedValue;
// If there is a binding part after this one, update the next binding part with a new
// source object and resolve the binding part to be able to retrieve it's property value.
if(bindingPart.NextBindingPart != null)
return UpdateBindingPartSourceObject(bindingPart.NextBindingPart, bindingPart.ResolvedValue);
return bindingPart.ResolvedValue;
}
/// <summary>
/// Update the SourceObject, of the specified binding part, and update any properties and event subscriptions
/// depending on the source object.
/// </summary>
protected virtual object UpdateBindingPartSourceObject(BindingPart bindingPart, object sourceObject)
{
if(Disposed)
throw new ObjectDisposedException(nameof(HierarchicalBinding));
// If the source object hasn't changed, neither have any of the next binding parts.
if(sourceObject == bindingPart.SourceObject)
return ResolvedObjectUnchanged;
// Unsubscribe from property changed events from the current binding part values.
UnsubscribeBindingPart(bindingPart);
// Subscribe to property changed events from the current binding part values.
SubscribeBindingPart(bindingPart, sourceObject);
// If there is a binding part after this one, update the next binding part with a new source object.
if(bindingPart.NextBindingPart != null)
return UpdateBindingPartSourceObject(bindingPart.NextBindingPart, bindingPart.ResolvedValue);
return bindingPart.ResolvedValue;
}
/// <summary>
/// Unsubsribe from property changed events for the specified binding part.
/// </summary>
/// <param name="bindingPart">BindingPart to unsubscribe from.</param>
protected virtual void UnsubscribeBindingPart(BindingPart bindingPart)
{
// If the source object has been updated, unsubscribe from property change notifications
// from the previous source object.
if(bindingPart.SourceObject is INotifyPropertyChanged previousSourceObject)
previousSourceObject.PropertyChanged -= BindingPart_PropertyChanged;
else if(bindingPart.DependencyPropertyDescriptor != null && bindingPart.DependencyPropertyEventHandler != null)
{
bindingPart.DependencyPropertyDescriptor.RemoveValueChanged(bindingPart.SourceObject, bindingPart.DependencyPropertyEventHandler);
bindingPart.DependencyPropertyDescriptor = null;
bindingPart.DependencyPropertyEventHandler = null;
}
}
/// <summary>
/// Subsribe to property changed events from the specified binding part.
/// </summary>
/// <param name="bindingPart">BindingPart to subscribe to.</param>
protected virtual void SubscribeBindingPart(BindingPart bindingPart, object sourceObject)
{
bindingPart.SourceObject = sourceObject;
bindingPart.PropertyInfo = null;
bindingPart.CanGet = false;
bindingPart.CanSet = false;
bindingPart.ResolvedValue = UnresolvedValue;
if(sourceObject != null && sourceObject != UnresolvedValue)
{
Type sourceObjectType = sourceObject.GetType();
PropertyInfo propertyInfo = sourceObjectType.GetProperty(bindingPart.PropertyName);
// If the property exists.
if(propertyInfo != null)
{
MethodInfo getAccessor = propertyInfo.GetGetMethod();
MethodInfo setAccessor = propertyInfo.GetSetMethod();
//bindingPart.SourceObject = sourceObject;
bindingPart.PropertyInfo = propertyInfo;
// Check if the source property can be read.
if(getAccessor != null && getAccessor.IsPublic)
bindingPart.CanGet = true;
else
bindingPart.CanGet = false;
// Check if the source property can be set.
if(setAccessor != null && setAccessor.IsPublic)
bindingPart.CanSet = true;
else
bindingPart.CanSet = false;
// Check that we can subscribe to change events from the source object.
// Unsubscribe from the source object's property changed notification.
if(bindingPart.SourceObject is INotifyPropertyChanged newSourceObject)
newSourceObject.PropertyChanged += BindingPart_PropertyChanged;
else
{
// Determine if the property exists as a dependency property.
PropertyDescriptorCollection propertyDescriptors = TypeDescriptor.GetProperties(bindingPart.SourceObject, new Attribute[] { new PropertyFilterAttribute(PropertyFilterOptions.All)});
foreach(PropertyDescriptor propertyDescriptor in propertyDescriptors)
{
// Skip properties that don't match the property name.
if(propertyDescriptor.Name != bindingPart.PropertyName)
continue;
// Find the property descriptor of the dependency property.
// If the property descriptor isn't found, the property isn't a dependency property.
DependencyPropertyDescriptor dependencyPropertyDescriptor = DependencyPropertyDescriptor.FromProperty(propertyDescriptor);
if(dependencyPropertyDescriptor != null)
{
// Remember the dependency property descriptor and event handler, so we can unsubscribe from them again.
bindingPart.DependencyPropertyDescriptor = dependencyPropertyDescriptor;
bindingPart.DependencyPropertyEventHandler = (sender, unused) => {BindingPart_PropertyChanged(sender, new PropertyChangedEventArgs(bindingPart.PropertyName));};
// Listen to property changed events from the dependency property.
dependencyPropertyDescriptor.AddValueChanged(bindingPart.SourceObject, bindingPart.DependencyPropertyEventHandler);
}
// Don't look for more properties, now that we found the one matching the property name.
break;
}
}
}
}
// Retrieve the resolved value of the binding part.
if(bindingPart.SourceObject != null && bindingPart.CanGet)
bindingPart.ResolvedValue = bindingPart.PropertyInfo.GetValue(bindingPart.SourceObject);
else
bindingPart.ResolvedValue = UnresolvedValue;
}
/// <summary>
/// Update the destination property with the specified value.
/// </summary>
protected virtual void UpdatePropertyValue(BindingPart bindingPart, object value)
{
if(Disposed)
throw new ObjectDisposedException(nameof(HierarchicalBinding));
try
{
// If we can't set values on the binding part.
if(!bindingPart.CanSet)
return;
if(bindingPart.CanGet)
{
// If the destination value is the same as the source value, don't update the property.
object currentValue = bindingPart.PropertyInfo.GetValue(bindingPart.SourceObject);
if(object.Equals(value, currentValue))
return;
}
// Update the binding part value.
bindingPart.PropertyInfo.SetValue(bindingPart.SourceObject, value);
}
catch
{
}
}
#endregion
#region Fields
/// <summary>
/// Value indicates that the binding value hierarchy is unchanged.
/// </summary>
private static readonly object ResolvedObjectUnchanged = new object();
/// <summary>
/// Value indicates that the binding could not be resolved.
///
/// This can happen if the binding element's SourceObject is null or if the binding property's
/// Get accessor isn't available.
/// </summary>
private static readonly object UnresolvedValue = new object();
/// <summary>
/// Value indicates that the source object hasn't been initialized yet.
/// </summary>
/// <remarks>
/// Setting the BindingPart.SourceObject to Uninitialized, when it's first created, ensures
/// that the BindingPart gets updated, the first time <see cref="UpdateBindingPartSourceObject"/> is called.
/// </remarks>
private static readonly object Uninitialized = new object();
#endregion
}
}
| 33.67591 | 187 | 0.718285 | [
"MIT"
] | MortInfinite/DesktopApplicationHelpers | BindingsFramework/HierarchicalBinding.cs | 19,433 | C# |
// -----------------------------------------------------------------------
// <copyright file="MigrationPackBase.cs" company="OSharp开源团队">
// Copyright (c) 2014-2019 OSharp. All rights reserved.
// </copyright>
// <site>http://www.osharp.org</site>
// <last-editor>郭明锋</last-editor>
// <last-date>2019-01-03 0:24</last-date>
// -----------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using OSharp.Core.Options;
using OSharp.Core.Packs;
using OSharp.Entity.Internal;
namespace OSharp.Entity
{
/// <summary>
/// 数据迁移模块基类
/// </summary>
/// <typeparam name="TDbContext">数据上下文类型</typeparam>
public abstract class MigrationPackBase<TDbContext> : OsharpPack
where TDbContext : DbContext
{
/// <summary>
/// 获取 模块级别,级别越小越先启动
/// </summary>
public override PackLevel Level => PackLevel.Framework;
/// <summary>
/// 获取 数据库类型
/// </summary>
protected abstract DatabaseType DatabaseType { get; }
/// <summary>
/// 将模块服务添加到依赖注入服务容器中
/// </summary>
/// <param name="services">依赖注入服务容器</param>
/// <returns></returns>
public override IServiceCollection AddServices(IServiceCollection services)
{
services.AddOsharpDbContext<TDbContext>();
return services;
}
/// <summary>
/// 应用模块服务
/// </summary>
/// <param name="provider">服务提供者</param>
public override void UsePack(IServiceProvider provider)
{
OsharpOptions options = provider.GetOSharpOptions();
OsharpDbContextOptions contextOptions = options.GetDbContextOptions(typeof(TDbContext));
if (contextOptions?.DatabaseType != DatabaseType)
{
return;
}
ILogger logger = provider.GetLogger(GetType());
using (IServiceScope scope = provider.CreateScope())
{
TDbContext context = CreateDbContext(scope.ServiceProvider);
if (context != null && contextOptions.AutoMigrationEnabled)
{
context.CheckAndMigration(logger);
DbContextModelCache modelCache = scope.ServiceProvider.GetService<DbContextModelCache>();
modelCache?.Set(context.GetType(), context.Model);
}
}
//初始化种子数据,只初始化当前上下文的种子数据
IEntityManager entityManager = provider.GetService<IEntityManager>();
Type[] entityTypes = entityManager.GetEntityRegisters(typeof(TDbContext)).Select(m => m.EntityType).Distinct().ToArray();
IEnumerable<ISeedDataInitializer> seedDataInitializers = provider.GetServices<ISeedDataInitializer>()
.Where(m => entityTypes.Contains(m.EntityType)).OrderBy(m => m.Order);
foreach (ISeedDataInitializer initializer in seedDataInitializers)
{
initializer.Initialize();
}
IsEnabled = true;
}
/// <summary>
/// 重写实现获取数据上下文实例
/// </summary>
/// <param name="scopedProvider">服务提供者</param>
/// <returns></returns>
protected abstract TDbContext CreateDbContext(IServiceProvider scopedProvider);
}
} | 35.806122 | 133 | 0.581647 | [
"Apache-2.0"
] | 1051324354/osharp | src/OSharp.EntityFrameworkCore/MigrationPackBase.cs | 3,751 | C# |
/*
Copyright (c) 2018-2020 Rossmann-Engineering
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.
*/
using System;
using System.Net.Sockets;
using System.Net;
using System.IO.Ports;
using System.Reflection;
using System.Text;
using System.Collections.Generic;
using Pinknose.DistributedWorkers.XBee.Serial;
using XBeeLibrary.Windows;
namespace EasyModbus
{
/// <summary>
/// Implements a ModbusClient.
/// </summary>
public partial class ModbusClient
{
public enum RegisterOrder { LowHigh = 0, HighLow = 1 };
private bool debug = false;
private uint transactionIdentifierInternal = 0;
private byte[] transactionIdentifier = new byte[2];
private byte[] protocolIdentifier = new byte[2];
private byte[] crc = new byte[2];
private byte[] length = new byte[2];
private byte unitIdentifier = 0x01;
private byte functionCode;
private byte[] startingAddress = new byte[2];
private byte[] quantity = new byte[2];
private int portOut;
private int connectTimeout = 1000;
public byte[] receiveData;
public byte[] sendData;
private XBeeRemoteSerialPort serialport;
private bool connected = false;
public int NumberOfRetries { get; set; } = 3;
private int countRetries = 0;
public delegate void ReceiveDataChangedHandler(object sender);
public event ReceiveDataChangedHandler ReceiveDataChanged;
public delegate void SendDataChangedHandler(object sender);
public event SendDataChangedHandler SendDataChanged;
public delegate void ConnectedChangedHandler(object sender);
public event ConnectedChangedHandler ConnectedChanged;
NetworkStream stream;
/// <summary>
/// Constructor which determines the Serial-Port
/// </summary>
/// <param name="serialPort">Serial-Port Name e.G. "COM1"</param>
public ModbusClient(XBeeRemoteSerialPort xBeeRemoteSerialPort)
{
//if (debug) StoreLogData.Instance.Store("EasyModbus library initialized for Modbus-RTU, COM-Port: " + serialPort, System.DateTime.Now);
#if (!COMMERCIAL)
Console.WriteLine("EasyModbus Client Library Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
Console.WriteLine("Copyright (c) Stefan Rossmann Engineering Solutions");
Console.WriteLine();
#endif
this.serialport = xBeeRemoteSerialPort;
serialport.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler);
}
/// <summary>
/// Parameterless constructor
/// </summary>
public ModbusClient()
{
//if (debug) StoreLogData.Instance.Store("EasyModbus library initialized for Modbus-TCP", System.DateTime.Now);
#if (!COMMERCIAL)
Console.WriteLine("EasyModbus Client Library Version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString());
Console.WriteLine("Copyright (c) Stefan Rossmann Engineering Solutions");
Console.WriteLine();
#endif
}
/// <summary>
/// Establish connection to Master device in case of Modbus TCP. Opens COM-Port in case of Modbus RTU
/// </summary>
public void Connect()
{
if (serialport != null)
{
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("Open Serial port " + serialport.PortName, System.DateTime.Now);
//serialport.Open();
connected = true;
}
if (ConnectedChanged != null)
try
{
ConnectedChanged(this);
}
catch
{
}
return;
}
if (ConnectedChanged != null)
try
{
ConnectedChanged(this);
}
catch
{
}
}
/// <summary>
/// Converts two ModbusRegisters to Float - Example: EasyModbus.ModbusClient.ConvertRegistersToFloat(modbusClient.ReadHoldingRegisters(19,2))
/// </summary>
/// <param name="registers">Two Register values received from Modbus</param>
/// <returns>Connected float value</returns>
public static float ConvertRegistersToFloat(int[] registers)
{
if (registers.Length != 2)
throw new ArgumentException("Input Array length invalid - Array langth must be '2'");
int highRegister = registers[1];
int lowRegister = registers[0];
byte[] highRegisterBytes = BitConverter.GetBytes(highRegister);
byte[] lowRegisterBytes = BitConverter.GetBytes(lowRegister);
byte[] floatBytes = {
lowRegisterBytes[0],
lowRegisterBytes[1],
highRegisterBytes[0],
highRegisterBytes[1]
};
return BitConverter.ToSingle(floatBytes, 0);
}
/// <summary>
/// Converts two ModbusRegisters to Float, Registers can by swapped
/// </summary>
/// <param name="registers">Two Register values received from Modbus</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Connected float value</returns>
public static float ConvertRegistersToFloat(int[] registers, RegisterOrder registerOrder)
{
int[] swappedRegisters = { registers[0], registers[1] };
if (registerOrder == RegisterOrder.HighLow)
swappedRegisters = new int[] { registers[1], registers[0] };
return ConvertRegistersToFloat(swappedRegisters);
}
/// <summary>
/// Converts two ModbusRegisters to 32 Bit Integer value
/// </summary>
/// <param name="registers">Two Register values received from Modbus</param>
/// <returns>Connected 32 Bit Integer value</returns>
public static Int32 ConvertRegistersToInt(int[] registers)
{
if (registers.Length != 2)
throw new ArgumentException("Input Array length invalid - Array langth must be '2'");
int highRegister = registers[1];
int lowRegister = registers[0];
byte[] highRegisterBytes = BitConverter.GetBytes(highRegister);
byte[] lowRegisterBytes = BitConverter.GetBytes(lowRegister);
byte[] doubleBytes = {
lowRegisterBytes[0],
lowRegisterBytes[1],
highRegisterBytes[0],
highRegisterBytes[1]
};
return BitConverter.ToInt32(doubleBytes, 0);
}
/// <summary>
/// Converts two ModbusRegisters to 32 Bit Integer Value - Registers can be swapped
/// </summary>
/// <param name="registers">Two Register values received from Modbus</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Connecteds 32 Bit Integer value</returns>
public static Int32 ConvertRegistersToInt(int[] registers, RegisterOrder registerOrder)
{
int[] swappedRegisters = { registers[0], registers[1] };
if (registerOrder == RegisterOrder.HighLow)
swappedRegisters = new int[] { registers[1], registers[0] };
return ConvertRegistersToInt(swappedRegisters);
}
/// <summary>
/// Convert four 16 Bit Registers to 64 Bit Integer value Register Order "LowHigh": Reg0: Low Word.....Reg3: High Word, "HighLow": Reg0: High Word.....Reg3: Low Word
/// </summary>
/// <param name="registers">four Register values received from Modbus</param>
/// <returns>64 bit value</returns>
public static Int64 ConvertRegistersToLong(int[] registers)
{
if (registers.Length != 4)
throw new ArgumentException("Input Array length invalid - Array langth must be '4'");
int highRegister = registers[3];
int highLowRegister = registers[2];
int lowHighRegister = registers[1];
int lowRegister = registers[0];
byte[] highRegisterBytes = BitConverter.GetBytes(highRegister);
byte[] highLowRegisterBytes = BitConverter.GetBytes(highLowRegister);
byte[] lowHighRegisterBytes = BitConverter.GetBytes(lowHighRegister);
byte[] lowRegisterBytes = BitConverter.GetBytes(lowRegister);
byte[] longBytes = {
lowRegisterBytes[0],
lowRegisterBytes[1],
lowHighRegisterBytes[0],
lowHighRegisterBytes[1],
highLowRegisterBytes[0],
highLowRegisterBytes[1],
highRegisterBytes[0],
highRegisterBytes[1]
};
return BitConverter.ToInt64(longBytes, 0);
}
/// <summary>
/// Convert four 16 Bit Registers to 64 Bit Integer value - Registers can be swapped
/// </summary>
/// <param name="registers">four Register values received from Modbus</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Connected 64 Bit Integer value</returns>
public static Int64 ConvertRegistersToLong(int[] registers, RegisterOrder registerOrder)
{
if (registers.Length != 4)
throw new ArgumentException("Input Array length invalid - Array langth must be '4'");
int[] swappedRegisters = { registers[0], registers[1], registers[2], registers[3] };
if (registerOrder == RegisterOrder.HighLow)
swappedRegisters = new int[] { registers[3], registers[2], registers[1], registers[0] };
return ConvertRegistersToLong(swappedRegisters);
}
/// <summary>
/// Convert four 16 Bit Registers to 64 Bit double prec. value Register Order "LowHigh": Reg0: Low Word.....Reg3: High Word, "HighLow": Reg0: High Word.....Reg3: Low Word
/// </summary>
/// <param name="registers">four Register values received from Modbus</param>
/// <returns>64 bit value</returns>
public static double ConvertRegistersToDouble(int[] registers)
{
if (registers.Length != 4)
throw new ArgumentException("Input Array length invalid - Array langth must be '4'");
int highRegister = registers[3];
int highLowRegister = registers[2];
int lowHighRegister = registers[1];
int lowRegister = registers[0];
byte[] highRegisterBytes = BitConverter.GetBytes(highRegister);
byte[] highLowRegisterBytes = BitConverter.GetBytes(highLowRegister);
byte[] lowHighRegisterBytes = BitConverter.GetBytes(lowHighRegister);
byte[] lowRegisterBytes = BitConverter.GetBytes(lowRegister);
byte[] longBytes = {
lowRegisterBytes[0],
lowRegisterBytes[1],
lowHighRegisterBytes[0],
lowHighRegisterBytes[1],
highLowRegisterBytes[0],
highLowRegisterBytes[1],
highRegisterBytes[0],
highRegisterBytes[1]
};
return BitConverter.ToDouble(longBytes, 0);
}
/// <summary>
/// Convert four 16 Bit Registers to 64 Bit double prec. value - Registers can be swapped
/// </summary>
/// <param name="registers">four Register values received from Modbus</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Connected double prec. float value</returns>
public static double ConvertRegistersToDouble(int[] registers, RegisterOrder registerOrder)
{
if (registers.Length != 4)
throw new ArgumentException("Input Array length invalid - Array langth must be '4'");
int[] swappedRegisters = { registers[0], registers[1], registers[2], registers[3] };
if (registerOrder == RegisterOrder.HighLow)
swappedRegisters = new int[] { registers[3], registers[2], registers[1], registers[0] };
return ConvertRegistersToDouble(swappedRegisters);
}
/// <summary>
/// Converts float to two ModbusRegisters - Example: modbusClient.WriteMultipleRegisters(24, EasyModbus.ModbusClient.ConvertFloatToTwoRegisters((float)1.22));
/// </summary>
/// <param name="floatValue">Float value which has to be converted into two registers</param>
/// <returns>Register values</returns>
public static int[] ConvertFloatToRegisters(float floatValue)
{
byte[] floatBytes = BitConverter.GetBytes(floatValue);
byte[] highRegisterBytes =
{
floatBytes[2],
floatBytes[3],
0,
0
};
byte[] lowRegisterBytes =
{
floatBytes[0],
floatBytes[1],
0,
0
};
int[] returnValue =
{
BitConverter.ToInt32(lowRegisterBytes,0),
BitConverter.ToInt32(highRegisterBytes,0)
};
return returnValue;
}
/// <summary>
/// Converts float to two ModbusRegisters Registers - Registers can be swapped
/// </summary>
/// <param name="floatValue">Float value which has to be converted into two registers</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Register values</returns>
public static int[] ConvertFloatToRegisters(float floatValue, RegisterOrder registerOrder)
{
int[] registerValues = ConvertFloatToRegisters(floatValue);
int[] returnValue = registerValues;
if (registerOrder == RegisterOrder.HighLow)
returnValue = new Int32[] { registerValues[1], registerValues[0] };
return returnValue;
}
/// <summary>
/// Converts 32 Bit Value to two ModbusRegisters
/// </summary>
/// <param name="intValue">Int value which has to be converted into two registers</param>
/// <returns>Register values</returns>
public static int[] ConvertIntToRegisters(Int32 intValue)
{
byte[] doubleBytes = BitConverter.GetBytes(intValue);
byte[] highRegisterBytes =
{
doubleBytes[2],
doubleBytes[3],
0,
0
};
byte[] lowRegisterBytes =
{
doubleBytes[0],
doubleBytes[1],
0,
0
};
int[] returnValue =
{
BitConverter.ToInt32(lowRegisterBytes,0),
BitConverter.ToInt32(highRegisterBytes,0)
};
return returnValue;
}
/// <summary>
/// Converts 32 Bit Value to two ModbusRegisters Registers - Registers can be swapped
/// </summary>
/// <param name="intValue">Double value which has to be converted into two registers</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Register values</returns>
public static int[] ConvertIntToRegisters(Int32 intValue, RegisterOrder registerOrder)
{
int[] registerValues = ConvertIntToRegisters(intValue);
int[] returnValue = registerValues;
if (registerOrder == RegisterOrder.HighLow)
returnValue = new Int32[] { registerValues[1], registerValues[0] };
return returnValue;
}
/// <summary>
/// Converts 64 Bit Value to four ModbusRegisters
/// </summary>
/// <param name="longValue">long value which has to be converted into four registers</param>
/// <returns>Register values</returns>
public static int[] ConvertLongToRegisters(Int64 longValue)
{
byte[] longBytes = BitConverter.GetBytes(longValue);
byte[] highRegisterBytes =
{
longBytes[6],
longBytes[7],
0,
0
};
byte[] highLowRegisterBytes =
{
longBytes[4],
longBytes[5],
0,
0
};
byte[] lowHighRegisterBytes =
{
longBytes[2],
longBytes[3],
0,
0
};
byte[] lowRegisterBytes =
{
longBytes[0],
longBytes[1],
0,
0
};
int[] returnValue =
{
BitConverter.ToInt32(lowRegisterBytes,0),
BitConverter.ToInt32(lowHighRegisterBytes,0),
BitConverter.ToInt32(highLowRegisterBytes,0),
BitConverter.ToInt32(highRegisterBytes,0)
};
return returnValue;
}
/// <summary>
/// Converts 64 Bit Value to four ModbusRegisters - Registers can be swapped
/// </summary>
/// <param name="longValue">long value which has to be converted into four registers</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Register values</returns>
public static int[] ConvertLongToRegisters(Int64 longValue, RegisterOrder registerOrder)
{
int[] registerValues = ConvertLongToRegisters(longValue);
int[] returnValue = registerValues;
if (registerOrder == RegisterOrder.HighLow)
returnValue = new int[] { registerValues[3], registerValues[2], registerValues[1], registerValues[0] };
return returnValue;
}
/// <summary>
/// Converts 64 Bit double prec Value to four ModbusRegisters
/// </summary>
/// <param name="doubleValue">double value which has to be converted into four registers</param>
/// <returns>Register values</returns>
public static int[] ConvertDoubleToRegisters(double doubleValue)
{
byte[] doubleBytes = BitConverter.GetBytes(doubleValue);
byte[] highRegisterBytes =
{
doubleBytes[6],
doubleBytes[7],
0,
0
};
byte[] highLowRegisterBytes =
{
doubleBytes[4],
doubleBytes[5],
0,
0
};
byte[] lowHighRegisterBytes =
{
doubleBytes[2],
doubleBytes[3],
0,
0
};
byte[] lowRegisterBytes =
{
doubleBytes[0],
doubleBytes[1],
0,
0
};
int[] returnValue =
{
BitConverter.ToInt32(lowRegisterBytes,0),
BitConverter.ToInt32(lowHighRegisterBytes,0),
BitConverter.ToInt32(highLowRegisterBytes,0),
BitConverter.ToInt32(highRegisterBytes,0)
};
return returnValue;
}
/// <summary>
/// Converts 64 Bit double prec. Value to four ModbusRegisters - Registers can be swapped
/// </summary>
/// <param name="doubleValue">double value which has to be converted into four registers</param>
/// <param name="registerOrder">Desired Word Order (Low Register first or High Register first</param>
/// <returns>Register values</returns>
public static int[] ConvertDoubleToRegisters(double doubleValue, RegisterOrder registerOrder)
{
int[] registerValues = ConvertDoubleToRegisters(doubleValue);
int[] returnValue = registerValues;
if (registerOrder == RegisterOrder.HighLow)
returnValue = new int[] { registerValues[3], registerValues[2], registerValues[1], registerValues[0] };
return returnValue;
}
/// <summary>
/// Converts 16 - Bit Register values to String
/// </summary>
/// <param name="registers">Register array received via Modbus</param>
/// <param name="offset">First Register containing the String to convert</param>
/// <param name="stringLength">number of characters in String (must be even)</param>
/// <returns>Converted String</returns>
public static string ConvertRegistersToString(int[] registers, int offset, int stringLength)
{
byte[] result = new byte[stringLength];
byte[] registerResult = new byte[2];
for (int i = 0; i < stringLength / 2; i++)
{
registerResult = BitConverter.GetBytes(registers[offset + i]);
result[i * 2] = registerResult[0];
result[i * 2 + 1] = registerResult[1];
}
return System.Text.Encoding.Default.GetString(result);
}
/// <summary>
/// Converts a String to 16 - Bit Registers
/// </summary>
/// <param name="registers">Register array received via Modbus</param>
/// <returns>Converted String</returns>
public static int[] ConvertStringToRegisters(string stringToConvert)
{
byte[] array = System.Text.Encoding.ASCII.GetBytes(stringToConvert);
int[] returnarray = new int[stringToConvert.Length / 2 + stringToConvert.Length % 2];
for (int i = 0; i < returnarray.Length; i++)
{
returnarray[i] = array[i * 2];
if (i * 2 + 1 < array.Length)
{
returnarray[i] = returnarray[i] | ((int)array[i * 2 + 1] << 8);
}
}
return returnarray;
}
/// <summary>
/// Calculates the CRC16 for Modbus-RTU
/// </summary>
/// <param name="data">Byte buffer to send</param>
/// <param name="numberOfBytes">Number of bytes to calculate CRC</param>
/// <param name="startByte">First byte in buffer to start calculating CRC</param>
public static UInt16 calculateCRC(byte[] data, UInt16 numberOfBytes, int startByte)
{
byte[] auchCRCHi = {
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01,
0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01,
0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01,
0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01,
0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81,
0x40
};
byte[] auchCRCLo = {
0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2, 0xC6, 0x06, 0x07, 0xC7, 0x05, 0xC5, 0xC4,
0x04, 0xCC, 0x0C, 0x0D, 0xCD, 0x0F, 0xCF, 0xCE, 0x0E, 0x0A, 0xCA, 0xCB, 0x0B, 0xC9, 0x09,
0x08, 0xC8, 0xD8, 0x18, 0x19, 0xD9, 0x1B, 0xDB, 0xDA, 0x1A, 0x1E, 0xDE, 0xDF, 0x1F, 0xDD,
0x1D, 0x1C, 0xDC, 0x14, 0xD4, 0xD5, 0x15, 0xD7, 0x17, 0x16, 0xD6, 0xD2, 0x12, 0x13, 0xD3,
0x11, 0xD1, 0xD0, 0x10, 0xF0, 0x30, 0x31, 0xF1, 0x33, 0xF3, 0xF2, 0x32, 0x36, 0xF6, 0xF7,
0x37, 0xF5, 0x35, 0x34, 0xF4, 0x3C, 0xFC, 0xFD, 0x3D, 0xFF, 0x3F, 0x3E, 0xFE, 0xFA, 0x3A,
0x3B, 0xFB, 0x39, 0xF9, 0xF8, 0x38, 0x28, 0xE8, 0xE9, 0x29, 0xEB, 0x2B, 0x2A, 0xEA, 0xEE,
0x2E, 0x2F, 0xEF, 0x2D, 0xED, 0xEC, 0x2C, 0xE4, 0x24, 0x25, 0xE5, 0x27, 0xE7, 0xE6, 0x26,
0x22, 0xE2, 0xE3, 0x23, 0xE1, 0x21, 0x20, 0xE0, 0xA0, 0x60, 0x61, 0xA1, 0x63, 0xA3, 0xA2,
0x62, 0x66, 0xA6, 0xA7, 0x67, 0xA5, 0x65, 0x64, 0xA4, 0x6C, 0xAC, 0xAD, 0x6D, 0xAF, 0x6F,
0x6E, 0xAE, 0xAA, 0x6A, 0x6B, 0xAB, 0x69, 0xA9, 0xA8, 0x68, 0x78, 0xB8, 0xB9, 0x79, 0xBB,
0x7B, 0x7A, 0xBA, 0xBE, 0x7E, 0x7F, 0xBF, 0x7D, 0xBD, 0xBC, 0x7C, 0xB4, 0x74, 0x75, 0xB5,
0x77, 0xB7, 0xB6, 0x76, 0x72, 0xB2, 0xB3, 0x73, 0xB1, 0x71, 0x70, 0xB0, 0x50, 0x90, 0x91,
0x51, 0x93, 0x53, 0x52, 0x92, 0x96, 0x56, 0x57, 0x97, 0x55, 0x95, 0x94, 0x54, 0x9C, 0x5C,
0x5D, 0x9D, 0x5F, 0x9F, 0x9E, 0x5E, 0x5A, 0x9A, 0x9B, 0x5B, 0x99, 0x59, 0x58, 0x98, 0x88,
0x48, 0x49, 0x89, 0x4B, 0x8B, 0x8A, 0x4A, 0x4E, 0x8E, 0x8F, 0x4F, 0x8D, 0x4D, 0x4C, 0x8C,
0x44, 0x84, 0x85, 0x45, 0x87, 0x47, 0x46, 0x86, 0x82, 0x42, 0x43, 0x83, 0x41, 0x81, 0x80,
0x40
};
UInt16 usDataLen = numberOfBytes;
byte uchCRCHi = 0xFF;
byte uchCRCLo = 0xFF;
int i = 0;
int uIndex;
while (usDataLen > 0)
{
usDataLen--;
if ((i + startByte) < data.Length)
{
uIndex = uchCRCLo ^ data[i + startByte];
uchCRCLo = (byte)(uchCRCHi ^ auchCRCHi[uIndex]);
uchCRCHi = auchCRCLo[uIndex];
}
i++;
}
return (UInt16)((UInt16)uchCRCHi << 8 | uchCRCLo);
}
private bool dataReceived = false;
private bool receiveActive = false;
private byte[] readBuffer = new byte[256];
private int bytesToRead = 0;
private int akjjjctualPositionToRead = 0;
DateTime dateTimeLastRead;
/*
private void DataReceivedHandler(object sender,
SerialDataReceivedEventArgs e)
{
long ticksWait = TimeSpan.TicksPerMillisecond * 2000;
SerialPort sp = (SerialPort)sender;
if (bytesToRead == 0 || sp.BytesToRead == 0)
{
actualPositionToRead = 0;
sp.DiscardInBuffer();
dataReceived = false;
receiveActive = false;
return;
}
if (actualPositionToRead == 0 && !dataReceived)
readBuffer = new byte[256];
//if ((DateTime.Now.Ticks - dateTimeLastRead.Ticks) > ticksWait)
//{
// readBuffer = new byte[256];
// actualPositionToRead = 0;
//}
int numberOfBytesInBuffer = sp.BytesToRead;
sp.Read(readBuffer, actualPositionToRead, ((numberOfBytesInBuffer + actualPositionToRead) > readBuffer.Length) ? 0 : numberOfBytesInBuffer);
actualPositionToRead = actualPositionToRead + numberOfBytesInBuffer;
//sp.DiscardInBuffer();
//if (DetectValidModbusFrame(readBuffer, (actualPositionToRead < readBuffer.Length) ? actualPositionToRead : readBuffer.Length) | bytesToRead <= actualPositionToRead)
if (actualPositionToRead >= bytesToRead)
{
dataReceived = true;
bytesToRead = 0;
actualPositionToRead = 0;
if (debug) StoreLogData.Instance.Store("Received Serial-Data: " + BitConverter.ToString(readBuffer), System.DateTime.Now);
}
//dateTimeLastRead = DateTime.Now;
}
*/
private void DataReceivedHandler(object sender,
SerialDataReceivedEventArgs e)
{
serialport.DataReceived -= DataReceivedHandler;
//while (receiveActive | dataReceived)
// System.Threading.Thread.Sleep(10);
receiveActive = true;
const long ticksWait = TimeSpan.TicksPerMillisecond * 2000;//((40*10000000) / this.baudRate);
SerialPort sp = (SerialPort)sender;
if (bytesToRead == 0)
{
sp.DiscardInBuffer();
receiveActive = false;
serialport.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler);
return;
}
readBuffer = new byte[256];
int numbytes = 0;
int actualPositionToRead = 0;
DateTime dateTimeLastRead = DateTime.Now;
do
{
try
{
dateTimeLastRead = DateTime.Now;
while ((sp.BytesToRead) == 0)
{
System.Threading.Thread.Sleep(10);
if ((DateTime.Now.Ticks - dateTimeLastRead.Ticks) > ticksWait)
break;
}
numbytes = sp.BytesToRead;
byte[] rxbytearray = new byte[numbytes];
sp.Read(rxbytearray, 0, numbytes);
Array.Copy(rxbytearray, 0, readBuffer, actualPositionToRead, (actualPositionToRead + rxbytearray.Length) <= bytesToRead ? rxbytearray.Length : bytesToRead - actualPositionToRead);
actualPositionToRead = actualPositionToRead + rxbytearray.Length;
}
catch (Exception)
{
}
if (bytesToRead <= actualPositionToRead)
break;
if (DetectValidModbusFrame(readBuffer, (actualPositionToRead < readBuffer.Length) ? actualPositionToRead : readBuffer.Length) | bytesToRead <= actualPositionToRead)
break;
}
while ((DateTime.Now.Ticks - dateTimeLastRead.Ticks) < ticksWait);
//10.000 Ticks in 1 ms
receiveData = new byte[actualPositionToRead];
Array.Copy(readBuffer, 0, receiveData, 0, (actualPositionToRead < readBuffer.Length) ? actualPositionToRead : readBuffer.Length);
//if (debug) StoreLogData.Instance.Store("Received Serial-Data: " + BitConverter.ToString(readBuffer), System.DateTime.Now);
bytesToRead = 0;
dataReceived = true;
receiveActive = false;
serialport.DataReceived += new SerialDataReceivedEventHandler(DataReceivedHandler);
if (ReceiveDataChanged != null)
{
ReceiveDataChanged(this);
}
//sp.DiscardInBuffer();
}
public static bool DetectValidModbusFrame(byte[] readBuffer, int length)
{
// minimum length 6 bytes
if (length < 6)
return false;
//SlaveID correct
if ((readBuffer[0] < 1) | (readBuffer[0] > 247))
return false;
//CRC correct?
byte[] crc = new byte[2];
crc = BitConverter.GetBytes(calculateCRC(readBuffer, (ushort)(length - 2), 0));
if (crc[0] != readBuffer[length - 2] | crc[1] != readBuffer[length - 1])
return false;
return true;
}
/// <summary>
/// Read Discrete Inputs from Server device (FC2).
/// </summary>
/// <param name="startingAddress">First discrete input to read</param>
/// <param name="quantity">Number of discrete Inputs to read</param>
/// <returns>Boolean Array which contains the discrete Inputs</returns>
public bool[] ReadDiscreteInputs(int startingAddress, int quantity)
{
//if (debug) StoreLogData.Instance.Store("FC2 (Read Discrete Inputs from Master device), StartingAddress: " + startingAddress + ", Quantity: " + quantity, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
if (startingAddress > 65535 | quantity > 2000)
{
//if (debug) StoreLogData.Instance.Store("ArgumentException Throwed", System.DateTime.Now);
throw new ArgumentException("Starting address must be 0 - 65535; quantity must be 0 - 2000");
}
bool[] response;
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x02;
this.startingAddress = BitConverter.GetBytes(startingAddress);
this.quantity = BitConverter.GetBytes(quantity);
Byte[] data = new byte[]
{
this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
this.quantity[1],
this.quantity[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
if (quantity % 8 == 0)
bytesToRead = 5 + quantity / 8;
else
bytesToRead = 6 + quantity / 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x82 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x82 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x82 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x82 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data[8] + 3), 6));
if ((crc[0] != data[data[8] + 9] | crc[1] != data[data[8] + 10]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
return ReadDiscreteInputs(startingAddress, quantity);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
return ReadDiscreteInputs(startingAddress, quantity);
}
}
}
response = new bool[quantity];
for (int i = 0; i < quantity; i++)
{
int intData = data[9 + i / 8];
int mask = Convert.ToInt32(Math.Pow(2, (i % 8)));
response[i] = Convert.ToBoolean((intData & mask) / mask);
}
return (response);
}
/// <summary>
/// Read Coils from Server device (FC1).
/// </summary>
/// <param name="startingAddress">First coil to read</param>
/// <param name="quantity">Numer of coils to read</param>
/// <returns>Boolean Array which contains the coils</returns>
public bool[] ReadCoils(int startingAddress, int quantity)
{
//if (debug) StoreLogData.Instance.Store("FC1 (Read Coils from Master device), StartingAddress: " + startingAddress + ", Quantity: " + quantity, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
if (startingAddress > 65535 | quantity > 2000)
{
//if (debug) StoreLogData.Instance.Store("ArgumentException Throwed", System.DateTime.Now);
throw new ArgumentException("Starting address must be 0 - 65535; quantity must be 0 - 2000");
}
bool[] response;
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x01;
this.startingAddress = BitConverter.GetBytes(startingAddress);
this.quantity = BitConverter.GetBytes(quantity);
Byte[] data = new byte[]{
this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
this.quantity[1],
this.quantity[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
if (quantity % 8 == 0)
bytesToRead = 5 + quantity / 8;
else
bytesToRead = 6 + quantity / 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x81 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x81 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x81 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x81 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data[8] + 3), 6));
if ((crc[0] != data[data[8] + 9] | crc[1] != data[data[8] + 10]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
return ReadCoils(startingAddress, quantity);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
return ReadCoils(startingAddress, quantity);
}
}
}
response = new bool[quantity];
for (int i = 0; i < quantity; i++)
{
int intData = data[9 + i / 8];
int mask = Convert.ToInt32(Math.Pow(2, (i % 8)));
response[i] = Convert.ToBoolean((intData & mask) / mask);
}
return (response);
}
/// <summary>
/// Read Holding Registers from Master device (FC3).
/// </summary>
/// <param name="startingAddress">First holding register to be read</param>
/// <param name="quantity">Number of holding registers to be read</param>
/// <returns>Int Array which contains the holding registers</returns>
public int[] ReadHoldingRegisters(int startingAddress, int quantity)
{
//if (debug) StoreLogData.Instance.Store("FC3 (Read Holding Registers from Master device), StartingAddress: " + startingAddress + ", Quantity: " + quantity, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
if (startingAddress > 65535 | quantity > 125)
{
//if (debug) StoreLogData.Instance.Store("ArgumentException Throwed", System.DateTime.Now);
throw new ArgumentException("Starting address must be 0 - 65535; quantity must be 0 - 125");
}
int[] response;
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x03;
this.startingAddress = BitConverter.GetBytes(startingAddress);
this.quantity = BitConverter.GetBytes(quantity);
Byte[] data = new byte[]{ this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
this.quantity[1],
this.quantity[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 5 + 2 * quantity;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x83 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x83 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x83 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x83 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data[8] + 3), 6));
if ((crc[0] != data[data[8] + 9] | crc[1] != data[data[8] + 10]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
return ReadHoldingRegisters(startingAddress, quantity);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
return ReadHoldingRegisters(startingAddress, quantity);
}
}
}
response = new int[quantity];
for (int i = 0; i < quantity; i++)
{
byte lowByte;
byte highByte;
highByte = data[9 + i * 2];
lowByte = data[9 + i * 2 + 1];
data[9 + i * 2] = lowByte;
data[9 + i * 2 + 1] = highByte;
response[i] = BitConverter.ToInt16(data, (9 + i * 2));
}
return (response);
}
/// <summary>
/// Read Input Registers from Master device (FC4).
/// </summary>
/// <param name="startingAddress">First input register to be read</param>
/// <param name="quantity">Number of input registers to be read</param>
/// <returns>Int Array which contains the input registers</returns>
public int[] ReadInputRegisters(int startingAddress, int quantity)
{
//if (debug) StoreLogData.Instance.Store("FC4 (Read Input Registers from Master device), StartingAddress: " + startingAddress + ", Quantity: " + quantity, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
if (startingAddress > 65535 | quantity > 125)
{
//if (debug) StoreLogData.Instance.Store("ArgumentException Throwed", System.DateTime.Now);
throw new ArgumentException("Starting address must be 0 - 65535; quantity must be 0 - 125");
}
int[] response;
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x04;
this.startingAddress = BitConverter.GetBytes(startingAddress);
this.quantity = BitConverter.GetBytes(quantity);
Byte[] data = new byte[]{ this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
this.quantity[1],
this.quantity[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 5 + 2 * quantity;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x84 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x84 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x84 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x84 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data[8] + 3), 6));
if ((crc[0] != data[data[8] + 9] | crc[1] != data[data[8] + 10]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
return ReadInputRegisters(startingAddress, quantity);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
return ReadInputRegisters(startingAddress, quantity);
}
}
}
response = new int[quantity];
for (int i = 0; i < quantity; i++)
{
byte lowByte;
byte highByte;
highByte = data[9 + i * 2];
lowByte = data[9 + i * 2 + 1];
data[9 + i * 2] = lowByte;
data[9 + i * 2 + 1] = highByte;
response[i] = BitConverter.ToInt16(data, (9 + i * 2));
}
return (response);
}
/// <summary>
/// Write single Coil to Master device (FC5).
/// </summary>
/// <param name="startingAddress">Coil to be written</param>
/// <param name="value">Coil Value to be written</param>
public void WriteSingleCoil(int startingAddress, bool value)
{
//if (debug) StoreLogData.Instance.Store("FC5 (Write single coil to Master device), StartingAddress: " + startingAddress + ", Value: " + value, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
byte[] coilValue = new byte[2];
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x05;
this.startingAddress = BitConverter.GetBytes(startingAddress);
if (value == true)
{
coilValue = BitConverter.GetBytes((int)0xFF00);
}
else
{
coilValue = BitConverter.GetBytes((int)0x0000);
}
Byte[] data = new byte[]{ this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
coilValue[1],
coilValue[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x85 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x85 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x85 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x85 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
if ((crc[0] != data[12] | crc[1] != data[13]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
WriteSingleCoil(startingAddress, value);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
WriteSingleCoil(startingAddress, value);
}
}
}
}
/// <summary>
/// Write single Register to Master device (FC6).
/// </summary>
/// <param name="startingAddress">Register to be written</param>
/// <param name="value">Register Value to be written</param>
public void WriteSingleRegister(int startingAddress, int value)
{
//if (debug) StoreLogData.Instance.Store("FC6 (Write single register to Master device), StartingAddress: " + startingAddress + ", Value: " + value, System.DateTime.Now);
transactionIdentifierInternal++;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
byte[] registerValue = new byte[2];
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)0x0006);
this.functionCode = 0x06;
this.startingAddress = BitConverter.GetBytes(startingAddress);
registerValue = BitConverter.GetBytes((int)value);
Byte[] data = new byte[]{ this.transactionIdentifier[1],
this.transactionIdentifier[0],
this.protocolIdentifier[1],
this.protocolIdentifier[0],
this.length[1],
this.length[0],
this.unitIdentifier,
this.functionCode,
this.startingAddress[1],
this.startingAddress[0],
registerValue[1],
registerValue[0],
this.crc[0],
this.crc[1]
};
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
data[12] = crc[0];
data[13] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, 8);
if (debug)
{
byte[] debugData = new byte[8];
Array.Copy(data, 6, debugData, 0, 8);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[8];
Array.Copy(data, 6, sendData, 0, 8);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x86 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x86 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x86 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x86 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
if ((crc[0] != data[12] | crc[1] != data[13]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
WriteSingleRegister(startingAddress, value);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
WriteSingleRegister(startingAddress, value);
}
}
}
}
/// <summary>
/// Write multiple coils to Master device (FC15).
/// </summary>
/// <param name="startingAddress">First coil to be written</param>
/// <param name="values">Coil Values to be written</param>
public void WriteMultipleCoils(int startingAddress, bool[] values)
{
string debugString = "";
for (int i = 0; i < values.Length; i++)
debugString = debugString + values[i] + " ";
//if (debug) StoreLogData.Instance.Store("FC15 (Write multiple coils to Master device), StartingAddress: " + startingAddress + ", Values: " + debugString, System.DateTime.Now);
transactionIdentifierInternal++;
byte byteCount = (byte)((values.Length % 8 != 0 ? values.Length / 8 + 1 : (values.Length / 8)));
byte[] quantityOfOutputs = BitConverter.GetBytes((int)values.Length);
byte singleCoilValue = 0;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)(7 + (byteCount)));
this.functionCode = 0x0F;
this.startingAddress = BitConverter.GetBytes(startingAddress);
Byte[] data = new byte[14 + 2 + (values.Length % 8 != 0 ? values.Length / 8 : (values.Length / 8) - 1)];
data[0] = this.transactionIdentifier[1];
data[1] = this.transactionIdentifier[0];
data[2] = this.protocolIdentifier[1];
data[3] = this.protocolIdentifier[0];
data[4] = this.length[1];
data[5] = this.length[0];
data[6] = this.unitIdentifier;
data[7] = this.functionCode;
data[8] = this.startingAddress[1];
data[9] = this.startingAddress[0];
data[10] = quantityOfOutputs[1];
data[11] = quantityOfOutputs[0];
data[12] = byteCount;
for (int i = 0; i < values.Length; i++)
{
if ((i % 8) == 0)
singleCoilValue = 0;
byte CoilValue;
if (values[i] == true)
CoilValue = 1;
else
CoilValue = 0;
singleCoilValue = (byte)((int)CoilValue << (i % 8) | (int)singleCoilValue);
data[13 + (i / 8)] = singleCoilValue;
}
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data.Length - 8), 6));
data[data.Length - 2] = crc[0];
data[data.Length - 1] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, data.Length - 6);
if (debug)
{
byte[] debugData = new byte[data.Length - 6];
Array.Copy(data, 6, debugData, 0, data.Length - 6);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[data.Length - 6];
Array.Copy(data, 6, sendData, 0, data.Length - 6);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x8F & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x8F & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x8F & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x8F & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
if ((crc[0] != data[12] | crc[1] != data[13]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
WriteMultipleCoils(startingAddress, values);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
WriteMultipleCoils(startingAddress, values);
}
}
}
}
/// <summary>
/// Write multiple registers to Master device (FC16).
/// </summary>
/// <param name="startingAddress">First register to be written</param>
/// <param name="values">register Values to be written</param>
public void WriteMultipleRegisters(int startingAddress, int[] values)
{
string debugString = "";
for (int i = 0; i < values.Length; i++)
debugString = debugString + values[i] + " ";
//if (debug) StoreLogData.Instance.Store("FC16 (Write multiple Registers to Server device), StartingAddress: " + startingAddress + ", Values: " + debugString, System.DateTime.Now);
transactionIdentifierInternal++;
byte byteCount = (byte)(values.Length * 2);
byte[] quantityOfOutputs = BitConverter.GetBytes((int)values.Length);
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)(7 + values.Length * 2));
this.functionCode = 0x10;
this.startingAddress = BitConverter.GetBytes(startingAddress);
Byte[] data = new byte[13 + 2 + values.Length * 2];
data[0] = this.transactionIdentifier[1];
data[1] = this.transactionIdentifier[0];
data[2] = this.protocolIdentifier[1];
data[3] = this.protocolIdentifier[0];
data[4] = this.length[1];
data[5] = this.length[0];
data[6] = this.unitIdentifier;
data[7] = this.functionCode;
data[8] = this.startingAddress[1];
data[9] = this.startingAddress[0];
data[10] = quantityOfOutputs[1];
data[11] = quantityOfOutputs[0];
data[12] = byteCount;
for (int i = 0; i < values.Length; i++)
{
byte[] singleRegisterValue = BitConverter.GetBytes((int)values[i]);
data[13 + i * 2] = singleRegisterValue[1];
data[14 + i * 2] = singleRegisterValue[0];
}
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data.Length - 8), 6));
data[data.Length - 2] = crc[0];
data[data.Length - 1] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 8;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, data.Length - 6);
if (debug)
{
byte[] debugData = new byte[data.Length - 6];
Array.Copy(data, 6, debugData, 0, data.Length - 6);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[data.Length - 6];
Array.Copy(data, 6, sendData, 0, data.Length - 6);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x90 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x90 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x90 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x90 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
if (serialport != null)
{
crc = BitConverter.GetBytes(calculateCRC(data, 6, 6));
if ((crc[0] != data[12] | crc[1] != data[13]) & dataReceived)
{
//if (debug) StoreLogData.Instance.Store("CRCCheckFailedException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new EasyModbus.Exceptions.CRCCheckFailedException("Response CRC check failed");
}
else
{
countRetries++;
WriteMultipleRegisters(startingAddress, values);
}
}
else if (!dataReceived)
{
//if (debug) StoreLogData.Instance.Store("TimeoutException Throwed", System.DateTime.Now);
if (NumberOfRetries <= countRetries)
{
countRetries = 0;
throw new TimeoutException("No Response from Modbus Slave");
}
else
{
countRetries++;
WriteMultipleRegisters(startingAddress, values);
}
}
}
}
/// <summary>
/// Read/Write Multiple Registers (FC23).
/// </summary>
/// <param name="startingAddressRead">First input register to read</param>
/// <param name="quantityRead">Number of input registers to read</param>
/// <param name="startingAddressWrite">First input register to write</param>
/// <param name="values">Values to write</param>
/// <returns>Int Array which contains the Holding registers</returns>
public int[] ReadWriteMultipleRegisters(int startingAddressRead, int quantityRead, int startingAddressWrite, int[] values)
{
string debugString = "";
for (int i = 0; i < values.Length; i++)
debugString = debugString + values[i] + " ";
//if (debug) StoreLogData.Instance.Store("FC23 (Read and Write multiple Registers to Server device), StartingAddress Read: " + startingAddressRead + ", Quantity Read: " + quantityRead + ", startingAddressWrite: " + startingAddressWrite + ", Values: " + debugString, System.DateTime.Now);
transactionIdentifierInternal++;
byte[] startingAddressReadLocal = new byte[2];
byte[] quantityReadLocal = new byte[2];
byte[] startingAddressWriteLocal = new byte[2];
byte[] quantityWriteLocal = new byte[2];
byte writeByteCountLocal = 0;
if (serialport != null)
if (!serialport.IsOpen)
{
//if (debug) StoreLogData.Instance.Store("SerialPortNotOpenedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.SerialPortNotOpenedException("serial port not opened");
}
if (startingAddressRead > 65535 | quantityRead > 125 | startingAddressWrite > 65535 | values.Length > 121)
{
//if (debug) StoreLogData.Instance.Store("ArgumentException Throwed", System.DateTime.Now);
throw new ArgumentException("Starting address must be 0 - 65535; quantity must be 0 - 2000");
}
int[] response;
this.transactionIdentifier = BitConverter.GetBytes((uint)transactionIdentifierInternal);
this.protocolIdentifier = BitConverter.GetBytes((int)0x0000);
this.length = BitConverter.GetBytes((int)11 + values.Length * 2);
this.functionCode = 0x17;
startingAddressReadLocal = BitConverter.GetBytes(startingAddressRead);
quantityReadLocal = BitConverter.GetBytes(quantityRead);
startingAddressWriteLocal = BitConverter.GetBytes(startingAddressWrite);
quantityWriteLocal = BitConverter.GetBytes(values.Length);
writeByteCountLocal = Convert.ToByte(values.Length * 2);
Byte[] data = new byte[17 + 2 + values.Length * 2];
data[0] = this.transactionIdentifier[1];
data[1] = this.transactionIdentifier[0];
data[2] = this.protocolIdentifier[1];
data[3] = this.protocolIdentifier[0];
data[4] = this.length[1];
data[5] = this.length[0];
data[6] = this.unitIdentifier;
data[7] = this.functionCode;
data[8] = startingAddressReadLocal[1];
data[9] = startingAddressReadLocal[0];
data[10] = quantityReadLocal[1];
data[11] = quantityReadLocal[0];
data[12] = startingAddressWriteLocal[1];
data[13] = startingAddressWriteLocal[0];
data[14] = quantityWriteLocal[1];
data[15] = quantityWriteLocal[0];
data[16] = writeByteCountLocal;
for (int i = 0; i < values.Length; i++)
{
byte[] singleRegisterValue = BitConverter.GetBytes((int)values[i]);
data[17 + i * 2] = singleRegisterValue[1];
data[18 + i * 2] = singleRegisterValue[0];
}
crc = BitConverter.GetBytes(calculateCRC(data, (ushort)(data.Length - 8), 6));
data[data.Length - 2] = crc[0];
data[data.Length - 1] = crc[1];
if (serialport != null)
{
dataReceived = false;
bytesToRead = 5 + 2 * quantityRead;
// serialport.ReceivedBytesThreshold = bytesToRead;
serialport.Write(data, 6, data.Length - 6);
if (debug)
{
byte[] debugData = new byte[data.Length - 6];
Array.Copy(data, 6, debugData, 0, data.Length - 6);
//if (debug) StoreLogData.Instance.Store("Send Serial-Data: " + BitConverter.ToString(debugData), System.DateTime.Now);
}
if (SendDataChanged != null)
{
sendData = new byte[data.Length - 6];
Array.Copy(data, 6, sendData, 0, data.Length - 6);
SendDataChanged(this);
}
data = new byte[2100];
readBuffer = new byte[256];
DateTime dateTimeSend = DateTime.Now;
byte receivedUnitIdentifier = 0xFF;
while (receivedUnitIdentifier != this.unitIdentifier & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
{
while (dataReceived == false & !((DateTime.Now.Ticks - dateTimeSend.Ticks) > TimeSpan.TicksPerMillisecond * this.connectTimeout))
System.Threading.Thread.Sleep(1);
data = new byte[2100];
Array.Copy(readBuffer, 0, data, 6, readBuffer.Length);
receivedUnitIdentifier = data[6];
}
if (receivedUnitIdentifier != this.unitIdentifier)
data = new byte[2100];
else
countRetries = 0;
}
if (data[7] == 0x97 & data[8] == 0x01)
{
//if (debug) StoreLogData.Instance.Store("FunctionCodeNotSupportedException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.FunctionCodeNotSupportedException("Function code not supported by master");
}
if (data[7] == 0x97 & data[8] == 0x02)
{
//if (debug) StoreLogData.Instance.Store("StartingAddressInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.StartingAddressInvalidException("Starting address invalid or starting address + quantity invalid");
}
if (data[7] == 0x97 & data[8] == 0x03)
{
//if (debug) StoreLogData.Instance.Store("QuantityInvalidException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.QuantityInvalidException("quantity invalid");
}
if (data[7] == 0x97 & data[8] == 0x04)
{
//if (debug) StoreLogData.Instance.Store("ModbusException Throwed", System.DateTime.Now);
throw new EasyModbus.Exceptions.ModbusException("error reading");
}
response = new int[quantityRead];
for (int i = 0; i < quantityRead; i++)
{
byte lowByte;
byte highByte;
highByte = data[9 + i * 2];
lowByte = data[9 + i * 2 + 1];
data[9 + i * 2] = lowByte;
data[9 + i * 2 + 1] = highByte;
response[i] = BitConverter.ToInt16(data, (9 + i * 2));
}
return (response);
}
/// <summary>
/// Close connection to Master Device.
/// </summary>
public void Disconnect()
{
//if (debug) StoreLogData.Instance.Store("Disconnect", System.DateTime.Now);
if (serialport != null)
{
if (serialport.IsOpen & !this.receiveActive)
//serialport.Close();
if (ConnectedChanged != null)
ConnectedChanged(this);
return;
}
if (stream != null)
stream.Close();
connected = false;
if (ConnectedChanged != null)
ConnectedChanged(this);
}
/// <summary>
/// Destructor - Close connection to Master Device.
/// </summary>
~ModbusClient()
{
//if (debug) StoreLogData.Instance.Store("Destructor called - automatically disconnect", System.DateTime.Now);
if (serialport != null)
{
if (serialport.IsOpen)
//serialport.Close();
return;
}
}
/// <summary>
/// Returns "TRUE" if Client is connected to Server and "FALSE" if not. In case of Modbus RTU returns if COM-Port is opened
/// </summary>
public bool Connected
{
get
{
return (serialport.IsOpen);
}
}
/// <summary>
/// Gets or Sets the Unit identifier in case of serial connection (Default = 0)
/// </summary>
public byte UnitIdentifier
{
get
{
return unitIdentifier;
}
set
{
unitIdentifier = value;
}
}
/// <summary>
/// Gets or Sets the connection Timeout in case of ModbusTCP connection
/// </summary>
public int ConnectionTimeout
{
get
{
return connectTimeout;
}
set
{
connectTimeout = value;
}
}
}
}
| 46.644868 | 299 | 0.524087 | [
"MIT"
] | CameronMease/Pinknose.DistributedWorkers | Pinknose.DistributedWorkers.XBee/Modbus/ModbusClient.cs | 102,714 | C# |
namespace Paseto.Cryptography.Internal.Ed25519Ref10;
internal static partial class GroupOperations
{
/*
r = p + q
*/
internal static void ge_madd(out GroupElementP1P1 r, ref GroupElementP3 p, ref GroupElementPreComp q)
{
/* qhasm: enter ge_madd */
/* qhasm: fe X1 */
/* qhasm: fe Y1 */
/* qhasm: fe Z1 */
/* qhasm: fe T1 */
/* qhasm: fe ypx2 */
/* qhasm: fe ymx2 */
/* qhasm: fe xy2d2 */
/* qhasm: fe X3 */
/* qhasm: fe Y3 */
/* qhasm: fe Z3 */
/* qhasm: fe T3 */
/* qhasm: fe YpX1 */
/* qhasm: fe YmX1 */
/* qhasm: fe A */
/* qhasm: fe B */
/* qhasm: fe C */
/* qhasm: fe D */
/* qhasm: YpX1 = Y1+X1 */
/* asm 1: fe_add(>YpX1=fe#1,<Y1=fe#12,<X1=fe#11); */
/* asm 2: fe_add(>YpX1=r.X,<Y1=p.Y,<X1=p.X); */
FieldOperations.fe_add(out r.X, ref p.Y, ref p.X);
/* qhasm: YmX1 = Y1-X1 */
/* asm 1: fe_sub(>YmX1=fe#2,<Y1=fe#12,<X1=fe#11); */
/* asm 2: fe_sub(>YmX1=r.Y,<Y1=p.Y,<X1=p.X); */
FieldOperations.fe_sub(out r.Y, ref p.Y, ref p.X);
/* qhasm: A = YpX1*ypx2 */
/* asm 1: fe_mul(>A=fe#3,<YpX1=fe#1,<ypx2=fe#15); */
/* asm 2: fe_mul(>A=r.Z,<YpX1=r.X,<ypx2=q.yplusx); */
FieldOperations.fe_mul(out r.Z, ref r.X, ref q.yplusx);
/* qhasm: B = YmX1*ymx2 */
/* asm 1: fe_mul(>B=fe#2,<YmX1=fe#2,<ymx2=fe#16); */
/* asm 2: fe_mul(>B=r.Y,<YmX1=r.Y,<ymx2=q.yminusx); */
FieldOperations.fe_mul(out r.Y, ref r.Y, ref q.yminusx);
/* qhasm: C = xy2d2*T1 */
/* asm 1: fe_mul(>C=fe#4,<xy2d2=fe#17,<T1=fe#14); */
/* asm 2: fe_mul(>C=r.T,<xy2d2=q.xy2d,<T1=p.T); */
FieldOperations.fe_mul(out r.T, ref q.xy2d, ref p.T);
/* qhasm: D = 2*Z1 */
/* asm 1: fe_add(>D=fe#5,<Z1=fe#13,<Z1=fe#13); */
/* asm 2: fe_add(>D=t0,<Z1=p.Z,<Z1=p.Z); */
FieldOperations.fe_add(out FieldElement t0, ref p.Z, ref p.Z);
/* qhasm: X3 = A-B */
/* asm 1: fe_sub(>X3=fe#1,<A=fe#3,<B=fe#2); */
/* asm 2: fe_sub(>X3=r.X,<A=r.Z,<B=r.Y); */
FieldOperations.fe_sub(out r.X, ref r.Z, ref r.Y);
/* qhasm: Y3 = A+B */
/* asm 1: fe_add(>Y3=fe#2,<A=fe#3,<B=fe#2); */
/* asm 2: fe_add(>Y3=r.Y,<A=r.Z,<B=r.Y); */
FieldOperations.fe_add(out r.Y, ref r.Z, ref r.Y);
/* qhasm: Z3 = D+C */
/* asm 1: fe_add(>Z3=fe#3,<D=fe#5,<C=fe#4); */
/* asm 2: fe_add(>Z3=r.Z,<D=t0,<C=r.T); */
FieldOperations.fe_add(out r.Z, ref t0, ref r.T);
/* qhasm: T3 = D-C */
/* asm 1: fe_sub(>T3=fe#4,<D=fe#5,<C=fe#4); */
/* asm 2: fe_sub(>T3=r.T,<D=t0,<C=r.T); */
FieldOperations.fe_sub(out r.T, ref t0, ref r.T);
/* qhasm: return */
}
}
| 29.10101 | 105 | 0.4731 | [
"MIT"
] | idaviddesmet/paseto-dotnet | src/Paseto/Cryptography/Internal/Ed25519Ref10/ge_madd.cs | 2,883 | C# |
using System.Reflection;
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("AWSSDK.CodeCommit")]
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS CodeCommit. AWS CodeCommit is a fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[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("3.3")]
[assembly: AssemblyFileVersion("3.7.0.109")] | 47.21875 | 246 | 0.753144 | [
"Apache-2.0"
] | aws/aws-sdk-net | sdk/code-analysis/ServiceAnalysis/CodeCommit/Properties/AssemblyInfo.cs | 1,511 | C# |
using Bit.Core.Contracts;
using Bit.Core.Models;
using Bit.ViewModel.Contracts;
using Prism.Navigation;
using Prism.Regions;
using Prism.Regions.Navigation;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Bit.ViewModel
{
public class BitViewModelBase : Bindable, INavigatedAware, IInitializeAsync, INavigationAware, IDestructible, IRegionAware
{
public CancellationTokenSource CancellationTokenSource { get; set; }
public CancellationToken CurrentCancellationToken { get; set; }
public IExceptionHandler ExceptionHandler { get; set; } = default!;
public BitViewModelBase()
{
CancellationTokenSource = new CancellationTokenSource();
CurrentCancellationToken = CancellationTokenSource.Token;
}
public async void Destroy()
{
try
{
try
{
CancellationTokenSource.Cancel();
CancellationTokenSource.Dispose();
}
finally // make sure that OnDestroyAsync gets called.
{
await OnDestroyAsync();
await Task.Yield();
}
}
catch (Exception exp)
{
ExceptionHandler.OnExceptionReceived(exp);
}
}
public virtual Task OnDestroyAsync()
{
return Task.CompletedTask;
}
public async void OnNavigatedFrom(INavigationParameters parameters)
{
try
{
await OnNavigatedFromAsync(parameters);
await Task.Yield();
}
catch (Exception exp)
{
ExceptionHandler.OnExceptionReceived(exp);
}
}
public virtual Task OnNavigatedFromAsync(INavigationParameters parameters)
{
return Task.CompletedTask;
}
protected virtual string GetViewModelName()
{
return GetType().Name.Replace("ViewModel", string.Empty);
}
protected virtual bool ShouldLogNavParam(string navParamName)
{
return true;
}
public async void OnNavigatedTo(INavigationParameters parameters)
{
DateTimeOffset startDate = DateTimeOffset.Now;
bool success = true;
string? navUri = null;
try
{
await Task.Yield();
await OnNavigatedToAsync(parameters);
await Task.Yield();
try
{
navUri = NavigationService.GetNavigationUriPath() ?? GetType().Name;
}
catch
{
navUri = GetType().Name;
}
}
catch (Exception exp)
{
success = false;
ExceptionHandler.OnExceptionReceived(exp);
}
finally
{
if (parameters.TryGetNavigationMode(out NavigationMode navigationMode) && navigationMode == NavigationMode.New)
{
string pageName = GetViewModelName();
Dictionary<string, string?> properties = new Dictionary<string, string?> { };
foreach (KeyValuePair<string, object> prp in parameters)
{
if (ShouldLogNavParam(prp.Key) && prp.Key != KnownNavigationParameters.CreateTab && !properties.ContainsKey(prp.Key))
properties.Add(prp.Key, prp.Value?.ToString() ?? "NULL");
}
properties.Add("PageViewSucceeded", success.ToString(CultureInfo.InvariantCulture));
properties.Add("NavUri", navUri);
TimeSpan duration = DateTimeOffset.Now - startDate;
TelemetryServices.All().TrackPageView(pageName, duration, properties);
}
}
}
public virtual Task OnNavigatedToAsync(INavigationParameters parameters)
{
return Task.CompletedTask;
}
public async Task InitializeAsync(INavigationParameters parameters)
{
try
{
await Task.Yield();
await OnInitializeAsync(parameters);
}
catch (Exception exp)
{
ExceptionHandler.OnExceptionReceived(exp);
}
}
public virtual Task OnInitializeAsync(INavigationParameters parameters)
{
return Task.CompletedTask;
}
public void OnNavigatedTo(INavigationContext navigationContext)
{
OnNavigatedTo(navigationContext.Parameters);
}
public virtual bool IsNavigationTarget(INavigationContext navigationContext)
{
return true;
}
public void OnNavigatedFrom(INavigationContext navigationContext)
{
OnNavigatedFrom(navigationContext.Parameters);
}
public INavService NavigationService { get; set; } = default!;
public IRegionManager RegionManager { get; set; }
public IEnumerable<ITelemetryService> TelemetryServices { get; set; } = default!;
}
}
| 30.519553 | 141 | 0.55281 | [
"MIT"
] | RezaKargar/bitframework | src/Client/Xamarin/Bit.Client.Xamarin.Prism/ViewModel/BitViewModelBase.cs | 5,465 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public struct FSFloat
{
public const int precision = 10000;
int val;
public FSFloat(int v) {
val = v;
}
public int GetValue() {
return val;
}
public float ToFloat() {
return val * 0.0001f;
}
public static bool operator ==(FSFloat a,FSFloat b) {
return a.GetValue() == b.GetValue();
}
public static bool operator !=(FSFloat a, FSFloat b) {
return a.GetValue() == b.GetValue();
}
public static bool operator >(FSFloat a, FSFloat b) {
return a.GetValue() > b.GetValue();
}
public static bool operator <(FSFloat a, FSFloat b) {
return a.GetValue() < b.GetValue();
}
public static bool operator >=(FSFloat a, FSFloat b) {
return a.GetValue() >= b.GetValue();
}
public static bool operator <=(FSFloat a, FSFloat b) {
return a.GetValue() <= b.GetValue();
}
public static implicit operator FSFloat(int t) {
return new FSFloat(t);
}
public static explicit operator FSFloat(float t) {
return new FSFloat((int)t);
}
}
| 21.178571 | 58 | 0.591062 | [
"MIT"
] | Rafe100/FrameSync | Client/Assets/Script/FSFloat.cs | 1,188 | C# |
using System;
namespace CHD.Tests.ExtendedContext.StatRecord
{
public interface IStatisticRecord : IDisposable
{
void Log();
}
} | 17.444444 | 52 | 0.649682 | [
"MIT"
] | lsoft/CHD | CHD.Tests/ExtendedContext/StatRecord/IStatisticRecord.cs | 157 | C# |
using System.Collections.Generic;
using System.Linq;
namespace Millarow.Rest
{
public class RequestMultipartContent : RequestContent
{
private List<RequestFile> _parts;
public RequestMultipartContent(string charSet)
: base(new ContentType(MimeTypes.Multipart.FormData, charSet))
{
}
public void Part(RequestFile part)
{
part.AssertNotNull(nameof(part));
if (_parts == null)
_parts = new List<RequestFile>();
_parts.Add(part);
}
public void Add(RequestContent part, string name, string fileName)
{
Part(new RequestFile(part, name)
{
FileName = fileName
});
}
public string Boundary { get; set; }
public IEnumerable<RequestFile> Parts => _parts ?? Enumerable.Empty<RequestFile>();
}
}
| 25.105263 | 92 | 0.552411 | [
"MIT"
] | mcculic/millarowframework | src/Millarow.Rest/RequestMultipartContent.cs | 956 | C# |
/*
// <copyright>
// dotNetRDF is free and open source software licensed under the MIT License
// -------------------------------------------------------------------------
//
// Copyright (c) 2009-2017 dotNetRDF Project (http://dotnetrdf.org/)
//
// 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.
// </copyright>
*/
using System.Linq;
using VDS.RDF.Nodes;
using VDS.RDF.Parsing;
namespace VDS.RDF.Query.Operators.DateTime
{
/// <summary>
/// Abstract base operator for time span operations
/// </summary>
public abstract class BaseTimeSpanOperator
: BaseOperator
{
/// <summary>
/// Gets whether the operator is applicable for the arguments
/// </summary>
/// <param name="ns">Arguments</param>
/// <returns></returns>
public override bool IsApplicable(params IValuedNode[] ns)
{
return !Options.StrictOperators
&& ns != null
&& ns.Length > 0
&& ns.All(n => n != null && (n.EffectiveType.Equals(XmlSpecsHelper.XmlSchemaDataTypeDayTimeDuration) || n.EffectiveType.Equals(XmlSpecsHelper.XmlSchemaDataTypeDuration)));
}
}
}
| 41.754717 | 190 | 0.667872 | [
"MIT"
] | DFihnn/dotnetrdf | Libraries/dotNetRDF/Query/Operators/DateTime/BaseTimeSpanOperator.cs | 2,213 | C# |
namespace TeamBuilder.Models.Validation.RegisterUser
{
using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class PasswordAttribute : ValidationAttribute
{
private const string DefaultMessage = "Password {0} not valid!";
private const int MinLength = 6;
private const int MaxLength = 30;
public bool ContainsDigit { get; set; }
public bool ContainsUppercase { get; set; }
protected override ValidationResult IsValid(object value, ValidationContext validationContext)
{
string password = value.ToString();
if (password.Length < MinLength || password.Length > MaxLength)
{
return new ValidationResult(string.Format(DefaultMessage, value.ToString()));
}
if (!password.Any(c => char.IsDigit(c)))
{
return new ValidationResult(string.Format(DefaultMessage, value.ToString()));
}
if (!password.Any(c => char.IsUpper(c)))
{
return new ValidationResult(string.Format(DefaultMessage, value.ToString()));
}
return ValidationResult.Success;
}
}
} | 32.85 | 102 | 0.617199 | [
"MIT"
] | HristoSpasov/Databases-Advanced-Entity-Framework-Core | 13. Workshop/TeamBuilder.App/ModelDto/Validation/RegisterUser/PasswordAttribute.cs | 1,316 | C# |
using System;
using System.Runtime.Serialization;
using GeneticSharp.Infrastructure.Framework.Texts;
namespace GeneticSharp.Domain.Reinsertions
{
/// <summary>
/// Exception throw when an error occurs during the execution of reinsert.
/// </summary>
[Serializable]
public sealed class ReinsertionException : Exception
{
#region Constructors
/// <summary>
/// Initializes a new instance of the <see cref="GeneticSharp.Domain.Reinsertions.ReinsertionException"/> class.
/// </summary>
/// <param name="reinsertion">The reinsertion where occurred the error.</param>
/// <param name="message">The error message.</param>
public ReinsertionException(IReinsertion reinsertion, string message)
: base("{0}: {1}".With(reinsertion != null ? reinsertion.GetType().Name : string.Empty, message))
{
Reinsertion = reinsertion;
}
/// <summary>
/// Initializes a new instance of the <see cref="GeneticSharp.Domain.Reinsertions.ReinsertionException"/> class.
/// </summary>
/// <param name="reinsertion">The Reinsertion where occurred the error.</param>
/// <param name="message">The error message.</param>
/// <param name="innerException">The inner exception.</param>
public ReinsertionException(IReinsertion reinsertion, string message, Exception innerException)
: base("{0}: {1}".With(reinsertion != null ? reinsertion.GetType().Name : string.Empty, message), innerException)
{
Reinsertion = reinsertion;
}
/// <summary>
/// Initializes a new instance of the <see cref="ReinsertionException"/> class.
/// </summary>
public ReinsertionException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ReinsertionException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public ReinsertionException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ReinsertionException"/> class.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
public ReinsertionException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ReinsertionException"/> class.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
private ReinsertionException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
#endregion
#region Properties
/// <summary>
/// Gets the reinsertion.
/// </summary>
/// <value>The reinsertion.</value>
public IReinsertion Reinsertion { get; private set; }
#endregion
#region Methods
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*" />
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="SerializationFormatter" />
/// </PermissionSet>
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Reinsertion", Reinsertion);
}
#endregion
}
} | 48.56 | 219 | 0.646829 | [
"MIT"
] | raminrahimzada/GeneticSharp | src/GeneticSharp.Domain/Reinsertions/ReinsertionException.cs | 4,856 | C# |
namespace NetEscapades.AspNetCore.SecurityHeaders.Headers.PermissionsPolicy
{
/// <summary>
/// Controls whether the current document is allowed to use the Web MIDI API.
/// If disabled in a document, the promise returned by <code>requestMIDIAccess()</code>
/// must reject with a DOMException parameter.
/// </summary>
public class MidiPermissionsPolicyDirectiveBuilder : PermissionsPolicyDirectiveBuilder
{
/// <summary>
/// Initializes a new instance of the <see cref="MidiPermissionsPolicyDirectiveBuilder"/> class.
/// </summary>
public MidiPermissionsPolicyDirectiveBuilder() : base("midi")
{
}
}
}
| 38.111111 | 104 | 0.683673 | [
"MIT"
] | Rtalos/NetEscapades.AspNetCore.SecurityHeaders | src/NetEscapades.AspNetCore.SecurityHeaders/Headers/PermissionsPolicy/MidiPermissionsPolicyDirectiveBuilder.cs | 688 | C# |
// Copyright 2018 by JCoder58. See License.txt for license
// Auto-generated --- Do not modify.
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UE4.Core;
using UE4.CoreUObject;
using UE4.CoreUObject.Native;
using UE4.InputCore;
using UE4.Native;
namespace UE4.Engine.Native {
[StructLayout( LayoutKind.Explicit, Size=56 )]
internal unsafe struct EngineCustomTimeStep_fields {
}
internal unsafe struct EngineCustomTimeStep_methods {
}
internal unsafe struct EngineCustomTimeStep_events {
}
}
| 25.727273 | 59 | 0.763251 | [
"MIT"
] | UE4DotNet/Plugin | DotNet/DotNet/UE4/Generated/Engine/Native/EngineCustomTimeStep.cs | 566 | C# |
using System;
namespace Paket.Bootstrapper
{
public static class DateTimeProxy
{
public static Func<DateTime> GetNow
{
get { return _getNow ?? (_getNow = () => DateTime.Now); }
set { _getNow = value;}
}
private static Func<DateTime> _getNow;
public static DateTime Now => GetNow();
}
}
| 19.368421 | 69 | 0.5625 | [
"MIT"
] | pspesivt/Paket | src/Paket.Bootstrapper/HelperProxies/DateTimeProxy.cs | 368 | C# |
// Author: Mathias Soeholm
// Date: 05/10/2016
// No license, do whatever you want with this script
using UnityEngine;
using UnityEngine.Serialization;
//[ExecuteInEditMode]
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshFilter))]
public class TubeRenderer : MonoBehaviour
{
public Material lmat;
public int positionCount = 0;
[SerializeField] Vector3[] _positions;
[SerializeField] int _sides = 8;
[SerializeField] float _radiusOne;
[SerializeField] float _radiusTwo;
[SerializeField] bool _useWorldSpace = true;
[SerializeField] bool _useTwoRadii = false;
private Vector3[] _vertices;
private Mesh _mesh;
private MeshFilter _meshFilter;
private MeshRenderer _meshRenderer;
////public Material material
////{
//// get { return _meshRenderer.material; }
//// set { _meshRenderer.material = value; }
////}
void Start()
{
_meshFilter = GetComponent<MeshFilter>();
_meshRenderer = GetComponent<MeshRenderer>();
_meshRenderer.material = lmat;
}
public void setWidth(float width)
{
_radiusOne = width;
_radiusTwo = width;
}
public Vector3[] GetPositions()
{
return _positions;
}
//void Awake()
//{
//_meshFilter = GetComponent<MeshFilter>();
//if (_meshFilter == null)
//{
// _meshFilter = gameObject.AddComponent<MeshFilter>();
//}
//_meshRenderer = GetComponent<MeshRenderer>();
//if (_meshRenderer == null)
//{
// _meshRenderer = gameObject.AddComponent<MeshRenderer>();
//}
//_meshRenderer.material = lmat;
//_mesh = new Mesh();
//_meshFilter.mesh = _mesh;
//}
//private void OnEnable()
//{
// _meshRenderer.enabled = true;
//}
//private void OnDisable()
//{
// _meshRenderer.enabled = false;
//}
//void Update()
//{
// GenerateMesh();
//}
private void OnValidate()
{
_sides = Mathf.Max(3, _sides);
}
public void SetPositions(Vector3[] positions)
{
_positions = positions;
GenerateMesh();
}
private void GenerateMesh()
{
if (_mesh == null || _positions == null || _positions.Length <= 1)
{
_mesh = new Mesh();
return;
}
var verticesLength = _sides * _positions.Length;
if (_vertices == null || _vertices.Length != verticesLength)
{
_vertices = new Vector3[verticesLength];
var indices = GenerateIndices();
var uvs = GenerateUVs();
if (verticesLength > _mesh.vertexCount)
{
_mesh.vertices = _vertices;
_mesh.triangles = indices;
_mesh.uv = uvs;
}
else
{
_mesh.triangles = indices;
_mesh.vertices = _vertices;
_mesh.uv = uvs;
}
}
var currentVertIndex = 0;
for (int i = 0; i < _positions.Length; i++)
{
var circle = CalculateCircle(i);
foreach (var vertex in circle)
{
_vertices[currentVertIndex++] = _useWorldSpace ? transform.InverseTransformPoint(vertex) : vertex;
}
}
_mesh.vertices = _vertices;
_mesh.RecalculateNormals();
_mesh.RecalculateBounds();
_meshFilter.mesh = _mesh;
}
private Vector2[] GenerateUVs()
{
var uvs = new Vector2[_positions.Length * _sides];
for (int segment = 0; segment < _positions.Length; segment++)
{
for (int side = 0; side < _sides; side++)
{
var vertIndex = (segment * _sides + side);
var u = side / (_sides - 1f);
var v = segment / (_positions.Length - 1f);
uvs[vertIndex] = new Vector2(u, v);
}
}
return uvs;
}
private int[] GenerateIndices()
{
// Two triangles and 3 vertices
var indices = new int[_positions.Length * _sides * 2 * 3];
var currentIndicesIndex = 0;
for (int segment = 1; segment < _positions.Length; segment++)
{
for (int side = 0; side < _sides; side++)
{
var vertIndex = (segment * _sides + side);
var prevVertIndex = vertIndex - _sides;
// Triangle one
indices[currentIndicesIndex++] = prevVertIndex;
indices[currentIndicesIndex++] = (side == _sides - 1) ? (vertIndex - (_sides - 1)) : (vertIndex + 1);
indices[currentIndicesIndex++] = vertIndex;
// Triangle two
indices[currentIndicesIndex++] = (side == _sides - 1) ? (prevVertIndex - (_sides - 1)) : (prevVertIndex + 1);
indices[currentIndicesIndex++] = (side == _sides - 1) ? (vertIndex - (_sides - 1)) : (vertIndex + 1);
indices[currentIndicesIndex++] = prevVertIndex;
}
}
return indices;
}
private Vector3[] CalculateCircle(int index)
{
var dirCount = 0;
var forward = Vector3.zero;
// If not first index
if (index > 0)
{
forward += (_positions[index] - _positions[index - 1]).normalized;
dirCount++;
}
// If not last index
if (index < _positions.Length - 1)
{
forward += (_positions[index + 1] - _positions[index]).normalized;
dirCount++;
}
// Forward is the average of the connecting edges directions
forward = (forward / dirCount).normalized;
var side = Vector3.Cross(forward, forward + new Vector3(.123564f, .34675f, .756892f)).normalized;
var up = Vector3.Cross(forward, side).normalized;
var circle = new Vector3[_sides];
var angle = 0f;
var angleStep = (2 * Mathf.PI) / _sides;
var t = index / (_positions.Length - 1f);
var radius = _useTwoRadii ? Mathf.Lerp(_radiusOne, _radiusTwo, t) : _radiusOne;
for (int i = 0; i < _sides; i++)
{
var x = Mathf.Cos(angle);
var y = Mathf.Sin(angle);
circle[i] = _positions[index] + side * x * radius + up * y * radius;
angle += angleStep;
}
return circle;
}
} | 23.012931 | 113 | 0.655553 | [
"MIT"
] | Rowl1ng/SketchyVR | Sketch_VR/Assets/TubeRenderer.cs | 5,339 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Xml;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.DataCollection;
using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers;
using Microsoft.VisualStudio.TestPlatform.Utilities.Helpers.Interfaces;
using Resource = Microsoft.TestPlatform.Extensions.EventLogCollector.Resources.Resources;
#nullable disable
namespace Microsoft.TestPlatform.Extensions.EventLogCollector;
/// <summary>
/// A data collector that collects event log data
/// </summary>
[DataCollectorTypeUri(DefaultUri)]
[DataCollectorFriendlyName("Event Log")]
public class EventLogDataCollector : DataCollector
{
/// <summary>
/// The event log file name.
/// </summary>
private const string EventLogFileName = "Event Log";
/// <summary>
/// DataCollector URI.
/// </summary>
private const string DefaultUri = @"datacollector://Microsoft/EventLog/2.0";
/// <summary>
/// Event handler delegate for the SessionStart event
/// </summary>
private readonly EventHandler<SessionStartEventArgs> _sessionStartEventHandler;
/// <summary>
/// Event handler delegate for the SessionEnd event
/// </summary>
private readonly EventHandler<SessionEndEventArgs> _sessionEndEventHandler;
/// <summary>
/// Event handler delegate for the TestCaseStart event
/// </summary>
private readonly EventHandler<TestCaseStartEventArgs> _testCaseStartEventHandler;
/// <summary>
/// Event handler delegate for the TestCaseEnd event
/// </summary>
private readonly EventHandler<TestCaseEndEventArgs> _testCaseEndEventHandler;
/// <summary>
/// The event log directories.
/// </summary>
private readonly List<string> _eventLogDirectories;
/// <summary>
/// Object containing the execution events the data collector registers for
/// </summary>
private DataCollectionEvents _events;
/// <summary>
/// The sink used by the data collector to send its data
/// </summary>
private DataCollectionSink _dataSink;
/// <summary>
/// The data collector context.
/// </summary>
private DataCollectionContext _dataCollectorContext;
/// <summary>
/// Used by the data collector to send warnings, errors, or other messages
/// </summary>
private DataCollectionLogger _logger;
/// <summary>
/// The file helper.
/// </summary>
private readonly IFileHelper _fileHelper;
/// <summary>
/// The event log map.
/// </summary>
private readonly IDictionary<string, IEventLogContainer> _eventLogContainerMap = new Dictionary<string, IEventLogContainer>();
/// <summary>
/// Initializes a new instance of the <see cref="EventLogDataCollector"/> class.
/// </summary>
public EventLogDataCollector()
: this(new FileHelper())
{
}
/// <summary>
/// Initializes a new instance of the <see cref="EventLogDataCollector"/> class.
/// </summary>
/// <param name="fileHelper">
/// File Helper.
/// </param>
internal EventLogDataCollector(IFileHelper fileHelper)
{
_sessionStartEventHandler = OnSessionStart;
_sessionEndEventHandler = OnSessionEnd;
_testCaseStartEventHandler = OnTestCaseStart;
_testCaseEndEventHandler = OnTestCaseEnd;
_eventLogDirectories = new List<string>();
ContextMap = new Dictionary<DataCollectionContext, EventLogSessionContext>();
_fileHelper = fileHelper;
}
internal int MaxEntries { get; private set; }
internal ISet<string> EventSources { get; private set; }
internal ISet<EventLogEntryType> EntryTypes { get; private set; }
internal ISet<string> EventLogNames { get; private set; }
/// <summary>
/// Gets the context data.
/// </summary>
internal Dictionary<DataCollectionContext, EventLogSessionContext> ContextMap { get; }
#region DataCollector Members
/// <summary>
/// Initializes the data collector
/// </summary>
/// <param name="configurationElement">
/// The XML element containing configuration information for the data collector. Currently,
/// this data collector does not have any configuration, so we ignore this parameter.
/// </param>
/// <param name="events">
/// Object containing the execution events the data collector registers for
/// </param>
/// <param name="dataSink">The sink used by the data collector to send its data</param>
/// <param name="logger">
/// Used by the data collector to send warnings, errors, or other messages
/// </param>
/// <param name="dataCollectionEnvironmentContext">Provides contextual information about the agent environment</param>
public override void Initialize(
XmlElement configurationElement,
DataCollectionEvents events!!,
DataCollectionSink dataSink!!,
DataCollectionLogger logger!!,
DataCollectionEnvironmentContext dataCollectionEnvironmentContext)
{
_events = events;
_dataSink = dataSink;
_logger = logger;
_dataCollectorContext = dataCollectionEnvironmentContext.SessionDataCollectionContext;
// Load the configuration
CollectorNameValueConfigurationManager nameValueSettings =
new(configurationElement);
// Apply the configuration
ConfigureEventSources(nameValueSettings);
ConfigureEntryTypes(nameValueSettings);
ConfigureMaxEntries(nameValueSettings);
ConfigureEventLogNames(nameValueSettings);
// Register for events
events.SessionStart += _sessionStartEventHandler;
events.SessionEnd += _sessionEndEventHandler;
events.TestCaseStart += _testCaseStartEventHandler;
events.TestCaseEnd += _testCaseEndEventHandler;
}
#endregion
/// <summary>
/// The write event logs.
/// </summary>
/// <param name="eventLogEntries">
/// The event log entries.
/// </param>
/// <param name="maxLogEntries">
/// Max Log Entries.
/// </param>
/// <param name="dataCollectionContext">
/// The data collection context.
/// </param>
/// <param name="requestedDuration">
/// The requested duration.
/// </param>
/// <param name="timeRequestReceived">
/// The time request received.
/// </param>
/// <returns>
/// The <see cref="string"/>.
/// </returns>
internal string WriteEventLogs(List<EventLogEntry> eventLogEntries, int maxLogEntries, DataCollectionContext dataCollectionContext, TimeSpan requestedDuration, DateTime timeRequestReceived)
{
// Generate a unique but friendly Directory name in the temp directory
string eventLogDirName = string.Format(
CultureInfo.InvariantCulture,
"{0}-{1}-{2:yyyy}{2:MM}{2:dd}-{2:HH}{2:mm}{2:ss}.{2:fff}",
"Event Log",
Environment.MachineName,
DateTime.UtcNow);
string eventLogDirPath = Path.Combine(Path.GetTempPath(), eventLogDirName);
// Create the directory
_fileHelper.CreateDirectory(eventLogDirPath);
string eventLogBasePath = Path.Combine(eventLogDirPath, EventLogFileName);
bool unusedFilenameFound = false;
string eventLogPath = eventLogBasePath + ".xml";
if (_fileHelper.Exists(eventLogPath))
{
for (int i = 1; !unusedFilenameFound; i++)
{
eventLogPath = eventLogBasePath + "-" + i.ToString(CultureInfo.InvariantCulture) + ".xml";
if (!_fileHelper.Exists(eventLogPath))
{
unusedFilenameFound = true;
}
}
}
DateTime minDate = DateTime.MinValue;
// Limit entries to a certain time range if requested
if (requestedDuration < TimeSpan.MaxValue)
{
try
{
minDate = timeRequestReceived - requestedDuration;
}
catch (ArgumentOutOfRangeException)
{
minDate = DateTime.MinValue;
}
}
Stopwatch stopwatch = new();
stopwatch.Start();
EventLogXmlWriter.WriteEventLogEntriesToXmlFile(
eventLogPath,
eventLogEntries.Where(
entry => entry.TimeGenerated > minDate && entry.TimeGenerated < DateTime.MaxValue).OrderBy(x => x.TimeGenerated).Take(maxLogEntries).ToList(),
_fileHelper);
stopwatch.Stop();
EqtTrace.Verbose(
"EventLogDataContainer: Wrote {0} event log entries to file '{1}' in {2} seconds",
eventLogEntries.Count,
eventLogPath,
stopwatch.Elapsed.TotalSeconds.ToString(CultureInfo.InvariantCulture));
// Write the event log file
FileTransferInformation fileTransferInformation =
new(dataCollectionContext, eventLogPath, true, _fileHelper);
_dataSink.SendFileAsync(fileTransferInformation);
EqtTrace.Verbose(
"EventLogDataContainer: Event log successfully sent for data collection context '{0}'.",
dataCollectionContext.ToString());
return eventLogPath;
}
#region IDisposable Members
/// <summary>
/// Cleans up resources allocated by the data collector
/// </summary>
/// <param name="disposing">Not used since this class does not have a finalizer.</param>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
// Unregister events
_events.SessionStart -= _sessionStartEventHandler;
_events.SessionEnd -= _sessionEndEventHandler;
_events.TestCaseStart -= _testCaseStartEventHandler;
_events.TestCaseEnd -= _testCaseEndEventHandler;
// Unregister EventLogEntry Written.
foreach (var eventLogContainer in _eventLogContainerMap.Values)
{
eventLogContainer.Dispose();
}
// Delete all the temp event log directories
RemoveTempEventLogDirs(_eventLogDirectories);
}
#endregion
private static ISet<string> ParseCommaSeparatedList(string commaSeparatedList)
{
ISet<string> strings = new HashSet<string>();
string[] items = commaSeparatedList.Split(new char[] { ',' });
foreach (string item in items)
{
strings.Add(item.Trim());
}
return strings;
}
private void OnSessionStart(object sender, SessionStartEventArgs e!!)
{
ValidateArg.NotNull(e.Context, "SessionStartEventArgs.Context");
EqtTrace.Verbose("EventLogDataCollector: SessionStart received");
StartCollectionForContext(e.Context);
}
private void OnSessionEnd(object sender, SessionEndEventArgs e!!)
{
ValidateArg.NotNull(e.Context, "SessionEndEventArgs.Context");
EqtTrace.Verbose("EventLogDataCollector: SessionEnd received");
WriteCollectedEventLogEntries(e.Context, true, TimeSpan.MaxValue, DateTime.UtcNow);
}
private void OnTestCaseStart(object sender, TestCaseStartEventArgs e!!)
{
ValidateArg.NotNull(e.Context, "TestCaseStartEventArgs.Context");
if (!e.Context.HasTestCase)
{
Debug.Fail("Context is not for a test case");
ValidateArg.NotNull(e.Context.TestExecId, "TestCaseStartEventArgs.Context.HasTestCase");
}
EqtTrace.Verbose("EventLogDataCollector: TestCaseStart received for test '{0}'.", e.TestCaseName);
StartCollectionForContext(e.Context);
}
private void OnTestCaseEnd(object sender, TestCaseEndEventArgs e!!)
{
Debug.Assert(e.Context != null, "Context is null");
Debug.Assert(e.Context.HasTestCase, "Context is not for a test case");
EqtTrace.Verbose(
"EventLogDataCollector: TestCaseEnd received for test '{0}' with Test Outcome: {1}.",
e.TestCaseName,
e.TestOutcome);
WriteCollectedEventLogEntries(e.Context, false, TimeSpan.MaxValue, DateTime.UtcNow);
}
private void RemoveTempEventLogDirs(List<string> tempDirs)
{
if (tempDirs != null)
{
foreach (string dir in tempDirs)
{
// Delete only if the directory is empty
_fileHelper.DeleteEmptyDirectroy(dir);
}
}
}
private void StartCollectionForContext(DataCollectionContext dataCollectionContext)
{
lock (ContextMap)
{
var eventLogSessionContext = new EventLogSessionContext(_eventLogContainerMap);
ContextMap.Add(dataCollectionContext, eventLogSessionContext);
}
}
private void WriteCollectedEventLogEntries(
DataCollectionContext dataCollectionContext,
bool isSessionEnd,
TimeSpan requestedDuration,
DateTime timeRequestReceived)
{
var context = GetEventLogSessionContext(dataCollectionContext);
context.CreateEventLogContainerEndIndexMap();
List<EventLogEntry> eventLogEntries = new();
foreach (KeyValuePair<string, IEventLogContainer> kvp in _eventLogContainerMap)
{
try
{
if (isSessionEnd)
{
kvp.Value.EventLog.EnableRaisingEvents = false;
}
for (int i = context.EventLogContainerStartIndexMap[kvp.Key]; i <= context.EventLogContainerEndIndexMap[kvp.Key]; i++)
{
eventLogEntries.Add(kvp.Value.EventLogEntries[i]);
}
}
catch (Exception e)
{
_logger.LogWarning(
dataCollectionContext,
string.Format(
CultureInfo.InvariantCulture,
Resource.CleanupException,
kvp.Value.EventLog,
e.ToString()));
}
}
var fileName = WriteEventLogs(eventLogEntries, isSessionEnd ? int.MaxValue : MaxEntries, dataCollectionContext, requestedDuration, timeRequestReceived);
// Add the directory to the list
_eventLogDirectories.Add(Path.GetDirectoryName(fileName));
lock (ContextMap)
{
ContextMap.Remove(dataCollectionContext);
}
}
private void ConfigureEventLogNames(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
{
EventLogNames = new HashSet<string>();
string eventLogs = collectorNameValueConfigurationManager[EventLogConstants.SettingEventLogs];
if (eventLogs != null)
{
EventLogNames = ParseCommaSeparatedList(eventLogs);
EqtTrace.Verbose(
"EventLogDataCollector configuration: " + EventLogConstants.SettingEventLogs + "=" + eventLogs);
}
else
{
// Default to collecting these standard logs
EventLogNames.Add("System");
EventLogNames.Add("Application");
}
foreach (string eventLogName in EventLogNames)
{
try
{
// Create an EventLog object and add it to the eventLogContext if one does not already exist
if (!_eventLogContainerMap.ContainsKey(eventLogName))
{
IEventLogContainer eventLogContainer = new EventLogContainer(
eventLogName,
EventSources,
EntryTypes,
int.MaxValue,
_logger,
_dataCollectorContext);
_eventLogContainerMap.Add(eventLogName, eventLogContainer);
}
EqtTrace.Verbose("EventLogDataCollector: Created EventSource '{0}'", eventLogName);
}
catch (Exception ex)
{
_logger.LogError(
_dataCollectorContext,
new EventLogCollectorException(string.Format(CultureInfo.InvariantCulture, Resource.ReadError, eventLogName, Environment.MachineName), ex));
}
}
}
private void ConfigureEventSources(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
{
string eventSourcesStr = collectorNameValueConfigurationManager[EventLogConstants.SettingEventSources];
if (!string.IsNullOrEmpty(eventSourcesStr))
{
EventSources = ParseCommaSeparatedList(eventSourcesStr);
EqtTrace.Verbose(
"EventLogDataCollector configuration: " + EventLogConstants.SettingEventSources + "="
+ EventSources);
}
}
private void ConfigureEntryTypes(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
{
EntryTypes = new HashSet<EventLogEntryType>();
string entryTypesStr = collectorNameValueConfigurationManager[EventLogConstants.SettingEntryTypes];
if (entryTypesStr != null)
{
foreach (string entryTypestring in ParseCommaSeparatedList(entryTypesStr))
{
EntryTypes.Add(
(EventLogEntryType)Enum.Parse(typeof(EventLogEntryType), entryTypestring, true));
}
EqtTrace.Verbose(
"EventLogDataCollector configuration: " + EventLogConstants.SettingEntryTypes + "="
+ EntryTypes);
}
else
{
EntryTypes.Add(EventLogEntryType.Error);
EntryTypes.Add(EventLogEntryType.Warning);
EntryTypes.Add(EventLogEntryType.FailureAudit);
}
}
private void ConfigureMaxEntries(CollectorNameValueConfigurationManager collectorNameValueConfigurationManager)
{
string maxEntriesstring = collectorNameValueConfigurationManager[EventLogConstants.SettingMaxEntries];
if (maxEntriesstring != null)
{
try
{
MaxEntries = int.Parse(maxEntriesstring, CultureInfo.InvariantCulture);
// A negative or 0 value means no maximum
if (MaxEntries <= 0)
{
MaxEntries = int.MaxValue;
}
}
catch (FormatException)
{
MaxEntries = EventLogConstants.DefaultMaxEntries;
}
EqtTrace.Verbose(
"EventLogDataCollector configuration: " + EventLogConstants.SettingMaxEntries + "="
+ MaxEntries);
}
else
{
MaxEntries = EventLogConstants.DefaultMaxEntries;
}
}
private EventLogSessionContext GetEventLogSessionContext(DataCollectionContext dataCollectionContext)
{
EventLogSessionContext eventLogSessionContext;
bool eventLogContainerFound;
lock (ContextMap)
{
eventLogContainerFound = ContextMap.TryGetValue(dataCollectionContext, out eventLogSessionContext);
}
if (!eventLogContainerFound)
{
string msg = string.Format(
CultureInfo.InvariantCulture,
Resource.ContextNotFoundException,
dataCollectionContext.ToString());
throw new EventLogCollectorException(msg, null);
}
return eventLogSessionContext;
}
}
| 34.927562 | 193 | 0.639284 | [
"MIT"
] | ntovas/vstest | src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector/EventLogDataCollector.cs | 19,771 | C# |
using System;
using System.Collections.Generic;
namespace EncompassRest.Loans
{
/// <summary>
/// EdmLog
/// </summary>
public sealed partial class EdmLog : DirtyExtensibleObject, IIdentifiable
{
private DirtyList<LogAlert> _alerts;
private DirtyList<LogComment> _commentList;
private DirtyValue<string> _comments;
private DirtyValue<string> _creator;
private DirtyValue<DateTime?> _dateUtc;
private DirtyValue<string> _description;
private DirtyList<EdmDocument> _documents;
private DirtyValue<bool?> _fileAttachmentsMigrated;
private DirtyValue<string> _guid;
private DirtyValue<string> _id;
private DirtyValue<bool?> _isSystemSpecificIndicator;
private DirtyValue<int?> _logRecordIndex;
private DirtyValue<string> _systemId;
private DirtyValue<DateTime?> _updatedDateUtc;
private DirtyValue<string> _url;
/// <summary>
/// EdmLog Alerts
/// </summary>
public IList<LogAlert> Alerts { get => GetField(ref _alerts); set => SetField(ref _alerts, value); }
/// <summary>
/// EdmLog CommentList
/// </summary>
public IList<LogComment> CommentList { get => GetField(ref _commentList); set => SetField(ref _commentList, value); }
/// <summary>
/// EdmLog Comments
/// </summary>
public string Comments { get => _comments; set => SetField(ref _comments, value); }
/// <summary>
/// EdmLog Creator
/// </summary>
public string Creator { get => _creator; set => SetField(ref _creator, value); }
/// <summary>
/// EdmLog DateUtc
/// </summary>
public DateTime? DateUtc { get => _dateUtc; set => SetField(ref _dateUtc, value); }
/// <summary>
/// EdmLog Description
/// </summary>
public string Description { get => _description; set => SetField(ref _description, value); }
/// <summary>
/// EdmLog Documents
/// </summary>
public IList<EdmDocument> Documents { get => GetField(ref _documents); set => SetField(ref _documents, value); }
/// <summary>
/// EdmLog FileAttachmentsMigrated
/// </summary>
public bool? FileAttachmentsMigrated { get => _fileAttachmentsMigrated; set => SetField(ref _fileAttachmentsMigrated, value); }
/// <summary>
/// EdmLog Guid
/// </summary>
public string Guid { get => _guid; set => SetField(ref _guid, value); }
/// <summary>
/// EdmLog Id
/// </summary>
public string Id { get => _id; set => SetField(ref _id, value); }
/// <summary>
/// EdmLog IsSystemSpecificIndicator
/// </summary>
public bool? IsSystemSpecificIndicator { get => _isSystemSpecificIndicator; set => SetField(ref _isSystemSpecificIndicator, value); }
/// <summary>
/// EdmLog LogRecordIndex
/// </summary>
public int? LogRecordIndex { get => _logRecordIndex; set => SetField(ref _logRecordIndex, value); }
/// <summary>
/// EdmLog SystemId
/// </summary>
public string SystemId { get => _systemId; set => SetField(ref _systemId, value); }
/// <summary>
/// EdmLog UpdatedDateUtc
/// </summary>
public DateTime? UpdatedDateUtc { get => _updatedDateUtc; set => SetField(ref _updatedDateUtc, value); }
/// <summary>
/// EdmLog Url
/// </summary>
public string Url { get => _url; set => SetField(ref _url, value); }
}
} | 35.784314 | 141 | 0.595068 | [
"MIT"
] | PLoftis02/EncompassRest | src/EncompassRest/Loans/EdmLog.cs | 3,650 | C# |
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu-framework/master/LICENCE
using NUnit.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Input.States;
using osu.Framework.MathUtils;
using osu.Framework.Testing;
using osu.Framework.Timing;
using OpenTK;
using OpenTK.Graphics;
namespace osu.Framework.Tests.Visual
{
public class TestCaseLayoutDurations : TestCase
{
private ManualClock manualClock;
private Container autoSizeContainer;
private FillFlowContainer fillFlowContainer;
private Box box1, box2;
private const float duration = 1000;
private const float changed_value = 100;
[SetUp]
public void SetUp()
{
manualClock = new ManualClock();
Children = new Drawable[]
{
autoSizeContainer = new Container
{
Clock = new FramedClock(manualClock),
AutoSizeEasing = Easing.None,
Children = new[]
{
new Box
{
Colour = Color4.Red,
RelativeSizeAxes = Axes.Both
},
box1 = new Box
{
Colour = Color4.Transparent,
Size = Vector2.Zero,
},
}
},
fillFlowContainer = new FillFlowContainer
{
Clock = new FramedClock(manualClock),
Position = new Vector2(0, 200),
LayoutEasing = Easing.None,
Children = new Drawable[]
{
new Box { Colour = Color4.Red, Size = new Vector2(100) },
box2 = new Box { Colour = Color4.Blue, Size = new Vector2(100) },
}
}
};
paused = false;
autoSizeContainer.FinishTransforms();
fillFlowContainer.FinishTransforms();
autoSizeContainer.AutoSizeAxes = Axes.None;
autoSizeContainer.AutoSizeDuration = 0;
autoSizeContainer.Size = Vector2.Zero;
box1.Size = Vector2.Zero;
fillFlowContainer.LayoutDuration = 0;
fillFlowContainer.Size = new Vector2(200, 200);
}
private void check(float ratio) =>
AddAssert($"Check @{ratio}", () => Precision.AlmostEquals(autoSizeContainer.Size, new Vector2(changed_value * ratio)) &&
Precision.AlmostEquals(box2.Position, new Vector2(changed_value * (1 - ratio), changed_value * ratio)));
private void skipTo(float ratio) => AddStep($"skip to {ratio}", () => { manualClock.CurrentTime = duration * ratio; });
[Test]
public void TestChangeAfterDuration()
{
AddStep("Start transformation", () =>
{
paused = true;
manualClock.CurrentTime = 0;
autoSizeContainer.FinishTransforms();
fillFlowContainer.FinishTransforms();
autoSizeContainer.AutoSizeAxes = Axes.Both;
autoSizeContainer.AutoSizeDuration = duration;
box1.Size = new Vector2(100);
fillFlowContainer.LayoutDuration = duration;
fillFlowContainer.Width = 100;
});
foreach (var ratio in new[] { .25f, .5f, .75f, 1 })
{
skipTo(ratio);
check(ratio);
}
}
[Test]
public void TestInterruptExistingDuration()
{
AddStep("Start transformation", () =>
{
paused = true;
manualClock.CurrentTime = 0;
autoSizeContainer.FinishTransforms();
fillFlowContainer.FinishTransforms();
autoSizeContainer.AutoSizeAxes = Axes.Both;
autoSizeContainer.AutoSizeDuration = duration;
fillFlowContainer.LayoutDuration = duration;
box1.Size = new Vector2(changed_value);
fillFlowContainer.Width = changed_value;
});
skipTo(0.5f);
check(0.5f);
AddStep("set duration 0", () =>
{
autoSizeContainer.AutoSizeDuration = 0;
fillFlowContainer.LayoutDuration = 0;
});
// transform should still be playing
skipTo(0.75f);
check(0.75f);
// check rewind works just for fun
skipTo(0.5f);
check(0.5f);
AddStep("alter values", () =>
{
box1.Size = new Vector2(0);
fillFlowContainer.Width = 200;
});
// fully complete
check(0);
// no remaining transform
skipTo(1);
check(0);
}
private bool paused;
protected override void Update()
{
if (autoSizeContainer != null)
{
if (!paused) manualClock.CurrentTime = Clock.CurrentTime;
autoSizeContainer.Children[0].Invalidate();
fillFlowContainer.Invalidate();
}
base.Update();
}
protected override bool OnClick(InputState state)
{
paused = !paused;
return base.OnClick(state);
}
}
}
| 32.540984 | 152 | 0.490344 | [
"MIT"
] | e8035669/osu-framework | osu.Framework.Tests/Visual/TestCaseLayoutDurations.cs | 5,775 | C# |
namespace Raiding
{
public class Paladin : BaseHero
{
public override int Power => 100;
public Paladin(string name) : base(name)
{
}
public override string CastAbility()
{
return $"{GetType().Name} - {this.Name} healed for {this.Power}";
}
}
} | 20.375 | 77 | 0.527607 | [
"MIT"
] | NIKONaaaaa/Basic | 04OOP/04PolymorphismExercise/Raiding/Classes/Paladin.cs | 328 | C# |
namespace xLog
{
public struct RawLogLine
{
/// <summary>
/// The source of this line
/// </summary>
public string Source;
/// <summary>
/// The format of this line
/// </summary>
public string Format;
/// <summary>
/// The arguments for the format string of this line
/// </summary>
public object[] Args;
public RawLogLine(string Source, string Format)
{
this.Source = Source;
this.Format = Format;
this.Args = null;
}
public RawLogLine(string Source, string Format, object[] Args)
{
this.Source = Source;
this.Format = Format;
this.Args = Args;
}
}
} | 22.457143 | 70 | 0.489822 | [
"MIT"
] | dsisco11/xLog | xLog/Structs/RawLogLine.cs | 788 | C# |
using System;
using System.Collections.Generic;
using System.Text;
using CGALDotNetGeometry.Numerics;
using CGALDotNetGeometry.Shapes;
namespace CGALDotNet.Triangulations
{
public enum TRIANGULATION2
{
TRIANGULATION,
DELAUNAY,
CONSTRAINED,
CONSTRAINED_DELAUNAY
}
/// <summary>
/// Base triangulation class for Triangulation, DelaunayTriangulation,
/// ConstrainedTriangulation and ConstrainedDelaunayTriangulation.
/// </summary>
public abstract class BaseTriangulation2 : CGALObject
{
/// <summary>
///
/// </summary>
private BaseTriangulation2()
{
}
/// <summary>
///
/// </summary>
/// <param name="kernel"></param>
internal BaseTriangulation2(BaseTriangulationKernel2 kernel)
{
Kernel = kernel;
Ptr = Kernel.Create();
}
/// <summary>
///
/// </summary>
/// <param name="kernel"></param>
/// <param name="points"></param>
internal BaseTriangulation2(BaseTriangulationKernel2 kernel, Point2d[] points)
{
Kernel = kernel;
Ptr = Kernel.Create();
Insert(points, points.Length);
}
/// <summary>
///
/// </summary>
/// <param name="kernel"></param>
/// <param name="ptr"></param>
internal BaseTriangulation2(BaseTriangulationKernel2 kernel, IntPtr ptr) : base(ptr)
{
Kernel = kernel;
}
/// <summary>
/// The triangulations kernel.
/// </summary>
protected private BaseTriangulationKernel2 Kernel { get; private set; }
/// <summary>
/// The number of verices in the triangulation.
/// </summary>
public int VertexCount => Kernel.VertexCount(Ptr);
/// <summary>
/// The number of triangles in the triangulation.
/// </summary>
public int TriangleCount => Kernel.FaceCount(Ptr);
/// <summary>
/// The number of indices need to represent the
/// triangulation (number of triangles * 3).
/// </summary>
public int IndiceCount => TriangleCount * 3;
/// <summary>
/// A number that will change if the unmanaged
/// triangulation model changes.
/// </summary>
public int BuildStamp => Kernel.BuildStamp(Ptr);
/// <summary>
/// Clear the triangulation.
/// </summary>
public void Clear()
{
Kernel.Clear(Ptr);
}
/// <summary>
/// Is this a valid triangulation.
/// </summary>
/// <param name="level"></param>
/// <returns>True if valid.</returns>
public bool IsValid(int level = 0)
{
return Kernel.IsValid(Ptr, level);
}
/// <summary>
/// Force the face and vertex indices to be set.
/// </summary>
public void ForceSetIndices()
{
Kernel.SetIndices(Ptr);
}
/// <summary>
/// Inserts point p in the triangulation.
///If point coincides with an already existing vertex the triangulation remains unchanged.
///If point is on an edge, the two incident faces are split in two.
///If point is strictly inside a face of the triangulation, the face is split in three.
///If point is strictly outside the convex hull, p is linked to all visible points on the
///convex hull to form the new triangulation.
/// </summary>
/// <param name="point">The point to insert.</param>
public void Insert(Point2d point)
{
Kernel.InsertPoint(Ptr, point);
}
/// <summary>
/// Inserts points into the triangulation.
///If point coincides with an already existing vertex the triangulation remains unchanged.
///If point is on an edge, the two incident faces are split in two.
///If point is strictly inside a face of the triangulation, the face is split in three.
///If point is strictly outside the convex hull, p is linked to all visible points on the
///convex hull to form the new triangulation.
/// </summary>
/// <param name="points">The points to insert.</param>
/// <param name="count">The ararys length.</param>
public void Insert(Point2d[] points, int count)
{
ErrorUtil.CheckArray(points, count);
Kernel.InsertPoints(Ptr, points, count);
}
/// <summary>
/// Get a array of all the points in the triangulation.
/// </summary>
/// <param name="points">The point array.</param>
/// <param name="count">The ararys length.</param>
public void GetPoints(Point2d[] points, int count)
{
ErrorUtil.CheckArray(points, count);
Kernel.GetPoints(Ptr, points, count);
}
/// <summary>
/// Get a array of the triangle indices.
/// </summary>
/// <param name="indices"></param>
/// <param name="count">The ararys length.</param>
public void GetIndices(int[] indices, int count)
{
ErrorUtil.CheckArray(indices, count);
Kernel.GetIndices(Ptr, indices, count);
}
/// <summary>
/// Get the vertices point.
/// </summary>
/// <param name="index">The vertex index.</param>
/// <param name="point">The vertices point.</param>
/// <returns>True if the vertex was found.</returns>
public bool GetPoint(int index, out Point2d point)
{
TriVertex2 vertex;
if(Kernel.GetVertex(Ptr, index, out vertex))
{
point = vertex.Point;
return true;
}
else
{
point = new Point2d();
return false;
}
}
/// <summary>
/// Get the point.
/// </summary>
/// <param name="index">The points index.</param>
/// <returns>The point</returns>
/// <exception cref="ArgumentException">If point with the index not found.</exception>
public Point2d GetPoint(int index)
{
if (GetPoint(index, out Point2d point))
return point;
else
throw new ArgumentException("Cound not get point " + index);
}
/// <summary>
/// Get a vertex.
/// </summary>
/// <param name="index">The vertex index.</param>
/// <param name="vertex">The vertex.</param>
/// <returns>True if the vertex was found.</returns>
public bool GetVertex(int index, out TriVertex2 vertex)
{
return Kernel.GetVertex(Ptr, index, out vertex);
}
/// <summary>
/// Get the vertex.
/// </summary>
/// <param name="index">The vertexs index.</param>
/// <returns>The vertexs</returns>
/// <exception cref="ArgumentException">If vertex with the index not found.</exception>
public TriVertex2 GetVertex(int index)
{
if (GetVertex(index, out TriVertex2 vertex))
return vertex;
else
throw new ArgumentException("Cound not get vertex " + index);
}
/// <summary>
/// Get a array of all the vertices.
/// </summary>
/// <param name="vertices">The vertex array.</param>
/// <param name="count">The ararys length.</param>
public void GetVertices(TriVertex2[] vertices, int count)
{
ErrorUtil.CheckArray(vertices, count);
Kernel.GetVertices(Ptr, vertices, count);
}
/// <summary>
/// Get a triangule face.
/// </summary>
/// <param name="index">The faces index</param>
/// <param name="face">The face</param>
/// <returns>True if the face was found.</returns>
public bool GetFace(int index, out TriFace2 face)
{
return Kernel.GetFace(Ptr, index, out face);
}
/// <summary>
/// Get the face.
/// </summary>
/// <param name="index">The faces index.</param>
/// <returns>The Faces</returns>
/// <exception cref="ArgumentException">If face with the index not found.</exception>
public TriFace2 GetFace(int index)
{
if (GetFace(index, out TriFace2 face))
return face;
else
throw new ArgumentException("Cound not get face " + index);
}
/// <summary>
/// Get a array of all the triangle faces.
/// </summary>
/// <param name="faces">A array of faces.</param>
/// <param name="count">The ararys length.</param>
public void GetFaces(TriFace2[] faces, int count)
{
ErrorUtil.CheckArray(faces, count);
Kernel.GetFaces(Ptr, faces, count);
}
/// <summary>
/// Get the segment between the face and a neighbour.
/// </summary>
/// <param name="faceIndex">The faces index</param>
/// <param name="neighbourIndex">The neighbour (0-2) index in the face.</param>
/// <param name="segment">The segment.</param>
/// <returns>True if the face was found.</returns>
public bool GetSegment(int faceIndex, int neighbourIndex, out Segment2d segment)
{
return Kernel.GetSegment(Ptr, faceIndex, neighbourIndex, out segment);
}
/// <summary>
/// Get the segment between the face and a neighbour.
/// </summary>
/// <param name="faceIndex">The faces index</param>
/// <param name="neighbourIndex">The neighbour (0-2) index in the face.</param>
/// <returns>The segment</returns>
/// <exception cref="ArgumentException">If segment with the index not found.</exception>
public Segment2d GetSegment(int faceIndex, int neighbourIndex)
{
if (GetSegment(faceIndex, neighbourIndex, out Segment2d tri))
return tri;
else
throw new ArgumentException("Cound not get seg at face index " + faceIndex);
}
/// <summary>
/// Get a faces triangle.
/// </summary>
/// <param name="faceIndex">The faces index</param>
/// <param name="triangle">The triangle</param>
/// <returns>True if the face was found</returns>
public bool GetTriangle(int faceIndex, out Triangle2d triangle)
{
return Kernel.GetTriangle(Ptr, faceIndex, out triangle);
}
/// <summary>
/// Get the triangle.
/// </summary>
/// <param name="index">The triangles index.</param>
/// <returns>The triangle</returns>
/// <exception cref="ArgumentException">If triangle with the index not found.</exception>
public Triangle2d GetTriangle(int index)
{
if (GetTriangle(index, out Triangle2d tri))
return tri;
else
throw new ArgumentException("Cound not get tri " + index);
}
/// <summary>
/// Get a array of all the triangles.
/// </summary>
/// <param name="triangles">A array of triangules.</param>
/// <param name="count">The ararys length.</param>
public void GetTriangles(Triangle2d[] triangles, int count)
{
ErrorUtil.CheckArray(triangles, count);
Kernel.GetTriangles(Ptr, triangles, count);
}
/// <summary>
/// Get a faces circumcenter.
/// </summary>
/// <param name="faceIndex">The faces index</param>
/// <param name="circumcenter">The circumcenter. A circle
/// that passes through all three of the triangules vertices.</param>
/// <returns>True if the face was found.</returns>
public bool GetCircumcenter(int faceIndex, out Point2d circumcenter)
{
return Kernel.GetCircumcenter(Ptr, faceIndex, out circumcenter);
}
/// <summary>
/// Get the circumcenter.
/// </summary>
/// <param name="index">The circumcenters index.</param>
/// <returns>The circumcenter</returns>
/// <exception cref="ArgumentException">If circumcenter with the index not found.</exception>
public Point2d GetCircumcenter(int index)
{
if (GetCircumcenter(index, out Point2d cir))
return cir;
else
throw new ArgumentException("Cound not get circumcenter " + index);
}
/// <summary>
/// Get a array of all the circumcenters.
/// </summary>
/// <param name="circumcenters">A array of circumcenters.</param>
/// <param name="count">The ararys length.</param>
public void GetCircumcenters(Point2d[] circumcenters, int count)
{
ErrorUtil.CheckArray(circumcenters, count);
Kernel.GetCircumcenters(Ptr, circumcenters, count);
}
/// <summary>
/// Get the index of the faces neighbour.
/// </summary>
/// <param name="faceIndex">The faces index.</param>
/// <param name="neighbourIndex">The neighbour (0-2) index in the face.</param>
/// <returns>The index of the neighbour face in the triangulation.
/// -1 if there is no neighbour face at this index.</returns>
public int NeighbourIndex(int faceIndex, int neighbourIndex)
{
if (neighbourIndex < 0 || neighbourIndex > 2)
return -1;
return Kernel.NeighbourIndex(Ptr, faceIndex, neighbourIndex);
}
/// <summary>
/// Locate the face the point hits.
/// </summary>
/// <param name="point">The point.</param>
/// <param name="face">The face the point has hit.</param>
/// <returns>True if the point hit a face.</returns>
public bool LocateFace(Point2d point, out TriFace2 face)
{
return Kernel.LocateFace(Ptr, point, out face);
}
/// <summary>
/// Locate the closest vertex to point.
/// </summary>
/// <param name="point">The point</param>
/// <param name="radius">The distance the point must be within to count as hitting the vertex.</param>
/// <param name="vertex">The closest vertex.</param>
/// <returns>True if point hit a face and found a vertex.</returns>
public bool LocateVertex(Point2d point, double radius, out TriVertex2 vertex)
{
//Locate the face the point hit.
vertex = new TriVertex2();
if (Kernel.LocateFace(Ptr, point, out TriFace2 face))
{
//Find the closest vertex in the face to the point.
double min = double.PositiveInfinity;
TriVertex2 closest = new TriVertex2();
for (int i = 0; i < 3; i++)
{
int v = face.GetVertexIndex(i);
if (v == -1) continue;
//If vertex found find its distance to point.
if(GetVertex(v, out vertex))
{
var sqdist = Point2d.SqrDistance(vertex.Point, point);
if(sqdist < min)
{
min = sqdist;
closest = vertex;
}
}
}
//Face had no valid vertices.
//Should not happen but check anyway.
if (min == double.PositiveInfinity || min > radius * radius)
return false;
else
{
vertex = closest;
return true;
}
}
return false;
}
/// <summary>
/// Locate the closest edge and segment to point.
/// </summary>
/// <param name="point">The point</param>
/// <param name="radius">The distance the point must be within to count as hitting the edge.</param>
/// <param name="edge">The closest edge.</param>
/// <returns>True if the point hit a face and found a edge.</returns>
public bool LocateEdge(Point2d point, double radius, out TriEdge2 edge)
{
//Locate the face the point hit.
edge = new TriEdge2();
if (Kernel.LocateFace(Ptr, point, out TriFace2 face))
{
//Find the closest edge to the point in the face.
double min = double.PositiveInfinity;
TriEdge2 closest = new TriEdge2();
for (int i = 0; i < 3; i++)
{
int v1 = face.GetVertexIndex(i+0);
int v2 = face.GetVertexIndex(i+1);
if (v1 == -1 || v2 == -1) continue;
if (GetVertex(v1, out TriVertex2 vertex1) &&
GetVertex(v2, out TriVertex2 vertex2))
{
var p1 = vertex1.Point;
var p2 = vertex2.Point;
var seg = new Segment2d(p1, p2);
var sqdist = seg.SqrDistance(point);
if (sqdist < min)
{
min = sqdist;
int neighboutIndex = MathUtil.Wrap(i - 1, 3);
closest = new TriEdge2(face.Index, neighboutIndex);
closest.Segment = new Segment2d(p1, p2);
}
}
}
//Face had no valid vertices.
//Should not happen but check anyway.
if (min == double.PositiveInfinity || min > radius * radius)
return false;
else
{
edge = closest;
return true;
}
}
return false;
}
/// <summary>
/// Remove the vertex.
/// </summary>
/// <param name="index">The vertices index.</param>
/// <returns>True if removed.</returns>
public bool RemoveVertex(int index)
{
return Kernel.RemoveVertex(Ptr, index);
}
/// <summary>
/// Flip a edge between the face and a neighbour.
/// </summary>
/// <param name="faceIndex">The faces index</param>
/// <param name="neighbourIndex">The neighbour (0-2) index in the face.</param>
/// <returns>True if the edge was flipped.</returns>
public bool FlipEdge(int faceIndex, int neighbourIndex)
{
if (neighbourIndex < 0 || neighbourIndex > 2)
return false;
return Kernel.FlipEdge(Ptr, faceIndex, neighbourIndex);
}
/// <summary>
/// Translate the triangulation.
/// </summary>
/// <param name="translation">The amount to translate.</param>
public void Translate(Point2d translation)
{
Kernel.Transform(Ptr, translation, 0, 1);
}
/// <summary>
/// Rotate the triangulation.
/// </summary>
/// <param name="rotation">The amount to rotate in radians.</param>
public void Rotate(Radian rotation)
{
Kernel.Transform(Ptr, Point2d.Zero, rotation.angle, 1);
}
/// <summary>
/// Scale the triangulation.
/// </summary>
/// <param name="scale">The amount to scale.</param>
public void Scale(double scale)
{
Kernel.Transform(Ptr, Point2d.Zero, 0, scale);
}
/// <summary>
/// Transform the triangulation with a TRS matrix.
/// </summary>
/// <param name="translation">The amount to translate.</param>
/// <param name="rotation">The amount to rotate.</param>
/// <param name="scale">The amount to scale.</param>
public void Transform(Point2d translation, Radian rotation, double scale)
{
Kernel.Transform(Ptr, translation, rotation.angle, scale);
}
/// <summary>
///
/// </summary>
/// <param name="builder"></param>
public override void Print(StringBuilder builder)
{
builder.AppendLine(ToString());
}
/// <summary>
/// Release any unmanaged resources.
/// </summary>
protected override void ReleasePtr()
{
Kernel.Release(Ptr);
}
}
}
| 35.509338 | 110 | 0.529237 | [
"MIT"
] | unitycoder/CGALDotNet | CGALDotNet/Triangulations/BaseTriangulation2.cs | 20,917 | C# |
using System;
namespace AndroidUsbSerial
{
public class UsbSerialException : Exception
{
public UsbSerialException() : base() { }
public UsbSerialException(string message, Exception innerException) : base(message, innerException) { }
public UsbSerialException(string message) : base(message) { }
public UsbSerialException(Exception innerException) : base("An unexpected USB serial device error occurred.", innerException) { }
}
}
| 28.235294 | 137 | 0.708333 | [
"MIT"
] | ellisnet/AndroidUsbSerial | source/AndroidUsbSerial/UsbSerialException.cs | 482 | C# |
using System;
namespace Generated.Builders;
[AttributeUsage(AttributeTargets.Class)]
public class OrderedBuilderAttribute : Attribute
{
}
| 15.555556 | 48 | 0.821429 | [
"MIT"
] | zarnor/Generated | src/Generated.Builders/Attributes/OrderedBuilderAttribute.cs | 140 | C# |
namespace TransformTemplateView.Models;
public class Section : BookComposite
{
public Section(string name) : base(name) { }
}
| 18.857143 | 48 | 0.742424 | [
"MIT"
] | PacktPublishing/An-Atypical-ASP.NET-Core-6-Design-Patterns-Guide | C17/src/TransformTemplateView/Models/Section.cs | 134 | C# |
/**
* Copyright 2015 IBM Corp. 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.
* 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.
*
*/
using System.Collections.Generic;
using IBM.Watson.DeveloperCloud.Connection;
using IBM.Watson.DeveloperCloud.Utilities;
using IBM.Watson.DeveloperCloud.Logging;
using System.Text;
using MiniJSON;
using System;
using FullSerializer;
using UnityEngine.Networking;
namespace IBM.Watson.DeveloperCloud.Services.ToneAnalyzer.v3
{
/// <summary>
/// This class wraps the Tone Analyzer service.
/// <a href="http://www.ibm.com/watson/developercloud/tone-analyzer.html">Tone Analyzer Service</a>
/// </summary>
public class ToneAnalyzer : IWatsonService
{
#region Private Data
private const string ServiceId = "ToneAnalyzerV3";
private fsSerializer _serializer = new fsSerializer();
private Credentials _credentials = null;
private string _url = "https://gateway.watsonplatform.net/tone-analyzer/api";
private string _versionDate;
#endregion
#region Public Properties
/// <summary>
/// Gets and sets the endpoint URL for the service.
/// </summary>
public string Url
{
get { return _url; }
set { _url = value; }
}
/// <summary>
/// Gets and sets the versionDate of the service.
/// </summary>
public string VersionDate
{
get
{
if (string.IsNullOrEmpty(_versionDate))
throw new ArgumentNullException("VersionDate cannot be null. Use a VersionDate formatted as `YYYY-MM-DD`");
return _versionDate;
}
set { _versionDate = value; }
}
/// <summary>
/// Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.
/// </summary>
public Credentials Credentials
{
get { return _credentials; }
set
{
_credentials = value;
if (!string.IsNullOrEmpty(_credentials.Url))
{
_url = _credentials.Url;
}
}
}
private bool disableSslVerification = false;
/// <summary>
/// Gets and sets the option to disable ssl verification
/// </summary>
public bool DisableSslVerification
{
get { return disableSslVerification; }
set { disableSslVerification = value; }
}
#endregion
#region Constructor
public ToneAnalyzer(Credentials credentials)
{
if (credentials.HasCredentials() || credentials.HasWatsonAuthenticationToken() || credentials.HasIamTokenData())
{
Credentials = credentials;
if (string.IsNullOrEmpty(credentials.Url))
{
credentials.Url = Url;
}
}
else
{
throw new WatsonException("Please provide a username and password or authorization token to use the Tone Analyzer service. For more information, see https://github.com/watson-developer-cloud/unity-sdk/#configuring-your-service-credentials");
}
}
#endregion
#region Callback delegates
/// <summary>
/// Success callback delegate.
/// </summary>
/// <typeparam name="T">Type of the returned object.</typeparam>
/// <param name="response">The returned object.</param>
/// <param name="customData">user defined custom data including raw json.</param>
public delegate void SuccessCallback<T>(T response, Dictionary<string, object> customData);
/// <summary>
/// Fail callback delegate.
/// </summary>
/// <param name="error">The error object.</param>
/// <param name="customData">User defined custom data</param>
public delegate void FailCallback(RESTConnector.Error error, Dictionary<string, object> customData);
#endregion
#region Get Tone
private const string ToneEndpoint = "/v3/tone";
/// <summary>
/// Gets the tone analyze.
/// </summary>
/// <returns><c>true</c>, if tone analyze was gotten, <c>false</c> otherwise.</returns>
/// <param name="successCallback">The success callback.</param>
/// <param name="failCallback">The fail callback.</param>
/// <param name="text">Text.</param>
/// <param name="data">Data.</param>
public bool GetToneAnalyze(SuccessCallback<ToneAnalysis> successCallback, FailCallback failCallback, string text, Dictionary<string, object> customData = null)
{
if (successCallback == null)
throw new ArgumentNullException("successCallback");
if (failCallback == null)
throw new ArgumentNullException("failCallback");
RESTConnector connector = RESTConnector.GetConnector(Credentials, ToneEndpoint);
if (connector == null)
return false;
GetToneAnalyzerRequest req = new GetToneAnalyzerRequest();
req.SuccessCallback = successCallback;
req.FailCallback = failCallback;
req.HttpMethod = UnityWebRequest.kHttpVerbPOST;
req.DisableSslVerification = DisableSslVerification;
req.CustomData = customData == null ? new Dictionary<string, object>() : customData;
if (req.CustomData.ContainsKey(Constants.String.CUSTOM_REQUEST_HEADERS))
{
foreach (KeyValuePair<string, string> kvp in req.CustomData[Constants.String.CUSTOM_REQUEST_HEADERS] as Dictionary<string, string>)
{
req.Headers.Add(kvp.Key, kvp.Value);
}
}
req.OnResponse = GetToneAnalyzerResponse;
Dictionary<string, string> upload = new Dictionary<string, string>();
upload["text"] = "\"" + text + "\"";
req.Send = Encoding.UTF8.GetBytes(Json.Serialize(upload));
req.Headers["Content-Type"] = "application/json";
req.Parameters["version"] = VersionDate;
req.Parameters["sentences"] = "true";
return connector.Send(req);
}
private class GetToneAnalyzerRequest : RESTConnector.Request
{
/// <summary>
/// The success callback.
/// </summary>
public SuccessCallback<ToneAnalysis> SuccessCallback { get; set; }
/// <summary>
/// The fail callback.
/// </summary>
public FailCallback FailCallback { get; set; }
/// <summary>
/// Custom data.
/// </summary>
public Dictionary<string, object> CustomData { get; set; }
};
private void GetToneAnalyzerResponse(RESTConnector.Request req, RESTConnector.Response resp)
{
ToneAnalysis result = new ToneAnalysis();
fsData data = null;
Dictionary<string, object> customData = ((GetToneAnalyzerRequest)req).CustomData;
customData.Add(Constants.String.RESPONSE_HEADERS, resp.Headers);
if (resp.Success)
{
try
{
fsResult r = fsJsonParser.Parse(Encoding.UTF8.GetString(resp.Data), out data);
if (!r.Succeeded)
throw new WatsonException(r.FormattedMessages);
object obj = result;
r = _serializer.TryDeserialize(data, obj.GetType(), ref obj);
if (!r.Succeeded)
throw new WatsonException(r.FormattedMessages);
customData.Add("json", data);
}
catch (Exception e)
{
Log.Error("ToneAnalyzer.GetToneAnalyzerResponse()", "GetToneAnalyzerResponse Exception: {0}", e.ToString());
resp.Success = false;
}
}
if (resp.Success)
{
if (((GetToneAnalyzerRequest)req).SuccessCallback != null)
((GetToneAnalyzerRequest)req).SuccessCallback(result, customData);
}
else
{
if (((GetToneAnalyzerRequest)req).FailCallback != null)
((GetToneAnalyzerRequest)req).FailCallback(resp.Error, customData);
}
}
#endregion
#region IWatsonService interface
/// <exclude />
public string GetServiceID()
{
return ServiceId;
}
#endregion
}
}
| 37.739837 | 257 | 0.579276 | [
"MIT"
] | RealityVirtually2019/heAR | TestML/Assets/Watson/Scripts/Services/ToneAnalyzer/v3/ToneAnalyzer.cs | 9,286 | C# |
using Newtonsoft.Json;
namespace TheMovie.Service.ViewModel
{
public class AuthViewModel
{
[JsonProperty("request_token")]
public string RequestToken { get; set; }
}
}
| 18 | 48 | 0.661616 | [
"MIT"
] | DarkSideMoon/TheMovie | TheMovie.Service/ViewModel/AuthViewModel.cs | 200 | C# |
using BarcodeLib;
using EasyKeys.Extensions.Images;
using EasyKeys.Extensions.Images.Services;
using Polly;
namespace Microsoft.Extensions.DependencyInjection
{
public static class ImageServiceCollectionExtensions
{
/// <summary>
/// Adds image processing i.e. resize. Also add image download.
/// </summary>
/// <param name="services"></param>
/// <param name="policySelector"></param>
/// <returns></returns>
public static IServiceCollection AddImageProcessing(
this IServiceCollection services,
Func<IServiceProvider, HttpRequestMessage, IAsyncPolicy<HttpResponseMessage>>? policySelector = null)
{
var builder = services
.AddHttpClient<IImageDownloadService, ImageDownloadService>();
// adds policy.
if (policySelector != null)
{
builder.AddPolicyHandler(policySelector);
}
services.AddScoped<IImageGenerationService, ImageGenerationService>();
services.AddTransient((sp) => new Barcode());
return services;
}
}
}
| 29.794872 | 113 | 0.623064 | [
"MIT"
] | easykeys/EasyKeys.Extensions | src/EasyKeys.Extensions.Images/DependencyInjection/ImageServiceCollectionExtensions.cs | 1,164 | C# |
//IntakeHelpers.cs
//
// Copyright © 2016-2021 Mavidian Technologies Limited Liability Company. 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.
// 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.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace Mavidian.DataConveyer.Intake
{
/// <summary>
/// Helper methods, such as extension methods to assist in intake processing
/// </summary>
internal static class IntakeHelpers
{
/// <summary>
/// Lazily returns a sequence of lines from the input file
/// </summary>
/// <param name="inputFileName"></param>
/// <returns></returns>
internal static IEnumerable<string> GetInputLinesFromFile(string inputFileName)
{
//TODO: Message when file does not exist
using (StreamReader reader = File.OpenText(inputFileName))
{
string line;
while ((line = reader.ReadLine()) != null)
{
yield return line;
}
}
}
/// <summary>
/// Split line into tokens based on provided regex pattern.
/// </summary>
/// <param name="line">Input line to be split.</param>
/// <param name="regex">Regex that splits input line and captures a collection of tokens to be extracted.</param>
/// <param name="groupToExtract">Index of the group (within the match) that contains the token to return.</param>
/// <returns></returns>
internal static IEnumerable<string> TokenizeLineUsingRegex(this string line, Regex regex, int groupToExtract)
{
foreach (Match m in regex.Matches(line))
{
yield return m.Groups[groupToExtract].Value;
}
}
/// <summary>
/// Split line into tokens based on provided array of regex patterns
/// </summary>
/// <param name="line">Input line</param>
/// <param name="defs">Array of tuples consisting of field names and corresponding Regex patterns</param>
/// <returns>A token in the form of key=value</returns>
internal static IEnumerable<string> TokenizeUsingArbitraryDefs(this string line, IEnumerable<Tuple<string, string>> defs)
{
foreach (Tuple<string, string> def in defs)
{
var regex = GetMemoizedRegex(def.Item2);
yield return def.Item1 + "=" + regex.Match(line).ToString();
}
}
/// <summary>
/// Get Regex object for a given regular expression
/// </summary>
/// <param name="expression">Regular expression</param>
/// <returns>Regex object created for the first time (and cached, so that it is not recreated during subsequent calls)</returns>
private static Regex GetMemoizedRegex(string expression)
{
var cache = new Dictionary<string, Regex>();
if (cache.TryGetValue(expression, out Regex retVal)) return retVal;
return cache[expression] = new Regex(expression);
}
/// <summary>
/// Remove whitespace before opening quote in quoted string
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
internal static string TrimInFrontOfQuote(this string value)
{
if (value.Length == 0) return value;
var trimmedVal = value.TrimStart();
return trimmedVal[0] == '"' ? trimmedVal : value;
}
/// <summary>
/// Remove surrounding quotes and unescape inner quotes from a string value (unless retainQuotes is true)
/// </summary>
/// <param name="value"></param>
/// <param name="retainQuotes"></param>
/// <returns></returns>
internal static string UnquoteIfNeeded(this string value, bool retainQuotes)
{
if (retainQuotes || value.Length == 0 || value[0] != '"')
{
return value;
}
else
{
//remove surrounding quotes from quoted string and unescape remaining quotes
//Example: "Payton, Robert ""Bob""" -> Payton, Robert "Bob"
return value.Substring(1, value.Length - 2).Replace("\"\"", "\"");
}
}
/// <summary>
/// Remove leading and trailing whitespace, but only if trimValues is true
/// </summary>
/// <param name="value"></param>
/// <param name="trimValues">true to remove leading and trailing spaces from values; false to leave all values of fixed width</param>
/// <returns></returns>
internal static string TrimIfNeeded(this string value, bool trimValues)
{
if (trimValues) return value.Trim();
return value;
}
/// <summary>
///Same as string.Substring, except no ArgumentOutOfRangeException thrown when the
/// substring doesn't fit in the input string and instead the remainder of the string
/// (possibly string.Empty) gets returned.
/// </summary>
/// <param name="input">Input string</param>
/// <param name="startIndex">Zero-based starting character position</param>
/// <param name="length"></param>
/// <returns></returns>
internal static string SafeSubstring(this string input, int startIndex, int length)
{
input = input ?? string.Empty;
int altLength = input.Length;
if (startIndex >= altLength) return string.Empty;
altLength -= startIndex;
return input.Substring(startIndex, length < altLength ? length : altLength);
////Alternative using Linq (slower?)
//return new string((input ?? string.Empty).Skip(startIndex).Take(length).ToArray());
}
/// <summary>
/// Split slash separated JSONnode path
/// </summary>
/// <param name="specs"></param>
/// <returns></returns>
internal static List<string> ToJsonNodePath(this string specs)
{
return specs?.Split('/') //_nodeDefs is null if null specs
.ToList();
//note that unlike XML, empty nodes are respected (object can be unnamed, i.e. StartObject token does not have to be preceded by PropertyName token)
}
}
}
| 37.740113 | 157 | 0.622904 | [
"Apache-2.0"
] | mavidian/DataConveyer | DataConveyer/Intake/IntakeHelpers.cs | 6,683 | 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("02. Set of Extensions")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("02. Set of Extensions")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[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("a05aa604-c3a2-4084-b8cd-60e04b863ed5")]
// 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.243243 | 84 | 0.742756 | [
"MIT"
] | NinoSimeonov/Telerik-Academy | Programming with C#/3. C# Object-Oriented Programming/03. Extension Methods, Lambda Expressions and LINQ/02. Set of Extensions/Properties/AssemblyInfo.cs | 1,418 | C# |
// AIWorld
// Copyright 2015 Tim Potze
//
// 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.
using System;
using Microsoft.Xna.Framework;
namespace AIWorld.Events
{
public class MouseClickEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="MouseClickEventArgs" /> class.
/// </summary>
/// <param name="button">The button.</param>
/// <param name="position">The position</param>
public MouseClickEventArgs(int button, Vector3 position)
{
Button = button;
Position = position;
}
/// <summary>
/// Gets the button.
/// </summary>
public int Button { get; private set; }
/// <summary>
/// Gets or sets the position.
/// </summary>
public Vector3 Position { get; set; }
}
} | 32.613636 | 92 | 0.606969 | [
"Apache-2.0"
] | ikkentim/AIWorld | src/AIWorld/Events/MouseClickEventArgs.cs | 1,437 | C# |
namespace Fonet.Pdf
{
/// <summary>
/// Class representing a document information dictionary.
/// </summary>
/// <remarks>
/// Document information dictionaries are described in section 9.2.1 of the
/// PDF specification.
/// </remarks>
public class PdfInfo : PdfDictionary
{
public PdfInfo(PdfObjectId objectId) : base(objectId) { }
public PdfString Title
{
get { return (PdfString)this[PdfName.Names.Title]; }
set { this[PdfName.Names.Title] = value; }
}
public PdfString Author
{
get { return (PdfString)this[PdfName.Names.Author]; }
set { this[PdfName.Names.Author] = value; }
}
public PdfString Subject
{
get { return (PdfString)this[PdfName.Names.Subject]; }
set { this[PdfName.Names.Subject] = value; }
}
public PdfString Keywords
{
get { return (PdfString)this[PdfName.Names.Keywords]; }
set { this[PdfName.Names.Keywords] = value; }
}
public PdfString Creator
{
get { return (PdfString)this[PdfName.Names.Creator]; }
set { this[PdfName.Names.Creator] = value; }
}
public PdfString Producer
{
get { return (PdfString)this[PdfName.Names.Producer]; }
set { this[PdfName.Names.Producer] = value; }
}
public PdfString CreationDate
{
get { return (PdfString)this[PdfName.Names.CreationDate]; }
set { this[PdfName.Names.CreationDate] = value; }
}
public PdfString ModDate
{
get { return (PdfString)this[PdfName.Names.ModDate]; }
set { this[PdfName.Names.ModDate] = value; }
}
}
} | 29.111111 | 83 | 0.549073 | [
"Apache-2.0"
] | DaveDezinski/Fo.Net | src/Pdf/PdfInfo.cs | 1,834 | C# |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Entities;
namespace Repositories.Interfaces
{
public interface ITestRepository
{
Task<IEnumerable<Test>> GetAll();
Task Add(Test test);
Task<Test> Find(Guid id);
void Update(Test newTest, Test oldTest);
void Remove(Test test);
}
} | 22.9375 | 48 | 0.673025 | [
"MIT"
] | europ/MUNI-FI-PA181 | src/src/Repositories/Interfaces/ITestRepository.cs | 367 | 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>
//------------------------------------------------------------------------------
namespace ChuckNorrisMutiProject.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ChuckNorrisMutiProject.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
| 38.902778 | 188 | 0.606212 | [
"MIT"
] | ATimko/ChuckNorris-DotNetAPI | ChuckNorrisMutiProject/Properties/Resources.Designer.cs | 2,803 | C# |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
// **NOTE** This file was generated by a tool and any changes will be overwritten.
// <auto-generated/>
// Template Source: IEntityRequest.cs.tt
namespace Microsoft.Graph
{
using System;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Linq.Expressions;
/// <summary>
/// The interface IAgreementFilePropertiesRequest.
/// </summary>
public partial interface IAgreementFilePropertiesRequest : IBaseRequest
{
/// <summary>
/// Creates the specified AgreementFileProperties using POST.
/// </summary>
/// <param name="agreementFilePropertiesToCreate">The AgreementFileProperties to create.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The created AgreementFileProperties.</returns>
System.Threading.Tasks.Task<AgreementFileProperties> CreateAsync(AgreementFileProperties agreementFilePropertiesToCreate, CancellationToken cancellationToken = default);
/// <summary>
/// Creates the specified AgreementFileProperties using POST and returns a <see cref="GraphResponse{AgreementFileProperties}"/> object.
/// </summary>
/// <param name="agreementFilePropertiesToCreate">The AgreementFileProperties to create.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{AgreementFileProperties}"/> object of the request.</returns>
System.Threading.Tasks.Task<GraphResponse<AgreementFileProperties>> CreateResponseAsync(AgreementFileProperties agreementFilePropertiesToCreate, CancellationToken cancellationToken = default);
/// <summary>
/// Deletes the specified AgreementFileProperties.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await.</returns>
System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Deletes the specified AgreementFileProperties and returns a <see cref="GraphResponse"/> object.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task of <see cref="GraphResponse"/> to await.</returns>
System.Threading.Tasks.Task<GraphResponse> DeleteResponseAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Gets the specified AgreementFileProperties.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The AgreementFileProperties.</returns>
System.Threading.Tasks.Task<AgreementFileProperties> GetAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Gets the specified AgreementFileProperties and returns a <see cref="GraphResponse{AgreementFileProperties}"/> object.
/// </summary>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The <see cref="GraphResponse{AgreementFileProperties}"/> object of the request.</returns>
System.Threading.Tasks.Task<GraphResponse<AgreementFileProperties>> GetResponseAsync(CancellationToken cancellationToken = default);
/// <summary>
/// Updates the specified AgreementFileProperties using PATCH.
/// </summary>
/// <param name="agreementFilePropertiesToUpdate">The AgreementFileProperties to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <exception cref="ClientException">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>
/// <returns>The updated AgreementFileProperties.</returns>
System.Threading.Tasks.Task<AgreementFileProperties> UpdateAsync(AgreementFileProperties agreementFilePropertiesToUpdate, CancellationToken cancellationToken = default);
/// <summary>
/// Updates the specified AgreementFileProperties using PATCH and returns a <see cref="GraphResponse{AgreementFileProperties}"/> object.
/// </summary>
/// <param name="agreementFilePropertiesToUpdate">The AgreementFileProperties to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <exception cref="ClientException">Thrown when an object returned in a response is used for updating an object in Microsoft Graph.</exception>
/// <returns>The <see cref="GraphResponse{AgreementFileProperties}"/> object of the request.</returns>
System.Threading.Tasks.Task<GraphResponse<AgreementFileProperties>> UpdateResponseAsync(AgreementFileProperties agreementFilePropertiesToUpdate, CancellationToken cancellationToken = default);
/// <summary>
/// Updates the specified AgreementFileProperties using PUT.
/// </summary>
/// <param name="agreementFilePropertiesToUpdate">The AgreementFileProperties object to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task to await.</returns>
System.Threading.Tasks.Task<AgreementFileProperties> PutAsync(AgreementFileProperties agreementFilePropertiesToUpdate, CancellationToken cancellationToken = default);
/// <summary>
/// Updates the specified AgreementFileProperties using PUT and returns a <see cref="GraphResponse{AgreementFileProperties}"/> object.
/// </summary>
/// <param name="agreementFilePropertiesToUpdate">The AgreementFileProperties object to update.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
/// <returns>The task of <see cref="GraphResponse{AgreementFileProperties}"/> to await.</returns>
System.Threading.Tasks.Task<GraphResponse<AgreementFileProperties>> PutResponseAsync(AgreementFileProperties agreementFilePropertiesToUpdate, CancellationToken cancellationToken = default);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="value">The expand value.</param>
/// <returns>The request object to send.</returns>
IAgreementFilePropertiesRequest Expand(string value);
/// <summary>
/// Adds the specified expand value to the request.
/// </summary>
/// <param name="expandExpression">The expression from which to calculate the expand value.</param>
/// <returns>The request object to send.</returns>
IAgreementFilePropertiesRequest Expand(Expression<Func<AgreementFileProperties, object>> expandExpression);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="value">The select value.</param>
/// <returns>The request object to send.</returns>
IAgreementFilePropertiesRequest Select(string value);
/// <summary>
/// Adds the specified select value to the request.
/// </summary>
/// <param name="selectExpression">The expression from which to calculate the select value.</param>
/// <returns>The request object to send.</returns>
IAgreementFilePropertiesRequest Select(Expression<Func<AgreementFileProperties, object>> selectExpression);
}
}
| 61.312977 | 200 | 0.68999 | [
"MIT"
] | Aliases/msgraph-sdk-dotnet | src/Microsoft.Graph/Generated/requests/IAgreementFilePropertiesRequest.cs | 8,032 | 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>
//------------------------------------------------------------------------------
namespace StockMarket.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("StockMarket.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
| 33.763889 | 162 | 0.689428 | [
"MIT"
] | youda97/Stock-Market | StockMarket/Properties/Resources.Designer.cs | 2,433 | C# |
using Microsoft.AspNetCore.Identity;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Project.Hub.Services
{
public class StubRoleStore : IRoleStore<IdentityRole>
{
public Task<IdentityResult> CreateAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<IdentityResult> DeleteAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public void Dispose()
{
}
public Task<IdentityRole> FindByIdAsync(string roleId, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<IdentityRole> FindByNameAsync(string normalizedRoleName, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<string> GetNormalizedRoleNameAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<string> GetRoleIdAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<string> GetRoleNameAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task SetNormalizedRoleNameAsync(IdentityRole role, string normalizedName, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task SetRoleNameAsync(IdentityRole role, string roleName, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
public Task<IdentityResult> UpdateAsync(IdentityRole role, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
}
}
| 31.307692 | 125 | 0.672727 | [
"MIT"
] | mishani0x0ef/Project.Hub | src/Project.Hub/Services/StubRoleStore.cs | 2,037 | C# |
namespace SoManyBooksSoLittleTime.Web.ViewModels.Articles
{
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Http;
public class CreateArticleInputModel
{
[Required(ErrorMessage = "Title is required")]
[StringLength(200, ErrorMessage = "Description should be between {2} and {1} symbols.", MinimumLength = 2)]
[Display(Name = "Title*")]
public string Title { get; set; }
[Required(ErrorMessage = "Content is required")]
[StringLength(3000, ErrorMessage = "Content should be between {2} and {1} symbols.", MinimumLength = 50)]
[Display(Name = "Content*")]
public string Content { get; set; }
[Required]
[Display(Name = "Category*")]
public int CategoryId { get; set; }
public IEnumerable<ArticleCategoryViewModel> Categories { get; set; }
[Required(ErrorMessage = "The field is required")]
[Display(Name = "Image (.png)")]
public IFormFile Image { get; set; }
}
}
| 34.516129 | 115 | 0.641121 | [
"MIT"
] | RadostinaPetrova/SoManyBooksSoLittleTime | Web/SoManyBooksSoLittleTime.Web.ViewModels/Articles/CreateArticleInputModel.cs | 1,072 | C# |
using System;
using System.Collections;
using System.Collections.Specialized;
using Telerik.Core;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace Telerik.UI.Xaml.Controls.Chart
{
/// <summary>
/// Represents a logical object that may be used to feed a <see cref="RadChartBase"/> instance with data, leaving the series creation to the chart itself.
/// </summary>
public class ChartSeriesProvider : DependencyObject, IWeakEventListener
{
/// <summary>
/// Identifies the <see cref="Source"/> dependency property.
/// </summary>
public static readonly DependencyProperty SourceProperty =
DependencyProperty.Register(nameof(Source), typeof(object), typeof(ChartSeriesProvider), new PropertyMetadata(null, OnSourceChanged));
/// <summary>
/// Identifies the <see cref="SeriesDescriptorSelector"/> dependency property.
/// </summary>
public static readonly DependencyProperty SeriesDescriptorSelectorProperty =
DependencyProperty.Register(nameof(SeriesDescriptorSelector), typeof(ChartSeriesDescriptorSelector), typeof(ChartSeriesProvider), new PropertyMetadata(null, OnSeriesDescriptorSelectorChanged));
/// <summary>
/// Identifies the <see cref="SeriesDescriptorSelector"/> attached dependency property.
/// </summary>
public static readonly DependencyProperty IsDynamicSeriesProperty =
DependencyProperty.RegisterAttached("IsDynamicSeries", typeof(bool), typeof(ChartSeriesProvider), new PropertyMetadata(false));
private ChartSeriesDescriptorCollection descriptors;
private WeakReferenceList<RadChartBase> charts;
private WeakEventHandler<NotifyCollectionChangedEventArgs> collectionChangedHandler;
private WeakEventHandler<IVectorChangedEventArgs> vectorChangedHandler;
private IEnumerable sourceAsEnumerable;
private ChartSeriesDescriptorSelector descriptorSelectorCache;
/// <summary>
/// Initializes a new instance of the <see cref="ChartSeriesProvider" /> class.
/// </summary>
public ChartSeriesProvider()
{
this.charts = new WeakReferenceList<RadChartBase>();
this.descriptors = new ChartSeriesDescriptorCollection();
this.descriptors.CollectionChanged += this.OnDescriptorsCollectionChanged;
}
/// <summary>
/// Finalizes an instance of the <see cref="ChartSeriesProvider" /> class, detaches the weak events from the instance.
/// </summary>
~ChartSeriesProvider()
{
this.DetachSourceEvents();
}
/// <summary>
/// Notifies for a change in the Source collection. Used for testing purposes.
/// </summary>
internal event EventHandler SourceChanged;
/// <summary>
/// Gets or sets the collection of objects that contain the data for the dynamic series to be created.
/// </summary>
public object Source
{
get
{
return this.GetValue(SourceProperty);
}
set
{
this.SetValue(SourceProperty, value);
}
}
/// <summary>
/// Gets the collection of <see cref="ChartSeriesDescriptor"/> objects that specify what chart series are to be created.
/// </summary>
public ChartSeriesDescriptorCollection SeriesDescriptors
{
get
{
return this.descriptors;
}
}
/// <summary>
/// Gets or sets the <see cref="ChartSeriesDescriptorSelector"/> instance that may be used for context-based descriptor selection.
/// </summary>
public ChartSeriesDescriptorSelector SeriesDescriptorSelector
{
get
{
return this.GetValue(SeriesDescriptorSelectorProperty) as ChartSeriesDescriptorSelector;
}
set
{
this.SetValue(SeriesDescriptorSelectorProperty, value);
}
}
/// <summary>
/// Gets the current Source (if any) casted to an IEnumerable instance.
/// </summary>
internal IEnumerable SourceAsEnumerable
{
get
{
return this.sourceAsEnumerable;
}
}
/// <summary>
/// Gets the WeakEventHandler that hooks the CollectionChanged event in case the Source is INotifyCollectionChanged. Exposed for testing purposes.
/// </summary>
internal WeakEventHandler<NotifyCollectionChangedEventArgs> CollectionChangedHandler
{
get
{
return this.collectionChangedHandler;
}
}
/// <summary>
/// Gets the WeakEventHandler that hooks the VectorChanged event in case the Source is IObservableVector. Exposed for testing purposes.
/// </summary>
internal WeakEventHandler<IVectorChangedEventArgs> VectorChangedHandler
{
get
{
return this.vectorChangedHandler;
}
}
/// <summary>
/// Sets a value indicating that the specified ChartSeries instance is dynamically created by a series provider instance.
/// </summary>
public static void SetIsDynamicSeries(DependencyObject instance, bool value)
{
if (instance == null)
{
throw new ArgumentNullException();
}
instance.SetValue(IsDynamicSeriesProperty, value);
}
/// <summary>
/// Determines whether the specified ChartSeries instance is dynamically created by a series provider.
/// </summary>
public static bool GetIsDynamicSeries(DependencyObject instance)
{
if (instance == null)
{
throw new ArgumentNullException();
}
return (bool)instance.GetValue(IsDynamicSeriesProperty);
}
/// <summary>
/// Forces all attached chart instances to re-evaluate all the series created from this provider.
/// </summary>
public void RefreshAttachedCharts()
{
this.NotifyListeners();
}
void IWeakEventListener.ReceiveEvent(object sender, object args)
{
if (this.SourceChanged != null)
{
this.SourceChanged(this, EventArgs.Empty);
}
if (this.Source != null)
{
this.NotifyListeners();
}
}
internal void AddListener(RadChartBase chart)
{
int index = this.charts.IndexOf(chart);
if (index < 0)
{
this.charts.Add(chart);
}
}
internal void RemoveListener(RadChartBase chart)
{
this.charts.Remove(chart);
}
internal IEnumerable CreateSeries()
{
IEnumerable source = this.GetSourceAsEnumerable();
if (source == null)
{
yield break;
}
int index = 0;
foreach (object context in source)
{
var descriptor = this.GetDescriptor(index, context);
if (descriptor != null)
{
ChartSeries series = descriptor.CreateInstance(context);
SetIsDynamicSeries(series, true);
yield return series;
}
index++;
}
}
private static void OnSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
ChartSeriesProvider provider = d as ChartSeriesProvider;
provider.DetachSourceEvents();
provider.sourceAsEnumerable = provider.GetSourceAsEnumerable();
provider.AttachSourceEvents();
provider.NotifyListeners();
}
private static void OnSeriesDescriptorSelectorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
var provider = d as ChartSeriesProvider;
provider.descriptorSelectorCache = e.NewValue as ChartSeriesDescriptorSelector;
if (provider.Source != null)
{
provider.NotifyListeners();
}
}
private void NotifyListeners()
{
foreach (RadChartBase chart in this.charts)
{
chart.OnSeriesProviderStateChanged();
}
}
private IEnumerable GetSourceAsEnumerable()
{
object sourceCache = this.Source;
IEnumerable sourceAsEnumerableCache = sourceCache as IEnumerable;
if (sourceAsEnumerableCache != null)
{
return sourceAsEnumerableCache;
}
CollectionViewSource collectionView = sourceCache as CollectionViewSource;
if (collectionView != null)
{
return collectionView.View;
}
return null;
}
private void OnDescriptorsCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
this.NotifyListeners();
}
private ChartSeriesDescriptor GetDescriptor(int index, object context)
{
if (this.descriptorSelectorCache != null)
{
return this.descriptorSelectorCache.SelectDescriptor(this, context);
}
foreach (ChartSeriesDescriptor descriptor in this.descriptors)
{
// TODO: Consider caching-by-index if descriptor count goes above 10
if (descriptor.CollectionIndex == index)
{
return descriptor;
}
}
if (this.descriptors.Count > 0)
{
return this.descriptors[0];
}
return null;
}
private void AttachSourceEvents()
{
if (this.sourceAsEnumerable == null)
{
return;
}
INotifyCollectionChanged collectionChanged = this.sourceAsEnumerable as INotifyCollectionChanged;
if (collectionChanged != null)
{
this.collectionChangedHandler = new WeakEventHandler<NotifyCollectionChangedEventArgs>(collectionChanged, this, KnownEvents.CollectionChanged);
}
ICollectionView collectionView = this.sourceAsEnumerable as ICollectionView;
if (collectionView != null)
{
this.vectorChangedHandler = new WeakEventHandler<IVectorChangedEventArgs>(collectionView, this, KnownEvents.VectorChanged);
}
}
private void DetachSourceEvents()
{
if (this.collectionChangedHandler != null)
{
this.collectionChangedHandler.Unsubscribe();
}
if (this.vectorChangedHandler != null)
{
this.vectorChangedHandler.Unsubscribe();
}
}
}
}
| 33.907186 | 205 | 0.585077 | [
"Apache-2.0"
] | ChristianGutman/UI-For-UWP | Controls/Chart/Chart.UWP/Visualization/DataBinding/DynamicSeries/ChartSeriesProvider.cs | 11,327 | C# |
namespace RJCP.Diagnostics.Config
{
using System.Configuration;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Maintainability", "CA1507:Use nameof to express symbol names", Justification = "There isn't a strict relationship")]
internal class XmlCrashDumper : ConfigurationSection
{
[ConfigurationProperty("StyleSheet", IsRequired = false)]
public StyleSheetElement StyleSheet
{
get { return (StyleSheetElement)this["StyleSheet"]; }
}
}
}
| 33.866667 | 170 | 0.698819 | [
"MIT"
] | jcurl/CrashReporter | CrashReporter/Config/XmlCrashDumper.cs | 510 | C# |
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace KennUwareHR.Migrations
{
public partial class AddedNeModels : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "DepartmentId",
table: "Employees",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "PositionId",
table: "Employees",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateTable(
name: "Department",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Name = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Department", x => x.Id);
});
migrationBuilder.CreateTable(
name: "Position",
columns: table => new
{
Id = table.Column<int>(nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
Title = table.Column<string>(nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Position", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Employees_DepartmentId",
table: "Employees",
column: "DepartmentId");
migrationBuilder.CreateIndex(
name: "IX_Employees_PositionId",
table: "Employees",
column: "PositionId");
migrationBuilder.AddForeignKey(
name: "FK_Employees_Department_DepartmentId",
table: "Employees",
column: "DepartmentId",
principalTable: "Department",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_Employees_Position_PositionId",
table: "Employees",
column: "PositionId",
principalTable: "Position",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Employees_Department_DepartmentId",
table: "Employees");
migrationBuilder.DropForeignKey(
name: "FK_Employees_Position_PositionId",
table: "Employees");
migrationBuilder.DropTable(
name: "Department");
migrationBuilder.DropTable(
name: "Position");
migrationBuilder.DropIndex(
name: "IX_Employees_DepartmentId",
table: "Employees");
migrationBuilder.DropIndex(
name: "IX_Employees_PositionId",
table: "Employees");
migrationBuilder.DropColumn(
name: "DepartmentId",
table: "Employees");
migrationBuilder.DropColumn(
name: "PositionId",
table: "Employees");
}
}
}
| 33.927928 | 114 | 0.519649 | [
"MIT"
] | Zach-DiPasquale/Enterprise | KennUwareHR/Migrations/20180303181428_AddedNeModels.cs | 3,768 | C# |
using System;
namespace Tests.Entities
{
public class Blog
{
public int Id { get; set; }
public string Title { get; set; }
public string Author { get; set; }
public DateTime CreatedDate { get; set; }
public DateTime? ModifiedDate { get; set; }
}
} | 21.076923 | 46 | 0.638686 | [
"Apache-2.0"
] | gbrunton/CacheRepository | Tests/Entities/Blog.cs | 276 | C# |
using System.Runtime.InteropServices;
namespace Vulkan
{
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void PFN_vkDestroyDevice([NativeTypeName("VkDevice")] VkDevice device,
[NativeTypeName("const VkAllocationCallbacks *")]
in VkAllocationCallbacks pAllocator);
}
| 40.6 | 101 | 0.605911 | [
"BSD-3-Clause"
] | trmcnealy/Vulkan | Vulkan/Delegates/PFN_vkDestroyDevice.cs | 406 | C# |
using System;
namespace SkbKontur.Excel.TemplateEngine.ObjectPrinting.Helpers
{
internal static class JaggedArrayHelper
{
public static T CreateJaggedArray<T>(params int[] lengths)
{
return (T)InitializeJaggedArray(typeof(T).GetElementType(), 0, lengths);
}
private static object InitializeJaggedArray(Type type, int index, int[] lengths)
{
var array = Array.CreateInstance(type, lengths[index]);
var elementType = type.GetElementType();
if (elementType != null)
{
for (var i = 0; i < lengths[index]; i++)
{
array.SetValue(
InitializeJaggedArray(elementType, index + 1, lengths), i);
}
}
return array;
}
}
} | 29.206897 | 88 | 0.541913 | [
"MIT"
] | aldobrynin/Excel.TemplateEngine | Excel.TemplateEngine/ObjectPrinting/Helpers/JaggedArrayHelper.cs | 847 | C# |
using UnityEngine;
namespace EC2019.Utility {
public static class ColorPalette {
// Entelect colours - Hex - RGB - RBG_norm
// Blue - #2196f3 - 33, 150, 243 - 0.13, 0.59, 0.95
// Red - #f44336 - 244, 67, 54 - 0.96, 0.26, 0.21
// Yellow - #fee50e - 254, 229, 14 - 1 , 0.9 , 0.05
// Orange - #ff9800 - 255, 152, 0 - 1 , 0.6 , 0
public static class Entelect {
public static Color Blue = new Color(0.13f, 0.59f, 0.95f);
public static Color Red = new Color(0.96f, 0.26f, 0.21f);
public static Color Yellow = new Color(1f, 0.9f, 0.05f);
public static Color Orange = new Color(1f, 0.6f, 0f);
}
public static Color PlayerA = Entelect.Blue;
public static Color PlayerB = Entelect.Red;
public static Color Yellow = Entelect.Yellow;
public static Color Orange = Entelect.Orange;
public static Color LightGrey = 1.5f * Color.gray;
public static Color Grey = Color.gray;
public static Color DarkGray = 0.5f * Color.gray;
public static Color White = Color.white;
}
} | 44.111111 | 70 | 0.556675 | [
"MIT"
] | dlweatherhead/entelect-challenge-2019-visualiser | Entelect Challenge 2019 Visualiser/Assets/Scripts/EC2019/Utility/ColorPalette.cs | 1,193 | 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 Internal.Cryptography;
using Internal.Cryptography.Pal;
namespace System.Security.Cryptography.X509Certificates
{
public sealed class X509SubjectKeyIdentifierExtension : X509Extension
{
public X509SubjectKeyIdentifierExtension()
: base(Oids.SubjectKeyIdentifierOid)
{
_subjectKeyIdentifier = null;
_decoded = true;
}
public X509SubjectKeyIdentifierExtension(AsnEncodedData encodedSubjectKeyIdentifier, bool critical)
: base(Oids.SubjectKeyIdentifierOid, encodedSubjectKeyIdentifier.RawData, critical)
{
}
public X509SubjectKeyIdentifierExtension(byte[] subjectKeyIdentifier, bool critical)
: this(subjectKeyIdentifier.AsSpanParameter(nameof(subjectKeyIdentifier)), critical)
{
}
public X509SubjectKeyIdentifierExtension(ReadOnlySpan<byte> subjectKeyIdentifier, bool critical)
: base(Oids.SubjectKeyIdentifierOid, EncodeExtension(subjectKeyIdentifier), critical)
{
}
public X509SubjectKeyIdentifierExtension(PublicKey key, bool critical)
: this(key, X509SubjectKeyIdentifierHashAlgorithm.Sha1, critical)
{
}
public X509SubjectKeyIdentifierExtension(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm, bool critical)
: base(Oids.SubjectKeyIdentifierOid, EncodeExtension(key, algorithm), critical)
{
}
public X509SubjectKeyIdentifierExtension(string subjectKeyIdentifier, bool critical)
: base(Oids.SubjectKeyIdentifierOid, EncodeExtension(subjectKeyIdentifier), critical)
{
}
public string? SubjectKeyIdentifier
{
get
{
if (!_decoded)
{
byte[] subjectKeyIdentifierValue;
X509Pal.Instance.DecodeX509SubjectKeyIdentifierExtension(RawData, out subjectKeyIdentifierValue);
_subjectKeyIdentifier = subjectKeyIdentifierValue.ToHexStringUpper();
_decoded = true;
}
return _subjectKeyIdentifier;
}
}
public override void CopyFrom(AsnEncodedData asnEncodedData)
{
base.CopyFrom(asnEncodedData);
_decoded = false;
}
private static byte[] EncodeExtension(ReadOnlySpan<byte> subjectKeyIdentifier)
{
if (subjectKeyIdentifier.Length == 0)
throw new ArgumentException(SR.Arg_EmptyOrNullArray, nameof(subjectKeyIdentifier));
return X509Pal.Instance.EncodeX509SubjectKeyIdentifierExtension(subjectKeyIdentifier);
}
private static byte[] EncodeExtension(string subjectKeyIdentifier)
{
if (subjectKeyIdentifier == null)
throw new ArgumentNullException(nameof(subjectKeyIdentifier));
byte[] subjectKeyIdentifiedBytes = subjectKeyIdentifier.DecodeHexString();
return EncodeExtension(subjectKeyIdentifiedBytes);
}
private static byte[] EncodeExtension(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm)
{
if (key == null)
throw new ArgumentNullException(nameof(key));
byte[] subjectKeyIdentifier = GenerateSubjectKeyIdentifierFromPublicKey(key, algorithm);
return EncodeExtension(subjectKeyIdentifier);
}
private static byte[] GenerateSubjectKeyIdentifierFromPublicKey(PublicKey key, X509SubjectKeyIdentifierHashAlgorithm algorithm)
{
switch (algorithm)
{
case X509SubjectKeyIdentifierHashAlgorithm.Sha1:
return ComputeSha1(key.EncodedKeyValue.RawData);
case X509SubjectKeyIdentifierHashAlgorithm.ShortSha1:
{
byte[] sha1 = ComputeSha1(key.EncodedKeyValue.RawData);
// ShortSha1: The keyIdentifier is composed of a four bit type field with
// the value 0100 followed by the least significant 60 bits of the
// SHA-1 hash of the value of the BIT STRING subjectPublicKey
// (excluding the tag, length, and number of unused bit string bits)
byte[] shortSha1 = new byte[8];
Buffer.BlockCopy(sha1, sha1.Length - 8, shortSha1, 0, shortSha1.Length);
shortSha1[0] &= 0x0f;
shortSha1[0] |= 0x40;
return shortSha1;
}
case X509SubjectKeyIdentifierHashAlgorithm.CapiSha1:
return X509Pal.Instance.ComputeCapiSha1OfPublicKey(key);
default:
throw new ArgumentException(SR.Format(SR.Arg_EnumIllegalVal, algorithm), nameof(algorithm));
}
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA5350", Justification = "SHA1 is required by RFC3280")]
private static byte[] ComputeSha1(byte[] data)
{
using (SHA1 sha1 = SHA1.Create())
{
return sha1.ComputeHash(data);
}
}
private string? _subjectKeyIdentifier;
private bool _decoded;
}
}
| 40.244604 | 136 | 0.629782 | [
"MIT"
] | WonyoungChoi/runtime | src/libraries/System.Security.Cryptography.X509Certificates/src/System/Security/Cryptography/X509Certificates/X509SubjectKeyIdentifierExtension.cs | 5,594 | C# |
using CrytonCore.Infra;
using CrytonCore.Model;
using CrytonCore.PdfService;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace CrytonCore.ViewModel
{
public class PasswordProviderViewModel : NotificationClass
{
public ObservableCollection<PdfPasswordBase> Passwords { get; set; }
public PasswordProviderViewModel(List<PdfPasswordBase> passwords)
{
Passwords = new ObservableCollection<PdfPasswordBase>();
foreach (var password in passwords)
Passwords.Add(password);
}
public PasswordProviderViewModel() { }
}
}
| 26.666667 | 76 | 0.703125 | [
"Apache-2.0"
] | ToxicSkill/CrytonCore | ViewModel/PasswordProviderViewModel.cs | 642 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace QuanLyKho.Model
{
using System;
using System.Collections.Generic;
public partial class Object
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public Object()
{
this.InputInfoes = new HashSet<InputInfo>();
this.OutputInfoes = new HashSet<OutputInfo>();
}
public string Id { get; set; }
public string DisplayName { get; set; }
public int IdUnit { get; set; }
public int IdSuplier { get; set; }
public string QRCode { get; set; }
public string BarCode { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<InputInfo> InputInfoes { get; set; }
public virtual Suplier Suplier { get; set; }
public virtual Unit Unit { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<OutputInfo> OutputInfoes { get; set; }
}
}
| 41.25641 | 128 | 0.600373 | [
"MIT"
] | TruyenLam/C-WPF | QuanLyKho/QuanLyKho/QuanLyKho/Model/Object.cs | 1,609 | C# |
#pragma warning disable 1591
//------------------------------------------------------------------------------
// <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.
// </auto-generated>
//------------------------------------------------------------------------------
[assembly: global::Android.Runtime.ResourceDesignerAttribute("Wzjqd.Resource", IsApplication=true)]
namespace Wzjqd
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
public partial class Resource
{
static Resource()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
public static void UpdateIdValues()
{
global::Xamarin.Essentials.Resource.Attribute.alpha = global::Wzjqd.Resource.Attribute.alpha;
global::Xamarin.Essentials.Resource.Attribute.font = global::Wzjqd.Resource.Attribute.font;
global::Xamarin.Essentials.Resource.Attribute.fontProviderAuthority = global::Wzjqd.Resource.Attribute.fontProviderAuthority;
global::Xamarin.Essentials.Resource.Attribute.fontProviderCerts = global::Wzjqd.Resource.Attribute.fontProviderCerts;
global::Xamarin.Essentials.Resource.Attribute.fontProviderFetchStrategy = global::Wzjqd.Resource.Attribute.fontProviderFetchStrategy;
global::Xamarin.Essentials.Resource.Attribute.fontProviderFetchTimeout = global::Wzjqd.Resource.Attribute.fontProviderFetchTimeout;
global::Xamarin.Essentials.Resource.Attribute.fontProviderPackage = global::Wzjqd.Resource.Attribute.fontProviderPackage;
global::Xamarin.Essentials.Resource.Attribute.fontProviderQuery = global::Wzjqd.Resource.Attribute.fontProviderQuery;
global::Xamarin.Essentials.Resource.Attribute.fontStyle = global::Wzjqd.Resource.Attribute.fontStyle;
global::Xamarin.Essentials.Resource.Attribute.fontVariationSettings = global::Wzjqd.Resource.Attribute.fontVariationSettings;
global::Xamarin.Essentials.Resource.Attribute.fontWeight = global::Wzjqd.Resource.Attribute.fontWeight;
global::Xamarin.Essentials.Resource.Attribute.ttcIndex = global::Wzjqd.Resource.Attribute.ttcIndex;
global::Xamarin.Essentials.Resource.Color.androidx_core_ripple_material_light = global::Wzjqd.Resource.Color.androidx_core_ripple_material_light;
global::Xamarin.Essentials.Resource.Color.androidx_core_secondary_text_default_material_light = global::Wzjqd.Resource.Color.androidx_core_secondary_text_default_material_light;
global::Xamarin.Essentials.Resource.Color.browser_actions_bg_grey = global::Wzjqd.Resource.Color.browser_actions_bg_grey;
global::Xamarin.Essentials.Resource.Color.browser_actions_divider_color = global::Wzjqd.Resource.Color.browser_actions_divider_color;
global::Xamarin.Essentials.Resource.Color.browser_actions_text_color = global::Wzjqd.Resource.Color.browser_actions_text_color;
global::Xamarin.Essentials.Resource.Color.browser_actions_title_color = global::Wzjqd.Resource.Color.browser_actions_title_color;
global::Xamarin.Essentials.Resource.Color.notification_action_color_filter = global::Wzjqd.Resource.Color.notification_action_color_filter;
global::Xamarin.Essentials.Resource.Color.notification_icon_bg_color = global::Wzjqd.Resource.Color.notification_icon_bg_color;
global::Xamarin.Essentials.Resource.Dimension.browser_actions_context_menu_max_width = global::Wzjqd.Resource.Dimension.browser_actions_context_menu_max_width;
global::Xamarin.Essentials.Resource.Dimension.browser_actions_context_menu_min_padding = global::Wzjqd.Resource.Dimension.browser_actions_context_menu_min_padding;
global::Xamarin.Essentials.Resource.Dimension.compat_button_inset_horizontal_material = global::Wzjqd.Resource.Dimension.compat_button_inset_horizontal_material;
global::Xamarin.Essentials.Resource.Dimension.compat_button_inset_vertical_material = global::Wzjqd.Resource.Dimension.compat_button_inset_vertical_material;
global::Xamarin.Essentials.Resource.Dimension.compat_button_padding_horizontal_material = global::Wzjqd.Resource.Dimension.compat_button_padding_horizontal_material;
global::Xamarin.Essentials.Resource.Dimension.compat_button_padding_vertical_material = global::Wzjqd.Resource.Dimension.compat_button_padding_vertical_material;
global::Xamarin.Essentials.Resource.Dimension.compat_control_corner_material = global::Wzjqd.Resource.Dimension.compat_control_corner_material;
global::Xamarin.Essentials.Resource.Dimension.compat_notification_large_icon_max_height = global::Wzjqd.Resource.Dimension.compat_notification_large_icon_max_height;
global::Xamarin.Essentials.Resource.Dimension.compat_notification_large_icon_max_width = global::Wzjqd.Resource.Dimension.compat_notification_large_icon_max_width;
global::Xamarin.Essentials.Resource.Dimension.notification_action_icon_size = global::Wzjqd.Resource.Dimension.notification_action_icon_size;
global::Xamarin.Essentials.Resource.Dimension.notification_action_text_size = global::Wzjqd.Resource.Dimension.notification_action_text_size;
global::Xamarin.Essentials.Resource.Dimension.notification_big_circle_margin = global::Wzjqd.Resource.Dimension.notification_big_circle_margin;
global::Xamarin.Essentials.Resource.Dimension.notification_content_margin_start = global::Wzjqd.Resource.Dimension.notification_content_margin_start;
global::Xamarin.Essentials.Resource.Dimension.notification_large_icon_height = global::Wzjqd.Resource.Dimension.notification_large_icon_height;
global::Xamarin.Essentials.Resource.Dimension.notification_large_icon_width = global::Wzjqd.Resource.Dimension.notification_large_icon_width;
global::Xamarin.Essentials.Resource.Dimension.notification_main_column_padding_top = global::Wzjqd.Resource.Dimension.notification_main_column_padding_top;
global::Xamarin.Essentials.Resource.Dimension.notification_media_narrow_margin = global::Wzjqd.Resource.Dimension.notification_media_narrow_margin;
global::Xamarin.Essentials.Resource.Dimension.notification_right_icon_size = global::Wzjqd.Resource.Dimension.notification_right_icon_size;
global::Xamarin.Essentials.Resource.Dimension.notification_right_side_padding_top = global::Wzjqd.Resource.Dimension.notification_right_side_padding_top;
global::Xamarin.Essentials.Resource.Dimension.notification_small_icon_background_padding = global::Wzjqd.Resource.Dimension.notification_small_icon_background_padding;
global::Xamarin.Essentials.Resource.Dimension.notification_small_icon_size_as_large = global::Wzjqd.Resource.Dimension.notification_small_icon_size_as_large;
global::Xamarin.Essentials.Resource.Dimension.notification_subtext_size = global::Wzjqd.Resource.Dimension.notification_subtext_size;
global::Xamarin.Essentials.Resource.Dimension.notification_top_pad = global::Wzjqd.Resource.Dimension.notification_top_pad;
global::Xamarin.Essentials.Resource.Dimension.notification_top_pad_large_text = global::Wzjqd.Resource.Dimension.notification_top_pad_large_text;
global::Xamarin.Essentials.Resource.Drawable.notification_action_background = global::Wzjqd.Resource.Drawable.notification_action_background;
global::Xamarin.Essentials.Resource.Drawable.notification_bg = global::Wzjqd.Resource.Drawable.notification_bg;
global::Xamarin.Essentials.Resource.Drawable.notification_bg_low = global::Wzjqd.Resource.Drawable.notification_bg_low;
global::Xamarin.Essentials.Resource.Drawable.notification_bg_low_normal = global::Wzjqd.Resource.Drawable.notification_bg_low_normal;
global::Xamarin.Essentials.Resource.Drawable.notification_bg_low_pressed = global::Wzjqd.Resource.Drawable.notification_bg_low_pressed;
global::Xamarin.Essentials.Resource.Drawable.notification_bg_normal = global::Wzjqd.Resource.Drawable.notification_bg_normal;
global::Xamarin.Essentials.Resource.Drawable.notification_bg_normal_pressed = global::Wzjqd.Resource.Drawable.notification_bg_normal_pressed;
global::Xamarin.Essentials.Resource.Drawable.notification_icon_background = global::Wzjqd.Resource.Drawable.notification_icon_background;
global::Xamarin.Essentials.Resource.Drawable.notification_template_icon_bg = global::Wzjqd.Resource.Drawable.notification_template_icon_bg;
global::Xamarin.Essentials.Resource.Drawable.notification_template_icon_low_bg = global::Wzjqd.Resource.Drawable.notification_template_icon_low_bg;
global::Xamarin.Essentials.Resource.Drawable.notification_tile_bg = global::Wzjqd.Resource.Drawable.notification_tile_bg;
global::Xamarin.Essentials.Resource.Drawable.notify_panel_notification_icon_bg = global::Wzjqd.Resource.Drawable.notify_panel_notification_icon_bg;
global::Xamarin.Essentials.Resource.Id.accessibility_action_clickable_span = global::Wzjqd.Resource.Id.accessibility_action_clickable_span;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_0 = global::Wzjqd.Resource.Id.accessibility_custom_action_0;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_1 = global::Wzjqd.Resource.Id.accessibility_custom_action_1;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_10 = global::Wzjqd.Resource.Id.accessibility_custom_action_10;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_11 = global::Wzjqd.Resource.Id.accessibility_custom_action_11;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_12 = global::Wzjqd.Resource.Id.accessibility_custom_action_12;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_13 = global::Wzjqd.Resource.Id.accessibility_custom_action_13;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_14 = global::Wzjqd.Resource.Id.accessibility_custom_action_14;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_15 = global::Wzjqd.Resource.Id.accessibility_custom_action_15;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_16 = global::Wzjqd.Resource.Id.accessibility_custom_action_16;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_17 = global::Wzjqd.Resource.Id.accessibility_custom_action_17;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_18 = global::Wzjqd.Resource.Id.accessibility_custom_action_18;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_19 = global::Wzjqd.Resource.Id.accessibility_custom_action_19;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_2 = global::Wzjqd.Resource.Id.accessibility_custom_action_2;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_20 = global::Wzjqd.Resource.Id.accessibility_custom_action_20;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_21 = global::Wzjqd.Resource.Id.accessibility_custom_action_21;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_22 = global::Wzjqd.Resource.Id.accessibility_custom_action_22;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_23 = global::Wzjqd.Resource.Id.accessibility_custom_action_23;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_24 = global::Wzjqd.Resource.Id.accessibility_custom_action_24;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_25 = global::Wzjqd.Resource.Id.accessibility_custom_action_25;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_26 = global::Wzjqd.Resource.Id.accessibility_custom_action_26;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_27 = global::Wzjqd.Resource.Id.accessibility_custom_action_27;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_28 = global::Wzjqd.Resource.Id.accessibility_custom_action_28;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_29 = global::Wzjqd.Resource.Id.accessibility_custom_action_29;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_3 = global::Wzjqd.Resource.Id.accessibility_custom_action_3;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_30 = global::Wzjqd.Resource.Id.accessibility_custom_action_30;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_31 = global::Wzjqd.Resource.Id.accessibility_custom_action_31;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_4 = global::Wzjqd.Resource.Id.accessibility_custom_action_4;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_5 = global::Wzjqd.Resource.Id.accessibility_custom_action_5;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_6 = global::Wzjqd.Resource.Id.accessibility_custom_action_6;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_7 = global::Wzjqd.Resource.Id.accessibility_custom_action_7;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_8 = global::Wzjqd.Resource.Id.accessibility_custom_action_8;
global::Xamarin.Essentials.Resource.Id.accessibility_custom_action_9 = global::Wzjqd.Resource.Id.accessibility_custom_action_9;
global::Xamarin.Essentials.Resource.Id.actions = global::Wzjqd.Resource.Id.actions;
global::Xamarin.Essentials.Resource.Id.action_container = global::Wzjqd.Resource.Id.action_container;
global::Xamarin.Essentials.Resource.Id.action_divider = global::Wzjqd.Resource.Id.action_divider;
global::Xamarin.Essentials.Resource.Id.action_image = global::Wzjqd.Resource.Id.action_image;
global::Xamarin.Essentials.Resource.Id.action_text = global::Wzjqd.Resource.Id.action_text;
global::Xamarin.Essentials.Resource.Id.async = global::Wzjqd.Resource.Id.async;
global::Xamarin.Essentials.Resource.Id.blocking = global::Wzjqd.Resource.Id.blocking;
global::Xamarin.Essentials.Resource.Id.browser_actions_header_text = global::Wzjqd.Resource.Id.browser_actions_header_text;
global::Xamarin.Essentials.Resource.Id.browser_actions_menu_items = global::Wzjqd.Resource.Id.browser_actions_menu_items;
global::Xamarin.Essentials.Resource.Id.browser_actions_menu_item_icon = global::Wzjqd.Resource.Id.browser_actions_menu_item_icon;
global::Xamarin.Essentials.Resource.Id.browser_actions_menu_item_text = global::Wzjqd.Resource.Id.browser_actions_menu_item_text;
global::Xamarin.Essentials.Resource.Id.browser_actions_menu_view = global::Wzjqd.Resource.Id.browser_actions_menu_view;
global::Xamarin.Essentials.Resource.Id.chronometer = global::Wzjqd.Resource.Id.chronometer;
global::Xamarin.Essentials.Resource.Id.dialog_button = global::Wzjqd.Resource.Id.dialog_button;
global::Xamarin.Essentials.Resource.Id.forever = global::Wzjqd.Resource.Id.forever;
global::Xamarin.Essentials.Resource.Id.icon = global::Wzjqd.Resource.Id.icon;
global::Xamarin.Essentials.Resource.Id.icon_group = global::Wzjqd.Resource.Id.icon_group;
global::Xamarin.Essentials.Resource.Id.info = global::Wzjqd.Resource.Id.info;
global::Xamarin.Essentials.Resource.Id.italic = global::Wzjqd.Resource.Id.italic;
global::Xamarin.Essentials.Resource.Id.line1 = global::Wzjqd.Resource.Id.line1;
global::Xamarin.Essentials.Resource.Id.line3 = global::Wzjqd.Resource.Id.line3;
global::Xamarin.Essentials.Resource.Id.normal = global::Wzjqd.Resource.Id.normal;
global::Xamarin.Essentials.Resource.Id.notification_background = global::Wzjqd.Resource.Id.notification_background;
global::Xamarin.Essentials.Resource.Id.notification_main_column = global::Wzjqd.Resource.Id.notification_main_column;
global::Xamarin.Essentials.Resource.Id.notification_main_column_container = global::Wzjqd.Resource.Id.notification_main_column_container;
global::Xamarin.Essentials.Resource.Id.right_icon = global::Wzjqd.Resource.Id.right_icon;
global::Xamarin.Essentials.Resource.Id.right_side = global::Wzjqd.Resource.Id.right_side;
global::Xamarin.Essentials.Resource.Id.tag_accessibility_actions = global::Wzjqd.Resource.Id.tag_accessibility_actions;
global::Xamarin.Essentials.Resource.Id.tag_accessibility_clickable_spans = global::Wzjqd.Resource.Id.tag_accessibility_clickable_spans;
global::Xamarin.Essentials.Resource.Id.tag_accessibility_heading = global::Wzjqd.Resource.Id.tag_accessibility_heading;
global::Xamarin.Essentials.Resource.Id.tag_accessibility_pane_title = global::Wzjqd.Resource.Id.tag_accessibility_pane_title;
global::Xamarin.Essentials.Resource.Id.tag_screen_reader_focusable = global::Wzjqd.Resource.Id.tag_screen_reader_focusable;
global::Xamarin.Essentials.Resource.Id.tag_transition_group = global::Wzjqd.Resource.Id.tag_transition_group;
global::Xamarin.Essentials.Resource.Id.tag_unhandled_key_event_manager = global::Wzjqd.Resource.Id.tag_unhandled_key_event_manager;
global::Xamarin.Essentials.Resource.Id.tag_unhandled_key_listeners = global::Wzjqd.Resource.Id.tag_unhandled_key_listeners;
global::Xamarin.Essentials.Resource.Id.text = global::Wzjqd.Resource.Id.text;
global::Xamarin.Essentials.Resource.Id.text2 = global::Wzjqd.Resource.Id.text2;
global::Xamarin.Essentials.Resource.Id.time = global::Wzjqd.Resource.Id.time;
global::Xamarin.Essentials.Resource.Id.title = global::Wzjqd.Resource.Id.title;
global::Xamarin.Essentials.Resource.Integer.status_bar_notification_info_maxnum = global::Wzjqd.Resource.Integer.status_bar_notification_info_maxnum;
global::Xamarin.Essentials.Resource.Layout.browser_actions_context_menu_page = global::Wzjqd.Resource.Layout.browser_actions_context_menu_page;
global::Xamarin.Essentials.Resource.Layout.browser_actions_context_menu_row = global::Wzjqd.Resource.Layout.browser_actions_context_menu_row;
global::Xamarin.Essentials.Resource.Layout.custom_dialog = global::Wzjqd.Resource.Layout.custom_dialog;
global::Xamarin.Essentials.Resource.Layout.notification_action = global::Wzjqd.Resource.Layout.notification_action;
global::Xamarin.Essentials.Resource.Layout.notification_action_tombstone = global::Wzjqd.Resource.Layout.notification_action_tombstone;
global::Xamarin.Essentials.Resource.Layout.notification_template_custom_big = global::Wzjqd.Resource.Layout.notification_template_custom_big;
global::Xamarin.Essentials.Resource.Layout.notification_template_icon_group = global::Wzjqd.Resource.Layout.notification_template_icon_group;
global::Xamarin.Essentials.Resource.Layout.notification_template_part_chronometer = global::Wzjqd.Resource.Layout.notification_template_part_chronometer;
global::Xamarin.Essentials.Resource.Layout.notification_template_part_time = global::Wzjqd.Resource.Layout.notification_template_part_time;
global::Xamarin.Essentials.Resource.String.copy_toast_msg = global::Wzjqd.Resource.String.copy_toast_msg;
global::Xamarin.Essentials.Resource.String.fallback_menu_item_copy_link = global::Wzjqd.Resource.String.fallback_menu_item_copy_link;
global::Xamarin.Essentials.Resource.String.fallback_menu_item_open_in_browser = global::Wzjqd.Resource.String.fallback_menu_item_open_in_browser;
global::Xamarin.Essentials.Resource.String.fallback_menu_item_share_link = global::Wzjqd.Resource.String.fallback_menu_item_share_link;
global::Xamarin.Essentials.Resource.String.status_bar_notification_info_overflow = global::Wzjqd.Resource.String.status_bar_notification_info_overflow;
global::Xamarin.Essentials.Resource.Style.TextAppearance_Compat_Notification = global::Wzjqd.Resource.Style.TextAppearance_Compat_Notification;
global::Xamarin.Essentials.Resource.Style.TextAppearance_Compat_Notification_Info = global::Wzjqd.Resource.Style.TextAppearance_Compat_Notification_Info;
global::Xamarin.Essentials.Resource.Style.TextAppearance_Compat_Notification_Line2 = global::Wzjqd.Resource.Style.TextAppearance_Compat_Notification_Line2;
global::Xamarin.Essentials.Resource.Style.TextAppearance_Compat_Notification_Time = global::Wzjqd.Resource.Style.TextAppearance_Compat_Notification_Time;
global::Xamarin.Essentials.Resource.Style.TextAppearance_Compat_Notification_Title = global::Wzjqd.Resource.Style.TextAppearance_Compat_Notification_Title;
global::Xamarin.Essentials.Resource.Style.Widget_Compat_NotificationActionContainer = global::Wzjqd.Resource.Style.Widget_Compat_NotificationActionContainer;
global::Xamarin.Essentials.Resource.Style.Widget_Compat_NotificationActionText = global::Wzjqd.Resource.Style.Widget_Compat_NotificationActionText;
global::Xamarin.Essentials.Resource.Styleable.ColorStateListItem = global::Wzjqd.Resource.Styleable.ColorStateListItem;
global::Xamarin.Essentials.Resource.Styleable.ColorStateListItem_alpha = global::Wzjqd.Resource.Styleable.ColorStateListItem_alpha;
global::Xamarin.Essentials.Resource.Styleable.ColorStateListItem_android_alpha = global::Wzjqd.Resource.Styleable.ColorStateListItem_android_alpha;
global::Xamarin.Essentials.Resource.Styleable.ColorStateListItem_android_color = global::Wzjqd.Resource.Styleable.ColorStateListItem_android_color;
global::Xamarin.Essentials.Resource.Styleable.FontFamily = global::Wzjqd.Resource.Styleable.FontFamily;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont = global::Wzjqd.Resource.Styleable.FontFamilyFont;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_android_font = global::Wzjqd.Resource.Styleable.FontFamilyFont_android_font;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_android_fontStyle = global::Wzjqd.Resource.Styleable.FontFamilyFont_android_fontStyle;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_android_fontVariationSettings = global::Wzjqd.Resource.Styleable.FontFamilyFont_android_fontVariationSettings;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_android_fontWeight = global::Wzjqd.Resource.Styleable.FontFamilyFont_android_fontWeight;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_android_ttcIndex = global::Wzjqd.Resource.Styleable.FontFamilyFont_android_ttcIndex;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_font = global::Wzjqd.Resource.Styleable.FontFamilyFont_font;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_fontStyle = global::Wzjqd.Resource.Styleable.FontFamilyFont_fontStyle;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_fontVariationSettings = global::Wzjqd.Resource.Styleable.FontFamilyFont_fontVariationSettings;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_fontWeight = global::Wzjqd.Resource.Styleable.FontFamilyFont_fontWeight;
global::Xamarin.Essentials.Resource.Styleable.FontFamilyFont_ttcIndex = global::Wzjqd.Resource.Styleable.FontFamilyFont_ttcIndex;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderAuthority = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderAuthority;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderCerts = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderCerts;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderFetchStrategy = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderFetchStrategy;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderFetchTimeout = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderFetchTimeout;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderPackage = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderPackage;
global::Xamarin.Essentials.Resource.Styleable.FontFamily_fontProviderQuery = global::Wzjqd.Resource.Styleable.FontFamily_fontProviderQuery;
global::Xamarin.Essentials.Resource.Styleable.GradientColor = global::Wzjqd.Resource.Styleable.GradientColor;
global::Xamarin.Essentials.Resource.Styleable.GradientColorItem = global::Wzjqd.Resource.Styleable.GradientColorItem;
global::Xamarin.Essentials.Resource.Styleable.GradientColorItem_android_color = global::Wzjqd.Resource.Styleable.GradientColorItem_android_color;
global::Xamarin.Essentials.Resource.Styleable.GradientColorItem_android_offset = global::Wzjqd.Resource.Styleable.GradientColorItem_android_offset;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_centerColor = global::Wzjqd.Resource.Styleable.GradientColor_android_centerColor;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_centerX = global::Wzjqd.Resource.Styleable.GradientColor_android_centerX;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_centerY = global::Wzjqd.Resource.Styleable.GradientColor_android_centerY;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_endColor = global::Wzjqd.Resource.Styleable.GradientColor_android_endColor;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_endX = global::Wzjqd.Resource.Styleable.GradientColor_android_endX;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_endY = global::Wzjqd.Resource.Styleable.GradientColor_android_endY;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_gradientRadius = global::Wzjqd.Resource.Styleable.GradientColor_android_gradientRadius;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_startColor = global::Wzjqd.Resource.Styleable.GradientColor_android_startColor;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_startX = global::Wzjqd.Resource.Styleable.GradientColor_android_startX;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_startY = global::Wzjqd.Resource.Styleable.GradientColor_android_startY;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_tileMode = global::Wzjqd.Resource.Styleable.GradientColor_android_tileMode;
global::Xamarin.Essentials.Resource.Styleable.GradientColor_android_type = global::Wzjqd.Resource.Styleable.GradientColor_android_type;
global::Xamarin.Essentials.Resource.Xml.image_share_filepaths = global::Wzjqd.Resource.Xml.image_share_filepaths;
global::Xamarin.Essentials.Resource.Xml.xamarin_essentials_fileprovider_file_paths = global::Wzjqd.Resource.Xml.xamarin_essentials_fileprovider_file_paths;
}
public partial class Animation
{
// aapt resource value: 0x7F010000
public const int abc_fade_in = 2130771968;
// aapt resource value: 0x7F010001
public const int abc_fade_out = 2130771969;
// aapt resource value: 0x7F010002
public const int abc_grow_fade_in_from_bottom = 2130771970;
// aapt resource value: 0x7F010003
public const int abc_popup_enter = 2130771971;
// aapt resource value: 0x7F010004
public const int abc_popup_exit = 2130771972;
// aapt resource value: 0x7F010005
public const int abc_shrink_fade_out_from_bottom = 2130771973;
// aapt resource value: 0x7F010006
public const int abc_slide_in_bottom = 2130771974;
// aapt resource value: 0x7F010007
public const int abc_slide_in_top = 2130771975;
// aapt resource value: 0x7F010008
public const int abc_slide_out_bottom = 2130771976;
// aapt resource value: 0x7F010009
public const int abc_slide_out_top = 2130771977;
// aapt resource value: 0x7F01000A
public const int abc_tooltip_enter = 2130771978;
// aapt resource value: 0x7F01000B
public const int abc_tooltip_exit = 2130771979;
// aapt resource value: 0x7F01000C
public const int btn_checkbox_to_checked_box_inner_merged_animation = 2130771980;
// aapt resource value: 0x7F01000D
public const int btn_checkbox_to_checked_box_outer_merged_animation = 2130771981;
// aapt resource value: 0x7F01000E
public const int btn_checkbox_to_checked_icon_null_animation = 2130771982;
// aapt resource value: 0x7F01000F
public const int btn_checkbox_to_unchecked_box_inner_merged_animation = 2130771983;
// aapt resource value: 0x7F010010
public const int btn_checkbox_to_unchecked_check_path_merged_animation = 2130771984;
// aapt resource value: 0x7F010011
public const int btn_checkbox_to_unchecked_icon_null_animation = 2130771985;
// aapt resource value: 0x7F010012
public const int btn_radio_to_off_mtrl_dot_group_animation = 2130771986;
// aapt resource value: 0x7F010013
public const int btn_radio_to_off_mtrl_ring_outer_animation = 2130771987;
// aapt resource value: 0x7F010014
public const int btn_radio_to_off_mtrl_ring_outer_path_animation = 2130771988;
// aapt resource value: 0x7F010015
public const int btn_radio_to_on_mtrl_dot_group_animation = 2130771989;
// aapt resource value: 0x7F010016
public const int btn_radio_to_on_mtrl_ring_outer_animation = 2130771990;
// aapt resource value: 0x7F010017
public const int btn_radio_to_on_mtrl_ring_outer_path_animation = 2130771991;
// aapt resource value: 0x7F010018
public const int design_bottom_sheet_slide_in = 2130771992;
// aapt resource value: 0x7F010019
public const int design_bottom_sheet_slide_out = 2130771993;
// aapt resource value: 0x7F01001A
public const int design_snackbar_in = 2130771994;
// aapt resource value: 0x7F01001B
public const int design_snackbar_out = 2130771995;
// aapt resource value: 0x7F01001C
public const int fragment_close_enter = 2130771996;
// aapt resource value: 0x7F01001D
public const int fragment_close_exit = 2130771997;
// aapt resource value: 0x7F01001E
public const int fragment_fade_enter = 2130771998;
// aapt resource value: 0x7F01001F
public const int fragment_fade_exit = 2130771999;
// aapt resource value: 0x7F010020
public const int fragment_fast_out_extra_slow_in = 2130772000;
// aapt resource value: 0x7F010021
public const int fragment_open_enter = 2130772001;
// aapt resource value: 0x7F010022
public const int fragment_open_exit = 2130772002;
static Animation()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Animation()
{
}
}
public partial class Animator
{
// aapt resource value: 0x7F020000
public const int design_appbar_state_list_animator = 2130837504;
// aapt resource value: 0x7F020001
public const int design_fab_hide_motion_spec = 2130837505;
// aapt resource value: 0x7F020002
public const int design_fab_show_motion_spec = 2130837506;
// aapt resource value: 0x7F020003
public const int mtrl_btn_state_list_anim = 2130837507;
// aapt resource value: 0x7F020004
public const int mtrl_btn_unelevated_state_list_anim = 2130837508;
// aapt resource value: 0x7F020005
public const int mtrl_chip_state_list_anim = 2130837509;
// aapt resource value: 0x7F020006
public const int mtrl_fab_hide_motion_spec = 2130837510;
// aapt resource value: 0x7F020007
public const int mtrl_fab_show_motion_spec = 2130837511;
// aapt resource value: 0x7F020008
public const int mtrl_fab_transformation_sheet_collapse_spec = 2130837512;
// aapt resource value: 0x7F020009
public const int mtrl_fab_transformation_sheet_expand_spec = 2130837513;
static Animator()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Animator()
{
}
}
public partial class Attribute
{
// aapt resource value: 0x7F030000
public const int actionBarDivider = 2130903040;
// aapt resource value: 0x7F030001
public const int actionBarItemBackground = 2130903041;
// aapt resource value: 0x7F030002
public const int actionBarPopupTheme = 2130903042;
// aapt resource value: 0x7F030003
public const int actionBarSize = 2130903043;
// aapt resource value: 0x7F030004
public const int actionBarSplitStyle = 2130903044;
// aapt resource value: 0x7F030005
public const int actionBarStyle = 2130903045;
// aapt resource value: 0x7F030006
public const int actionBarTabBarStyle = 2130903046;
// aapt resource value: 0x7F030007
public const int actionBarTabStyle = 2130903047;
// aapt resource value: 0x7F030008
public const int actionBarTabTextStyle = 2130903048;
// aapt resource value: 0x7F030009
public const int actionBarTheme = 2130903049;
// aapt resource value: 0x7F03000A
public const int actionBarWidgetTheme = 2130903050;
// aapt resource value: 0x7F03000B
public const int actionButtonStyle = 2130903051;
// aapt resource value: 0x7F03000C
public const int actionDropDownStyle = 2130903052;
// aapt resource value: 0x7F03000D
public const int actionLayout = 2130903053;
// aapt resource value: 0x7F03000E
public const int actionMenuTextAppearance = 2130903054;
// aapt resource value: 0x7F03000F
public const int actionMenuTextColor = 2130903055;
// aapt resource value: 0x7F030010
public const int actionModeBackground = 2130903056;
// aapt resource value: 0x7F030011
public const int actionModeCloseButtonStyle = 2130903057;
// aapt resource value: 0x7F030012
public const int actionModeCloseDrawable = 2130903058;
// aapt resource value: 0x7F030013
public const int actionModeCopyDrawable = 2130903059;
// aapt resource value: 0x7F030014
public const int actionModeCutDrawable = 2130903060;
// aapt resource value: 0x7F030015
public const int actionModeFindDrawable = 2130903061;
// aapt resource value: 0x7F030016
public const int actionModePasteDrawable = 2130903062;
// aapt resource value: 0x7F030017
public const int actionModePopupWindowStyle = 2130903063;
// aapt resource value: 0x7F030018
public const int actionModeSelectAllDrawable = 2130903064;
// aapt resource value: 0x7F030019
public const int actionModeShareDrawable = 2130903065;
// aapt resource value: 0x7F03001A
public const int actionModeSplitBackground = 2130903066;
// aapt resource value: 0x7F03001B
public const int actionModeStyle = 2130903067;
// aapt resource value: 0x7F03001C
public const int actionModeWebSearchDrawable = 2130903068;
// aapt resource value: 0x7F03001D
public const int actionOverflowButtonStyle = 2130903069;
// aapt resource value: 0x7F03001E
public const int actionOverflowMenuStyle = 2130903070;
// aapt resource value: 0x7F03001F
public const int actionProviderClass = 2130903071;
// aapt resource value: 0x7F030020
public const int actionViewClass = 2130903072;
// aapt resource value: 0x7F030021
public const int activityChooserViewStyle = 2130903073;
// aapt resource value: 0x7F030022
public const int alertDialogButtonGroupStyle = 2130903074;
// aapt resource value: 0x7F030023
public const int alertDialogCenterButtons = 2130903075;
// aapt resource value: 0x7F030024
public const int alertDialogStyle = 2130903076;
// aapt resource value: 0x7F030025
public const int alertDialogTheme = 2130903077;
// aapt resource value: 0x7F030026
public const int allowStacking = 2130903078;
// aapt resource value: 0x7F030027
public const int alpha = 2130903079;
// aapt resource value: 0x7F030028
public const int alphabeticModifiers = 2130903080;
// aapt resource value: 0x7F030029
public const int arrowHeadLength = 2130903081;
// aapt resource value: 0x7F03002A
public const int arrowShaftLength = 2130903082;
// aapt resource value: 0x7F03002B
public const int autoCompleteTextViewStyle = 2130903083;
// aapt resource value: 0x7F03002C
public const int autoSizeMaxTextSize = 2130903084;
// aapt resource value: 0x7F03002D
public const int autoSizeMinTextSize = 2130903085;
// aapt resource value: 0x7F03002E
public const int autoSizePresetSizes = 2130903086;
// aapt resource value: 0x7F03002F
public const int autoSizeStepGranularity = 2130903087;
// aapt resource value: 0x7F030030
public const int autoSizeTextType = 2130903088;
// aapt resource value: 0x7F030031
public const int background = 2130903089;
// aapt resource value: 0x7F030032
public const int backgroundSplit = 2130903090;
// aapt resource value: 0x7F030033
public const int backgroundStacked = 2130903091;
// aapt resource value: 0x7F030034
public const int backgroundTint = 2130903092;
// aapt resource value: 0x7F030035
public const int backgroundTintMode = 2130903093;
// aapt resource value: 0x7F030036
public const int barLength = 2130903094;
// aapt resource value: 0x7F030037
public const int behavior_autoHide = 2130903095;
// aapt resource value: 0x7F030038
public const int behavior_fitToContents = 2130903096;
// aapt resource value: 0x7F030039
public const int behavior_hideable = 2130903097;
// aapt resource value: 0x7F03003A
public const int behavior_overlapTop = 2130903098;
// aapt resource value: 0x7F03003B
public const int behavior_peekHeight = 2130903099;
// aapt resource value: 0x7F03003C
public const int behavior_skipCollapsed = 2130903100;
// aapt resource value: 0x7F03003E
public const int borderlessButtonStyle = 2130903102;
// aapt resource value: 0x7F03003D
public const int borderWidth = 2130903101;
// aapt resource value: 0x7F03003F
public const int bottomAppBarStyle = 2130903103;
// aapt resource value: 0x7F030040
public const int bottomNavigationStyle = 2130903104;
// aapt resource value: 0x7F030041
public const int bottomSheetDialogTheme = 2130903105;
// aapt resource value: 0x7F030042
public const int bottomSheetStyle = 2130903106;
// aapt resource value: 0x7F030043
public const int boxBackgroundColor = 2130903107;
// aapt resource value: 0x7F030044
public const int boxBackgroundMode = 2130903108;
// aapt resource value: 0x7F030045
public const int boxCollapsedPaddingTop = 2130903109;
// aapt resource value: 0x7F030046
public const int boxCornerRadiusBottomEnd = 2130903110;
// aapt resource value: 0x7F030047
public const int boxCornerRadiusBottomStart = 2130903111;
// aapt resource value: 0x7F030048
public const int boxCornerRadiusTopEnd = 2130903112;
// aapt resource value: 0x7F030049
public const int boxCornerRadiusTopStart = 2130903113;
// aapt resource value: 0x7F03004A
public const int boxStrokeColor = 2130903114;
// aapt resource value: 0x7F03004B
public const int boxStrokeWidth = 2130903115;
// aapt resource value: 0x7F03004C
public const int buttonBarButtonStyle = 2130903116;
// aapt resource value: 0x7F03004D
public const int buttonBarNegativeButtonStyle = 2130903117;
// aapt resource value: 0x7F03004E
public const int buttonBarNeutralButtonStyle = 2130903118;
// aapt resource value: 0x7F03004F
public const int buttonBarPositiveButtonStyle = 2130903119;
// aapt resource value: 0x7F030050
public const int buttonBarStyle = 2130903120;
// aapt resource value: 0x7F030051
public const int buttonCompat = 2130903121;
// aapt resource value: 0x7F030052
public const int buttonGravity = 2130903122;
// aapt resource value: 0x7F030053
public const int buttonIconDimen = 2130903123;
// aapt resource value: 0x7F030054
public const int buttonPanelSideLayout = 2130903124;
// aapt resource value: 0x7F030055
public const int buttonStyle = 2130903125;
// aapt resource value: 0x7F030056
public const int buttonStyleSmall = 2130903126;
// aapt resource value: 0x7F030057
public const int buttonTint = 2130903127;
// aapt resource value: 0x7F030058
public const int buttonTintMode = 2130903128;
// aapt resource value: 0x7F030059
public const int cardBackgroundColor = 2130903129;
// aapt resource value: 0x7F03005A
public const int cardCornerRadius = 2130903130;
// aapt resource value: 0x7F03005B
public const int cardElevation = 2130903131;
// aapt resource value: 0x7F03005C
public const int cardMaxElevation = 2130903132;
// aapt resource value: 0x7F03005D
public const int cardPreventCornerOverlap = 2130903133;
// aapt resource value: 0x7F03005E
public const int cardUseCompatPadding = 2130903134;
// aapt resource value: 0x7F03005F
public const int cardViewStyle = 2130903135;
// aapt resource value: 0x7F030060
public const int checkboxStyle = 2130903136;
// aapt resource value: 0x7F030061
public const int checkedChip = 2130903137;
// aapt resource value: 0x7F030062
public const int checkedIcon = 2130903138;
// aapt resource value: 0x7F030063
public const int checkedIconEnabled = 2130903139;
// aapt resource value: 0x7F030064
public const int checkedIconVisible = 2130903140;
// aapt resource value: 0x7F030065
public const int checkedTextViewStyle = 2130903141;
// aapt resource value: 0x7F030066
public const int chipBackgroundColor = 2130903142;
// aapt resource value: 0x7F030067
public const int chipCornerRadius = 2130903143;
// aapt resource value: 0x7F030068
public const int chipEndPadding = 2130903144;
// aapt resource value: 0x7F030069
public const int chipGroupStyle = 2130903145;
// aapt resource value: 0x7F03006A
public const int chipIcon = 2130903146;
// aapt resource value: 0x7F03006B
public const int chipIconEnabled = 2130903147;
// aapt resource value: 0x7F03006C
public const int chipIconSize = 2130903148;
// aapt resource value: 0x7F03006D
public const int chipIconTint = 2130903149;
// aapt resource value: 0x7F03006E
public const int chipIconVisible = 2130903150;
// aapt resource value: 0x7F03006F
public const int chipMinHeight = 2130903151;
// aapt resource value: 0x7F030070
public const int chipSpacing = 2130903152;
// aapt resource value: 0x7F030071
public const int chipSpacingHorizontal = 2130903153;
// aapt resource value: 0x7F030072
public const int chipSpacingVertical = 2130903154;
// aapt resource value: 0x7F030073
public const int chipStandaloneStyle = 2130903155;
// aapt resource value: 0x7F030074
public const int chipStartPadding = 2130903156;
// aapt resource value: 0x7F030075
public const int chipStrokeColor = 2130903157;
// aapt resource value: 0x7F030076
public const int chipStrokeWidth = 2130903158;
// aapt resource value: 0x7F030077
public const int chipStyle = 2130903159;
// aapt resource value: 0x7F030078
public const int closeIcon = 2130903160;
// aapt resource value: 0x7F030079
public const int closeIconEnabled = 2130903161;
// aapt resource value: 0x7F03007A
public const int closeIconEndPadding = 2130903162;
// aapt resource value: 0x7F03007B
public const int closeIconSize = 2130903163;
// aapt resource value: 0x7F03007C
public const int closeIconStartPadding = 2130903164;
// aapt resource value: 0x7F03007D
public const int closeIconTint = 2130903165;
// aapt resource value: 0x7F03007E
public const int closeIconVisible = 2130903166;
// aapt resource value: 0x7F03007F
public const int closeItemLayout = 2130903167;
// aapt resource value: 0x7F030080
public const int collapseContentDescription = 2130903168;
// aapt resource value: 0x7F030082
public const int collapsedTitleGravity = 2130903170;
// aapt resource value: 0x7F030083
public const int collapsedTitleTextAppearance = 2130903171;
// aapt resource value: 0x7F030081
public const int collapseIcon = 2130903169;
// aapt resource value: 0x7F030084
public const int color = 2130903172;
// aapt resource value: 0x7F030085
public const int colorAccent = 2130903173;
// aapt resource value: 0x7F030086
public const int colorBackgroundFloating = 2130903174;
// aapt resource value: 0x7F030087
public const int colorButtonNormal = 2130903175;
// aapt resource value: 0x7F030088
public const int colorControlActivated = 2130903176;
// aapt resource value: 0x7F030089
public const int colorControlHighlight = 2130903177;
// aapt resource value: 0x7F03008A
public const int colorControlNormal = 2130903178;
// aapt resource value: 0x7F03008B
public const int colorError = 2130903179;
// aapt resource value: 0x7F03008C
public const int colorPrimary = 2130903180;
// aapt resource value: 0x7F03008D
public const int colorPrimaryDark = 2130903181;
// aapt resource value: 0x7F03008E
public const int colorSecondary = 2130903182;
// aapt resource value: 0x7F03008F
public const int colorSwitchThumbNormal = 2130903183;
// aapt resource value: 0x7F030090
public const int commitIcon = 2130903184;
// aapt resource value: 0x7F030091
public const int contentDescription = 2130903185;
// aapt resource value: 0x7F030092
public const int contentInsetEnd = 2130903186;
// aapt resource value: 0x7F030093
public const int contentInsetEndWithActions = 2130903187;
// aapt resource value: 0x7F030094
public const int contentInsetLeft = 2130903188;
// aapt resource value: 0x7F030095
public const int contentInsetRight = 2130903189;
// aapt resource value: 0x7F030096
public const int contentInsetStart = 2130903190;
// aapt resource value: 0x7F030097
public const int contentInsetStartWithNavigation = 2130903191;
// aapt resource value: 0x7F030098
public const int contentPadding = 2130903192;
// aapt resource value: 0x7F030099
public const int contentPaddingBottom = 2130903193;
// aapt resource value: 0x7F03009A
public const int contentPaddingLeft = 2130903194;
// aapt resource value: 0x7F03009B
public const int contentPaddingRight = 2130903195;
// aapt resource value: 0x7F03009C
public const int contentPaddingTop = 2130903196;
// aapt resource value: 0x7F03009D
public const int contentScrim = 2130903197;
// aapt resource value: 0x7F03009E
public const int controlBackground = 2130903198;
// aapt resource value: 0x7F03009F
public const int coordinatorLayoutStyle = 2130903199;
// aapt resource value: 0x7F0300A0
public const int cornerRadius = 2130903200;
// aapt resource value: 0x7F0300A1
public const int counterEnabled = 2130903201;
// aapt resource value: 0x7F0300A2
public const int counterMaxLength = 2130903202;
// aapt resource value: 0x7F0300A3
public const int counterOverflowTextAppearance = 2130903203;
// aapt resource value: 0x7F0300A4
public const int counterTextAppearance = 2130903204;
// aapt resource value: 0x7F0300A5
public const int customNavigationLayout = 2130903205;
// aapt resource value: 0x7F0300A6
public const int defaultQueryHint = 2130903206;
// aapt resource value: 0x7F0300A7
public const int dialogCornerRadius = 2130903207;
// aapt resource value: 0x7F0300A8
public const int dialogPreferredPadding = 2130903208;
// aapt resource value: 0x7F0300A9
public const int dialogTheme = 2130903209;
// aapt resource value: 0x7F0300AA
public const int displayOptions = 2130903210;
// aapt resource value: 0x7F0300AB
public const int divider = 2130903211;
// aapt resource value: 0x7F0300AC
public const int dividerHorizontal = 2130903212;
// aapt resource value: 0x7F0300AD
public const int dividerPadding = 2130903213;
// aapt resource value: 0x7F0300AE
public const int dividerVertical = 2130903214;
// aapt resource value: 0x7F0300AF
public const int drawableBottomCompat = 2130903215;
// aapt resource value: 0x7F0300B0
public const int drawableEndCompat = 2130903216;
// aapt resource value: 0x7F0300B1
public const int drawableLeftCompat = 2130903217;
// aapt resource value: 0x7F0300B2
public const int drawableRightCompat = 2130903218;
// aapt resource value: 0x7F0300B3
public const int drawableSize = 2130903219;
// aapt resource value: 0x7F0300B4
public const int drawableStartCompat = 2130903220;
// aapt resource value: 0x7F0300B5
public const int drawableTint = 2130903221;
// aapt resource value: 0x7F0300B6
public const int drawableTintMode = 2130903222;
// aapt resource value: 0x7F0300B7
public const int drawableTopCompat = 2130903223;
// aapt resource value: 0x7F0300B8
public const int drawerArrowStyle = 2130903224;
// aapt resource value: 0x7F0300B9
public const int drawerLayoutStyle = 2130903225;
// aapt resource value: 0x7F0300BB
public const int dropdownListPreferredItemHeight = 2130903227;
// aapt resource value: 0x7F0300BA
public const int dropDownListViewStyle = 2130903226;
// aapt resource value: 0x7F0300BC
public const int editTextBackground = 2130903228;
// aapt resource value: 0x7F0300BD
public const int editTextColor = 2130903229;
// aapt resource value: 0x7F0300BE
public const int editTextStyle = 2130903230;
// aapt resource value: 0x7F0300BF
public const int elevation = 2130903231;
// aapt resource value: 0x7F0300C0
public const int enforceMaterialTheme = 2130903232;
// aapt resource value: 0x7F0300C1
public const int enforceTextAppearance = 2130903233;
// aapt resource value: 0x7F0300C2
public const int errorEnabled = 2130903234;
// aapt resource value: 0x7F0300C3
public const int errorTextAppearance = 2130903235;
// aapt resource value: 0x7F0300C4
public const int expandActivityOverflowButtonDrawable = 2130903236;
// aapt resource value: 0x7F0300C5
public const int expanded = 2130903237;
// aapt resource value: 0x7F0300C6
public const int expandedTitleGravity = 2130903238;
// aapt resource value: 0x7F0300C7
public const int expandedTitleMargin = 2130903239;
// aapt resource value: 0x7F0300C8
public const int expandedTitleMarginBottom = 2130903240;
// aapt resource value: 0x7F0300C9
public const int expandedTitleMarginEnd = 2130903241;
// aapt resource value: 0x7F0300CA
public const int expandedTitleMarginStart = 2130903242;
// aapt resource value: 0x7F0300CB
public const int expandedTitleMarginTop = 2130903243;
// aapt resource value: 0x7F0300CC
public const int expandedTitleTextAppearance = 2130903244;
// aapt resource value: 0x7F0300CD
public const int fabAlignmentMode = 2130903245;
// aapt resource value: 0x7F0300CE
public const int fabCradleMargin = 2130903246;
// aapt resource value: 0x7F0300CF
public const int fabCradleRoundedCornerRadius = 2130903247;
// aapt resource value: 0x7F0300D0
public const int fabCradleVerticalOffset = 2130903248;
// aapt resource value: 0x7F0300D1
public const int fabCustomSize = 2130903249;
// aapt resource value: 0x7F0300D2
public const int fabSize = 2130903250;
// aapt resource value: 0x7F0300D3
public const int fastScrollEnabled = 2130903251;
// aapt resource value: 0x7F0300D4
public const int fastScrollHorizontalThumbDrawable = 2130903252;
// aapt resource value: 0x7F0300D5
public const int fastScrollHorizontalTrackDrawable = 2130903253;
// aapt resource value: 0x7F0300D6
public const int fastScrollVerticalThumbDrawable = 2130903254;
// aapt resource value: 0x7F0300D7
public const int fastScrollVerticalTrackDrawable = 2130903255;
// aapt resource value: 0x7F0300D8
public const int firstBaselineToTopHeight = 2130903256;
// aapt resource value: 0x7F0300D9
public const int floatingActionButtonStyle = 2130903257;
// aapt resource value: 0x7F0300DA
public const int font = 2130903258;
// aapt resource value: 0x7F0300DB
public const int fontFamily = 2130903259;
// aapt resource value: 0x7F0300DC
public const int fontProviderAuthority = 2130903260;
// aapt resource value: 0x7F0300DD
public const int fontProviderCerts = 2130903261;
// aapt resource value: 0x7F0300DE
public const int fontProviderFetchStrategy = 2130903262;
// aapt resource value: 0x7F0300DF
public const int fontProviderFetchTimeout = 2130903263;
// aapt resource value: 0x7F0300E0
public const int fontProviderPackage = 2130903264;
// aapt resource value: 0x7F0300E1
public const int fontProviderQuery = 2130903265;
// aapt resource value: 0x7F0300E2
public const int fontStyle = 2130903266;
// aapt resource value: 0x7F0300E3
public const int fontVariationSettings = 2130903267;
// aapt resource value: 0x7F0300E4
public const int fontWeight = 2130903268;
// aapt resource value: 0x7F0300E5
public const int foregroundInsidePadding = 2130903269;
// aapt resource value: 0x7F0300E6
public const int gapBetweenBars = 2130903270;
// aapt resource value: 0x7F0300E7
public const int goIcon = 2130903271;
// aapt resource value: 0x7F0300E8
public const int headerLayout = 2130903272;
// aapt resource value: 0x7F0300E9
public const int height = 2130903273;
// aapt resource value: 0x7F0300EA
public const int helperText = 2130903274;
// aapt resource value: 0x7F0300EB
public const int helperTextEnabled = 2130903275;
// aapt resource value: 0x7F0300EC
public const int helperTextTextAppearance = 2130903276;
// aapt resource value: 0x7F0300ED
public const int hideMotionSpec = 2130903277;
// aapt resource value: 0x7F0300EE
public const int hideOnContentScroll = 2130903278;
// aapt resource value: 0x7F0300EF
public const int hideOnScroll = 2130903279;
// aapt resource value: 0x7F0300F0
public const int hintAnimationEnabled = 2130903280;
// aapt resource value: 0x7F0300F1
public const int hintEnabled = 2130903281;
// aapt resource value: 0x7F0300F2
public const int hintTextAppearance = 2130903282;
// aapt resource value: 0x7F0300F3
public const int homeAsUpIndicator = 2130903283;
// aapt resource value: 0x7F0300F4
public const int homeLayout = 2130903284;
// aapt resource value: 0x7F0300F5
public const int hoveredFocusedTranslationZ = 2130903285;
// aapt resource value: 0x7F0300F6
public const int icon = 2130903286;
// aapt resource value: 0x7F0300F7
public const int iconEndPadding = 2130903287;
// aapt resource value: 0x7F0300F8
public const int iconGravity = 2130903288;
// aapt resource value: 0x7F0300FE
public const int iconifiedByDefault = 2130903294;
// aapt resource value: 0x7F0300F9
public const int iconPadding = 2130903289;
// aapt resource value: 0x7F0300FA
public const int iconSize = 2130903290;
// aapt resource value: 0x7F0300FB
public const int iconStartPadding = 2130903291;
// aapt resource value: 0x7F0300FC
public const int iconTint = 2130903292;
// aapt resource value: 0x7F0300FD
public const int iconTintMode = 2130903293;
// aapt resource value: 0x7F0300FF
public const int imageButtonStyle = 2130903295;
// aapt resource value: 0x7F030100
public const int indeterminateProgressStyle = 2130903296;
// aapt resource value: 0x7F030101
public const int initialActivityCount = 2130903297;
// aapt resource value: 0x7F030102
public const int insetForeground = 2130903298;
// aapt resource value: 0x7F030103
public const int isLightTheme = 2130903299;
// aapt resource value: 0x7F030104
public const int itemBackground = 2130903300;
// aapt resource value: 0x7F030105
public const int itemHorizontalPadding = 2130903301;
// aapt resource value: 0x7F030106
public const int itemHorizontalTranslationEnabled = 2130903302;
// aapt resource value: 0x7F030107
public const int itemIconPadding = 2130903303;
// aapt resource value: 0x7F030108
public const int itemIconSize = 2130903304;
// aapt resource value: 0x7F030109
public const int itemIconTint = 2130903305;
// aapt resource value: 0x7F03010A
public const int itemPadding = 2130903306;
// aapt resource value: 0x7F03010B
public const int itemSpacing = 2130903307;
// aapt resource value: 0x7F03010C
public const int itemTextAppearance = 2130903308;
// aapt resource value: 0x7F03010D
public const int itemTextAppearanceActive = 2130903309;
// aapt resource value: 0x7F03010E
public const int itemTextAppearanceInactive = 2130903310;
// aapt resource value: 0x7F03010F
public const int itemTextColor = 2130903311;
// aapt resource value: 0x7F030110
public const int keylines = 2130903312;
// aapt resource value: 0x7F030111
public const int labelVisibilityMode = 2130903313;
// aapt resource value: 0x7F030112
public const int lastBaselineToBottomHeight = 2130903314;
// aapt resource value: 0x7F030113
public const int layout = 2130903315;
// aapt resource value: 0x7F030114
public const int layoutManager = 2130903316;
// aapt resource value: 0x7F030115
public const int layout_anchor = 2130903317;
// aapt resource value: 0x7F030116
public const int layout_anchorGravity = 2130903318;
// aapt resource value: 0x7F030117
public const int layout_behavior = 2130903319;
// aapt resource value: 0x7F030118
public const int layout_collapseMode = 2130903320;
// aapt resource value: 0x7F030119
public const int layout_collapseParallaxMultiplier = 2130903321;
// aapt resource value: 0x7F03011A
public const int layout_dodgeInsetEdges = 2130903322;
// aapt resource value: 0x7F03011B
public const int layout_insetEdge = 2130903323;
// aapt resource value: 0x7F03011C
public const int layout_keyline = 2130903324;
// aapt resource value: 0x7F03011D
public const int layout_scrollFlags = 2130903325;
// aapt resource value: 0x7F03011E
public const int layout_scrollInterpolator = 2130903326;
// aapt resource value: 0x7F03011F
public const int liftOnScroll = 2130903327;
// aapt resource value: 0x7F030120
public const int lineHeight = 2130903328;
// aapt resource value: 0x7F030121
public const int lineSpacing = 2130903329;
// aapt resource value: 0x7F030122
public const int listChoiceBackgroundIndicator = 2130903330;
// aapt resource value: 0x7F030123
public const int listChoiceIndicatorMultipleAnimated = 2130903331;
// aapt resource value: 0x7F030124
public const int listChoiceIndicatorSingleAnimated = 2130903332;
// aapt resource value: 0x7F030125
public const int listDividerAlertDialog = 2130903333;
// aapt resource value: 0x7F030126
public const int listItemLayout = 2130903334;
// aapt resource value: 0x7F030127
public const int listLayout = 2130903335;
// aapt resource value: 0x7F030128
public const int listMenuViewStyle = 2130903336;
// aapt resource value: 0x7F030129
public const int listPopupWindowStyle = 2130903337;
// aapt resource value: 0x7F03012A
public const int listPreferredItemHeight = 2130903338;
// aapt resource value: 0x7F03012B
public const int listPreferredItemHeightLarge = 2130903339;
// aapt resource value: 0x7F03012C
public const int listPreferredItemHeightSmall = 2130903340;
// aapt resource value: 0x7F03012D
public const int listPreferredItemPaddingEnd = 2130903341;
// aapt resource value: 0x7F03012E
public const int listPreferredItemPaddingLeft = 2130903342;
// aapt resource value: 0x7F03012F
public const int listPreferredItemPaddingRight = 2130903343;
// aapt resource value: 0x7F030130
public const int listPreferredItemPaddingStart = 2130903344;
// aapt resource value: 0x7F030131
public const int logo = 2130903345;
// aapt resource value: 0x7F030132
public const int logoDescription = 2130903346;
// aapt resource value: 0x7F030133
public const int materialButtonStyle = 2130903347;
// aapt resource value: 0x7F030134
public const int materialCardViewStyle = 2130903348;
// aapt resource value: 0x7F030135
public const int maxActionInlineWidth = 2130903349;
// aapt resource value: 0x7F030136
public const int maxButtonHeight = 2130903350;
// aapt resource value: 0x7F030137
public const int maxImageSize = 2130903351;
// aapt resource value: 0x7F030138
public const int measureWithLargestChild = 2130903352;
// aapt resource value: 0x7F030139
public const int menu = 2130903353;
// aapt resource value: 0x7F03013A
public const int multiChoiceItemLayout = 2130903354;
// aapt resource value: 0x7F03013B
public const int navigationContentDescription = 2130903355;
// aapt resource value: 0x7F03013C
public const int navigationIcon = 2130903356;
// aapt resource value: 0x7F03013D
public const int navigationMode = 2130903357;
// aapt resource value: 0x7F03013E
public const int navigationViewStyle = 2130903358;
// aapt resource value: 0x7F03013F
public const int numericModifiers = 2130903359;
// aapt resource value: 0x7F030140
public const int overlapAnchor = 2130903360;
// aapt resource value: 0x7F030141
public const int paddingBottomNoButtons = 2130903361;
// aapt resource value: 0x7F030142
public const int paddingEnd = 2130903362;
// aapt resource value: 0x7F030143
public const int paddingStart = 2130903363;
// aapt resource value: 0x7F030144
public const int paddingTopNoTitle = 2130903364;
// aapt resource value: 0x7F030145
public const int panelBackground = 2130903365;
// aapt resource value: 0x7F030146
public const int panelMenuListTheme = 2130903366;
// aapt resource value: 0x7F030147
public const int panelMenuListWidth = 2130903367;
// aapt resource value: 0x7F030148
public const int passwordToggleContentDescription = 2130903368;
// aapt resource value: 0x7F030149
public const int passwordToggleDrawable = 2130903369;
// aapt resource value: 0x7F03014A
public const int passwordToggleEnabled = 2130903370;
// aapt resource value: 0x7F03014B
public const int passwordToggleTint = 2130903371;
// aapt resource value: 0x7F03014C
public const int passwordToggleTintMode = 2130903372;
// aapt resource value: 0x7F03014D
public const int popupMenuStyle = 2130903373;
// aapt resource value: 0x7F03014E
public const int popupTheme = 2130903374;
// aapt resource value: 0x7F03014F
public const int popupWindowStyle = 2130903375;
// aapt resource value: 0x7F030150
public const int preserveIconSpacing = 2130903376;
// aapt resource value: 0x7F030151
public const int pressedTranslationZ = 2130903377;
// aapt resource value: 0x7F030152
public const int progressBarPadding = 2130903378;
// aapt resource value: 0x7F030153
public const int progressBarStyle = 2130903379;
// aapt resource value: 0x7F030154
public const int queryBackground = 2130903380;
// aapt resource value: 0x7F030155
public const int queryHint = 2130903381;
// aapt resource value: 0x7F030156
public const int radioButtonStyle = 2130903382;
// aapt resource value: 0x7F030157
public const int ratingBarStyle = 2130903383;
// aapt resource value: 0x7F030158
public const int ratingBarStyleIndicator = 2130903384;
// aapt resource value: 0x7F030159
public const int ratingBarStyleSmall = 2130903385;
// aapt resource value: 0x7F03015A
public const int recyclerViewStyle = 2130903386;
// aapt resource value: 0x7F03015B
public const int reverseLayout = 2130903387;
// aapt resource value: 0x7F03015C
public const int rippleColor = 2130903388;
// aapt resource value: 0x7F03015D
public const int scrimAnimationDuration = 2130903389;
// aapt resource value: 0x7F03015E
public const int scrimBackground = 2130903390;
// aapt resource value: 0x7F03015F
public const int scrimVisibleHeightTrigger = 2130903391;
// aapt resource value: 0x7F030160
public const int searchHintIcon = 2130903392;
// aapt resource value: 0x7F030161
public const int searchIcon = 2130903393;
// aapt resource value: 0x7F030162
public const int searchViewStyle = 2130903394;
// aapt resource value: 0x7F030163
public const int seekBarStyle = 2130903395;
// aapt resource value: 0x7F030164
public const int selectableItemBackground = 2130903396;
// aapt resource value: 0x7F030165
public const int selectableItemBackgroundBorderless = 2130903397;
// aapt resource value: 0x7F030166
public const int showAsAction = 2130903398;
// aapt resource value: 0x7F030167
public const int showDividers = 2130903399;
// aapt resource value: 0x7F030168
public const int showMotionSpec = 2130903400;
// aapt resource value: 0x7F030169
public const int showText = 2130903401;
// aapt resource value: 0x7F03016A
public const int showTitle = 2130903402;
// aapt resource value: 0x7F03016B
public const int singleChoiceItemLayout = 2130903403;
// aapt resource value: 0x7F03016C
public const int singleLine = 2130903404;
// aapt resource value: 0x7F03016D
public const int singleSelection = 2130903405;
// aapt resource value: 0x7F03016E
public const int snackbarButtonStyle = 2130903406;
// aapt resource value: 0x7F03016F
public const int snackbarStyle = 2130903407;
// aapt resource value: 0x7F030170
public const int spanCount = 2130903408;
// aapt resource value: 0x7F030171
public const int spinBars = 2130903409;
// aapt resource value: 0x7F030172
public const int spinnerDropDownItemStyle = 2130903410;
// aapt resource value: 0x7F030173
public const int spinnerStyle = 2130903411;
// aapt resource value: 0x7F030174
public const int splitTrack = 2130903412;
// aapt resource value: 0x7F030175
public const int srcCompat = 2130903413;
// aapt resource value: 0x7F030176
public const int stackFromEnd = 2130903414;
// aapt resource value: 0x7F030177
public const int state_above_anchor = 2130903415;
// aapt resource value: 0x7F030178
public const int state_collapsed = 2130903416;
// aapt resource value: 0x7F030179
public const int state_collapsible = 2130903417;
// aapt resource value: 0x7F03017A
public const int state_liftable = 2130903418;
// aapt resource value: 0x7F03017B
public const int state_lifted = 2130903419;
// aapt resource value: 0x7F03017C
public const int statusBarBackground = 2130903420;
// aapt resource value: 0x7F03017D
public const int statusBarScrim = 2130903421;
// aapt resource value: 0x7F03017E
public const int strokeColor = 2130903422;
// aapt resource value: 0x7F03017F
public const int strokeWidth = 2130903423;
// aapt resource value: 0x7F030180
public const int subMenuArrow = 2130903424;
// aapt resource value: 0x7F030181
public const int submitBackground = 2130903425;
// aapt resource value: 0x7F030182
public const int subtitle = 2130903426;
// aapt resource value: 0x7F030183
public const int subtitleTextAppearance = 2130903427;
// aapt resource value: 0x7F030184
public const int subtitleTextColor = 2130903428;
// aapt resource value: 0x7F030185
public const int subtitleTextStyle = 2130903429;
// aapt resource value: 0x7F030186
public const int suggestionRowLayout = 2130903430;
// aapt resource value: 0x7F030187
public const int switchMinWidth = 2130903431;
// aapt resource value: 0x7F030188
public const int switchPadding = 2130903432;
// aapt resource value: 0x7F030189
public const int switchStyle = 2130903433;
// aapt resource value: 0x7F03018A
public const int switchTextAppearance = 2130903434;
// aapt resource value: 0x7F03018B
public const int tabBackground = 2130903435;
// aapt resource value: 0x7F03018C
public const int tabContentStart = 2130903436;
// aapt resource value: 0x7F03018D
public const int tabGravity = 2130903437;
// aapt resource value: 0x7F03018E
public const int tabIconTint = 2130903438;
// aapt resource value: 0x7F03018F
public const int tabIconTintMode = 2130903439;
// aapt resource value: 0x7F030190
public const int tabIndicator = 2130903440;
// aapt resource value: 0x7F030191
public const int tabIndicatorAnimationDuration = 2130903441;
// aapt resource value: 0x7F030192
public const int tabIndicatorColor = 2130903442;
// aapt resource value: 0x7F030193
public const int tabIndicatorFullWidth = 2130903443;
// aapt resource value: 0x7F030194
public const int tabIndicatorGravity = 2130903444;
// aapt resource value: 0x7F030195
public const int tabIndicatorHeight = 2130903445;
// aapt resource value: 0x7F030196
public const int tabInlineLabel = 2130903446;
// aapt resource value: 0x7F030197
public const int tabMaxWidth = 2130903447;
// aapt resource value: 0x7F030198
public const int tabMinWidth = 2130903448;
// aapt resource value: 0x7F030199
public const int tabMode = 2130903449;
// aapt resource value: 0x7F03019A
public const int tabPadding = 2130903450;
// aapt resource value: 0x7F03019B
public const int tabPaddingBottom = 2130903451;
// aapt resource value: 0x7F03019C
public const int tabPaddingEnd = 2130903452;
// aapt resource value: 0x7F03019D
public const int tabPaddingStart = 2130903453;
// aapt resource value: 0x7F03019E
public const int tabPaddingTop = 2130903454;
// aapt resource value: 0x7F03019F
public const int tabRippleColor = 2130903455;
// aapt resource value: 0x7F0301A0
public const int tabSelectedTextColor = 2130903456;
// aapt resource value: 0x7F0301A1
public const int tabStyle = 2130903457;
// aapt resource value: 0x7F0301A2
public const int tabTextAppearance = 2130903458;
// aapt resource value: 0x7F0301A3
public const int tabTextColor = 2130903459;
// aapt resource value: 0x7F0301A4
public const int tabUnboundedRipple = 2130903460;
// aapt resource value: 0x7F0301A5
public const int textAllCaps = 2130903461;
// aapt resource value: 0x7F0301A6
public const int textAppearanceBody1 = 2130903462;
// aapt resource value: 0x7F0301A7
public const int textAppearanceBody2 = 2130903463;
// aapt resource value: 0x7F0301A8
public const int textAppearanceButton = 2130903464;
// aapt resource value: 0x7F0301A9
public const int textAppearanceCaption = 2130903465;
// aapt resource value: 0x7F0301AA
public const int textAppearanceHeadline1 = 2130903466;
// aapt resource value: 0x7F0301AB
public const int textAppearanceHeadline2 = 2130903467;
// aapt resource value: 0x7F0301AC
public const int textAppearanceHeadline3 = 2130903468;
// aapt resource value: 0x7F0301AD
public const int textAppearanceHeadline4 = 2130903469;
// aapt resource value: 0x7F0301AE
public const int textAppearanceHeadline5 = 2130903470;
// aapt resource value: 0x7F0301AF
public const int textAppearanceHeadline6 = 2130903471;
// aapt resource value: 0x7F0301B0
public const int textAppearanceLargePopupMenu = 2130903472;
// aapt resource value: 0x7F0301B1
public const int textAppearanceListItem = 2130903473;
// aapt resource value: 0x7F0301B2
public const int textAppearanceListItemSecondary = 2130903474;
// aapt resource value: 0x7F0301B3
public const int textAppearanceListItemSmall = 2130903475;
// aapt resource value: 0x7F0301B4
public const int textAppearanceOverline = 2130903476;
// aapt resource value: 0x7F0301B5
public const int textAppearancePopupMenuHeader = 2130903477;
// aapt resource value: 0x7F0301B6
public const int textAppearanceSearchResultSubtitle = 2130903478;
// aapt resource value: 0x7F0301B7
public const int textAppearanceSearchResultTitle = 2130903479;
// aapt resource value: 0x7F0301B8
public const int textAppearanceSmallPopupMenu = 2130903480;
// aapt resource value: 0x7F0301B9
public const int textAppearanceSubtitle1 = 2130903481;
// aapt resource value: 0x7F0301BA
public const int textAppearanceSubtitle2 = 2130903482;
// aapt resource value: 0x7F0301BB
public const int textColorAlertDialogListItem = 2130903483;
// aapt resource value: 0x7F0301BC
public const int textColorSearchUrl = 2130903484;
// aapt resource value: 0x7F0301BD
public const int textEndPadding = 2130903485;
// aapt resource value: 0x7F0301BE
public const int textInputStyle = 2130903486;
// aapt resource value: 0x7F0301BF
public const int textLocale = 2130903487;
// aapt resource value: 0x7F0301C0
public const int textStartPadding = 2130903488;
// aapt resource value: 0x7F0301C1
public const int theme = 2130903489;
// aapt resource value: 0x7F0301C2
public const int thickness = 2130903490;
// aapt resource value: 0x7F0301C3
public const int thumbTextPadding = 2130903491;
// aapt resource value: 0x7F0301C4
public const int thumbTint = 2130903492;
// aapt resource value: 0x7F0301C5
public const int thumbTintMode = 2130903493;
// aapt resource value: 0x7F0301C6
public const int tickMark = 2130903494;
// aapt resource value: 0x7F0301C7
public const int tickMarkTint = 2130903495;
// aapt resource value: 0x7F0301C8
public const int tickMarkTintMode = 2130903496;
// aapt resource value: 0x7F0301C9
public const int tint = 2130903497;
// aapt resource value: 0x7F0301CA
public const int tintMode = 2130903498;
// aapt resource value: 0x7F0301CB
public const int title = 2130903499;
// aapt resource value: 0x7F0301CC
public const int titleEnabled = 2130903500;
// aapt resource value: 0x7F0301CD
public const int titleMargin = 2130903501;
// aapt resource value: 0x7F0301CE
public const int titleMarginBottom = 2130903502;
// aapt resource value: 0x7F0301CF
public const int titleMarginEnd = 2130903503;
// aapt resource value: 0x7F0301D2
public const int titleMargins = 2130903506;
// aapt resource value: 0x7F0301D0
public const int titleMarginStart = 2130903504;
// aapt resource value: 0x7F0301D1
public const int titleMarginTop = 2130903505;
// aapt resource value: 0x7F0301D3
public const int titleTextAppearance = 2130903507;
// aapt resource value: 0x7F0301D4
public const int titleTextColor = 2130903508;
// aapt resource value: 0x7F0301D5
public const int titleTextStyle = 2130903509;
// aapt resource value: 0x7F0301D6
public const int toolbarId = 2130903510;
// aapt resource value: 0x7F0301D7
public const int toolbarNavigationButtonStyle = 2130903511;
// aapt resource value: 0x7F0301D8
public const int toolbarStyle = 2130903512;
// aapt resource value: 0x7F0301D9
public const int tooltipForegroundColor = 2130903513;
// aapt resource value: 0x7F0301DA
public const int tooltipFrameBackground = 2130903514;
// aapt resource value: 0x7F0301DB
public const int tooltipText = 2130903515;
// aapt resource value: 0x7F0301DC
public const int track = 2130903516;
// aapt resource value: 0x7F0301DD
public const int trackTint = 2130903517;
// aapt resource value: 0x7F0301DE
public const int trackTintMode = 2130903518;
// aapt resource value: 0x7F0301DF
public const int ttcIndex = 2130903519;
// aapt resource value: 0x7F0301E0
public const int useCompatPadding = 2130903520;
// aapt resource value: 0x7F0301E1
public const int viewInflaterClass = 2130903521;
// aapt resource value: 0x7F0301E2
public const int voiceIcon = 2130903522;
// aapt resource value: 0x7F0301E3
public const int windowActionBar = 2130903523;
// aapt resource value: 0x7F0301E4
public const int windowActionBarOverlay = 2130903524;
// aapt resource value: 0x7F0301E5
public const int windowActionModeOverlay = 2130903525;
// aapt resource value: 0x7F0301E6
public const int windowFixedHeightMajor = 2130903526;
// aapt resource value: 0x7F0301E7
public const int windowFixedHeightMinor = 2130903527;
// aapt resource value: 0x7F0301E8
public const int windowFixedWidthMajor = 2130903528;
// aapt resource value: 0x7F0301E9
public const int windowFixedWidthMinor = 2130903529;
// aapt resource value: 0x7F0301EA
public const int windowMinWidthMajor = 2130903530;
// aapt resource value: 0x7F0301EB
public const int windowMinWidthMinor = 2130903531;
// aapt resource value: 0x7F0301EC
public const int windowNoTitle = 2130903532;
static Attribute()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Attribute()
{
}
}
public partial class Boolean
{
// aapt resource value: 0x7F040000
public const int abc_action_bar_embed_tabs = 2130968576;
// aapt resource value: 0x7F040001
public const int abc_allow_stacked_button_bar = 2130968577;
// aapt resource value: 0x7F040002
public const int abc_config_actionMenuItemAllCaps = 2130968578;
// aapt resource value: 0x7F040003
public const int mtrl_btn_textappearance_all_caps = 2130968579;
static Boolean()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Boolean()
{
}
}
public partial class Color
{
// aapt resource value: 0x7F050000
public const int abc_background_cache_hint_selector_material_dark = 2131034112;
// aapt resource value: 0x7F050001
public const int abc_background_cache_hint_selector_material_light = 2131034113;
// aapt resource value: 0x7F050002
public const int abc_btn_colored_borderless_text_material = 2131034114;
// aapt resource value: 0x7F050003
public const int abc_btn_colored_text_material = 2131034115;
// aapt resource value: 0x7F050004
public const int abc_color_highlight_material = 2131034116;
// aapt resource value: 0x7F050005
public const int abc_decor_view_status_guard = 2131034117;
// aapt resource value: 0x7F050006
public const int abc_decor_view_status_guard_light = 2131034118;
// aapt resource value: 0x7F050007
public const int abc_hint_foreground_material_dark = 2131034119;
// aapt resource value: 0x7F050008
public const int abc_hint_foreground_material_light = 2131034120;
// aapt resource value: 0x7F050009
public const int abc_primary_text_disable_only_material_dark = 2131034121;
// aapt resource value: 0x7F05000A
public const int abc_primary_text_disable_only_material_light = 2131034122;
// aapt resource value: 0x7F05000B
public const int abc_primary_text_material_dark = 2131034123;
// aapt resource value: 0x7F05000C
public const int abc_primary_text_material_light = 2131034124;
// aapt resource value: 0x7F05000D
public const int abc_search_url_text = 2131034125;
// aapt resource value: 0x7F05000E
public const int abc_search_url_text_normal = 2131034126;
// aapt resource value: 0x7F05000F
public const int abc_search_url_text_pressed = 2131034127;
// aapt resource value: 0x7F050010
public const int abc_search_url_text_selected = 2131034128;
// aapt resource value: 0x7F050011
public const int abc_secondary_text_material_dark = 2131034129;
// aapt resource value: 0x7F050012
public const int abc_secondary_text_material_light = 2131034130;
// aapt resource value: 0x7F050013
public const int abc_tint_btn_checkable = 2131034131;
// aapt resource value: 0x7F050014
public const int abc_tint_default = 2131034132;
// aapt resource value: 0x7F050015
public const int abc_tint_edittext = 2131034133;
// aapt resource value: 0x7F050016
public const int abc_tint_seek_thumb = 2131034134;
// aapt resource value: 0x7F050017
public const int abc_tint_spinner = 2131034135;
// aapt resource value: 0x7F050018
public const int abc_tint_switch_track = 2131034136;
// aapt resource value: 0x7F050019
public const int accent_material_dark = 2131034137;
// aapt resource value: 0x7F05001A
public const int accent_material_light = 2131034138;
// aapt resource value: 0x7F05001B
public const int androidx_core_ripple_material_light = 2131034139;
// aapt resource value: 0x7F05001C
public const int androidx_core_secondary_text_default_material_light = 2131034140;
// aapt resource value: 0x7F05001D
public const int background_floating_material_dark = 2131034141;
// aapt resource value: 0x7F05001E
public const int background_floating_material_light = 2131034142;
// aapt resource value: 0x7F05001F
public const int background_material_dark = 2131034143;
// aapt resource value: 0x7F050020
public const int background_material_light = 2131034144;
// aapt resource value: 0x7F050021
public const int bright_foreground_disabled_material_dark = 2131034145;
// aapt resource value: 0x7F050022
public const int bright_foreground_disabled_material_light = 2131034146;
// aapt resource value: 0x7F050023
public const int bright_foreground_inverse_material_dark = 2131034147;
// aapt resource value: 0x7F050024
public const int bright_foreground_inverse_material_light = 2131034148;
// aapt resource value: 0x7F050025
public const int bright_foreground_material_dark = 2131034149;
// aapt resource value: 0x7F050026
public const int bright_foreground_material_light = 2131034150;
// aapt resource value: 0x7F050027
public const int browser_actions_bg_grey = 2131034151;
// aapt resource value: 0x7F050028
public const int browser_actions_divider_color = 2131034152;
// aapt resource value: 0x7F050029
public const int browser_actions_text_color = 2131034153;
// aapt resource value: 0x7F05002A
public const int browser_actions_title_color = 2131034154;
// aapt resource value: 0x7F05002B
public const int button_material_dark = 2131034155;
// aapt resource value: 0x7F05002C
public const int button_material_light = 2131034156;
// aapt resource value: 0x7F05002D
public const int cardview_dark_background = 2131034157;
// aapt resource value: 0x7F05002E
public const int cardview_light_background = 2131034158;
// aapt resource value: 0x7F05002F
public const int cardview_shadow_end_color = 2131034159;
// aapt resource value: 0x7F050030
public const int cardview_shadow_start_color = 2131034160;
// aapt resource value: 0x7F050031
public const int colorAccent = 2131034161;
// aapt resource value: 0x7F050032
public const int colorPrimary = 2131034162;
// aapt resource value: 0x7F050033
public const int colorPrimaryDark = 2131034163;
// aapt resource value: 0x7F050034
public const int design_bottom_navigation_shadow_color = 2131034164;
// aapt resource value: 0x7F050035
public const int design_default_color_primary = 2131034165;
// aapt resource value: 0x7F050036
public const int design_default_color_primary_dark = 2131034166;
// aapt resource value: 0x7F050037
public const int design_error = 2131034167;
// aapt resource value: 0x7F050038
public const int design_fab_shadow_end_color = 2131034168;
// aapt resource value: 0x7F050039
public const int design_fab_shadow_mid_color = 2131034169;
// aapt resource value: 0x7F05003A
public const int design_fab_shadow_start_color = 2131034170;
// aapt resource value: 0x7F05003B
public const int design_fab_stroke_end_inner_color = 2131034171;
// aapt resource value: 0x7F05003C
public const int design_fab_stroke_end_outer_color = 2131034172;
// aapt resource value: 0x7F05003D
public const int design_fab_stroke_top_inner_color = 2131034173;
// aapt resource value: 0x7F05003E
public const int design_fab_stroke_top_outer_color = 2131034174;
// aapt resource value: 0x7F05003F
public const int design_snackbar_background_color = 2131034175;
// aapt resource value: 0x7F050040
public const int design_tint_password_toggle = 2131034176;
// aapt resource value: 0x7F050041
public const int dim_foreground_disabled_material_dark = 2131034177;
// aapt resource value: 0x7F050042
public const int dim_foreground_disabled_material_light = 2131034178;
// aapt resource value: 0x7F050043
public const int dim_foreground_material_dark = 2131034179;
// aapt resource value: 0x7F050044
public const int dim_foreground_material_light = 2131034180;
// aapt resource value: 0x7F050045
public const int error_color_material_dark = 2131034181;
// aapt resource value: 0x7F050046
public const int error_color_material_light = 2131034182;
// aapt resource value: 0x7F050047
public const int foreground_material_dark = 2131034183;
// aapt resource value: 0x7F050048
public const int foreground_material_light = 2131034184;
// aapt resource value: 0x7F050049
public const int highlighted_text_material_dark = 2131034185;
// aapt resource value: 0x7F05004A
public const int highlighted_text_material_light = 2131034186;
// aapt resource value: 0x7F05004B
public const int ic_launcher_background = 2131034187;
// aapt resource value: 0x7F05004C
public const int material_blue_grey_800 = 2131034188;
// aapt resource value: 0x7F05004D
public const int material_blue_grey_900 = 2131034189;
// aapt resource value: 0x7F05004E
public const int material_blue_grey_950 = 2131034190;
// aapt resource value: 0x7F05004F
public const int material_deep_teal_200 = 2131034191;
// aapt resource value: 0x7F050050
public const int material_deep_teal_500 = 2131034192;
// aapt resource value: 0x7F050051
public const int material_grey_100 = 2131034193;
// aapt resource value: 0x7F050052
public const int material_grey_300 = 2131034194;
// aapt resource value: 0x7F050053
public const int material_grey_50 = 2131034195;
// aapt resource value: 0x7F050054
public const int material_grey_600 = 2131034196;
// aapt resource value: 0x7F050055
public const int material_grey_800 = 2131034197;
// aapt resource value: 0x7F050056
public const int material_grey_850 = 2131034198;
// aapt resource value: 0x7F050057
public const int material_grey_900 = 2131034199;
// aapt resource value: 0x7F050058
public const int mtrl_bottom_nav_colored_item_tint = 2131034200;
// aapt resource value: 0x7F050059
public const int mtrl_bottom_nav_item_tint = 2131034201;
// aapt resource value: 0x7F05005A
public const int mtrl_btn_bg_color_disabled = 2131034202;
// aapt resource value: 0x7F05005B
public const int mtrl_btn_bg_color_selector = 2131034203;
// aapt resource value: 0x7F05005C
public const int mtrl_btn_ripple_color = 2131034204;
// aapt resource value: 0x7F05005D
public const int mtrl_btn_stroke_color_selector = 2131034205;
// aapt resource value: 0x7F05005E
public const int mtrl_btn_text_btn_ripple_color = 2131034206;
// aapt resource value: 0x7F05005F
public const int mtrl_btn_text_color_disabled = 2131034207;
// aapt resource value: 0x7F050060
public const int mtrl_btn_text_color_selector = 2131034208;
// aapt resource value: 0x7F050061
public const int mtrl_btn_transparent_bg_color = 2131034209;
// aapt resource value: 0x7F050062
public const int mtrl_chip_background_color = 2131034210;
// aapt resource value: 0x7F050063
public const int mtrl_chip_close_icon_tint = 2131034211;
// aapt resource value: 0x7F050064
public const int mtrl_chip_ripple_color = 2131034212;
// aapt resource value: 0x7F050065
public const int mtrl_chip_text_color = 2131034213;
// aapt resource value: 0x7F050066
public const int mtrl_fab_ripple_color = 2131034214;
// aapt resource value: 0x7F050067
public const int mtrl_scrim_color = 2131034215;
// aapt resource value: 0x7F050068
public const int mtrl_tabs_colored_ripple_color = 2131034216;
// aapt resource value: 0x7F050069
public const int mtrl_tabs_icon_color_selector = 2131034217;
// aapt resource value: 0x7F05006A
public const int mtrl_tabs_icon_color_selector_colored = 2131034218;
// aapt resource value: 0x7F05006B
public const int mtrl_tabs_legacy_text_color_selector = 2131034219;
// aapt resource value: 0x7F05006C
public const int mtrl_tabs_ripple_color = 2131034220;
// aapt resource value: 0x7F05006E
public const int mtrl_textinput_default_box_stroke_color = 2131034222;
// aapt resource value: 0x7F05006F
public const int mtrl_textinput_disabled_color = 2131034223;
// aapt resource value: 0x7F050070
public const int mtrl_textinput_filled_box_default_background_color = 2131034224;
// aapt resource value: 0x7F050071
public const int mtrl_textinput_hovered_box_stroke_color = 2131034225;
// aapt resource value: 0x7F05006D
public const int mtrl_text_btn_text_color_selector = 2131034221;
// aapt resource value: 0x7F050072
public const int notification_action_color_filter = 2131034226;
// aapt resource value: 0x7F050073
public const int notification_icon_bg_color = 2131034227;
// aapt resource value: 0x7F050074
public const int primary_dark_material_dark = 2131034228;
// aapt resource value: 0x7F050075
public const int primary_dark_material_light = 2131034229;
// aapt resource value: 0x7F050076
public const int primary_material_dark = 2131034230;
// aapt resource value: 0x7F050077
public const int primary_material_light = 2131034231;
// aapt resource value: 0x7F050078
public const int primary_text_default_material_dark = 2131034232;
// aapt resource value: 0x7F050079
public const int primary_text_default_material_light = 2131034233;
// aapt resource value: 0x7F05007A
public const int primary_text_disabled_material_dark = 2131034234;
// aapt resource value: 0x7F05007B
public const int primary_text_disabled_material_light = 2131034235;
// aapt resource value: 0x7F05007C
public const int ripple_material_dark = 2131034236;
// aapt resource value: 0x7F05007D
public const int ripple_material_light = 2131034237;
// aapt resource value: 0x7F05007E
public const int secondary_text_default_material_dark = 2131034238;
// aapt resource value: 0x7F05007F
public const int secondary_text_default_material_light = 2131034239;
// aapt resource value: 0x7F050080
public const int secondary_text_disabled_material_dark = 2131034240;
// aapt resource value: 0x7F050081
public const int secondary_text_disabled_material_light = 2131034241;
// aapt resource value: 0x7F050082
public const int switch_thumb_disabled_material_dark = 2131034242;
// aapt resource value: 0x7F050083
public const int switch_thumb_disabled_material_light = 2131034243;
// aapt resource value: 0x7F050084
public const int switch_thumb_material_dark = 2131034244;
// aapt resource value: 0x7F050085
public const int switch_thumb_material_light = 2131034245;
// aapt resource value: 0x7F050086
public const int switch_thumb_normal_material_dark = 2131034246;
// aapt resource value: 0x7F050087
public const int switch_thumb_normal_material_light = 2131034247;
// aapt resource value: 0x7F050088
public const int tooltip_background_dark = 2131034248;
// aapt resource value: 0x7F050089
public const int tooltip_background_light = 2131034249;
static Color()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Color()
{
}
}
public partial class Dimension
{
// aapt resource value: 0x7F060000
public const int abc_action_bar_content_inset_material = 2131099648;
// aapt resource value: 0x7F060001
public const int abc_action_bar_content_inset_with_nav = 2131099649;
// aapt resource value: 0x7F060002
public const int abc_action_bar_default_height_material = 2131099650;
// aapt resource value: 0x7F060003
public const int abc_action_bar_default_padding_end_material = 2131099651;
// aapt resource value: 0x7F060004
public const int abc_action_bar_default_padding_start_material = 2131099652;
// aapt resource value: 0x7F060005
public const int abc_action_bar_elevation_material = 2131099653;
// aapt resource value: 0x7F060006
public const int abc_action_bar_icon_vertical_padding_material = 2131099654;
// aapt resource value: 0x7F060007
public const int abc_action_bar_overflow_padding_end_material = 2131099655;
// aapt resource value: 0x7F060008
public const int abc_action_bar_overflow_padding_start_material = 2131099656;
// aapt resource value: 0x7F060009
public const int abc_action_bar_stacked_max_height = 2131099657;
// aapt resource value: 0x7F06000A
public const int abc_action_bar_stacked_tab_max_width = 2131099658;
// aapt resource value: 0x7F06000B
public const int abc_action_bar_subtitle_bottom_margin_material = 2131099659;
// aapt resource value: 0x7F06000C
public const int abc_action_bar_subtitle_top_margin_material = 2131099660;
// aapt resource value: 0x7F06000D
public const int abc_action_button_min_height_material = 2131099661;
// aapt resource value: 0x7F06000E
public const int abc_action_button_min_width_material = 2131099662;
// aapt resource value: 0x7F06000F
public const int abc_action_button_min_width_overflow_material = 2131099663;
// aapt resource value: 0x7F060010
public const int abc_alert_dialog_button_bar_height = 2131099664;
// aapt resource value: 0x7F060011
public const int abc_alert_dialog_button_dimen = 2131099665;
// aapt resource value: 0x7F060012
public const int abc_button_inset_horizontal_material = 2131099666;
// aapt resource value: 0x7F060013
public const int abc_button_inset_vertical_material = 2131099667;
// aapt resource value: 0x7F060014
public const int abc_button_padding_horizontal_material = 2131099668;
// aapt resource value: 0x7F060015
public const int abc_button_padding_vertical_material = 2131099669;
// aapt resource value: 0x7F060016
public const int abc_cascading_menus_min_smallest_width = 2131099670;
// aapt resource value: 0x7F060017
public const int abc_config_prefDialogWidth = 2131099671;
// aapt resource value: 0x7F060018
public const int abc_control_corner_material = 2131099672;
// aapt resource value: 0x7F060019
public const int abc_control_inset_material = 2131099673;
// aapt resource value: 0x7F06001A
public const int abc_control_padding_material = 2131099674;
// aapt resource value: 0x7F06001B
public const int abc_dialog_corner_radius_material = 2131099675;
// aapt resource value: 0x7F06001C
public const int abc_dialog_fixed_height_major = 2131099676;
// aapt resource value: 0x7F06001D
public const int abc_dialog_fixed_height_minor = 2131099677;
// aapt resource value: 0x7F06001E
public const int abc_dialog_fixed_width_major = 2131099678;
// aapt resource value: 0x7F06001F
public const int abc_dialog_fixed_width_minor = 2131099679;
// aapt resource value: 0x7F060020
public const int abc_dialog_list_padding_bottom_no_buttons = 2131099680;
// aapt resource value: 0x7F060021
public const int abc_dialog_list_padding_top_no_title = 2131099681;
// aapt resource value: 0x7F060022
public const int abc_dialog_min_width_major = 2131099682;
// aapt resource value: 0x7F060023
public const int abc_dialog_min_width_minor = 2131099683;
// aapt resource value: 0x7F060024
public const int abc_dialog_padding_material = 2131099684;
// aapt resource value: 0x7F060025
public const int abc_dialog_padding_top_material = 2131099685;
// aapt resource value: 0x7F060026
public const int abc_dialog_title_divider_material = 2131099686;
// aapt resource value: 0x7F060027
public const int abc_disabled_alpha_material_dark = 2131099687;
// aapt resource value: 0x7F060028
public const int abc_disabled_alpha_material_light = 2131099688;
// aapt resource value: 0x7F060029
public const int abc_dropdownitem_icon_width = 2131099689;
// aapt resource value: 0x7F06002A
public const int abc_dropdownitem_text_padding_left = 2131099690;
// aapt resource value: 0x7F06002B
public const int abc_dropdownitem_text_padding_right = 2131099691;
// aapt resource value: 0x7F06002C
public const int abc_edit_text_inset_bottom_material = 2131099692;
// aapt resource value: 0x7F06002D
public const int abc_edit_text_inset_horizontal_material = 2131099693;
// aapt resource value: 0x7F06002E
public const int abc_edit_text_inset_top_material = 2131099694;
// aapt resource value: 0x7F06002F
public const int abc_floating_window_z = 2131099695;
// aapt resource value: 0x7F060030
public const int abc_list_item_height_large_material = 2131099696;
// aapt resource value: 0x7F060031
public const int abc_list_item_height_material = 2131099697;
// aapt resource value: 0x7F060032
public const int abc_list_item_height_small_material = 2131099698;
// aapt resource value: 0x7F060033
public const int abc_list_item_padding_horizontal_material = 2131099699;
// aapt resource value: 0x7F060034
public const int abc_panel_menu_list_width = 2131099700;
// aapt resource value: 0x7F060035
public const int abc_progress_bar_height_material = 2131099701;
// aapt resource value: 0x7F060036
public const int abc_search_view_preferred_height = 2131099702;
// aapt resource value: 0x7F060037
public const int abc_search_view_preferred_width = 2131099703;
// aapt resource value: 0x7F060038
public const int abc_seekbar_track_background_height_material = 2131099704;
// aapt resource value: 0x7F060039
public const int abc_seekbar_track_progress_height_material = 2131099705;
// aapt resource value: 0x7F06003A
public const int abc_select_dialog_padding_start_material = 2131099706;
// aapt resource value: 0x7F06003B
public const int abc_switch_padding = 2131099707;
// aapt resource value: 0x7F06003C
public const int abc_text_size_body_1_material = 2131099708;
// aapt resource value: 0x7F06003D
public const int abc_text_size_body_2_material = 2131099709;
// aapt resource value: 0x7F06003E
public const int abc_text_size_button_material = 2131099710;
// aapt resource value: 0x7F06003F
public const int abc_text_size_caption_material = 2131099711;
// aapt resource value: 0x7F060040
public const int abc_text_size_display_1_material = 2131099712;
// aapt resource value: 0x7F060041
public const int abc_text_size_display_2_material = 2131099713;
// aapt resource value: 0x7F060042
public const int abc_text_size_display_3_material = 2131099714;
// aapt resource value: 0x7F060043
public const int abc_text_size_display_4_material = 2131099715;
// aapt resource value: 0x7F060044
public const int abc_text_size_headline_material = 2131099716;
// aapt resource value: 0x7F060045
public const int abc_text_size_large_material = 2131099717;
// aapt resource value: 0x7F060046
public const int abc_text_size_medium_material = 2131099718;
// aapt resource value: 0x7F060047
public const int abc_text_size_menu_header_material = 2131099719;
// aapt resource value: 0x7F060048
public const int abc_text_size_menu_material = 2131099720;
// aapt resource value: 0x7F060049
public const int abc_text_size_small_material = 2131099721;
// aapt resource value: 0x7F06004A
public const int abc_text_size_subhead_material = 2131099722;
// aapt resource value: 0x7F06004B
public const int abc_text_size_subtitle_material_toolbar = 2131099723;
// aapt resource value: 0x7F06004C
public const int abc_text_size_title_material = 2131099724;
// aapt resource value: 0x7F06004D
public const int abc_text_size_title_material_toolbar = 2131099725;
// aapt resource value: 0x7F06004E
public const int browser_actions_context_menu_max_width = 2131099726;
// aapt resource value: 0x7F06004F
public const int browser_actions_context_menu_min_padding = 2131099727;
// aapt resource value: 0x7F060050
public const int cardview_compat_inset_shadow = 2131099728;
// aapt resource value: 0x7F060051
public const int cardview_default_elevation = 2131099729;
// aapt resource value: 0x7F060052
public const int cardview_default_radius = 2131099730;
// aapt resource value: 0x7F060053
public const int compat_button_inset_horizontal_material = 2131099731;
// aapt resource value: 0x7F060054
public const int compat_button_inset_vertical_material = 2131099732;
// aapt resource value: 0x7F060055
public const int compat_button_padding_horizontal_material = 2131099733;
// aapt resource value: 0x7F060056
public const int compat_button_padding_vertical_material = 2131099734;
// aapt resource value: 0x7F060057
public const int compat_control_corner_material = 2131099735;
// aapt resource value: 0x7F060058
public const int compat_notification_large_icon_max_height = 2131099736;
// aapt resource value: 0x7F060059
public const int compat_notification_large_icon_max_width = 2131099737;
// aapt resource value: 0x7F06005A
public const int def_drawer_elevation = 2131099738;
// aapt resource value: 0x7F06005B
public const int design_appbar_elevation = 2131099739;
// aapt resource value: 0x7F06005C
public const int design_bottom_navigation_active_item_max_width = 2131099740;
// aapt resource value: 0x7F06005D
public const int design_bottom_navigation_active_item_min_width = 2131099741;
// aapt resource value: 0x7F06005E
public const int design_bottom_navigation_active_text_size = 2131099742;
// aapt resource value: 0x7F06005F
public const int design_bottom_navigation_elevation = 2131099743;
// aapt resource value: 0x7F060060
public const int design_bottom_navigation_height = 2131099744;
// aapt resource value: 0x7F060061
public const int design_bottom_navigation_icon_size = 2131099745;
// aapt resource value: 0x7F060062
public const int design_bottom_navigation_item_max_width = 2131099746;
// aapt resource value: 0x7F060063
public const int design_bottom_navigation_item_min_width = 2131099747;
// aapt resource value: 0x7F060064
public const int design_bottom_navigation_margin = 2131099748;
// aapt resource value: 0x7F060065
public const int design_bottom_navigation_shadow_height = 2131099749;
// aapt resource value: 0x7F060066
public const int design_bottom_navigation_text_size = 2131099750;
// aapt resource value: 0x7F060067
public const int design_bottom_sheet_modal_elevation = 2131099751;
// aapt resource value: 0x7F060068
public const int design_bottom_sheet_peek_height_min = 2131099752;
// aapt resource value: 0x7F060069
public const int design_fab_border_width = 2131099753;
// aapt resource value: 0x7F06006A
public const int design_fab_elevation = 2131099754;
// aapt resource value: 0x7F06006B
public const int design_fab_image_size = 2131099755;
// aapt resource value: 0x7F06006C
public const int design_fab_size_mini = 2131099756;
// aapt resource value: 0x7F06006D
public const int design_fab_size_normal = 2131099757;
// aapt resource value: 0x7F06006E
public const int design_fab_translation_z_hovered_focused = 2131099758;
// aapt resource value: 0x7F06006F
public const int design_fab_translation_z_pressed = 2131099759;
// aapt resource value: 0x7F060070
public const int design_navigation_elevation = 2131099760;
// aapt resource value: 0x7F060071
public const int design_navigation_icon_padding = 2131099761;
// aapt resource value: 0x7F060072
public const int design_navigation_icon_size = 2131099762;
// aapt resource value: 0x7F060073
public const int design_navigation_item_horizontal_padding = 2131099763;
// aapt resource value: 0x7F060074
public const int design_navigation_item_icon_padding = 2131099764;
// aapt resource value: 0x7F060075
public const int design_navigation_max_width = 2131099765;
// aapt resource value: 0x7F060076
public const int design_navigation_padding_bottom = 2131099766;
// aapt resource value: 0x7F060077
public const int design_navigation_separator_vertical_padding = 2131099767;
// aapt resource value: 0x7F060078
public const int design_snackbar_action_inline_max_width = 2131099768;
// aapt resource value: 0x7F060079
public const int design_snackbar_background_corner_radius = 2131099769;
// aapt resource value: 0x7F06007A
public const int design_snackbar_elevation = 2131099770;
// aapt resource value: 0x7F06007B
public const int design_snackbar_extra_spacing_horizontal = 2131099771;
// aapt resource value: 0x7F06007C
public const int design_snackbar_max_width = 2131099772;
// aapt resource value: 0x7F06007D
public const int design_snackbar_min_width = 2131099773;
// aapt resource value: 0x7F06007E
public const int design_snackbar_padding_horizontal = 2131099774;
// aapt resource value: 0x7F06007F
public const int design_snackbar_padding_vertical = 2131099775;
// aapt resource value: 0x7F060080
public const int design_snackbar_padding_vertical_2lines = 2131099776;
// aapt resource value: 0x7F060081
public const int design_snackbar_text_size = 2131099777;
// aapt resource value: 0x7F060082
public const int design_tab_max_width = 2131099778;
// aapt resource value: 0x7F060083
public const int design_tab_scrollable_min_width = 2131099779;
// aapt resource value: 0x7F060084
public const int design_tab_text_size = 2131099780;
// aapt resource value: 0x7F060085
public const int design_tab_text_size_2line = 2131099781;
// aapt resource value: 0x7F060086
public const int design_textinput_caption_translate_y = 2131099782;
// aapt resource value: 0x7F060087
public const int disabled_alpha_material_dark = 2131099783;
// aapt resource value: 0x7F060088
public const int disabled_alpha_material_light = 2131099784;
// aapt resource value: 0x7F060089
public const int fab_margin = 2131099785;
// aapt resource value: 0x7F06008A
public const int fastscroll_default_thickness = 2131099786;
// aapt resource value: 0x7F06008B
public const int fastscroll_margin = 2131099787;
// aapt resource value: 0x7F06008C
public const int fastscroll_minimum_range = 2131099788;
// aapt resource value: 0x7F06008D
public const int highlight_alpha_material_colored = 2131099789;
// aapt resource value: 0x7F06008E
public const int highlight_alpha_material_dark = 2131099790;
// aapt resource value: 0x7F06008F
public const int highlight_alpha_material_light = 2131099791;
// aapt resource value: 0x7F060090
public const int hint_alpha_material_dark = 2131099792;
// aapt resource value: 0x7F060091
public const int hint_alpha_material_light = 2131099793;
// aapt resource value: 0x7F060092
public const int hint_pressed_alpha_material_dark = 2131099794;
// aapt resource value: 0x7F060093
public const int hint_pressed_alpha_material_light = 2131099795;
// aapt resource value: 0x7F060094
public const int item_touch_helper_max_drag_scroll_per_frame = 2131099796;
// aapt resource value: 0x7F060095
public const int item_touch_helper_swipe_escape_max_velocity = 2131099797;
// aapt resource value: 0x7F060096
public const int item_touch_helper_swipe_escape_velocity = 2131099798;
// aapt resource value: 0x7F060097
public const int mtrl_bottomappbar_fabOffsetEndMode = 2131099799;
// aapt resource value: 0x7F060098
public const int mtrl_bottomappbar_fab_cradle_margin = 2131099800;
// aapt resource value: 0x7F060099
public const int mtrl_bottomappbar_fab_cradle_rounded_corner_radius = 2131099801;
// aapt resource value: 0x7F06009A
public const int mtrl_bottomappbar_fab_cradle_vertical_offset = 2131099802;
// aapt resource value: 0x7F06009B
public const int mtrl_bottomappbar_height = 2131099803;
// aapt resource value: 0x7F06009C
public const int mtrl_btn_corner_radius = 2131099804;
// aapt resource value: 0x7F06009D
public const int mtrl_btn_dialog_btn_min_width = 2131099805;
// aapt resource value: 0x7F06009E
public const int mtrl_btn_disabled_elevation = 2131099806;
// aapt resource value: 0x7F06009F
public const int mtrl_btn_disabled_z = 2131099807;
// aapt resource value: 0x7F0600A0
public const int mtrl_btn_elevation = 2131099808;
// aapt resource value: 0x7F0600A1
public const int mtrl_btn_focused_z = 2131099809;
// aapt resource value: 0x7F0600A2
public const int mtrl_btn_hovered_z = 2131099810;
// aapt resource value: 0x7F0600A3
public const int mtrl_btn_icon_btn_padding_left = 2131099811;
// aapt resource value: 0x7F0600A4
public const int mtrl_btn_icon_padding = 2131099812;
// aapt resource value: 0x7F0600A5
public const int mtrl_btn_inset = 2131099813;
// aapt resource value: 0x7F0600A6
public const int mtrl_btn_letter_spacing = 2131099814;
// aapt resource value: 0x7F0600A7
public const int mtrl_btn_padding_bottom = 2131099815;
// aapt resource value: 0x7F0600A8
public const int mtrl_btn_padding_left = 2131099816;
// aapt resource value: 0x7F0600A9
public const int mtrl_btn_padding_right = 2131099817;
// aapt resource value: 0x7F0600AA
public const int mtrl_btn_padding_top = 2131099818;
// aapt resource value: 0x7F0600AB
public const int mtrl_btn_pressed_z = 2131099819;
// aapt resource value: 0x7F0600AC
public const int mtrl_btn_stroke_size = 2131099820;
// aapt resource value: 0x7F0600AD
public const int mtrl_btn_text_btn_icon_padding = 2131099821;
// aapt resource value: 0x7F0600AE
public const int mtrl_btn_text_btn_padding_left = 2131099822;
// aapt resource value: 0x7F0600AF
public const int mtrl_btn_text_btn_padding_right = 2131099823;
// aapt resource value: 0x7F0600B0
public const int mtrl_btn_text_size = 2131099824;
// aapt resource value: 0x7F0600B1
public const int mtrl_btn_z = 2131099825;
// aapt resource value: 0x7F0600B2
public const int mtrl_card_elevation = 2131099826;
// aapt resource value: 0x7F0600B3
public const int mtrl_card_spacing = 2131099827;
// aapt resource value: 0x7F0600B4
public const int mtrl_chip_pressed_translation_z = 2131099828;
// aapt resource value: 0x7F0600B5
public const int mtrl_chip_text_size = 2131099829;
// aapt resource value: 0x7F0600B6
public const int mtrl_fab_elevation = 2131099830;
// aapt resource value: 0x7F0600B7
public const int mtrl_fab_translation_z_hovered_focused = 2131099831;
// aapt resource value: 0x7F0600B8
public const int mtrl_fab_translation_z_pressed = 2131099832;
// aapt resource value: 0x7F0600B9
public const int mtrl_navigation_elevation = 2131099833;
// aapt resource value: 0x7F0600BA
public const int mtrl_navigation_item_horizontal_padding = 2131099834;
// aapt resource value: 0x7F0600BB
public const int mtrl_navigation_item_icon_padding = 2131099835;
// aapt resource value: 0x7F0600BC
public const int mtrl_snackbar_background_corner_radius = 2131099836;
// aapt resource value: 0x7F0600BD
public const int mtrl_snackbar_margin = 2131099837;
// aapt resource value: 0x7F0600BE
public const int mtrl_textinput_box_bottom_offset = 2131099838;
// aapt resource value: 0x7F0600BF
public const int mtrl_textinput_box_corner_radius_medium = 2131099839;
// aapt resource value: 0x7F0600C0
public const int mtrl_textinput_box_corner_radius_small = 2131099840;
// aapt resource value: 0x7F0600C1
public const int mtrl_textinput_box_label_cutout_padding = 2131099841;
// aapt resource value: 0x7F0600C2
public const int mtrl_textinput_box_padding_end = 2131099842;
// aapt resource value: 0x7F0600C3
public const int mtrl_textinput_box_stroke_width_default = 2131099843;
// aapt resource value: 0x7F0600C4
public const int mtrl_textinput_box_stroke_width_focused = 2131099844;
// aapt resource value: 0x7F0600C5
public const int mtrl_textinput_outline_box_expanded_padding = 2131099845;
// aapt resource value: 0x7F0600C6
public const int mtrl_toolbar_default_height = 2131099846;
// aapt resource value: 0x7F0600C7
public const int notification_action_icon_size = 2131099847;
// aapt resource value: 0x7F0600C8
public const int notification_action_text_size = 2131099848;
// aapt resource value: 0x7F0600C9
public const int notification_big_circle_margin = 2131099849;
// aapt resource value: 0x7F0600CA
public const int notification_content_margin_start = 2131099850;
// aapt resource value: 0x7F0600CB
public const int notification_large_icon_height = 2131099851;
// aapt resource value: 0x7F0600CC
public const int notification_large_icon_width = 2131099852;
// aapt resource value: 0x7F0600CD
public const int notification_main_column_padding_top = 2131099853;
// aapt resource value: 0x7F0600CE
public const int notification_media_narrow_margin = 2131099854;
// aapt resource value: 0x7F0600CF
public const int notification_right_icon_size = 2131099855;
// aapt resource value: 0x7F0600D0
public const int notification_right_side_padding_top = 2131099856;
// aapt resource value: 0x7F0600D1
public const int notification_small_icon_background_padding = 2131099857;
// aapt resource value: 0x7F0600D2
public const int notification_small_icon_size_as_large = 2131099858;
// aapt resource value: 0x7F0600D3
public const int notification_subtext_size = 2131099859;
// aapt resource value: 0x7F0600D4
public const int notification_top_pad = 2131099860;
// aapt resource value: 0x7F0600D5
public const int notification_top_pad_large_text = 2131099861;
// aapt resource value: 0x7F0600D6
public const int tooltip_corner_radius = 2131099862;
// aapt resource value: 0x7F0600D7
public const int tooltip_horizontal_padding = 2131099863;
// aapt resource value: 0x7F0600D8
public const int tooltip_margin = 2131099864;
// aapt resource value: 0x7F0600D9
public const int tooltip_precise_anchor_extra_offset = 2131099865;
// aapt resource value: 0x7F0600DA
public const int tooltip_precise_anchor_threshold = 2131099866;
// aapt resource value: 0x7F0600DB
public const int tooltip_vertical_padding = 2131099867;
// aapt resource value: 0x7F0600DC
public const int tooltip_y_offset_non_touch = 2131099868;
// aapt resource value: 0x7F0600DD
public const int tooltip_y_offset_touch = 2131099869;
static Dimension()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Dimension()
{
}
}
public partial class Drawable
{
// aapt resource value: 0x7F070006
public const int abc_ab_share_pack_mtrl_alpha = 2131165190;
// aapt resource value: 0x7F070007
public const int abc_action_bar_item_background_material = 2131165191;
// aapt resource value: 0x7F070008
public const int abc_btn_borderless_material = 2131165192;
// aapt resource value: 0x7F070009
public const int abc_btn_check_material = 2131165193;
// aapt resource value: 0x7F07000A
public const int abc_btn_check_material_anim = 2131165194;
// aapt resource value: 0x7F07000B
public const int abc_btn_check_to_on_mtrl_000 = 2131165195;
// aapt resource value: 0x7F07000C
public const int abc_btn_check_to_on_mtrl_015 = 2131165196;
// aapt resource value: 0x7F07000D
public const int abc_btn_colored_material = 2131165197;
// aapt resource value: 0x7F07000E
public const int abc_btn_default_mtrl_shape = 2131165198;
// aapt resource value: 0x7F07000F
public const int abc_btn_radio_material = 2131165199;
// aapt resource value: 0x7F070010
public const int abc_btn_radio_material_anim = 2131165200;
// aapt resource value: 0x7F070011
public const int abc_btn_radio_to_on_mtrl_000 = 2131165201;
// aapt resource value: 0x7F070012
public const int abc_btn_radio_to_on_mtrl_015 = 2131165202;
// aapt resource value: 0x7F070013
public const int abc_btn_switch_to_on_mtrl_00001 = 2131165203;
// aapt resource value: 0x7F070014
public const int abc_btn_switch_to_on_mtrl_00012 = 2131165204;
// aapt resource value: 0x7F070015
public const int abc_cab_background_internal_bg = 2131165205;
// aapt resource value: 0x7F070016
public const int abc_cab_background_top_material = 2131165206;
// aapt resource value: 0x7F070017
public const int abc_cab_background_top_mtrl_alpha = 2131165207;
// aapt resource value: 0x7F070018
public const int abc_control_background_material = 2131165208;
// aapt resource value: 0x7F070019
public const int abc_dialog_material_background = 2131165209;
// aapt resource value: 0x7F07001A
public const int abc_edit_text_material = 2131165210;
// aapt resource value: 0x7F07001B
public const int abc_ic_ab_back_material = 2131165211;
// aapt resource value: 0x7F07001C
public const int abc_ic_arrow_drop_right_black_24dp = 2131165212;
// aapt resource value: 0x7F07001D
public const int abc_ic_clear_material = 2131165213;
// aapt resource value: 0x7F07001E
public const int abc_ic_commit_search_api_mtrl_alpha = 2131165214;
// aapt resource value: 0x7F07001F
public const int abc_ic_go_search_api_material = 2131165215;
// aapt resource value: 0x7F070020
public const int abc_ic_menu_copy_mtrl_am_alpha = 2131165216;
// aapt resource value: 0x7F070021
public const int abc_ic_menu_cut_mtrl_alpha = 2131165217;
// aapt resource value: 0x7F070022
public const int abc_ic_menu_overflow_material = 2131165218;
// aapt resource value: 0x7F070023
public const int abc_ic_menu_paste_mtrl_am_alpha = 2131165219;
// aapt resource value: 0x7F070024
public const int abc_ic_menu_selectall_mtrl_alpha = 2131165220;
// aapt resource value: 0x7F070025
public const int abc_ic_menu_share_mtrl_alpha = 2131165221;
// aapt resource value: 0x7F070026
public const int abc_ic_search_api_material = 2131165222;
// aapt resource value: 0x7F070027
public const int abc_ic_star_black_16dp = 2131165223;
// aapt resource value: 0x7F070028
public const int abc_ic_star_black_36dp = 2131165224;
// aapt resource value: 0x7F070029
public const int abc_ic_star_black_48dp = 2131165225;
// aapt resource value: 0x7F07002A
public const int abc_ic_star_half_black_16dp = 2131165226;
// aapt resource value: 0x7F07002B
public const int abc_ic_star_half_black_36dp = 2131165227;
// aapt resource value: 0x7F07002C
public const int abc_ic_star_half_black_48dp = 2131165228;
// aapt resource value: 0x7F07002D
public const int abc_ic_voice_search_api_material = 2131165229;
// aapt resource value: 0x7F07002E
public const int abc_item_background_holo_dark = 2131165230;
// aapt resource value: 0x7F07002F
public const int abc_item_background_holo_light = 2131165231;
// aapt resource value: 0x7F070030
public const int abc_list_divider_material = 2131165232;
// aapt resource value: 0x7F070031
public const int abc_list_divider_mtrl_alpha = 2131165233;
// aapt resource value: 0x7F070032
public const int abc_list_focused_holo = 2131165234;
// aapt resource value: 0x7F070033
public const int abc_list_longpressed_holo = 2131165235;
// aapt resource value: 0x7F070034
public const int abc_list_pressed_holo_dark = 2131165236;
// aapt resource value: 0x7F070035
public const int abc_list_pressed_holo_light = 2131165237;
// aapt resource value: 0x7F070036
public const int abc_list_selector_background_transition_holo_dark = 2131165238;
// aapt resource value: 0x7F070037
public const int abc_list_selector_background_transition_holo_light = 2131165239;
// aapt resource value: 0x7F070038
public const int abc_list_selector_disabled_holo_dark = 2131165240;
// aapt resource value: 0x7F070039
public const int abc_list_selector_disabled_holo_light = 2131165241;
// aapt resource value: 0x7F07003A
public const int abc_list_selector_holo_dark = 2131165242;
// aapt resource value: 0x7F07003B
public const int abc_list_selector_holo_light = 2131165243;
// aapt resource value: 0x7F07003C
public const int abc_menu_hardkey_panel_mtrl_mult = 2131165244;
// aapt resource value: 0x7F07003D
public const int abc_popup_background_mtrl_mult = 2131165245;
// aapt resource value: 0x7F07003E
public const int abc_ratingbar_indicator_material = 2131165246;
// aapt resource value: 0x7F07003F
public const int abc_ratingbar_material = 2131165247;
// aapt resource value: 0x7F070040
public const int abc_ratingbar_small_material = 2131165248;
// aapt resource value: 0x7F070041
public const int abc_scrubber_control_off_mtrl_alpha = 2131165249;
// aapt resource value: 0x7F070042
public const int abc_scrubber_control_to_pressed_mtrl_000 = 2131165250;
// aapt resource value: 0x7F070043
public const int abc_scrubber_control_to_pressed_mtrl_005 = 2131165251;
// aapt resource value: 0x7F070044
public const int abc_scrubber_primary_mtrl_alpha = 2131165252;
// aapt resource value: 0x7F070045
public const int abc_scrubber_track_mtrl_alpha = 2131165253;
// aapt resource value: 0x7F070046
public const int abc_seekbar_thumb_material = 2131165254;
// aapt resource value: 0x7F070047
public const int abc_seekbar_tick_mark_material = 2131165255;
// aapt resource value: 0x7F070048
public const int abc_seekbar_track_material = 2131165256;
// aapt resource value: 0x7F070049
public const int abc_spinner_mtrl_am_alpha = 2131165257;
// aapt resource value: 0x7F07004A
public const int abc_spinner_textfield_background_material = 2131165258;
// aapt resource value: 0x7F07004B
public const int abc_switch_thumb_material = 2131165259;
// aapt resource value: 0x7F07004C
public const int abc_switch_track_mtrl_alpha = 2131165260;
// aapt resource value: 0x7F07004D
public const int abc_tab_indicator_material = 2131165261;
// aapt resource value: 0x7F07004E
public const int abc_tab_indicator_mtrl_alpha = 2131165262;
// aapt resource value: 0x7F070056
public const int abc_textfield_activated_mtrl_alpha = 2131165270;
// aapt resource value: 0x7F070057
public const int abc_textfield_default_mtrl_alpha = 2131165271;
// aapt resource value: 0x7F070058
public const int abc_textfield_search_activated_mtrl_alpha = 2131165272;
// aapt resource value: 0x7F070059
public const int abc_textfield_search_default_mtrl_alpha = 2131165273;
// aapt resource value: 0x7F07005A
public const int abc_textfield_search_material = 2131165274;
// aapt resource value: 0x7F07004F
public const int abc_text_cursor_material = 2131165263;
// aapt resource value: 0x7F070050
public const int abc_text_select_handle_left_mtrl_dark = 2131165264;
// aapt resource value: 0x7F070051
public const int abc_text_select_handle_left_mtrl_light = 2131165265;
// aapt resource value: 0x7F070052
public const int abc_text_select_handle_middle_mtrl_dark = 2131165266;
// aapt resource value: 0x7F070053
public const int abc_text_select_handle_middle_mtrl_light = 2131165267;
// aapt resource value: 0x7F070054
public const int abc_text_select_handle_right_mtrl_dark = 2131165268;
// aapt resource value: 0x7F070055
public const int abc_text_select_handle_right_mtrl_light = 2131165269;
// aapt resource value: 0x7F07005B
public const int abc_vector_test = 2131165275;
// aapt resource value: 0x7F07005C
public const int avd_hide_password = 2131165276;
// aapt resource value: 0x7F07005D
public const int avd_show_password = 2131165277;
// aapt resource value: 0x7F07005E
public const int btn_checkbox_checked_mtrl = 2131165278;
// aapt resource value: 0x7F07005F
public const int btn_checkbox_checked_to_unchecked_mtrl_animation = 2131165279;
// aapt resource value: 0x7F070060
public const int btn_checkbox_unchecked_mtrl = 2131165280;
// aapt resource value: 0x7F070061
public const int btn_checkbox_unchecked_to_checked_mtrl_animation = 2131165281;
// aapt resource value: 0x7F070062
public const int btn_radio_off_mtrl = 2131165282;
// aapt resource value: 0x7F070063
public const int btn_radio_off_to_on_mtrl_animation = 2131165283;
// aapt resource value: 0x7F070064
public const int btn_radio_on_mtrl = 2131165284;
// aapt resource value: 0x7F070065
public const int btn_radio_on_to_off_mtrl_animation = 2131165285;
// aapt resource value: 0x7F070066
public const int design_bottom_navigation_item_background = 2131165286;
// aapt resource value: 0x7F070067
public const int design_fab_background = 2131165287;
// aapt resource value: 0x7F070068
public const int design_ic_visibility = 2131165288;
// aapt resource value: 0x7F070069
public const int design_ic_visibility_off = 2131165289;
// aapt resource value: 0x7F07006A
public const int design_password_eye = 2131165290;
// aapt resource value: 0x7F07006B
public const int design_snackbar_background = 2131165291;
// aapt resource value: 0x7F07006C
public const int ic_mtrl_chip_checked_black = 2131165292;
// aapt resource value: 0x7F07006D
public const int ic_mtrl_chip_checked_circle = 2131165293;
// aapt resource value: 0x7F07006E
public const int ic_mtrl_chip_close_circle = 2131165294;
// aapt resource value: 0x7F07006F
public const int mtrl_snackbar_background = 2131165295;
// aapt resource value: 0x7F070070
public const int mtrl_tabs_default_indicator = 2131165296;
// aapt resource value: 0x7F070071
public const int navigation_empty_icon = 2131165297;
// aapt resource value: 0x7F070072
public const int notification_action_background = 2131165298;
// aapt resource value: 0x7F070073
public const int notification_bg = 2131165299;
// aapt resource value: 0x7F070074
public const int notification_bg_low = 2131165300;
// aapt resource value: 0x7F070075
public const int notification_bg_low_normal = 2131165301;
// aapt resource value: 0x7F070076
public const int notification_bg_low_pressed = 2131165302;
// aapt resource value: 0x7F070077
public const int notification_bg_normal = 2131165303;
// aapt resource value: 0x7F070078
public const int notification_bg_normal_pressed = 2131165304;
// aapt resource value: 0x7F070079
public const int notification_icon_background = 2131165305;
// aapt resource value: 0x7F07007A
public const int notification_template_icon_bg = 2131165306;
// aapt resource value: 0x7F07007B
public const int notification_template_icon_low_bg = 2131165307;
// aapt resource value: 0x7F07007C
public const int notification_tile_bg = 2131165308;
// aapt resource value: 0x7F07007D
public const int notify_panel_notification_icon_bg = 2131165309;
// aapt resource value: 0x7F07007E
public const int tooltip_frame_dark = 2131165310;
// aapt resource value: 0x7F07007F
public const int tooltip_frame_light = 2131165311;
static Drawable()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Drawable()
{
}
}
public partial class Id
{
// aapt resource value: 0x7F080006
public const int accessibility_action_clickable_span = 2131230726;
// aapt resource value: 0x7F080007
public const int accessibility_custom_action_0 = 2131230727;
// aapt resource value: 0x7F080008
public const int accessibility_custom_action_1 = 2131230728;
// aapt resource value: 0x7F080009
public const int accessibility_custom_action_10 = 2131230729;
// aapt resource value: 0x7F08000A
public const int accessibility_custom_action_11 = 2131230730;
// aapt resource value: 0x7F08000B
public const int accessibility_custom_action_12 = 2131230731;
// aapt resource value: 0x7F08000C
public const int accessibility_custom_action_13 = 2131230732;
// aapt resource value: 0x7F08000D
public const int accessibility_custom_action_14 = 2131230733;
// aapt resource value: 0x7F08000E
public const int accessibility_custom_action_15 = 2131230734;
// aapt resource value: 0x7F08000F
public const int accessibility_custom_action_16 = 2131230735;
// aapt resource value: 0x7F080010
public const int accessibility_custom_action_17 = 2131230736;
// aapt resource value: 0x7F080011
public const int accessibility_custom_action_18 = 2131230737;
// aapt resource value: 0x7F080012
public const int accessibility_custom_action_19 = 2131230738;
// aapt resource value: 0x7F080013
public const int accessibility_custom_action_2 = 2131230739;
// aapt resource value: 0x7F080014
public const int accessibility_custom_action_20 = 2131230740;
// aapt resource value: 0x7F080015
public const int accessibility_custom_action_21 = 2131230741;
// aapt resource value: 0x7F080016
public const int accessibility_custom_action_22 = 2131230742;
// aapt resource value: 0x7F080017
public const int accessibility_custom_action_23 = 2131230743;
// aapt resource value: 0x7F080018
public const int accessibility_custom_action_24 = 2131230744;
// aapt resource value: 0x7F080019
public const int accessibility_custom_action_25 = 2131230745;
// aapt resource value: 0x7F08001A
public const int accessibility_custom_action_26 = 2131230746;
// aapt resource value: 0x7F08001B
public const int accessibility_custom_action_27 = 2131230747;
// aapt resource value: 0x7F08001C
public const int accessibility_custom_action_28 = 2131230748;
// aapt resource value: 0x7F08001D
public const int accessibility_custom_action_29 = 2131230749;
// aapt resource value: 0x7F08001E
public const int accessibility_custom_action_3 = 2131230750;
// aapt resource value: 0x7F08001F
public const int accessibility_custom_action_30 = 2131230751;
// aapt resource value: 0x7F080020
public const int accessibility_custom_action_31 = 2131230752;
// aapt resource value: 0x7F080021
public const int accessibility_custom_action_4 = 2131230753;
// aapt resource value: 0x7F080022
public const int accessibility_custom_action_5 = 2131230754;
// aapt resource value: 0x7F080023
public const int accessibility_custom_action_6 = 2131230755;
// aapt resource value: 0x7F080024
public const int accessibility_custom_action_7 = 2131230756;
// aapt resource value: 0x7F080025
public const int accessibility_custom_action_8 = 2131230757;
// aapt resource value: 0x7F080026
public const int accessibility_custom_action_9 = 2131230758;
// aapt resource value: 0x7F080039
public const int actions = 2131230777;
// aapt resource value: 0x7F080027
public const int action_bar = 2131230759;
// aapt resource value: 0x7F080028
public const int action_bar_activity_content = 2131230760;
// aapt resource value: 0x7F080029
public const int action_bar_container = 2131230761;
// aapt resource value: 0x7F08002A
public const int action_bar_root = 2131230762;
// aapt resource value: 0x7F08002B
public const int action_bar_spinner = 2131230763;
// aapt resource value: 0x7F08002C
public const int action_bar_subtitle = 2131230764;
// aapt resource value: 0x7F08002D
public const int action_bar_title = 2131230765;
// aapt resource value: 0x7F08002E
public const int action_container = 2131230766;
// aapt resource value: 0x7F08002F
public const int action_context_bar = 2131230767;
// aapt resource value: 0x7F080030
public const int action_divider = 2131230768;
// aapt resource value: 0x7F080031
public const int action_image = 2131230769;
// aapt resource value: 0x7F080032
public const int action_menu_divider = 2131230770;
// aapt resource value: 0x7F080033
public const int action_menu_presenter = 2131230771;
// aapt resource value: 0x7F080034
public const int action_mode_bar = 2131230772;
// aapt resource value: 0x7F080035
public const int action_mode_bar_stub = 2131230773;
// aapt resource value: 0x7F080036
public const int action_mode_close_button = 2131230774;
// aapt resource value: 0x7F080037
public const int action_settings = 2131230775;
// aapt resource value: 0x7F080038
public const int action_text = 2131230776;
// aapt resource value: 0x7F08003A
public const int activity_chooser_view_content = 2131230778;
// aapt resource value: 0x7F08003B
public const int add = 2131230779;
// aapt resource value: 0x7F08003C
public const int alertTitle = 2131230780;
// aapt resource value: 0x7F08003D
public const int all = 2131230781;
// aapt resource value: 0x7F080000
public const int ALT = 2131230720;
// aapt resource value: 0x7F08003E
public const int always = 2131230782;
// aapt resource value: 0x7F08003F
public const int appbar = 2131230783;
// aapt resource value: 0x7F080040
public const int async = 2131230784;
// aapt resource value: 0x7F080041
public const int auto = 2131230785;
// aapt resource value: 0x7F080042
public const int beginning = 2131230786;
// aapt resource value: 0x7F080043
public const int blocking = 2131230787;
// aapt resource value: 0x7F080044
public const int bottom = 2131230788;
// aapt resource value: 0x7F080045
public const int browser_actions_header_text = 2131230789;
// aapt resource value: 0x7F080048
public const int browser_actions_menu_items = 2131230792;
// aapt resource value: 0x7F080046
public const int browser_actions_menu_item_icon = 2131230790;
// aapt resource value: 0x7F080047
public const int browser_actions_menu_item_text = 2131230791;
// aapt resource value: 0x7F080049
public const int browser_actions_menu_view = 2131230793;
// aapt resource value: 0x7F08004A
public const int btnChkSign = 2131230794;
// aapt resource value: 0x7F08004B
public const int btnqd = 2131230795;
// aapt resource value: 0x7F08004C
public const int buttonPanel = 2131230796;
// aapt resource value: 0x7F08004D
public const int center = 2131230797;
// aapt resource value: 0x7F08004E
public const int center_horizontal = 2131230798;
// aapt resource value: 0x7F08004F
public const int center_vertical = 2131230799;
// aapt resource value: 0x7F080050
public const int checkbox = 2131230800;
// aapt resource value: 0x7F080051
public const int @checked = 2131230801;
// aapt resource value: 0x7F080052
public const int chronometer = 2131230802;
// aapt resource value: 0x7F080053
public const int clip_horizontal = 2131230803;
// aapt resource value: 0x7F080054
public const int clip_vertical = 2131230804;
// aapt resource value: 0x7F080055
public const int collapseActionView = 2131230805;
// aapt resource value: 0x7F080056
public const int container = 2131230806;
// aapt resource value: 0x7F080057
public const int content = 2131230807;
// aapt resource value: 0x7F080058
public const int contentPanel = 2131230808;
// aapt resource value: 0x7F080059
public const int coordinator = 2131230809;
// aapt resource value: 0x7F080001
public const int CTRL = 2131230721;
// aapt resource value: 0x7F08005A
public const int custom = 2131230810;
// aapt resource value: 0x7F08005B
public const int customPanel = 2131230811;
// aapt resource value: 0x7F08005C
public const int decor_content_parent = 2131230812;
// aapt resource value: 0x7F08005D
public const int default_activity_button = 2131230813;
// aapt resource value: 0x7F08005E
public const int design_bottom_sheet = 2131230814;
// aapt resource value: 0x7F08005F
public const int design_menu_item_action_area = 2131230815;
// aapt resource value: 0x7F080060
public const int design_menu_item_action_area_stub = 2131230816;
// aapt resource value: 0x7F080061
public const int design_menu_item_text = 2131230817;
// aapt resource value: 0x7F080062
public const int design_navigation_view = 2131230818;
// aapt resource value: 0x7F080063
public const int dialog_button = 2131230819;
// aapt resource value: 0x7F080064
public const int disableHome = 2131230820;
// aapt resource value: 0x7F080065
public const int edit_query = 2131230821;
// aapt resource value: 0x7F080066
public const int end = 2131230822;
// aapt resource value: 0x7F080067
public const int enterAlways = 2131230823;
// aapt resource value: 0x7F080068
public const int enterAlwaysCollapsed = 2131230824;
// aapt resource value: 0x7F080069
public const int exitUntilCollapsed = 2131230825;
// aapt resource value: 0x7F08006B
public const int expanded_menu = 2131230827;
// aapt resource value: 0x7F08006A
public const int expand_activities_button = 2131230826;
// aapt resource value: 0x7F08006C
public const int fab = 2131230828;
// aapt resource value: 0x7F08006D
public const int fill = 2131230829;
// aapt resource value: 0x7F080070
public const int filled = 2131230832;
// aapt resource value: 0x7F08006E
public const int fill_horizontal = 2131230830;
// aapt resource value: 0x7F08006F
public const int fill_vertical = 2131230831;
// aapt resource value: 0x7F080071
public const int @fixed = 2131230833;
// aapt resource value: 0x7F080072
public const int forever = 2131230834;
// aapt resource value: 0x7F080073
public const int fragment_container_view_tag = 2131230835;
// aapt resource value: 0x7F080002
public const int FUNCTION = 2131230722;
// aapt resource value: 0x7F080074
public const int ghost_view = 2131230836;
// aapt resource value: 0x7F080075
public const int ghost_view_holder = 2131230837;
// aapt resource value: 0x7F080076
public const int group_divider = 2131230838;
// aapt resource value: 0x7F080077
public const int home = 2131230839;
// aapt resource value: 0x7F080078
public const int homeAsUp = 2131230840;
// aapt resource value: 0x7F080079
public const int icon = 2131230841;
// aapt resource value: 0x7F08007A
public const int icon_group = 2131230842;
// aapt resource value: 0x7F08007B
public const int ifRoom = 2131230843;
// aapt resource value: 0x7F08007C
public const int image = 2131230844;
// aapt resource value: 0x7F08007D
public const int info = 2131230845;
// aapt resource value: 0x7F08007E
public const int italic = 2131230846;
// aapt resource value: 0x7F08007F
public const int item_touch_helper_previous_elevation = 2131230847;
// aapt resource value: 0x7F080081
public const int labeled = 2131230849;
// aapt resource value: 0x7F080080
public const int labelOpenidHere = 2131230848;
// aapt resource value: 0x7F080082
public const int largeLabel = 2131230850;
// aapt resource value: 0x7F080083
public const int left = 2131230851;
// aapt resource value: 0x7F080084
public const int line1 = 2131230852;
// aapt resource value: 0x7F080085
public const int line3 = 2131230853;
// aapt resource value: 0x7F080086
public const int listMode = 2131230854;
// aapt resource value: 0x7F080087
public const int list_item = 2131230855;
// aapt resource value: 0x7F080088
public const int masked = 2131230856;
// aapt resource value: 0x7F080089
public const int message = 2131230857;
// aapt resource value: 0x7F080003
public const int META = 2131230723;
// aapt resource value: 0x7F08008A
public const int middle = 2131230858;
// aapt resource value: 0x7F08008B
public const int mini = 2131230859;
// aapt resource value: 0x7F08008C
public const int mtrl_child_content_container = 2131230860;
// aapt resource value: 0x7F08008D
public const int mtrl_internal_children_alpha_tag = 2131230861;
// aapt resource value: 0x7F08008E
public const int multiply = 2131230862;
// aapt resource value: 0x7F08008F
public const int navigation_header_container = 2131230863;
// aapt resource value: 0x7F080090
public const int never = 2131230864;
// aapt resource value: 0x7F080091
public const int none = 2131230865;
// aapt resource value: 0x7F080092
public const int normal = 2131230866;
// aapt resource value: 0x7F080093
public const int notification_background = 2131230867;
// aapt resource value: 0x7F080094
public const int notification_main_column = 2131230868;
// aapt resource value: 0x7F080095
public const int notification_main_column_container = 2131230869;
// aapt resource value: 0x7F080096
public const int off = 2131230870;
// aapt resource value: 0x7F080097
public const int on = 2131230871;
// aapt resource value: 0x7F080098
public const int openIdInput = 2131230872;
// aapt resource value: 0x7F080099
public const int outline = 2131230873;
// aapt resource value: 0x7F08009A
public const int parallax = 2131230874;
// aapt resource value: 0x7F08009B
public const int parentPanel = 2131230875;
// aapt resource value: 0x7F08009C
public const int parent_matrix = 2131230876;
// aapt resource value: 0x7F08009D
public const int pin = 2131230877;
// aapt resource value: 0x7F08009E
public const int progress_circular = 2131230878;
// aapt resource value: 0x7F08009F
public const int progress_horizontal = 2131230879;
// aapt resource value: 0x7F0800A0
public const int radio = 2131230880;
// aapt resource value: 0x7F0800A1
public const int right = 2131230881;
// aapt resource value: 0x7F0800A2
public const int right_icon = 2131230882;
// aapt resource value: 0x7F0800A3
public const int right_side = 2131230883;
// aapt resource value: 0x7F0800A4
public const int save_non_transition_alpha = 2131230884;
// aapt resource value: 0x7F0800A5
public const int save_overlay_view = 2131230885;
// aapt resource value: 0x7F0800A6
public const int screen = 2131230886;
// aapt resource value: 0x7F0800A7
public const int scroll = 2131230887;
// aapt resource value: 0x7F0800AB
public const int scrollable = 2131230891;
// aapt resource value: 0x7F0800A8
public const int scrollIndicatorDown = 2131230888;
// aapt resource value: 0x7F0800A9
public const int scrollIndicatorUp = 2131230889;
// aapt resource value: 0x7F0800AA
public const int scrollView = 2131230890;
// aapt resource value: 0x7F0800AC
public const int search_badge = 2131230892;
// aapt resource value: 0x7F0800AD
public const int search_bar = 2131230893;
// aapt resource value: 0x7F0800AE
public const int search_button = 2131230894;
// aapt resource value: 0x7F0800AF
public const int search_close_btn = 2131230895;
// aapt resource value: 0x7F0800B0
public const int search_edit_frame = 2131230896;
// aapt resource value: 0x7F0800B1
public const int search_go_btn = 2131230897;
// aapt resource value: 0x7F0800B2
public const int search_mag_icon = 2131230898;
// aapt resource value: 0x7F0800B3
public const int search_plate = 2131230899;
// aapt resource value: 0x7F0800B4
public const int search_src_text = 2131230900;
// aapt resource value: 0x7F0800B5
public const int search_voice_btn = 2131230901;
// aapt resource value: 0x7F0800B7
public const int selected = 2131230903;
// aapt resource value: 0x7F0800B6
public const int select_dialog_listview = 2131230902;
// aapt resource value: 0x7F080004
public const int SHIFT = 2131230724;
// aapt resource value: 0x7F0800B8
public const int shortcut = 2131230904;
// aapt resource value: 0x7F0800B9
public const int showCustom = 2131230905;
// aapt resource value: 0x7F0800BA
public const int showHome = 2131230906;
// aapt resource value: 0x7F0800BB
public const int showTitle = 2131230907;
// aapt resource value: 0x7F0800BC
public const int smallLabel = 2131230908;
// aapt resource value: 0x7F0800BD
public const int snackbar_action = 2131230909;
// aapt resource value: 0x7F0800BE
public const int snackbar_text = 2131230910;
// aapt resource value: 0x7F0800BF
public const int snap = 2131230911;
// aapt resource value: 0x7F0800C0
public const int snapMargins = 2131230912;
// aapt resource value: 0x7F0800C1
public const int spacer = 2131230913;
// aapt resource value: 0x7F0800C2
public const int split_action_bar = 2131230914;
// aapt resource value: 0x7F0800C3
public const int src_atop = 2131230915;
// aapt resource value: 0x7F0800C4
public const int src_in = 2131230916;
// aapt resource value: 0x7F0800C5
public const int src_over = 2131230917;
// aapt resource value: 0x7F0800C6
public const int start = 2131230918;
// aapt resource value: 0x7F0800C7
public const int stretch = 2131230919;
// aapt resource value: 0x7F0800C8
public const int submenuarrow = 2131230920;
// aapt resource value: 0x7F0800C9
public const int submit_area = 2131230921;
// aapt resource value: 0x7F080005
public const int SYM = 2131230725;
// aapt resource value: 0x7F0800CA
public const int tabMode = 2131230922;
// aapt resource value: 0x7F0800CB
public const int tag_accessibility_actions = 2131230923;
// aapt resource value: 0x7F0800CC
public const int tag_accessibility_clickable_spans = 2131230924;
// aapt resource value: 0x7F0800CD
public const int tag_accessibility_heading = 2131230925;
// aapt resource value: 0x7F0800CE
public const int tag_accessibility_pane_title = 2131230926;
// aapt resource value: 0x7F0800CF
public const int tag_screen_reader_focusable = 2131230927;
// aapt resource value: 0x7F0800D0
public const int tag_transition_group = 2131230928;
// aapt resource value: 0x7F0800D1
public const int tag_unhandled_key_event_manager = 2131230929;
// aapt resource value: 0x7F0800D2
public const int tag_unhandled_key_listeners = 2131230930;
// aapt resource value: 0x7F0800D3
public const int text = 2131230931;
// aapt resource value: 0x7F0800D4
public const int text2 = 2131230932;
// aapt resource value: 0x7F0800D9
public const int textinput_counter = 2131230937;
// aapt resource value: 0x7F0800DA
public const int textinput_error = 2131230938;
// aapt resource value: 0x7F0800DB
public const int textinput_helper_text = 2131230939;
// aapt resource value: 0x7F0800D5
public const int textSpacerNoButtons = 2131230933;
// aapt resource value: 0x7F0800D6
public const int textSpacerNoTitle = 2131230934;
// aapt resource value: 0x7F0800D7
public const int textStart = 2131230935;
// aapt resource value: 0x7F0800D8
public const int text_input_password_toggle = 2131230936;
// aapt resource value: 0x7F0800DC
public const int time = 2131230940;
// aapt resource value: 0x7F0800DD
public const int title = 2131230941;
// aapt resource value: 0x7F0800DE
public const int titleDividerNoCustom = 2131230942;
// aapt resource value: 0x7F0800DF
public const int title_template = 2131230943;
// aapt resource value: 0x7F0800E0
public const int top = 2131230944;
// aapt resource value: 0x7F0800E1
public const int topPanel = 2131230945;
// aapt resource value: 0x7F0800E2
public const int touch_outside = 2131230946;
// aapt resource value: 0x7F0800E3
public const int transition_current_scene = 2131230947;
// aapt resource value: 0x7F0800E4
public const int transition_layout_save = 2131230948;
// aapt resource value: 0x7F0800E5
public const int transition_position = 2131230949;
// aapt resource value: 0x7F0800E6
public const int transition_scene_layoutid_cache = 2131230950;
// aapt resource value: 0x7F0800E7
public const int transition_transform = 2131230951;
// aapt resource value: 0x7F0800E8
public const int txtqd = 2131230952;
// aapt resource value: 0x7F0800E9
public const int uname = 2131230953;
// aapt resource value: 0x7F0800EA
public const int @unchecked = 2131230954;
// aapt resource value: 0x7F0800EB
public const int uniform = 2131230955;
// aapt resource value: 0x7F0800EC
public const int unlabeled = 2131230956;
// aapt resource value: 0x7F0800ED
public const int up = 2131230957;
// aapt resource value: 0x7F0800EE
public const int useLogo = 2131230958;
// aapt resource value: 0x7F0800EF
public const int view_offset_helper = 2131230959;
// aapt resource value: 0x7F0800F0
public const int view_tree_saved_state_registry_owner = 2131230960;
// aapt resource value: 0x7F0800F1
public const int visible = 2131230961;
// aapt resource value: 0x7F0800F2
public const int visible_removing_fragment_view_tag = 2131230962;
// aapt resource value: 0x7F0800F3
public const int withText = 2131230963;
// aapt resource value: 0x7F0800F4
public const int wrap_content = 2131230964;
static Id()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Id()
{
}
}
public partial class Integer
{
// aapt resource value: 0x7F090000
public const int abc_config_activityDefaultDur = 2131296256;
// aapt resource value: 0x7F090001
public const int abc_config_activityShortDur = 2131296257;
// aapt resource value: 0x7F090002
public const int app_bar_elevation_anim_duration = 2131296258;
// aapt resource value: 0x7F090003
public const int bottom_sheet_slide_duration = 2131296259;
// aapt resource value: 0x7F090004
public const int cancel_button_image_alpha = 2131296260;
// aapt resource value: 0x7F090005
public const int config_tooltipAnimTime = 2131296261;
// aapt resource value: 0x7F090006
public const int design_snackbar_text_max_lines = 2131296262;
// aapt resource value: 0x7F090007
public const int design_tab_indicator_anim_duration_ms = 2131296263;
// aapt resource value: 0x7F090008
public const int hide_password_duration = 2131296264;
// aapt resource value: 0x7F090009
public const int mtrl_btn_anim_delay_ms = 2131296265;
// aapt resource value: 0x7F09000A
public const int mtrl_btn_anim_duration_ms = 2131296266;
// aapt resource value: 0x7F09000B
public const int mtrl_chip_anim_duration = 2131296267;
// aapt resource value: 0x7F09000C
public const int mtrl_tab_indicator_anim_duration_ms = 2131296268;
// aapt resource value: 0x7F09000D
public const int show_password_duration = 2131296269;
// aapt resource value: 0x7F09000E
public const int status_bar_notification_info_maxnum = 2131296270;
static Integer()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Integer()
{
}
}
public partial class Interpolator
{
// aapt resource value: 0x7F0A0000
public const int btn_checkbox_checked_mtrl_animation_interpolator_0 = 2131361792;
// aapt resource value: 0x7F0A0001
public const int btn_checkbox_checked_mtrl_animation_interpolator_1 = 2131361793;
// aapt resource value: 0x7F0A0002
public const int btn_checkbox_unchecked_mtrl_animation_interpolator_0 = 2131361794;
// aapt resource value: 0x7F0A0003
public const int btn_checkbox_unchecked_mtrl_animation_interpolator_1 = 2131361795;
// aapt resource value: 0x7F0A0004
public const int btn_radio_to_off_mtrl_animation_interpolator_0 = 2131361796;
// aapt resource value: 0x7F0A0005
public const int btn_radio_to_on_mtrl_animation_interpolator_0 = 2131361797;
// aapt resource value: 0x7F0A0006
public const int fast_out_slow_in = 2131361798;
// aapt resource value: 0x7F0A0007
public const int mtrl_fast_out_linear_in = 2131361799;
// aapt resource value: 0x7F0A0008
public const int mtrl_fast_out_slow_in = 2131361800;
// aapt resource value: 0x7F0A0009
public const int mtrl_linear = 2131361801;
// aapt resource value: 0x7F0A000A
public const int mtrl_linear_out_slow_in = 2131361802;
static Interpolator()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Interpolator()
{
}
}
public partial class Layout
{
// aapt resource value: 0x7F0B0000
public const int abc_action_bar_title_item = 2131427328;
// aapt resource value: 0x7F0B0001
public const int abc_action_bar_up_container = 2131427329;
// aapt resource value: 0x7F0B0002
public const int abc_action_menu_item_layout = 2131427330;
// aapt resource value: 0x7F0B0003
public const int abc_action_menu_layout = 2131427331;
// aapt resource value: 0x7F0B0004
public const int abc_action_mode_bar = 2131427332;
// aapt resource value: 0x7F0B0005
public const int abc_action_mode_close_item_material = 2131427333;
// aapt resource value: 0x7F0B0006
public const int abc_activity_chooser_view = 2131427334;
// aapt resource value: 0x7F0B0007
public const int abc_activity_chooser_view_list_item = 2131427335;
// aapt resource value: 0x7F0B0008
public const int abc_alert_dialog_button_bar_material = 2131427336;
// aapt resource value: 0x7F0B0009
public const int abc_alert_dialog_material = 2131427337;
// aapt resource value: 0x7F0B000A
public const int abc_alert_dialog_title_material = 2131427338;
// aapt resource value: 0x7F0B000B
public const int abc_cascading_menu_item_layout = 2131427339;
// aapt resource value: 0x7F0B000C
public const int abc_dialog_title_material = 2131427340;
// aapt resource value: 0x7F0B000D
public const int abc_expanded_menu_layout = 2131427341;
// aapt resource value: 0x7F0B000E
public const int abc_list_menu_item_checkbox = 2131427342;
// aapt resource value: 0x7F0B000F
public const int abc_list_menu_item_icon = 2131427343;
// aapt resource value: 0x7F0B0010
public const int abc_list_menu_item_layout = 2131427344;
// aapt resource value: 0x7F0B0011
public const int abc_list_menu_item_radio = 2131427345;
// aapt resource value: 0x7F0B0012
public const int abc_popup_menu_header_item_layout = 2131427346;
// aapt resource value: 0x7F0B0013
public const int abc_popup_menu_item_layout = 2131427347;
// aapt resource value: 0x7F0B0014
public const int abc_screen_content_include = 2131427348;
// aapt resource value: 0x7F0B0015
public const int abc_screen_simple = 2131427349;
// aapt resource value: 0x7F0B0016
public const int abc_screen_simple_overlay_action_mode = 2131427350;
// aapt resource value: 0x7F0B0017
public const int abc_screen_toolbar = 2131427351;
// aapt resource value: 0x7F0B0018
public const int abc_search_dropdown_item_icons_2line = 2131427352;
// aapt resource value: 0x7F0B0019
public const int abc_search_view = 2131427353;
// aapt resource value: 0x7F0B001A
public const int abc_select_dialog_material = 2131427354;
// aapt resource value: 0x7F0B001B
public const int abc_tooltip = 2131427355;
// aapt resource value: 0x7F0B001C
public const int activity_main = 2131427356;
// aapt resource value: 0x7F0B001D
public const int browser_actions_context_menu_page = 2131427357;
// aapt resource value: 0x7F0B001E
public const int browser_actions_context_menu_row = 2131427358;
// aapt resource value: 0x7F0B001F
public const int content_main = 2131427359;
// aapt resource value: 0x7F0B0020
public const int custom_dialog = 2131427360;
// aapt resource value: 0x7F0B0021
public const int design_bottom_navigation_item = 2131427361;
// aapt resource value: 0x7F0B0022
public const int design_bottom_sheet_dialog = 2131427362;
// aapt resource value: 0x7F0B0023
public const int design_layout_snackbar = 2131427363;
// aapt resource value: 0x7F0B0024
public const int design_layout_snackbar_include = 2131427364;
// aapt resource value: 0x7F0B0025
public const int design_layout_tab_icon = 2131427365;
// aapt resource value: 0x7F0B0026
public const int design_layout_tab_text = 2131427366;
// aapt resource value: 0x7F0B0027
public const int design_menu_item_action_area = 2131427367;
// aapt resource value: 0x7F0B0028
public const int design_navigation_item = 2131427368;
// aapt resource value: 0x7F0B0029
public const int design_navigation_item_header = 2131427369;
// aapt resource value: 0x7F0B002A
public const int design_navigation_item_separator = 2131427370;
// aapt resource value: 0x7F0B002B
public const int design_navigation_item_subheader = 2131427371;
// aapt resource value: 0x7F0B002C
public const int design_navigation_menu = 2131427372;
// aapt resource value: 0x7F0B002D
public const int design_navigation_menu_item = 2131427373;
// aapt resource value: 0x7F0B002E
public const int design_text_input_password_icon = 2131427374;
// aapt resource value: 0x7F0B002F
public const int mtrl_layout_snackbar = 2131427375;
// aapt resource value: 0x7F0B0030
public const int mtrl_layout_snackbar_include = 2131427376;
// aapt resource value: 0x7F0B0031
public const int notification_action = 2131427377;
// aapt resource value: 0x7F0B0032
public const int notification_action_tombstone = 2131427378;
// aapt resource value: 0x7F0B0033
public const int notification_template_custom_big = 2131427379;
// aapt resource value: 0x7F0B0034
public const int notification_template_icon_group = 2131427380;
// aapt resource value: 0x7F0B0035
public const int notification_template_part_chronometer = 2131427381;
// aapt resource value: 0x7F0B0036
public const int notification_template_part_time = 2131427382;
// aapt resource value: 0x7F0B0037
public const int select_dialog_item_material = 2131427383;
// aapt resource value: 0x7F0B0038
public const int select_dialog_multichoice_material = 2131427384;
// aapt resource value: 0x7F0B0039
public const int select_dialog_singlechoice_material = 2131427385;
// aapt resource value: 0x7F0B003A
public const int support_simple_spinner_dropdown_item = 2131427386;
static Layout()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Layout()
{
}
}
public partial class Menu
{
// aapt resource value: 0x7F0C0000
public const int menu_main = 2131492864;
static Menu()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Menu()
{
}
}
public partial class Mipmap
{
// aapt resource value: 0x7F0D0000
public const int ic_launcher = 2131558400;
// aapt resource value: 0x7F0D0001
public const int ic_launcher_foreground = 2131558401;
// aapt resource value: 0x7F0D0002
public const int ic_launcher_round = 2131558402;
static Mipmap()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Mipmap()
{
}
}
public partial class String
{
// aapt resource value: 0x7F0E0000
public const int abc_action_bar_home_description = 2131623936;
// aapt resource value: 0x7F0E0001
public const int abc_action_bar_up_description = 2131623937;
// aapt resource value: 0x7F0E0002
public const int abc_action_menu_overflow_description = 2131623938;
// aapt resource value: 0x7F0E0003
public const int abc_action_mode_done = 2131623939;
// aapt resource value: 0x7F0E0005
public const int abc_activitychooserview_choose_application = 2131623941;
// aapt resource value: 0x7F0E0004
public const int abc_activity_chooser_view_see_all = 2131623940;
// aapt resource value: 0x7F0E0006
public const int abc_capital_off = 2131623942;
// aapt resource value: 0x7F0E0007
public const int abc_capital_on = 2131623943;
// aapt resource value: 0x7F0E0008
public const int abc_menu_alt_shortcut_label = 2131623944;
// aapt resource value: 0x7F0E0009
public const int abc_menu_ctrl_shortcut_label = 2131623945;
// aapt resource value: 0x7F0E000A
public const int abc_menu_delete_shortcut_label = 2131623946;
// aapt resource value: 0x7F0E000B
public const int abc_menu_enter_shortcut_label = 2131623947;
// aapt resource value: 0x7F0E000C
public const int abc_menu_function_shortcut_label = 2131623948;
// aapt resource value: 0x7F0E000D
public const int abc_menu_meta_shortcut_label = 2131623949;
// aapt resource value: 0x7F0E000E
public const int abc_menu_shift_shortcut_label = 2131623950;
// aapt resource value: 0x7F0E000F
public const int abc_menu_space_shortcut_label = 2131623951;
// aapt resource value: 0x7F0E0010
public const int abc_menu_sym_shortcut_label = 2131623952;
// aapt resource value: 0x7F0E0011
public const int abc_prepend_shortcut_label = 2131623953;
// aapt resource value: 0x7F0E0013
public const int abc_searchview_description_clear = 2131623955;
// aapt resource value: 0x7F0E0014
public const int abc_searchview_description_query = 2131623956;
// aapt resource value: 0x7F0E0015
public const int abc_searchview_description_search = 2131623957;
// aapt resource value: 0x7F0E0016
public const int abc_searchview_description_submit = 2131623958;
// aapt resource value: 0x7F0E0017
public const int abc_searchview_description_voice = 2131623959;
// aapt resource value: 0x7F0E0012
public const int abc_search_hint = 2131623954;
// aapt resource value: 0x7F0E0018
public const int abc_shareactionprovider_share_with = 2131623960;
// aapt resource value: 0x7F0E0019
public const int abc_shareactionprovider_share_with_application = 2131623961;
// aapt resource value: 0x7F0E001A
public const int abc_toolbar_collapse_description = 2131623962;
// aapt resource value: 0x7F0E001B
public const int action_settings = 2131623963;
// aapt resource value: 0x7F0E001D
public const int appbar_scrolling_view_behavior = 2131623965;
// aapt resource value: 0x7F0E001C
public const int app_name = 2131623964;
// aapt resource value: 0x7F0E001E
public const int bottom_sheet_behavior = 2131623966;
// aapt resource value: 0x7F0E001F
public const int character_counter_content_description = 2131623967;
// aapt resource value: 0x7F0E0020
public const int character_counter_pattern = 2131623968;
// aapt resource value: 0x7F0E0021
public const int check_sign = 2131623969;
// aapt resource value: 0x7F0E0022
public const int copy_toast_msg = 2131623970;
// aapt resource value: 0x7F0E0023
public const int fab_transformation_scrim_behavior = 2131623971;
// aapt resource value: 0x7F0E0024
public const int fab_transformation_sheet_behavior = 2131623972;
// aapt resource value: 0x7F0E0025
public const int fallback_menu_item_copy_link = 2131623973;
// aapt resource value: 0x7F0E0026
public const int fallback_menu_item_open_in_browser = 2131623974;
// aapt resource value: 0x7F0E0027
public const int fallback_menu_item_share_link = 2131623975;
// aapt resource value: 0x7F0E0028
public const int hide_bottom_view_on_scroll_behavior = 2131623976;
// aapt resource value: 0x7F0E0029
public const int label_placeholder = 2131623977;
// aapt resource value: 0x7F0E002A
public const int label_qd = 2131623978;
// aapt resource value: 0x7F0E002B
public const int mtrl_chip_close_icon_content_description = 2131623979;
// aapt resource value: 0x7F0E002C
public const int no_openid_match = 2131623980;
// aapt resource value: 0x7F0E002D
public const int password_toggle_content_description = 2131623981;
// aapt resource value: 0x7F0E002E
public const int path_password_eye = 2131623982;
// aapt resource value: 0x7F0E002F
public const int path_password_eye_mask_strike_through = 2131623983;
// aapt resource value: 0x7F0E0030
public const int path_password_eye_mask_visible = 2131623984;
// aapt resource value: 0x7F0E0031
public const int path_password_strike_through = 2131623985;
// aapt resource value: 0x7F0E0032
public const int qd = 2131623986;
// aapt resource value: 0x7F0E0033
public const int search_menu_title = 2131623987;
// aapt resource value: 0x7F0E0034
public const int status_bar_notification_info_overflow = 2131623988;
static String()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private String()
{
}
}
public partial class Style
{
// aapt resource value: 0x7F0F0000
public const int AlertDialog_AppCompat = 2131689472;
// aapt resource value: 0x7F0F0001
public const int AlertDialog_AppCompat_Light = 2131689473;
// aapt resource value: 0x7F0F0002
public const int Animation_AppCompat_Dialog = 2131689474;
// aapt resource value: 0x7F0F0003
public const int Animation_AppCompat_DropDownUp = 2131689475;
// aapt resource value: 0x7F0F0004
public const int Animation_AppCompat_Tooltip = 2131689476;
// aapt resource value: 0x7F0F0005
public const int Animation_Design_BottomSheetDialog = 2131689477;
// aapt resource value: 0x7F0F0006
public const int AppTheme = 2131689478;
// aapt resource value: 0x7F0F0007
public const int AppTheme_AppBarOverlay = 2131689479;
// aapt resource value: 0x7F0F0008
public const int AppTheme_NoActionBar = 2131689480;
// aapt resource value: 0x7F0F0009
public const int AppTheme_PopupOverlay = 2131689481;
// aapt resource value: 0x7F0F000A
public const int Base_AlertDialog_AppCompat = 2131689482;
// aapt resource value: 0x7F0F000B
public const int Base_AlertDialog_AppCompat_Light = 2131689483;
// aapt resource value: 0x7F0F000C
public const int Base_Animation_AppCompat_Dialog = 2131689484;
// aapt resource value: 0x7F0F000D
public const int Base_Animation_AppCompat_DropDownUp = 2131689485;
// aapt resource value: 0x7F0F000E
public const int Base_Animation_AppCompat_Tooltip = 2131689486;
// aapt resource value: 0x7F0F000F
public const int Base_CardView = 2131689487;
// aapt resource value: 0x7F0F0011
public const int Base_DialogWindowTitleBackground_AppCompat = 2131689489;
// aapt resource value: 0x7F0F0010
public const int Base_DialogWindowTitle_AppCompat = 2131689488;
// aapt resource value: 0x7F0F0012
public const int Base_TextAppearance_AppCompat = 2131689490;
// aapt resource value: 0x7F0F0013
public const int Base_TextAppearance_AppCompat_Body1 = 2131689491;
// aapt resource value: 0x7F0F0014
public const int Base_TextAppearance_AppCompat_Body2 = 2131689492;
// aapt resource value: 0x7F0F0015
public const int Base_TextAppearance_AppCompat_Button = 2131689493;
// aapt resource value: 0x7F0F0016
public const int Base_TextAppearance_AppCompat_Caption = 2131689494;
// aapt resource value: 0x7F0F0017
public const int Base_TextAppearance_AppCompat_Display1 = 2131689495;
// aapt resource value: 0x7F0F0018
public const int Base_TextAppearance_AppCompat_Display2 = 2131689496;
// aapt resource value: 0x7F0F0019
public const int Base_TextAppearance_AppCompat_Display3 = 2131689497;
// aapt resource value: 0x7F0F001A
public const int Base_TextAppearance_AppCompat_Display4 = 2131689498;
// aapt resource value: 0x7F0F001B
public const int Base_TextAppearance_AppCompat_Headline = 2131689499;
// aapt resource value: 0x7F0F001C
public const int Base_TextAppearance_AppCompat_Inverse = 2131689500;
// aapt resource value: 0x7F0F001D
public const int Base_TextAppearance_AppCompat_Large = 2131689501;
// aapt resource value: 0x7F0F001E
public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131689502;
// aapt resource value: 0x7F0F001F
public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131689503;
// aapt resource value: 0x7F0F0020
public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131689504;
// aapt resource value: 0x7F0F0021
public const int Base_TextAppearance_AppCompat_Medium = 2131689505;
// aapt resource value: 0x7F0F0022
public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131689506;
// aapt resource value: 0x7F0F0023
public const int Base_TextAppearance_AppCompat_Menu = 2131689507;
// aapt resource value: 0x7F0F0024
public const int Base_TextAppearance_AppCompat_SearchResult = 2131689508;
// aapt resource value: 0x7F0F0025
public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131689509;
// aapt resource value: 0x7F0F0026
public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131689510;
// aapt resource value: 0x7F0F0027
public const int Base_TextAppearance_AppCompat_Small = 2131689511;
// aapt resource value: 0x7F0F0028
public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131689512;
// aapt resource value: 0x7F0F0029
public const int Base_TextAppearance_AppCompat_Subhead = 2131689513;
// aapt resource value: 0x7F0F002A
public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131689514;
// aapt resource value: 0x7F0F002B
public const int Base_TextAppearance_AppCompat_Title = 2131689515;
// aapt resource value: 0x7F0F002C
public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131689516;
// aapt resource value: 0x7F0F002D
public const int Base_TextAppearance_AppCompat_Tooltip = 2131689517;
// aapt resource value: 0x7F0F002E
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131689518;
// aapt resource value: 0x7F0F002F
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131689519;
// aapt resource value: 0x7F0F0030
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131689520;
// aapt resource value: 0x7F0F0031
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131689521;
// aapt resource value: 0x7F0F0032
public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131689522;
// aapt resource value: 0x7F0F0033
public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131689523;
// aapt resource value: 0x7F0F0034
public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131689524;
// aapt resource value: 0x7F0F0035
public const int Base_TextAppearance_AppCompat_Widget_Button = 2131689525;
// aapt resource value: 0x7F0F0036
public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131689526;
// aapt resource value: 0x7F0F0037
public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131689527;
// aapt resource value: 0x7F0F0038
public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131689528;
// aapt resource value: 0x7F0F0039
public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131689529;
// aapt resource value: 0x7F0F003A
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131689530;
// aapt resource value: 0x7F0F003B
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131689531;
// aapt resource value: 0x7F0F003C
public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131689532;
// aapt resource value: 0x7F0F003D
public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131689533;
// aapt resource value: 0x7F0F003E
public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131689534;
// aapt resource value: 0x7F0F003F
public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131689535;
// aapt resource value: 0x7F0F0040
public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131689536;
// aapt resource value: 0x7F0F0041
public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131689537;
// aapt resource value: 0x7F0F0061
public const int Base_ThemeOverlay_AppCompat = 2131689569;
// aapt resource value: 0x7F0F0062
public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131689570;
// aapt resource value: 0x7F0F0063
public const int Base_ThemeOverlay_AppCompat_Dark = 2131689571;
// aapt resource value: 0x7F0F0064
public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131689572;
// aapt resource value: 0x7F0F0065
public const int Base_ThemeOverlay_AppCompat_Dialog = 2131689573;
// aapt resource value: 0x7F0F0066
public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131689574;
// aapt resource value: 0x7F0F0067
public const int Base_ThemeOverlay_AppCompat_Light = 2131689575;
// aapt resource value: 0x7F0F0068
public const int Base_ThemeOverlay_MaterialComponents_Dialog = 2131689576;
// aapt resource value: 0x7F0F0069
public const int Base_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131689577;
// aapt resource value: 0x7F0F0042
public const int Base_Theme_AppCompat = 2131689538;
// aapt resource value: 0x7F0F0043
public const int Base_Theme_AppCompat_CompactMenu = 2131689539;
// aapt resource value: 0x7F0F0044
public const int Base_Theme_AppCompat_Dialog = 2131689540;
// aapt resource value: 0x7F0F0048
public const int Base_Theme_AppCompat_DialogWhenLarge = 2131689544;
// aapt resource value: 0x7F0F0045
public const int Base_Theme_AppCompat_Dialog_Alert = 2131689541;
// aapt resource value: 0x7F0F0046
public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131689542;
// aapt resource value: 0x7F0F0047
public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131689543;
// aapt resource value: 0x7F0F0049
public const int Base_Theme_AppCompat_Light = 2131689545;
// aapt resource value: 0x7F0F004A
public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131689546;
// aapt resource value: 0x7F0F004B
public const int Base_Theme_AppCompat_Light_Dialog = 2131689547;
// aapt resource value: 0x7F0F004F
public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131689551;
// aapt resource value: 0x7F0F004C
public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131689548;
// aapt resource value: 0x7F0F004D
public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131689549;
// aapt resource value: 0x7F0F004E
public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131689550;
// aapt resource value: 0x7F0F0050
public const int Base_Theme_MaterialComponents = 2131689552;
// aapt resource value: 0x7F0F0051
public const int Base_Theme_MaterialComponents_Bridge = 2131689553;
// aapt resource value: 0x7F0F0052
public const int Base_Theme_MaterialComponents_CompactMenu = 2131689554;
// aapt resource value: 0x7F0F0053
public const int Base_Theme_MaterialComponents_Dialog = 2131689555;
// aapt resource value: 0x7F0F0057
public const int Base_Theme_MaterialComponents_DialogWhenLarge = 2131689559;
// aapt resource value: 0x7F0F0054
public const int Base_Theme_MaterialComponents_Dialog_Alert = 2131689556;
// aapt resource value: 0x7F0F0055
public const int Base_Theme_MaterialComponents_Dialog_FixedSize = 2131689557;
// aapt resource value: 0x7F0F0056
public const int Base_Theme_MaterialComponents_Dialog_MinWidth = 2131689558;
// aapt resource value: 0x7F0F0058
public const int Base_Theme_MaterialComponents_Light = 2131689560;
// aapt resource value: 0x7F0F0059
public const int Base_Theme_MaterialComponents_Light_Bridge = 2131689561;
// aapt resource value: 0x7F0F005A
public const int Base_Theme_MaterialComponents_Light_DarkActionBar = 2131689562;
// aapt resource value: 0x7F0F005B
public const int Base_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131689563;
// aapt resource value: 0x7F0F005C
public const int Base_Theme_MaterialComponents_Light_Dialog = 2131689564;
// aapt resource value: 0x7F0F0060
public const int Base_Theme_MaterialComponents_Light_DialogWhenLarge = 2131689568;
// aapt resource value: 0x7F0F005D
public const int Base_Theme_MaterialComponents_Light_Dialog_Alert = 2131689565;
// aapt resource value: 0x7F0F005E
public const int Base_Theme_MaterialComponents_Light_Dialog_FixedSize = 2131689566;
// aapt resource value: 0x7F0F005F
public const int Base_Theme_MaterialComponents_Light_Dialog_MinWidth = 2131689567;
// aapt resource value: 0x7F0F0071
public const int Base_V14_ThemeOverlay_MaterialComponents_Dialog = 2131689585;
// aapt resource value: 0x7F0F0072
public const int Base_V14_ThemeOverlay_MaterialComponents_Dialog_Alert = 2131689586;
// aapt resource value: 0x7F0F006A
public const int Base_V14_Theme_MaterialComponents = 2131689578;
// aapt resource value: 0x7F0F006B
public const int Base_V14_Theme_MaterialComponents_Bridge = 2131689579;
// aapt resource value: 0x7F0F006C
public const int Base_V14_Theme_MaterialComponents_Dialog = 2131689580;
// aapt resource value: 0x7F0F006D
public const int Base_V14_Theme_MaterialComponents_Light = 2131689581;
// aapt resource value: 0x7F0F006E
public const int Base_V14_Theme_MaterialComponents_Light_Bridge = 2131689582;
// aapt resource value: 0x7F0F006F
public const int Base_V14_Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131689583;
// aapt resource value: 0x7F0F0070
public const int Base_V14_Theme_MaterialComponents_Light_Dialog = 2131689584;
// aapt resource value: 0x7F0F0077
public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131689591;
// aapt resource value: 0x7F0F0073
public const int Base_V21_Theme_AppCompat = 2131689587;
// aapt resource value: 0x7F0F0074
public const int Base_V21_Theme_AppCompat_Dialog = 2131689588;
// aapt resource value: 0x7F0F0075
public const int Base_V21_Theme_AppCompat_Light = 2131689589;
// aapt resource value: 0x7F0F0076
public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131689590;
// aapt resource value: 0x7F0F0078
public const int Base_V22_Theme_AppCompat = 2131689592;
// aapt resource value: 0x7F0F0079
public const int Base_V22_Theme_AppCompat_Light = 2131689593;
// aapt resource value: 0x7F0F007A
public const int Base_V23_Theme_AppCompat = 2131689594;
// aapt resource value: 0x7F0F007B
public const int Base_V23_Theme_AppCompat_Light = 2131689595;
// aapt resource value: 0x7F0F007C
public const int Base_V26_Theme_AppCompat = 2131689596;
// aapt resource value: 0x7F0F007D
public const int Base_V26_Theme_AppCompat_Light = 2131689597;
// aapt resource value: 0x7F0F007E
public const int Base_V26_Widget_AppCompat_Toolbar = 2131689598;
// aapt resource value: 0x7F0F007F
public const int Base_V28_Theme_AppCompat = 2131689599;
// aapt resource value: 0x7F0F0080
public const int Base_V28_Theme_AppCompat_Light = 2131689600;
// aapt resource value: 0x7F0F0085
public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131689605;
// aapt resource value: 0x7F0F0081
public const int Base_V7_Theme_AppCompat = 2131689601;
// aapt resource value: 0x7F0F0082
public const int Base_V7_Theme_AppCompat_Dialog = 2131689602;
// aapt resource value: 0x7F0F0083
public const int Base_V7_Theme_AppCompat_Light = 2131689603;
// aapt resource value: 0x7F0F0084
public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131689604;
// aapt resource value: 0x7F0F0086
public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131689606;
// aapt resource value: 0x7F0F0087
public const int Base_V7_Widget_AppCompat_EditText = 2131689607;
// aapt resource value: 0x7F0F0088
public const int Base_V7_Widget_AppCompat_Toolbar = 2131689608;
// aapt resource value: 0x7F0F0089
public const int Base_Widget_AppCompat_ActionBar = 2131689609;
// aapt resource value: 0x7F0F008A
public const int Base_Widget_AppCompat_ActionBar_Solid = 2131689610;
// aapt resource value: 0x7F0F008B
public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131689611;
// aapt resource value: 0x7F0F008C
public const int Base_Widget_AppCompat_ActionBar_TabText = 2131689612;
// aapt resource value: 0x7F0F008D
public const int Base_Widget_AppCompat_ActionBar_TabView = 2131689613;
// aapt resource value: 0x7F0F008E
public const int Base_Widget_AppCompat_ActionButton = 2131689614;
// aapt resource value: 0x7F0F008F
public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131689615;
// aapt resource value: 0x7F0F0090
public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131689616;
// aapt resource value: 0x7F0F0091
public const int Base_Widget_AppCompat_ActionMode = 2131689617;
// aapt resource value: 0x7F0F0092
public const int Base_Widget_AppCompat_ActivityChooserView = 2131689618;
// aapt resource value: 0x7F0F0093
public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131689619;
// aapt resource value: 0x7F0F0094
public const int Base_Widget_AppCompat_Button = 2131689620;
// aapt resource value: 0x7F0F009A
public const int Base_Widget_AppCompat_ButtonBar = 2131689626;
// aapt resource value: 0x7F0F009B
public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131689627;
// aapt resource value: 0x7F0F0095
public const int Base_Widget_AppCompat_Button_Borderless = 2131689621;
// aapt resource value: 0x7F0F0096
public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131689622;
// aapt resource value: 0x7F0F0097
public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131689623;
// aapt resource value: 0x7F0F0098
public const int Base_Widget_AppCompat_Button_Colored = 2131689624;
// aapt resource value: 0x7F0F0099
public const int Base_Widget_AppCompat_Button_Small = 2131689625;
// aapt resource value: 0x7F0F009C
public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131689628;
// aapt resource value: 0x7F0F009D
public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131689629;
// aapt resource value: 0x7F0F009E
public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131689630;
// aapt resource value: 0x7F0F009F
public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131689631;
// aapt resource value: 0x7F0F00A0
public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131689632;
// aapt resource value: 0x7F0F00A1
public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131689633;
// aapt resource value: 0x7F0F00A2
public const int Base_Widget_AppCompat_EditText = 2131689634;
// aapt resource value: 0x7F0F00A3
public const int Base_Widget_AppCompat_ImageButton = 2131689635;
// aapt resource value: 0x7F0F00A4
public const int Base_Widget_AppCompat_Light_ActionBar = 2131689636;
// aapt resource value: 0x7F0F00A5
public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131689637;
// aapt resource value: 0x7F0F00A6
public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131689638;
// aapt resource value: 0x7F0F00A7
public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131689639;
// aapt resource value: 0x7F0F00A8
public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131689640;
// aapt resource value: 0x7F0F00A9
public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131689641;
// aapt resource value: 0x7F0F00AA
public const int Base_Widget_AppCompat_Light_PopupMenu = 2131689642;
// aapt resource value: 0x7F0F00AB
public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131689643;
// aapt resource value: 0x7F0F00AC
public const int Base_Widget_AppCompat_ListMenuView = 2131689644;
// aapt resource value: 0x7F0F00AD
public const int Base_Widget_AppCompat_ListPopupWindow = 2131689645;
// aapt resource value: 0x7F0F00AE
public const int Base_Widget_AppCompat_ListView = 2131689646;
// aapt resource value: 0x7F0F00AF
public const int Base_Widget_AppCompat_ListView_DropDown = 2131689647;
// aapt resource value: 0x7F0F00B0
public const int Base_Widget_AppCompat_ListView_Menu = 2131689648;
// aapt resource value: 0x7F0F00B1
public const int Base_Widget_AppCompat_PopupMenu = 2131689649;
// aapt resource value: 0x7F0F00B2
public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131689650;
// aapt resource value: 0x7F0F00B3
public const int Base_Widget_AppCompat_PopupWindow = 2131689651;
// aapt resource value: 0x7F0F00B4
public const int Base_Widget_AppCompat_ProgressBar = 2131689652;
// aapt resource value: 0x7F0F00B5
public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131689653;
// aapt resource value: 0x7F0F00B6
public const int Base_Widget_AppCompat_RatingBar = 2131689654;
// aapt resource value: 0x7F0F00B7
public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131689655;
// aapt resource value: 0x7F0F00B8
public const int Base_Widget_AppCompat_RatingBar_Small = 2131689656;
// aapt resource value: 0x7F0F00B9
public const int Base_Widget_AppCompat_SearchView = 2131689657;
// aapt resource value: 0x7F0F00BA
public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131689658;
// aapt resource value: 0x7F0F00BB
public const int Base_Widget_AppCompat_SeekBar = 2131689659;
// aapt resource value: 0x7F0F00BC
public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131689660;
// aapt resource value: 0x7F0F00BD
public const int Base_Widget_AppCompat_Spinner = 2131689661;
// aapt resource value: 0x7F0F00BE
public const int Base_Widget_AppCompat_Spinner_Underlined = 2131689662;
// aapt resource value: 0x7F0F00BF
public const int Base_Widget_AppCompat_TextView = 2131689663;
// aapt resource value: 0x7F0F00C0
public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131689664;
// aapt resource value: 0x7F0F00C1
public const int Base_Widget_AppCompat_Toolbar = 2131689665;
// aapt resource value: 0x7F0F00C2
public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131689666;
// aapt resource value: 0x7F0F00C3
public const int Base_Widget_Design_TabLayout = 2131689667;
// aapt resource value: 0x7F0F00C4
public const int Base_Widget_MaterialComponents_Chip = 2131689668;
// aapt resource value: 0x7F0F00C5
public const int Base_Widget_MaterialComponents_TextInputEditText = 2131689669;
// aapt resource value: 0x7F0F00C6
public const int Base_Widget_MaterialComponents_TextInputLayout = 2131689670;
// aapt resource value: 0x7F0F00C7
public const int CardView = 2131689671;
// aapt resource value: 0x7F0F00C8
public const int CardView_Dark = 2131689672;
// aapt resource value: 0x7F0F00C9
public const int CardView_Light = 2131689673;
// aapt resource value: 0x7F0F00CA
public const int Platform_AppCompat = 2131689674;
// aapt resource value: 0x7F0F00CB
public const int Platform_AppCompat_Light = 2131689675;
// aapt resource value: 0x7F0F00CC
public const int Platform_MaterialComponents = 2131689676;
// aapt resource value: 0x7F0F00CD
public const int Platform_MaterialComponents_Dialog = 2131689677;
// aapt resource value: 0x7F0F00CE
public const int Platform_MaterialComponents_Light = 2131689678;
// aapt resource value: 0x7F0F00CF
public const int Platform_MaterialComponents_Light_Dialog = 2131689679;
// aapt resource value: 0x7F0F00D0
public const int Platform_ThemeOverlay_AppCompat = 2131689680;
// aapt resource value: 0x7F0F00D1
public const int Platform_ThemeOverlay_AppCompat_Dark = 2131689681;
// aapt resource value: 0x7F0F00D2
public const int Platform_ThemeOverlay_AppCompat_Light = 2131689682;
// aapt resource value: 0x7F0F00D3
public const int Platform_V21_AppCompat = 2131689683;
// aapt resource value: 0x7F0F00D4
public const int Platform_V21_AppCompat_Light = 2131689684;
// aapt resource value: 0x7F0F00D5
public const int Platform_V25_AppCompat = 2131689685;
// aapt resource value: 0x7F0F00D6
public const int Platform_V25_AppCompat_Light = 2131689686;
// aapt resource value: 0x7F0F00D7
public const int Platform_Widget_AppCompat_Spinner = 2131689687;
// aapt resource value: 0x7F0F00D8
public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131689688;
// aapt resource value: 0x7F0F00D9
public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131689689;
// aapt resource value: 0x7F0F00DA
public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131689690;
// aapt resource value: 0x7F0F00DB
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131689691;
// aapt resource value: 0x7F0F00DC
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131689692;
// aapt resource value: 0x7F0F00DD
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Shortcut = 2131689693;
// aapt resource value: 0x7F0F00DE
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_SubmenuArrow = 2131689694;
// aapt resource value: 0x7F0F00DF
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131689695;
// aapt resource value: 0x7F0F00E0
public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Title = 2131689696;
// aapt resource value: 0x7F0F00E6
public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131689702;
// aapt resource value: 0x7F0F00E1
public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131689697;
// aapt resource value: 0x7F0F00E2
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131689698;
// aapt resource value: 0x7F0F00E3
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131689699;
// aapt resource value: 0x7F0F00E4
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131689700;
// aapt resource value: 0x7F0F00E5
public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131689701;
// aapt resource value: 0x7F0F00E7
public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131689703;
// aapt resource value: 0x7F0F00E8
public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131689704;
// aapt resource value: 0x7F0F00E9
public const int TextAppearance_AppCompat = 2131689705;
// aapt resource value: 0x7F0F00EA
public const int TextAppearance_AppCompat_Body1 = 2131689706;
// aapt resource value: 0x7F0F00EB
public const int TextAppearance_AppCompat_Body2 = 2131689707;
// aapt resource value: 0x7F0F00EC
public const int TextAppearance_AppCompat_Button = 2131689708;
// aapt resource value: 0x7F0F00ED
public const int TextAppearance_AppCompat_Caption = 2131689709;
// aapt resource value: 0x7F0F00EE
public const int TextAppearance_AppCompat_Display1 = 2131689710;
// aapt resource value: 0x7F0F00EF
public const int TextAppearance_AppCompat_Display2 = 2131689711;
// aapt resource value: 0x7F0F00F0
public const int TextAppearance_AppCompat_Display3 = 2131689712;
// aapt resource value: 0x7F0F00F1
public const int TextAppearance_AppCompat_Display4 = 2131689713;
// aapt resource value: 0x7F0F00F2
public const int TextAppearance_AppCompat_Headline = 2131689714;
// aapt resource value: 0x7F0F00F3
public const int TextAppearance_AppCompat_Inverse = 2131689715;
// aapt resource value: 0x7F0F00F4
public const int TextAppearance_AppCompat_Large = 2131689716;
// aapt resource value: 0x7F0F00F5
public const int TextAppearance_AppCompat_Large_Inverse = 2131689717;
// aapt resource value: 0x7F0F00F6
public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131689718;
// aapt resource value: 0x7F0F00F7
public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131689719;
// aapt resource value: 0x7F0F00F8
public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131689720;
// aapt resource value: 0x7F0F00F9
public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131689721;
// aapt resource value: 0x7F0F00FA
public const int TextAppearance_AppCompat_Medium = 2131689722;
// aapt resource value: 0x7F0F00FB
public const int TextAppearance_AppCompat_Medium_Inverse = 2131689723;
// aapt resource value: 0x7F0F00FC
public const int TextAppearance_AppCompat_Menu = 2131689724;
// aapt resource value: 0x7F0F00FD
public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131689725;
// aapt resource value: 0x7F0F00FE
public const int TextAppearance_AppCompat_SearchResult_Title = 2131689726;
// aapt resource value: 0x7F0F00FF
public const int TextAppearance_AppCompat_Small = 2131689727;
// aapt resource value: 0x7F0F0100
public const int TextAppearance_AppCompat_Small_Inverse = 2131689728;
// aapt resource value: 0x7F0F0101
public const int TextAppearance_AppCompat_Subhead = 2131689729;
// aapt resource value: 0x7F0F0102
public const int TextAppearance_AppCompat_Subhead_Inverse = 2131689730;
// aapt resource value: 0x7F0F0103
public const int TextAppearance_AppCompat_Title = 2131689731;
// aapt resource value: 0x7F0F0104
public const int TextAppearance_AppCompat_Title_Inverse = 2131689732;
// aapt resource value: 0x7F0F0105
public const int TextAppearance_AppCompat_Tooltip = 2131689733;
// aapt resource value: 0x7F0F0106
public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131689734;
// aapt resource value: 0x7F0F0107
public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131689735;
// aapt resource value: 0x7F0F0108
public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131689736;
// aapt resource value: 0x7F0F0109
public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131689737;
// aapt resource value: 0x7F0F010A
public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131689738;
// aapt resource value: 0x7F0F010B
public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131689739;
// aapt resource value: 0x7F0F010C
public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131689740;
// aapt resource value: 0x7F0F010D
public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131689741;
// aapt resource value: 0x7F0F010E
public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131689742;
// aapt resource value: 0x7F0F010F
public const int TextAppearance_AppCompat_Widget_Button = 2131689743;
// aapt resource value: 0x7F0F0110
public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131689744;
// aapt resource value: 0x7F0F0111
public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131689745;
// aapt resource value: 0x7F0F0112
public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131689746;
// aapt resource value: 0x7F0F0113
public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131689747;
// aapt resource value: 0x7F0F0114
public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131689748;
// aapt resource value: 0x7F0F0115
public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131689749;
// aapt resource value: 0x7F0F0116
public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131689750;
// aapt resource value: 0x7F0F0117
public const int TextAppearance_AppCompat_Widget_Switch = 2131689751;
// aapt resource value: 0x7F0F0118
public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131689752;
// aapt resource value: 0x7F0F0119
public const int TextAppearance_Compat_Notification = 2131689753;
// aapt resource value: 0x7F0F011A
public const int TextAppearance_Compat_Notification_Info = 2131689754;
// aapt resource value: 0x7F0F011B
public const int TextAppearance_Compat_Notification_Line2 = 2131689755;
// aapt resource value: 0x7F0F011C
public const int TextAppearance_Compat_Notification_Time = 2131689756;
// aapt resource value: 0x7F0F011D
public const int TextAppearance_Compat_Notification_Title = 2131689757;
// aapt resource value: 0x7F0F011E
public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131689758;
// aapt resource value: 0x7F0F011F
public const int TextAppearance_Design_Counter = 2131689759;
// aapt resource value: 0x7F0F0120
public const int TextAppearance_Design_Counter_Overflow = 2131689760;
// aapt resource value: 0x7F0F0121
public const int TextAppearance_Design_Error = 2131689761;
// aapt resource value: 0x7F0F0122
public const int TextAppearance_Design_HelperText = 2131689762;
// aapt resource value: 0x7F0F0123
public const int TextAppearance_Design_Hint = 2131689763;
// aapt resource value: 0x7F0F0124
public const int TextAppearance_Design_Snackbar_Message = 2131689764;
// aapt resource value: 0x7F0F0125
public const int TextAppearance_Design_Tab = 2131689765;
// aapt resource value: 0x7F0F0126
public const int TextAppearance_MaterialComponents_Body1 = 2131689766;
// aapt resource value: 0x7F0F0127
public const int TextAppearance_MaterialComponents_Body2 = 2131689767;
// aapt resource value: 0x7F0F0128
public const int TextAppearance_MaterialComponents_Button = 2131689768;
// aapt resource value: 0x7F0F0129
public const int TextAppearance_MaterialComponents_Caption = 2131689769;
// aapt resource value: 0x7F0F012A
public const int TextAppearance_MaterialComponents_Chip = 2131689770;
// aapt resource value: 0x7F0F012B
public const int TextAppearance_MaterialComponents_Headline1 = 2131689771;
// aapt resource value: 0x7F0F012C
public const int TextAppearance_MaterialComponents_Headline2 = 2131689772;
// aapt resource value: 0x7F0F012D
public const int TextAppearance_MaterialComponents_Headline3 = 2131689773;
// aapt resource value: 0x7F0F012E
public const int TextAppearance_MaterialComponents_Headline4 = 2131689774;
// aapt resource value: 0x7F0F012F
public const int TextAppearance_MaterialComponents_Headline5 = 2131689775;
// aapt resource value: 0x7F0F0130
public const int TextAppearance_MaterialComponents_Headline6 = 2131689776;
// aapt resource value: 0x7F0F0131
public const int TextAppearance_MaterialComponents_Overline = 2131689777;
// aapt resource value: 0x7F0F0132
public const int TextAppearance_MaterialComponents_Subtitle1 = 2131689778;
// aapt resource value: 0x7F0F0133
public const int TextAppearance_MaterialComponents_Subtitle2 = 2131689779;
// aapt resource value: 0x7F0F0134
public const int TextAppearance_MaterialComponents_Tab = 2131689780;
// aapt resource value: 0x7F0F0135
public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131689781;
// aapt resource value: 0x7F0F0136
public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131689782;
// aapt resource value: 0x7F0F0137
public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131689783;
// aapt resource value: 0x7F0F0169
public const int ThemeOverlay_AppCompat = 2131689833;
// aapt resource value: 0x7F0F016A
public const int ThemeOverlay_AppCompat_ActionBar = 2131689834;
// aapt resource value: 0x7F0F016B
public const int ThemeOverlay_AppCompat_Dark = 2131689835;
// aapt resource value: 0x7F0F016C
public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131689836;
// aapt resource value: 0x7F0F016D
public const int ThemeOverlay_AppCompat_DayNight = 2131689837;
// aapt resource value: 0x7F0F016E
public const int ThemeOverlay_AppCompat_DayNight_ActionBar = 2131689838;
// aapt resource value: 0x7F0F016F
public const int ThemeOverlay_AppCompat_Dialog = 2131689839;
// aapt resource value: 0x7F0F0170
public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131689840;
// aapt resource value: 0x7F0F0171
public const int ThemeOverlay_AppCompat_Light = 2131689841;
// aapt resource value: 0x7F0F0172
public const int ThemeOverlay_MaterialComponents = 2131689842;
// aapt resource value: 0x7F0F0173
public const int ThemeOverlay_MaterialComponents_ActionBar = 2131689843;
// aapt resource value: 0x7F0F0174
public const int ThemeOverlay_MaterialComponents_Dark = 2131689844;
// aapt resource value: 0x7F0F0175
public const int ThemeOverlay_MaterialComponents_Dark_ActionBar = 2131689845;
// aapt resource value: 0x7F0F0176
public const int ThemeOverlay_MaterialComponents_Dialog = 2131689846;
// aapt resource value: 0x7F0F0177
public const int ThemeOverlay_MaterialComponents_Dialog_Alert = 2131689847;
// aapt resource value: 0x7F0F0178
public const int ThemeOverlay_MaterialComponents_Light = 2131689848;
// aapt resource value: 0x7F0F0179
public const int ThemeOverlay_MaterialComponents_TextInputEditText = 2131689849;
// aapt resource value: 0x7F0F017A
public const int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox = 2131689850;
// aapt resource value: 0x7F0F017B
public const int ThemeOverlay_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131689851;
// aapt resource value: 0x7F0F017C
public const int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox = 2131689852;
// aapt resource value: 0x7F0F017D
public const int ThemeOverlay_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131689853;
// aapt resource value: 0x7F0F0138
public const int Theme_AppCompat = 2131689784;
// aapt resource value: 0x7F0F0139
public const int Theme_AppCompat_CompactMenu = 2131689785;
// aapt resource value: 0x7F0F013A
public const int Theme_AppCompat_DayNight = 2131689786;
// aapt resource value: 0x7F0F013B
public const int Theme_AppCompat_DayNight_DarkActionBar = 2131689787;
// aapt resource value: 0x7F0F013C
public const int Theme_AppCompat_DayNight_Dialog = 2131689788;
// aapt resource value: 0x7F0F013F
public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131689791;
// aapt resource value: 0x7F0F013D
public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131689789;
// aapt resource value: 0x7F0F013E
public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131689790;
// aapt resource value: 0x7F0F0140
public const int Theme_AppCompat_DayNight_NoActionBar = 2131689792;
// aapt resource value: 0x7F0F0141
public const int Theme_AppCompat_Dialog = 2131689793;
// aapt resource value: 0x7F0F0144
public const int Theme_AppCompat_DialogWhenLarge = 2131689796;
// aapt resource value: 0x7F0F0142
public const int Theme_AppCompat_Dialog_Alert = 2131689794;
// aapt resource value: 0x7F0F0143
public const int Theme_AppCompat_Dialog_MinWidth = 2131689795;
// aapt resource value: 0x7F0F0145
public const int Theme_AppCompat_Empty = 2131689797;
// aapt resource value: 0x7F0F0146
public const int Theme_AppCompat_Light = 2131689798;
// aapt resource value: 0x7F0F0147
public const int Theme_AppCompat_Light_DarkActionBar = 2131689799;
// aapt resource value: 0x7F0F0148
public const int Theme_AppCompat_Light_Dialog = 2131689800;
// aapt resource value: 0x7F0F014B
public const int Theme_AppCompat_Light_DialogWhenLarge = 2131689803;
// aapt resource value: 0x7F0F0149
public const int Theme_AppCompat_Light_Dialog_Alert = 2131689801;
// aapt resource value: 0x7F0F014A
public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131689802;
// aapt resource value: 0x7F0F014C
public const int Theme_AppCompat_Light_NoActionBar = 2131689804;
// aapt resource value: 0x7F0F014D
public const int Theme_AppCompat_NoActionBar = 2131689805;
// aapt resource value: 0x7F0F014E
public const int Theme_Design = 2131689806;
// aapt resource value: 0x7F0F014F
public const int Theme_Design_BottomSheetDialog = 2131689807;
// aapt resource value: 0x7F0F0150
public const int Theme_Design_Light = 2131689808;
// aapt resource value: 0x7F0F0151
public const int Theme_Design_Light_BottomSheetDialog = 2131689809;
// aapt resource value: 0x7F0F0152
public const int Theme_Design_Light_NoActionBar = 2131689810;
// aapt resource value: 0x7F0F0153
public const int Theme_Design_NoActionBar = 2131689811;
// aapt resource value: 0x7F0F0154
public const int Theme_MaterialComponents = 2131689812;
// aapt resource value: 0x7F0F0155
public const int Theme_MaterialComponents_BottomSheetDialog = 2131689813;
// aapt resource value: 0x7F0F0156
public const int Theme_MaterialComponents_Bridge = 2131689814;
// aapt resource value: 0x7F0F0157
public const int Theme_MaterialComponents_CompactMenu = 2131689815;
// aapt resource value: 0x7F0F0158
public const int Theme_MaterialComponents_Dialog = 2131689816;
// aapt resource value: 0x7F0F015B
public const int Theme_MaterialComponents_DialogWhenLarge = 2131689819;
// aapt resource value: 0x7F0F0159
public const int Theme_MaterialComponents_Dialog_Alert = 2131689817;
// aapt resource value: 0x7F0F015A
public const int Theme_MaterialComponents_Dialog_MinWidth = 2131689818;
// aapt resource value: 0x7F0F015C
public const int Theme_MaterialComponents_Light = 2131689820;
// aapt resource value: 0x7F0F015D
public const int Theme_MaterialComponents_Light_BottomSheetDialog = 2131689821;
// aapt resource value: 0x7F0F015E
public const int Theme_MaterialComponents_Light_Bridge = 2131689822;
// aapt resource value: 0x7F0F015F
public const int Theme_MaterialComponents_Light_DarkActionBar = 2131689823;
// aapt resource value: 0x7F0F0160
public const int Theme_MaterialComponents_Light_DarkActionBar_Bridge = 2131689824;
// aapt resource value: 0x7F0F0161
public const int Theme_MaterialComponents_Light_Dialog = 2131689825;
// aapt resource value: 0x7F0F0164
public const int Theme_MaterialComponents_Light_DialogWhenLarge = 2131689828;
// aapt resource value: 0x7F0F0162
public const int Theme_MaterialComponents_Light_Dialog_Alert = 2131689826;
// aapt resource value: 0x7F0F0163
public const int Theme_MaterialComponents_Light_Dialog_MinWidth = 2131689827;
// aapt resource value: 0x7F0F0165
public const int Theme_MaterialComponents_Light_NoActionBar = 2131689829;
// aapt resource value: 0x7F0F0166
public const int Theme_MaterialComponents_Light_NoActionBar_Bridge = 2131689830;
// aapt resource value: 0x7F0F0167
public const int Theme_MaterialComponents_NoActionBar = 2131689831;
// aapt resource value: 0x7F0F0168
public const int Theme_MaterialComponents_NoActionBar_Bridge = 2131689832;
// aapt resource value: 0x7F0F017E
public const int Widget_AppCompat_ActionBar = 2131689854;
// aapt resource value: 0x7F0F017F
public const int Widget_AppCompat_ActionBar_Solid = 2131689855;
// aapt resource value: 0x7F0F0180
public const int Widget_AppCompat_ActionBar_TabBar = 2131689856;
// aapt resource value: 0x7F0F0181
public const int Widget_AppCompat_ActionBar_TabText = 2131689857;
// aapt resource value: 0x7F0F0182
public const int Widget_AppCompat_ActionBar_TabView = 2131689858;
// aapt resource value: 0x7F0F0183
public const int Widget_AppCompat_ActionButton = 2131689859;
// aapt resource value: 0x7F0F0184
public const int Widget_AppCompat_ActionButton_CloseMode = 2131689860;
// aapt resource value: 0x7F0F0185
public const int Widget_AppCompat_ActionButton_Overflow = 2131689861;
// aapt resource value: 0x7F0F0186
public const int Widget_AppCompat_ActionMode = 2131689862;
// aapt resource value: 0x7F0F0187
public const int Widget_AppCompat_ActivityChooserView = 2131689863;
// aapt resource value: 0x7F0F0188
public const int Widget_AppCompat_AutoCompleteTextView = 2131689864;
// aapt resource value: 0x7F0F0189
public const int Widget_AppCompat_Button = 2131689865;
// aapt resource value: 0x7F0F018F
public const int Widget_AppCompat_ButtonBar = 2131689871;
// aapt resource value: 0x7F0F0190
public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131689872;
// aapt resource value: 0x7F0F018A
public const int Widget_AppCompat_Button_Borderless = 2131689866;
// aapt resource value: 0x7F0F018B
public const int Widget_AppCompat_Button_Borderless_Colored = 2131689867;
// aapt resource value: 0x7F0F018C
public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131689868;
// aapt resource value: 0x7F0F018D
public const int Widget_AppCompat_Button_Colored = 2131689869;
// aapt resource value: 0x7F0F018E
public const int Widget_AppCompat_Button_Small = 2131689870;
// aapt resource value: 0x7F0F0191
public const int Widget_AppCompat_CompoundButton_CheckBox = 2131689873;
// aapt resource value: 0x7F0F0192
public const int Widget_AppCompat_CompoundButton_RadioButton = 2131689874;
// aapt resource value: 0x7F0F0193
public const int Widget_AppCompat_CompoundButton_Switch = 2131689875;
// aapt resource value: 0x7F0F0194
public const int Widget_AppCompat_DrawerArrowToggle = 2131689876;
// aapt resource value: 0x7F0F0195
public const int Widget_AppCompat_DropDownItem_Spinner = 2131689877;
// aapt resource value: 0x7F0F0196
public const int Widget_AppCompat_EditText = 2131689878;
// aapt resource value: 0x7F0F0197
public const int Widget_AppCompat_ImageButton = 2131689879;
// aapt resource value: 0x7F0F0198
public const int Widget_AppCompat_Light_ActionBar = 2131689880;
// aapt resource value: 0x7F0F0199
public const int Widget_AppCompat_Light_ActionBar_Solid = 2131689881;
// aapt resource value: 0x7F0F019A
public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131689882;
// aapt resource value: 0x7F0F019B
public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131689883;
// aapt resource value: 0x7F0F019C
public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131689884;
// aapt resource value: 0x7F0F019D
public const int Widget_AppCompat_Light_ActionBar_TabText = 2131689885;
// aapt resource value: 0x7F0F019E
public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131689886;
// aapt resource value: 0x7F0F019F
public const int Widget_AppCompat_Light_ActionBar_TabView = 2131689887;
// aapt resource value: 0x7F0F01A0
public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131689888;
// aapt resource value: 0x7F0F01A1
public const int Widget_AppCompat_Light_ActionButton = 2131689889;
// aapt resource value: 0x7F0F01A2
public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131689890;
// aapt resource value: 0x7F0F01A3
public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131689891;
// aapt resource value: 0x7F0F01A4
public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131689892;
// aapt resource value: 0x7F0F01A5
public const int Widget_AppCompat_Light_ActivityChooserView = 2131689893;
// aapt resource value: 0x7F0F01A6
public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131689894;
// aapt resource value: 0x7F0F01A7
public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131689895;
// aapt resource value: 0x7F0F01A8
public const int Widget_AppCompat_Light_ListPopupWindow = 2131689896;
// aapt resource value: 0x7F0F01A9
public const int Widget_AppCompat_Light_ListView_DropDown = 2131689897;
// aapt resource value: 0x7F0F01AA
public const int Widget_AppCompat_Light_PopupMenu = 2131689898;
// aapt resource value: 0x7F0F01AB
public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131689899;
// aapt resource value: 0x7F0F01AC
public const int Widget_AppCompat_Light_SearchView = 2131689900;
// aapt resource value: 0x7F0F01AD
public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131689901;
// aapt resource value: 0x7F0F01AE
public const int Widget_AppCompat_ListMenuView = 2131689902;
// aapt resource value: 0x7F0F01AF
public const int Widget_AppCompat_ListPopupWindow = 2131689903;
// aapt resource value: 0x7F0F01B0
public const int Widget_AppCompat_ListView = 2131689904;
// aapt resource value: 0x7F0F01B1
public const int Widget_AppCompat_ListView_DropDown = 2131689905;
// aapt resource value: 0x7F0F01B2
public const int Widget_AppCompat_ListView_Menu = 2131689906;
// aapt resource value: 0x7F0F01B3
public const int Widget_AppCompat_PopupMenu = 2131689907;
// aapt resource value: 0x7F0F01B4
public const int Widget_AppCompat_PopupMenu_Overflow = 2131689908;
// aapt resource value: 0x7F0F01B5
public const int Widget_AppCompat_PopupWindow = 2131689909;
// aapt resource value: 0x7F0F01B6
public const int Widget_AppCompat_ProgressBar = 2131689910;
// aapt resource value: 0x7F0F01B7
public const int Widget_AppCompat_ProgressBar_Horizontal = 2131689911;
// aapt resource value: 0x7F0F01B8
public const int Widget_AppCompat_RatingBar = 2131689912;
// aapt resource value: 0x7F0F01B9
public const int Widget_AppCompat_RatingBar_Indicator = 2131689913;
// aapt resource value: 0x7F0F01BA
public const int Widget_AppCompat_RatingBar_Small = 2131689914;
// aapt resource value: 0x7F0F01BB
public const int Widget_AppCompat_SearchView = 2131689915;
// aapt resource value: 0x7F0F01BC
public const int Widget_AppCompat_SearchView_ActionBar = 2131689916;
// aapt resource value: 0x7F0F01BD
public const int Widget_AppCompat_SeekBar = 2131689917;
// aapt resource value: 0x7F0F01BE
public const int Widget_AppCompat_SeekBar_Discrete = 2131689918;
// aapt resource value: 0x7F0F01BF
public const int Widget_AppCompat_Spinner = 2131689919;
// aapt resource value: 0x7F0F01C0
public const int Widget_AppCompat_Spinner_DropDown = 2131689920;
// aapt resource value: 0x7F0F01C1
public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131689921;
// aapt resource value: 0x7F0F01C2
public const int Widget_AppCompat_Spinner_Underlined = 2131689922;
// aapt resource value: 0x7F0F01C3
public const int Widget_AppCompat_TextView = 2131689923;
// aapt resource value: 0x7F0F01C4
public const int Widget_AppCompat_TextView_SpinnerItem = 2131689924;
// aapt resource value: 0x7F0F01C5
public const int Widget_AppCompat_Toolbar = 2131689925;
// aapt resource value: 0x7F0F01C6
public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131689926;
// aapt resource value: 0x7F0F01C7
public const int Widget_Compat_NotificationActionContainer = 2131689927;
// aapt resource value: 0x7F0F01C8
public const int Widget_Compat_NotificationActionText = 2131689928;
// aapt resource value: 0x7F0F01C9
public const int Widget_Design_AppBarLayout = 2131689929;
// aapt resource value: 0x7F0F01CA
public const int Widget_Design_BottomNavigationView = 2131689930;
// aapt resource value: 0x7F0F01CB
public const int Widget_Design_BottomSheet_Modal = 2131689931;
// aapt resource value: 0x7F0F01CC
public const int Widget_Design_CollapsingToolbar = 2131689932;
// aapt resource value: 0x7F0F01CD
public const int Widget_Design_FloatingActionButton = 2131689933;
// aapt resource value: 0x7F0F01CE
public const int Widget_Design_NavigationView = 2131689934;
// aapt resource value: 0x7F0F01CF
public const int Widget_Design_ScrimInsetsFrameLayout = 2131689935;
// aapt resource value: 0x7F0F01D0
public const int Widget_Design_Snackbar = 2131689936;
// aapt resource value: 0x7F0F01D1
public const int Widget_Design_TabLayout = 2131689937;
// aapt resource value: 0x7F0F01D2
public const int Widget_Design_TextInputLayout = 2131689938;
// aapt resource value: 0x7F0F01D3
public const int Widget_MaterialComponents_BottomAppBar = 2131689939;
// aapt resource value: 0x7F0F01D4
public const int Widget_MaterialComponents_BottomAppBar_Colored = 2131689940;
// aapt resource value: 0x7F0F01D5
public const int Widget_MaterialComponents_BottomNavigationView = 2131689941;
// aapt resource value: 0x7F0F01D6
public const int Widget_MaterialComponents_BottomNavigationView_Colored = 2131689942;
// aapt resource value: 0x7F0F01D7
public const int Widget_MaterialComponents_BottomSheet_Modal = 2131689943;
// aapt resource value: 0x7F0F01D8
public const int Widget_MaterialComponents_Button = 2131689944;
// aapt resource value: 0x7F0F01D9
public const int Widget_MaterialComponents_Button_Icon = 2131689945;
// aapt resource value: 0x7F0F01DA
public const int Widget_MaterialComponents_Button_OutlinedButton = 2131689946;
// aapt resource value: 0x7F0F01DB
public const int Widget_MaterialComponents_Button_OutlinedButton_Icon = 2131689947;
// aapt resource value: 0x7F0F01DC
public const int Widget_MaterialComponents_Button_TextButton = 2131689948;
// aapt resource value: 0x7F0F01DD
public const int Widget_MaterialComponents_Button_TextButton_Dialog = 2131689949;
// aapt resource value: 0x7F0F01DE
public const int Widget_MaterialComponents_Button_TextButton_Dialog_Icon = 2131689950;
// aapt resource value: 0x7F0F01DF
public const int Widget_MaterialComponents_Button_TextButton_Icon = 2131689951;
// aapt resource value: 0x7F0F01E0
public const int Widget_MaterialComponents_Button_UnelevatedButton = 2131689952;
// aapt resource value: 0x7F0F01E1
public const int Widget_MaterialComponents_Button_UnelevatedButton_Icon = 2131689953;
// aapt resource value: 0x7F0F01E2
public const int Widget_MaterialComponents_CardView = 2131689954;
// aapt resource value: 0x7F0F01E7
public const int Widget_MaterialComponents_ChipGroup = 2131689959;
// aapt resource value: 0x7F0F01E3
public const int Widget_MaterialComponents_Chip_Action = 2131689955;
// aapt resource value: 0x7F0F01E4
public const int Widget_MaterialComponents_Chip_Choice = 2131689956;
// aapt resource value: 0x7F0F01E5
public const int Widget_MaterialComponents_Chip_Entry = 2131689957;
// aapt resource value: 0x7F0F01E6
public const int Widget_MaterialComponents_Chip_Filter = 2131689958;
// aapt resource value: 0x7F0F01E8
public const int Widget_MaterialComponents_FloatingActionButton = 2131689960;
// aapt resource value: 0x7F0F01E9
public const int Widget_MaterialComponents_NavigationView = 2131689961;
// aapt resource value: 0x7F0F01EA
public const int Widget_MaterialComponents_Snackbar = 2131689962;
// aapt resource value: 0x7F0F01EB
public const int Widget_MaterialComponents_Snackbar_FullWidth = 2131689963;
// aapt resource value: 0x7F0F01EC
public const int Widget_MaterialComponents_TabLayout = 2131689964;
// aapt resource value: 0x7F0F01ED
public const int Widget_MaterialComponents_TabLayout_Colored = 2131689965;
// aapt resource value: 0x7F0F01EE
public const int Widget_MaterialComponents_TextInputEditText_FilledBox = 2131689966;
// aapt resource value: 0x7F0F01EF
public const int Widget_MaterialComponents_TextInputEditText_FilledBox_Dense = 2131689967;
// aapt resource value: 0x7F0F01F0
public const int Widget_MaterialComponents_TextInputEditText_OutlinedBox = 2131689968;
// aapt resource value: 0x7F0F01F1
public const int Widget_MaterialComponents_TextInputEditText_OutlinedBox_Dense = 2131689969;
// aapt resource value: 0x7F0F01F2
public const int Widget_MaterialComponents_TextInputLayout_FilledBox = 2131689970;
// aapt resource value: 0x7F0F01F3
public const int Widget_MaterialComponents_TextInputLayout_FilledBox_Dense = 2131689971;
// aapt resource value: 0x7F0F01F4
public const int Widget_MaterialComponents_TextInputLayout_OutlinedBox = 2131689972;
// aapt resource value: 0x7F0F01F5
public const int Widget_MaterialComponents_TextInputLayout_OutlinedBox_Dense = 2131689973;
// aapt resource value: 0x7F0F01F6
public const int Widget_MaterialComponents_Toolbar = 2131689974;
// aapt resource value: 0x7F0F01F7
public const int Widget_Support_CoordinatorLayout = 2131689975;
static Style()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Style()
{
}
}
public partial class Styleable
{
// aapt resource value: { 0x7F030031,0x7F030032,0x7F030033,0x7F030092,0x7F030093,0x7F030094,0x7F030095,0x7F030096,0x7F030097,0x7F0300A5,0x7F0300AA,0x7F0300AB,0x7F0300BF,0x7F0300E9,0x7F0300EE,0x7F0300F3,0x7F0300F4,0x7F0300F6,0x7F030100,0x7F03010A,0x7F030131,0x7F03013D,0x7F03014E,0x7F030152,0x7F030153,0x7F030182,0x7F030185,0x7F0301CB,0x7F0301D5 }
public static int[] ActionBar = new int[] {
2130903089,
2130903090,
2130903091,
2130903186,
2130903187,
2130903188,
2130903189,
2130903190,
2130903191,
2130903205,
2130903210,
2130903211,
2130903231,
2130903273,
2130903278,
2130903283,
2130903284,
2130903286,
2130903296,
2130903306,
2130903345,
2130903357,
2130903374,
2130903378,
2130903379,
2130903426,
2130903429,
2130903499,
2130903509};
// aapt resource value: { 0x10100B3 }
public static int[] ActionBarLayout = new int[] {
16842931};
// aapt resource value: 0
public const int ActionBarLayout_android_layout_gravity = 0;
// aapt resource value: 0
public const int ActionBar_background = 0;
// aapt resource value: 1
public const int ActionBar_backgroundSplit = 1;
// aapt resource value: 2
public const int ActionBar_backgroundStacked = 2;
// aapt resource value: 3
public const int ActionBar_contentInsetEnd = 3;
// aapt resource value: 4
public const int ActionBar_contentInsetEndWithActions = 4;
// aapt resource value: 5
public const int ActionBar_contentInsetLeft = 5;
// aapt resource value: 6
public const int ActionBar_contentInsetRight = 6;
// aapt resource value: 7
public const int ActionBar_contentInsetStart = 7;
// aapt resource value: 8
public const int ActionBar_contentInsetStartWithNavigation = 8;
// aapt resource value: 9
public const int ActionBar_customNavigationLayout = 9;
// aapt resource value: 10
public const int ActionBar_displayOptions = 10;
// aapt resource value: 11
public const int ActionBar_divider = 11;
// aapt resource value: 12
public const int ActionBar_elevation = 12;
// aapt resource value: 13
public const int ActionBar_height = 13;
// aapt resource value: 14
public const int ActionBar_hideOnContentScroll = 14;
// aapt resource value: 15
public const int ActionBar_homeAsUpIndicator = 15;
// aapt resource value: 16
public const int ActionBar_homeLayout = 16;
// aapt resource value: 17
public const int ActionBar_icon = 17;
// aapt resource value: 18
public const int ActionBar_indeterminateProgressStyle = 18;
// aapt resource value: 19
public const int ActionBar_itemPadding = 19;
// aapt resource value: 20
public const int ActionBar_logo = 20;
// aapt resource value: 21
public const int ActionBar_navigationMode = 21;
// aapt resource value: 22
public const int ActionBar_popupTheme = 22;
// aapt resource value: 23
public const int ActionBar_progressBarPadding = 23;
// aapt resource value: 24
public const int ActionBar_progressBarStyle = 24;
// aapt resource value: 25
public const int ActionBar_subtitle = 25;
// aapt resource value: 26
public const int ActionBar_subtitleTextStyle = 26;
// aapt resource value: 27
public const int ActionBar_title = 27;
// aapt resource value: 28
public const int ActionBar_titleTextStyle = 28;
// aapt resource value: { 0x101013F }
public static int[] ActionMenuItemView = new int[] {
16843071};
// aapt resource value: 0
public const int ActionMenuItemView_android_minWidth = 0;
// aapt resource value: { 0xFFFFFFFF }
public static int[] ActionMenuView = new int[] {
-1};
// aapt resource value: { 0x7F030031,0x7F030032,0x7F03007F,0x7F0300E9,0x7F030185,0x7F0301D5 }
public static int[] ActionMode = new int[] {
2130903089,
2130903090,
2130903167,
2130903273,
2130903429,
2130903509};
// aapt resource value: 0
public const int ActionMode_background = 0;
// aapt resource value: 1
public const int ActionMode_backgroundSplit = 1;
// aapt resource value: 2
public const int ActionMode_closeItemLayout = 2;
// aapt resource value: 3
public const int ActionMode_height = 3;
// aapt resource value: 4
public const int ActionMode_subtitleTextStyle = 4;
// aapt resource value: 5
public const int ActionMode_titleTextStyle = 5;
// aapt resource value: { 0x7F0300C4,0x7F030101 }
public static int[] ActivityChooserView = new int[] {
2130903236,
2130903297};
// aapt resource value: 0
public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 0;
// aapt resource value: 1
public const int ActivityChooserView_initialActivityCount = 1;
// aapt resource value: { 0x10100F2,0x7F030053,0x7F030054,0x7F030126,0x7F030127,0x7F03013A,0x7F03016A,0x7F03016B }
public static int[] AlertDialog = new int[] {
16842994,
2130903123,
2130903124,
2130903334,
2130903335,
2130903354,
2130903402,
2130903403};
// aapt resource value: 0
public const int AlertDialog_android_layout = 0;
// aapt resource value: 1
public const int AlertDialog_buttonIconDimen = 1;
// aapt resource value: 2
public const int AlertDialog_buttonPanelSideLayout = 2;
// aapt resource value: 3
public const int AlertDialog_listItemLayout = 3;
// aapt resource value: 4
public const int AlertDialog_listLayout = 4;
// aapt resource value: 5
public const int AlertDialog_multiChoiceItemLayout = 5;
// aapt resource value: 6
public const int AlertDialog_showTitle = 6;
// aapt resource value: 7
public const int AlertDialog_singleChoiceItemLayout = 7;
// aapt resource value: { 0x101011C,0x1010194,0x1010195,0x1010196,0x101030C,0x101030D }
public static int[] AnimatedStateListDrawableCompat = new int[] {
16843036,
16843156,
16843157,
16843158,
16843532,
16843533};
// aapt resource value: 3
public const int AnimatedStateListDrawableCompat_android_constantSize = 3;
// aapt resource value: 0
public const int AnimatedStateListDrawableCompat_android_dither = 0;
// aapt resource value: 4
public const int AnimatedStateListDrawableCompat_android_enterFadeDuration = 4;
// aapt resource value: 5
public const int AnimatedStateListDrawableCompat_android_exitFadeDuration = 5;
// aapt resource value: 2
public const int AnimatedStateListDrawableCompat_android_variablePadding = 2;
// aapt resource value: 1
public const int AnimatedStateListDrawableCompat_android_visible = 1;
// aapt resource value: { 0x10100D0,0x1010199 }
public static int[] AnimatedStateListDrawableItem = new int[] {
16842960,
16843161};
// aapt resource value: 1
public const int AnimatedStateListDrawableItem_android_drawable = 1;
// aapt resource value: 0
public const int AnimatedStateListDrawableItem_android_id = 0;
// aapt resource value: { 0x1010199,0x1010449,0x101044A,0x101044B }
public static int[] AnimatedStateListDrawableTransition = new int[] {
16843161,
16843849,
16843850,
16843851};
// aapt resource value: 0
public const int AnimatedStateListDrawableTransition_android_drawable = 0;
// aapt resource value: 2
public const int AnimatedStateListDrawableTransition_android_fromId = 2;
// aapt resource value: 3
public const int AnimatedStateListDrawableTransition_android_reversible = 3;
// aapt resource value: 1
public const int AnimatedStateListDrawableTransition_android_toId = 1;
// aapt resource value: { 0x10100D4,0x101048F,0x1010540,0x7F0300BF,0x7F0300C5,0x7F03011F }
public static int[] AppBarLayout = new int[] {
16842964,
16843919,
16844096,
2130903231,
2130903237,
2130903327};
// aapt resource value: { 0x7F030178,0x7F030179,0x7F03017A,0x7F03017B }
public static int[] AppBarLayoutStates = new int[] {
2130903416,
2130903417,
2130903418,
2130903419};
// aapt resource value: 0
public const int AppBarLayoutStates_state_collapsed = 0;
// aapt resource value: 1
public const int AppBarLayoutStates_state_collapsible = 1;
// aapt resource value: 2
public const int AppBarLayoutStates_state_liftable = 2;
// aapt resource value: 3
public const int AppBarLayoutStates_state_lifted = 3;
// aapt resource value: 0
public const int AppBarLayout_android_background = 0;
// aapt resource value: 2
public const int AppBarLayout_android_keyboardNavigationCluster = 2;
// aapt resource value: 1
public const int AppBarLayout_android_touchscreenBlocksFocus = 1;
// aapt resource value: 3
public const int AppBarLayout_elevation = 3;
// aapt resource value: 4
public const int AppBarLayout_expanded = 4;
// aapt resource value: { 0x7F03011D,0x7F03011E }
public static int[] AppBarLayout_Layout = new int[] {
2130903325,
2130903326};
// aapt resource value: 0
public const int AppBarLayout_Layout_layout_scrollFlags = 0;
// aapt resource value: 1
public const int AppBarLayout_Layout_layout_scrollInterpolator = 1;
// aapt resource value: 5
public const int AppBarLayout_liftOnScroll = 5;
// aapt resource value: { 0x1010119,0x7F030175,0x7F0301C9,0x7F0301CA }
public static int[] AppCompatImageView = new int[] {
16843033,
2130903413,
2130903497,
2130903498};
// aapt resource value: 0
public const int AppCompatImageView_android_src = 0;
// aapt resource value: 1
public const int AppCompatImageView_srcCompat = 1;
// aapt resource value: 2
public const int AppCompatImageView_tint = 2;
// aapt resource value: 3
public const int AppCompatImageView_tintMode = 3;
// aapt resource value: { 0x1010142,0x7F0301C6,0x7F0301C7,0x7F0301C8 }
public static int[] AppCompatSeekBar = new int[] {
16843074,
2130903494,
2130903495,
2130903496};
// aapt resource value: 0
public const int AppCompatSeekBar_android_thumb = 0;
// aapt resource value: 1
public const int AppCompatSeekBar_tickMark = 1;
// aapt resource value: 2
public const int AppCompatSeekBar_tickMarkTint = 2;
// aapt resource value: 3
public const int AppCompatSeekBar_tickMarkTintMode = 3;
// aapt resource value: { 0x1010034,0x101016D,0x101016E,0x101016F,0x1010170,0x1010392,0x1010393 }
public static int[] AppCompatTextHelper = new int[] {
16842804,
16843117,
16843118,
16843119,
16843120,
16843666,
16843667};
// aapt resource value: 2
public const int AppCompatTextHelper_android_drawableBottom = 2;
// aapt resource value: 6
public const int AppCompatTextHelper_android_drawableEnd = 6;
// aapt resource value: 3
public const int AppCompatTextHelper_android_drawableLeft = 3;
// aapt resource value: 4
public const int AppCompatTextHelper_android_drawableRight = 4;
// aapt resource value: 5
public const int AppCompatTextHelper_android_drawableStart = 5;
// aapt resource value: 1
public const int AppCompatTextHelper_android_drawableTop = 1;
// aapt resource value: 0
public const int AppCompatTextHelper_android_textAppearance = 0;
// aapt resource value: { 0x1010034,0x7F03002C,0x7F03002D,0x7F03002E,0x7F03002F,0x7F030030,0x7F0300AF,0x7F0300B0,0x7F0300B1,0x7F0300B2,0x7F0300B4,0x7F0300B5,0x7F0300B6,0x7F0300B7,0x7F0300D8,0x7F0300DB,0x7F0300E3,0x7F030112,0x7F030120,0x7F0301A5,0x7F0301BF }
public static int[] AppCompatTextView = new int[] {
16842804,
2130903084,
2130903085,
2130903086,
2130903087,
2130903088,
2130903215,
2130903216,
2130903217,
2130903218,
2130903220,
2130903221,
2130903222,
2130903223,
2130903256,
2130903259,
2130903267,
2130903314,
2130903328,
2130903461,
2130903487};
// aapt resource value: 0
public const int AppCompatTextView_android_textAppearance = 0;
// aapt resource value: 1
public const int AppCompatTextView_autoSizeMaxTextSize = 1;
// aapt resource value: 2
public const int AppCompatTextView_autoSizeMinTextSize = 2;
// aapt resource value: 3
public const int AppCompatTextView_autoSizePresetSizes = 3;
// aapt resource value: 4
public const int AppCompatTextView_autoSizeStepGranularity = 4;
// aapt resource value: 5
public const int AppCompatTextView_autoSizeTextType = 5;
// aapt resource value: 6
public const int AppCompatTextView_drawableBottomCompat = 6;
// aapt resource value: 7
public const int AppCompatTextView_drawableEndCompat = 7;
// aapt resource value: 8
public const int AppCompatTextView_drawableLeftCompat = 8;
// aapt resource value: 9
public const int AppCompatTextView_drawableRightCompat = 9;
// aapt resource value: 10
public const int AppCompatTextView_drawableStartCompat = 10;
// aapt resource value: 11
public const int AppCompatTextView_drawableTint = 11;
// aapt resource value: 12
public const int AppCompatTextView_drawableTintMode = 12;
// aapt resource value: 13
public const int AppCompatTextView_drawableTopCompat = 13;
// aapt resource value: 14
public const int AppCompatTextView_firstBaselineToTopHeight = 14;
// aapt resource value: 15
public const int AppCompatTextView_fontFamily = 15;
// aapt resource value: 16
public const int AppCompatTextView_fontVariationSettings = 16;
// aapt resource value: 17
public const int AppCompatTextView_lastBaselineToBottomHeight = 17;
// aapt resource value: 18
public const int AppCompatTextView_lineHeight = 18;
// aapt resource value: 19
public const int AppCompatTextView_textAllCaps = 19;
// aapt resource value: 20
public const int AppCompatTextView_textLocale = 20;
// aapt resource value: { 0x1010057,0x10100AE,0x7F030000,0x7F030001,0x7F030002,0x7F030003,0x7F030004,0x7F030005,0x7F030006,0x7F030007,0x7F030008,0x7F030009,0x7F03000A,0x7F03000B,0x7F03000C,0x7F03000E,0x7F03000F,0x7F030010,0x7F030011,0x7F030012,0x7F030013,0x7F030014,0x7F030015,0x7F030016,0x7F030017,0x7F030018,0x7F030019,0x7F03001A,0x7F03001B,0x7F03001C,0x7F03001D,0x7F03001E,0x7F030021,0x7F030022,0x7F030023,0x7F030024,0x7F030025,0x7F03002B,0x7F03003E,0x7F03004C,0x7F03004D,0x7F03004E,0x7F03004F,0x7F030050,0x7F030055,0x7F030056,0x7F030060,0x7F030065,0x7F030085,0x7F030086,0x7F030087,0x7F030088,0x7F030089,0x7F03008A,0x7F03008B,0x7F03008C,0x7F03008D,0x7F03008F,0x7F03009E,0x7F0300A7,0x7F0300A8,0x7F0300A9,0x7F0300AC,0x7F0300AE,0x7F0300BA,0x7F0300BB,0x7F0300BC,0x7F0300BD,0x7F0300BE,0x7F0300F3,0x7F0300FF,0x7F030122,0x7F030123,0x7F030124,0x7F030125,0x7F030128,0x7F030129,0x7F03012A,0x7F03012B,0x7F03012C,0x7F03012D,0x7F03012E,0x7F03012F,0x7F030130,0x7F030145,0x7F030146,0x7F030147,0x7F03014D,0x7F03014F,0x7F030156,0x7F030157,0x7F030158,0x7F030159,0x7F030162,0x7F030163,0x7F030164,0x7F030165,0x7F030172,0x7F030173,0x7F030189,0x7F0301B0,0x7F0301B1,0x7F0301B2,0x7F0301B3,0x7F0301B5,0x7F0301B6,0x7F0301B7,0x7F0301B8,0x7F0301BB,0x7F0301BC,0x7F0301D7,0x7F0301D8,0x7F0301D9,0x7F0301DA,0x7F0301E1,0x7F0301E3,0x7F0301E4,0x7F0301E5,0x7F0301E6,0x7F0301E7,0x7F0301E8,0x7F0301E9,0x7F0301EA,0x7F0301EB,0x7F0301EC }
public static int[] AppCompatTheme = new int[] {
16842839,
16842926,
2130903040,
2130903041,
2130903042,
2130903043,
2130903044,
2130903045,
2130903046,
2130903047,
2130903048,
2130903049,
2130903050,
2130903051,
2130903052,
2130903054,
2130903055,
2130903056,
2130903057,
2130903058,
2130903059,
2130903060,
2130903061,
2130903062,
2130903063,
2130903064,
2130903065,
2130903066,
2130903067,
2130903068,
2130903069,
2130903070,
2130903073,
2130903074,
2130903075,
2130903076,
2130903077,
2130903083,
2130903102,
2130903116,
2130903117,
2130903118,
2130903119,
2130903120,
2130903125,
2130903126,
2130903136,
2130903141,
2130903173,
2130903174,
2130903175,
2130903176,
2130903177,
2130903178,
2130903179,
2130903180,
2130903181,
2130903183,
2130903198,
2130903207,
2130903208,
2130903209,
2130903212,
2130903214,
2130903226,
2130903227,
2130903228,
2130903229,
2130903230,
2130903283,
2130903295,
2130903330,
2130903331,
2130903332,
2130903333,
2130903336,
2130903337,
2130903338,
2130903339,
2130903340,
2130903341,
2130903342,
2130903343,
2130903344,
2130903365,
2130903366,
2130903367,
2130903373,
2130903375,
2130903382,
2130903383,
2130903384,
2130903385,
2130903394,
2130903395,
2130903396,
2130903397,
2130903410,
2130903411,
2130903433,
2130903472,
2130903473,
2130903474,
2130903475,
2130903477,
2130903478,
2130903479,
2130903480,
2130903483,
2130903484,
2130903511,
2130903512,
2130903513,
2130903514,
2130903521,
2130903523,
2130903524,
2130903525,
2130903526,
2130903527,
2130903528,
2130903529,
2130903530,
2130903531,
2130903532};
// aapt resource value: 2
public const int AppCompatTheme_actionBarDivider = 2;
// aapt resource value: 3
public const int AppCompatTheme_actionBarItemBackground = 3;
// aapt resource value: 4
public const int AppCompatTheme_actionBarPopupTheme = 4;
// aapt resource value: 5
public const int AppCompatTheme_actionBarSize = 5;
// aapt resource value: 6
public const int AppCompatTheme_actionBarSplitStyle = 6;
// aapt resource value: 7
public const int AppCompatTheme_actionBarStyle = 7;
// aapt resource value: 8
public const int AppCompatTheme_actionBarTabBarStyle = 8;
// aapt resource value: 9
public const int AppCompatTheme_actionBarTabStyle = 9;
// aapt resource value: 10
public const int AppCompatTheme_actionBarTabTextStyle = 10;
// aapt resource value: 11
public const int AppCompatTheme_actionBarTheme = 11;
// aapt resource value: 12
public const int AppCompatTheme_actionBarWidgetTheme = 12;
// aapt resource value: 13
public const int AppCompatTheme_actionButtonStyle = 13;
// aapt resource value: 14
public const int AppCompatTheme_actionDropDownStyle = 14;
// aapt resource value: 15
public const int AppCompatTheme_actionMenuTextAppearance = 15;
// aapt resource value: 16
public const int AppCompatTheme_actionMenuTextColor = 16;
// aapt resource value: 17
public const int AppCompatTheme_actionModeBackground = 17;
// aapt resource value: 18
public const int AppCompatTheme_actionModeCloseButtonStyle = 18;
// aapt resource value: 19
public const int AppCompatTheme_actionModeCloseDrawable = 19;
// aapt resource value: 20
public const int AppCompatTheme_actionModeCopyDrawable = 20;
// aapt resource value: 21
public const int AppCompatTheme_actionModeCutDrawable = 21;
// aapt resource value: 22
public const int AppCompatTheme_actionModeFindDrawable = 22;
// aapt resource value: 23
public const int AppCompatTheme_actionModePasteDrawable = 23;
// aapt resource value: 24
public const int AppCompatTheme_actionModePopupWindowStyle = 24;
// aapt resource value: 25
public const int AppCompatTheme_actionModeSelectAllDrawable = 25;
// aapt resource value: 26
public const int AppCompatTheme_actionModeShareDrawable = 26;
// aapt resource value: 27
public const int AppCompatTheme_actionModeSplitBackground = 27;
// aapt resource value: 28
public const int AppCompatTheme_actionModeStyle = 28;
// aapt resource value: 29
public const int AppCompatTheme_actionModeWebSearchDrawable = 29;
// aapt resource value: 30
public const int AppCompatTheme_actionOverflowButtonStyle = 30;
// aapt resource value: 31
public const int AppCompatTheme_actionOverflowMenuStyle = 31;
// aapt resource value: 32
public const int AppCompatTheme_activityChooserViewStyle = 32;
// aapt resource value: 33
public const int AppCompatTheme_alertDialogButtonGroupStyle = 33;
// aapt resource value: 34
public const int AppCompatTheme_alertDialogCenterButtons = 34;
// aapt resource value: 35
public const int AppCompatTheme_alertDialogStyle = 35;
// aapt resource value: 36
public const int AppCompatTheme_alertDialogTheme = 36;
// aapt resource value: 1
public const int AppCompatTheme_android_windowAnimationStyle = 1;
// aapt resource value: 0
public const int AppCompatTheme_android_windowIsFloating = 0;
// aapt resource value: 37
public const int AppCompatTheme_autoCompleteTextViewStyle = 37;
// aapt resource value: 38
public const int AppCompatTheme_borderlessButtonStyle = 38;
// aapt resource value: 39
public const int AppCompatTheme_buttonBarButtonStyle = 39;
// aapt resource value: 40
public const int AppCompatTheme_buttonBarNegativeButtonStyle = 40;
// aapt resource value: 41
public const int AppCompatTheme_buttonBarNeutralButtonStyle = 41;
// aapt resource value: 42
public const int AppCompatTheme_buttonBarPositiveButtonStyle = 42;
// aapt resource value: 43
public const int AppCompatTheme_buttonBarStyle = 43;
// aapt resource value: 44
public const int AppCompatTheme_buttonStyle = 44;
// aapt resource value: 45
public const int AppCompatTheme_buttonStyleSmall = 45;
// aapt resource value: 46
public const int AppCompatTheme_checkboxStyle = 46;
// aapt resource value: 47
public const int AppCompatTheme_checkedTextViewStyle = 47;
// aapt resource value: 48
public const int AppCompatTheme_colorAccent = 48;
// aapt resource value: 49
public const int AppCompatTheme_colorBackgroundFloating = 49;
// aapt resource value: 50
public const int AppCompatTheme_colorButtonNormal = 50;
// aapt resource value: 51
public const int AppCompatTheme_colorControlActivated = 51;
// aapt resource value: 52
public const int AppCompatTheme_colorControlHighlight = 52;
// aapt resource value: 53
public const int AppCompatTheme_colorControlNormal = 53;
// aapt resource value: 54
public const int AppCompatTheme_colorError = 54;
// aapt resource value: 55
public const int AppCompatTheme_colorPrimary = 55;
// aapt resource value: 56
public const int AppCompatTheme_colorPrimaryDark = 56;
// aapt resource value: 57
public const int AppCompatTheme_colorSwitchThumbNormal = 57;
// aapt resource value: 58
public const int AppCompatTheme_controlBackground = 58;
// aapt resource value: 59
public const int AppCompatTheme_dialogCornerRadius = 59;
// aapt resource value: 60
public const int AppCompatTheme_dialogPreferredPadding = 60;
// aapt resource value: 61
public const int AppCompatTheme_dialogTheme = 61;
// aapt resource value: 62
public const int AppCompatTheme_dividerHorizontal = 62;
// aapt resource value: 63
public const int AppCompatTheme_dividerVertical = 63;
// aapt resource value: 65
public const int AppCompatTheme_dropdownListPreferredItemHeight = 65;
// aapt resource value: 64
public const int AppCompatTheme_dropDownListViewStyle = 64;
// aapt resource value: 66
public const int AppCompatTheme_editTextBackground = 66;
// aapt resource value: 67
public const int AppCompatTheme_editTextColor = 67;
// aapt resource value: 68
public const int AppCompatTheme_editTextStyle = 68;
// aapt resource value: 69
public const int AppCompatTheme_homeAsUpIndicator = 69;
// aapt resource value: 70
public const int AppCompatTheme_imageButtonStyle = 70;
// aapt resource value: 71
public const int AppCompatTheme_listChoiceBackgroundIndicator = 71;
// aapt resource value: 72
public const int AppCompatTheme_listChoiceIndicatorMultipleAnimated = 72;
// aapt resource value: 73
public const int AppCompatTheme_listChoiceIndicatorSingleAnimated = 73;
// aapt resource value: 74
public const int AppCompatTheme_listDividerAlertDialog = 74;
// aapt resource value: 75
public const int AppCompatTheme_listMenuViewStyle = 75;
// aapt resource value: 76
public const int AppCompatTheme_listPopupWindowStyle = 76;
// aapt resource value: 77
public const int AppCompatTheme_listPreferredItemHeight = 77;
// aapt resource value: 78
public const int AppCompatTheme_listPreferredItemHeightLarge = 78;
// aapt resource value: 79
public const int AppCompatTheme_listPreferredItemHeightSmall = 79;
// aapt resource value: 80
public const int AppCompatTheme_listPreferredItemPaddingEnd = 80;
// aapt resource value: 81
public const int AppCompatTheme_listPreferredItemPaddingLeft = 81;
// aapt resource value: 82
public const int AppCompatTheme_listPreferredItemPaddingRight = 82;
// aapt resource value: 83
public const int AppCompatTheme_listPreferredItemPaddingStart = 83;
// aapt resource value: 84
public const int AppCompatTheme_panelBackground = 84;
// aapt resource value: 85
public const int AppCompatTheme_panelMenuListTheme = 85;
// aapt resource value: 86
public const int AppCompatTheme_panelMenuListWidth = 86;
// aapt resource value: 87
public const int AppCompatTheme_popupMenuStyle = 87;
// aapt resource value: 88
public const int AppCompatTheme_popupWindowStyle = 88;
// aapt resource value: 89
public const int AppCompatTheme_radioButtonStyle = 89;
// aapt resource value: 90
public const int AppCompatTheme_ratingBarStyle = 90;
// aapt resource value: 91
public const int AppCompatTheme_ratingBarStyleIndicator = 91;
// aapt resource value: 92
public const int AppCompatTheme_ratingBarStyleSmall = 92;
// aapt resource value: 93
public const int AppCompatTheme_searchViewStyle = 93;
// aapt resource value: 94
public const int AppCompatTheme_seekBarStyle = 94;
// aapt resource value: 95
public const int AppCompatTheme_selectableItemBackground = 95;
// aapt resource value: 96
public const int AppCompatTheme_selectableItemBackgroundBorderless = 96;
// aapt resource value: 97
public const int AppCompatTheme_spinnerDropDownItemStyle = 97;
// aapt resource value: 98
public const int AppCompatTheme_spinnerStyle = 98;
// aapt resource value: 99
public const int AppCompatTheme_switchStyle = 99;
// aapt resource value: 100
public const int AppCompatTheme_textAppearanceLargePopupMenu = 100;
// aapt resource value: 101
public const int AppCompatTheme_textAppearanceListItem = 101;
// aapt resource value: 102
public const int AppCompatTheme_textAppearanceListItemSecondary = 102;
// aapt resource value: 103
public const int AppCompatTheme_textAppearanceListItemSmall = 103;
// aapt resource value: 104
public const int AppCompatTheme_textAppearancePopupMenuHeader = 104;
// aapt resource value: 105
public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 105;
// aapt resource value: 106
public const int AppCompatTheme_textAppearanceSearchResultTitle = 106;
// aapt resource value: 107
public const int AppCompatTheme_textAppearanceSmallPopupMenu = 107;
// aapt resource value: 108
public const int AppCompatTheme_textColorAlertDialogListItem = 108;
// aapt resource value: 109
public const int AppCompatTheme_textColorSearchUrl = 109;
// aapt resource value: 110
public const int AppCompatTheme_toolbarNavigationButtonStyle = 110;
// aapt resource value: 111
public const int AppCompatTheme_toolbarStyle = 111;
// aapt resource value: 112
public const int AppCompatTheme_tooltipForegroundColor = 112;
// aapt resource value: 113
public const int AppCompatTheme_tooltipFrameBackground = 113;
// aapt resource value: 114
public const int AppCompatTheme_viewInflaterClass = 114;
// aapt resource value: 115
public const int AppCompatTheme_windowActionBar = 115;
// aapt resource value: 116
public const int AppCompatTheme_windowActionBarOverlay = 116;
// aapt resource value: 117
public const int AppCompatTheme_windowActionModeOverlay = 117;
// aapt resource value: 118
public const int AppCompatTheme_windowFixedHeightMajor = 118;
// aapt resource value: 119
public const int AppCompatTheme_windowFixedHeightMinor = 119;
// aapt resource value: 120
public const int AppCompatTheme_windowFixedWidthMajor = 120;
// aapt resource value: 121
public const int AppCompatTheme_windowFixedWidthMinor = 121;
// aapt resource value: 122
public const int AppCompatTheme_windowMinWidthMajor = 122;
// aapt resource value: 123
public const int AppCompatTheme_windowMinWidthMinor = 123;
// aapt resource value: 124
public const int AppCompatTheme_windowNoTitle = 124;
// aapt resource value: { 0x7F030034,0x7F0300CD,0x7F0300CE,0x7F0300CF,0x7F0300D0,0x7F0300EF }
public static int[] BottomAppBar = new int[] {
2130903092,
2130903245,
2130903246,
2130903247,
2130903248,
2130903279};
// aapt resource value: 0
public const int BottomAppBar_backgroundTint = 0;
// aapt resource value: 1
public const int BottomAppBar_fabAlignmentMode = 1;
// aapt resource value: 2
public const int BottomAppBar_fabCradleMargin = 2;
// aapt resource value: 3
public const int BottomAppBar_fabCradleRoundedCornerRadius = 3;
// aapt resource value: 4
public const int BottomAppBar_fabCradleVerticalOffset = 4;
// aapt resource value: 5
public const int BottomAppBar_hideOnScroll = 5;
// aapt resource value: { 0x7F0300BF,0x7F030104,0x7F030106,0x7F030108,0x7F030109,0x7F03010D,0x7F03010E,0x7F03010F,0x7F030111,0x7F030139 }
public static int[] BottomNavigationView = new int[] {
2130903231,
2130903300,
2130903302,
2130903304,
2130903305,
2130903309,
2130903310,
2130903311,
2130903313,
2130903353};
// aapt resource value: 0
public const int BottomNavigationView_elevation = 0;
// aapt resource value: 1
public const int BottomNavigationView_itemBackground = 1;
// aapt resource value: 2
public const int BottomNavigationView_itemHorizontalTranslationEnabled = 2;
// aapt resource value: 3
public const int BottomNavigationView_itemIconSize = 3;
// aapt resource value: 4
public const int BottomNavigationView_itemIconTint = 4;
// aapt resource value: 5
public const int BottomNavigationView_itemTextAppearanceActive = 5;
// aapt resource value: 6
public const int BottomNavigationView_itemTextAppearanceInactive = 6;
// aapt resource value: 7
public const int BottomNavigationView_itemTextColor = 7;
// aapt resource value: 8
public const int BottomNavigationView_labelVisibilityMode = 8;
// aapt resource value: 9
public const int BottomNavigationView_menu = 9;
// aapt resource value: { 0x7F030038,0x7F030039,0x7F03003B,0x7F03003C }
public static int[] BottomSheetBehavior_Layout = new int[] {
2130903096,
2130903097,
2130903099,
2130903100};
// aapt resource value: 0
public const int BottomSheetBehavior_Layout_behavior_fitToContents = 0;
// aapt resource value: 1
public const int BottomSheetBehavior_Layout_behavior_hideable = 1;
// aapt resource value: 2
public const int BottomSheetBehavior_Layout_behavior_peekHeight = 2;
// aapt resource value: 3
public const int BottomSheetBehavior_Layout_behavior_skipCollapsed = 3;
// aapt resource value: { 0x7F030026 }
public static int[] ButtonBarLayout = new int[] {
2130903078};
// aapt resource value: 0
public const int ButtonBarLayout_allowStacking = 0;
// aapt resource value: { 0x101013F,0x1010140,0x7F030059,0x7F03005A,0x7F03005B,0x7F03005C,0x7F03005D,0x7F03005E,0x7F030098,0x7F030099,0x7F03009A,0x7F03009B,0x7F03009C }
public static int[] CardView = new int[] {
16843071,
16843072,
2130903129,
2130903130,
2130903131,
2130903132,
2130903133,
2130903134,
2130903192,
2130903193,
2130903194,
2130903195,
2130903196};
// aapt resource value: 1
public const int CardView_android_minHeight = 1;
// aapt resource value: 0
public const int CardView_android_minWidth = 0;
// aapt resource value: 2
public const int CardView_cardBackgroundColor = 2;
// aapt resource value: 3
public const int CardView_cardCornerRadius = 3;
// aapt resource value: 4
public const int CardView_cardElevation = 4;
// aapt resource value: 5
public const int CardView_cardMaxElevation = 5;
// aapt resource value: 6
public const int CardView_cardPreventCornerOverlap = 6;
// aapt resource value: 7
public const int CardView_cardUseCompatPadding = 7;
// aapt resource value: 8
public const int CardView_contentPadding = 8;
// aapt resource value: 9
public const int CardView_contentPaddingBottom = 9;
// aapt resource value: 10
public const int CardView_contentPaddingLeft = 10;
// aapt resource value: 11
public const int CardView_contentPaddingRight = 11;
// aapt resource value: 12
public const int CardView_contentPaddingTop = 12;
// aapt resource value: { 0x1010034,0x10100AB,0x101011F,0x101014F,0x10101E5,0x7F030062,0x7F030063,0x7F030064,0x7F030066,0x7F030067,0x7F030068,0x7F03006A,0x7F03006B,0x7F03006C,0x7F03006D,0x7F03006E,0x7F03006F,0x7F030074,0x7F030075,0x7F030076,0x7F030078,0x7F030079,0x7F03007A,0x7F03007B,0x7F03007C,0x7F03007D,0x7F03007E,0x7F0300ED,0x7F0300F7,0x7F0300FB,0x7F03015C,0x7F030168,0x7F0301BD,0x7F0301C0 }
public static int[] Chip = new int[] {
16842804,
16842923,
16843039,
16843087,
16843237,
2130903138,
2130903139,
2130903140,
2130903142,
2130903143,
2130903144,
2130903146,
2130903147,
2130903148,
2130903149,
2130903150,
2130903151,
2130903156,
2130903157,
2130903158,
2130903160,
2130903161,
2130903162,
2130903163,
2130903164,
2130903165,
2130903166,
2130903277,
2130903287,
2130903291,
2130903388,
2130903400,
2130903485,
2130903488};
// aapt resource value: { 0x7F030061,0x7F030070,0x7F030071,0x7F030072,0x7F03016C,0x7F03016D }
public static int[] ChipGroup = new int[] {
2130903137,
2130903152,
2130903153,
2130903154,
2130903404,
2130903405};
// aapt resource value: 0
public const int ChipGroup_checkedChip = 0;
// aapt resource value: 1
public const int ChipGroup_chipSpacing = 1;
// aapt resource value: 2
public const int ChipGroup_chipSpacingHorizontal = 2;
// aapt resource value: 3
public const int ChipGroup_chipSpacingVertical = 3;
// aapt resource value: 4
public const int ChipGroup_singleLine = 4;
// aapt resource value: 5
public const int ChipGroup_singleSelection = 5;
// aapt resource value: 4
public const int Chip_android_checkable = 4;
// aapt resource value: 1
public const int Chip_android_ellipsize = 1;
// aapt resource value: 2
public const int Chip_android_maxWidth = 2;
// aapt resource value: 3
public const int Chip_android_text = 3;
// aapt resource value: 0
public const int Chip_android_textAppearance = 0;
// aapt resource value: 5
public const int Chip_checkedIcon = 5;
// aapt resource value: 6
public const int Chip_checkedIconEnabled = 6;
// aapt resource value: 7
public const int Chip_checkedIconVisible = 7;
// aapt resource value: 8
public const int Chip_chipBackgroundColor = 8;
// aapt resource value: 9
public const int Chip_chipCornerRadius = 9;
// aapt resource value: 10
public const int Chip_chipEndPadding = 10;
// aapt resource value: 11
public const int Chip_chipIcon = 11;
// aapt resource value: 12
public const int Chip_chipIconEnabled = 12;
// aapt resource value: 13
public const int Chip_chipIconSize = 13;
// aapt resource value: 14
public const int Chip_chipIconTint = 14;
// aapt resource value: 15
public const int Chip_chipIconVisible = 15;
// aapt resource value: 16
public const int Chip_chipMinHeight = 16;
// aapt resource value: 17
public const int Chip_chipStartPadding = 17;
// aapt resource value: 18
public const int Chip_chipStrokeColor = 18;
// aapt resource value: 19
public const int Chip_chipStrokeWidth = 19;
// aapt resource value: 20
public const int Chip_closeIcon = 20;
// aapt resource value: 21
public const int Chip_closeIconEnabled = 21;
// aapt resource value: 22
public const int Chip_closeIconEndPadding = 22;
// aapt resource value: 23
public const int Chip_closeIconSize = 23;
// aapt resource value: 24
public const int Chip_closeIconStartPadding = 24;
// aapt resource value: 25
public const int Chip_closeIconTint = 25;
// aapt resource value: 26
public const int Chip_closeIconVisible = 26;
// aapt resource value: 27
public const int Chip_hideMotionSpec = 27;
// aapt resource value: 28
public const int Chip_iconEndPadding = 28;
// aapt resource value: 29
public const int Chip_iconStartPadding = 29;
// aapt resource value: 30
public const int Chip_rippleColor = 30;
// aapt resource value: 31
public const int Chip_showMotionSpec = 31;
// aapt resource value: 32
public const int Chip_textEndPadding = 32;
// aapt resource value: 33
public const int Chip_textStartPadding = 33;
// aapt resource value: { 0x7F030082,0x7F030083,0x7F03009D,0x7F0300C6,0x7F0300C7,0x7F0300C8,0x7F0300C9,0x7F0300CA,0x7F0300CB,0x7F0300CC,0x7F03015D,0x7F03015F,0x7F03017D,0x7F0301CB,0x7F0301CC,0x7F0301D6 }
public static int[] CollapsingToolbarLayout = new int[] {
2130903170,
2130903171,
2130903197,
2130903238,
2130903239,
2130903240,
2130903241,
2130903242,
2130903243,
2130903244,
2130903389,
2130903391,
2130903421,
2130903499,
2130903500,
2130903510};
// aapt resource value: 0
public const int CollapsingToolbarLayout_collapsedTitleGravity = 0;
// aapt resource value: 1
public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 1;
// aapt resource value: 2
public const int CollapsingToolbarLayout_contentScrim = 2;
// aapt resource value: 3
public const int CollapsingToolbarLayout_expandedTitleGravity = 3;
// aapt resource value: 4
public const int CollapsingToolbarLayout_expandedTitleMargin = 4;
// aapt resource value: 5
public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
// aapt resource value: 6
public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 6;
// aapt resource value: 7
public const int CollapsingToolbarLayout_expandedTitleMarginStart = 7;
// aapt resource value: 8
public const int CollapsingToolbarLayout_expandedTitleMarginTop = 8;
// aapt resource value: 9
public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 9;
// aapt resource value: { 0x7F030118,0x7F030119 }
public static int[] CollapsingToolbarLayout_Layout = new int[] {
2130903320,
2130903321};
// aapt resource value: 0
public const int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
// aapt resource value: 1
public const int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
// aapt resource value: 10
public const int CollapsingToolbarLayout_scrimAnimationDuration = 10;
// aapt resource value: 11
public const int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
// aapt resource value: 12
public const int CollapsingToolbarLayout_statusBarScrim = 12;
// aapt resource value: 13
public const int CollapsingToolbarLayout_title = 13;
// aapt resource value: 14
public const int CollapsingToolbarLayout_titleEnabled = 14;
// aapt resource value: 15
public const int CollapsingToolbarLayout_toolbarId = 15;
// aapt resource value: { 0x10101A5,0x101031F,0x7F030027 }
public static int[] ColorStateListItem = new int[] {
16843173,
16843551,
2130903079};
// aapt resource value: 2
public const int ColorStateListItem_alpha = 2;
// aapt resource value: 1
public const int ColorStateListItem_android_alpha = 1;
// aapt resource value: 0
public const int ColorStateListItem_android_color = 0;
// aapt resource value: { 0x1010107,0x7F030051,0x7F030057,0x7F030058 }
public static int[] CompoundButton = new int[] {
16843015,
2130903121,
2130903127,
2130903128};
// aapt resource value: 0
public const int CompoundButton_android_button = 0;
// aapt resource value: 1
public const int CompoundButton_buttonCompat = 1;
// aapt resource value: 2
public const int CompoundButton_buttonTint = 2;
// aapt resource value: 3
public const int CompoundButton_buttonTintMode = 3;
// aapt resource value: { 0x7F030110,0x7F03017C }
public static int[] CoordinatorLayout = new int[] {
2130903312,
2130903420};
// aapt resource value: 0
public const int CoordinatorLayout_keylines = 0;
// aapt resource value: { 0x10100B3,0x7F030115,0x7F030116,0x7F030117,0x7F03011A,0x7F03011B,0x7F03011C }
public static int[] CoordinatorLayout_Layout = new int[] {
16842931,
2130903317,
2130903318,
2130903319,
2130903322,
2130903323,
2130903324};
// aapt resource value: 0
public const int CoordinatorLayout_Layout_android_layout_gravity = 0;
// aapt resource value: 1
public const int CoordinatorLayout_Layout_layout_anchor = 1;
// aapt resource value: 2
public const int CoordinatorLayout_Layout_layout_anchorGravity = 2;
// aapt resource value: 3
public const int CoordinatorLayout_Layout_layout_behavior = 3;
// aapt resource value: 4
public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 4;
// aapt resource value: 5
public const int CoordinatorLayout_Layout_layout_insetEdge = 5;
// aapt resource value: 6
public const int CoordinatorLayout_Layout_layout_keyline = 6;
// aapt resource value: 1
public const int CoordinatorLayout_statusBarBackground = 1;
// aapt resource value: { 0x7F030041,0x7F030042 }
public static int[] DesignTheme = new int[] {
2130903105,
2130903106};
// aapt resource value: 0
public const int DesignTheme_bottomSheetDialogTheme = 0;
// aapt resource value: 1
public const int DesignTheme_bottomSheetStyle = 1;
// aapt resource value: { 0x7F030029,0x7F03002A,0x7F030036,0x7F030084,0x7F0300B3,0x7F0300E6,0x7F030171,0x7F0301C2 }
public static int[] DrawerArrowToggle = new int[] {
2130903081,
2130903082,
2130903094,
2130903172,
2130903219,
2130903270,
2130903409,
2130903490};
// aapt resource value: 0
public const int DrawerArrowToggle_arrowHeadLength = 0;
// aapt resource value: 1
public const int DrawerArrowToggle_arrowShaftLength = 1;
// aapt resource value: 2
public const int DrawerArrowToggle_barLength = 2;
// aapt resource value: 3
public const int DrawerArrowToggle_color = 3;
// aapt resource value: 4
public const int DrawerArrowToggle_drawableSize = 4;
// aapt resource value: 5
public const int DrawerArrowToggle_gapBetweenBars = 5;
// aapt resource value: 6
public const int DrawerArrowToggle_spinBars = 6;
// aapt resource value: 7
public const int DrawerArrowToggle_thickness = 7;
// aapt resource value: { 0x7F0300BF }
public static int[] DrawerLayout = new int[] {
2130903231};
// aapt resource value: 0
public const int DrawerLayout_elevation = 0;
// aapt resource value: { 0x7F030034,0x7F030035,0x7F03003D,0x7F0300BF,0x7F0300D1,0x7F0300D2,0x7F0300ED,0x7F0300F5,0x7F030137,0x7F030151,0x7F03015C,0x7F030168,0x7F0301E0 }
public static int[] FloatingActionButton = new int[] {
2130903092,
2130903093,
2130903101,
2130903231,
2130903249,
2130903250,
2130903277,
2130903285,
2130903351,
2130903377,
2130903388,
2130903400,
2130903520};
// aapt resource value: 0
public const int FloatingActionButton_backgroundTint = 0;
// aapt resource value: 1
public const int FloatingActionButton_backgroundTintMode = 1;
// aapt resource value: { 0x7F030037 }
public static int[] FloatingActionButton_Behavior_Layout = new int[] {
2130903095};
// aapt resource value: 0
public const int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
// aapt resource value: 2
public const int FloatingActionButton_borderWidth = 2;
// aapt resource value: 3
public const int FloatingActionButton_elevation = 3;
// aapt resource value: 4
public const int FloatingActionButton_fabCustomSize = 4;
// aapt resource value: 5
public const int FloatingActionButton_fabSize = 5;
// aapt resource value: 6
public const int FloatingActionButton_hideMotionSpec = 6;
// aapt resource value: 7
public const int FloatingActionButton_hoveredFocusedTranslationZ = 7;
// aapt resource value: 8
public const int FloatingActionButton_maxImageSize = 8;
// aapt resource value: 9
public const int FloatingActionButton_pressedTranslationZ = 9;
// aapt resource value: 10
public const int FloatingActionButton_rippleColor = 10;
// aapt resource value: 11
public const int FloatingActionButton_showMotionSpec = 11;
// aapt resource value: 12
public const int FloatingActionButton_useCompatPadding = 12;
// aapt resource value: { 0x7F03010B,0x7F030121 }
public static int[] FlowLayout = new int[] {
2130903307,
2130903329};
// aapt resource value: 0
public const int FlowLayout_itemSpacing = 0;
// aapt resource value: 1
public const int FlowLayout_lineSpacing = 1;
// aapt resource value: { 0x7F0300DC,0x7F0300DD,0x7F0300DE,0x7F0300DF,0x7F0300E0,0x7F0300E1 }
public static int[] FontFamily = new int[] {
2130903260,
2130903261,
2130903262,
2130903263,
2130903264,
2130903265};
// aapt resource value: { 0x1010532,0x1010533,0x101053F,0x101056F,0x1010570,0x7F0300DA,0x7F0300E2,0x7F0300E3,0x7F0300E4,0x7F0301DF }
public static int[] FontFamilyFont = new int[] {
16844082,
16844083,
16844095,
16844143,
16844144,
2130903258,
2130903266,
2130903267,
2130903268,
2130903519};
// aapt resource value: 0
public const int FontFamilyFont_android_font = 0;
// aapt resource value: 2
public const int FontFamilyFont_android_fontStyle = 2;
// aapt resource value: 4
public const int FontFamilyFont_android_fontVariationSettings = 4;
// aapt resource value: 1
public const int FontFamilyFont_android_fontWeight = 1;
// aapt resource value: 3
public const int FontFamilyFont_android_ttcIndex = 3;
// aapt resource value: 5
public const int FontFamilyFont_font = 5;
// aapt resource value: 6
public const int FontFamilyFont_fontStyle = 6;
// aapt resource value: 7
public const int FontFamilyFont_fontVariationSettings = 7;
// aapt resource value: 8
public const int FontFamilyFont_fontWeight = 8;
// aapt resource value: 9
public const int FontFamilyFont_ttcIndex = 9;
// aapt resource value: 0
public const int FontFamily_fontProviderAuthority = 0;
// aapt resource value: 1
public const int FontFamily_fontProviderCerts = 1;
// aapt resource value: 2
public const int FontFamily_fontProviderFetchStrategy = 2;
// aapt resource value: 3
public const int FontFamily_fontProviderFetchTimeout = 3;
// aapt resource value: 4
public const int FontFamily_fontProviderPackage = 4;
// aapt resource value: 5
public const int FontFamily_fontProviderQuery = 5;
// aapt resource value: { 0x1010109,0x1010200,0x7F0300E5 }
public static int[] ForegroundLinearLayout = new int[] {
16843017,
16843264,
2130903269};
// aapt resource value: 0
public const int ForegroundLinearLayout_android_foreground = 0;
// aapt resource value: 1
public const int ForegroundLinearLayout_android_foregroundGravity = 1;
// aapt resource value: 2
public const int ForegroundLinearLayout_foregroundInsidePadding = 2;
// aapt resource value: { 0x1010003,0x10100D0,0x10100D1 }
public static int[] Fragment = new int[] {
16842755,
16842960,
16842961};
// aapt resource value: { 0x1010003,0x10100D1 }
public static int[] FragmentContainerView = new int[] {
16842755,
16842961};
// aapt resource value: 0
public const int FragmentContainerView_android_name = 0;
// aapt resource value: 1
public const int FragmentContainerView_android_tag = 1;
// aapt resource value: 1
public const int Fragment_android_id = 1;
// aapt resource value: 0
public const int Fragment_android_name = 0;
// aapt resource value: 2
public const int Fragment_android_tag = 2;
// aapt resource value: { 0x101019D,0x101019E,0x10101A1,0x10101A2,0x10101A3,0x10101A4,0x1010201,0x101020B,0x1010510,0x1010511,0x1010512,0x1010513 }
public static int[] GradientColor = new int[] {
16843165,
16843166,
16843169,
16843170,
16843171,
16843172,
16843265,
16843275,
16844048,
16844049,
16844050,
16844051};
// aapt resource value: { 0x10101A5,0x1010514 }
public static int[] GradientColorItem = new int[] {
16843173,
16844052};
// aapt resource value: 0
public const int GradientColorItem_android_color = 0;
// aapt resource value: 1
public const int GradientColorItem_android_offset = 1;
// aapt resource value: 7
public const int GradientColor_android_centerColor = 7;
// aapt resource value: 3
public const int GradientColor_android_centerX = 3;
// aapt resource value: 4
public const int GradientColor_android_centerY = 4;
// aapt resource value: 1
public const int GradientColor_android_endColor = 1;
// aapt resource value: 10
public const int GradientColor_android_endX = 10;
// aapt resource value: 11
public const int GradientColor_android_endY = 11;
// aapt resource value: 5
public const int GradientColor_android_gradientRadius = 5;
// aapt resource value: 0
public const int GradientColor_android_startColor = 0;
// aapt resource value: 8
public const int GradientColor_android_startX = 8;
// aapt resource value: 9
public const int GradientColor_android_startY = 9;
// aapt resource value: 6
public const int GradientColor_android_tileMode = 6;
// aapt resource value: 2
public const int GradientColor_android_type = 2;
// aapt resource value: { 0x10100AF,0x10100C4,0x1010126,0x1010127,0x1010128,0x7F0300AB,0x7F0300AD,0x7F030138,0x7F030167 }
public static int[] LinearLayoutCompat = new int[] {
16842927,
16842948,
16843046,
16843047,
16843048,
2130903211,
2130903213,
2130903352,
2130903399};
// aapt resource value: 2
public const int LinearLayoutCompat_android_baselineAligned = 2;
// aapt resource value: 3
public const int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
// aapt resource value: 0
public const int LinearLayoutCompat_android_gravity = 0;
// aapt resource value: 1
public const int LinearLayoutCompat_android_orientation = 1;
// aapt resource value: 4
public const int LinearLayoutCompat_android_weightSum = 4;
// aapt resource value: 5
public const int LinearLayoutCompat_divider = 5;
// aapt resource value: 6
public const int LinearLayoutCompat_dividerPadding = 6;
// aapt resource value: { 0x10100B3,0x10100F4,0x10100F5,0x1010181 }
public static int[] LinearLayoutCompat_Layout = new int[] {
16842931,
16842996,
16842997,
16843137};
// aapt resource value: 0
public const int LinearLayoutCompat_Layout_android_layout_gravity = 0;
// aapt resource value: 2
public const int LinearLayoutCompat_Layout_android_layout_height = 2;
// aapt resource value: 3
public const int LinearLayoutCompat_Layout_android_layout_weight = 3;
// aapt resource value: 1
public const int LinearLayoutCompat_Layout_android_layout_width = 1;
// aapt resource value: 7
public const int LinearLayoutCompat_measureWithLargestChild = 7;
// aapt resource value: 8
public const int LinearLayoutCompat_showDividers = 8;
// aapt resource value: { 0x10102AC,0x10102AD }
public static int[] ListPopupWindow = new int[] {
16843436,
16843437};
// aapt resource value: 0
public const int ListPopupWindow_android_dropDownHorizontalOffset = 0;
// aapt resource value: 1
public const int ListPopupWindow_android_dropDownVerticalOffset = 1;
// aapt resource value: { 0x10101B7,0x10101B8,0x10101B9,0x10101BA,0x7F030034,0x7F030035,0x7F0300A0,0x7F0300F6,0x7F0300F8,0x7F0300F9,0x7F0300FA,0x7F0300FC,0x7F0300FD,0x7F03015C,0x7F03017E,0x7F03017F }
public static int[] MaterialButton = new int[] {
16843191,
16843192,
16843193,
16843194,
2130903092,
2130903093,
2130903200,
2130903286,
2130903288,
2130903289,
2130903290,
2130903292,
2130903293,
2130903388,
2130903422,
2130903423};
// aapt resource value: 3
public const int MaterialButton_android_insetBottom = 3;
// aapt resource value: 0
public const int MaterialButton_android_insetLeft = 0;
// aapt resource value: 1
public const int MaterialButton_android_insetRight = 1;
// aapt resource value: 2
public const int MaterialButton_android_insetTop = 2;
// aapt resource value: 4
public const int MaterialButton_backgroundTint = 4;
// aapt resource value: 5
public const int MaterialButton_backgroundTintMode = 5;
// aapt resource value: 6
public const int MaterialButton_cornerRadius = 6;
// aapt resource value: 7
public const int MaterialButton_icon = 7;
// aapt resource value: 8
public const int MaterialButton_iconGravity = 8;
// aapt resource value: 9
public const int MaterialButton_iconPadding = 9;
// aapt resource value: 10
public const int MaterialButton_iconSize = 10;
// aapt resource value: 11
public const int MaterialButton_iconTint = 11;
// aapt resource value: 12
public const int MaterialButton_iconTintMode = 12;
// aapt resource value: 13
public const int MaterialButton_rippleColor = 13;
// aapt resource value: 14
public const int MaterialButton_strokeColor = 14;
// aapt resource value: 15
public const int MaterialButton_strokeWidth = 15;
// aapt resource value: { 0x7F03017E,0x7F03017F }
public static int[] MaterialCardView = new int[] {
2130903422,
2130903423};
// aapt resource value: 0
public const int MaterialCardView_strokeColor = 0;
// aapt resource value: 1
public const int MaterialCardView_strokeWidth = 1;
// aapt resource value: { 0x7F030041,0x7F030042,0x7F030069,0x7F030073,0x7F030077,0x7F030085,0x7F030086,0x7F03008C,0x7F03008D,0x7F03008E,0x7F0300BE,0x7F0300D9,0x7F030133,0x7F030134,0x7F03013E,0x7F03015E,0x7F03016E,0x7F0301A1,0x7F0301A6,0x7F0301A7,0x7F0301A8,0x7F0301A9,0x7F0301AA,0x7F0301AB,0x7F0301AC,0x7F0301AD,0x7F0301AE,0x7F0301AF,0x7F0301B4,0x7F0301B9,0x7F0301BA,0x7F0301BE }
public static int[] MaterialComponentsTheme = new int[] {
2130903105,
2130903106,
2130903145,
2130903155,
2130903159,
2130903173,
2130903174,
2130903180,
2130903181,
2130903182,
2130903230,
2130903257,
2130903347,
2130903348,
2130903358,
2130903390,
2130903406,
2130903457,
2130903462,
2130903463,
2130903464,
2130903465,
2130903466,
2130903467,
2130903468,
2130903469,
2130903470,
2130903471,
2130903476,
2130903481,
2130903482,
2130903486};
// aapt resource value: 0
public const int MaterialComponentsTheme_bottomSheetDialogTheme = 0;
// aapt resource value: 1
public const int MaterialComponentsTheme_bottomSheetStyle = 1;
// aapt resource value: 2
public const int MaterialComponentsTheme_chipGroupStyle = 2;
// aapt resource value: 3
public const int MaterialComponentsTheme_chipStandaloneStyle = 3;
// aapt resource value: 4
public const int MaterialComponentsTheme_chipStyle = 4;
// aapt resource value: 5
public const int MaterialComponentsTheme_colorAccent = 5;
// aapt resource value: 6
public const int MaterialComponentsTheme_colorBackgroundFloating = 6;
// aapt resource value: 7
public const int MaterialComponentsTheme_colorPrimary = 7;
// aapt resource value: 8
public const int MaterialComponentsTheme_colorPrimaryDark = 8;
// aapt resource value: 9
public const int MaterialComponentsTheme_colorSecondary = 9;
// aapt resource value: 10
public const int MaterialComponentsTheme_editTextStyle = 10;
// aapt resource value: 11
public const int MaterialComponentsTheme_floatingActionButtonStyle = 11;
// aapt resource value: 12
public const int MaterialComponentsTheme_materialButtonStyle = 12;
// aapt resource value: 13
public const int MaterialComponentsTheme_materialCardViewStyle = 13;
// aapt resource value: 14
public const int MaterialComponentsTheme_navigationViewStyle = 14;
// aapt resource value: 15
public const int MaterialComponentsTheme_scrimBackground = 15;
// aapt resource value: 16
public const int MaterialComponentsTheme_snackbarButtonStyle = 16;
// aapt resource value: 17
public const int MaterialComponentsTheme_tabStyle = 17;
// aapt resource value: 18
public const int MaterialComponentsTheme_textAppearanceBody1 = 18;
// aapt resource value: 19
public const int MaterialComponentsTheme_textAppearanceBody2 = 19;
// aapt resource value: 20
public const int MaterialComponentsTheme_textAppearanceButton = 20;
// aapt resource value: 21
public const int MaterialComponentsTheme_textAppearanceCaption = 21;
// aapt resource value: 22
public const int MaterialComponentsTheme_textAppearanceHeadline1 = 22;
// aapt resource value: 23
public const int MaterialComponentsTheme_textAppearanceHeadline2 = 23;
// aapt resource value: 24
public const int MaterialComponentsTheme_textAppearanceHeadline3 = 24;
// aapt resource value: 25
public const int MaterialComponentsTheme_textAppearanceHeadline4 = 25;
// aapt resource value: 26
public const int MaterialComponentsTheme_textAppearanceHeadline5 = 26;
// aapt resource value: 27
public const int MaterialComponentsTheme_textAppearanceHeadline6 = 27;
// aapt resource value: 28
public const int MaterialComponentsTheme_textAppearanceOverline = 28;
// aapt resource value: 29
public const int MaterialComponentsTheme_textAppearanceSubtitle1 = 29;
// aapt resource value: 30
public const int MaterialComponentsTheme_textAppearanceSubtitle2 = 30;
// aapt resource value: 31
public const int MaterialComponentsTheme_textInputStyle = 31;
// aapt resource value: { 0x101000E,0x10100D0,0x1010194,0x10101DE,0x10101DF,0x10101E0 }
public static int[] MenuGroup = new int[] {
16842766,
16842960,
16843156,
16843230,
16843231,
16843232};
// aapt resource value: 5
public const int MenuGroup_android_checkableBehavior = 5;
// aapt resource value: 0
public const int MenuGroup_android_enabled = 0;
// aapt resource value: 1
public const int MenuGroup_android_id = 1;
// aapt resource value: 3
public const int MenuGroup_android_menuCategory = 3;
// aapt resource value: 4
public const int MenuGroup_android_orderInCategory = 4;
// aapt resource value: 2
public const int MenuGroup_android_visible = 2;
// aapt resource value: { 0x1010002,0x101000E,0x10100D0,0x1010106,0x1010194,0x10101DE,0x10101DF,0x10101E1,0x10101E2,0x10101E3,0x10101E4,0x10101E5,0x101026F,0x7F03000D,0x7F03001F,0x7F030020,0x7F030028,0x7F030091,0x7F0300FC,0x7F0300FD,0x7F03013F,0x7F030166,0x7F0301DB }
public static int[] MenuItem = new int[] {
16842754,
16842766,
16842960,
16843014,
16843156,
16843230,
16843231,
16843233,
16843234,
16843235,
16843236,
16843237,
16843375,
2130903053,
2130903071,
2130903072,
2130903080,
2130903185,
2130903292,
2130903293,
2130903359,
2130903398,
2130903515};
// aapt resource value: 13
public const int MenuItem_actionLayout = 13;
// aapt resource value: 14
public const int MenuItem_actionProviderClass = 14;
// aapt resource value: 15
public const int MenuItem_actionViewClass = 15;
// aapt resource value: 16
public const int MenuItem_alphabeticModifiers = 16;
// aapt resource value: 9
public const int MenuItem_android_alphabeticShortcut = 9;
// aapt resource value: 11
public const int MenuItem_android_checkable = 11;
// aapt resource value: 3
public const int MenuItem_android_checked = 3;
// aapt resource value: 1
public const int MenuItem_android_enabled = 1;
// aapt resource value: 0
public const int MenuItem_android_icon = 0;
// aapt resource value: 2
public const int MenuItem_android_id = 2;
// aapt resource value: 5
public const int MenuItem_android_menuCategory = 5;
// aapt resource value: 10
public const int MenuItem_android_numericShortcut = 10;
// aapt resource value: 12
public const int MenuItem_android_onClick = 12;
// aapt resource value: 6
public const int MenuItem_android_orderInCategory = 6;
// aapt resource value: 7
public const int MenuItem_android_title = 7;
// aapt resource value: 8
public const int MenuItem_android_titleCondensed = 8;
// aapt resource value: 4
public const int MenuItem_android_visible = 4;
// aapt resource value: 17
public const int MenuItem_contentDescription = 17;
// aapt resource value: 18
public const int MenuItem_iconTint = 18;
// aapt resource value: 19
public const int MenuItem_iconTintMode = 19;
// aapt resource value: 20
public const int MenuItem_numericModifiers = 20;
// aapt resource value: 21
public const int MenuItem_showAsAction = 21;
// aapt resource value: 22
public const int MenuItem_tooltipText = 22;
// aapt resource value: { 0x10100AE,0x101012C,0x101012D,0x101012E,0x101012F,0x1010130,0x1010131,0x7F030150,0x7F030180 }
public static int[] MenuView = new int[] {
16842926,
16843052,
16843053,
16843054,
16843055,
16843056,
16843057,
2130903376,
2130903424};
// aapt resource value: 4
public const int MenuView_android_headerBackground = 4;
// aapt resource value: 2
public const int MenuView_android_horizontalDivider = 2;
// aapt resource value: 5
public const int MenuView_android_itemBackground = 5;
// aapt resource value: 6
public const int MenuView_android_itemIconDisabledAlpha = 6;
// aapt resource value: 1
public const int MenuView_android_itemTextAppearance = 1;
// aapt resource value: 3
public const int MenuView_android_verticalDivider = 3;
// aapt resource value: 0
public const int MenuView_android_windowAnimationStyle = 0;
// aapt resource value: 7
public const int MenuView_preserveIconSpacing = 7;
// aapt resource value: 8
public const int MenuView_subMenuArrow = 8;
// aapt resource value: { 0x10100D4,0x10100DD,0x101011F,0x7F0300BF,0x7F0300E8,0x7F030104,0x7F030105,0x7F030107,0x7F030109,0x7F03010C,0x7F03010F,0x7F030139 }
public static int[] NavigationView = new int[] {
16842964,
16842973,
16843039,
2130903231,
2130903272,
2130903300,
2130903301,
2130903303,
2130903305,
2130903308,
2130903311,
2130903353};
// aapt resource value: 0
public const int NavigationView_android_background = 0;
// aapt resource value: 1
public const int NavigationView_android_fitsSystemWindows = 1;
// aapt resource value: 2
public const int NavigationView_android_maxWidth = 2;
// aapt resource value: 3
public const int NavigationView_elevation = 3;
// aapt resource value: 4
public const int NavigationView_headerLayout = 4;
// aapt resource value: 5
public const int NavigationView_itemBackground = 5;
// aapt resource value: 6
public const int NavigationView_itemHorizontalPadding = 6;
// aapt resource value: 7
public const int NavigationView_itemIconPadding = 7;
// aapt resource value: 8
public const int NavigationView_itemIconTint = 8;
// aapt resource value: 9
public const int NavigationView_itemTextAppearance = 9;
// aapt resource value: 10
public const int NavigationView_itemTextColor = 10;
// aapt resource value: 11
public const int NavigationView_menu = 11;
// aapt resource value: { 0x1010176,0x10102C9,0x7F030140 }
public static int[] PopupWindow = new int[] {
16843126,
16843465,
2130903360};
// aapt resource value: { 0x7F030177 }
public static int[] PopupWindowBackgroundState = new int[] {
2130903415};
// aapt resource value: 0
public const int PopupWindowBackgroundState_state_above_anchor = 0;
// aapt resource value: 1
public const int PopupWindow_android_popupAnimationStyle = 1;
// aapt resource value: 0
public const int PopupWindow_android_popupBackground = 0;
// aapt resource value: 2
public const int PopupWindow_overlapAnchor = 2;
// aapt resource value: { 0x7F030141,0x7F030144 }
public static int[] RecycleListView = new int[] {
2130903361,
2130903364};
// aapt resource value: 0
public const int RecycleListView_paddingBottomNoButtons = 0;
// aapt resource value: 1
public const int RecycleListView_paddingTopNoTitle = 1;
// aapt resource value: { 0x10100C4,0x10100EB,0x10100F1,0x7F0300D3,0x7F0300D4,0x7F0300D5,0x7F0300D6,0x7F0300D7,0x7F030114,0x7F03015B,0x7F030170,0x7F030176 }
public static int[] RecyclerView = new int[] {
16842948,
16842987,
16842993,
2130903251,
2130903252,
2130903253,
2130903254,
2130903255,
2130903316,
2130903387,
2130903408,
2130903414};
// aapt resource value: 1
public const int RecyclerView_android_clipToPadding = 1;
// aapt resource value: 2
public const int RecyclerView_android_descendantFocusability = 2;
// aapt resource value: 0
public const int RecyclerView_android_orientation = 0;
// aapt resource value: 3
public const int RecyclerView_fastScrollEnabled = 3;
// aapt resource value: 4
public const int RecyclerView_fastScrollHorizontalThumbDrawable = 4;
// aapt resource value: 5
public const int RecyclerView_fastScrollHorizontalTrackDrawable = 5;
// aapt resource value: 6
public const int RecyclerView_fastScrollVerticalThumbDrawable = 6;
// aapt resource value: 7
public const int RecyclerView_fastScrollVerticalTrackDrawable = 7;
// aapt resource value: 8
public const int RecyclerView_layoutManager = 8;
// aapt resource value: 9
public const int RecyclerView_reverseLayout = 9;
// aapt resource value: 10
public const int RecyclerView_spanCount = 10;
// aapt resource value: 11
public const int RecyclerView_stackFromEnd = 11;
// aapt resource value: { 0x7F030102 }
public static int[] ScrimInsetsFrameLayout = new int[] {
2130903298};
// aapt resource value: 0
public const int ScrimInsetsFrameLayout_insetForeground = 0;
// aapt resource value: { 0x7F03003A }
public static int[] ScrollingViewBehavior_Layout = new int[] {
2130903098};
// aapt resource value: 0
public const int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
// aapt resource value: { 0x10100DA,0x101011F,0x1010220,0x1010264,0x7F030078,0x7F030090,0x7F0300A6,0x7F0300E7,0x7F0300FE,0x7F030113,0x7F030154,0x7F030155,0x7F030160,0x7F030161,0x7F030181,0x7F030186,0x7F0301E2 }
public static int[] SearchView = new int[] {
16842970,
16843039,
16843296,
16843364,
2130903160,
2130903184,
2130903206,
2130903271,
2130903294,
2130903315,
2130903380,
2130903381,
2130903392,
2130903393,
2130903425,
2130903430,
2130903522};
// aapt resource value: 0
public const int SearchView_android_focusable = 0;
// aapt resource value: 3
public const int SearchView_android_imeOptions = 3;
// aapt resource value: 2
public const int SearchView_android_inputType = 2;
// aapt resource value: 1
public const int SearchView_android_maxWidth = 1;
// aapt resource value: 4
public const int SearchView_closeIcon = 4;
// aapt resource value: 5
public const int SearchView_commitIcon = 5;
// aapt resource value: 6
public const int SearchView_defaultQueryHint = 6;
// aapt resource value: 7
public const int SearchView_goIcon = 7;
// aapt resource value: 8
public const int SearchView_iconifiedByDefault = 8;
// aapt resource value: 9
public const int SearchView_layout = 9;
// aapt resource value: 10
public const int SearchView_queryBackground = 10;
// aapt resource value: 11
public const int SearchView_queryHint = 11;
// aapt resource value: 12
public const int SearchView_searchHintIcon = 12;
// aapt resource value: 13
public const int SearchView_searchIcon = 13;
// aapt resource value: 14
public const int SearchView_submitBackground = 14;
// aapt resource value: 15
public const int SearchView_suggestionRowLayout = 15;
// aapt resource value: 16
public const int SearchView_voiceIcon = 16;
// aapt resource value: { 0x7F03016E,0x7F03016F }
public static int[] Snackbar = new int[] {
2130903406,
2130903407};
// aapt resource value: { 0x101011F,0x7F0300BF,0x7F030135 }
public static int[] SnackbarLayout = new int[] {
16843039,
2130903231,
2130903349};
// aapt resource value: 0
public const int SnackbarLayout_android_maxWidth = 0;
// aapt resource value: 1
public const int SnackbarLayout_elevation = 1;
// aapt resource value: 2
public const int SnackbarLayout_maxActionInlineWidth = 2;
// aapt resource value: 0
public const int Snackbar_snackbarButtonStyle = 0;
// aapt resource value: 1
public const int Snackbar_snackbarStyle = 1;
// aapt resource value: { 0x10100B2,0x1010176,0x101017B,0x1010262,0x7F03014E }
public static int[] Spinner = new int[] {
16842930,
16843126,
16843131,
16843362,
2130903374};
// aapt resource value: 3
public const int Spinner_android_dropDownWidth = 3;
// aapt resource value: 0
public const int Spinner_android_entries = 0;
// aapt resource value: 1
public const int Spinner_android_popupBackground = 1;
// aapt resource value: 2
public const int Spinner_android_prompt = 2;
// aapt resource value: 4
public const int Spinner_popupTheme = 4;
// aapt resource value: { 0x101011C,0x1010194,0x1010195,0x1010196,0x101030C,0x101030D }
public static int[] StateListDrawable = new int[] {
16843036,
16843156,
16843157,
16843158,
16843532,
16843533};
// aapt resource value: { 0x1010199 }
public static int[] StateListDrawableItem = new int[] {
16843161};
// aapt resource value: 0
public const int StateListDrawableItem_android_drawable = 0;
// aapt resource value: 3
public const int StateListDrawable_android_constantSize = 3;
// aapt resource value: 0
public const int StateListDrawable_android_dither = 0;
// aapt resource value: 4
public const int StateListDrawable_android_enterFadeDuration = 4;
// aapt resource value: 5
public const int StateListDrawable_android_exitFadeDuration = 5;
// aapt resource value: 2
public const int StateListDrawable_android_variablePadding = 2;
// aapt resource value: 1
public const int StateListDrawable_android_visible = 1;
// aapt resource value: { 0x1010124,0x1010125,0x1010142,0x7F030169,0x7F030174,0x7F030187,0x7F030188,0x7F03018A,0x7F0301C3,0x7F0301C4,0x7F0301C5,0x7F0301DC,0x7F0301DD,0x7F0301DE }
public static int[] SwitchCompat = new int[] {
16843044,
16843045,
16843074,
2130903401,
2130903412,
2130903431,
2130903432,
2130903434,
2130903491,
2130903492,
2130903493,
2130903516,
2130903517,
2130903518};
// aapt resource value: 1
public const int SwitchCompat_android_textOff = 1;
// aapt resource value: 0
public const int SwitchCompat_android_textOn = 0;
// aapt resource value: 2
public const int SwitchCompat_android_thumb = 2;
// aapt resource value: 3
public const int SwitchCompat_showText = 3;
// aapt resource value: 4
public const int SwitchCompat_splitTrack = 4;
// aapt resource value: 5
public const int SwitchCompat_switchMinWidth = 5;
// aapt resource value: 6
public const int SwitchCompat_switchPadding = 6;
// aapt resource value: 7
public const int SwitchCompat_switchTextAppearance = 7;
// aapt resource value: 8
public const int SwitchCompat_thumbTextPadding = 8;
// aapt resource value: 9
public const int SwitchCompat_thumbTint = 9;
// aapt resource value: 10
public const int SwitchCompat_thumbTintMode = 10;
// aapt resource value: 11
public const int SwitchCompat_track = 11;
// aapt resource value: 12
public const int SwitchCompat_trackTint = 12;
// aapt resource value: 13
public const int SwitchCompat_trackTintMode = 13;
// aapt resource value: { 0x1010002,0x10100F2,0x101014F }
public static int[] TabItem = new int[] {
16842754,
16842994,
16843087};
// aapt resource value: 0
public const int TabItem_android_icon = 0;
// aapt resource value: 1
public const int TabItem_android_layout = 1;
// aapt resource value: 2
public const int TabItem_android_text = 2;
// aapt resource value: { 0x7F03018B,0x7F03018C,0x7F03018D,0x7F03018E,0x7F03018F,0x7F030190,0x7F030191,0x7F030192,0x7F030193,0x7F030194,0x7F030195,0x7F030196,0x7F030197,0x7F030198,0x7F030199,0x7F03019A,0x7F03019B,0x7F03019C,0x7F03019D,0x7F03019E,0x7F03019F,0x7F0301A0,0x7F0301A2,0x7F0301A3,0x7F0301A4 }
public static int[] TabLayout = new int[] {
2130903435,
2130903436,
2130903437,
2130903438,
2130903439,
2130903440,
2130903441,
2130903442,
2130903443,
2130903444,
2130903445,
2130903446,
2130903447,
2130903448,
2130903449,
2130903450,
2130903451,
2130903452,
2130903453,
2130903454,
2130903455,
2130903456,
2130903458,
2130903459,
2130903460};
// aapt resource value: 0
public const int TabLayout_tabBackground = 0;
// aapt resource value: 1
public const int TabLayout_tabContentStart = 1;
// aapt resource value: 2
public const int TabLayout_tabGravity = 2;
// aapt resource value: 3
public const int TabLayout_tabIconTint = 3;
// aapt resource value: 4
public const int TabLayout_tabIconTintMode = 4;
// aapt resource value: 5
public const int TabLayout_tabIndicator = 5;
// aapt resource value: 6
public const int TabLayout_tabIndicatorAnimationDuration = 6;
// aapt resource value: 7
public const int TabLayout_tabIndicatorColor = 7;
// aapt resource value: 8
public const int TabLayout_tabIndicatorFullWidth = 8;
// aapt resource value: 9
public const int TabLayout_tabIndicatorGravity = 9;
// aapt resource value: 10
public const int TabLayout_tabIndicatorHeight = 10;
// aapt resource value: 11
public const int TabLayout_tabInlineLabel = 11;
// aapt resource value: 12
public const int TabLayout_tabMaxWidth = 12;
// aapt resource value: 13
public const int TabLayout_tabMinWidth = 13;
// aapt resource value: 14
public const int TabLayout_tabMode = 14;
// aapt resource value: 15
public const int TabLayout_tabPadding = 15;
// aapt resource value: 16
public const int TabLayout_tabPaddingBottom = 16;
// aapt resource value: 17
public const int TabLayout_tabPaddingEnd = 17;
// aapt resource value: 18
public const int TabLayout_tabPaddingStart = 18;
// aapt resource value: 19
public const int TabLayout_tabPaddingTop = 19;
// aapt resource value: 20
public const int TabLayout_tabRippleColor = 20;
// aapt resource value: 21
public const int TabLayout_tabSelectedTextColor = 21;
// aapt resource value: 22
public const int TabLayout_tabTextAppearance = 22;
// aapt resource value: 23
public const int TabLayout_tabTextColor = 23;
// aapt resource value: 24
public const int TabLayout_tabUnboundedRipple = 24;
// aapt resource value: { 0x1010095,0x1010096,0x1010097,0x1010098,0x101009A,0x101009B,0x1010161,0x1010162,0x1010163,0x1010164,0x10103AC,0x1010585,0x7F0300DB,0x7F0300E3,0x7F0301A5,0x7F0301BF }
public static int[] TextAppearance = new int[] {
16842901,
16842902,
16842903,
16842904,
16842906,
16842907,
16843105,
16843106,
16843107,
16843108,
16843692,
16844165,
2130903259,
2130903267,
2130903461,
2130903487};
// aapt resource value: 10
public const int TextAppearance_android_fontFamily = 10;
// aapt resource value: 6
public const int TextAppearance_android_shadowColor = 6;
// aapt resource value: 7
public const int TextAppearance_android_shadowDx = 7;
// aapt resource value: 8
public const int TextAppearance_android_shadowDy = 8;
// aapt resource value: 9
public const int TextAppearance_android_shadowRadius = 9;
// aapt resource value: 3
public const int TextAppearance_android_textColor = 3;
// aapt resource value: 4
public const int TextAppearance_android_textColorHint = 4;
// aapt resource value: 5
public const int TextAppearance_android_textColorLink = 5;
// aapt resource value: 11
public const int TextAppearance_android_textFontWeight = 11;
// aapt resource value: 0
public const int TextAppearance_android_textSize = 0;
// aapt resource value: 2
public const int TextAppearance_android_textStyle = 2;
// aapt resource value: 1
public const int TextAppearance_android_typeface = 1;
// aapt resource value: 12
public const int TextAppearance_fontFamily = 12;
// aapt resource value: 13
public const int TextAppearance_fontVariationSettings = 13;
// aapt resource value: 14
public const int TextAppearance_textAllCaps = 14;
// aapt resource value: 15
public const int TextAppearance_textLocale = 15;
// aapt resource value: { 0x101009A,0x1010150,0x7F030043,0x7F030044,0x7F030045,0x7F030046,0x7F030047,0x7F030048,0x7F030049,0x7F03004A,0x7F03004B,0x7F0300A1,0x7F0300A2,0x7F0300A3,0x7F0300A4,0x7F0300C2,0x7F0300C3,0x7F0300EA,0x7F0300EB,0x7F0300EC,0x7F0300F0,0x7F0300F1,0x7F0300F2,0x7F030148,0x7F030149,0x7F03014A,0x7F03014B,0x7F03014C }
public static int[] TextInputLayout = new int[] {
16842906,
16843088,
2130903107,
2130903108,
2130903109,
2130903110,
2130903111,
2130903112,
2130903113,
2130903114,
2130903115,
2130903201,
2130903202,
2130903203,
2130903204,
2130903234,
2130903235,
2130903274,
2130903275,
2130903276,
2130903280,
2130903281,
2130903282,
2130903368,
2130903369,
2130903370,
2130903371,
2130903372};
// aapt resource value: 1
public const int TextInputLayout_android_hint = 1;
// aapt resource value: 0
public const int TextInputLayout_android_textColorHint = 0;
// aapt resource value: 2
public const int TextInputLayout_boxBackgroundColor = 2;
// aapt resource value: 3
public const int TextInputLayout_boxBackgroundMode = 3;
// aapt resource value: 4
public const int TextInputLayout_boxCollapsedPaddingTop = 4;
// aapt resource value: 5
public const int TextInputLayout_boxCornerRadiusBottomEnd = 5;
// aapt resource value: 6
public const int TextInputLayout_boxCornerRadiusBottomStart = 6;
// aapt resource value: 7
public const int TextInputLayout_boxCornerRadiusTopEnd = 7;
// aapt resource value: 8
public const int TextInputLayout_boxCornerRadiusTopStart = 8;
// aapt resource value: 9
public const int TextInputLayout_boxStrokeColor = 9;
// aapt resource value: 10
public const int TextInputLayout_boxStrokeWidth = 10;
// aapt resource value: 11
public const int TextInputLayout_counterEnabled = 11;
// aapt resource value: 12
public const int TextInputLayout_counterMaxLength = 12;
// aapt resource value: 13
public const int TextInputLayout_counterOverflowTextAppearance = 13;
// aapt resource value: 14
public const int TextInputLayout_counterTextAppearance = 14;
// aapt resource value: 15
public const int TextInputLayout_errorEnabled = 15;
// aapt resource value: 16
public const int TextInputLayout_errorTextAppearance = 16;
// aapt resource value: 17
public const int TextInputLayout_helperText = 17;
// aapt resource value: 18
public const int TextInputLayout_helperTextEnabled = 18;
// aapt resource value: 19
public const int TextInputLayout_helperTextTextAppearance = 19;
// aapt resource value: 20
public const int TextInputLayout_hintAnimationEnabled = 20;
// aapt resource value: 21
public const int TextInputLayout_hintEnabled = 21;
// aapt resource value: 22
public const int TextInputLayout_hintTextAppearance = 22;
// aapt resource value: 23
public const int TextInputLayout_passwordToggleContentDescription = 23;
// aapt resource value: 24
public const int TextInputLayout_passwordToggleDrawable = 24;
// aapt resource value: 25
public const int TextInputLayout_passwordToggleEnabled = 25;
// aapt resource value: 26
public const int TextInputLayout_passwordToggleTint = 26;
// aapt resource value: 27
public const int TextInputLayout_passwordToggleTintMode = 27;
// aapt resource value: { 0x1010034,0x7F0300C0,0x7F0300C1 }
public static int[] ThemeEnforcement = new int[] {
16842804,
2130903232,
2130903233};
// aapt resource value: 0
public const int ThemeEnforcement_android_textAppearance = 0;
// aapt resource value: 1
public const int ThemeEnforcement_enforceMaterialTheme = 1;
// aapt resource value: 2
public const int ThemeEnforcement_enforceTextAppearance = 2;
// aapt resource value: { 0x10100AF,0x1010140,0x7F030052,0x7F030080,0x7F030081,0x7F030092,0x7F030093,0x7F030094,0x7F030095,0x7F030096,0x7F030097,0x7F030131,0x7F030132,0x7F030136,0x7F030139,0x7F03013B,0x7F03013C,0x7F03014E,0x7F030182,0x7F030183,0x7F030184,0x7F0301CB,0x7F0301CD,0x7F0301CE,0x7F0301CF,0x7F0301D0,0x7F0301D1,0x7F0301D2,0x7F0301D3,0x7F0301D4 }
public static int[] Toolbar = new int[] {
16842927,
16843072,
2130903122,
2130903168,
2130903169,
2130903186,
2130903187,
2130903188,
2130903189,
2130903190,
2130903191,
2130903345,
2130903346,
2130903350,
2130903353,
2130903355,
2130903356,
2130903374,
2130903426,
2130903427,
2130903428,
2130903499,
2130903501,
2130903502,
2130903503,
2130903504,
2130903505,
2130903506,
2130903507,
2130903508};
// aapt resource value: 0
public const int Toolbar_android_gravity = 0;
// aapt resource value: 1
public const int Toolbar_android_minHeight = 1;
// aapt resource value: 2
public const int Toolbar_buttonGravity = 2;
// aapt resource value: 3
public const int Toolbar_collapseContentDescription = 3;
// aapt resource value: 4
public const int Toolbar_collapseIcon = 4;
// aapt resource value: 5
public const int Toolbar_contentInsetEnd = 5;
// aapt resource value: 6
public const int Toolbar_contentInsetEndWithActions = 6;
// aapt resource value: 7
public const int Toolbar_contentInsetLeft = 7;
// aapt resource value: 8
public const int Toolbar_contentInsetRight = 8;
// aapt resource value: 9
public const int Toolbar_contentInsetStart = 9;
// aapt resource value: 10
public const int Toolbar_contentInsetStartWithNavigation = 10;
// aapt resource value: 11
public const int Toolbar_logo = 11;
// aapt resource value: 12
public const int Toolbar_logoDescription = 12;
// aapt resource value: 13
public const int Toolbar_maxButtonHeight = 13;
// aapt resource value: 14
public const int Toolbar_menu = 14;
// aapt resource value: 15
public const int Toolbar_navigationContentDescription = 15;
// aapt resource value: 16
public const int Toolbar_navigationIcon = 16;
// aapt resource value: 17
public const int Toolbar_popupTheme = 17;
// aapt resource value: 18
public const int Toolbar_subtitle = 18;
// aapt resource value: 19
public const int Toolbar_subtitleTextAppearance = 19;
// aapt resource value: 20
public const int Toolbar_subtitleTextColor = 20;
// aapt resource value: 21
public const int Toolbar_title = 21;
// aapt resource value: 22
public const int Toolbar_titleMargin = 22;
// aapt resource value: 23
public const int Toolbar_titleMarginBottom = 23;
// aapt resource value: 24
public const int Toolbar_titleMarginEnd = 24;
// aapt resource value: 27
public const int Toolbar_titleMargins = 27;
// aapt resource value: 25
public const int Toolbar_titleMarginStart = 25;
// aapt resource value: 26
public const int Toolbar_titleMarginTop = 26;
// aapt resource value: 28
public const int Toolbar_titleTextAppearance = 28;
// aapt resource value: 29
public const int Toolbar_titleTextColor = 29;
// aapt resource value: { 0x1010000,0x10100DA,0x7F030142,0x7F030143,0x7F0301C1 }
public static int[] View = new int[] {
16842752,
16842970,
2130903362,
2130903363,
2130903489};
// aapt resource value: { 0x10100D4,0x7F030034,0x7F030035 }
public static int[] ViewBackgroundHelper = new int[] {
16842964,
2130903092,
2130903093};
// aapt resource value: 0
public const int ViewBackgroundHelper_android_background = 0;
// aapt resource value: 1
public const int ViewBackgroundHelper_backgroundTint = 1;
// aapt resource value: 2
public const int ViewBackgroundHelper_backgroundTintMode = 2;
// aapt resource value: { 0x10100D0,0x10100F2,0x10100F3 }
public static int[] ViewStubCompat = new int[] {
16842960,
16842994,
16842995};
// aapt resource value: 0
public const int ViewStubCompat_android_id = 0;
// aapt resource value: 2
public const int ViewStubCompat_android_inflatedId = 2;
// aapt resource value: 1
public const int ViewStubCompat_android_layout = 1;
// aapt resource value: 1
public const int View_android_focusable = 1;
// aapt resource value: 0
public const int View_android_theme = 0;
// aapt resource value: 2
public const int View_paddingEnd = 2;
// aapt resource value: 3
public const int View_paddingStart = 3;
// aapt resource value: 4
public const int View_theme = 4;
static Styleable()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Styleable()
{
}
}
public partial class Xml
{
// aapt resource value: 0x7F110000
public const int image_share_filepaths = 2131820544;
// aapt resource value: 0x7F110001
public const int xamarin_essentials_fileprovider_file_paths = 2131820545;
static Xml()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Xml()
{
}
}
}
}
#pragma warning restore 1591
| 34.482736 | 1,403 | 0.743529 | [
"MIT"
] | Gaomengkai/Wzjqd | Wzjqd/Resources/Resource.designer.cs | 318,586 | C# |
using Newtonsoft.Json;
using System.Collections.Generic;
namespace Hardstuck.GuildWars2.Builds.APIClasses
{
internal class CharacterEquipmentStats
{
[JsonProperty("id")]
public int Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("attributes")]
public Dictionary<string, int> Attributes { get; set; }
}
}
| 22.611111 | 63 | 0.638821 | [
"Apache-2.0"
] | HardstuckGuild/Hardstuck.GuildWars2.Builds | src/APIClasses/CharacterEquipmentStats.cs | 409 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.