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.Generic; using System.Linq; using System.Text; using DotVVM.Framework.Hosting; using DotVVM.Framework.ViewModel; namespace DotVVM.Samples.BasicSamples.ViewModels.ComplexSamples.RedirectAndUrl { public class ScrollingPageViewModel : DotvvmViewModelBase { public string Message { get; set; } public void GoToParagraph1() { Message = "ToParagraph1"; Context.ResultIdFragment = "paragraph1"; } public void GoToParagraph2() { Message = "ToParagraph2"; Context.ResultIdFragment = "paragraph2"; } public void GoToParagraph2WithRedirectToUrl() { Message = "GoToParagraph2_With_RedirectToUrl"; var path = Context.HttpContext.Request.Url.ToString(); Context.RedirectToUrl($"{path}#paragraph2"); } public void TestQueryString() { Message = "TestQuerystring"; var path = Context.HttpContext.Request.Url.ToString(); Context.RedirectToUrl($"{path}?q='delf'&meep"); } public void TestMessage () { Message = "TestMessage"; } } }
26.543478
78
0.611794
[ "Apache-2.0" ]
AMBULATUR/dotvvm
src/DotVVM.Samples.Common/ViewModels/ComplexSamples/RedirectAndUrl/ScrollingPageViewModel.cs
1,221
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.AppService.Models; using Azure.ResourceManager.Core; namespace Azure.ResourceManager.AppService { /// <summary> A class representing collection of AppServiceDetector and their operations over its parent. </summary> public partial class CertificateOrderDetectorCollection : ArmCollection, IEnumerable<CertificateOrderDetector>, IAsyncEnumerable<CertificateOrderDetector> { private readonly ClientDiagnostics _clientDiagnostics; private readonly CertificateOrdersDiagnosticsRestOperations _certificateOrdersDiagnosticsRestClient; /// <summary> Initializes a new instance of the <see cref="CertificateOrderDetectorCollection"/> class for mocking. </summary> protected CertificateOrderDetectorCollection() { } /// <summary> Initializes a new instance of the <see cref="CertificateOrderDetectorCollection"/> class. </summary> /// <param name="parent"> The resource representing the parent resource. </param> internal CertificateOrderDetectorCollection(ArmResource parent) : base(parent) { _clientDiagnostics = new ClientDiagnostics(ClientOptions); ClientOptions.TryGetApiVersion(CertificateOrderDetector.ResourceType, out string apiVersion); _certificateOrdersDiagnosticsRestClient = new CertificateOrdersDiagnosticsRestOperations(_clientDiagnostics, Pipeline, ClientOptions, BaseUri, apiVersion); #if DEBUG ValidateResourceId(Id); #endif } internal static void ValidateResourceId(ResourceIdentifier id) { if (id.ResourceType != AppServiceCertificateOrder.ResourceType) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AppServiceCertificateOrder.ResourceType), nameof(id)); } // Collection level operations. /// RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} /// ContextualPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} /// OperationId: CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse /// <summary> Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public virtual Response<CertificateOrderDetector> Get(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Get"); scope.Start(); try { var response = _certificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken); if (response.Value == null) throw _clientDiagnostics.CreateRequestFailedException(response.GetRawResponse()); return Response.FromValue(new CertificateOrderDetector(this, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName} /// ContextualPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} /// OperationId: CertificateOrdersDiagnostics_GetAppServiceCertificateOrderDetectorResponse /// <summary> Description for Microsoft.CertificateRegistration call to get a detector response from App Lens. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public async virtual Task<Response<CertificateOrderDetector>> GetAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Get"); scope.Start(); try { var response = await _certificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(response.GetRawResponse()).ConfigureAwait(false); return Response.FromValue(new CertificateOrderDetector(this, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Tries to get details for this resource from the service. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public virtual Response<CertificateOrderDetector> GetIfExists(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetIfExists"); scope.Start(); try { var response = _certificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken); if (response.Value == null) return Response.FromValue<CertificateOrderDetector>(null, response.GetRawResponse()); return Response.FromValue(new CertificateOrderDetector(this, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Tries to get details for this resource from the service. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public async virtual Task<Response<CertificateOrderDetector>> GetIfExistsAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetIfExists"); scope.Start(); try { var response = await _certificateOrdersDiagnosticsRestClient.GetAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return Response.FromValue<CertificateOrderDetector>(null, response.GetRawResponse()); return Response.FromValue(new CertificateOrderDetector(this, response.Value), response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Tries to get details for this resource from the service. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public virtual Response<bool> Exists(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Exists"); scope.Start(); try { var response = GetIfExists(detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Tries to get details for this resource from the service. </summary> /// <param name="detectorName"> The detector name which needs to be run. </param> /// <param name="startTime"> The start time for detector response. </param> /// <param name="endTime"> The end time for the detector response. </param> /// <param name="timeGrain"> The time grain for the detector response. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <exception cref="ArgumentException"> <paramref name="detectorName"/> is empty. </exception> /// <exception cref="ArgumentNullException"> <paramref name="detectorName"/> is null. </exception> public async virtual Task<Response<bool>> ExistsAsync(string detectorName, DateTimeOffset? startTime = null, DateTimeOffset? endTime = null, string timeGrain = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(detectorName, nameof(detectorName)); using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.Exists"); scope.Start(); try { var response = await GetIfExistsAsync(detectorName, startTime, endTime, timeGrain, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } /// RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors /// ContextualPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} /// OperationId: CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse /// <summary> Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <returns> A collection of <see cref="CertificateOrderDetector" /> that may take multiple service requests to iterate over. </returns> public virtual Pageable<CertificateOrderDetector> GetAll(CancellationToken cancellationToken = default) { Page<CertificateOrderDetector> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetAll"); scope.Start(); try { var response = _certificateOrdersDiagnosticsRestClient.ListAppServiceCertificateOrderDetectorResponse(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value.Select(value => new CertificateOrderDetector(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } Page<CertificateOrderDetector> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetAll"); scope.Start(); try { var response = _certificateOrdersDiagnosticsRestClient.ListAppServiceCertificateOrderDetectorResponseNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value.Select(value => new CertificateOrderDetector(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); } /// RequestPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors /// ContextualPath: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName} /// OperationId: CertificateOrdersDiagnostics_ListAppServiceCertificateOrderDetectorResponse /// <summary> Description for Microsoft.CertificateRegistration to get the list of detectors for this RP. </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> /// <returns> An async collection of <see cref="CertificateOrderDetector" /> that may take multiple service requests to iterate over. </returns> public virtual AsyncPageable<CertificateOrderDetector> GetAllAsync(CancellationToken cancellationToken = default) { async Task<Page<CertificateOrderDetector>> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetAll"); scope.Start(); try { var response = await _certificateOrdersDiagnosticsRestClient.ListAppServiceCertificateOrderDetectorResponseAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value.Select(value => new CertificateOrderDetector(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } async Task<Page<CertificateOrderDetector>> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("CertificateOrderDetectorCollection.GetAll"); scope.Start(); try { var response = await _certificateOrdersDiagnosticsRestClient.ListAppServiceCertificateOrderDetectorResponseNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value.Select(value => new CertificateOrderDetector(this, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); } IEnumerator<CertificateOrderDetector> IEnumerable<CertificateOrderDetector>.GetEnumerator() { return GetAll().GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } IAsyncEnumerator<CertificateOrderDetector> IAsyncEnumerable<CertificateOrderDetector>.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } // Builders. // public ArmBuilder<Azure.Core.ResourceIdentifier, CertificateOrderDetector, AppServiceDetectorData> Construct() { } } }
62.621538
283
0.679098
[ "MIT" ]
ElleTojaroon/azure-sdk-for-net
sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetectorCollection.cs
20,352
C#
// // SecIdentity2.cs: Bindings the Security's sec_identity_t // // The difference between SecIdentity2 and SecIdentity is that the // SecIdentity2 is a binding for the new sec_identity_t API that was // introduced on iOS 12/OSX Mojave, while SecIdentity is the older API // that binds SecIdentityRef. // // Authors: // Miguel de Icaza (miguel@microsoft.com) // // Copyrigh 2018 Microsoft Inc // using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using ObjCRuntime; using Foundation; using CoreFoundation; #if !NET using NativeHandle = System.IntPtr; #endif namespace Security { #if NET [SupportedOSPlatform ("tvos12.0")] [SupportedOSPlatform ("macos10.14")] [SupportedOSPlatform ("ios12.0")] #else [TV (12,0)] [Mac (10,14)] [iOS (12,0)] [Watch (5,0)] #endif public class SecIdentity2 : NativeObject { #if NET [Preserve (Conditional = true)] internal SecIdentity2 (NativeHandle handle, bool owns) : base (handle, owns) {} #else internal SecIdentity2 (NativeHandle handle) : base (handle, false) {} [Preserve (Conditional = true)] public SecIdentity2 (NativeHandle handle, bool owns) : base (handle, owns) {} #endif #if !COREBUILD [DllImport (Constants.SecurityLibrary)] extern static IntPtr sec_identity_create (IntPtr secidentityHandle); public SecIdentity2 (SecIdentity identity) { if (identity == null) throw new ArgumentNullException (nameof (identity)); InitializeHandle (sec_identity_create (identity.Handle)); } [DllImport (Constants.SecurityLibrary)] extern static IntPtr sec_identity_create_with_certificates (IntPtr secidentityHandle, IntPtr arrayHandle); public SecIdentity2 (SecIdentity identity, params SecCertificate [] certificates) { if (identity == null) throw new ArgumentNullException (nameof (identity)); if (certificates == null) throw new ArgumentNullException (nameof (certificates)); using (var nsarray = NSArray.FromObjects (certificates)) InitializeHandle (sec_identity_create_with_certificates (identity.Handle, nsarray.Handle)); } [DllImport (Constants.SecurityLibrary)] extern static /* SecIdentityRef */ IntPtr sec_identity_copy_ref (/* OS_sec_identity */ IntPtr handle); public SecIdentity Identity => new SecIdentity (sec_identity_copy_ref (GetCheckedHandle ()), owns: true); [DllImport (Constants.SecurityLibrary)] extern static IntPtr sec_identity_copy_certificates_ref (IntPtr handle); public SecCertificate [] Certificates { get { var certArray = sec_identity_copy_certificates_ref (GetCheckedHandle ()); try { return NSArray.ArrayFromHandle<SecCertificate> (certArray); } finally { CFObject.CFRelease (certArray); } } } #if NET [SupportedOSPlatform ("tvos13.0")] [SupportedOSPlatform ("macos10.15")] [SupportedOSPlatform ("ios13.0")] #else [Watch (6,0)] [TV (13,0)] [Mac (10,15)] [iOS (13,0)] #endif [DllImport (Constants.SecurityLibrary)] [return: MarshalAs (UnmanagedType.I1)] static extern bool sec_identity_access_certificates (IntPtr identity, ref BlockLiteral block); internal delegate void AccessCertificatesHandler (IntPtr block, IntPtr cert); static readonly AccessCertificatesHandler access = TrampolineAccessCertificates; [MonoPInvokeCallback (typeof (AccessCertificatesHandler))] static void TrampolineAccessCertificates (IntPtr block, IntPtr cert) { var del = BlockLiteral.GetTarget<Action<SecCertificate2>> (block); if (del != null) del (new SecCertificate2 (cert, false)); } #if NET [SupportedOSPlatform ("tvos13.0")] [SupportedOSPlatform ("macos10.15")] [SupportedOSPlatform ("ios13.0")] #else [Watch (6,0)] [TV (13,0)] [Mac (10,15)] [iOS (13,0)] #endif // no [Async] as it can be called multiple times [BindingImpl (BindingImplOptions.Optimizable)] public bool AccessCertificates (Action</* sec_identity_t */SecCertificate2> handler) { if (handler == null) throw new ArgumentNullException (nameof (handler)); BlockLiteral block_handler = new BlockLiteral (); try { block_handler.SetupBlockUnsafe (access, handler); return sec_identity_access_certificates (GetCheckedHandle (), ref block_handler); } finally { block_handler.CleanupBlock (); } } #endif } }
29.401361
108
0.734845
[ "BSD-3-Clause" ]
bekir-ozturk/xamarin-macios
src/Security/SecIdentity2.cs
4,322
C#
using SharedLibraryCore; using SharedLibraryCore.Interfaces; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace IW4MAdmin.Application.Migration { /// <summary> /// helps facilitate the migration of configs from one version and or location /// to another /// </summary> class ConfigurationMigration { /// <summary> /// moves existing configs from the root folder into a configs folder /// </summary> public static void MoveConfigFolder10518(ILogger log) { string currentDirectory = Utilities.OperatingDirectory; // we don't want to do this for migrations or tests where the // property isn't initialized or it's wrong if (currentDirectory != null) { string configDirectory = Path.Join(currentDirectory, "Configuration"); if (!Directory.Exists(configDirectory)) { log?.WriteDebug($"Creating directory for configs {configDirectory}"); Directory.CreateDirectory(configDirectory); } var configurationFiles = Directory.EnumerateFiles(currentDirectory, "*.json") .Select(f => f.Split(Path.DirectorySeparatorChar).Last()) .Where(f => f.Count(c => c == '.') == 1); foreach (var configFile in configurationFiles) { log?.WriteDebug($"Moving config file {configFile}"); string destinationPath = Path.Join("Configuration", configFile); if (!File.Exists(destinationPath)) { File.Move(configFile, destinationPath); } } if (!File.Exists(Path.Join("Database", "Database.db")) && File.Exists("Database.db")) { log?.WriteDebug("Moving database file"); File.Move("Database.db", Path.Join("Database", "Database.db")); } } } } }
36.114754
93
0.552429
[ "MIT" ]
Frankity/IW4M-Admin
Application/Migration/ConfigurationMigration.cs
2,205
C#
using System.IO; using EasyAbp.Abp.TagHelperPlus.Books; using EasyAbp.Abp.TagHelperPlus.EntityFrameworkCore; using EasyAbp.Abp.TagHelperPlus.Menus; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using EasyAbp.Abp.TagHelperPlus.MultiTenancy; using Microsoft.OpenApi.Models; using Volo.Abp; using Volo.Abp.Account; using Volo.Abp.Account.Web; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic; using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared; using Volo.Abp.AspNetCore.Serilog; using Volo.Abp.AuditLogging.EntityFrameworkCore; using Volo.Abp.Autofac; using Volo.Abp.Data; using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore.SqlServer; using Volo.Abp.FeatureManagement; using Volo.Abp.FeatureManagement.EntityFrameworkCore; using Volo.Abp.Identity; using Volo.Abp.Identity.EntityFrameworkCore; using Volo.Abp.Identity.Web; using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.MultiTenancy; using Volo.Abp.PermissionManagement; using Volo.Abp.PermissionManagement.EntityFrameworkCore; using Volo.Abp.PermissionManagement.Identity; using Volo.Abp.SettingManagement.EntityFrameworkCore; using Volo.Abp.Swashbuckle; using Volo.Abp.TenantManagement; using Volo.Abp.TenantManagement.EntityFrameworkCore; using Volo.Abp.TenantManagement.Web; using Volo.Abp.Threading; using Volo.Abp.UI.Navigation; using Volo.Abp.VirtualFileSystem; namespace EasyAbp.Abp.TagHelperPlus { [DependsOn( typeof(AbpTagHelperPlusModule), typeof(AbpAuditLoggingEntityFrameworkCoreModule), typeof(AbpAutofacModule), typeof(AbpAccountWebModule), typeof(AbpAccountApplicationModule), typeof(AbpEntityFrameworkCoreSqlServerModule), typeof(AbpSettingManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementEntityFrameworkCoreModule), typeof(AbpPermissionManagementApplicationModule), typeof(AbpIdentityWebModule), typeof(AbpIdentityApplicationModule), typeof(AbpIdentityEntityFrameworkCoreModule), typeof(AbpPermissionManagementDomainIdentityModule), typeof(AbpFeatureManagementWebModule), typeof(AbpFeatureManagementApplicationModule), typeof(AbpFeatureManagementEntityFrameworkCoreModule), typeof(AbpTenantManagementWebModule), typeof(AbpTenantManagementApplicationModule), typeof(AbpTenantManagementEntityFrameworkCoreModule), typeof(AbpAspNetCoreMvcUiBasicThemeModule), typeof(AbpAspNetCoreSerilogModule), typeof(AbpSwashbuckleModule) )] public class TagHelperPlusWebUnifiedModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { var hostingEnvironment = context.Services.GetHostingEnvironment(); var configuration = context.Services.GetConfiguration(); Configure<AbpDbContextOptions>(options => { options.UseSqlServer(); }); if (hostingEnvironment.IsDevelopment()) { Configure<AbpVirtualFileSystemOptions>(options => { options.FileSets.ReplaceEmbeddedByPhysical<AbpTagHelperPlusModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}src{0}EasyAbp.Abp.TagHelperPlus", Path.DirectorySeparatorChar))); }); } context.Services.AddSwaggerGen( options => { options.SwaggerDoc("v1", new OpenApiInfo { Title = "TagHelperPlus API", Version = "v1" }); options.DocInclusionPredicate((docName, description) => true); options.CustomSchemaIds(type => type.FullName); }); Configure<AbpLocalizationOptions>(options => { options.Languages.Add(new LanguageInfo("cs", "cs", "Čeština")); options.Languages.Add(new LanguageInfo("en", "en", "English")); options.Languages.Add(new LanguageInfo("fr", "fr", "Français")); options.Languages.Add(new LanguageInfo("pt-BR", "pt-BR", "Português (Brasil)")); options.Languages.Add(new LanguageInfo("ru", "ru", "Русский")); options.Languages.Add(new LanguageInfo("tr", "tr", "Türkçe")); options.Languages.Add(new LanguageInfo("zh-Hans", "zh-Hans", "简体中文")); options.Languages.Add(new LanguageInfo("zh-Hant", "zh-Hant", "繁體中文")); }); Configure<AbpMultiTenancyOptions>(options => { options.IsEnabled = MultiTenancyConsts.IsEnabled; }); context.Services.AddAbpDbContext<UnifiedDbContext>(options => { options.AddRepository<Book, BookRepository>(); }); Configure<AbpNavigationOptions>(options => { options.MenuContributors.Add(new DemoMenuContributor()); }); } public override void OnApplicationInitialization(ApplicationInitializationContext context) { var app = context.GetApplicationBuilder(); var env = context.GetEnvironment(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseErrorPage(); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseRouting(); app.UseAuthentication(); if (MultiTenancyConsts.IsEnabled) { app.UseMultiTenancy(); } app.UseAbpRequestLocalization(); app.UseAuthorization(); app.UseSwagger(); app.UseSwaggerUI(options => { options.SwaggerEndpoint("/swagger/v1/swagger.json", "Support APP API"); }); app.UseAuditing(); app.UseAbpSerilogEnrichers(); app.UseConfiguredEndpoints(); using (var scope = context.ServiceProvider.CreateScope()) { AsyncHelper.RunSync(async () => { await scope.ServiceProvider .GetRequiredService<IDataSeeder>() .SeedAsync(); }); } } } }
37.653179
226
0.638471
[ "MIT" ]
EasyAbp/Abp.TagHelperPlus
host/EasyAbp.Abp.TagHelperPlus.Web.Unified/TagHelperPlusWebUnifiedModule.cs
6,543
C#
global using CommonBasicLibraries.CollectionClasses; global using bb = CommonBasicLibraries.BasicDataSettingsAndProcesses.BasicDataFunctions; global using ff = CommonBasicLibraries.AdvancedGeneralFunctionsAndProcesses.FileFunctions.FileFunctions; global using BasicBlazorLibrary.Components.Basic; global using Microsoft.AspNetCore.Components; global using BasicBlazorLibrary.Components.BaseClasses; global using CommonBasicLibraries.AdvancedGeneralFunctionsAndProcesses.BasicExtensions; global using cc = CommonBasicLibraries.BasicDataSettingsAndProcesses.SColorString; global using RemoteControlSharedLibrary.Mocks.Services;
69.555556
104
0.899361
[ "MIT" ]
musictopia2/MockRemoteControl
Host/Host.Blazor/GlobalUsings.cs
628
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ovow.Framework.Messaging { public interface IMessage { Guid Id { get; } DateTime Timestamp { get; } } }
14.611111
35
0.676806
[ "Apache-2.0" ]
daxnet/ovow
src/Ovow.Framework/Messaging/IMessage.cs
265
C#
#region License // Copyright(c) 2020 GrappTec // // 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. #endregion using System.Threading; // ReSharper disable UnusedMember.Global namespace DotNetAppBase.Std.Library.Data { public class IdentityGenerator { private long _seed; public long Current => Interlocked.Read(ref _seed); public long Get() => Interlocked.Increment(ref _seed); public int GetInt32() => (int) Interlocked.Increment(ref _seed); } }
34.840909
72
0.739074
[ "MIT" ]
GrappTec/DotNetAppBase
src/DotNetAppBase.Std.Library/Data/IdentityGenerator.cs
1,535
C#
#region using System.Collections.Generic; using Confuser.Core; using Confuser.Core.Services; using dnlib.DotNet; using dnlib.DotNet.Emit; #endregion namespace Confuser.Protections.Compress { internal enum Mode { Normal, Dynamic } internal interface IKeyDeriver { void Init(ConfuserContext ctx, RandomGenerator random); uint[] DeriveKey(uint[] a, uint[] b); IEnumerable<Instruction> EmitDerivation(MethodDef method, ConfuserContext ctx, Local dst, Local src); } }
21.24
109
0.696798
[ "MIT" ]
Dekryptor/KoiVM-Virtualization
Confuser.Protections/Compress/IKeyDeriver.cs
533
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Runtime.InteropServices; using System.Threading; using System.Threading.Tasks; namespace FASTER.core { /// <summary> /// Managed device using .NET streams /// </summary> public sealed class ManagedLocalStorageDevice : StorageDeviceBase { private readonly bool preallocateFile; private readonly bool deleteOnClose; private readonly bool osReadBuffering; private readonly SafeConcurrentDictionary<int, (AsyncPool<Stream>, AsyncPool<Stream>)> logHandles; private readonly SectorAlignedBufferPool pool; /// <summary> /// Number of pending reads on device /// </summary> private int numPending = 0; private bool _disposed; /// <summary> /// /// </summary> /// <param name="filename">File name (or prefix) with path</param> /// <param name="preallocateFile"></param> /// <param name="deleteOnClose"></param> /// <param name="capacity">The maximal number of bytes this storage device can accommondate, or CAPACITY_UNSPECIFIED if there is no such limit</param> /// <param name="recoverDevice">Whether to recover device metadata from existing files</param> /// <param name="osReadBuffering">Enable OS read buffering</param> public ManagedLocalStorageDevice(string filename, bool preallocateFile = false, bool deleteOnClose = false, long capacity = Devices.CAPACITY_UNSPECIFIED, bool recoverDevice = false, bool osReadBuffering = false) : base(filename, GetSectorSize(filename), capacity) { pool = new(1, 1); ThrottleLimit = 120; string path = new FileInfo(filename).Directory.FullName; if (!Directory.Exists(path)) Directory.CreateDirectory(path); this._disposed = false; this.preallocateFile = preallocateFile; this.deleteOnClose = deleteOnClose; this.osReadBuffering = osReadBuffering; logHandles = new(); if (recoverDevice) RecoverFiles(); } /// <inheritdoc /> // We do not throttle ManagedLocalStorageDevice because our AsyncPool of handles takes care of this public override bool Throttle() => false; private void RecoverFiles() { FileInfo fi = new(FileName); // may not exist DirectoryInfo di = fi.Directory; if (!di.Exists) return; string bareName = fi.Name; List<int> segids = new(); foreach (FileInfo item in di.GetFiles(bareName + "*")) { segids.Add(Int32.Parse(item.Name.Replace(bareName, "").Replace(".", ""))); } segids.Sort(); int prevSegmentId = -1; foreach (int segmentId in segids) { if (segmentId != prevSegmentId + 1) { startSegment = segmentId; } else { endSegment = segmentId; } prevSegmentId = segmentId; } // No need to populate map because logHandles use Open or create on files. } /// <summary> /// Read async /// </summary> /// <param name="segmentId"></param> /// <param name="sourceAddress"></param> /// <param name="destinationAddress"></param> /// <param name="readLength"></param> /// <param name="callback"></param> /// <param name="context"></param> public override void ReadAsync(int segmentId, ulong sourceAddress, IntPtr destinationAddress, uint readLength, DeviceIOCompletionCallback callback, object context) { Stream logReadHandle = null; AsyncPool<Stream> streampool = null; uint errorCode = 0; Task<int> readTask = default; bool gotHandle; int numBytes = 0; #if NETSTANDARD2_1 || NET UnmanagedMemoryManager<byte> umm = default; #else SectorAlignedMemory memory = default; #endif try { Interlocked.Increment(ref numPending); streampool = GetOrAddHandle(segmentId).Item1; gotHandle = streampool.TryGet(out logReadHandle); if (gotHandle) { logReadHandle.Seek((long)sourceAddress, SeekOrigin.Begin); #if NETSTANDARD2_1 || NET unsafe { umm = new UnmanagedMemoryManager<byte>((byte*)destinationAddress, (int)readLength); } // FileStream.ReadAsync is not thread-safe hence need a lock here lock (this) { readTask = logReadHandle.ReadAsync(umm.Memory).AsTask(); } #else memory = pool.Get((int)readLength); // FileStream.ReadAsync is not thread-safe hence need a lock here lock (this) { readTask = logReadHandle.ReadAsync(memory.buffer, 0, (int)readLength); } #endif } } catch { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif if (logReadHandle != null) streampool?.Return(logReadHandle); // Issue user callback callback(uint.MaxValue, 0, context); return; } _ = Task.Run(async () => { if (!gotHandle) { try { logReadHandle = await streampool.GetAsync().ConfigureAwait(false); logReadHandle.Seek((long)sourceAddress, SeekOrigin.Begin); #if NETSTANDARD2_1 || NET unsafe { umm = new UnmanagedMemoryManager<byte>((byte*)destinationAddress, (int)readLength); } // FileStream.ReadAsync is not thread-safe hence need a lock here lock (this) { readTask = logReadHandle.ReadAsync(umm.Memory).AsTask(); } #else memory = pool.Get((int)readLength); // FileStream.ReadAsync is not thread-safe hence need a lock here lock (this) { readTask = logReadHandle.ReadAsync(memory.buffer, 0, (int)readLength); } #endif } catch { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif if (logReadHandle != null) streampool?.Return(logReadHandle); // Issue user callback callback(uint.MaxValue, 0, context); return; } } try { numBytes = await readTask.ConfigureAwait(false); #if !(NETSTANDARD2_1 || NET) unsafe { fixed (void* source = memory.buffer) Buffer.MemoryCopy(source, (void*)destinationAddress, numBytes, numBytes); } #endif } catch (Exception ex) { if (ex.InnerException != null && ex.InnerException is IOException ioex) errorCode = (uint)(ioex.HResult & 0x0000FFFF); else errorCode = uint.MaxValue; numBytes = 0; } finally { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif // Sequentialize all reads from same handle streampool?.Return(logReadHandle); // Issue user callback callback(errorCode, (uint)numBytes, context); } }); } /// <summary> /// /// </summary> /// <param name="sourceAddress"></param> /// <param name="segmentId"></param> /// <param name="destinationAddress"></param> /// <param name="numBytesToWrite"></param> /// <param name="callback"></param> /// <param name="context"></param> public override void WriteAsync(IntPtr sourceAddress, int segmentId, ulong destinationAddress, uint numBytesToWrite, DeviceIOCompletionCallback callback, object context) { Stream logWriteHandle = null; AsyncPool<Stream> streampool = null; uint errorCode = 0; Task writeTask = default; bool gotHandle; #if NETSTANDARD2_1 || NET UnmanagedMemoryManager<byte> umm = default; #else SectorAlignedMemory memory = default; #endif HandleCapacity(segmentId); try { Interlocked.Increment(ref numPending); streampool = GetOrAddHandle(segmentId).Item2; gotHandle = streampool.TryGet(out logWriteHandle); if (gotHandle) { logWriteHandle.Seek((long)destinationAddress, SeekOrigin.Begin); #if NETSTANDARD2_1 || NET unsafe { umm = new UnmanagedMemoryManager<byte>((byte*)sourceAddress, (int)numBytesToWrite); } // FileStream.WriteAsync is not thread-safe hence need a lock here lock (this) { writeTask = logWriteHandle.WriteAsync(umm.Memory).AsTask(); } #else memory = pool.Get((int)numBytesToWrite); unsafe { fixed (void* destination = memory.buffer) { Buffer.MemoryCopy((void*)sourceAddress, destination, numBytesToWrite, numBytesToWrite); } } // FileStream.WriteAsync is not thread-safe hence need a lock here lock (this) { writeTask = logWriteHandle.WriteAsync(memory.buffer, 0, (int)numBytesToWrite); } #endif } } catch { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif if (logWriteHandle != null) streampool?.Return(logWriteHandle); // Issue user callback callback(uint.MaxValue, 0, context); return; } _ = Task.Run(async () => { if (!gotHandle) { try { logWriteHandle = await streampool.GetAsync().ConfigureAwait(false); logWriteHandle.Seek((long)destinationAddress, SeekOrigin.Begin); #if NETSTANDARD2_1 || NET unsafe { umm = new UnmanagedMemoryManager<byte>((byte*)sourceAddress, (int)numBytesToWrite); } // FileStream.WriteAsync is not thread-safe hence need a lock here lock (this) { writeTask = logWriteHandle.WriteAsync(umm.Memory).AsTask(); } #else memory = pool.Get((int)numBytesToWrite); unsafe { fixed (void* destination = memory.buffer) { Buffer.MemoryCopy((void*)sourceAddress, destination, numBytesToWrite, numBytesToWrite); } } // FileStream.WriteAsync is not thread-safe hence need a lock here lock (this) { writeTask = logWriteHandle.WriteAsync(memory.buffer, 0, (int)numBytesToWrite); } #endif } catch { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif if (logWriteHandle != null) streampool?.Return(logWriteHandle); // Issue user callback callback(uint.MaxValue, 0, context); return; } } try { await writeTask.ConfigureAwait(false); } catch (Exception ex) { if (ex.InnerException != null && ex.InnerException is IOException ioex) errorCode = (uint)(ioex.HResult & 0x0000FFFF); else errorCode = uint.MaxValue; numBytesToWrite = 0; } finally { Interlocked.Decrement(ref numPending); // Perform pool returns and disposals #if !(NETSTANDARD2_1 || NET) memory?.Return(); #endif // Sequentialize all writes to same handle await ((FileStream)logWriteHandle).FlushAsync().ConfigureAwait(false); streampool?.Return(logWriteHandle); // Issue user callback callback(errorCode, numBytesToWrite, context); } }); } /// <summary> /// <see cref="IDevice.RemoveSegment(int)"/> /// </summary> /// <param name="segment"></param> public override void RemoveSegment(int segment) { if (logHandles.TryRemove(segment, out (AsyncPool<Stream>, AsyncPool<Stream>) logHandle)) { logHandle.Item1.Dispose(); logHandle.Item2.Dispose(); File.Delete(GetSegmentName(segment)); } } /// <summary> /// <see cref="IDevice.RemoveSegmentAsync(int, AsyncCallback, IAsyncResult)"/> /// </summary> /// <param name="segment"></param> /// <param name="callback"></param> /// <param name="result"></param> public override void RemoveSegmentAsync(int segment, AsyncCallback callback, IAsyncResult result) { RemoveSegment(segment); callback(result); } /// <inheritdoc/> public override long GetFileSize(int segment) { if (segmentSize > 0) return segmentSize; var pool = GetOrAddHandle(segment); if (!pool.Item1.TryGet(out var stream)) stream = pool.Item1.Get(); long size = stream.Length; pool.Item1.Return(stream); return size; } /// <summary> /// Close device /// </summary> public override void Dispose() { _disposed = true; foreach (var entry in logHandles) { entry.Value.Item1.Dispose(); entry.Value.Item2.Dispose(); if (deleteOnClose) File.Delete(GetSegmentName(entry.Key)); } pool.Free(); } private string GetSegmentName(int segmentId) { return FileName + "." + segmentId; } private static uint GetSectorSize(string filename) { #if NETSTANDARD || NET if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { Debug.WriteLine("Assuming 512 byte sector alignment for disk with file " + filename); return 512; } #endif if (!Native32.GetDiskFreeSpace(filename.Substring(0, 3), out uint lpSectorsPerCluster, out uint _sectorSize, out uint lpNumberOfFreeClusters, out uint lpTotalNumberOfClusters)) { Debug.WriteLine("Unable to retrieve information for disk " + filename.Substring(0, 3) + " - check if the disk is available and you have specified the full path with drive name. Assuming sector size of 512 bytes."); _sectorSize = 512; } return _sectorSize; } private Stream CreateReadHandle(int segmentId) { const int FILE_FLAG_NO_BUFFERING = 0x20000000; FileOptions fo = FileOptions.WriteThrough | FileOptions.Asynchronous | FileOptions.None; if (!osReadBuffering) fo |= (FileOptions)FILE_FLAG_NO_BUFFERING; var logReadHandle = new FileStream( GetSegmentName(segmentId), FileMode.OpenOrCreate, FileAccess.Read, FileShare.ReadWrite, 512, fo); return logReadHandle; } private Stream CreateWriteHandle(int segmentId) { const int FILE_FLAG_NO_BUFFERING = 0x20000000; FileOptions fo = (FileOptions)FILE_FLAG_NO_BUFFERING | FileOptions.WriteThrough | FileOptions.Asynchronous | FileOptions.None; var logWriteHandle = new FileStream( GetSegmentName(segmentId), FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite, 512, fo); if (preallocateFile && segmentSize != -1) SetFileSize(logWriteHandle, segmentSize); return logWriteHandle; } private (AsyncPool<Stream>, AsyncPool<Stream>) AddHandle(int _segmentId) { return (new AsyncPool<Stream>(ThrottleLimit, () => CreateReadHandle(_segmentId)), new AsyncPool<Stream>(ThrottleLimit, () => CreateWriteHandle(_segmentId))); } private (AsyncPool<Stream>, AsyncPool<Stream>) GetOrAddHandle(int _segmentId) { if (logHandles.TryGetValue(_segmentId, out var h)) { return h; } var result = logHandles.GetOrAdd(_segmentId, e => AddHandle(e)); if (_disposed) { // If disposed, dispose the fixed pools and return the (disposed) result foreach (var entry in logHandles) { entry.Value.Item1.Dispose(); entry.Value.Item2.Dispose(); if (deleteOnClose) File.Delete(GetSegmentName(entry.Key)); } } return result; } /// <summary> /// Sets file size to the specified value. /// Does not reset file seek pointer to original location. /// </summary> /// <param name="logHandle"></param> /// <param name="size"></param> /// <returns></returns> private bool SetFileSize(Stream logHandle, long size) { logHandle.SetLength(size); return true; } } }
36.510526
230
0.488444
[ "MIT" ]
4nonym0us/FASTER
cs/src/core/Device/ManagedLocalStorageDevice.cs
20,813
C#
using System.Collections.Generic; using Tasky.DAL; namespace Tasky.BL.Managers { public static class TaskManager { public static Task GetTask(int id) { return TaskRepository.GetTask(id); } public static IList<Task> GetTasks() { return new List<Task>(TaskRepository.GetTasks()); } public static int SaveTask(Task item) { return TaskRepository.SaveTask(item); } public static int DeleteTask(int id) { return TaskRepository.DeleteTask(id); } } }
20.133333
61
0.569536
[ "Apache-2.0" ]
vpdejesus/mobile-samples
TaskyPro-Calabash/Tasky.Core/BusinessLayer/Managers/TaskManager.cs
604
C#
using EPiServer.Framework; using EPiServer.Framework.Initialization; using System.Web.Routing; using System.Web.Mvc; using Creuna.Basis.Revisited.Web.Business; namespace Creuna.Basis.Revisited.Web.App_Start { [ModuleDependency(typeof(WebApiInitializer))] [InitializableModule] public class MvcRoutesInitializer : IInitializableModule { public void Initialize(InitializationEngine context) { RegisterRoutes(RouteTable.Routes); } public void RegisterRoutes(RouteCollection routes) { routes.MapRoute( name: ApplicationConstants.CustomRoutes.NotFound, url: "error/404", defaults: new { controller = "ErrorPages", action = "NotFound" } ); routes.MapRoute( name: ApplicationConstants.CustomRoutes.Login, url: "login", defaults: new { controller = "Account", action = "Login" } ); routes.MapRoute( name: ApplicationConstants.CustomRoutes.Logout, url: "logout", defaults: new { controller = "Account", action = "Logout" } ); } public void Uninitialize(InitializationEngine context) {} } }
32.317073
80
0.58566
[ "Unlicense" ]
Arthyon/Episerver.Basis.Slim
src/Template/Creuna.Basis.Revisited.Web/App_Start/MvcRoutesInitializer.cs
1,327
C#
namespace ManyClients { partial class Client { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // button1 // this.button1.Location = new System.Drawing.Point(149, 12); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(106, 23); this.button1.TabIndex = 0; this.button1.Text = "Send message"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // label1 // this.label1.Location = new System.Drawing.Point(12, 38); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(415, 335); this.label1.TabIndex = 1; this.label1.Text = "msg:"; // // timer1 // this.timer1.Interval = 10; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // Client // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(439, 382); this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Name = "Client"; this.Text = "Client"; this.ResumeLayout(false); } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Timer timer1; } }
35.6875
150
0.574781
[ "MIT" ]
RainsSoft/lidgren-network-gen3
Samples/LibraryTestSamples/ManySample/ManyClients/Client.Designer.cs
2,857
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Linq; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Azure.Batch; using Microsoft.Azure.Batch.Auth; using Microsoft.Azure.Documents; using Microsoft.Azure.Documents.Client; using Microsoft.Azure.Search; using Microsoft.Azure.Search.Models; using Microsoft.WindowsAzure.Storage; using Microsoft.WindowsAzure.Storage.Auth; using Msr.Odr.Admin.Commands.Options; using Msr.Odr.Model.Configuration; using Msr.Odr.Model.Datasets; using Msr.Odr.Model.UserData; using Msr.Odr.Services.Batch; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace Msr.Odr.Admin.Dataset { public class DatasetImportTask { public CosmosOptions CosmosOptions { get; } public StorageOptions StorageOptions { get; } public ContactInfoOptions ContactOptions { get; } public string DatasetUrl { get; } public string StorageName { get; } public DatasetImportTask( CosmosOptions cosmosOptions, StorageOptions storageOptions, ContactInfoOptions contactOptions, string datasetUrl, string storageName) { CosmosOptions = cosmosOptions; StorageOptions = storageOptions; ContactOptions = contactOptions; DatasetUrl = datasetUrl; StorageName = storageName; } public async Task<int> ExecuteAsync() { Console.WriteLine($"Importing {DatasetUrl}"); using(var httpClient = new HttpClient()) { var result = await httpClient.GetAsync(DatasetUrl); result.EnsureSuccessStatusCode(); var dataset = JsonConvert.DeserializeObject<DatasetStorageItem>(await result.Content.ReadAsStringAsync()); Console.WriteLine($"Found Doc: {dataset.Id} - {dataset.Name}"); var storageCredentials = new StorageCredentials(StorageOptions.Account, StorageOptions.Key); var storageAccount = new CloudStorageAccount(storageCredentials, true); var blobClient = storageAccount.CreateCloudBlobClient(); var containerRef = blobClient.GetContainerReference(StorageName); using (var client = new DocumentClient( new Uri($"https://{CosmosOptions.Endpoint}.documents.azure.com/"), CosmosOptions.Key, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct, ConnectionProtocol = Protocol.Tcp }, ConsistencyLevel.Session)) { await client.OpenAsync(); var license = await client.ReadDocumentAsync<LicenseStorageItem>( UriFactory.CreateDocumentUri(CosmosOptions.Database, CosmosOptions.DatasetsCollection, dataset.LicenseId.ToString()), new RequestOptions { PartitionKey = new PartitionKey(WellKnownIds.LicenseDatasetId.ToString()) }); // Attachment details var blob = new { StorageType = "blob", StorageOptions.Account, Container = StorageName, MediaLink = containerRef.Uri.ToString(), }; // Convert Dataset to Nomination var nomination = DatasetConvert.DatasetToNomination(dataset, ContactOptions, license); Console.WriteLine(JsonConvert.SerializeObject(dataset, Formatting.Indented)); Console.WriteLine(JsonConvert.SerializeObject(nomination, Formatting.Indented)); Console.WriteLine(JsonConvert.SerializeObject(blob, Formatting.Indented)); // Add the nomination document var uri = UriFactory.CreateDocumentCollectionUri( CosmosOptions.Database, CosmosOptions.UserDataCollection); var options = new RequestOptions { PartitionKey = new PartitionKey(nomination.DatasetId.ToString()) }; var newDoc = await client.UpsertDocumentAsync(uri, nomination, options); // Add the attachment to the nomination (with blob storage details) var datasetRecordLink = new Attachment { Id = "Content", ContentType = "x-azure-blockstorage", MediaLink = blob.MediaLink, }; datasetRecordLink.SetPropertyValue("storageType", "blob"); datasetRecordLink.SetPropertyValue("container", blob.Container); datasetRecordLink.SetPropertyValue("account", blob.Account); await client.UpsertAttachmentAsync(newDoc.Resource.SelfLink, datasetRecordLink, options); Console.WriteLine($"Added nomination document."); } } return 0; } } }
41.412214
141
0.577143
[ "MIT" ]
Sahaj26/opendatacloud
src/Msr.Odr.Admin/Dataset/DatasetImportTask.cs
5,425
C#
/* * MIT License * * Copyright (c) 2021 plexdata.de * * 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. */ namespace Plexdata.SimpleReferenceFinder.Dialogs { partial class ErrorDetailsDialog { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("Node1"); System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("Node2"); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("Node0", new System.Windows.Forms.TreeNode[] { treeNode1, treeNode2}); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ErrorDetailsDialog)); this.btnClose = new System.Windows.Forms.Button(); this.spcDetails = new Plexdata.SimpleReferenceFinder.Controls.SplitContainerEx(); this.trvDetails = new System.Windows.Forms.TreeView(); this.txtDetails = new System.Windows.Forms.TextBox(); this.cmsMain = new System.Windows.Forms.ContextMenuStrip(this.components); this.mnuCopy = new System.Windows.Forms.ToolStripMenuItem(); this.lblType = new System.Windows.Forms.Label(); this.lblText = new System.Windows.Forms.Label(); this.txtType = new System.Windows.Forms.TextBox(); this.txtText = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize)(this.spcDetails)).BeginInit(); this.spcDetails.Panel1.SuspendLayout(); this.spcDetails.Panel2.SuspendLayout(); this.spcDetails.SuspendLayout(); this.cmsMain.SuspendLayout(); this.SuspendLayout(); // // btnClose // this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnClose.Location = new System.Drawing.Point(497, 326); this.btnClose.Name = "btnClose"; this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.TabIndex = 0; this.btnClose.Text = "&Close"; this.btnClose.UseVisualStyleBackColor = true; // // spcDetails // this.spcDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.spcDetails.Location = new System.Drawing.Point(12, 70); this.spcDetails.Name = "spcDetails"; // // spcDetails.Panel1 // this.spcDetails.Panel1.Controls.Add(this.trvDetails); // // spcDetails.Panel2 // this.spcDetails.Panel2.Controls.Add(this.txtDetails); this.spcDetails.Size = new System.Drawing.Size(560, 250); this.spcDetails.SplitterArrangeEnabled = true; this.spcDetails.SplitterArrangePosition = 30; this.spcDetails.SplitterDistance = 186; this.spcDetails.TabIndex = 5; this.spcDetails.TabStop = false; // // trvDetails // this.trvDetails.Dock = System.Windows.Forms.DockStyle.Fill; this.trvDetails.HideSelection = false; this.trvDetails.Location = new System.Drawing.Point(0, 0); this.trvDetails.Name = "trvDetails"; treeNode1.Name = "Node1"; treeNode1.Text = "Node1"; treeNode2.Name = "Node2"; treeNode2.Text = "Node2"; treeNode3.Name = "Node0"; treeNode3.Text = "Node0"; this.trvDetails.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { treeNode3}); this.trvDetails.Size = new System.Drawing.Size(186, 250); this.trvDetails.TabIndex = 0; // // txtDetails // this.txtDetails.BackColor = System.Drawing.SystemColors.Window; this.txtDetails.ContextMenuStrip = this.cmsMain; this.txtDetails.Dock = System.Windows.Forms.DockStyle.Fill; this.txtDetails.Location = new System.Drawing.Point(0, 0); this.txtDetails.Multiline = true; this.txtDetails.Name = "txtDetails"; this.txtDetails.ReadOnly = true; this.txtDetails.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.txtDetails.Size = new System.Drawing.Size(370, 250); this.txtDetails.TabIndex = 0; this.txtDetails.WordWrap = false; // // cmsMain // this.cmsMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.mnuCopy}); this.cmsMain.Name = "cmsMain"; this.cmsMain.Size = new System.Drawing.Size(172, 26); // // mnuCopy // this.mnuCopy.Name = "mnuCopy"; this.mnuCopy.Size = new System.Drawing.Size(171, 22); this.mnuCopy.Text = "&Copy to Clipboard"; this.mnuCopy.Click += new System.EventHandler(this.OnMenuCopyClick); // // lblType // this.lblType.AutoSize = true; this.lblType.Location = new System.Drawing.Point(12, 15); this.lblType.Name = "lblType"; this.lblType.Size = new System.Drawing.Size(34, 15); this.lblType.TabIndex = 1; this.lblType.Text = "T&ype:"; // // lblText // this.lblText.AutoSize = true; this.lblText.Location = new System.Drawing.Point(12, 44); this.lblText.Name = "lblText"; this.lblText.Size = new System.Drawing.Size(31, 15); this.lblText.TabIndex = 3; this.lblText.Text = "Te&xt:"; // // txtType // this.txtType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtType.BackColor = System.Drawing.SystemColors.Window; this.txtType.ContextMenuStrip = this.cmsMain; this.txtType.Location = new System.Drawing.Point(52, 12); this.txtType.Name = "txtType"; this.txtType.ReadOnly = true; this.txtType.Size = new System.Drawing.Size(520, 23); this.txtType.TabIndex = 2; // // txtText // this.txtText.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.txtText.BackColor = System.Drawing.SystemColors.Window; this.txtText.ContextMenuStrip = this.cmsMain; this.txtText.Location = new System.Drawing.Point(52, 41); this.txtText.Name = "txtText"; this.txtText.ReadOnly = true; this.txtText.Size = new System.Drawing.Size(520, 23); this.txtText.TabIndex = 4; // // ErrorDetailsDialog // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Window; this.CancelButton = this.btnClose; this.ClientSize = new System.Drawing.Size(584, 361); this.Controls.Add(this.txtText); this.Controls.Add(this.txtType); this.Controls.Add(this.lblText); this.Controls.Add(this.lblType); this.Controls.Add(this.spcDetails); this.Controls.Add(this.btnClose); this.DoubleBuffered = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(500, 300); this.Name = "ErrorDetailsDialog"; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Error Details"; this.spcDetails.Panel1.ResumeLayout(false); this.spcDetails.Panel2.ResumeLayout(false); this.spcDetails.Panel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.spcDetails)).EndInit(); this.spcDetails.ResumeLayout(false); this.cmsMain.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.Button btnClose; private Plexdata.SimpleReferenceFinder.Controls.SplitContainerEx spcDetails; private System.Windows.Forms.TreeView trvDetails; private System.Windows.Forms.TextBox txtDetails; private System.Windows.Forms.Label lblType; private System.Windows.Forms.Label lblText; private System.Windows.Forms.TextBox txtType; private System.Windows.Forms.TextBox txtText; private System.Windows.Forms.ContextMenuStrip cmsMain; private System.Windows.Forms.ToolStripMenuItem mnuCopy; } }
48.565041
160
0.600234
[ "MIT" ]
akesseler/SimpleReferenceFinder
code/src/SimpleReferenceFinder/Dialogs/ErrorDetailsDialog.Designer.cs
11,949
C#
// Copyright (c) 2010-2014 SharpDX - Alexandre Mutel // // 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 CorApi.Portable; using System; using System.Collections.Generic; namespace SharpDX { /// <summary> /// A class to dispose <see cref="IDisposable"/> instances and allocated unmanaged memory. /// </summary> public class DisposeCollector : DisposeBase { private List<object> disposables; /// <summary> /// Gets the number of elements to dispose. /// </summary> /// <value>The number of elements to dispose.</value> public int Count { get { return disposables.Count; } } /// <summary> /// Disposes all object collected by this class and clear the list. The collector can still be used for collecting. /// </summary> /// <remarks> /// To completely dispose this instance and avoid further dispose, use <see cref="Dispose"/> method instead. /// </remarks> public void DisposeAndClear() { if (disposables == null) { return; } for (int i = disposables.Count - 1; i >= 0; i--) { var valueToDispose = disposables[i]; if (valueToDispose is IDisposable) { ((IDisposable)valueToDispose).Dispose(); } else { Utilities.FreeMemory((IntPtr)valueToDispose); } disposables.RemoveAt(i); } disposables.Clear(); } /// <summary> /// Disposes of object resources. /// </summary> /// <param name="disposeManagedResources">If true, managed resources should be /// disposed of in addition to unmanaged resources.</param> protected override void Dispose(bool disposeManagedResources) { DisposeAndClear(); disposables = null; } /// <summary> /// Adds a <see cref="IDisposable"/> object or a <see cref="IntPtr"/> allocated using <see cref="Utilities.AllocateMemory"/> to the list of the objects to dispose. /// </summary> /// <param name="toDispose">To dispose.</param> /// <exception cref="ArgumentException">If toDispose argument is not IDisposable or a valid memory pointer allocated by <see cref="Utilities.AllocateMemory"/></exception> public T Collect<T>(T toDispose) { if (!(toDispose is IDisposable || toDispose is IntPtr)) throw new ArgumentException("Argument must be IDisposable or IntPtr"); // Check memory alignment if (toDispose is IntPtr) { var memoryPtr = (IntPtr)(object)toDispose; if (!Utilities.IsMemoryAligned(memoryPtr)) throw new ArgumentException("Memory pointer is invalid. Memory must have been allocated with Utilties.AllocateMemory"); } if (!Equals(toDispose, default(T))) { if (disposables == null) disposables = new List<object>(); if (!disposables.Contains(toDispose)) { disposables.Add(toDispose); } } return toDispose; } /// <summary> /// Dispose a disposable object and set the reference to null. Removes this object from this instance.. /// </summary> /// <param name="objectToDispose">Object to dispose.</param> public void RemoveAndDispose<T>(ref T objectToDispose) { if (disposables != null) { Remove(objectToDispose); var disposableObject = objectToDispose as IDisposable; if (disposableObject != null) { // Dispose the component disposableObject.Dispose(); } else { var localData = (object)objectToDispose; var dataPointer = (IntPtr) localData; Utilities.FreeMemory(dataPointer); } objectToDispose = default(T); } } /// <summary> /// Removes a disposable object to the list of the objects to dispose. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="toDisposeArg">To dispose.</param> public void Remove<T>(T toDisposeArg) { if (disposables != null && disposables.Contains(toDisposeArg)) { disposables.Remove(toDisposeArg); } } } }
37.88961
178
0.572579
[ "MIT" ]
juanfranblanco/AvalonStudio
AvalonStudio/PortableCom/DisposeCollector.cs
5,837
C#
// <copyright file="ITimerFactory.cs" company="Antonio Invernizzi V"> // Copyright (c) Antonio Invernizzi V. All rights reserved. // </copyright> namespace Infrastructure.Contracts.Factories { using Infrastructure.Contracts.DotNETAbstractions; using System.Timers; /// <summary> /// Contract for a class that provides an ITimer. Abstracted for unit testing. /// </summary> public interface ITimerFactory { /// <summary> /// Creates the specified time. /// </summary> /// <param name="time">The time.</param> /// <param name="elapsed">The actions triggered when the timeout elapses.</param> /// <returns> /// An ITimer object. /// </returns> public ITimer Create(int time, params ElapsedEventHandler[] elapsed); } }
31.615385
89
0.635036
[ "MIT" ]
AltarnRain/LaunchIt
Infrastructure/Contracts/Factories/ITimerFactory.cs
824
C#
using System; namespace testapp.Models { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
17.166667
70
0.660194
[ "MIT" ]
programad/semanticversiontest
testapp/testapp/Models/ErrorViewModel.cs
206
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ITVComponents.Plugins; namespace ITVComponents.DataAccess.Linq { public interface IDataContext:IPlugin { /// <summary> /// Gets a List of available Tables for this DataContext /// </summary> IDictionary<string, IEnumerable<DynamicResult>> Tables { get; } } }
23.411765
72
0.68593
[ "MIT" ]
ITVenture/ITVComponents
ITVComponents.DataAccess.Linq/IDataContext.cs
400
C#
#if WITH_GAME #if PLATFORM_64BITS using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { public partial class UBoneMaskFilter { static readonly int BlendPoses__Offset; public TStructArray<FInputBlendPose> BlendPoses { get{ CheckIsValid();return new TStructArray<FInputBlendPose>((FScriptArray)Marshal.PtrToStructure(_this.Get()+BlendPoses__Offset, typeof(FScriptArray)));} set{ CheckIsValid();Marshal.StructureToPtr(value.InterArray, _this.Get()+BlendPoses__Offset, false);} } static UBoneMaskFilter() { IntPtr NativeClassPtr=GetNativeClassFromName("BoneMaskFilter"); BlendPoses__Offset=GetPropertyOffset(NativeClassPtr,"BlendPoses"); } } } #endif #endif
25.433333
157
0.778506
[ "MIT" ]
RobertAcksel/UnrealCS
Engine/Plugins/UnrealCS/UECSharpDomain/UnrealEngine/GeneratedScriptFile_Game_64bits/UBoneMaskFilter_FixSize.cs
763
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using cout = System.Console; namespace MQ.Console { public static class OutWriter { public static StreamWriter FileWriter() { FileStream ostrm; StreamWriter writer; TextWriter oldOut = cout.Out; try { ostrm = new FileStream("./out.txt", FileMode.OpenOrCreate, FileAccess.Write); writer = new StreamWriter(ostrm); } catch (Exception e) { cout.WriteLine("Cannot open out.txt for writing"); cout.WriteLine(e.Message); return null; } return writer; } } }
25.909091
94
0.525146
[ "MIT" ]
samranjbari/PlayRabbitMq
MQ.Console/OutWriter.cs
857
C#
using System; namespace SimpleSnake.GameObjects { public class Player : Point { private const char borderSymbol = '\u25A0'; private int topY = 1; private int points = 0; private int level = 1; private int levelIncreaser = 10; public Player() { WritePlayerInfoBorder(); DrawPlayerStats(); } public void SetPlayerStats(int currFoodPoint) { this.points += currFoodPoint; if(this.points >= levelIncreaser) { this.level += 1; levelIncreaser += 10; } DrawPlayerStats(); } private void WritePlayerInfoBorder() { for (int i = 0; i < Console.WindowWidth; i++) { this.Draw(borderSymbol, i, topY); } } private void DrawPlayerStats() { Console.SetCursorPosition(6, 0); Console.WriteLine($"Your Points: {points}"); string playerLevel = $"Your current level: {level}"; Console.SetCursorPosition(Console.WindowWidth - playerLevel.Length - 6, 0); Console.WriteLine(playerLevel); } } }
24.134615
87
0.513147
[ "MIT" ]
DanielBankov/SoftUni
C# Fundamentals/C# OOP Basics/SnakeGame/SimpleSnake/GameObjects/Player.cs
1,257
C#
using cloudscribe.Core.IdentityServerIntegration; namespace cloudscribe.Core.IdentityServer.EFCore.MSSQL { public class StorageInfo : IStorageInfo { public string StoragePlatform { get { return "Entity Framework with Microsoft SqlServer"; } } } }
26.9
101
0.747212
[ "Apache-2.0" ]
4L4M1N/cloudscribe
src/cloudscribe.Core.IdentityServer.EFCore.MSSQL/StorageInfo.cs
271
C#
using System.Collections.Generic; namespace RainbowMage.OverlayPlugin { public enum TextItem { ErrorTitle, RequiredAssemblyFileNotFound, RequiredAssemblyFileCannotRead, RequiredAssemblyFileBlocked, RequiredAssemblyFileException, DoNotSort, SortStringAscending, SortStringDescending, SortNumberAscending, SortNumberDescending, ToggleVisible, ToggleClickthru, ToggleLock, ScreenShot } public static class Localization { private static LocalizationDict dict; static Localization() { dict = new LocalizationDict(); dict[TextItem.ErrorTitle, ""] = "Error"; dict[TextItem.ErrorTitle, "ja"] = "エラー"; dict[TextItem.ErrorTitle, "ko"] = "에러"; dict[TextItem.RequiredAssemblyFileNotFound, ""] = "Required assembly file {0} was not found."; dict[TextItem.RequiredAssemblyFileNotFound, "ja"] = "アセンブリ {0} が存在しません。"; dict[TextItem.RequiredAssemblyFileNotFound, "ko"] = "필요한 어셈블리 파일 {0}을(를) 찾을 수 없습니다."; dict[TextItem.RequiredAssemblyFileCannotRead, ""] = "Could not load required assembly file {0}."; dict[TextItem.RequiredAssemblyFileCannotRead, "ja"] = "アセンブリ {0} は存在しますが、読み込めません。"; dict[TextItem.RequiredAssemblyFileCannotRead, "ko"] = "필요한 어셈블리 파일 {0}을(를) 불러올 수 없습니다."; dict[TextItem.RequiredAssemblyFileBlocked, ""] = "Could not load required assembly file {0} due to security reasons. It seems the file has blocked or placed on the untrusted zone (such as network drive)."; dict[TextItem.RequiredAssemblyFileBlocked, "ja"] = "セキュリティ上の問題からアセンブリ {0} を読み込めません。アセンブリがネットワーク上にあるか、またはブロックされている可能性があります。"; dict[TextItem.RequiredAssemblyFileBlocked, "ko"] = "보안 문제로 필요한 어셈블리 파일 {0}을(를) 불러올 수 없습니다. 파일이 차단되어 있거나, 신뢰할 수 없는 장소에 (네트워크 드라이브 등) 놓여져있을 수 있습니다."; dict[TextItem.RequiredAssemblyFileException, ""] = "Exception occured when loading required assembly file {0}:\n{1}"; dict[TextItem.RequiredAssemblyFileException, "ja"] = "アセンブリ {0}の読み込み時に例外が発生しました:\n{1}"; dict[TextItem.RequiredAssemblyFileException, "ko"] = "어셈블리 {0}을(를) 불러오는 도중 예외가 발생했습니다:\n{1}"; dict[TextItem.DoNotSort, ""] = "Do not sort"; dict[TextItem.DoNotSort, "ja"] = "ソートしない"; dict[TextItem.DoNotSort, "ko"] = "정렬하지 않음"; dict[TextItem.SortStringAscending, ""] = "String - Ascending"; dict[TextItem.SortStringAscending, "ja"] = "文字列 - 昇順"; dict[TextItem.SortStringAscending, "ko"] = "문자열 - 오름차순"; dict[TextItem.SortStringDescending, ""] = "String - Descending"; dict[TextItem.SortStringDescending, "ja"] = "文字列 - 降順"; dict[TextItem.SortStringDescending, "ko"] = "문자열 - 내림차순"; dict[TextItem.SortNumberAscending, ""] = "Number - Ascending"; dict[TextItem.SortNumberAscending, "ja"] = "数値 - 昇順"; dict[TextItem.SortNumberAscending, "ko"] = "숫자 - 오름차순"; dict[TextItem.SortNumberDescending, ""] = "Number - Descending"; dict[TextItem.SortNumberDescending, "ja"] = "数値 - 降順"; dict[TextItem.SortNumberDescending, "ko"] = "숫자 - 내림차순"; dict[TextItem.ToggleVisible, ""] = "Toggle visible/hide"; dict[TextItem.ToggleVisible, "ja"] = "表示/非表示の切り替え"; dict[TextItem.ToggleVisible, "ko"] = "표시 / 숨기기"; dict[TextItem.ToggleClickthru, ""] = "Toggle clickthru"; dict[TextItem.ToggleClickthru, "ja"] = "クリック透過の切り替え"; dict[TextItem.ToggleClickthru, "ko"] = "마우스 통과 끄기 / 켜기"; dict[TextItem.ToggleLock, ""] = "Toggle lock"; dict[TextItem.ToggleLock, "ja"] = "移動/リサイズ制限の切り替え"; dict[TextItem.ToggleLock, "ko"] = "위치 잠구기 끄기 / 켜기"; dict[TextItem.ScreenShot, ""] = "ScreenShot"; dict[TextItem.ScreenShot, "ja"] = "ScreenShot"; dict[TextItem.ScreenShot, "ko"] = "오버레이 스크린샷 촬영"; } public static string GetText(TextItem item) { return dict[item, GetCurrentLocale()]; } private static string GetCurrentLocale() { var culture = System.Globalization.CultureInfo.CurrentUICulture; return culture.TwoLetterISOLanguageName.ToLower(); } } class LocalizationDict { IDictionary<TextItem, IDictionary<string, string>> dict; public LocalizationDict() { this.dict = new Dictionary<TextItem, IDictionary<string, string>>(); } public string this[TextItem item, string locale] { get { if (dict.ContainsKey(item)) { if (dict[item].ContainsKey(locale)) { return dict[item][locale]; } else if (dict[item].ContainsKey("")) { return dict[item][""]; } else { throw new KeyNotFoundException(); } } throw new KeyNotFoundException(); } set { if (!dict.ContainsKey(item)) { dict.Add(item, new Dictionary<string, string>()); } if (!dict[item].ContainsKey(locale)) { dict[item].Add(locale, value); } else { dict[item][locale] = value; } } } } }
42.240876
217
0.555037
[ "MIT" ]
RyuaNerin/OverlayPlugin
OverlayPlugin.Core/Localization.cs
6,525
C#
// Decompiled with JetBrains decompiler // Type: BetterFarmAnimalVariety.Framework.Constants.ContentPack // Assembly: BetterFarmAnimalVariety, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null // MVID: 5915D6B1-6174-4632-A28A-C1734D2C6C57 // Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\Paritee's Better Farm Animal Variety\BetterFarmAnimalVariety.dll using System.IO; namespace BetterFarmAnimalVariety.Framework.Constants { internal class ContentPack { public const string ContentFileName = "content.json"; public const string ManifestFileName = "manifest.json"; public const string ConfigMigrationPrefix = "[BFAV]"; public const string ConfigMigrationAuthor = "Anonymous"; public const string ConfigMigrationVersion = "1.0.0"; public const string ConfigMigrationDescription = "Your custom content pack for BFAV"; public static string ConfigMigrationName => "[BFAV] My Content Pack"; public static string ConfigMigrationFullPath => Path.Combine(Directory.GetParent(ModEntry.Instance.Helper.DirectoryPath).FullName, ConfigMigrationName); } }
45.36
152
0.783069
[ "MIT" ]
lshtech/StardewValleyMods
BetterFarmAnimalVariety/Framework/Constants/ContentPack.cs
1,136
C#
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // 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 Microsoft.Azure.Commands.Automation.Model.UpdateManagement { using System.Collections.Generic; public class WindowsConfiguration { public IList<WindowsUpdateClasses> IncludedUpdateClassifications { get; set; } public IList<string> ExcludedKbNumbers { get; set; } public IList<string> IncludedKbNumbers { get; set; } } }
41.321429
87
0.616249
[ "MIT" ]
Acidburn0zzz/azure-powershell
src/ResourceManager/Automation/Commands.Automation/Model/UpdateManagement/WindowsConfiguration.cs
1,132
C#
using System; namespace LD48.Dialogue { public class DialogueEntry { public string Text { get; init; } public string Speaker { get; init; } public string Sprite { get; init; } public Action Callback { get; init; } public DialogueFont Font { get; init; } public DialogueEntry() { Font = DialogueFont.Standard; } } }
22.5
47
0.565432
[ "Apache-2.0" ]
comagnan/ludum-dare-48
LD48/Dialogue/DialogueEntry.cs
407
C#
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Editing; using Microsoft.CodeAnalysis.Text; namespace DevZest.Data.CodeAnalysis { partial class DbMapper { private sealed partial class CSharp : DbMapper { public static CSharp GetMapper(DbMapper existingMapper, CodeContext context) { if (existingMapper is CSharp csharpMapper) return csharpMapper.Refresh(context); var dbClass = context.FindClassDeclaration<ClassDeclarationSyntax>(KnownTypes.DbSession, out var dbType); if (dbClass == null) return null; var result = new CSharp(); result.Update(context, dbClass, dbType); return result; } private CSharp Refresh(CodeContext context) { if (Document == context.Document && DbClass.Contains(context.CurrentSyntaxNode)) return this; var dbClass = context.FindClassDeclaration<ClassDeclarationSyntax>(KnownTypes.DbSession, out var dbType); if (dbClass == null) return null; Update(context, dbClass, dbType); return this; } public override bool RefreshSelectionChanged(TextSpan selectionSpan) { var context = CodeContext.Create(Document, selectionSpan); context.FindClassDeclaration<ClassDeclarationSyntax>(KnownTypes.DbSession, out var dbType); return dbType == DbType; } public new ClassDeclarationSyntax DbClass { get; private set; } protected override SyntaxNode GetDbClass() { return DbClass; } private void Update(CodeContext context, ClassDeclarationSyntax dbClass, INamedTypeSymbol dbType) { Update(context); DbClass = dbClass; DbType = dbType; } public override bool IsKeyword(string name) { return SyntaxFacts.IsKeywordKind(SyntaxFacts.GetKeywordKind(name)); } public override bool IsValidIdentifier(string name) { return SyntaxFacts.IsValidIdentifier(name); } public override TextSpan? CodeSnippetInsertionSpan { get { var closeBraceToken = DbClass.CloseBraceToken; return closeBraceToken.IsMissing ? default(TextSpan?) : new TextSpan(closeBraceToken.SpanStart, 0); } } protected override int AttributeListSyntaxKind { get { return (int)SyntaxKind.AttributeList; } } protected override int WhitespaceTrivaKind { get { return (int)SyntaxKind.WhitespaceTrivia; } } protected override SyntaxNode GenerateAttribute(SyntaxNode syntaxNode, string name, SyntaxTrivia? leadingWhitespaceTrivia, SyntaxNode[] arguments, SyntaxAnnotation argumentListAnnotation) { return syntaxNode.CsGenerateAttribute(name, leadingWhitespaceTrivia, arguments, argumentListAnnotation); } protected override string GetBackingFieldName(string propertyName) { return "_" + propertyName.ToCamelCase(); } protected override string ModelParamName => "_"; protected override string EntityPropertyName { get { return nameof(DataSet<DummyModel>._); } } } } }
35.183486
199
0.578879
[ "MIT" ]
DevZest/RDO.Net
src/Tools.Vsix.CodeAnalysis/DbMapper.CSharp.cs
3,837
C#
using DotnetCoreVue.DB.EFModels; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SpaServices.Webpack; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; namespace DotnetCoreVue { 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) { // Add framework services. services.AddMvc() .SetCompatibilityVersion(CompatibilityVersion.Version_2_1); // Simple example with dependency injection for a data provider. services.AddSingleton<Providers.IWeatherProvider, Providers.WeatherProviderFake>(); var connect="Server=localhost;User Id=root;Password=111111;Database=corevue"; services.AddDbContext<EFContent>(options=>options.UseMySql(connect)); } // 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(); // Webpack initialization with hot-reload. app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions { HotModuleReplacement = true, }); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); routes.MapSpaFallbackRoute( name: "spa-fallback", defaults: new { controller = "Home", action = "Index" }); }); } } }
34.044776
106
0.604121
[ "MIT" ]
mal0211/DotnetCoreVue
Startup.cs
2,281
C#
/* Copyright 2019 Esri 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.Net; using System.Net.Http; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Web; using System.Windows.Input; using ArcGIS.Desktop.Core; using ArcGIS.Desktop.Core.Portal; using ArcGIS.Desktop.Framework; using ArcGIS.Desktop.Framework.Contracts; using ArcGIS.Desktop.Framework.Dialogs; using ArcGIS.Desktop.Framework.Threading.Tasks; using ArcGIS.Desktop.Mapping; using UploadVtpkToAgol; namespace UploadVtpkToAgol { internal class UploadVectorTileViewModel : DockPane { private const string DockPaneId = "UploadVtpkToAgol_UploadVectorTile"; protected UploadVectorTileViewModel() { } private RelayCommand _browseFileNameCmd; private RelayCommand _uploadCmd; private RelayCommand _queryCmd; private RelayCommand _addToMapCmd; public ICommand BrowseFileNameCmd { get { return _browseFileNameCmd ?? (_browseFileNameCmd = new RelayCommand(() => this.BrowseFileName())); } } public ICommand UploadCmd { get { return _uploadCmd ?? (_uploadCmd = new RelayCommand(async () => UploadStatus = await this.Upload())); } } public ICommand QueryCmd { get { return _queryCmd ?? (_queryCmd = new RelayCommand(async () => UploadStatus = await this.Query())); } } public ICommand AddToMapCmd { get { return _addToMapCmd ?? (_addToMapCmd = new RelayCommand(async () => await this.AddToMap())); } } /// <summary> /// Show the DockPane. /// </summary> internal static void Show() { var pane = FrameworkApplication.DockPaneManager.Find(DockPaneId); pane?.Activate(); } /// <summary> /// Text shown near the top of the DockPane. /// </summary> private string _heading = @"Show & Upload Vector Tile"; public string Heading { get { return _heading; } set { SetProperty(ref _heading, value, () => Heading); } } private string _selectFileLabel = "Select a VTPK File"; public string SelectFileLabel { get { return _selectFileLabel; } set { SetProperty(ref _selectFileLabel, value, () => SelectFileLabel); } } private string _filePath = ""; public string FilePath { get { return _filePath; } set { SetProperty(ref _filePath, value, () => FilePath); } } private string _uploadStatus = string.Empty; public string UploadStatus { get { return _uploadStatus; } set { SetProperty(ref _uploadStatus, value, () => UploadStatus); } } private void BrowseFileName() { // Create OpenFileDialog Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog() { // Set filter for file extension and default file extension DefaultExt = ".vtpk", Filter = "Vector Tile Package File (*.vtpk)|*.vtpk" }; // Display OpenFileDialog by calling ShowDialog method var result = dlg.ShowDialog(); // Get the selected file name and display in a TextBox if (result != true) return; // Open document var filename = dlg.FileName; FilePath = filename; } private Task AddToMap() { return QueuedTask.Run(() => { try { // first we create an 'Item' using itemfactory Item currentItem = ItemFactory.Instance.Create(FilePath); // Finally add the feature service to the map // if we have an item that can be turned into a layer // add it to the map if (LayerFactory.Instance.CanCreateLayerFrom(currentItem)) LayerFactory.Instance.CreateLayer(currentItem, MapView.Active.Map); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error while adding vector tile to map"); } }); } private Task<string> Upload() { return QueuedTask.Run(async () => await UploadImpl()); } private async Task<string> UploadImpl() { // Create EsriHttpClient object var httpClient = new EsriHttpClient(); // Upload vtpk file to the currently active portal var itemToUpload = ItemFactory.Instance.Create(FilePath); var tags = new string[] { "ArcGIS Pro", "SDK", "UploadVtpkToAgol Demo" }; var portalUrl = ArcGISPortalManager.Current.GetActivePortal().PortalUri.ToString(); var uploadDefn = new UploadDefinition(portalUrl, itemToUpload, tags); var result = httpClient.Upload(uploadDefn); if (result.Item1 == false) return $@"Unable to upload this item: {FilePath} to ArcGIS Online"; // Once uploaded make another REST call to search for the uploaded data var portal = ArcGISPortalManager.Current.GetActivePortal(); string userName = ArcGISPortalManager.Current.GetActivePortal().GetSignOnUsername(); //Searching for Vector tile packages in the current user's content var pqp = PortalQueryParameters.CreateForItemsOfTypeWithOwner(PortalItemType.VectorTilePackage, userName, "tags: UploadVtpkToAgol Demo"); //Execute to return a result set PortalQueryResultSet<PortalItem> results = await ArcGISPortalExtensions.SearchForContentAsync(portal, pqp); if (results.Results.Count == 0) return $@"Unable to find uploaded item with query: {pqp.Query}"; // Create an item from the search results string itemId = results.Results[0].ID; var currentItem = ItemFactory.Instance.Create(itemId, ItemFactory.ItemType.PortalItem); // Finally add the feature service to the map // if we have an item that can be turned into a layer // add it to the map if (LayerFactory.Instance.CanCreateLayerFrom(currentItem)) LayerFactory.Instance.CreateLayer(currentItem, MapView.Active.Map); return $@"Uploaded this item: {results.Results[0].Name} [Type: {results.Results[0].Type}] to ArcGIS Online and added the item to the Map"; } private Task<string> Query() { return QueuedTask.Run(async () => await QueryImpl()); } private async Task<string> QueryImpl() { var portal = ArcGISPortalManager.Current.GetActivePortal(); string userName = ArcGISPortalManager.Current.GetActivePortal().GetSignOnUsername(); //Searching for Vector tile packages in the current user's content var pqp = PortalQueryParameters.CreateForItemsOfTypeWithOwner(PortalItemType.VectorTilePackage, userName, "tags: UploadVtpkToAgol Demo"); //Execute to return a result set PortalQueryResultSet<PortalItem> results = await ArcGISPortalExtensions.SearchForContentAsync(portal, pqp); if (results.Results.Count == 0) return $@"Unable to find uploaded item with query: {pqp.Query}"; // Create an item from the search results string itemId = results.Results[0].ID; var currentItem = ItemFactory.Instance.Create(itemId, ItemFactory.ItemType.PortalItem); // Finally add the feature service to the map // if we have an item that can be turned into a layer // add it to the map if (LayerFactory.Instance.CanCreateLayerFrom(currentItem)) LayerFactory.Instance.CreateLayer(currentItem, MapView.Active.Map); return $@"Downloaded this item: {results.Results[0].Name} [Type: {results.Results[0].Type}] to ArcGIS Online and added the item to the Map"; } /// <summary> /// This is an alternate method of implementing a Query. /// It uses the GetUserContentAsync method to return the items in the current user's content. /// </summary> /// <returns></returns> private async Task<string> QueryUserContentImpl() { var portal = ArcGISPortalManager.Current.GetActivePortal(); string userName = ArcGISPortalManager.Current.GetActivePortal().GetSignOnUsername(); //Get the content for the signed on user. //Users executing this query must be signed on or an exception will be thrown. var results = await ArcGISPortalExtensions.GetUserContentAsync(portal, userName); //Check if a specific item exits var itemExists = results.PortalItems.Any(p => p.Tags.Contains("UploadVtpkToAgol Demo")); if (!itemExists) return $@"Unable to find uploaded item with query: {portal.ToString()}sharing/rest/content/users/{userName}"; // Create an item from the search results var myItem = results.PortalItems.FirstOrDefault(i => i.Tags.Contains("UploadVtpkToAgol Demo")); var currentItem = ItemFactory.Instance.Create(myItem.ID, ItemFactory.ItemType.PortalItem); // Finally add the Vextor tile package to the map // if we have an item that can be turned into a layer // add it to the map if (LayerFactory.Instance.CanCreateLayerFrom(currentItem)) LayerFactory.Instance.CreateLayer(currentItem, MapView.Active.Map); return $@"Downloaded this item: {myItem.Name} [Type: {myItem.Type}] to ArcGIS Online and added the item to the Map"; } } /// <summary> /// Button implementation to show the DockPane. /// </summary> internal class UploadVectorTile_ShowButton : Button { protected override void OnClick() { UploadVectorTileViewModel.Show(); } } }
38.404181
152
0.613319
[ "Apache-2.0" ]
Dithn/arcgis-pro-sdk-community-samples
Sharing/UploadVtpkToAgol/UploadVectorTileViewModel.cs
11,022
C#
using ReactUnity.Helpers; using System; using UnityEngine; namespace ReactUnity.Components { public class ObjectComponent : BaseRenderTextureComponent { Camera currentCamera; GameObject targetObject; bool shouldRender; Callback onMount; Callback onUnmount; public ObjectComponent(UGUIContext context) : base(context, "object") { } void SetCamera(Camera camera) { if (currentCamera == camera) return; if (currentCamera) { onUnmount?.Call(currentCamera, this); currentCamera = null; } currentCamera = camera; if (currentCamera) { onMount?.Call(currentCamera, this); } } void SetTarget(GameObject obj) { targetObject = obj; shouldRender = targetObject != null; } public override void Update() { base.Update(); if (shouldRender) RenderObject(); } void RenderObject() { if (!currentCamera || !targetObject) return; var pt = currentCamera.targetTexture; var en = currentCamera.enabled; var renderers = targetObject.GetComponentsInChildren<Renderer>(); var len = renderers.Length; var states = new bool[len]; for (int i = 0; i < len; i++) { var renderer = renderers[i]; states[i] = renderer.enabled; renderer.enabled = true; } currentCamera.targetTexture = RenderTexture; currentCamera.enabled = true; currentCamera.Render(); for (int i = 0; i < len; i++) renderers[i].enabled = states[i]; currentCamera.targetTexture = pt; currentCamera.enabled = en; } Camera FindCamera(object value) { if (value is Camera c) return c; if (value is GameObject g) return g.GetComponent<Camera>(); return null; } public override void SetProperty(string propertyName, object value) { switch (propertyName) { case "camera": SetCamera(FindCamera(value)); break; case "target": SetTarget(value as GameObject); break; case "width": RenderTexture.width = Convert.ToInt32(value); break; case "height": RenderTexture.height = Convert.ToInt32(value); break; default: base.SetProperty(propertyName, value); break; } } public override void SetEventListener(string eventName, Callback callback) { switch (eventName) { case "onMount": onMount = callback; return; case "onUnmount": onUnmount = callback; return; default: base.SetEventListener(eventName, callback); return; } } protected override void SetSource(object value) { throw new Exception($"source property cannot be set on an object component"); } } }
28.620155
90
0.469393
[ "MIT" ]
NickBurrell/core
Runtime/Components/ObjectComponent.cs
3,692
C#
using IdentityServer.Middleware; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Serilog; namespace IdentityServer { public class Startup { public void ConfigureServices(IServiceCollection services) { var config = services.CreateConfiguration(); services.ConfigureAspNetIdentity(config.GetConnectionString("Identity")); services.ConfigureIdentityServer(config.GetConnectionString("Identity")); services.ConfigureControllers(); services.ConfigureServices(); // Adding our custom classes/services setup. } public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (!Utils.IsDebug) { app.UseResponseCompression(); } // This middleware is first (so its the last one hit on the way out for responses). app.UseSerilogHttpContextLogger(); // Allows to add additional log properties to Serilog table. app.UseSerilogRequestLogging(); // The main package that logs requests. if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } if (Utils.IsDebug) { app.InitializeDatabase(); } app.UseRouting(); app.UseIdentityServer(); app.UseEndpoints(endpoints => endpoints.MapDefaultControllerRoute()); } } }
35.046512
129
0.684141
[ "MIT" ]
houseofcat/Authentication
AspNetCore3.x_MVC/IS406_IdentityServer/IdentityServer/Startup.cs
1,507
C#
using System; using L5Sharp.Enums; namespace L5Sharp.Core { /// <inheritdoc cref="L5Sharp.IRoutine{TContent}" /> public sealed class Routine<TContent> : IRoutine<TContent> where TContent : ILogixContent { /// <summary> /// Creates a new <see cref="Routine{TContent}"/> instance with the provided arguments. /// </summary> /// <param name="name">The name of the routine.</param> /// <param name="type">The type of content that the routine contains. See <see cref="RoutineType"/>.</param> /// <param name="description">The string description of the routine.</param> /// <param name="content">The content of the routine. See <see cref="ILogixContent"/>.</param> /// <exception cref="ArgumentNullException">name is null.</exception> internal Routine(string name, RoutineType? type = null, string? description = null, TContent? content = default) { Name = name ?? throw new ArgumentNullException(nameof(name)); Type = type is null || type == RoutineType.Typeless ? RoutineType.Rll : type; Description = description ?? string.Empty; Content = content ?? (TContent)Type.CreateContent(); } /// <inheritdoc /> public string Name { get; } /// <inheritdoc /> public string Description { get; } /// <inheritdoc /> public RoutineType Type { get; } /// <inheritdoc /> public TContent Content { get; } } }
40.105263
116
0.604987
[ "MIT" ]
tnunnink/L5Sharp
src/Core/Routine.cs
1,526
C#
/* ********************************************************************* * This Source Code Form is copyright of 51Degrees Mobile Experts Limited. * Copyright © 2015 51Degrees Mobile Experts Limited, 5 Charlotte Close, * Caversham, Reading, Berkshire, United Kingdom RG4 7BY * * This Source Code Form is the subject of the following patent * applications, owned by 51Degrees Mobile Experts Limited of 5 Charlotte * Close, Caversham, Reading, Berkshire, United Kingdom RG4 7BY: * European Patent Application No. 13192291.6; and * United States Patent Application Nos. 14/085,223 and 14/085,301. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. * * If a copy of the MPL was not distributed with this file, You can obtain * one at http://mozilla.org/MPL/2.0/. * * This Source Code Form is “Incompatible With Secondary Licenses”, as * defined by the Mozilla Public License, v. 2.0. * ********************************************************************* */ using System.Collections.Generic; using System.IO; using System; using FiftyOne.Foundation.Mobile.Detection.Readers; using System.Threading; namespace FiftyOne.Foundation.Mobile.Detection.Entities.Stream { /// <summary> /// As multiple threads need to read from the <see cref="SourceBase"/> /// concurrently this class provides a mechanisim for readers to be /// recycled across threads and requests. /// </summary> /// <para> /// Used by the <see cref="BaseList{T,D}"/> to provide multiple readers for /// the list. /// </para> /// <remarks> /// The <see cref="DataSet"/> must be disposed of to ensure the readers /// in the pool are closed. /// </remarks> /// <remarks>Not intended to be used directly by 3rd parties.</remarks> public class Pool { #region Fields /// <summary> /// List of readers available for use. /// </summary> private readonly Queue<Reader> _readers = new Queue<Reader>(); /// <summary> /// A pool of file readers to use to read data from the file. /// </summary> private readonly SourceBase Source; #endregion #region Properties /// <summary> /// The number of readers that have been created. May not be the /// same as the readers in the queue as some may be in use. /// </summary> internal int ReadersCreated { get { return _readerCount; } } private int _readerCount = 0; /// <summary> /// The number of readers in the queue. /// </summary> internal int ReadersQueued { get { return _readers.Count; } } #endregion #region Constructor /// <summary> /// Constructs a new pool of readers for <see cref="SourceBase"/> /// provided. /// </summary> /// <param name="source"> /// The data source for the list. /// </param> public Pool(SourceBase source) { Source = source; } #endregion #region Methods /// <summary> /// Returns a reader to the temp file for exclusive use. /// Release method must be called to return the reader to /// the pool when finished. /// </summary> /// <returns> /// Reader open and ready to read from the temp file. /// </returns> public Reader GetReader() { lock(_readers) { if (_readers.Count > 0) { return _readers.Dequeue(); } } Interlocked.Increment(ref _readerCount); return Source.CreateReader(); } /// <summary> /// Returns the reader to the pool to be used by another /// process later. /// </summary> /// <param name="reader"> /// Reader open and ready to read from the temp file. /// </param> public void Release(Reader reader) { lock (_readers) { _readers.Enqueue(reader); } } #endregion } }
31.791367
81
0.534736
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
hl46000/dotNET-Device-Detection
FoundationV3/Mobile/Detection/Entities/Stream/Pool.cs
4,426
C#
using Banzai.Factories; using FluentAssertions; using Ninject; using Xunit; namespace Banzai.Ioc.Ninject.Test { public class WhenFlowAddsShouldExecuteBlock { [Fact] public void ShouldExecute_Is_Added_To_Root_Node() { var kernel = new StandardKernel(); kernel.RegisterBanzaiNodes(GetType().Assembly, true); var flowBuilder = new FlowBuilder<object>(new NinjectFlowRegistrar(kernel)); flowBuilder.CreateFlow("TestFlow1") .AddRoot<IPipelineNode<object>>().SetShouldExecuteBlock<ShouldNotExecuteTestBlock>() .AddChild<ITestNode2>(); flowBuilder.Register(); var factory = kernel.Get<INodeFactory<object>>(); var flowRootNode = factory.BuildFlow("TestFlow1"); flowRootNode.ShouldExecuteBlock.Should().NotBeNull(); ((IShouldExecuteBlock<object>) flowRootNode.ShouldExecuteBlock) .ShouldExecuteAsync(new ExecutionContext<object>(new object())).Result.Should().BeFalse(); } [Fact] public void ShouldExecute_Is_Added_To_Child_Node() { var kernel = new StandardKernel(); kernel.RegisterBanzaiNodes(GetType().Assembly, true); var flowBuilder = new FlowBuilder<object>(new NinjectFlowRegistrar(kernel)); flowBuilder.CreateFlow("TestFlow1") .AddRoot<IPipelineNode<object>>() .AddChild<ITestNode2>() .ForChild<ITestNode2>() .SetShouldExecuteBlock<ShouldNotExecuteTestBlock>(); flowBuilder.Register(); var factory = kernel.Get<INodeFactory<object>>(); var flow = (IPipelineNode<object>) factory.BuildFlow("TestFlow1"); var subflow = flow.Children[0]; subflow.ShouldExecuteBlock.Should().NotBeNull(); ((IShouldExecuteBlock<object>) subflow.ShouldExecuteBlock) .ShouldExecuteAsync(new ExecutionContext<object>(new object())).Result.Should().BeFalse(); } [Fact] public void Adding_ShouldExecute_To_Subflow_Applies_To_Subflow_Root() { var kernel = new StandardKernel(); kernel.RegisterBanzaiNodes(GetType().Assembly, true); var flowBuilder = new FlowBuilder<object>(new NinjectFlowRegistrar(kernel)); flowBuilder.CreateFlow("TestFlow2") .AddRoot<PipelineNode<object>>() .AddChild<ITestNode4>() .AddChild<ITestNode3>() .AddChild<ITestNode2>(); flowBuilder.Register(); flowBuilder.CreateFlow("TestFlow1") .AddRoot<PipelineNode<object>>() .AddChild<ITestNode2>() .AddFlow("TestFlow2") .ForChildFlow("TestFlow2").SetShouldExecuteBlock<ShouldNotExecuteTestBlock>(); flowBuilder.Register(); var factory = kernel.Get<INodeFactory<object>>(); var flow = (IPipelineNode<object>) factory.BuildFlow("TestFlow1"); var subflowRoot = (IPipelineNode<object>) flow.Children[1]; subflowRoot.ShouldExecuteBlock.Should().NotBeNull(); ((IShouldExecuteBlock<object>) subflowRoot.ShouldExecuteBlock) .ShouldExecuteAsync(new ExecutionContext<object>(new object())).Result.Should().BeFalse(); } } }
37.271739
106
0.618839
[ "MIT" ]
NDecision/Banzai
test/Banzai.Ioc.Ninject.Test/WhenFlowAddsShouldExecuteBlock.cs
3,431
C#
using System; using System.Globalization; using Newtonsoft.Json; namespace SharpIrcBot.Plugins.Libraries.GeoNames { [JsonObject] public class GeoTimeZoneResult { const string DateFormat = "yyyy-MM-dd HH:mm"; [JsonProperty("countryCode")] public string CountryCode { get; set; } [JsonProperty("countryName")] public string CountryName { get; set; } [JsonProperty("dstOffset")] public decimal DSTOffset { get; set; } [JsonProperty("gmtOffset")] public decimal GMTOffset { get; set; } [JsonProperty("lat")] public decimal Latitude { get; set; } [JsonProperty("lng")] public decimal Longitude { get; set; } [JsonProperty("rawOffset")] public decimal RawOffset { get; set; } [JsonProperty("sunrise")] public string SunriseString { get { return Sunrise.ToString(DateFormat, CultureInfo.InvariantCulture); } set { Sunrise = DateTime.ParseExact(value, DateFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal); } } [JsonProperty("sunset")] public string SunsetString { get { return Sunset.ToString(DateFormat, CultureInfo.InvariantCulture); } set { Sunset = DateTime.ParseExact(value, DateFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal); } } [JsonProperty("time")] public string TimeString { get { return Time.ToString(DateFormat, CultureInfo.InvariantCulture); } set { Time = DateTime.ParseExact(value, DateFormat, CultureInfo.InvariantCulture, DateTimeStyles.AssumeLocal); } } [JsonProperty("timezoneId")] public string TimezoneID { get; set; } [JsonIgnore] public DateTime Sunrise { get; set; } [JsonIgnore] public DateTime Sunset { get; set; } [JsonIgnore] public DateTime Time { get; set; } } }
25.545455
123
0.55427
[ "MIT" ]
RavuAlHemio/SharpIrcBot
Plugins/Libraries/GeoNames/GeoTimeZoneResult.cs
2,248
C#
using System; using Xunit; namespace Challenges.Tests { public class ArrayShiftTests { [Fact] public void InsertIntoEvenLength() { //Arrange int[] input = new[] { 4, 5, 7, 8 }; //Act int[] result = ArrayChallenges.InsertArrayShift(input, 6); // Assert Assert.Equal(new[] { 4, 5, 6, 7, 8}, result); } [Theory] // Check for zero [InlineData(1, new int[0], new[] { 1 })] [InlineData(2, new int[0], new[] { 2 })] // Check even [InlineData(3, new int[] { 2 }, new[] { 2, 3 })] // Check odd [InlineData(3, new int[] { 2, 4 }, new[] { 2, 3, 4})] public void InsertIntoArray(int value, int[] input, int[] expected) { // Arrange is above with InlineData // Act int[] result = ArrayChallenges.InsertArrayShift(input, value); // Assert Assert.Equal(expected, result); } [Fact] public void InsertIntoOddLength() { // Arrange int[] input = new[] { 4, 5, 6, 8, 9 }; //Act int[] result = ArrayChallenges.InsertArrayShift(input, 7); // Assert Assert.Equal(new[] { 4, 5, 6, 7, 8, 9 }, result); } } }
23.152542
75
0.464861
[ "MIT" ]
selmaT273/DSA
Challenges.Tests/ArrayShiftTests.cs
1,368
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace UNWcfTester { /// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { } }
16.952381
43
0.643258
[ "Apache-2.0" ]
apros/WCFTester
App.xaml.cs
358
C#
using System; using System.Collections.Generic; namespace ZimaHrm.Core.Infrastructure.Helper { public static class AnonymousComparer { #region IComparer<T> /// <summary>Example:AnonymousComparer.Create&lt;int&gt;((x, y) => y - x)</summary> public static IComparer<T> Create<T>(Func<T, T, int> compare) { if (compare == null) throw new ArgumentNullException("compare"); return new Comparer<T>(compare); } private class Comparer<T> : IComparer<T> { private readonly Func<T, T, int> compare; public Comparer(Func<T, T, int> compare) { this.compare = compare; } public int Compare(T x, T y) { return compare(x, y); } } #endregion #region IEqualityComparer<T> /// <summary>Example:AnonymousComparer.Create((MyClass mc) => mc.MyProperty)</summary> public static IEqualityComparer<T> Create<T, TKey>(Func<T, TKey> compareKeySelector) { if (compareKeySelector == null) throw new ArgumentNullException("compareKeySelector"); return new EqualityComparer<T>( (x, y) => { if (object.ReferenceEquals(x, y)) return true; if (x == null || y == null) return false; return compareKeySelector(x).Equals(compareKeySelector(y)); }, obj => { if (obj == null) return 0; var retVal = compareKeySelector(obj); if (retVal == null) { return 0; } return retVal.GetHashCode(); }); } public static IEqualityComparer<T> Create<T>(Func<T, T, bool> equals, Func<T, int> getHashCode) { if (equals == null) throw new ArgumentNullException("equals"); if (getHashCode == null) throw new ArgumentNullException("getHashCode"); return new EqualityComparer<T>(equals, getHashCode); } private class EqualityComparer<T> : IEqualityComparer<T> { private readonly Func<T, T, bool> equals; private readonly Func<T, int> getHashCode; public EqualityComparer(Func<T, T, bool> equals, Func<T, int> getHashCode) { this.equals = equals; this.getHashCode = getHashCode; } public bool Equals(T x, T y) { return equals(x, y); } public int GetHashCode(T obj) { return getHashCode(obj); } } #endregion } }
28.592233
103
0.485569
[ "Apache-2.0" ]
Dakicksoft/ZimaHrm
ZimaHrm.Infrastructure/Helper/AnonymousComparer.cs
2,947
C#
using Microsoft.EntityFrameworkCore; using WebApiServer.Models; namespace WebApiServer.Database { public class MeasurementContext : DbContext { public MeasurementContext(DbContextOptions options) : base(options) { } public DbSet<Measurement> Measurements { get; set; } } }
21.333333
75
0.690625
[ "MIT" ]
dev7k/DotNetCoreWebApi
src/WebApiServer/Database/MeasurementContext.cs
322
C#
#region License /* * Copyright 2002-2012 the original author or authors. * * 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. */ #endregion using System; using System.Collections.Generic; #if SILVERLIGHT using Spring.Collections.Specialized; #else using System.Collections.Specialized; #endif #if NET_4_0 || SILVERLIGHT_5 using System.Threading.Tasks; #else using Spring.Http; #endif using Spring.Rest.Client; namespace Spring.Social.Twitter.Api.Impl { /// <summary> /// Implementation of <see cref="IFriendOperations"/>, providing a binding to Twitter's friends and followers-oriented REST resources. /// </summary> /// <author>Craig Walls</author> /// <author>Bruno Baia (.NET)</author> class FriendTemplate : AbstractTwitterOperations, IFriendOperations { private RestTemplate restTemplate; public FriendTemplate(RestTemplate restTemplate) { this.restTemplate = restTemplate; } #region IFriendOperations Members #if NET_4_0 || SILVERLIGHT_5 public Task<CursoredList<TwitterProfile>> GetFriendsAsync() { return this.GetFriendsInCursorAsync(-1); } public Task<CursoredList<TwitterProfile>> GetFriendsInCursorAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", "cursor", cursor.ToString())); } public Task<CursoredList<TwitterProfile>> GetFriendsAsync(long userId) { return this.GetFriendsInCursorAsync(userId, -1); } public Task<CursoredList<TwitterProfile>> GetFriendsInCursorAsync(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters)); } public Task<CursoredList<TwitterProfile>> GetFriendsAsync(string screenName) { return this.GetFriendsInCursorAsync(screenName, -1); } public Task<CursoredList<TwitterProfile>> GetFriendsInCursorAsync(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters)); } public Task<CursoredList<long>> GetFriendIdsAsync() { return this.GetFriendIdsInCursorAsync(-1); } public Task<CursoredList<long>> GetFriendIdsInCursorAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", "cursor", cursor.ToString())); } public Task<CursoredList<long>> GetFriendIdsAsync(long userId) { return this.GetFriendIdsInCursorAsync(userId, -1); } public Task<CursoredList<long>> GetFriendIdsInCursorAsync(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters)); } public Task<CursoredList<long>> GetFriendIdsAsync(string screenName) { return this.GetFriendIdsInCursorAsync(screenName, -1); } public Task<CursoredList<long>> GetFriendIdsInCursorAsync(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters)); } public Task<CursoredList<TwitterProfile>> GetFollowersAsync() { return this.GetFollowersInCursorAsync(-1); } public Task<CursoredList<TwitterProfile>> GetFollowersInCursorAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", "cursor", cursor.ToString())); } public Task<CursoredList<TwitterProfile>> GetFollowersAsync(long userId) { return this.GetFollowersInCursorAsync(userId, -1); } public Task<CursoredList<TwitterProfile>> GetFollowersInCursorAsync(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters)); } public Task<CursoredList<TwitterProfile>> GetFollowersAsync(string screenName) { return this.GetFollowersInCursorAsync(screenName, -1); } public Task<CursoredList<TwitterProfile>> GetFollowersInCursorAsync(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters)); } public Task<CursoredList<long>> GetFollowerIdsAsync() { return this.GetFollowerIdsInCursorAsync(-1); } public Task<CursoredList<long>> GetFollowerIdsInCursorAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", "cursor", cursor.ToString())); } public Task<CursoredList<long>> GetFollowerIdsAsync(long userId) { return this.GetFollowerIdsInCursorAsync(userId, -1); } public Task<CursoredList<long>> GetFollowerIdsInCursorAsync(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters)); } public Task<CursoredList<long>> GetFollowerIdsAsync(string screenName) { return this.GetFollowerIdsInCursorAsync(screenName, -1); } public Task<CursoredList<long>> GetFollowerIdsInCursorAsync(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters)); } public Task<TwitterProfile> FollowAsync(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/create.json", request); } public Task<TwitterProfile> FollowAsync(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/create.json", request); } public Task<TwitterProfile> UnfollowAsync(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/destroy.json", request); } public Task<TwitterProfile> UnfollowAsync(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/destroy.json", request); } public Task EnableNotificationsAsync(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "true"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request); } public Task EnableNotificationsAsync(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "true"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request); } public Task DisableNotificationsAsync(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "false"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request); } public Task DisableNotificationsAsync(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "false"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request); } public Task<CursoredList<long>> GetIncomingFriendshipsAsync() { return this.GetIncomingFriendshipsAsync(-1); } public Task<CursoredList<long>> GetIncomingFriendshipsAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friendships/incoming.json", "cursor", cursor.ToString())); } public Task<CursoredList<long>> GetOutgoingFriendshipsAsync() { return this.GetOutgoingFriendshipsAsync(-1); } public Task<CursoredList<long>> GetOutgoingFriendshipsAsync(long cursor) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friendships/outgoing.json", "cursor", cursor.ToString())); } #else #if !SILVERLIGHT public CursoredList<TwitterProfile> GetFriends() { return this.GetFriendsInCursor(-1); } public CursoredList<TwitterProfile> GetFriendsInCursor(long cursor) { return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", "cursor", cursor.ToString())); } public CursoredList<TwitterProfile> GetFriends(long userId) { return this.GetFriendsInCursor(userId, -1); } public CursoredList<TwitterProfile> GetFriendsInCursor(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters)); ; } public CursoredList<TwitterProfile> GetFriends(string screenName) { return this.GetFriendsInCursor(screenName, -1); } public CursoredList<TwitterProfile> GetFriendsInCursor(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters)); } public CursoredList<long> GetFriendIds() { return this.GetFriendIdsInCursor(-1); } public CursoredList<long> GetFriendIdsInCursor(long cursor) { return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("friends/ids.json", "cursor", cursor.ToString())); } public CursoredList<long> GetFriendIds(long userId) { return this.GetFriendIdsInCursor(userId, -1); } public CursoredList<long> GetFriendIdsInCursor(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters));; } public CursoredList<long> GetFriendIds(string screenName) { return this.GetFriendIdsInCursor(screenName, -1); } public CursoredList<long> GetFriendIdsInCursor(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters)); } public CursoredList<TwitterProfile> GetFollowers() { return this.GetFollowersInCursor(-1); } public CursoredList<TwitterProfile> GetFollowersInCursor(long cursor) { return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", "cursor", cursor.ToString())); } public CursoredList<TwitterProfile> GetFollowers(long userId) { return this.GetFollowersInCursor(userId, -1); } public CursoredList<TwitterProfile> GetFollowersInCursor(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters)); } public CursoredList<TwitterProfile> GetFollowers(string screenName) { return this.GetFollowersInCursor(screenName, -1); } public CursoredList<TwitterProfile> GetFollowersInCursor(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObject<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters)); } public CursoredList<long> GetFollowerIds() { return this.GetFollowerIdsInCursor(-1); } public CursoredList<long> GetFollowerIdsInCursor(long cursor) { return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("followers/ids.json", "cursor", cursor.ToString())); } public CursoredList<long> GetFollowerIds(long userId) { return this.GetFollowerIdsInCursor(userId, -1); } public CursoredList<long> GetFollowerIdsInCursor(long userId, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters)); } public CursoredList<long> GetFollowerIds(string screenName) { return this.GetFollowerIdsInCursor(screenName, -1); } public CursoredList<long> GetFollowerIdsInCursor(string screenName, long cursor) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters)); } public TwitterProfile Follow(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObject<TwitterProfile>("friendships/create.json", request); } public TwitterProfile Follow(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObject<TwitterProfile>("friendships/create.json", request); } public TwitterProfile Unfollow(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObject<TwitterProfile>("friendships/destroy.json", request); } public TwitterProfile Unfollow(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObject<TwitterProfile>("friendships/destroy.json", request); } public void EnableNotifications(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "true"); this.restTemplate.PostForMessage("friendships/update.json", request); } public void EnableNotifications(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "true"); this.restTemplate.PostForMessage("friendships/update.json", request); } public void DisableNotifications(long userId) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "false"); this.restTemplate.PostForMessage("friendships/update.json", request); } public void DisableNotifications(string screenName) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "false"); this.restTemplate.PostForMessage("friendships/update.json", request); } public CursoredList<long> GetIncomingFriendships() { return this.GetIncomingFriendships(-1); } public CursoredList<long> GetIncomingFriendships(long cursor) { return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("friendships/incoming.json", "cursor", cursor.ToString())); } public CursoredList<long> GetOutgoingFriendships() { return this.GetOutgoingFriendships(-1); } public CursoredList<long> GetOutgoingFriendships(long cursor) { return this.restTemplate.GetForObject<CursoredList<long>>(this.BuildUrl("friendships/outgoing.json", "cursor", cursor.ToString())); } #endif public RestOperationCanceler GetFriendsAsync(Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFriendsInCursorAsync(-1, operationCompleted); } public RestOperationCanceler GetFriendsInCursorAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", "cursor", cursor.ToString()), operationCompleted); } public RestOperationCanceler GetFriendsAsync(long userId, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFriendsInCursorAsync(userId, -1, operationCompleted); } public RestOperationCanceler GetFriendsInCursorAsync(long userId, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters), operationCompleted); } public RestOperationCanceler GetFriendsAsync(string screenName, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFriendsInCursorAsync(screenName, -1, operationCompleted); } public RestOperationCanceler GetFriendsInCursorAsync(string screenName, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("friends/list.json", parameters), operationCompleted); } public RestOperationCanceler GetFriendIdsAsync(Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFriendIdsInCursorAsync(-1, operationCompleted); } public RestOperationCanceler GetFriendIdsInCursorAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", "cursor", cursor.ToString()), operationCompleted); } public RestOperationCanceler GetFriendIdsAsync(long userId, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFriendIdsInCursorAsync(userId, -1, operationCompleted); } public RestOperationCanceler GetFriendIdsInCursorAsync(long userId, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters), operationCompleted); } public RestOperationCanceler GetFriendIdsAsync(string screenName, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFriendIdsInCursorAsync(screenName, -1, operationCompleted); } public RestOperationCanceler GetFriendIdsInCursorAsync(string screenName, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friends/ids.json", parameters), operationCompleted); } public RestOperationCanceler GetFollowersAsync(Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFollowersInCursorAsync(-1, operationCompleted); } public RestOperationCanceler GetFollowersInCursorAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", "cursor", cursor.ToString()), operationCompleted); } public RestOperationCanceler GetFollowersAsync(long userId, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFollowersInCursorAsync(userId, -1, operationCompleted); } public RestOperationCanceler GetFollowersInCursorAsync(long userId, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters), operationCompleted); } public RestOperationCanceler GetFollowersAsync(string screenName, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { return this.GetFollowersInCursorAsync(screenName, -1, operationCompleted); } public RestOperationCanceler GetFollowersInCursorAsync(string screenName, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<TwitterProfile>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<TwitterProfile>>(this.BuildUrl("followers/list.json", parameters), operationCompleted); } public RestOperationCanceler GetFollowerIdsAsync(Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFollowerIdsInCursorAsync(-1, operationCompleted); } public RestOperationCanceler GetFollowerIdsInCursorAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", "cursor", cursor.ToString()), operationCompleted); } public RestOperationCanceler GetFollowerIdsAsync(long userId, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFollowerIdsInCursorAsync(userId, -1, operationCompleted); } public RestOperationCanceler GetFollowerIdsInCursorAsync(long userId, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("user_id", userId.ToString()); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters), operationCompleted); } public RestOperationCanceler GetFollowerIdsAsync(string screenName, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetFollowerIdsInCursorAsync(screenName, -1, operationCompleted); } public RestOperationCanceler GetFollowerIdsInCursorAsync(string screenName, long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { NameValueCollection parameters = new NameValueCollection(); parameters.Add("cursor", cursor.ToString()); parameters.Add("screen_name", screenName); return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("followers/ids.json", parameters), operationCompleted); } public RestOperationCanceler FollowAsync(long userId, Action<RestOperationCompletedEventArgs<TwitterProfile>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/create.json", request, operationCompleted); } public RestOperationCanceler FollowAsync(string screenName, Action<RestOperationCompletedEventArgs<TwitterProfile>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/create.json", request, operationCompleted); } public RestOperationCanceler UnfollowAsync(long userId, Action<RestOperationCompletedEventArgs<TwitterProfile>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/destroy.json", request, operationCompleted); } public RestOperationCanceler UnfollowAsync(string screenName, Action<RestOperationCompletedEventArgs<TwitterProfile>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); return this.restTemplate.PostForObjectAsync<TwitterProfile>("friendships/destroy.json", request, operationCompleted); } public RestOperationCanceler EnableNotificationsAsync(long userId, Action<RestOperationCompletedEventArgs<HttpResponseMessage>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "true"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request, operationCompleted); } public RestOperationCanceler EnableNotificationsAsync(string screenName, Action<RestOperationCompletedEventArgs<HttpResponseMessage>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "true"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request, operationCompleted); } public RestOperationCanceler DisableNotificationsAsync(long userId, Action<RestOperationCompletedEventArgs<HttpResponseMessage>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("user_id", userId.ToString()); request.Add("device", "false"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request, operationCompleted); } public RestOperationCanceler DisableNotificationsAsync(string screenName, Action<RestOperationCompletedEventArgs<HttpResponseMessage>> operationCompleted) { NameValueCollection request = new NameValueCollection(); request.Add("screen_name", screenName); request.Add("device", "false"); return this.restTemplate.PostForMessageAsync("friendships/update.json", request, operationCompleted); } public RestOperationCanceler GetIncomingFriendshipsAsync(Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetIncomingFriendshipsAsync(-1, operationCompleted); } public RestOperationCanceler GetIncomingFriendshipsAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friendships/incoming.json", "cursor", cursor.ToString()), operationCompleted); } public RestOperationCanceler GetOutgoingFriendshipsAsync(Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.GetOutgoingFriendshipsAsync(-1, operationCompleted); } public RestOperationCanceler GetOutgoingFriendshipsAsync(long cursor, Action<RestOperationCompletedEventArgs<CursoredList<long>>> operationCompleted) { return this.restTemplate.GetForObjectAsync<CursoredList<long>>(this.BuildUrl("friendships/outgoing.json", "cursor", cursor.ToString()), operationCompleted); } #endif #endregion } }
46.806011
185
0.681192
[ "Apache-2.0" ]
PKRoma/spring-net-social-twitter
src/Spring.Social.Twitter/Social/Twitter/Api/Impl/FriendTemplate.cs
34,264
C#
using System; using System.Linq; using System.Windows.Threading; namespace Viking.Pipeline.Wpf { public partial class DispatcherReactionPipelineStage<TInput1, TInput2, TInput3, TInput4> : IPipelineStage { public DispatcherReactionPipelineStage( Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4) : this(GetDefaultName(input1, input2, input3, input4), reaction, input1, input2, input3, input4) { } public DispatcherReactionPipelineStage( Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4, bool reactImmediately) : this(GetDefaultName(input1, input2, input3, input4), reaction, DispatcherUtilities.DefaultDispatcher, input1, input2, input3, input4, reactImmediately) { } public DispatcherReactionPipelineStage( string name, Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4) : this(name, reaction, DispatcherUtilities.DefaultDispatcher, input1, input2, input3, input4, true) { } public DispatcherReactionPipelineStage( string name, Action<TInput1, TInput2, TInput3, TInput4> reaction, Dispatcher dispatcher, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4, bool reactImmediately) { Name = name ?? throw new ArgumentNullException(nameof(name)); Reaction = reaction ?? throw new ArgumentNullException(nameof(reaction)); Dispatcher = dispatcher ?? throw new ArgumentNullException(nameof(dispatcher)); Input1 = input1 ?? throw new ArgumentNullException(nameof(input1)); Input2 = input2 ?? throw new ArgumentNullException(nameof(input2)); Input3 = input3 ?? throw new ArgumentNullException(nameof(input3)); Input4 = input4 ?? throw new ArgumentNullException(nameof(input4)); this.AddDependencies(input1, input2, input3, input4); if (reactImmediately) InvokeReaction(Input1.GetValue(), Input2.GetValue(), Input3.GetValue(), Input4.GetValue()); } public string Name { get; } public Action<TInput1, TInput2, TInput3, TInput4> Reaction { get; } public Dispatcher Dispatcher { get; } /// <summary> /// Input number 1. /// </summary> public IPipelineStage<TInput1> Input1 { get; } /// <summary> /// Input number 2. /// </summary> public IPipelineStage<TInput2> Input2 { get; } /// <summary> /// Input number 3. /// </summary> public IPipelineStage<TInput3> Input3 { get; } /// <summary> /// Input number 4. /// </summary> public IPipelineStage<TInput4> Input4 { get; } public void OnInvalidate(IPipelineInvalidator invalidator) { invalidator.InvalidateAllDependentStages(this); InvokeReaction(Input1.GetValue(), Input2.GetValue(), Input3.GetValue(), Input4.GetValue()); } private void InvokeReaction(TInput1 input1, TInput2 input2, TInput3 input3, TInput4 input4) { Dispatcher.Invoke(() => Reaction.Invoke(input1, input2, input3, input4)); } public override string ToString() => $"{Name} - Reaction is {Reaction.GetDetailedStringRepresentation()}"; private static string GetDefaultName(params IPipelineStage[] stages) => $"Reaction to {string.Join(", ", stages.Select(p => "'" + p.Name + "'"))}"; } public static partial class DispatcherReactions { public static IPipelineStage Create<TInput1, TInput2, TInput3, TInput4>( Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4) => new ReactionPipelineStage<TInput1, TInput2, TInput3, TInput4>( reaction, input1, input2, input3, input4); public static IPipelineStage Create<TInput1, TInput2, TInput3, TInput4>( Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4, bool reactImmediately) => new ReactionPipelineStage<TInput1, TInput2, TInput3, TInput4>( reaction, input1, input2, input3, input4, reactImmediately); public static IPipelineStage Create<TInput1, TInput2, TInput3, TInput4>( string name, Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4) => new ReactionPipelineStage<TInput1, TInput2, TInput3, TInput4>( name, reaction, input1, input2, input3, input4); public static IPipelineStage Create<TInput1, TInput2, TInput3, TInput4>( string name, Action<TInput1, TInput2, TInput3, TInput4> reaction, IPipelineStage<TInput1> input1, IPipelineStage<TInput2> input2, IPipelineStage<TInput3> input3, IPipelineStage<TInput4> input4, bool reactImmediately) => new ReactionPipelineStage<TInput1, TInput2, TInput3, TInput4>( name, reaction, input1, input2, input3, input4, reactImmediately); } }
36.482993
155
0.733358
[ "MIT" ]
Grevor/Viking.Pipeline
Wpf/Viking.Pipeline.Wpf/Generated/Dispatcher/DispatcherReactionPipelineStage4.cs
5,363
C#
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN using System; using System.Runtime.InteropServices; namespace Photon.Voice.Windows { public class WindowsAudioInPusher : Voice.IAudioPusher<short> { enum SystemMode { SINGLE_CHANNEL_AEC = 0, OPTIBEAM_ARRAY_ONLY = 2, OPTIBEAM_ARRAY_AND_AEC = 4, SINGLE_CHANNEL_NSAGC = 5, } [DllImport("AudioIn")] private static extern IntPtr Photon_Audio_In_Create(SystemMode systemMode, int micDevIdx, int spkDevIdx, Action<IntPtr, int> callback, bool featrModeOn, bool noiseSup, bool agc, bool cntrClip); [DllImport("AudioIn")] private static extern void Photon_Audio_In_Destroy(IntPtr handler); IntPtr handle; Action<short[]> pushCallback; ObjectFactory<short[], int> bufferFactory; int deviceID; public WindowsAudioInPusher(int deviceID) { this.deviceID = deviceID; } // Supposed to be called once at voice initialization. // Otherwise recreate native object (instead of adding 'set callback' method to native interface) public void SetCallback(Action<short[]> callback, ObjectFactory<short[], int> bufferFactory) { if (handle != IntPtr.Zero) { Dispose(); } this.pushCallback = callback; this.bufferFactory = bufferFactory; pushRef = push; // use default playback device handle = Photon_Audio_In_Create(SystemMode.SINGLE_CHANNEL_AEC, deviceID, -1, pushRef, true, true, true, true); // defaults in original ms sample: false, true, false, false } Action<IntPtr, int> pushRef; private void push(IntPtr buf, int lenBytes) { var len = lenBytes / sizeof(short); var bufManaged = this.bufferFactory.New(len); Marshal.Copy(buf, bufManaged, 0, len); pushCallback(bufManaged); } public int Channels { get { return 1; } } public int SamplingRate { get { return 16000; } } public void Dispose() { Photon_Audio_In_Destroy(handle); // TODO: Remove this from instancePerHandle } } } #endif
34.275362
202
0.59408
[ "Apache-2.0" ]
na0ki-ikeda/MirageMulti
Assets/Photon/PhotonVoice/PhotonVoiceApi/Platforms/Windows/WindowsAudioIn.cs
2,367
C#
using GitVersion.BuildAgents; using GitVersion.Common; using GitVersion.Extensions; using GitVersion.Helpers; using GitVersion.Logging; using GitVersion.Model.Configuration; using Microsoft.Extensions.Options; namespace GitVersion; public class GitPreparer : IGitPreparer { private readonly ILog log; private readonly IEnvironment environment; private readonly IMutatingGitRepository repository; private readonly IOptions<GitVersionOptions> options; private readonly IGitRepositoryInfo repositoryInfo; private readonly IRepositoryStore repositoryStore; private readonly ICurrentBuildAgent buildAgent; private readonly RetryAction<LockedFileException> retryAction; private const string DefaultRemoteName = "origin"; public GitPreparer(ILog log, IEnvironment environment, ICurrentBuildAgent buildAgent, IOptions<GitVersionOptions> options, IMutatingGitRepository repository, IGitRepositoryInfo repositoryInfo, IRepositoryStore repositoryStore) { this.log = log ?? throw new ArgumentNullException(nameof(log)); this.environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.options = options ?? throw new ArgumentNullException(nameof(options)); this.repositoryInfo = repositoryInfo ?? throw new ArgumentNullException(nameof(repositoryInfo)); this.repositoryStore = repositoryStore ?? throw new ArgumentNullException(nameof(repositoryStore)); this.buildAgent = buildAgent; this.retryAction = new RetryAction<LockedFileException>(); } public void Prepare() { var gitVersionOptions = this.options.Value; // Normalize if we are running on build server var normalizeGitDirectory = !gitVersionOptions.Settings.NoNormalize && this.buildAgent != null; var shouldCleanUpRemotes = this.buildAgent != null && this.buildAgent.ShouldCleanUpRemotes(); var currentBranch = ResolveCurrentBranch(); var dotGitDirectory = this.repositoryInfo.DotGitDirectory; var projectRoot = this.repositoryInfo.ProjectRootDirectory; this.log.Info($"Project root is: {projectRoot}"); this.log.Info($"DotGit directory is: {dotGitDirectory}"); if (dotGitDirectory.IsNullOrEmpty() || projectRoot.IsNullOrEmpty()) { throw new Exception($"Failed to prepare or find the .git directory in path '{gitVersionOptions.WorkingDirectory}'."); } PrepareInternal(normalizeGitDirectory, currentBranch, shouldCleanUpRemotes); } private void PrepareInternal(bool normalizeGitDirectory, string? currentBranch, bool shouldCleanUpRemotes = false) { var gitVersionOptions = this.options.Value; if (!gitVersionOptions.RepositoryInfo.TargetUrl.IsNullOrWhiteSpace()) { CreateDynamicRepository(currentBranch); } else { if (!normalizeGitDirectory) return; if (shouldCleanUpRemotes) { CleanupDuplicateOrigin(); } NormalizeGitDirectory(currentBranch, false); } } private string? ResolveCurrentBranch() { var gitVersionOptions = this.options.Value; var targetBranch = gitVersionOptions.RepositoryInfo.TargetBranch; if (this.buildAgent == null) { return targetBranch; } var isDynamicRepository = !gitVersionOptions.RepositoryInfo.DynamicRepositoryClonePath.IsNullOrWhiteSpace(); var currentBranch = this.buildAgent.GetCurrentBranch(isDynamicRepository) ?? targetBranch; this.log.Info("Branch from build environment: " + currentBranch); return currentBranch; } private void CleanupDuplicateOrigin() { var remoteToKeep = DefaultRemoteName; // check that we have a remote that matches defaultRemoteName if not take the first remote if (!this.repository.Remotes.Any(remote => remote.Name.Equals(DefaultRemoteName, StringComparison.InvariantCultureIgnoreCase))) { remoteToKeep = this.repository.Remotes.First().Name; } var duplicateRemotes = this.repository.Remotes .Where(remote => !remote.Name.Equals(remoteToKeep, StringComparison.InvariantCultureIgnoreCase)) .Select(remote => remote.Name); // remove all remotes that are considered duplicates foreach (var remoteName in duplicateRemotes) { this.repository.Remotes.Remove(remoteName); } } private void CreateDynamicRepository(string? targetBranch) { var gitVersionOptions = this.options.Value; if (targetBranch.IsNullOrWhiteSpace()) { throw new Exception("Dynamic Git repositories must have a target branch (/b)"); } var gitDirectory = this.repositoryInfo.DynamicGitRepositoryPath; using (this.log.IndentLog($"Creating dynamic repository at '{gitDirectory}'")) { var authentication = gitVersionOptions.Authentication; if (!Directory.Exists(gitDirectory)) { CloneRepository(gitVersionOptions.RepositoryInfo.TargetUrl, gitDirectory, authentication); } else { this.log.Info("Git repository already exists"); } NormalizeGitDirectory(targetBranch, true); } } private void NormalizeGitDirectory(string? targetBranch, bool isDynamicRepository) { using (this.log.IndentLog($"Normalizing git directory for branch '{targetBranch}'")) { // Normalize (download branches) before using the branch NormalizeGitDirectory(this.options.Value.Settings.NoFetch, targetBranch, isDynamicRepository); } } private void CloneRepository(string? repositoryUrl, string? gitDirectory, AuthenticationInfo auth) { using (this.log.IndentLog($"Cloning repository from url '{repositoryUrl}'")) { this.retryAction.Execute(() => this.repository.Clone(repositoryUrl, gitDirectory, auth)); } } /// <summary> /// Normalization of a git directory turns all remote branches into local branches, /// turns pull request refs into a real branch and a few other things. /// This is designed to be run *only on the build server* which checks out repositories in different ways. /// It is not recommended to run normalization against a local repository /// </summary> private void NormalizeGitDirectory(bool noFetch, string? currentBranchName, bool isDynamicRepository) { var authentication = this.options.Value.Authentication; // Need to ensure the HEAD does not move, this is essentially a BugCheck var expectedSha = this.repository.Head.Tip?.Sha; var expectedBranchName = this.repository.Head.Name.Canonical; try { var remote = EnsureOnlyOneRemoteIsDefined(); //If noFetch is enabled, then GitVersion will assume that the git repository is normalized before execution, so that fetching from remotes is not required. if (noFetch) { this.log.Info("Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories"); } else { var refSpecs = string.Join(", ", remote.FetchRefSpecs.Select(r => r.Specification)); this.log.Info($"Fetching from remote '{remote.Name}' using the following refspecs: {refSpecs}."); this.retryAction.Execute(() => this.repository.Fetch(remote.Name, Enumerable.Empty<string>(), authentication, null)); } EnsureLocalBranchExistsForCurrentBranch(remote, currentBranchName); CreateOrUpdateLocalBranchesFromRemoteTrackingOnes(remote.Name); var currentBranch = this.repositoryStore.FindBranch(currentBranchName); // Bug fix for https://github.com/GitTools/GitVersion/issues/1754, head maybe have been changed // if this is a dynamic repository. But only allow this in case the branches are different (branch switch) if (expectedSha != this.repository.Head.Tip?.Sha && (isDynamicRepository || currentBranch is null || !this.repository.Head.Equals(currentBranch))) { var newExpectedSha = this.repository.Head.Tip?.Sha; var newExpectedBranchName = this.repository.Head.Name.Canonical; this.log.Info($"Head has moved from '{expectedBranchName} | {expectedSha}' => '{newExpectedBranchName} | {newExpectedSha}', allowed since this is a dynamic repository"); expectedSha = newExpectedSha; } var headSha = this.repository.Refs.Head?.TargetIdentifier; if (!this.repository.IsHeadDetached) { this.log.Info($"HEAD points at branch '{headSha}'."); return; } this.log.Info($"HEAD is detached and points at commit '{headSha}'."); this.log.Info($"Local Refs:{System.Environment.NewLine}" + string.Join(System.Environment.NewLine, this.repository.Refs.FromGlob("*").Select(r => $"{r.Name.Canonical} ({r.TargetIdentifier})"))); // In order to decide whether a fake branch is required or not, first check to see if any local branches have the same commit SHA of the head SHA. // If they do, go ahead and checkout that branch // If no, go ahead and check out a new branch, using the known commit SHA as the pointer var localBranchesWhereCommitShaIsHead = this.repository.Branches.Where(b => !b.IsRemote && b.Tip?.Sha == headSha).ToList(); var matchingCurrentBranch = !currentBranchName.IsNullOrEmpty() ? localBranchesWhereCommitShaIsHead.SingleOrDefault(b => b.Name.Canonical.Replace("/heads/", "/") == currentBranchName.Replace("/heads/", "/")) : null; if (matchingCurrentBranch != null) { this.log.Info($"Checking out local branch '{currentBranchName}'."); Checkout(matchingCurrentBranch.Name.Canonical); } else if (localBranchesWhereCommitShaIsHead.Count > 1) { var branchNames = localBranchesWhereCommitShaIsHead.Select(r => r.Name.Canonical); var csvNames = string.Join(", ", branchNames); const string moveBranchMsg = "Move one of the branches along a commit to remove warning"; this.log.Warning($"Found more than one local branch pointing at the commit '{headSha}' ({csvNames})."); var main = localBranchesWhereCommitShaIsHead.SingleOrDefault(n => n.Name.EquivalentTo(Config.MainBranchKey)); if (main != null) { this.log.Warning("Because one of the branches is 'main', will build main." + moveBranchMsg); Checkout(Config.MainBranchKey); } else { var branchesWithoutSeparators = localBranchesWhereCommitShaIsHead.Where(b => !b.Name.Friendly.Contains('/') && !b.Name.Friendly.Contains('-')).ToList(); if (branchesWithoutSeparators.Count == 1) { var branchWithoutSeparator = branchesWithoutSeparators[0]; this.log.Warning($"Choosing {branchWithoutSeparator.Name.Canonical} as it is the only branch without / or - in it. " + moveBranchMsg); Checkout(branchWithoutSeparator.Name.Canonical); } else { throw new WarningException("Failed to try and guess branch to use. " + moveBranchMsg); } } } else if (localBranchesWhereCommitShaIsHead.Count == 0) { this.log.Info($"No local branch pointing at the commit '{headSha}'. Fake branch needs to be created."); this.retryAction.Execute(() => this.repository.CreateBranchForPullRequestBranch(authentication)); } else { this.log.Info($"Checking out local branch 'refs/heads/{localBranchesWhereCommitShaIsHead[0]}'."); Checkout(localBranchesWhereCommitShaIsHead[0].Name.Friendly); } } finally { if (this.repository.Head.Tip?.Sha != expectedSha) { if (this.environment.GetEnvironmentVariable("IGNORE_NORMALISATION_GIT_HEAD_MOVE") != "1") { // Whoa, HEAD has moved, it shouldn't have. We need to blow up because there is a bug in normalisation throw new BugException($@"GitVersion has a bug, your HEAD has moved after repo normalisation. To disable this error set an environmental variable called IGNORE_NORMALISATION_GIT_HEAD_MOVE to 1 Please run `git {GitExtensions.CreateGitLogArgs(100)}` and submit it along with your build log (with personal info removed) in a new issue at https://github.com/GitTools/GitVersion"); } } } } private IRemote EnsureOnlyOneRemoteIsDefined() { var remotes = this.repository.Remotes; var howMany = remotes.Count(); if (howMany == 1) { var remote = remotes.Single(); this.log.Info($"One remote found ({remote.Name} -> '{remote.Url}')."); if (remote.FetchRefSpecs.Any(r => r.Source == "refs/heads/*")) return remote; var allBranchesFetchRefSpec = $"+refs/heads/*:refs/remotes/{remote.Name}/*"; this.log.Info($"Adding refspec: {allBranchesFetchRefSpec}"); remotes.Update(remote.Name, allBranchesFetchRefSpec); return remote; } var message = $"{howMany} remote(s) have been detected. When being run on a build server, the Git repository is expected to bear one (and no more than one) remote."; throw new WarningException(message); } private void CreateOrUpdateLocalBranchesFromRemoteTrackingOnes(string remoteName) { var prefix = $"refs/remotes/{remoteName}/"; var remoteHeadCanonicalName = $"{prefix}HEAD"; var headReferenceName = ReferenceName.Parse(remoteHeadCanonicalName); var remoteTrackingReferences = this.repository.Refs .FromGlob(prefix + "*") .Where(r => !r.Name.Equals(headReferenceName)); foreach (var remoteTrackingReference in remoteTrackingReferences) { var remoteTrackingReferenceName = remoteTrackingReference.Name.Canonical; var branchName = remoteTrackingReferenceName.Substring(prefix.Length); var localCanonicalName = "refs/heads/" + branchName; var referenceName = ReferenceName.Parse(localCanonicalName); // We do not want to touch our current branch if (this.repository.Head.Name.EquivalentTo(branchName)) continue; if (this.repository.Refs.Any(x => x.Name.Equals(referenceName))) { var localRef = this.repository.Refs[localCanonicalName]!; if (localRef.TargetIdentifier == remoteTrackingReference.TargetIdentifier) { this.log.Info($"Skipping update of '{remoteTrackingReference.Name.Canonical}' as it already matches the remote ref."); continue; } var remoteRefTipId = remoteTrackingReference.ReferenceTargetId!; this.log.Info($"Updating local ref '{localRef.Name.Canonical}' to point at {remoteRefTipId}."); this.retryAction.Execute(() => this.repository.Refs.UpdateTarget(localRef, remoteRefTipId)); continue; } this.log.Info($"Creating local branch from remote tracking '{remoteTrackingReference.Name.Canonical}'."); this.repository.Refs.Add(localCanonicalName, remoteTrackingReference.TargetIdentifier, true); var branch = this.repository.Branches[branchName]!; this.repository.Branches.UpdateTrackedBranch(branch, remoteTrackingReferenceName); } } public void EnsureLocalBranchExistsForCurrentBranch(IRemote? remote, string? currentBranch) { if (remote is null) { throw new ArgumentNullException(nameof(remote)); } if (currentBranch.IsNullOrEmpty()) return; var isRef = currentBranch.Contains("refs"); var isBranch = currentBranch.Contains("refs/heads"); var localCanonicalName = !isRef ? "refs/heads/" + currentBranch : isBranch ? currentBranch : currentBranch.Replace("refs/", "refs/heads/"); var repoTip = this.repository.Head.Tip; // We currently have the rep.Head of the *default* branch, now we need to look up the right one var originCanonicalName = $"{remote.Name}/{currentBranch}"; var originBranch = this.repository.Branches[originCanonicalName]; if (originBranch != null) { repoTip = originBranch.Tip; } var repoTipId = repoTip!.Id; var referenceName = ReferenceName.Parse(localCanonicalName); if (this.repository.Branches.All(b => !b.Name.Equals(referenceName))) { this.log.Info(isBranch ? $"Creating local branch {referenceName}" : $"Creating local branch {referenceName} pointing at {repoTipId}"); this.repository.Refs.Add(localCanonicalName, repoTipId.Sha); } else { this.log.Info(isBranch ? $"Updating local branch {referenceName} to point at {repoTip}" : $"Updating local branch {referenceName} to match ref {currentBranch}"); var localRef = this.repository.Refs[localCanonicalName]!; this.retryAction.Execute(() => this.repository.Refs.UpdateTarget(localRef, repoTipId)); } Checkout(localCanonicalName); } private void Checkout(string commitOrBranchSpec) => this.retryAction.Execute(() => this.repository.Checkout(commitOrBranchSpec)); }
47.005076
206
0.643898
[ "MIT" ]
Gridstone/GitVersion
src/GitVersion.Core/Core/GitPreparer.cs
18,520
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <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> //------------------------------------------------------------------------------ [assembly: global::Android.Runtime.ResourceDesignerAttribute("ShadowPlatformSpecific.Droid.Resource", IsApplication=true)] namespace ShadowPlatformSpecific.Droid { [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.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::ShadowPlatformSpecific.Droid.Resource.Attribute.actionBarSize; } public partial class Animation { // aapt resource value: 0x7f040000 public const int abc_fade_in = 2130968576; // aapt resource value: 0x7f040001 public const int abc_fade_out = 2130968577; // aapt resource value: 0x7f040002 public const int abc_grow_fade_in_from_bottom = 2130968578; // aapt resource value: 0x7f040003 public const int abc_popup_enter = 2130968579; // aapt resource value: 0x7f040004 public const int abc_popup_exit = 2130968580; // aapt resource value: 0x7f040005 public const int abc_shrink_fade_out_from_bottom = 2130968581; // aapt resource value: 0x7f040006 public const int abc_slide_in_bottom = 2130968582; // aapt resource value: 0x7f040007 public const int abc_slide_in_top = 2130968583; // aapt resource value: 0x7f040008 public const int abc_slide_out_bottom = 2130968584; // aapt resource value: 0x7f040009 public const int abc_slide_out_top = 2130968585; // aapt resource value: 0x7f04000a public const int design_bottom_sheet_slide_in = 2130968586; // aapt resource value: 0x7f04000b public const int design_bottom_sheet_slide_out = 2130968587; // aapt resource value: 0x7f04000c public const int design_fab_in = 2130968588; // aapt resource value: 0x7f04000d public const int design_fab_out = 2130968589; // aapt resource value: 0x7f04000e public const int design_snackbar_in = 2130968590; // aapt resource value: 0x7f04000f public const int design_snackbar_out = 2130968591; static Animation() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Animation() { } } public partial class Animator { // aapt resource value: 0x7f050000 public const int design_appbar_state_list_animator = 2131034112; static Animator() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Animator() { } } public partial class Attribute { // aapt resource value: 0x7f01005f public const int actionBarDivider = 2130772063; // aapt resource value: 0x7f010060 public const int actionBarItemBackground = 2130772064; // aapt resource value: 0x7f010059 public const int actionBarPopupTheme = 2130772057; // aapt resource value: 0x7f01005e public const int actionBarSize = 2130772062; // aapt resource value: 0x7f01005b public const int actionBarSplitStyle = 2130772059; // aapt resource value: 0x7f01005a public const int actionBarStyle = 2130772058; // aapt resource value: 0x7f010055 public const int actionBarTabBarStyle = 2130772053; // aapt resource value: 0x7f010054 public const int actionBarTabStyle = 2130772052; // aapt resource value: 0x7f010056 public const int actionBarTabTextStyle = 2130772054; // aapt resource value: 0x7f01005c public const int actionBarTheme = 2130772060; // aapt resource value: 0x7f01005d public const int actionBarWidgetTheme = 2130772061; // aapt resource value: 0x7f01007a public const int actionButtonStyle = 2130772090; // aapt resource value: 0x7f010076 public const int actionDropDownStyle = 2130772086; // aapt resource value: 0x7f0100cc public const int actionLayout = 2130772172; // aapt resource value: 0x7f010061 public const int actionMenuTextAppearance = 2130772065; // aapt resource value: 0x7f010062 public const int actionMenuTextColor = 2130772066; // aapt resource value: 0x7f010065 public const int actionModeBackground = 2130772069; // aapt resource value: 0x7f010064 public const int actionModeCloseButtonStyle = 2130772068; // aapt resource value: 0x7f010067 public const int actionModeCloseDrawable = 2130772071; // aapt resource value: 0x7f010069 public const int actionModeCopyDrawable = 2130772073; // aapt resource value: 0x7f010068 public const int actionModeCutDrawable = 2130772072; // aapt resource value: 0x7f01006d public const int actionModeFindDrawable = 2130772077; // aapt resource value: 0x7f01006a public const int actionModePasteDrawable = 2130772074; // aapt resource value: 0x7f01006f public const int actionModePopupWindowStyle = 2130772079; // aapt resource value: 0x7f01006b public const int actionModeSelectAllDrawable = 2130772075; // aapt resource value: 0x7f01006c public const int actionModeShareDrawable = 2130772076; // aapt resource value: 0x7f010066 public const int actionModeSplitBackground = 2130772070; // aapt resource value: 0x7f010063 public const int actionModeStyle = 2130772067; // aapt resource value: 0x7f01006e public const int actionModeWebSearchDrawable = 2130772078; // aapt resource value: 0x7f010057 public const int actionOverflowButtonStyle = 2130772055; // aapt resource value: 0x7f010058 public const int actionOverflowMenuStyle = 2130772056; // aapt resource value: 0x7f0100ce public const int actionProviderClass = 2130772174; // aapt resource value: 0x7f0100cd public const int actionViewClass = 2130772173; // aapt resource value: 0x7f010082 public const int activityChooserViewStyle = 2130772098; // aapt resource value: 0x7f0100a7 public const int alertDialogButtonGroupStyle = 2130772135; // aapt resource value: 0x7f0100a8 public const int alertDialogCenterButtons = 2130772136; // aapt resource value: 0x7f0100a6 public const int alertDialogStyle = 2130772134; // aapt resource value: 0x7f0100a9 public const int alertDialogTheme = 2130772137; // aapt resource value: 0x7f0100bc public const int allowStacking = 2130772156; // aapt resource value: 0x7f0100bd public const int alpha = 2130772157; // aapt resource value: 0x7f0100c4 public const int arrowHeadLength = 2130772164; // aapt resource value: 0x7f0100c5 public const int arrowShaftLength = 2130772165; // aapt resource value: 0x7f0100ae public const int autoCompleteTextViewStyle = 2130772142; // aapt resource value: 0x7f010028 public const int background = 2130772008; // aapt resource value: 0x7f01002a public const int backgroundSplit = 2130772010; // aapt resource value: 0x7f010029 public const int backgroundStacked = 2130772009; // aapt resource value: 0x7f010101 public const int backgroundTint = 2130772225; // aapt resource value: 0x7f010102 public const int backgroundTintMode = 2130772226; // aapt resource value: 0x7f0100c6 public const int barLength = 2130772166; // aapt resource value: 0x7f01012c public const int behavior_autoHide = 2130772268; // aapt resource value: 0x7f010109 public const int behavior_hideable = 2130772233; // aapt resource value: 0x7f010135 public const int behavior_overlapTop = 2130772277; // aapt resource value: 0x7f010108 public const int behavior_peekHeight = 2130772232; // aapt resource value: 0x7f01010a public const int behavior_skipCollapsed = 2130772234; // aapt resource value: 0x7f01012a public const int borderWidth = 2130772266; // aapt resource value: 0x7f01007f public const int borderlessButtonStyle = 2130772095; // aapt resource value: 0x7f010124 public const int bottomSheetDialogTheme = 2130772260; // aapt resource value: 0x7f010125 public const int bottomSheetStyle = 2130772261; // aapt resource value: 0x7f01007c public const int buttonBarButtonStyle = 2130772092; // aapt resource value: 0x7f0100ac public const int buttonBarNegativeButtonStyle = 2130772140; // aapt resource value: 0x7f0100ad public const int buttonBarNeutralButtonStyle = 2130772141; // aapt resource value: 0x7f0100ab public const int buttonBarPositiveButtonStyle = 2130772139; // aapt resource value: 0x7f01007b public const int buttonBarStyle = 2130772091; // aapt resource value: 0x7f0100f6 public const int buttonGravity = 2130772214; // aapt resource value: 0x7f01003d public const int buttonPanelSideLayout = 2130772029; // aapt resource value: 0x7f0100af public const int buttonStyle = 2130772143; // aapt resource value: 0x7f0100b0 public const int buttonStyleSmall = 2130772144; // aapt resource value: 0x7f0100be public const int buttonTint = 2130772158; // aapt resource value: 0x7f0100bf public const int buttonTintMode = 2130772159; // aapt resource value: 0x7f010011 public const int cardBackgroundColor = 2130771985; // aapt resource value: 0x7f010012 public const int cardCornerRadius = 2130771986; // aapt resource value: 0x7f010013 public const int cardElevation = 2130771987; // aapt resource value: 0x7f010014 public const int cardMaxElevation = 2130771988; // aapt resource value: 0x7f010016 public const int cardPreventCornerOverlap = 2130771990; // aapt resource value: 0x7f010015 public const int cardUseCompatPadding = 2130771989; // aapt resource value: 0x7f0100b1 public const int checkboxStyle = 2130772145; // aapt resource value: 0x7f0100b2 public const int checkedTextViewStyle = 2130772146; // aapt resource value: 0x7f0100d9 public const int closeIcon = 2130772185; // aapt resource value: 0x7f01003a public const int closeItemLayout = 2130772026; // aapt resource value: 0x7f0100f8 public const int collapseContentDescription = 2130772216; // aapt resource value: 0x7f0100f7 public const int collapseIcon = 2130772215; // aapt resource value: 0x7f010117 public const int collapsedTitleGravity = 2130772247; // aapt resource value: 0x7f010111 public const int collapsedTitleTextAppearance = 2130772241; // aapt resource value: 0x7f0100c0 public const int color = 2130772160; // aapt resource value: 0x7f01009e public const int colorAccent = 2130772126; // aapt resource value: 0x7f0100a5 public const int colorBackgroundFloating = 2130772133; // aapt resource value: 0x7f0100a2 public const int colorButtonNormal = 2130772130; // aapt resource value: 0x7f0100a0 public const int colorControlActivated = 2130772128; // aapt resource value: 0x7f0100a1 public const int colorControlHighlight = 2130772129; // aapt resource value: 0x7f01009f public const int colorControlNormal = 2130772127; // aapt resource value: 0x7f01009c public const int colorPrimary = 2130772124; // aapt resource value: 0x7f01009d public const int colorPrimaryDark = 2130772125; // aapt resource value: 0x7f0100a3 public const int colorSwitchThumbNormal = 2130772131; // aapt resource value: 0x7f0100de public const int commitIcon = 2130772190; // aapt resource value: 0x7f010033 public const int contentInsetEnd = 2130772019; // aapt resource value: 0x7f010037 public const int contentInsetEndWithActions = 2130772023; // aapt resource value: 0x7f010034 public const int contentInsetLeft = 2130772020; // aapt resource value: 0x7f010035 public const int contentInsetRight = 2130772021; // aapt resource value: 0x7f010032 public const int contentInsetStart = 2130772018; // aapt resource value: 0x7f010036 public const int contentInsetStartWithNavigation = 2130772022; // aapt resource value: 0x7f010017 public const int contentPadding = 2130771991; // aapt resource value: 0x7f01001b public const int contentPaddingBottom = 2130771995; // aapt resource value: 0x7f010018 public const int contentPaddingLeft = 2130771992; // aapt resource value: 0x7f010019 public const int contentPaddingRight = 2130771993; // aapt resource value: 0x7f01001a public const int contentPaddingTop = 2130771994; // aapt resource value: 0x7f010112 public const int contentScrim = 2130772242; // aapt resource value: 0x7f0100a4 public const int controlBackground = 2130772132; // aapt resource value: 0x7f01014b public const int counterEnabled = 2130772299; // aapt resource value: 0x7f01014c public const int counterMaxLength = 2130772300; // aapt resource value: 0x7f01014e public const int counterOverflowTextAppearance = 2130772302; // aapt resource value: 0x7f01014d public const int counterTextAppearance = 2130772301; // aapt resource value: 0x7f01002b public const int customNavigationLayout = 2130772011; // aapt resource value: 0x7f0100d8 public const int defaultQueryHint = 2130772184; // aapt resource value: 0x7f010074 public const int dialogPreferredPadding = 2130772084; // aapt resource value: 0x7f010073 public const int dialogTheme = 2130772083; // aapt resource value: 0x7f010021 public const int displayOptions = 2130772001; // aapt resource value: 0x7f010027 public const int divider = 2130772007; // aapt resource value: 0x7f010081 public const int dividerHorizontal = 2130772097; // aapt resource value: 0x7f0100ca public const int dividerPadding = 2130772170; // aapt resource value: 0x7f010080 public const int dividerVertical = 2130772096; // aapt resource value: 0x7f0100c2 public const int drawableSize = 2130772162; // aapt resource value: 0x7f01001c public const int drawerArrowStyle = 2130771996; // aapt resource value: 0x7f010093 public const int dropDownListViewStyle = 2130772115; // aapt resource value: 0x7f010077 public const int dropdownListPreferredItemHeight = 2130772087; // aapt resource value: 0x7f010088 public const int editTextBackground = 2130772104; // aapt resource value: 0x7f010087 public const int editTextColor = 2130772103; // aapt resource value: 0x7f0100b3 public const int editTextStyle = 2130772147; // aapt resource value: 0x7f010038 public const int elevation = 2130772024; // aapt resource value: 0x7f010149 public const int errorEnabled = 2130772297; // aapt resource value: 0x7f01014a public const int errorTextAppearance = 2130772298; // aapt resource value: 0x7f01003c public const int expandActivityOverflowButtonDrawable = 2130772028; // aapt resource value: 0x7f010103 public const int expanded = 2130772227; // aapt resource value: 0x7f010118 public const int expandedTitleGravity = 2130772248; // aapt resource value: 0x7f01010b public const int expandedTitleMargin = 2130772235; // aapt resource value: 0x7f01010f public const int expandedTitleMarginBottom = 2130772239; // aapt resource value: 0x7f01010e public const int expandedTitleMarginEnd = 2130772238; // aapt resource value: 0x7f01010c public const int expandedTitleMarginStart = 2130772236; // aapt resource value: 0x7f01010d public const int expandedTitleMarginTop = 2130772237; // aapt resource value: 0x7f010110 public const int expandedTitleTextAppearance = 2130772240; // aapt resource value: 0x7f010010 public const int externalRouteEnabledDrawable = 2130771984; // aapt resource value: 0x7f010128 public const int fabSize = 2130772264; // aapt resource value: 0x7f01012d public const int foregroundInsidePadding = 2130772269; // aapt resource value: 0x7f0100c3 public const int gapBetweenBars = 2130772163; // aapt resource value: 0x7f0100da public const int goIcon = 2130772186; // aapt resource value: 0x7f010133 public const int headerLayout = 2130772275; // aapt resource value: 0x7f01001d public const int height = 2130771997; // aapt resource value: 0x7f010031 public const int hideOnContentScroll = 2130772017; // aapt resource value: 0x7f01014f public const int hintAnimationEnabled = 2130772303; // aapt resource value: 0x7f010148 public const int hintEnabled = 2130772296; // aapt resource value: 0x7f010147 public const int hintTextAppearance = 2130772295; // aapt resource value: 0x7f010079 public const int homeAsUpIndicator = 2130772089; // aapt resource value: 0x7f01002c public const int homeLayout = 2130772012; // aapt resource value: 0x7f010025 public const int icon = 2130772005; // aapt resource value: 0x7f0100d6 public const int iconifiedByDefault = 2130772182; // aapt resource value: 0x7f010089 public const int imageButtonStyle = 2130772105; // aapt resource value: 0x7f01002e public const int indeterminateProgressStyle = 2130772014; // aapt resource value: 0x7f01003b public const int initialActivityCount = 2130772027; // aapt resource value: 0x7f010134 public const int insetForeground = 2130772276; // aapt resource value: 0x7f01001e public const int isLightTheme = 2130771998; // aapt resource value: 0x7f010131 public const int itemBackground = 2130772273; // aapt resource value: 0x7f01012f public const int itemIconTint = 2130772271; // aapt resource value: 0x7f010030 public const int itemPadding = 2130772016; // aapt resource value: 0x7f010132 public const int itemTextAppearance = 2130772274; // aapt resource value: 0x7f010130 public const int itemTextColor = 2130772272; // aapt resource value: 0x7f01011c public const int keylines = 2130772252; // aapt resource value: 0x7f0100d5 public const int layout = 2130772181; // aapt resource value: 0x7f010000 public const int layoutManager = 2130771968; // aapt resource value: 0x7f01011f public const int layout_anchor = 2130772255; // aapt resource value: 0x7f010121 public const int layout_anchorGravity = 2130772257; // aapt resource value: 0x7f01011e public const int layout_behavior = 2130772254; // aapt resource value: 0x7f01011a public const int layout_collapseMode = 2130772250; // aapt resource value: 0x7f01011b public const int layout_collapseParallaxMultiplier = 2130772251; // aapt resource value: 0x7f010123 public const int layout_dodgeInsetEdges = 2130772259; // aapt resource value: 0x7f010122 public const int layout_insetEdge = 2130772258; // aapt resource value: 0x7f010120 public const int layout_keyline = 2130772256; // aapt resource value: 0x7f010106 public const int layout_scrollFlags = 2130772230; // aapt resource value: 0x7f010107 public const int layout_scrollInterpolator = 2130772231; // aapt resource value: 0x7f01009b public const int listChoiceBackgroundIndicator = 2130772123; // aapt resource value: 0x7f010075 public const int listDividerAlertDialog = 2130772085; // aapt resource value: 0x7f010041 public const int listItemLayout = 2130772033; // aapt resource value: 0x7f01003e public const int listLayout = 2130772030; // aapt resource value: 0x7f0100bb public const int listMenuViewStyle = 2130772155; // aapt resource value: 0x7f010094 public const int listPopupWindowStyle = 2130772116; // aapt resource value: 0x7f01008e public const int listPreferredItemHeight = 2130772110; // aapt resource value: 0x7f010090 public const int listPreferredItemHeightLarge = 2130772112; // aapt resource value: 0x7f01008f public const int listPreferredItemHeightSmall = 2130772111; // aapt resource value: 0x7f010091 public const int listPreferredItemPaddingLeft = 2130772113; // aapt resource value: 0x7f010092 public const int listPreferredItemPaddingRight = 2130772114; // aapt resource value: 0x7f010026 public const int logo = 2130772006; // aapt resource value: 0x7f0100fb public const int logoDescription = 2130772219; // aapt resource value: 0x7f010136 public const int maxActionInlineWidth = 2130772278; // aapt resource value: 0x7f0100f5 public const int maxButtonHeight = 2130772213; // aapt resource value: 0x7f0100c8 public const int measureWithLargestChild = 2130772168; // aapt resource value: 0x7f010004 public const int mediaRouteAudioTrackDrawable = 2130771972; // aapt resource value: 0x7f010005 public const int mediaRouteButtonStyle = 2130771973; // aapt resource value: 0x7f010006 public const int mediaRouteCloseDrawable = 2130771974; // aapt resource value: 0x7f010007 public const int mediaRouteControlPanelThemeOverlay = 2130771975; // aapt resource value: 0x7f010008 public const int mediaRouteDefaultIconDrawable = 2130771976; // aapt resource value: 0x7f010009 public const int mediaRoutePauseDrawable = 2130771977; // aapt resource value: 0x7f01000a public const int mediaRoutePlayDrawable = 2130771978; // aapt resource value: 0x7f01000b public const int mediaRouteSpeakerGroupIconDrawable = 2130771979; // aapt resource value: 0x7f01000c public const int mediaRouteSpeakerIconDrawable = 2130771980; // aapt resource value: 0x7f01000d public const int mediaRouteStopDrawable = 2130771981; // aapt resource value: 0x7f01000e public const int mediaRouteTheme = 2130771982; // aapt resource value: 0x7f01000f public const int mediaRouteTvIconDrawable = 2130771983; // aapt resource value: 0x7f01012e public const int menu = 2130772270; // aapt resource value: 0x7f01003f public const int multiChoiceItemLayout = 2130772031; // aapt resource value: 0x7f0100fa public const int navigationContentDescription = 2130772218; // aapt resource value: 0x7f0100f9 public const int navigationIcon = 2130772217; // aapt resource value: 0x7f010020 public const int navigationMode = 2130772000; // aapt resource value: 0x7f0100d1 public const int overlapAnchor = 2130772177; // aapt resource value: 0x7f0100d3 public const int paddingBottomNoButtons = 2130772179; // aapt resource value: 0x7f0100ff public const int paddingEnd = 2130772223; // aapt resource value: 0x7f0100fe public const int paddingStart = 2130772222; // aapt resource value: 0x7f0100d4 public const int paddingTopNoTitle = 2130772180; // aapt resource value: 0x7f010098 public const int panelBackground = 2130772120; // aapt resource value: 0x7f01009a public const int panelMenuListTheme = 2130772122; // aapt resource value: 0x7f010099 public const int panelMenuListWidth = 2130772121; // aapt resource value: 0x7f010152 public const int passwordToggleContentDescription = 2130772306; // aapt resource value: 0x7f010151 public const int passwordToggleDrawable = 2130772305; // aapt resource value: 0x7f010150 public const int passwordToggleEnabled = 2130772304; // aapt resource value: 0x7f010153 public const int passwordToggleTint = 2130772307; // aapt resource value: 0x7f010154 public const int passwordToggleTintMode = 2130772308; // aapt resource value: 0x7f010085 public const int popupMenuStyle = 2130772101; // aapt resource value: 0x7f010039 public const int popupTheme = 2130772025; // aapt resource value: 0x7f010086 public const int popupWindowStyle = 2130772102; // aapt resource value: 0x7f0100cf public const int preserveIconSpacing = 2130772175; // aapt resource value: 0x7f010129 public const int pressedTranslationZ = 2130772265; // aapt resource value: 0x7f01002f public const int progressBarPadding = 2130772015; // aapt resource value: 0x7f01002d public const int progressBarStyle = 2130772013; // aapt resource value: 0x7f0100e0 public const int queryBackground = 2130772192; // aapt resource value: 0x7f0100d7 public const int queryHint = 2130772183; // aapt resource value: 0x7f0100b4 public const int radioButtonStyle = 2130772148; // aapt resource value: 0x7f0100b5 public const int ratingBarStyle = 2130772149; // aapt resource value: 0x7f0100b6 public const int ratingBarStyleIndicator = 2130772150; // aapt resource value: 0x7f0100b7 public const int ratingBarStyleSmall = 2130772151; // aapt resource value: 0x7f010002 public const int reverseLayout = 2130771970; // aapt resource value: 0x7f010127 public const int rippleColor = 2130772263; // aapt resource value: 0x7f010116 public const int scrimAnimationDuration = 2130772246; // aapt resource value: 0x7f010115 public const int scrimVisibleHeightTrigger = 2130772245; // aapt resource value: 0x7f0100dc public const int searchHintIcon = 2130772188; // aapt resource value: 0x7f0100db public const int searchIcon = 2130772187; // aapt resource value: 0x7f01008d public const int searchViewStyle = 2130772109; // aapt resource value: 0x7f0100b8 public const int seekBarStyle = 2130772152; // aapt resource value: 0x7f01007d public const int selectableItemBackground = 2130772093; // aapt resource value: 0x7f01007e public const int selectableItemBackgroundBorderless = 2130772094; // aapt resource value: 0x7f0100cb public const int showAsAction = 2130772171; // aapt resource value: 0x7f0100c9 public const int showDividers = 2130772169; // aapt resource value: 0x7f0100ec public const int showText = 2130772204; // aapt resource value: 0x7f010042 public const int showTitle = 2130772034; // aapt resource value: 0x7f010040 public const int singleChoiceItemLayout = 2130772032; // aapt resource value: 0x7f010001 public const int spanCount = 2130771969; // aapt resource value: 0x7f0100c1 public const int spinBars = 2130772161; // aapt resource value: 0x7f010078 public const int spinnerDropDownItemStyle = 2130772088; // aapt resource value: 0x7f0100b9 public const int spinnerStyle = 2130772153; // aapt resource value: 0x7f0100eb public const int splitTrack = 2130772203; // aapt resource value: 0x7f010043 public const int srcCompat = 2130772035; // aapt resource value: 0x7f010003 public const int stackFromEnd = 2130771971; // aapt resource value: 0x7f0100d2 public const int state_above_anchor = 2130772178; // aapt resource value: 0x7f010104 public const int state_collapsed = 2130772228; // aapt resource value: 0x7f010105 public const int state_collapsible = 2130772229; // aapt resource value: 0x7f01011d public const int statusBarBackground = 2130772253; // aapt resource value: 0x7f010113 public const int statusBarScrim = 2130772243; // aapt resource value: 0x7f0100d0 public const int subMenuArrow = 2130772176; // aapt resource value: 0x7f0100e1 public const int submitBackground = 2130772193; // aapt resource value: 0x7f010022 public const int subtitle = 2130772002; // aapt resource value: 0x7f0100ee public const int subtitleTextAppearance = 2130772206; // aapt resource value: 0x7f0100fd public const int subtitleTextColor = 2130772221; // aapt resource value: 0x7f010024 public const int subtitleTextStyle = 2130772004; // aapt resource value: 0x7f0100df public const int suggestionRowLayout = 2130772191; // aapt resource value: 0x7f0100e9 public const int switchMinWidth = 2130772201; // aapt resource value: 0x7f0100ea public const int switchPadding = 2130772202; // aapt resource value: 0x7f0100ba public const int switchStyle = 2130772154; // aapt resource value: 0x7f0100e8 public const int switchTextAppearance = 2130772200; // aapt resource value: 0x7f01013a public const int tabBackground = 2130772282; // aapt resource value: 0x7f010139 public const int tabContentStart = 2130772281; // aapt resource value: 0x7f01013c public const int tabGravity = 2130772284; // aapt resource value: 0x7f010137 public const int tabIndicatorColor = 2130772279; // aapt resource value: 0x7f010138 public const int tabIndicatorHeight = 2130772280; // aapt resource value: 0x7f01013e public const int tabMaxWidth = 2130772286; // aapt resource value: 0x7f01013d public const int tabMinWidth = 2130772285; // aapt resource value: 0x7f01013b public const int tabMode = 2130772283; // aapt resource value: 0x7f010146 public const int tabPadding = 2130772294; // aapt resource value: 0x7f010145 public const int tabPaddingBottom = 2130772293; // aapt resource value: 0x7f010144 public const int tabPaddingEnd = 2130772292; // aapt resource value: 0x7f010142 public const int tabPaddingStart = 2130772290; // aapt resource value: 0x7f010143 public const int tabPaddingTop = 2130772291; // aapt resource value: 0x7f010141 public const int tabSelectedTextColor = 2130772289; // aapt resource value: 0x7f01013f public const int tabTextAppearance = 2130772287; // aapt resource value: 0x7f010140 public const int tabTextColor = 2130772288; // aapt resource value: 0x7f010049 public const int textAllCaps = 2130772041; // aapt resource value: 0x7f010070 public const int textAppearanceLargePopupMenu = 2130772080; // aapt resource value: 0x7f010095 public const int textAppearanceListItem = 2130772117; // aapt resource value: 0x7f010096 public const int textAppearanceListItemSecondary = 2130772118; // aapt resource value: 0x7f010097 public const int textAppearanceListItemSmall = 2130772119; // aapt resource value: 0x7f010072 public const int textAppearancePopupMenuHeader = 2130772082; // aapt resource value: 0x7f01008b public const int textAppearanceSearchResultSubtitle = 2130772107; // aapt resource value: 0x7f01008a public const int textAppearanceSearchResultTitle = 2130772106; // aapt resource value: 0x7f010071 public const int textAppearanceSmallPopupMenu = 2130772081; // aapt resource value: 0x7f0100aa public const int textColorAlertDialogListItem = 2130772138; // aapt resource value: 0x7f010126 public const int textColorError = 2130772262; // aapt resource value: 0x7f01008c public const int textColorSearchUrl = 2130772108; // aapt resource value: 0x7f010100 public const int theme = 2130772224; // aapt resource value: 0x7f0100c7 public const int thickness = 2130772167; // aapt resource value: 0x7f0100e7 public const int thumbTextPadding = 2130772199; // aapt resource value: 0x7f0100e2 public const int thumbTint = 2130772194; // aapt resource value: 0x7f0100e3 public const int thumbTintMode = 2130772195; // aapt resource value: 0x7f010046 public const int tickMark = 2130772038; // aapt resource value: 0x7f010047 public const int tickMarkTint = 2130772039; // aapt resource value: 0x7f010048 public const int tickMarkTintMode = 2130772040; // aapt resource value: 0x7f010044 public const int tint = 2130772036; // aapt resource value: 0x7f010045 public const int tintMode = 2130772037; // aapt resource value: 0x7f01001f public const int title = 2130771999; // aapt resource value: 0x7f010119 public const int titleEnabled = 2130772249; // aapt resource value: 0x7f0100ef public const int titleMargin = 2130772207; // aapt resource value: 0x7f0100f3 public const int titleMarginBottom = 2130772211; // aapt resource value: 0x7f0100f1 public const int titleMarginEnd = 2130772209; // aapt resource value: 0x7f0100f0 public const int titleMarginStart = 2130772208; // aapt resource value: 0x7f0100f2 public const int titleMarginTop = 2130772210; // aapt resource value: 0x7f0100f4 public const int titleMargins = 2130772212; // aapt resource value: 0x7f0100ed public const int titleTextAppearance = 2130772205; // aapt resource value: 0x7f0100fc public const int titleTextColor = 2130772220; // aapt resource value: 0x7f010023 public const int titleTextStyle = 2130772003; // aapt resource value: 0x7f010114 public const int toolbarId = 2130772244; // aapt resource value: 0x7f010084 public const int toolbarNavigationButtonStyle = 2130772100; // aapt resource value: 0x7f010083 public const int toolbarStyle = 2130772099; // aapt resource value: 0x7f0100e4 public const int track = 2130772196; // aapt resource value: 0x7f0100e5 public const int trackTint = 2130772197; // aapt resource value: 0x7f0100e6 public const int trackTintMode = 2130772198; // aapt resource value: 0x7f01012b public const int useCompatPadding = 2130772267; // aapt resource value: 0x7f0100dd public const int voiceIcon = 2130772189; // aapt resource value: 0x7f01004a public const int windowActionBar = 2130772042; // aapt resource value: 0x7f01004c public const int windowActionBarOverlay = 2130772044; // aapt resource value: 0x7f01004d public const int windowActionModeOverlay = 2130772045; // aapt resource value: 0x7f010051 public const int windowFixedHeightMajor = 2130772049; // aapt resource value: 0x7f01004f public const int windowFixedHeightMinor = 2130772047; // aapt resource value: 0x7f01004e public const int windowFixedWidthMajor = 2130772046; // aapt resource value: 0x7f010050 public const int windowFixedWidthMinor = 2130772048; // aapt resource value: 0x7f010052 public const int windowMinWidthMajor = 2130772050; // aapt resource value: 0x7f010053 public const int windowMinWidthMinor = 2130772051; // aapt resource value: 0x7f01004b public const int windowNoTitle = 2130772043; static Attribute() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Attribute() { } } public partial class Boolean { // aapt resource value: 0x7f0d0000 public const int abc_action_bar_embed_tabs = 2131558400; // aapt resource value: 0x7f0d0001 public const int abc_allow_stacked_button_bar = 2131558401; // aapt resource value: 0x7f0d0002 public const int abc_config_actionMenuItemAllCaps = 2131558402; // aapt resource value: 0x7f0d0003 public const int abc_config_closeDialogWhenTouchOutside = 2131558403; // aapt resource value: 0x7f0d0004 public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131558404; static Boolean() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Boolean() { } } public partial class Color { // aapt resource value: 0x7f0c004a public const int abc_background_cache_hint_selector_material_dark = 2131492938; // aapt resource value: 0x7f0c004b public const int abc_background_cache_hint_selector_material_light = 2131492939; // aapt resource value: 0x7f0c004c public const int abc_btn_colored_borderless_text_material = 2131492940; // aapt resource value: 0x7f0c004d public const int abc_btn_colored_text_material = 2131492941; // aapt resource value: 0x7f0c004e public const int abc_color_highlight_material = 2131492942; // aapt resource value: 0x7f0c004f public const int abc_hint_foreground_material_dark = 2131492943; // aapt resource value: 0x7f0c0050 public const int abc_hint_foreground_material_light = 2131492944; // aapt resource value: 0x7f0c0005 public const int abc_input_method_navigation_guard = 2131492869; // aapt resource value: 0x7f0c0051 public const int abc_primary_text_disable_only_material_dark = 2131492945; // aapt resource value: 0x7f0c0052 public const int abc_primary_text_disable_only_material_light = 2131492946; // aapt resource value: 0x7f0c0053 public const int abc_primary_text_material_dark = 2131492947; // aapt resource value: 0x7f0c0054 public const int abc_primary_text_material_light = 2131492948; // aapt resource value: 0x7f0c0055 public const int abc_search_url_text = 2131492949; // aapt resource value: 0x7f0c0006 public const int abc_search_url_text_normal = 2131492870; // aapt resource value: 0x7f0c0007 public const int abc_search_url_text_pressed = 2131492871; // aapt resource value: 0x7f0c0008 public const int abc_search_url_text_selected = 2131492872; // aapt resource value: 0x7f0c0056 public const int abc_secondary_text_material_dark = 2131492950; // aapt resource value: 0x7f0c0057 public const int abc_secondary_text_material_light = 2131492951; // aapt resource value: 0x7f0c0058 public const int abc_tint_btn_checkable = 2131492952; // aapt resource value: 0x7f0c0059 public const int abc_tint_default = 2131492953; // aapt resource value: 0x7f0c005a public const int abc_tint_edittext = 2131492954; // aapt resource value: 0x7f0c005b public const int abc_tint_seek_thumb = 2131492955; // aapt resource value: 0x7f0c005c public const int abc_tint_spinner = 2131492956; // aapt resource value: 0x7f0c005d public const int abc_tint_switch_thumb = 2131492957; // aapt resource value: 0x7f0c005e public const int abc_tint_switch_track = 2131492958; // aapt resource value: 0x7f0c0009 public const int accent_material_dark = 2131492873; // aapt resource value: 0x7f0c000a public const int accent_material_light = 2131492874; // aapt resource value: 0x7f0c000b public const int background_floating_material_dark = 2131492875; // aapt resource value: 0x7f0c000c public const int background_floating_material_light = 2131492876; // aapt resource value: 0x7f0c000d public const int background_material_dark = 2131492877; // aapt resource value: 0x7f0c000e public const int background_material_light = 2131492878; // aapt resource value: 0x7f0c000f public const int bright_foreground_disabled_material_dark = 2131492879; // aapt resource value: 0x7f0c0010 public const int bright_foreground_disabled_material_light = 2131492880; // aapt resource value: 0x7f0c0011 public const int bright_foreground_inverse_material_dark = 2131492881; // aapt resource value: 0x7f0c0012 public const int bright_foreground_inverse_material_light = 2131492882; // aapt resource value: 0x7f0c0013 public const int bright_foreground_material_dark = 2131492883; // aapt resource value: 0x7f0c0014 public const int bright_foreground_material_light = 2131492884; // aapt resource value: 0x7f0c0015 public const int button_material_dark = 2131492885; // aapt resource value: 0x7f0c0016 public const int button_material_light = 2131492886; // aapt resource value: 0x7f0c0000 public const int cardview_dark_background = 2131492864; // aapt resource value: 0x7f0c0001 public const int cardview_light_background = 2131492865; // aapt resource value: 0x7f0c0002 public const int cardview_shadow_end_color = 2131492866; // aapt resource value: 0x7f0c0003 public const int cardview_shadow_start_color = 2131492867; // aapt resource value: 0x7f0c003f public const int design_bottom_navigation_shadow_color = 2131492927; // aapt resource value: 0x7f0c005f public const int design_error = 2131492959; // aapt resource value: 0x7f0c0040 public const int design_fab_shadow_end_color = 2131492928; // aapt resource value: 0x7f0c0041 public const int design_fab_shadow_mid_color = 2131492929; // aapt resource value: 0x7f0c0042 public const int design_fab_shadow_start_color = 2131492930; // aapt resource value: 0x7f0c0043 public const int design_fab_stroke_end_inner_color = 2131492931; // aapt resource value: 0x7f0c0044 public const int design_fab_stroke_end_outer_color = 2131492932; // aapt resource value: 0x7f0c0045 public const int design_fab_stroke_top_inner_color = 2131492933; // aapt resource value: 0x7f0c0046 public const int design_fab_stroke_top_outer_color = 2131492934; // aapt resource value: 0x7f0c0047 public const int design_snackbar_background_color = 2131492935; // aapt resource value: 0x7f0c0048 public const int design_textinput_error_color_dark = 2131492936; // aapt resource value: 0x7f0c0049 public const int design_textinput_error_color_light = 2131492937; // aapt resource value: 0x7f0c0060 public const int design_tint_password_toggle = 2131492960; // aapt resource value: 0x7f0c0017 public const int dim_foreground_disabled_material_dark = 2131492887; // aapt resource value: 0x7f0c0018 public const int dim_foreground_disabled_material_light = 2131492888; // aapt resource value: 0x7f0c0019 public const int dim_foreground_material_dark = 2131492889; // aapt resource value: 0x7f0c001a public const int dim_foreground_material_light = 2131492890; // aapt resource value: 0x7f0c001b public const int foreground_material_dark = 2131492891; // aapt resource value: 0x7f0c001c public const int foreground_material_light = 2131492892; // aapt resource value: 0x7f0c001d public const int highlighted_text_material_dark = 2131492893; // aapt resource value: 0x7f0c001e public const int highlighted_text_material_light = 2131492894; // aapt resource value: 0x7f0c001f public const int material_blue_grey_800 = 2131492895; // aapt resource value: 0x7f0c0020 public const int material_blue_grey_900 = 2131492896; // aapt resource value: 0x7f0c0021 public const int material_blue_grey_950 = 2131492897; // aapt resource value: 0x7f0c0022 public const int material_deep_teal_200 = 2131492898; // aapt resource value: 0x7f0c0023 public const int material_deep_teal_500 = 2131492899; // aapt resource value: 0x7f0c0024 public const int material_grey_100 = 2131492900; // aapt resource value: 0x7f0c0025 public const int material_grey_300 = 2131492901; // aapt resource value: 0x7f0c0026 public const int material_grey_50 = 2131492902; // aapt resource value: 0x7f0c0027 public const int material_grey_600 = 2131492903; // aapt resource value: 0x7f0c0028 public const int material_grey_800 = 2131492904; // aapt resource value: 0x7f0c0029 public const int material_grey_850 = 2131492905; // aapt resource value: 0x7f0c002a public const int material_grey_900 = 2131492906; // aapt resource value: 0x7f0c0004 public const int notification_action_color_filter = 2131492868; // aapt resource value: 0x7f0c002b public const int notification_icon_bg_color = 2131492907; // aapt resource value: 0x7f0c002c public const int notification_material_background_media_default_color = 2131492908; // aapt resource value: 0x7f0c002d public const int primary_dark_material_dark = 2131492909; // aapt resource value: 0x7f0c002e public const int primary_dark_material_light = 2131492910; // aapt resource value: 0x7f0c002f public const int primary_material_dark = 2131492911; // aapt resource value: 0x7f0c0030 public const int primary_material_light = 2131492912; // aapt resource value: 0x7f0c0031 public const int primary_text_default_material_dark = 2131492913; // aapt resource value: 0x7f0c0032 public const int primary_text_default_material_light = 2131492914; // aapt resource value: 0x7f0c0033 public const int primary_text_disabled_material_dark = 2131492915; // aapt resource value: 0x7f0c0034 public const int primary_text_disabled_material_light = 2131492916; // aapt resource value: 0x7f0c0035 public const int ripple_material_dark = 2131492917; // aapt resource value: 0x7f0c0036 public const int ripple_material_light = 2131492918; // aapt resource value: 0x7f0c0037 public const int secondary_text_default_material_dark = 2131492919; // aapt resource value: 0x7f0c0038 public const int secondary_text_default_material_light = 2131492920; // aapt resource value: 0x7f0c0039 public const int secondary_text_disabled_material_dark = 2131492921; // aapt resource value: 0x7f0c003a public const int secondary_text_disabled_material_light = 2131492922; // aapt resource value: 0x7f0c003b public const int switch_thumb_disabled_material_dark = 2131492923; // aapt resource value: 0x7f0c003c public const int switch_thumb_disabled_material_light = 2131492924; // aapt resource value: 0x7f0c0061 public const int switch_thumb_material_dark = 2131492961; // aapt resource value: 0x7f0c0062 public const int switch_thumb_material_light = 2131492962; // aapt resource value: 0x7f0c003d public const int switch_thumb_normal_material_dark = 2131492925; // aapt resource value: 0x7f0c003e public const int switch_thumb_normal_material_light = 2131492926; static Color() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Color() { } } public partial class Dimension { // aapt resource value: 0x7f070018 public const int abc_action_bar_content_inset_material = 2131165208; // aapt resource value: 0x7f070019 public const int abc_action_bar_content_inset_with_nav = 2131165209; // aapt resource value: 0x7f07000d public const int abc_action_bar_default_height_material = 2131165197; // aapt resource value: 0x7f07001a public const int abc_action_bar_default_padding_end_material = 2131165210; // aapt resource value: 0x7f07001b public const int abc_action_bar_default_padding_start_material = 2131165211; // aapt resource value: 0x7f070021 public const int abc_action_bar_elevation_material = 2131165217; // aapt resource value: 0x7f070022 public const int abc_action_bar_icon_vertical_padding_material = 2131165218; // aapt resource value: 0x7f070023 public const int abc_action_bar_overflow_padding_end_material = 2131165219; // aapt resource value: 0x7f070024 public const int abc_action_bar_overflow_padding_start_material = 2131165220; // aapt resource value: 0x7f07000e public const int abc_action_bar_progress_bar_size = 2131165198; // aapt resource value: 0x7f070025 public const int abc_action_bar_stacked_max_height = 2131165221; // aapt resource value: 0x7f070026 public const int abc_action_bar_stacked_tab_max_width = 2131165222; // aapt resource value: 0x7f070027 public const int abc_action_bar_subtitle_bottom_margin_material = 2131165223; // aapt resource value: 0x7f070028 public const int abc_action_bar_subtitle_top_margin_material = 2131165224; // aapt resource value: 0x7f070029 public const int abc_action_button_min_height_material = 2131165225; // aapt resource value: 0x7f07002a public const int abc_action_button_min_width_material = 2131165226; // aapt resource value: 0x7f07002b public const int abc_action_button_min_width_overflow_material = 2131165227; // aapt resource value: 0x7f07000c public const int abc_alert_dialog_button_bar_height = 2131165196; // aapt resource value: 0x7f07002c public const int abc_button_inset_horizontal_material = 2131165228; // aapt resource value: 0x7f07002d public const int abc_button_inset_vertical_material = 2131165229; // aapt resource value: 0x7f07002e public const int abc_button_padding_horizontal_material = 2131165230; // aapt resource value: 0x7f07002f public const int abc_button_padding_vertical_material = 2131165231; // aapt resource value: 0x7f070030 public const int abc_cascading_menus_min_smallest_width = 2131165232; // aapt resource value: 0x7f070011 public const int abc_config_prefDialogWidth = 2131165201; // aapt resource value: 0x7f070031 public const int abc_control_corner_material = 2131165233; // aapt resource value: 0x7f070032 public const int abc_control_inset_material = 2131165234; // aapt resource value: 0x7f070033 public const int abc_control_padding_material = 2131165235; // aapt resource value: 0x7f070012 public const int abc_dialog_fixed_height_major = 2131165202; // aapt resource value: 0x7f070013 public const int abc_dialog_fixed_height_minor = 2131165203; // aapt resource value: 0x7f070014 public const int abc_dialog_fixed_width_major = 2131165204; // aapt resource value: 0x7f070015 public const int abc_dialog_fixed_width_minor = 2131165205; // aapt resource value: 0x7f070034 public const int abc_dialog_list_padding_bottom_no_buttons = 2131165236; // aapt resource value: 0x7f070035 public const int abc_dialog_list_padding_top_no_title = 2131165237; // aapt resource value: 0x7f070016 public const int abc_dialog_min_width_major = 2131165206; // aapt resource value: 0x7f070017 public const int abc_dialog_min_width_minor = 2131165207; // aapt resource value: 0x7f070036 public const int abc_dialog_padding_material = 2131165238; // aapt resource value: 0x7f070037 public const int abc_dialog_padding_top_material = 2131165239; // aapt resource value: 0x7f070038 public const int abc_dialog_title_divider_material = 2131165240; // aapt resource value: 0x7f070039 public const int abc_disabled_alpha_material_dark = 2131165241; // aapt resource value: 0x7f07003a public const int abc_disabled_alpha_material_light = 2131165242; // aapt resource value: 0x7f07003b public const int abc_dropdownitem_icon_width = 2131165243; // aapt resource value: 0x7f07003c public const int abc_dropdownitem_text_padding_left = 2131165244; // aapt resource value: 0x7f07003d public const int abc_dropdownitem_text_padding_right = 2131165245; // aapt resource value: 0x7f07003e public const int abc_edit_text_inset_bottom_material = 2131165246; // aapt resource value: 0x7f07003f public const int abc_edit_text_inset_horizontal_material = 2131165247; // aapt resource value: 0x7f070040 public const int abc_edit_text_inset_top_material = 2131165248; // aapt resource value: 0x7f070041 public const int abc_floating_window_z = 2131165249; // aapt resource value: 0x7f070042 public const int abc_list_item_padding_horizontal_material = 2131165250; // aapt resource value: 0x7f070043 public const int abc_panel_menu_list_width = 2131165251; // aapt resource value: 0x7f070044 public const int abc_progress_bar_height_material = 2131165252; // aapt resource value: 0x7f070045 public const int abc_search_view_preferred_height = 2131165253; // aapt resource value: 0x7f070046 public const int abc_search_view_preferred_width = 2131165254; // aapt resource value: 0x7f070047 public const int abc_seekbar_track_background_height_material = 2131165255; // aapt resource value: 0x7f070048 public const int abc_seekbar_track_progress_height_material = 2131165256; // aapt resource value: 0x7f070049 public const int abc_select_dialog_padding_start_material = 2131165257; // aapt resource value: 0x7f07001d public const int abc_switch_padding = 2131165213; // aapt resource value: 0x7f07004a public const int abc_text_size_body_1_material = 2131165258; // aapt resource value: 0x7f07004b public const int abc_text_size_body_2_material = 2131165259; // aapt resource value: 0x7f07004c public const int abc_text_size_button_material = 2131165260; // aapt resource value: 0x7f07004d public const int abc_text_size_caption_material = 2131165261; // aapt resource value: 0x7f07004e public const int abc_text_size_display_1_material = 2131165262; // aapt resource value: 0x7f07004f public const int abc_text_size_display_2_material = 2131165263; // aapt resource value: 0x7f070050 public const int abc_text_size_display_3_material = 2131165264; // aapt resource value: 0x7f070051 public const int abc_text_size_display_4_material = 2131165265; // aapt resource value: 0x7f070052 public const int abc_text_size_headline_material = 2131165266; // aapt resource value: 0x7f070053 public const int abc_text_size_large_material = 2131165267; // aapt resource value: 0x7f070054 public const int abc_text_size_medium_material = 2131165268; // aapt resource value: 0x7f070055 public const int abc_text_size_menu_header_material = 2131165269; // aapt resource value: 0x7f070056 public const int abc_text_size_menu_material = 2131165270; // aapt resource value: 0x7f070057 public const int abc_text_size_small_material = 2131165271; // aapt resource value: 0x7f070058 public const int abc_text_size_subhead_material = 2131165272; // aapt resource value: 0x7f07000f public const int abc_text_size_subtitle_material_toolbar = 2131165199; // aapt resource value: 0x7f070059 public const int abc_text_size_title_material = 2131165273; // aapt resource value: 0x7f070010 public const int abc_text_size_title_material_toolbar = 2131165200; // aapt resource value: 0x7f070009 public const int cardview_compat_inset_shadow = 2131165193; // aapt resource value: 0x7f07000a public const int cardview_default_elevation = 2131165194; // aapt resource value: 0x7f07000b public const int cardview_default_radius = 2131165195; // aapt resource value: 0x7f070076 public const int design_appbar_elevation = 2131165302; // aapt resource value: 0x7f070077 public const int design_bottom_navigation_active_item_max_width = 2131165303; // aapt resource value: 0x7f070078 public const int design_bottom_navigation_active_text_size = 2131165304; // aapt resource value: 0x7f070079 public const int design_bottom_navigation_elevation = 2131165305; // aapt resource value: 0x7f07007a public const int design_bottom_navigation_height = 2131165306; // aapt resource value: 0x7f07007b public const int design_bottom_navigation_item_max_width = 2131165307; // aapt resource value: 0x7f07007c public const int design_bottom_navigation_item_min_width = 2131165308; // aapt resource value: 0x7f07007d public const int design_bottom_navigation_margin = 2131165309; // aapt resource value: 0x7f07007e public const int design_bottom_navigation_shadow_height = 2131165310; // aapt resource value: 0x7f07007f public const int design_bottom_navigation_text_size = 2131165311; // aapt resource value: 0x7f070080 public const int design_bottom_sheet_modal_elevation = 2131165312; // aapt resource value: 0x7f070081 public const int design_bottom_sheet_peek_height_min = 2131165313; // aapt resource value: 0x7f070082 public const int design_fab_border_width = 2131165314; // aapt resource value: 0x7f070083 public const int design_fab_elevation = 2131165315; // aapt resource value: 0x7f070084 public const int design_fab_image_size = 2131165316; // aapt resource value: 0x7f070085 public const int design_fab_size_mini = 2131165317; // aapt resource value: 0x7f070086 public const int design_fab_size_normal = 2131165318; // aapt resource value: 0x7f070087 public const int design_fab_translation_z_pressed = 2131165319; // aapt resource value: 0x7f070088 public const int design_navigation_elevation = 2131165320; // aapt resource value: 0x7f070089 public const int design_navigation_icon_padding = 2131165321; // aapt resource value: 0x7f07008a public const int design_navigation_icon_size = 2131165322; // aapt resource value: 0x7f07006e public const int design_navigation_max_width = 2131165294; // aapt resource value: 0x7f07008b public const int design_navigation_padding_bottom = 2131165323; // aapt resource value: 0x7f07008c public const int design_navigation_separator_vertical_padding = 2131165324; // aapt resource value: 0x7f07006f public const int design_snackbar_action_inline_max_width = 2131165295; // aapt resource value: 0x7f070070 public const int design_snackbar_background_corner_radius = 2131165296; // aapt resource value: 0x7f07008d public const int design_snackbar_elevation = 2131165325; // aapt resource value: 0x7f070071 public const int design_snackbar_extra_spacing_horizontal = 2131165297; // aapt resource value: 0x7f070072 public const int design_snackbar_max_width = 2131165298; // aapt resource value: 0x7f070073 public const int design_snackbar_min_width = 2131165299; // aapt resource value: 0x7f07008e public const int design_snackbar_padding_horizontal = 2131165326; // aapt resource value: 0x7f07008f public const int design_snackbar_padding_vertical = 2131165327; // aapt resource value: 0x7f070074 public const int design_snackbar_padding_vertical_2lines = 2131165300; // aapt resource value: 0x7f070090 public const int design_snackbar_text_size = 2131165328; // aapt resource value: 0x7f070091 public const int design_tab_max_width = 2131165329; // aapt resource value: 0x7f070075 public const int design_tab_scrollable_min_width = 2131165301; // aapt resource value: 0x7f070092 public const int design_tab_text_size = 2131165330; // aapt resource value: 0x7f070093 public const int design_tab_text_size_2line = 2131165331; // aapt resource value: 0x7f07005a public const int disabled_alpha_material_dark = 2131165274; // aapt resource value: 0x7f07005b public const int disabled_alpha_material_light = 2131165275; // aapt resource value: 0x7f07005c public const int highlight_alpha_material_colored = 2131165276; // aapt resource value: 0x7f07005d public const int highlight_alpha_material_dark = 2131165277; // aapt resource value: 0x7f07005e public const int highlight_alpha_material_light = 2131165278; // aapt resource value: 0x7f07005f public const int hint_alpha_material_dark = 2131165279; // aapt resource value: 0x7f070060 public const int hint_alpha_material_light = 2131165280; // aapt resource value: 0x7f070061 public const int hint_pressed_alpha_material_dark = 2131165281; // aapt resource value: 0x7f070062 public const int hint_pressed_alpha_material_light = 2131165282; // aapt resource value: 0x7f070000 public const int item_touch_helper_max_drag_scroll_per_frame = 2131165184; // aapt resource value: 0x7f070001 public const int item_touch_helper_swipe_escape_max_velocity = 2131165185; // aapt resource value: 0x7f070002 public const int item_touch_helper_swipe_escape_velocity = 2131165186; // aapt resource value: 0x7f070003 public const int mr_controller_volume_group_list_item_height = 2131165187; // aapt resource value: 0x7f070004 public const int mr_controller_volume_group_list_item_icon_size = 2131165188; // aapt resource value: 0x7f070005 public const int mr_controller_volume_group_list_max_height = 2131165189; // aapt resource value: 0x7f070008 public const int mr_controller_volume_group_list_padding_top = 2131165192; // aapt resource value: 0x7f070006 public const int mr_dialog_fixed_width_major = 2131165190; // aapt resource value: 0x7f070007 public const int mr_dialog_fixed_width_minor = 2131165191; // aapt resource value: 0x7f070063 public const int notification_action_icon_size = 2131165283; // aapt resource value: 0x7f070064 public const int notification_action_text_size = 2131165284; // aapt resource value: 0x7f070065 public const int notification_big_circle_margin = 2131165285; // aapt resource value: 0x7f07001e public const int notification_content_margin_start = 2131165214; // aapt resource value: 0x7f070066 public const int notification_large_icon_height = 2131165286; // aapt resource value: 0x7f070067 public const int notification_large_icon_width = 2131165287; // aapt resource value: 0x7f07001f public const int notification_main_column_padding_top = 2131165215; // aapt resource value: 0x7f070020 public const int notification_media_narrow_margin = 2131165216; // aapt resource value: 0x7f070068 public const int notification_right_icon_size = 2131165288; // aapt resource value: 0x7f07001c public const int notification_right_side_padding_top = 2131165212; // aapt resource value: 0x7f070069 public const int notification_small_icon_background_padding = 2131165289; // aapt resource value: 0x7f07006a public const int notification_small_icon_size_as_large = 2131165290; // aapt resource value: 0x7f07006b public const int notification_subtext_size = 2131165291; // aapt resource value: 0x7f07006c public const int notification_top_pad = 2131165292; // aapt resource value: 0x7f07006d public const int notification_top_pad_large_text = 2131165293; static Dimension() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Dimension() { } } public partial class Drawable { // aapt resource value: 0x7f020000 public const int abc_ab_share_pack_mtrl_alpha = 2130837504; // aapt resource value: 0x7f020001 public const int abc_action_bar_item_background_material = 2130837505; // aapt resource value: 0x7f020002 public const int abc_btn_borderless_material = 2130837506; // aapt resource value: 0x7f020003 public const int abc_btn_check_material = 2130837507; // aapt resource value: 0x7f020004 public const int abc_btn_check_to_on_mtrl_000 = 2130837508; // aapt resource value: 0x7f020005 public const int abc_btn_check_to_on_mtrl_015 = 2130837509; // aapt resource value: 0x7f020006 public const int abc_btn_colored_material = 2130837510; // aapt resource value: 0x7f020007 public const int abc_btn_default_mtrl_shape = 2130837511; // aapt resource value: 0x7f020008 public const int abc_btn_radio_material = 2130837512; // aapt resource value: 0x7f020009 public const int abc_btn_radio_to_on_mtrl_000 = 2130837513; // aapt resource value: 0x7f02000a public const int abc_btn_radio_to_on_mtrl_015 = 2130837514; // aapt resource value: 0x7f02000b public const int abc_btn_switch_to_on_mtrl_00001 = 2130837515; // aapt resource value: 0x7f02000c public const int abc_btn_switch_to_on_mtrl_00012 = 2130837516; // aapt resource value: 0x7f02000d public const int abc_cab_background_internal_bg = 2130837517; // aapt resource value: 0x7f02000e public const int abc_cab_background_top_material = 2130837518; // aapt resource value: 0x7f02000f public const int abc_cab_background_top_mtrl_alpha = 2130837519; // aapt resource value: 0x7f020010 public const int abc_control_background_material = 2130837520; // aapt resource value: 0x7f020011 public const int abc_dialog_material_background = 2130837521; // aapt resource value: 0x7f020012 public const int abc_edit_text_material = 2130837522; // aapt resource value: 0x7f020013 public const int abc_ic_ab_back_material = 2130837523; // aapt resource value: 0x7f020014 public const int abc_ic_arrow_drop_right_black_24dp = 2130837524; // aapt resource value: 0x7f020015 public const int abc_ic_clear_material = 2130837525; // aapt resource value: 0x7f020016 public const int abc_ic_commit_search_api_mtrl_alpha = 2130837526; // aapt resource value: 0x7f020017 public const int abc_ic_go_search_api_material = 2130837527; // aapt resource value: 0x7f020018 public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837528; // aapt resource value: 0x7f020019 public const int abc_ic_menu_cut_mtrl_alpha = 2130837529; // aapt resource value: 0x7f02001a public const int abc_ic_menu_overflow_material = 2130837530; // aapt resource value: 0x7f02001b public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837531; // aapt resource value: 0x7f02001c public const int abc_ic_menu_selectall_mtrl_alpha = 2130837532; // aapt resource value: 0x7f02001d public const int abc_ic_menu_share_mtrl_alpha = 2130837533; // aapt resource value: 0x7f02001e public const int abc_ic_search_api_material = 2130837534; // aapt resource value: 0x7f02001f public const int abc_ic_star_black_16dp = 2130837535; // aapt resource value: 0x7f020020 public const int abc_ic_star_black_36dp = 2130837536; // aapt resource value: 0x7f020021 public const int abc_ic_star_black_48dp = 2130837537; // aapt resource value: 0x7f020022 public const int abc_ic_star_half_black_16dp = 2130837538; // aapt resource value: 0x7f020023 public const int abc_ic_star_half_black_36dp = 2130837539; // aapt resource value: 0x7f020024 public const int abc_ic_star_half_black_48dp = 2130837540; // aapt resource value: 0x7f020025 public const int abc_ic_voice_search_api_material = 2130837541; // aapt resource value: 0x7f020026 public const int abc_item_background_holo_dark = 2130837542; // aapt resource value: 0x7f020027 public const int abc_item_background_holo_light = 2130837543; // aapt resource value: 0x7f020028 public const int abc_list_divider_mtrl_alpha = 2130837544; // aapt resource value: 0x7f020029 public const int abc_list_focused_holo = 2130837545; // aapt resource value: 0x7f02002a public const int abc_list_longpressed_holo = 2130837546; // aapt resource value: 0x7f02002b public const int abc_list_pressed_holo_dark = 2130837547; // aapt resource value: 0x7f02002c public const int abc_list_pressed_holo_light = 2130837548; // aapt resource value: 0x7f02002d public const int abc_list_selector_background_transition_holo_dark = 2130837549; // aapt resource value: 0x7f02002e public const int abc_list_selector_background_transition_holo_light = 2130837550; // aapt resource value: 0x7f02002f public const int abc_list_selector_disabled_holo_dark = 2130837551; // aapt resource value: 0x7f020030 public const int abc_list_selector_disabled_holo_light = 2130837552; // aapt resource value: 0x7f020031 public const int abc_list_selector_holo_dark = 2130837553; // aapt resource value: 0x7f020032 public const int abc_list_selector_holo_light = 2130837554; // aapt resource value: 0x7f020033 public const int abc_menu_hardkey_panel_mtrl_mult = 2130837555; // aapt resource value: 0x7f020034 public const int abc_popup_background_mtrl_mult = 2130837556; // aapt resource value: 0x7f020035 public const int abc_ratingbar_indicator_material = 2130837557; // aapt resource value: 0x7f020036 public const int abc_ratingbar_material = 2130837558; // aapt resource value: 0x7f020037 public const int abc_ratingbar_small_material = 2130837559; // aapt resource value: 0x7f020038 public const int abc_scrubber_control_off_mtrl_alpha = 2130837560; // aapt resource value: 0x7f020039 public const int abc_scrubber_control_to_pressed_mtrl_000 = 2130837561; // aapt resource value: 0x7f02003a public const int abc_scrubber_control_to_pressed_mtrl_005 = 2130837562; // aapt resource value: 0x7f02003b public const int abc_scrubber_primary_mtrl_alpha = 2130837563; // aapt resource value: 0x7f02003c public const int abc_scrubber_track_mtrl_alpha = 2130837564; // aapt resource value: 0x7f02003d public const int abc_seekbar_thumb_material = 2130837565; // aapt resource value: 0x7f02003e public const int abc_seekbar_tick_mark_material = 2130837566; // aapt resource value: 0x7f02003f public const int abc_seekbar_track_material = 2130837567; // aapt resource value: 0x7f020040 public const int abc_spinner_mtrl_am_alpha = 2130837568; // aapt resource value: 0x7f020041 public const int abc_spinner_textfield_background_material = 2130837569; // aapt resource value: 0x7f020042 public const int abc_switch_thumb_material = 2130837570; // aapt resource value: 0x7f020043 public const int abc_switch_track_mtrl_alpha = 2130837571; // aapt resource value: 0x7f020044 public const int abc_tab_indicator_material = 2130837572; // aapt resource value: 0x7f020045 public const int abc_tab_indicator_mtrl_alpha = 2130837573; // aapt resource value: 0x7f020046 public const int abc_text_cursor_material = 2130837574; // aapt resource value: 0x7f020047 public const int abc_text_select_handle_left_mtrl_dark = 2130837575; // aapt resource value: 0x7f020048 public const int abc_text_select_handle_left_mtrl_light = 2130837576; // aapt resource value: 0x7f020049 public const int abc_text_select_handle_middle_mtrl_dark = 2130837577; // aapt resource value: 0x7f02004a public const int abc_text_select_handle_middle_mtrl_light = 2130837578; // aapt resource value: 0x7f02004b public const int abc_text_select_handle_right_mtrl_dark = 2130837579; // aapt resource value: 0x7f02004c public const int abc_text_select_handle_right_mtrl_light = 2130837580; // aapt resource value: 0x7f02004d public const int abc_textfield_activated_mtrl_alpha = 2130837581; // aapt resource value: 0x7f02004e public const int abc_textfield_default_mtrl_alpha = 2130837582; // aapt resource value: 0x7f02004f public const int abc_textfield_search_activated_mtrl_alpha = 2130837583; // aapt resource value: 0x7f020050 public const int abc_textfield_search_default_mtrl_alpha = 2130837584; // aapt resource value: 0x7f020051 public const int abc_textfield_search_material = 2130837585; // aapt resource value: 0x7f020052 public const int abc_vector_test = 2130837586; // aapt resource value: 0x7f020053 public const int avd_hide_password = 2130837587; // aapt resource value: 0x7f02010e public const int avd_hide_password_1 = 2130837774; // aapt resource value: 0x7f02010f public const int avd_hide_password_2 = 2130837775; // aapt resource value: 0x7f020110 public const int avd_hide_password_3 = 2130837776; // aapt resource value: 0x7f020054 public const int avd_show_password = 2130837588; // aapt resource value: 0x7f020111 public const int avd_show_password_1 = 2130837777; // aapt resource value: 0x7f020112 public const int avd_show_password_2 = 2130837778; // aapt resource value: 0x7f020113 public const int avd_show_password_3 = 2130837779; // aapt resource value: 0x7f020055 public const int design_bottom_navigation_item_background = 2130837589; // aapt resource value: 0x7f020056 public const int design_fab_background = 2130837590; // aapt resource value: 0x7f020057 public const int design_ic_visibility = 2130837591; // aapt resource value: 0x7f020058 public const int design_ic_visibility_off = 2130837592; // aapt resource value: 0x7f020059 public const int design_password_eye = 2130837593; // aapt resource value: 0x7f02005a public const int design_snackbar_background = 2130837594; // aapt resource value: 0x7f02005b public const int ic_audiotrack_dark = 2130837595; // aapt resource value: 0x7f02005c public const int ic_audiotrack_light = 2130837596; // aapt resource value: 0x7f02005d public const int ic_dialog_close_dark = 2130837597; // aapt resource value: 0x7f02005e public const int ic_dialog_close_light = 2130837598; // aapt resource value: 0x7f02005f public const int ic_group_collapse_00 = 2130837599; // aapt resource value: 0x7f020060 public const int ic_group_collapse_01 = 2130837600; // aapt resource value: 0x7f020061 public const int ic_group_collapse_02 = 2130837601; // aapt resource value: 0x7f020062 public const int ic_group_collapse_03 = 2130837602; // aapt resource value: 0x7f020063 public const int ic_group_collapse_04 = 2130837603; // aapt resource value: 0x7f020064 public const int ic_group_collapse_05 = 2130837604; // aapt resource value: 0x7f020065 public const int ic_group_collapse_06 = 2130837605; // aapt resource value: 0x7f020066 public const int ic_group_collapse_07 = 2130837606; // aapt resource value: 0x7f020067 public const int ic_group_collapse_08 = 2130837607; // aapt resource value: 0x7f020068 public const int ic_group_collapse_09 = 2130837608; // aapt resource value: 0x7f020069 public const int ic_group_collapse_10 = 2130837609; // aapt resource value: 0x7f02006a public const int ic_group_collapse_11 = 2130837610; // aapt resource value: 0x7f02006b public const int ic_group_collapse_12 = 2130837611; // aapt resource value: 0x7f02006c public const int ic_group_collapse_13 = 2130837612; // aapt resource value: 0x7f02006d public const int ic_group_collapse_14 = 2130837613; // aapt resource value: 0x7f02006e public const int ic_group_collapse_15 = 2130837614; // aapt resource value: 0x7f02006f public const int ic_group_expand_00 = 2130837615; // aapt resource value: 0x7f020070 public const int ic_group_expand_01 = 2130837616; // aapt resource value: 0x7f020071 public const int ic_group_expand_02 = 2130837617; // aapt resource value: 0x7f020072 public const int ic_group_expand_03 = 2130837618; // aapt resource value: 0x7f020073 public const int ic_group_expand_04 = 2130837619; // aapt resource value: 0x7f020074 public const int ic_group_expand_05 = 2130837620; // aapt resource value: 0x7f020075 public const int ic_group_expand_06 = 2130837621; // aapt resource value: 0x7f020076 public const int ic_group_expand_07 = 2130837622; // aapt resource value: 0x7f020077 public const int ic_group_expand_08 = 2130837623; // aapt resource value: 0x7f020078 public const int ic_group_expand_09 = 2130837624; // aapt resource value: 0x7f020079 public const int ic_group_expand_10 = 2130837625; // aapt resource value: 0x7f02007a public const int ic_group_expand_11 = 2130837626; // aapt resource value: 0x7f02007b public const int ic_group_expand_12 = 2130837627; // aapt resource value: 0x7f02007c public const int ic_group_expand_13 = 2130837628; // aapt resource value: 0x7f02007d public const int ic_group_expand_14 = 2130837629; // aapt resource value: 0x7f02007e public const int ic_group_expand_15 = 2130837630; // aapt resource value: 0x7f02007f public const int ic_media_pause_dark = 2130837631; // aapt resource value: 0x7f020080 public const int ic_media_pause_light = 2130837632; // aapt resource value: 0x7f020081 public const int ic_media_play_dark = 2130837633; // aapt resource value: 0x7f020082 public const int ic_media_play_light = 2130837634; // aapt resource value: 0x7f020083 public const int ic_media_stop_dark = 2130837635; // aapt resource value: 0x7f020084 public const int ic_media_stop_light = 2130837636; // aapt resource value: 0x7f020085 public const int ic_mr_button_connected_00_dark = 2130837637; // aapt resource value: 0x7f020086 public const int ic_mr_button_connected_00_light = 2130837638; // aapt resource value: 0x7f020087 public const int ic_mr_button_connected_01_dark = 2130837639; // aapt resource value: 0x7f020088 public const int ic_mr_button_connected_01_light = 2130837640; // aapt resource value: 0x7f020089 public const int ic_mr_button_connected_02_dark = 2130837641; // aapt resource value: 0x7f02008a public const int ic_mr_button_connected_02_light = 2130837642; // aapt resource value: 0x7f02008b public const int ic_mr_button_connected_03_dark = 2130837643; // aapt resource value: 0x7f02008c public const int ic_mr_button_connected_03_light = 2130837644; // aapt resource value: 0x7f02008d public const int ic_mr_button_connected_04_dark = 2130837645; // aapt resource value: 0x7f02008e public const int ic_mr_button_connected_04_light = 2130837646; // aapt resource value: 0x7f02008f public const int ic_mr_button_connected_05_dark = 2130837647; // aapt resource value: 0x7f020090 public const int ic_mr_button_connected_05_light = 2130837648; // aapt resource value: 0x7f020091 public const int ic_mr_button_connected_06_dark = 2130837649; // aapt resource value: 0x7f020092 public const int ic_mr_button_connected_06_light = 2130837650; // aapt resource value: 0x7f020093 public const int ic_mr_button_connected_07_dark = 2130837651; // aapt resource value: 0x7f020094 public const int ic_mr_button_connected_07_light = 2130837652; // aapt resource value: 0x7f020095 public const int ic_mr_button_connected_08_dark = 2130837653; // aapt resource value: 0x7f020096 public const int ic_mr_button_connected_08_light = 2130837654; // aapt resource value: 0x7f020097 public const int ic_mr_button_connected_09_dark = 2130837655; // aapt resource value: 0x7f020098 public const int ic_mr_button_connected_09_light = 2130837656; // aapt resource value: 0x7f020099 public const int ic_mr_button_connected_10_dark = 2130837657; // aapt resource value: 0x7f02009a public const int ic_mr_button_connected_10_light = 2130837658; // aapt resource value: 0x7f02009b public const int ic_mr_button_connected_11_dark = 2130837659; // aapt resource value: 0x7f02009c public const int ic_mr_button_connected_11_light = 2130837660; // aapt resource value: 0x7f02009d public const int ic_mr_button_connected_12_dark = 2130837661; // aapt resource value: 0x7f02009e public const int ic_mr_button_connected_12_light = 2130837662; // aapt resource value: 0x7f02009f public const int ic_mr_button_connected_13_dark = 2130837663; // aapt resource value: 0x7f0200a0 public const int ic_mr_button_connected_13_light = 2130837664; // aapt resource value: 0x7f0200a1 public const int ic_mr_button_connected_14_dark = 2130837665; // aapt resource value: 0x7f0200a2 public const int ic_mr_button_connected_14_light = 2130837666; // aapt resource value: 0x7f0200a3 public const int ic_mr_button_connected_15_dark = 2130837667; // aapt resource value: 0x7f0200a4 public const int ic_mr_button_connected_15_light = 2130837668; // aapt resource value: 0x7f0200a5 public const int ic_mr_button_connected_16_dark = 2130837669; // aapt resource value: 0x7f0200a6 public const int ic_mr_button_connected_16_light = 2130837670; // aapt resource value: 0x7f0200a7 public const int ic_mr_button_connected_17_dark = 2130837671; // aapt resource value: 0x7f0200a8 public const int ic_mr_button_connected_17_light = 2130837672; // aapt resource value: 0x7f0200a9 public const int ic_mr_button_connected_18_dark = 2130837673; // aapt resource value: 0x7f0200aa public const int ic_mr_button_connected_18_light = 2130837674; // aapt resource value: 0x7f0200ab public const int ic_mr_button_connected_19_dark = 2130837675; // aapt resource value: 0x7f0200ac public const int ic_mr_button_connected_19_light = 2130837676; // aapt resource value: 0x7f0200ad public const int ic_mr_button_connected_20_dark = 2130837677; // aapt resource value: 0x7f0200ae public const int ic_mr_button_connected_20_light = 2130837678; // aapt resource value: 0x7f0200af public const int ic_mr_button_connected_21_dark = 2130837679; // aapt resource value: 0x7f0200b0 public const int ic_mr_button_connected_21_light = 2130837680; // aapt resource value: 0x7f0200b1 public const int ic_mr_button_connected_22_dark = 2130837681; // aapt resource value: 0x7f0200b2 public const int ic_mr_button_connected_22_light = 2130837682; // aapt resource value: 0x7f0200b3 public const int ic_mr_button_connecting_00_dark = 2130837683; // aapt resource value: 0x7f0200b4 public const int ic_mr_button_connecting_00_light = 2130837684; // aapt resource value: 0x7f0200b5 public const int ic_mr_button_connecting_01_dark = 2130837685; // aapt resource value: 0x7f0200b6 public const int ic_mr_button_connecting_01_light = 2130837686; // aapt resource value: 0x7f0200b7 public const int ic_mr_button_connecting_02_dark = 2130837687; // aapt resource value: 0x7f0200b8 public const int ic_mr_button_connecting_02_light = 2130837688; // aapt resource value: 0x7f0200b9 public const int ic_mr_button_connecting_03_dark = 2130837689; // aapt resource value: 0x7f0200ba public const int ic_mr_button_connecting_03_light = 2130837690; // aapt resource value: 0x7f0200bb public const int ic_mr_button_connecting_04_dark = 2130837691; // aapt resource value: 0x7f0200bc public const int ic_mr_button_connecting_04_light = 2130837692; // aapt resource value: 0x7f0200bd public const int ic_mr_button_connecting_05_dark = 2130837693; // aapt resource value: 0x7f0200be public const int ic_mr_button_connecting_05_light = 2130837694; // aapt resource value: 0x7f0200bf public const int ic_mr_button_connecting_06_dark = 2130837695; // aapt resource value: 0x7f0200c0 public const int ic_mr_button_connecting_06_light = 2130837696; // aapt resource value: 0x7f0200c1 public const int ic_mr_button_connecting_07_dark = 2130837697; // aapt resource value: 0x7f0200c2 public const int ic_mr_button_connecting_07_light = 2130837698; // aapt resource value: 0x7f0200c3 public const int ic_mr_button_connecting_08_dark = 2130837699; // aapt resource value: 0x7f0200c4 public const int ic_mr_button_connecting_08_light = 2130837700; // aapt resource value: 0x7f0200c5 public const int ic_mr_button_connecting_09_dark = 2130837701; // aapt resource value: 0x7f0200c6 public const int ic_mr_button_connecting_09_light = 2130837702; // aapt resource value: 0x7f0200c7 public const int ic_mr_button_connecting_10_dark = 2130837703; // aapt resource value: 0x7f0200c8 public const int ic_mr_button_connecting_10_light = 2130837704; // aapt resource value: 0x7f0200c9 public const int ic_mr_button_connecting_11_dark = 2130837705; // aapt resource value: 0x7f0200ca public const int ic_mr_button_connecting_11_light = 2130837706; // aapt resource value: 0x7f0200cb public const int ic_mr_button_connecting_12_dark = 2130837707; // aapt resource value: 0x7f0200cc public const int ic_mr_button_connecting_12_light = 2130837708; // aapt resource value: 0x7f0200cd public const int ic_mr_button_connecting_13_dark = 2130837709; // aapt resource value: 0x7f0200ce public const int ic_mr_button_connecting_13_light = 2130837710; // aapt resource value: 0x7f0200cf public const int ic_mr_button_connecting_14_dark = 2130837711; // aapt resource value: 0x7f0200d0 public const int ic_mr_button_connecting_14_light = 2130837712; // aapt resource value: 0x7f0200d1 public const int ic_mr_button_connecting_15_dark = 2130837713; // aapt resource value: 0x7f0200d2 public const int ic_mr_button_connecting_15_light = 2130837714; // aapt resource value: 0x7f0200d3 public const int ic_mr_button_connecting_16_dark = 2130837715; // aapt resource value: 0x7f0200d4 public const int ic_mr_button_connecting_16_light = 2130837716; // aapt resource value: 0x7f0200d5 public const int ic_mr_button_connecting_17_dark = 2130837717; // aapt resource value: 0x7f0200d6 public const int ic_mr_button_connecting_17_light = 2130837718; // aapt resource value: 0x7f0200d7 public const int ic_mr_button_connecting_18_dark = 2130837719; // aapt resource value: 0x7f0200d8 public const int ic_mr_button_connecting_18_light = 2130837720; // aapt resource value: 0x7f0200d9 public const int ic_mr_button_connecting_19_dark = 2130837721; // aapt resource value: 0x7f0200da public const int ic_mr_button_connecting_19_light = 2130837722; // aapt resource value: 0x7f0200db public const int ic_mr_button_connecting_20_dark = 2130837723; // aapt resource value: 0x7f0200dc public const int ic_mr_button_connecting_20_light = 2130837724; // aapt resource value: 0x7f0200dd public const int ic_mr_button_connecting_21_dark = 2130837725; // aapt resource value: 0x7f0200de public const int ic_mr_button_connecting_21_light = 2130837726; // aapt resource value: 0x7f0200df public const int ic_mr_button_connecting_22_dark = 2130837727; // aapt resource value: 0x7f0200e0 public const int ic_mr_button_connecting_22_light = 2130837728; // aapt resource value: 0x7f0200e1 public const int ic_mr_button_disabled_dark = 2130837729; // aapt resource value: 0x7f0200e2 public const int ic_mr_button_disabled_light = 2130837730; // aapt resource value: 0x7f0200e3 public const int ic_mr_button_disconnected_dark = 2130837731; // aapt resource value: 0x7f0200e4 public const int ic_mr_button_disconnected_light = 2130837732; // aapt resource value: 0x7f0200e5 public const int ic_mr_button_grey = 2130837733; // aapt resource value: 0x7f0200e6 public const int ic_vol_type_speaker_dark = 2130837734; // aapt resource value: 0x7f0200e7 public const int ic_vol_type_speaker_group_dark = 2130837735; // aapt resource value: 0x7f0200e8 public const int ic_vol_type_speaker_group_light = 2130837736; // aapt resource value: 0x7f0200e9 public const int ic_vol_type_speaker_light = 2130837737; // aapt resource value: 0x7f0200ea public const int ic_vol_type_tv_dark = 2130837738; // aapt resource value: 0x7f0200eb public const int ic_vol_type_tv_light = 2130837739; // aapt resource value: 0x7f0200ec public const int icon = 2130837740; // aapt resource value: 0x7f0200ed public const int mr_button_connected_dark = 2130837741; // aapt resource value: 0x7f0200ee public const int mr_button_connected_light = 2130837742; // aapt resource value: 0x7f0200ef public const int mr_button_connecting_dark = 2130837743; // aapt resource value: 0x7f0200f0 public const int mr_button_connecting_light = 2130837744; // aapt resource value: 0x7f0200f1 public const int mr_button_dark = 2130837745; // aapt resource value: 0x7f0200f2 public const int mr_button_light = 2130837746; // aapt resource value: 0x7f0200f3 public const int mr_dialog_close_dark = 2130837747; // aapt resource value: 0x7f0200f4 public const int mr_dialog_close_light = 2130837748; // aapt resource value: 0x7f0200f5 public const int mr_dialog_material_background_dark = 2130837749; // aapt resource value: 0x7f0200f6 public const int mr_dialog_material_background_light = 2130837750; // aapt resource value: 0x7f0200f7 public const int mr_group_collapse = 2130837751; // aapt resource value: 0x7f0200f8 public const int mr_group_expand = 2130837752; // aapt resource value: 0x7f0200f9 public const int mr_media_pause_dark = 2130837753; // aapt resource value: 0x7f0200fa public const int mr_media_pause_light = 2130837754; // aapt resource value: 0x7f0200fb public const int mr_media_play_dark = 2130837755; // aapt resource value: 0x7f0200fc public const int mr_media_play_light = 2130837756; // aapt resource value: 0x7f0200fd public const int mr_media_stop_dark = 2130837757; // aapt resource value: 0x7f0200fe public const int mr_media_stop_light = 2130837758; // aapt resource value: 0x7f0200ff public const int mr_vol_type_audiotrack_dark = 2130837759; // aapt resource value: 0x7f020100 public const int mr_vol_type_audiotrack_light = 2130837760; // aapt resource value: 0x7f020101 public const int navigation_empty_icon = 2130837761; // aapt resource value: 0x7f020102 public const int notification_action_background = 2130837762; // aapt resource value: 0x7f020103 public const int notification_bg = 2130837763; // aapt resource value: 0x7f020104 public const int notification_bg_low = 2130837764; // aapt resource value: 0x7f020105 public const int notification_bg_low_normal = 2130837765; // aapt resource value: 0x7f020106 public const int notification_bg_low_pressed = 2130837766; // aapt resource value: 0x7f020107 public const int notification_bg_normal = 2130837767; // aapt resource value: 0x7f020108 public const int notification_bg_normal_pressed = 2130837768; // aapt resource value: 0x7f020109 public const int notification_icon_background = 2130837769; // aapt resource value: 0x7f02010c public const int notification_template_icon_bg = 2130837772; // aapt resource value: 0x7f02010d public const int notification_template_icon_low_bg = 2130837773; // aapt resource value: 0x7f02010a public const int notification_tile_bg = 2130837770; // aapt resource value: 0x7f02010b public const int notify_panel_notification_icon_bg = 2130837771; static Drawable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Drawable() { } } public partial class Id { // aapt resource value: 0x7f08009e public const int action0 = 2131230878; // aapt resource value: 0x7f080064 public const int action_bar = 2131230820; // aapt resource value: 0x7f080001 public const int action_bar_activity_content = 2131230721; // aapt resource value: 0x7f080063 public const int action_bar_container = 2131230819; // aapt resource value: 0x7f08005f public const int action_bar_root = 2131230815; // aapt resource value: 0x7f080002 public const int action_bar_spinner = 2131230722; // aapt resource value: 0x7f080042 public const int action_bar_subtitle = 2131230786; // aapt resource value: 0x7f080041 public const int action_bar_title = 2131230785; // aapt resource value: 0x7f08009b public const int action_container = 2131230875; // aapt resource value: 0x7f080065 public const int action_context_bar = 2131230821; // aapt resource value: 0x7f0800a2 public const int action_divider = 2131230882; // aapt resource value: 0x7f08009c public const int action_image = 2131230876; // aapt resource value: 0x7f080003 public const int action_menu_divider = 2131230723; // aapt resource value: 0x7f080004 public const int action_menu_presenter = 2131230724; // aapt resource value: 0x7f080061 public const int action_mode_bar = 2131230817; // aapt resource value: 0x7f080060 public const int action_mode_bar_stub = 2131230816; // aapt resource value: 0x7f080043 public const int action_mode_close_button = 2131230787; // aapt resource value: 0x7f08009d public const int action_text = 2131230877; // aapt resource value: 0x7f0800ab public const int actions = 2131230891; // aapt resource value: 0x7f080044 public const int activity_chooser_view_content = 2131230788; // aapt resource value: 0x7f08001e public const int add = 2131230750; // aapt resource value: 0x7f080058 public const int alertTitle = 2131230808; // aapt resource value: 0x7f08003d public const int all = 2131230781; // aapt resource value: 0x7f080023 public const int always = 2131230755; // aapt resource value: 0x7f08002f public const int auto = 2131230767; // aapt resource value: 0x7f080020 public const int beginning = 2131230752; // aapt resource value: 0x7f080028 public const int bottom = 2131230760; // aapt resource value: 0x7f08004b public const int buttonPanel = 2131230795; // aapt resource value: 0x7f08009f public const int cancel_action = 2131230879; // aapt resource value: 0x7f080030 public const int center = 2131230768; // aapt resource value: 0x7f080031 public const int center_horizontal = 2131230769; // aapt resource value: 0x7f080032 public const int center_vertical = 2131230770; // aapt resource value: 0x7f08005b public const int checkbox = 2131230811; // aapt resource value: 0x7f0800a7 public const int chronometer = 2131230887; // aapt resource value: 0x7f080039 public const int clip_horizontal = 2131230777; // aapt resource value: 0x7f08003a public const int clip_vertical = 2131230778; // aapt resource value: 0x7f080024 public const int collapseActionView = 2131230756; // aapt resource value: 0x7f080075 public const int container = 2131230837; // aapt resource value: 0x7f08004e public const int contentPanel = 2131230798; // aapt resource value: 0x7f080076 public const int coordinator = 2131230838; // aapt resource value: 0x7f080055 public const int custom = 2131230805; // aapt resource value: 0x7f080054 public const int customPanel = 2131230804; // aapt resource value: 0x7f080062 public const int decor_content_parent = 2131230818; // aapt resource value: 0x7f080047 public const int default_activity_button = 2131230791; // aapt resource value: 0x7f080078 public const int design_bottom_sheet = 2131230840; // aapt resource value: 0x7f08007f public const int design_menu_item_action_area = 2131230847; // aapt resource value: 0x7f08007e public const int design_menu_item_action_area_stub = 2131230846; // aapt resource value: 0x7f08007d public const int design_menu_item_text = 2131230845; // aapt resource value: 0x7f08007c public const int design_navigation_view = 2131230844; // aapt resource value: 0x7f080012 public const int disableHome = 2131230738; // aapt resource value: 0x7f080066 public const int edit_query = 2131230822; // aapt resource value: 0x7f080021 public const int end = 2131230753; // aapt resource value: 0x7f0800b1 public const int end_padder = 2131230897; // aapt resource value: 0x7f08002a public const int enterAlways = 2131230762; // aapt resource value: 0x7f08002b public const int enterAlwaysCollapsed = 2131230763; // aapt resource value: 0x7f08002c public const int exitUntilCollapsed = 2131230764; // aapt resource value: 0x7f080045 public const int expand_activities_button = 2131230789; // aapt resource value: 0x7f08005a public const int expanded_menu = 2131230810; // aapt resource value: 0x7f08003b public const int fill = 2131230779; // aapt resource value: 0x7f08003c public const int fill_horizontal = 2131230780; // aapt resource value: 0x7f080033 public const int fill_vertical = 2131230771; // aapt resource value: 0x7f08003f public const int @fixed = 2131230783; // aapt resource value: 0x7f080005 public const int home = 2131230725; // aapt resource value: 0x7f080013 public const int homeAsUp = 2131230739; // aapt resource value: 0x7f080049 public const int icon = 2131230793; // aapt resource value: 0x7f0800ac public const int icon_group = 2131230892; // aapt resource value: 0x7f080025 public const int ifRoom = 2131230757; // aapt resource value: 0x7f080046 public const int image = 2131230790; // aapt resource value: 0x7f0800a8 public const int info = 2131230888; // aapt resource value: 0x7f080000 public const int item_touch_helper_previous_elevation = 2131230720; // aapt resource value: 0x7f080074 public const int largeLabel = 2131230836; // aapt resource value: 0x7f080034 public const int left = 2131230772; // aapt resource value: 0x7f0800ad public const int line1 = 2131230893; // aapt resource value: 0x7f0800af public const int line3 = 2131230895; // aapt resource value: 0x7f08000f public const int listMode = 2131230735; // aapt resource value: 0x7f080048 public const int list_item = 2131230792; // aapt resource value: 0x7f0800b5 public const int masked = 2131230901; // aapt resource value: 0x7f0800a1 public const int media_actions = 2131230881; // aapt resource value: 0x7f080022 public const int middle = 2131230754; // aapt resource value: 0x7f08003e public const int mini = 2131230782; // aapt resource value: 0x7f08008d public const int mr_art = 2131230861; // aapt resource value: 0x7f080082 public const int mr_chooser_list = 2131230850; // aapt resource value: 0x7f080085 public const int mr_chooser_route_desc = 2131230853; // aapt resource value: 0x7f080083 public const int mr_chooser_route_icon = 2131230851; // aapt resource value: 0x7f080084 public const int mr_chooser_route_name = 2131230852; // aapt resource value: 0x7f080081 public const int mr_chooser_title = 2131230849; // aapt resource value: 0x7f08008a public const int mr_close = 2131230858; // aapt resource value: 0x7f080090 public const int mr_control_divider = 2131230864; // aapt resource value: 0x7f080096 public const int mr_control_playback_ctrl = 2131230870; // aapt resource value: 0x7f080099 public const int mr_control_subtitle = 2131230873; // aapt resource value: 0x7f080098 public const int mr_control_title = 2131230872; // aapt resource value: 0x7f080097 public const int mr_control_title_container = 2131230871; // aapt resource value: 0x7f08008b public const int mr_custom_control = 2131230859; // aapt resource value: 0x7f08008c public const int mr_default_control = 2131230860; // aapt resource value: 0x7f080087 public const int mr_dialog_area = 2131230855; // aapt resource value: 0x7f080086 public const int mr_expandable_area = 2131230854; // aapt resource value: 0x7f08009a public const int mr_group_expand_collapse = 2131230874; // aapt resource value: 0x7f08008e public const int mr_media_main_control = 2131230862; // aapt resource value: 0x7f080089 public const int mr_name = 2131230857; // aapt resource value: 0x7f08008f public const int mr_playback_control = 2131230863; // aapt resource value: 0x7f080088 public const int mr_title_bar = 2131230856; // aapt resource value: 0x7f080091 public const int mr_volume_control = 2131230865; // aapt resource value: 0x7f080092 public const int mr_volume_group_list = 2131230866; // aapt resource value: 0x7f080094 public const int mr_volume_item_icon = 2131230868; // aapt resource value: 0x7f080095 public const int mr_volume_slider = 2131230869; // aapt resource value: 0x7f080019 public const int multiply = 2131230745; // aapt resource value: 0x7f08007b public const int navigation_header_container = 2131230843; // aapt resource value: 0x7f080026 public const int never = 2131230758; // aapt resource value: 0x7f080014 public const int none = 2131230740; // aapt resource value: 0x7f080010 public const int normal = 2131230736; // aapt resource value: 0x7f0800aa public const int notification_background = 2131230890; // aapt resource value: 0x7f0800a4 public const int notification_main_column = 2131230884; // aapt resource value: 0x7f0800a3 public const int notification_main_column_container = 2131230883; // aapt resource value: 0x7f080037 public const int parallax = 2131230775; // aapt resource value: 0x7f08004d public const int parentPanel = 2131230797; // aapt resource value: 0x7f080038 public const int pin = 2131230776; // aapt resource value: 0x7f080006 public const int progress_circular = 2131230726; // aapt resource value: 0x7f080007 public const int progress_horizontal = 2131230727; // aapt resource value: 0x7f08005d public const int radio = 2131230813; // aapt resource value: 0x7f080035 public const int right = 2131230773; // aapt resource value: 0x7f0800a9 public const int right_icon = 2131230889; // aapt resource value: 0x7f0800a5 public const int right_side = 2131230885; // aapt resource value: 0x7f08001a public const int screen = 2131230746; // aapt resource value: 0x7f08002d public const int scroll = 2131230765; // aapt resource value: 0x7f080053 public const int scrollIndicatorDown = 2131230803; // aapt resource value: 0x7f08004f public const int scrollIndicatorUp = 2131230799; // aapt resource value: 0x7f080050 public const int scrollView = 2131230800; // aapt resource value: 0x7f080040 public const int scrollable = 2131230784; // aapt resource value: 0x7f080068 public const int search_badge = 2131230824; // aapt resource value: 0x7f080067 public const int search_bar = 2131230823; // aapt resource value: 0x7f080069 public const int search_button = 2131230825; // aapt resource value: 0x7f08006e public const int search_close_btn = 2131230830; // aapt resource value: 0x7f08006a public const int search_edit_frame = 2131230826; // aapt resource value: 0x7f080070 public const int search_go_btn = 2131230832; // aapt resource value: 0x7f08006b public const int search_mag_icon = 2131230827; // aapt resource value: 0x7f08006c public const int search_plate = 2131230828; // aapt resource value: 0x7f08006d public const int search_src_text = 2131230829; // aapt resource value: 0x7f080071 public const int search_voice_btn = 2131230833; // aapt resource value: 0x7f080072 public const int select_dialog_listview = 2131230834; // aapt resource value: 0x7f08005c public const int shortcut = 2131230812; // aapt resource value: 0x7f080015 public const int showCustom = 2131230741; // aapt resource value: 0x7f080016 public const int showHome = 2131230742; // aapt resource value: 0x7f080017 public const int showTitle = 2131230743; // aapt resource value: 0x7f0800b2 public const int sliding_tabs = 2131230898; // aapt resource value: 0x7f080073 public const int smallLabel = 2131230835; // aapt resource value: 0x7f08007a public const int snackbar_action = 2131230842; // aapt resource value: 0x7f080079 public const int snackbar_text = 2131230841; // aapt resource value: 0x7f08002e public const int snap = 2131230766; // aapt resource value: 0x7f08004c public const int spacer = 2131230796; // aapt resource value: 0x7f080008 public const int split_action_bar = 2131230728; // aapt resource value: 0x7f08001b public const int src_atop = 2131230747; // aapt resource value: 0x7f08001c public const int src_in = 2131230748; // aapt resource value: 0x7f08001d public const int src_over = 2131230749; // aapt resource value: 0x7f080036 public const int start = 2131230774; // aapt resource value: 0x7f0800a0 public const int status_bar_latest_event_content = 2131230880; // aapt resource value: 0x7f08005e public const int submenuarrow = 2131230814; // aapt resource value: 0x7f08006f public const int submit_area = 2131230831; // aapt resource value: 0x7f080011 public const int tabMode = 2131230737; // aapt resource value: 0x7f0800b0 public const int text = 2131230896; // aapt resource value: 0x7f0800ae public const int text2 = 2131230894; // aapt resource value: 0x7f080052 public const int textSpacerNoButtons = 2131230802; // aapt resource value: 0x7f080051 public const int textSpacerNoTitle = 2131230801; // aapt resource value: 0x7f080080 public const int text_input_password_toggle = 2131230848; // aapt resource value: 0x7f08000c public const int textinput_counter = 2131230732; // aapt resource value: 0x7f08000d public const int textinput_error = 2131230733; // aapt resource value: 0x7f0800a6 public const int time = 2131230886; // aapt resource value: 0x7f08004a public const int title = 2131230794; // aapt resource value: 0x7f080059 public const int titleDividerNoCustom = 2131230809; // aapt resource value: 0x7f080057 public const int title_template = 2131230807; // aapt resource value: 0x7f0800b3 public const int toolbar = 2131230899; // aapt resource value: 0x7f080029 public const int top = 2131230761; // aapt resource value: 0x7f080056 public const int topPanel = 2131230806; // aapt resource value: 0x7f080077 public const int touch_outside = 2131230839; // aapt resource value: 0x7f08000a public const int transition_current_scene = 2131230730; // aapt resource value: 0x7f08000b public const int transition_scene_layoutid_cache = 2131230731; // aapt resource value: 0x7f080009 public const int up = 2131230729; // aapt resource value: 0x7f080018 public const int useLogo = 2131230744; // aapt resource value: 0x7f08000e public const int view_offset_helper = 2131230734; // aapt resource value: 0x7f0800b4 public const int visible = 2131230900; // aapt resource value: 0x7f080093 public const int volume_item_container = 2131230867; // aapt resource value: 0x7f080027 public const int withText = 2131230759; // aapt resource value: 0x7f08001f public const int wrap_content = 2131230751; static Id() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Id() { } } public partial class Integer { // aapt resource value: 0x7f0a0003 public const int abc_config_activityDefaultDur = 2131361795; // aapt resource value: 0x7f0a0004 public const int abc_config_activityShortDur = 2131361796; // aapt resource value: 0x7f0a0008 public const int app_bar_elevation_anim_duration = 2131361800; // aapt resource value: 0x7f0a0009 public const int bottom_sheet_slide_duration = 2131361801; // aapt resource value: 0x7f0a0005 public const int cancel_button_image_alpha = 2131361797; // aapt resource value: 0x7f0a0007 public const int design_snackbar_text_max_lines = 2131361799; // aapt resource value: 0x7f0a000a public const int hide_password_duration = 2131361802; // aapt resource value: 0x7f0a0000 public const int mr_controller_volume_group_list_animation_duration_ms = 2131361792; // aapt resource value: 0x7f0a0001 public const int mr_controller_volume_group_list_fade_in_duration_ms = 2131361793; // aapt resource value: 0x7f0a0002 public const int mr_controller_volume_group_list_fade_out_duration_ms = 2131361794; // aapt resource value: 0x7f0a000b public const int show_password_duration = 2131361803; // aapt resource value: 0x7f0a0006 public const int status_bar_notification_info_maxnum = 2131361798; static Integer() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Integer() { } } public partial class Interpolator { // aapt resource value: 0x7f060000 public const int mr_fast_out_slow_in = 2131099648; // aapt resource value: 0x7f060001 public const int mr_linear_out_slow_in = 2131099649; static Interpolator() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Interpolator() { } } public partial class Layout { // aapt resource value: 0x7f030000 public const int abc_action_bar_title_item = 2130903040; // aapt resource value: 0x7f030001 public const int abc_action_bar_up_container = 2130903041; // aapt resource value: 0x7f030002 public const int abc_action_bar_view_list_nav_layout = 2130903042; // aapt resource value: 0x7f030003 public const int abc_action_menu_item_layout = 2130903043; // aapt resource value: 0x7f030004 public const int abc_action_menu_layout = 2130903044; // aapt resource value: 0x7f030005 public const int abc_action_mode_bar = 2130903045; // aapt resource value: 0x7f030006 public const int abc_action_mode_close_item_material = 2130903046; // aapt resource value: 0x7f030007 public const int abc_activity_chooser_view = 2130903047; // aapt resource value: 0x7f030008 public const int abc_activity_chooser_view_list_item = 2130903048; // aapt resource value: 0x7f030009 public const int abc_alert_dialog_button_bar_material = 2130903049; // aapt resource value: 0x7f03000a public const int abc_alert_dialog_material = 2130903050; // aapt resource value: 0x7f03000b public const int abc_alert_dialog_title_material = 2130903051; // aapt resource value: 0x7f03000c public const int abc_dialog_title_material = 2130903052; // aapt resource value: 0x7f03000d public const int abc_expanded_menu_layout = 2130903053; // aapt resource value: 0x7f03000e public const int abc_list_menu_item_checkbox = 2130903054; // aapt resource value: 0x7f03000f public const int abc_list_menu_item_icon = 2130903055; // aapt resource value: 0x7f030010 public const int abc_list_menu_item_layout = 2130903056; // aapt resource value: 0x7f030011 public const int abc_list_menu_item_radio = 2130903057; // aapt resource value: 0x7f030012 public const int abc_popup_menu_header_item_layout = 2130903058; // aapt resource value: 0x7f030013 public const int abc_popup_menu_item_layout = 2130903059; // aapt resource value: 0x7f030014 public const int abc_screen_content_include = 2130903060; // aapt resource value: 0x7f030015 public const int abc_screen_simple = 2130903061; // aapt resource value: 0x7f030016 public const int abc_screen_simple_overlay_action_mode = 2130903062; // aapt resource value: 0x7f030017 public const int abc_screen_toolbar = 2130903063; // aapt resource value: 0x7f030018 public const int abc_search_dropdown_item_icons_2line = 2130903064; // aapt resource value: 0x7f030019 public const int abc_search_view = 2130903065; // aapt resource value: 0x7f03001a public const int abc_select_dialog_material = 2130903066; // aapt resource value: 0x7f03001b public const int design_bottom_navigation_item = 2130903067; // aapt resource value: 0x7f03001c public const int design_bottom_sheet_dialog = 2130903068; // aapt resource value: 0x7f03001d public const int design_layout_snackbar = 2130903069; // aapt resource value: 0x7f03001e public const int design_layout_snackbar_include = 2130903070; // aapt resource value: 0x7f03001f public const int design_layout_tab_icon = 2130903071; // aapt resource value: 0x7f030020 public const int design_layout_tab_text = 2130903072; // aapt resource value: 0x7f030021 public const int design_menu_item_action_area = 2130903073; // aapt resource value: 0x7f030022 public const int design_navigation_item = 2130903074; // aapt resource value: 0x7f030023 public const int design_navigation_item_header = 2130903075; // aapt resource value: 0x7f030024 public const int design_navigation_item_separator = 2130903076; // aapt resource value: 0x7f030025 public const int design_navigation_item_subheader = 2130903077; // aapt resource value: 0x7f030026 public const int design_navigation_menu = 2130903078; // aapt resource value: 0x7f030027 public const int design_navigation_menu_item = 2130903079; // aapt resource value: 0x7f030028 public const int design_text_input_password_icon = 2130903080; // aapt resource value: 0x7f030029 public const int mr_chooser_dialog = 2130903081; // aapt resource value: 0x7f03002a public const int mr_chooser_list_item = 2130903082; // aapt resource value: 0x7f03002b public const int mr_controller_material_dialog_b = 2130903083; // aapt resource value: 0x7f03002c public const int mr_controller_volume_item = 2130903084; // aapt resource value: 0x7f03002d public const int mr_playback_control = 2130903085; // aapt resource value: 0x7f03002e public const int mr_volume_control = 2130903086; // aapt resource value: 0x7f03002f public const int notification_action = 2130903087; // aapt resource value: 0x7f030030 public const int notification_action_tombstone = 2130903088; // aapt resource value: 0x7f030031 public const int notification_media_action = 2130903089; // aapt resource value: 0x7f030032 public const int notification_media_cancel_action = 2130903090; // aapt resource value: 0x7f030033 public const int notification_template_big_media = 2130903091; // aapt resource value: 0x7f030034 public const int notification_template_big_media_custom = 2130903092; // aapt resource value: 0x7f030035 public const int notification_template_big_media_narrow = 2130903093; // aapt resource value: 0x7f030036 public const int notification_template_big_media_narrow_custom = 2130903094; // aapt resource value: 0x7f030037 public const int notification_template_custom_big = 2130903095; // aapt resource value: 0x7f030038 public const int notification_template_icon_group = 2130903096; // aapt resource value: 0x7f030039 public const int notification_template_lines_media = 2130903097; // aapt resource value: 0x7f03003a public const int notification_template_media = 2130903098; // aapt resource value: 0x7f03003b public const int notification_template_media_custom = 2130903099; // aapt resource value: 0x7f03003c public const int notification_template_part_chronometer = 2130903100; // aapt resource value: 0x7f03003d public const int notification_template_part_time = 2130903101; // aapt resource value: 0x7f03003e public const int select_dialog_item_material = 2130903102; // aapt resource value: 0x7f03003f public const int select_dialog_multichoice_material = 2130903103; // aapt resource value: 0x7f030040 public const int select_dialog_singlechoice_material = 2130903104; // aapt resource value: 0x7f030041 public const int support_simple_spinner_dropdown_item = 2130903105; // aapt resource value: 0x7f030042 public const int Tabbar = 2130903106; // aapt resource value: 0x7f030043 public const int Toolbar = 2130903107; static Layout() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Layout() { } } public partial class String { // aapt resource value: 0x7f090015 public const int abc_action_bar_home_description = 2131296277; // aapt resource value: 0x7f090016 public const int abc_action_bar_home_description_format = 2131296278; // aapt resource value: 0x7f090017 public const int abc_action_bar_home_subtitle_description_format = 2131296279; // aapt resource value: 0x7f090018 public const int abc_action_bar_up_description = 2131296280; // aapt resource value: 0x7f090019 public const int abc_action_menu_overflow_description = 2131296281; // aapt resource value: 0x7f09001a public const int abc_action_mode_done = 2131296282; // aapt resource value: 0x7f09001b public const int abc_activity_chooser_view_see_all = 2131296283; // aapt resource value: 0x7f09001c public const int abc_activitychooserview_choose_application = 2131296284; // aapt resource value: 0x7f09001d public const int abc_capital_off = 2131296285; // aapt resource value: 0x7f09001e public const int abc_capital_on = 2131296286; // aapt resource value: 0x7f09002a public const int abc_font_family_body_1_material = 2131296298; // aapt resource value: 0x7f09002b public const int abc_font_family_body_2_material = 2131296299; // aapt resource value: 0x7f09002c public const int abc_font_family_button_material = 2131296300; // aapt resource value: 0x7f09002d public const int abc_font_family_caption_material = 2131296301; // aapt resource value: 0x7f09002e public const int abc_font_family_display_1_material = 2131296302; // aapt resource value: 0x7f09002f public const int abc_font_family_display_2_material = 2131296303; // aapt resource value: 0x7f090030 public const int abc_font_family_display_3_material = 2131296304; // aapt resource value: 0x7f090031 public const int abc_font_family_display_4_material = 2131296305; // aapt resource value: 0x7f090032 public const int abc_font_family_headline_material = 2131296306; // aapt resource value: 0x7f090033 public const int abc_font_family_menu_material = 2131296307; // aapt resource value: 0x7f090034 public const int abc_font_family_subhead_material = 2131296308; // aapt resource value: 0x7f090035 public const int abc_font_family_title_material = 2131296309; // aapt resource value: 0x7f09001f public const int abc_search_hint = 2131296287; // aapt resource value: 0x7f090020 public const int abc_searchview_description_clear = 2131296288; // aapt resource value: 0x7f090021 public const int abc_searchview_description_query = 2131296289; // aapt resource value: 0x7f090022 public const int abc_searchview_description_search = 2131296290; // aapt resource value: 0x7f090023 public const int abc_searchview_description_submit = 2131296291; // aapt resource value: 0x7f090024 public const int abc_searchview_description_voice = 2131296292; // aapt resource value: 0x7f090025 public const int abc_shareactionprovider_share_with = 2131296293; // aapt resource value: 0x7f090026 public const int abc_shareactionprovider_share_with_application = 2131296294; // aapt resource value: 0x7f090027 public const int abc_toolbar_collapse_description = 2131296295; // aapt resource value: 0x7f090036 public const int appbar_scrolling_view_behavior = 2131296310; // aapt resource value: 0x7f090037 public const int bottom_sheet_behavior = 2131296311; // aapt resource value: 0x7f090038 public const int character_counter_pattern = 2131296312; // aapt resource value: 0x7f090000 public const int mr_button_content_description = 2131296256; // aapt resource value: 0x7f090001 public const int mr_cast_button_connected = 2131296257; // aapt resource value: 0x7f090002 public const int mr_cast_button_connecting = 2131296258; // aapt resource value: 0x7f090003 public const int mr_cast_button_disconnected = 2131296259; // aapt resource value: 0x7f090004 public const int mr_chooser_searching = 2131296260; // aapt resource value: 0x7f090005 public const int mr_chooser_title = 2131296261; // aapt resource value: 0x7f090006 public const int mr_controller_album_art = 2131296262; // aapt resource value: 0x7f090007 public const int mr_controller_casting_screen = 2131296263; // aapt resource value: 0x7f090008 public const int mr_controller_close_description = 2131296264; // aapt resource value: 0x7f090009 public const int mr_controller_collapse_group = 2131296265; // aapt resource value: 0x7f09000a public const int mr_controller_disconnect = 2131296266; // aapt resource value: 0x7f09000b public const int mr_controller_expand_group = 2131296267; // aapt resource value: 0x7f09000c public const int mr_controller_no_info_available = 2131296268; // aapt resource value: 0x7f09000d public const int mr_controller_no_media_selected = 2131296269; // aapt resource value: 0x7f09000e public const int mr_controller_pause = 2131296270; // aapt resource value: 0x7f09000f public const int mr_controller_play = 2131296271; // aapt resource value: 0x7f090014 public const int mr_controller_stop = 2131296276; // aapt resource value: 0x7f090010 public const int mr_controller_stop_casting = 2131296272; // aapt resource value: 0x7f090011 public const int mr_controller_volume_slider = 2131296273; // aapt resource value: 0x7f090012 public const int mr_system_route_name = 2131296274; // aapt resource value: 0x7f090013 public const int mr_user_route_category_name = 2131296275; // aapt resource value: 0x7f090039 public const int password_toggle_content_description = 2131296313; // aapt resource value: 0x7f09003a public const int path_password_eye = 2131296314; // aapt resource value: 0x7f09003b public const int path_password_eye_mask_strike_through = 2131296315; // aapt resource value: 0x7f09003c public const int path_password_eye_mask_visible = 2131296316; // aapt resource value: 0x7f09003d public const int path_password_strike_through = 2131296317; // aapt resource value: 0x7f090028 public const int search_menu_title = 2131296296; // aapt resource value: 0x7f090029 public const int status_bar_notification_info_overflow = 2131296297; static String() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private String() { } } public partial class Style { // aapt resource value: 0x7f0b00ae public const int AlertDialog_AppCompat = 2131427502; // aapt resource value: 0x7f0b00af public const int AlertDialog_AppCompat_Light = 2131427503; // aapt resource value: 0x7f0b00b0 public const int Animation_AppCompat_Dialog = 2131427504; // aapt resource value: 0x7f0b00b1 public const int Animation_AppCompat_DropDownUp = 2131427505; // aapt resource value: 0x7f0b0170 public const int Animation_Design_BottomSheetDialog = 2131427696; // aapt resource value: 0x7f0b018b public const int AppCompatDialogStyle = 2131427723; // aapt resource value: 0x7f0b00b2 public const int Base_AlertDialog_AppCompat = 2131427506; // aapt resource value: 0x7f0b00b3 public const int Base_AlertDialog_AppCompat_Light = 2131427507; // aapt resource value: 0x7f0b00b4 public const int Base_Animation_AppCompat_Dialog = 2131427508; // aapt resource value: 0x7f0b00b5 public const int Base_Animation_AppCompat_DropDownUp = 2131427509; // aapt resource value: 0x7f0b000c public const int Base_CardView = 2131427340; // aapt resource value: 0x7f0b00b6 public const int Base_DialogWindowTitle_AppCompat = 2131427510; // aapt resource value: 0x7f0b00b7 public const int Base_DialogWindowTitleBackground_AppCompat = 2131427511; // aapt resource value: 0x7f0b004e public const int Base_TextAppearance_AppCompat = 2131427406; // aapt resource value: 0x7f0b004f public const int Base_TextAppearance_AppCompat_Body1 = 2131427407; // aapt resource value: 0x7f0b0050 public const int Base_TextAppearance_AppCompat_Body2 = 2131427408; // aapt resource value: 0x7f0b0036 public const int Base_TextAppearance_AppCompat_Button = 2131427382; // aapt resource value: 0x7f0b0051 public const int Base_TextAppearance_AppCompat_Caption = 2131427409; // aapt resource value: 0x7f0b0052 public const int Base_TextAppearance_AppCompat_Display1 = 2131427410; // aapt resource value: 0x7f0b0053 public const int Base_TextAppearance_AppCompat_Display2 = 2131427411; // aapt resource value: 0x7f0b0054 public const int Base_TextAppearance_AppCompat_Display3 = 2131427412; // aapt resource value: 0x7f0b0055 public const int Base_TextAppearance_AppCompat_Display4 = 2131427413; // aapt resource value: 0x7f0b0056 public const int Base_TextAppearance_AppCompat_Headline = 2131427414; // aapt resource value: 0x7f0b001a public const int Base_TextAppearance_AppCompat_Inverse = 2131427354; // aapt resource value: 0x7f0b0057 public const int Base_TextAppearance_AppCompat_Large = 2131427415; // aapt resource value: 0x7f0b001b public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131427355; // aapt resource value: 0x7f0b0058 public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131427416; // aapt resource value: 0x7f0b0059 public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131427417; // aapt resource value: 0x7f0b005a public const int Base_TextAppearance_AppCompat_Medium = 2131427418; // aapt resource value: 0x7f0b001c public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131427356; // aapt resource value: 0x7f0b005b public const int Base_TextAppearance_AppCompat_Menu = 2131427419; // aapt resource value: 0x7f0b00b8 public const int Base_TextAppearance_AppCompat_SearchResult = 2131427512; // aapt resource value: 0x7f0b005c public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131427420; // aapt resource value: 0x7f0b005d public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131427421; // aapt resource value: 0x7f0b005e public const int Base_TextAppearance_AppCompat_Small = 2131427422; // aapt resource value: 0x7f0b001d public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131427357; // aapt resource value: 0x7f0b005f public const int Base_TextAppearance_AppCompat_Subhead = 2131427423; // aapt resource value: 0x7f0b001e public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131427358; // aapt resource value: 0x7f0b0060 public const int Base_TextAppearance_AppCompat_Title = 2131427424; // aapt resource value: 0x7f0b001f public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131427359; // aapt resource value: 0x7f0b00a3 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131427491; // aapt resource value: 0x7f0b0061 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131427425; // aapt resource value: 0x7f0b0062 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131427426; // aapt resource value: 0x7f0b0063 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131427427; // aapt resource value: 0x7f0b0064 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131427428; // aapt resource value: 0x7f0b0065 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131427429; // aapt resource value: 0x7f0b0066 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131427430; // aapt resource value: 0x7f0b0067 public const int Base_TextAppearance_AppCompat_Widget_Button = 2131427431; // aapt resource value: 0x7f0b00aa public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131427498; // aapt resource value: 0x7f0b00ab public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131427499; // aapt resource value: 0x7f0b00a4 public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131427492; // aapt resource value: 0x7f0b00b9 public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131427513; // aapt resource value: 0x7f0b0068 public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131427432; // aapt resource value: 0x7f0b0069 public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131427433; // aapt resource value: 0x7f0b006a public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131427434; // aapt resource value: 0x7f0b006b public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131427435; // aapt resource value: 0x7f0b006c public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131427436; // aapt resource value: 0x7f0b00ba public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131427514; // aapt resource value: 0x7f0b006d public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131427437; // aapt resource value: 0x7f0b006e public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131427438; // aapt resource value: 0x7f0b006f public const int Base_Theme_AppCompat = 2131427439; // aapt resource value: 0x7f0b00bb public const int Base_Theme_AppCompat_CompactMenu = 2131427515; // aapt resource value: 0x7f0b0020 public const int Base_Theme_AppCompat_Dialog = 2131427360; // aapt resource value: 0x7f0b0021 public const int Base_Theme_AppCompat_Dialog_Alert = 2131427361; // aapt resource value: 0x7f0b00bc public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131427516; // aapt resource value: 0x7f0b0022 public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131427362; // aapt resource value: 0x7f0b0010 public const int Base_Theme_AppCompat_DialogWhenLarge = 2131427344; // aapt resource value: 0x7f0b0070 public const int Base_Theme_AppCompat_Light = 2131427440; // aapt resource value: 0x7f0b00bd public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131427517; // aapt resource value: 0x7f0b0023 public const int Base_Theme_AppCompat_Light_Dialog = 2131427363; // aapt resource value: 0x7f0b0024 public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131427364; // aapt resource value: 0x7f0b00be public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131427518; // aapt resource value: 0x7f0b0025 public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131427365; // aapt resource value: 0x7f0b0011 public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131427345; // aapt resource value: 0x7f0b00bf public const int Base_ThemeOverlay_AppCompat = 2131427519; // aapt resource value: 0x7f0b00c0 public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131427520; // aapt resource value: 0x7f0b00c1 public const int Base_ThemeOverlay_AppCompat_Dark = 2131427521; // aapt resource value: 0x7f0b00c2 public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131427522; // aapt resource value: 0x7f0b0026 public const int Base_ThemeOverlay_AppCompat_Dialog = 2131427366; // aapt resource value: 0x7f0b0027 public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131427367; // aapt resource value: 0x7f0b00c3 public const int Base_ThemeOverlay_AppCompat_Light = 2131427523; // aapt resource value: 0x7f0b0028 public const int Base_V11_Theme_AppCompat_Dialog = 2131427368; // aapt resource value: 0x7f0b0029 public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131427369; // aapt resource value: 0x7f0b002a public const int Base_V11_ThemeOverlay_AppCompat_Dialog = 2131427370; // aapt resource value: 0x7f0b0032 public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131427378; // aapt resource value: 0x7f0b0033 public const int Base_V12_Widget_AppCompat_EditText = 2131427379; // aapt resource value: 0x7f0b0071 public const int Base_V21_Theme_AppCompat = 2131427441; // aapt resource value: 0x7f0b0072 public const int Base_V21_Theme_AppCompat_Dialog = 2131427442; // aapt resource value: 0x7f0b0073 public const int Base_V21_Theme_AppCompat_Light = 2131427443; // aapt resource value: 0x7f0b0074 public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131427444; // aapt resource value: 0x7f0b0075 public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131427445; // aapt resource value: 0x7f0b00a1 public const int Base_V22_Theme_AppCompat = 2131427489; // aapt resource value: 0x7f0b00a2 public const int Base_V22_Theme_AppCompat_Light = 2131427490; // aapt resource value: 0x7f0b00a5 public const int Base_V23_Theme_AppCompat = 2131427493; // aapt resource value: 0x7f0b00a6 public const int Base_V23_Theme_AppCompat_Light = 2131427494; // aapt resource value: 0x7f0b00c4 public const int Base_V7_Theme_AppCompat = 2131427524; // aapt resource value: 0x7f0b00c5 public const int Base_V7_Theme_AppCompat_Dialog = 2131427525; // aapt resource value: 0x7f0b00c6 public const int Base_V7_Theme_AppCompat_Light = 2131427526; // aapt resource value: 0x7f0b00c7 public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131427527; // aapt resource value: 0x7f0b00c8 public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131427528; // aapt resource value: 0x7f0b00c9 public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131427529; // aapt resource value: 0x7f0b00ca public const int Base_V7_Widget_AppCompat_EditText = 2131427530; // aapt resource value: 0x7f0b00cb public const int Base_Widget_AppCompat_ActionBar = 2131427531; // aapt resource value: 0x7f0b00cc public const int Base_Widget_AppCompat_ActionBar_Solid = 2131427532; // aapt resource value: 0x7f0b00cd public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131427533; // aapt resource value: 0x7f0b0076 public const int Base_Widget_AppCompat_ActionBar_TabText = 2131427446; // aapt resource value: 0x7f0b0077 public const int Base_Widget_AppCompat_ActionBar_TabView = 2131427447; // aapt resource value: 0x7f0b0078 public const int Base_Widget_AppCompat_ActionButton = 2131427448; // aapt resource value: 0x7f0b0079 public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131427449; // aapt resource value: 0x7f0b007a public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131427450; // aapt resource value: 0x7f0b00ce public const int Base_Widget_AppCompat_ActionMode = 2131427534; // aapt resource value: 0x7f0b00cf public const int Base_Widget_AppCompat_ActivityChooserView = 2131427535; // aapt resource value: 0x7f0b0034 public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131427380; // aapt resource value: 0x7f0b007b public const int Base_Widget_AppCompat_Button = 2131427451; // aapt resource value: 0x7f0b007c public const int Base_Widget_AppCompat_Button_Borderless = 2131427452; // aapt resource value: 0x7f0b007d public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131427453; // aapt resource value: 0x7f0b00d0 public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131427536; // aapt resource value: 0x7f0b00a7 public const int Base_Widget_AppCompat_Button_Colored = 2131427495; // aapt resource value: 0x7f0b007e public const int Base_Widget_AppCompat_Button_Small = 2131427454; // aapt resource value: 0x7f0b007f public const int Base_Widget_AppCompat_ButtonBar = 2131427455; // aapt resource value: 0x7f0b00d1 public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131427537; // aapt resource value: 0x7f0b0080 public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131427456; // aapt resource value: 0x7f0b0081 public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131427457; // aapt resource value: 0x7f0b00d2 public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131427538; // aapt resource value: 0x7f0b000f public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131427343; // aapt resource value: 0x7f0b00d3 public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131427539; // aapt resource value: 0x7f0b0082 public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131427458; // aapt resource value: 0x7f0b0035 public const int Base_Widget_AppCompat_EditText = 2131427381; // aapt resource value: 0x7f0b0083 public const int Base_Widget_AppCompat_ImageButton = 2131427459; // aapt resource value: 0x7f0b00d4 public const int Base_Widget_AppCompat_Light_ActionBar = 2131427540; // aapt resource value: 0x7f0b00d5 public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131427541; // aapt resource value: 0x7f0b00d6 public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131427542; // aapt resource value: 0x7f0b0084 public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131427460; // aapt resource value: 0x7f0b0085 public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131427461; // aapt resource value: 0x7f0b0086 public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131427462; // aapt resource value: 0x7f0b0087 public const int Base_Widget_AppCompat_Light_PopupMenu = 2131427463; // aapt resource value: 0x7f0b0088 public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131427464; // aapt resource value: 0x7f0b00d7 public const int Base_Widget_AppCompat_ListMenuView = 2131427543; // aapt resource value: 0x7f0b0089 public const int Base_Widget_AppCompat_ListPopupWindow = 2131427465; // aapt resource value: 0x7f0b008a public const int Base_Widget_AppCompat_ListView = 2131427466; // aapt resource value: 0x7f0b008b public const int Base_Widget_AppCompat_ListView_DropDown = 2131427467; // aapt resource value: 0x7f0b008c public const int Base_Widget_AppCompat_ListView_Menu = 2131427468; // aapt resource value: 0x7f0b008d public const int Base_Widget_AppCompat_PopupMenu = 2131427469; // aapt resource value: 0x7f0b008e public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131427470; // aapt resource value: 0x7f0b00d8 public const int Base_Widget_AppCompat_PopupWindow = 2131427544; // aapt resource value: 0x7f0b002b public const int Base_Widget_AppCompat_ProgressBar = 2131427371; // aapt resource value: 0x7f0b002c public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131427372; // aapt resource value: 0x7f0b008f public const int Base_Widget_AppCompat_RatingBar = 2131427471; // aapt resource value: 0x7f0b00a8 public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131427496; // aapt resource value: 0x7f0b00a9 public const int Base_Widget_AppCompat_RatingBar_Small = 2131427497; // aapt resource value: 0x7f0b00d9 public const int Base_Widget_AppCompat_SearchView = 2131427545; // aapt resource value: 0x7f0b00da public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131427546; // aapt resource value: 0x7f0b0090 public const int Base_Widget_AppCompat_SeekBar = 2131427472; // aapt resource value: 0x7f0b00db public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131427547; // aapt resource value: 0x7f0b0091 public const int Base_Widget_AppCompat_Spinner = 2131427473; // aapt resource value: 0x7f0b0012 public const int Base_Widget_AppCompat_Spinner_Underlined = 2131427346; // aapt resource value: 0x7f0b0092 public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131427474; // aapt resource value: 0x7f0b00dc public const int Base_Widget_AppCompat_Toolbar = 2131427548; // aapt resource value: 0x7f0b0093 public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131427475; // aapt resource value: 0x7f0b0171 public const int Base_Widget_Design_AppBarLayout = 2131427697; // aapt resource value: 0x7f0b0172 public const int Base_Widget_Design_TabLayout = 2131427698; // aapt resource value: 0x7f0b000b public const int CardView = 2131427339; // aapt resource value: 0x7f0b000d public const int CardView_Dark = 2131427341; // aapt resource value: 0x7f0b000e public const int CardView_Light = 2131427342; // aapt resource value: 0x7f0b0189 public const int MyTheme = 2131427721; // aapt resource value: 0x7f0b018a public const int MyTheme_Base = 2131427722; // aapt resource value: 0x7f0b002d public const int Platform_AppCompat = 2131427373; // aapt resource value: 0x7f0b002e public const int Platform_AppCompat_Light = 2131427374; // aapt resource value: 0x7f0b0094 public const int Platform_ThemeOverlay_AppCompat = 2131427476; // aapt resource value: 0x7f0b0095 public const int Platform_ThemeOverlay_AppCompat_Dark = 2131427477; // aapt resource value: 0x7f0b0096 public const int Platform_ThemeOverlay_AppCompat_Light = 2131427478; // aapt resource value: 0x7f0b002f public const int Platform_V11_AppCompat = 2131427375; // aapt resource value: 0x7f0b0030 public const int Platform_V11_AppCompat_Light = 2131427376; // aapt resource value: 0x7f0b0037 public const int Platform_V14_AppCompat = 2131427383; // aapt resource value: 0x7f0b0038 public const int Platform_V14_AppCompat_Light = 2131427384; // aapt resource value: 0x7f0b0097 public const int Platform_V21_AppCompat = 2131427479; // aapt resource value: 0x7f0b0098 public const int Platform_V21_AppCompat_Light = 2131427480; // aapt resource value: 0x7f0b00ac public const int Platform_V25_AppCompat = 2131427500; // aapt resource value: 0x7f0b00ad public const int Platform_V25_AppCompat_Light = 2131427501; // aapt resource value: 0x7f0b0031 public const int Platform_Widget_AppCompat_Spinner = 2131427377; // aapt resource value: 0x7f0b0040 public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131427392; // aapt resource value: 0x7f0b0041 public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131427393; // aapt resource value: 0x7f0b0042 public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131427394; // aapt resource value: 0x7f0b0043 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131427395; // aapt resource value: 0x7f0b0044 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131427396; // aapt resource value: 0x7f0b0045 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131427397; // aapt resource value: 0x7f0b0046 public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131427398; // aapt resource value: 0x7f0b0047 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131427399; // aapt resource value: 0x7f0b0048 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131427400; // aapt resource value: 0x7f0b0049 public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131427401; // aapt resource value: 0x7f0b004a public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131427402; // aapt resource value: 0x7f0b004b public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131427403; // aapt resource value: 0x7f0b004c public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131427404; // aapt resource value: 0x7f0b004d public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131427405; // aapt resource value: 0x7f0b00dd public const int TextAppearance_AppCompat = 2131427549; // aapt resource value: 0x7f0b00de public const int TextAppearance_AppCompat_Body1 = 2131427550; // aapt resource value: 0x7f0b00df public const int TextAppearance_AppCompat_Body2 = 2131427551; // aapt resource value: 0x7f0b00e0 public const int TextAppearance_AppCompat_Button = 2131427552; // aapt resource value: 0x7f0b00e1 public const int TextAppearance_AppCompat_Caption = 2131427553; // aapt resource value: 0x7f0b00e2 public const int TextAppearance_AppCompat_Display1 = 2131427554; // aapt resource value: 0x7f0b00e3 public const int TextAppearance_AppCompat_Display2 = 2131427555; // aapt resource value: 0x7f0b00e4 public const int TextAppearance_AppCompat_Display3 = 2131427556; // aapt resource value: 0x7f0b00e5 public const int TextAppearance_AppCompat_Display4 = 2131427557; // aapt resource value: 0x7f0b00e6 public const int TextAppearance_AppCompat_Headline = 2131427558; // aapt resource value: 0x7f0b00e7 public const int TextAppearance_AppCompat_Inverse = 2131427559; // aapt resource value: 0x7f0b00e8 public const int TextAppearance_AppCompat_Large = 2131427560; // aapt resource value: 0x7f0b00e9 public const int TextAppearance_AppCompat_Large_Inverse = 2131427561; // aapt resource value: 0x7f0b00ea public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131427562; // aapt resource value: 0x7f0b00eb public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131427563; // aapt resource value: 0x7f0b00ec public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131427564; // aapt resource value: 0x7f0b00ed public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131427565; // aapt resource value: 0x7f0b00ee public const int TextAppearance_AppCompat_Medium = 2131427566; // aapt resource value: 0x7f0b00ef public const int TextAppearance_AppCompat_Medium_Inverse = 2131427567; // aapt resource value: 0x7f0b00f0 public const int TextAppearance_AppCompat_Menu = 2131427568; // aapt resource value: 0x7f0b0039 public const int TextAppearance_AppCompat_Notification = 2131427385; // aapt resource value: 0x7f0b0099 public const int TextAppearance_AppCompat_Notification_Info = 2131427481; // aapt resource value: 0x7f0b009a public const int TextAppearance_AppCompat_Notification_Info_Media = 2131427482; // aapt resource value: 0x7f0b00f1 public const int TextAppearance_AppCompat_Notification_Line2 = 2131427569; // aapt resource value: 0x7f0b00f2 public const int TextAppearance_AppCompat_Notification_Line2_Media = 2131427570; // aapt resource value: 0x7f0b009b public const int TextAppearance_AppCompat_Notification_Media = 2131427483; // aapt resource value: 0x7f0b009c public const int TextAppearance_AppCompat_Notification_Time = 2131427484; // aapt resource value: 0x7f0b009d public const int TextAppearance_AppCompat_Notification_Time_Media = 2131427485; // aapt resource value: 0x7f0b003a public const int TextAppearance_AppCompat_Notification_Title = 2131427386; // aapt resource value: 0x7f0b009e public const int TextAppearance_AppCompat_Notification_Title_Media = 2131427486; // aapt resource value: 0x7f0b00f3 public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131427571; // aapt resource value: 0x7f0b00f4 public const int TextAppearance_AppCompat_SearchResult_Title = 2131427572; // aapt resource value: 0x7f0b00f5 public const int TextAppearance_AppCompat_Small = 2131427573; // aapt resource value: 0x7f0b00f6 public const int TextAppearance_AppCompat_Small_Inverse = 2131427574; // aapt resource value: 0x7f0b00f7 public const int TextAppearance_AppCompat_Subhead = 2131427575; // aapt resource value: 0x7f0b00f8 public const int TextAppearance_AppCompat_Subhead_Inverse = 2131427576; // aapt resource value: 0x7f0b00f9 public const int TextAppearance_AppCompat_Title = 2131427577; // aapt resource value: 0x7f0b00fa public const int TextAppearance_AppCompat_Title_Inverse = 2131427578; // aapt resource value: 0x7f0b00fb public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131427579; // aapt resource value: 0x7f0b00fc public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131427580; // aapt resource value: 0x7f0b00fd public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131427581; // aapt resource value: 0x7f0b00fe public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131427582; // aapt resource value: 0x7f0b00ff public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131427583; // aapt resource value: 0x7f0b0100 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131427584; // aapt resource value: 0x7f0b0101 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131427585; // aapt resource value: 0x7f0b0102 public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131427586; // aapt resource value: 0x7f0b0103 public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131427587; // aapt resource value: 0x7f0b0104 public const int TextAppearance_AppCompat_Widget_Button = 2131427588; // aapt resource value: 0x7f0b0105 public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131427589; // aapt resource value: 0x7f0b0106 public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131427590; // aapt resource value: 0x7f0b0107 public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131427591; // aapt resource value: 0x7f0b0108 public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131427592; // aapt resource value: 0x7f0b0109 public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131427593; // aapt resource value: 0x7f0b010a public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131427594; // aapt resource value: 0x7f0b010b public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131427595; // aapt resource value: 0x7f0b010c public const int TextAppearance_AppCompat_Widget_Switch = 2131427596; // aapt resource value: 0x7f0b010d public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131427597; // aapt resource value: 0x7f0b0173 public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131427699; // aapt resource value: 0x7f0b0174 public const int TextAppearance_Design_Counter = 2131427700; // aapt resource value: 0x7f0b0175 public const int TextAppearance_Design_Counter_Overflow = 2131427701; // aapt resource value: 0x7f0b0176 public const int TextAppearance_Design_Error = 2131427702; // aapt resource value: 0x7f0b0177 public const int TextAppearance_Design_Hint = 2131427703; // aapt resource value: 0x7f0b0178 public const int TextAppearance_Design_Snackbar_Message = 2131427704; // aapt resource value: 0x7f0b0179 public const int TextAppearance_Design_Tab = 2131427705; // aapt resource value: 0x7f0b0000 public const int TextAppearance_MediaRouter_PrimaryText = 2131427328; // aapt resource value: 0x7f0b0001 public const int TextAppearance_MediaRouter_SecondaryText = 2131427329; // aapt resource value: 0x7f0b0002 public const int TextAppearance_MediaRouter_Title = 2131427330; // aapt resource value: 0x7f0b003b public const int TextAppearance_StatusBar_EventContent = 2131427387; // aapt resource value: 0x7f0b003c public const int TextAppearance_StatusBar_EventContent_Info = 2131427388; // aapt resource value: 0x7f0b003d public const int TextAppearance_StatusBar_EventContent_Line2 = 2131427389; // aapt resource value: 0x7f0b003e public const int TextAppearance_StatusBar_EventContent_Time = 2131427390; // aapt resource value: 0x7f0b003f public const int TextAppearance_StatusBar_EventContent_Title = 2131427391; // aapt resource value: 0x7f0b010e public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131427598; // aapt resource value: 0x7f0b010f public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131427599; // aapt resource value: 0x7f0b0110 public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131427600; // aapt resource value: 0x7f0b0111 public const int Theme_AppCompat = 2131427601; // aapt resource value: 0x7f0b0112 public const int Theme_AppCompat_CompactMenu = 2131427602; // aapt resource value: 0x7f0b0013 public const int Theme_AppCompat_DayNight = 2131427347; // aapt resource value: 0x7f0b0014 public const int Theme_AppCompat_DayNight_DarkActionBar = 2131427348; // aapt resource value: 0x7f0b0015 public const int Theme_AppCompat_DayNight_Dialog = 2131427349; // aapt resource value: 0x7f0b0016 public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131427350; // aapt resource value: 0x7f0b0017 public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131427351; // aapt resource value: 0x7f0b0018 public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131427352; // aapt resource value: 0x7f0b0019 public const int Theme_AppCompat_DayNight_NoActionBar = 2131427353; // aapt resource value: 0x7f0b0113 public const int Theme_AppCompat_Dialog = 2131427603; // aapt resource value: 0x7f0b0114 public const int Theme_AppCompat_Dialog_Alert = 2131427604; // aapt resource value: 0x7f0b0115 public const int Theme_AppCompat_Dialog_MinWidth = 2131427605; // aapt resource value: 0x7f0b0116 public const int Theme_AppCompat_DialogWhenLarge = 2131427606; // aapt resource value: 0x7f0b0117 public const int Theme_AppCompat_Light = 2131427607; // aapt resource value: 0x7f0b0118 public const int Theme_AppCompat_Light_DarkActionBar = 2131427608; // aapt resource value: 0x7f0b0119 public const int Theme_AppCompat_Light_Dialog = 2131427609; // aapt resource value: 0x7f0b011a public const int Theme_AppCompat_Light_Dialog_Alert = 2131427610; // aapt resource value: 0x7f0b011b public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131427611; // aapt resource value: 0x7f0b011c public const int Theme_AppCompat_Light_DialogWhenLarge = 2131427612; // aapt resource value: 0x7f0b011d public const int Theme_AppCompat_Light_NoActionBar = 2131427613; // aapt resource value: 0x7f0b011e public const int Theme_AppCompat_NoActionBar = 2131427614; // aapt resource value: 0x7f0b017a public const int Theme_Design = 2131427706; // aapt resource value: 0x7f0b017b public const int Theme_Design_BottomSheetDialog = 2131427707; // aapt resource value: 0x7f0b017c public const int Theme_Design_Light = 2131427708; // aapt resource value: 0x7f0b017d public const int Theme_Design_Light_BottomSheetDialog = 2131427709; // aapt resource value: 0x7f0b017e public const int Theme_Design_Light_NoActionBar = 2131427710; // aapt resource value: 0x7f0b017f public const int Theme_Design_NoActionBar = 2131427711; // aapt resource value: 0x7f0b0003 public const int Theme_MediaRouter = 2131427331; // aapt resource value: 0x7f0b0004 public const int Theme_MediaRouter_Light = 2131427332; // aapt resource value: 0x7f0b0005 public const int Theme_MediaRouter_Light_DarkControlPanel = 2131427333; // aapt resource value: 0x7f0b0006 public const int Theme_MediaRouter_LightControlPanel = 2131427334; // aapt resource value: 0x7f0b011f public const int ThemeOverlay_AppCompat = 2131427615; // aapt resource value: 0x7f0b0120 public const int ThemeOverlay_AppCompat_ActionBar = 2131427616; // aapt resource value: 0x7f0b0121 public const int ThemeOverlay_AppCompat_Dark = 2131427617; // aapt resource value: 0x7f0b0122 public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131427618; // aapt resource value: 0x7f0b0123 public const int ThemeOverlay_AppCompat_Dialog = 2131427619; // aapt resource value: 0x7f0b0124 public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131427620; // aapt resource value: 0x7f0b0125 public const int ThemeOverlay_AppCompat_Light = 2131427621; // aapt resource value: 0x7f0b0007 public const int ThemeOverlay_MediaRouter_Dark = 2131427335; // aapt resource value: 0x7f0b0008 public const int ThemeOverlay_MediaRouter_Light = 2131427336; // aapt resource value: 0x7f0b0126 public const int Widget_AppCompat_ActionBar = 2131427622; // aapt resource value: 0x7f0b0127 public const int Widget_AppCompat_ActionBar_Solid = 2131427623; // aapt resource value: 0x7f0b0128 public const int Widget_AppCompat_ActionBar_TabBar = 2131427624; // aapt resource value: 0x7f0b0129 public const int Widget_AppCompat_ActionBar_TabText = 2131427625; // aapt resource value: 0x7f0b012a public const int Widget_AppCompat_ActionBar_TabView = 2131427626; // aapt resource value: 0x7f0b012b public const int Widget_AppCompat_ActionButton = 2131427627; // aapt resource value: 0x7f0b012c public const int Widget_AppCompat_ActionButton_CloseMode = 2131427628; // aapt resource value: 0x7f0b012d public const int Widget_AppCompat_ActionButton_Overflow = 2131427629; // aapt resource value: 0x7f0b012e public const int Widget_AppCompat_ActionMode = 2131427630; // aapt resource value: 0x7f0b012f public const int Widget_AppCompat_ActivityChooserView = 2131427631; // aapt resource value: 0x7f0b0130 public const int Widget_AppCompat_AutoCompleteTextView = 2131427632; // aapt resource value: 0x7f0b0131 public const int Widget_AppCompat_Button = 2131427633; // aapt resource value: 0x7f0b0132 public const int Widget_AppCompat_Button_Borderless = 2131427634; // aapt resource value: 0x7f0b0133 public const int Widget_AppCompat_Button_Borderless_Colored = 2131427635; // aapt resource value: 0x7f0b0134 public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131427636; // aapt resource value: 0x7f0b0135 public const int Widget_AppCompat_Button_Colored = 2131427637; // aapt resource value: 0x7f0b0136 public const int Widget_AppCompat_Button_Small = 2131427638; // aapt resource value: 0x7f0b0137 public const int Widget_AppCompat_ButtonBar = 2131427639; // aapt resource value: 0x7f0b0138 public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131427640; // aapt resource value: 0x7f0b0139 public const int Widget_AppCompat_CompoundButton_CheckBox = 2131427641; // aapt resource value: 0x7f0b013a public const int Widget_AppCompat_CompoundButton_RadioButton = 2131427642; // aapt resource value: 0x7f0b013b public const int Widget_AppCompat_CompoundButton_Switch = 2131427643; // aapt resource value: 0x7f0b013c public const int Widget_AppCompat_DrawerArrowToggle = 2131427644; // aapt resource value: 0x7f0b013d public const int Widget_AppCompat_DropDownItem_Spinner = 2131427645; // aapt resource value: 0x7f0b013e public const int Widget_AppCompat_EditText = 2131427646; // aapt resource value: 0x7f0b013f public const int Widget_AppCompat_ImageButton = 2131427647; // aapt resource value: 0x7f0b0140 public const int Widget_AppCompat_Light_ActionBar = 2131427648; // aapt resource value: 0x7f0b0141 public const int Widget_AppCompat_Light_ActionBar_Solid = 2131427649; // aapt resource value: 0x7f0b0142 public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131427650; // aapt resource value: 0x7f0b0143 public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131427651; // aapt resource value: 0x7f0b0144 public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131427652; // aapt resource value: 0x7f0b0145 public const int Widget_AppCompat_Light_ActionBar_TabText = 2131427653; // aapt resource value: 0x7f0b0146 public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131427654; // aapt resource value: 0x7f0b0147 public const int Widget_AppCompat_Light_ActionBar_TabView = 2131427655; // aapt resource value: 0x7f0b0148 public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131427656; // aapt resource value: 0x7f0b0149 public const int Widget_AppCompat_Light_ActionButton = 2131427657; // aapt resource value: 0x7f0b014a public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131427658; // aapt resource value: 0x7f0b014b public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131427659; // aapt resource value: 0x7f0b014c public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131427660; // aapt resource value: 0x7f0b014d public const int Widget_AppCompat_Light_ActivityChooserView = 2131427661; // aapt resource value: 0x7f0b014e public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131427662; // aapt resource value: 0x7f0b014f public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131427663; // aapt resource value: 0x7f0b0150 public const int Widget_AppCompat_Light_ListPopupWindow = 2131427664; // aapt resource value: 0x7f0b0151 public const int Widget_AppCompat_Light_ListView_DropDown = 2131427665; // aapt resource value: 0x7f0b0152 public const int Widget_AppCompat_Light_PopupMenu = 2131427666; // aapt resource value: 0x7f0b0153 public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131427667; // aapt resource value: 0x7f0b0154 public const int Widget_AppCompat_Light_SearchView = 2131427668; // aapt resource value: 0x7f0b0155 public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131427669; // aapt resource value: 0x7f0b0156 public const int Widget_AppCompat_ListMenuView = 2131427670; // aapt resource value: 0x7f0b0157 public const int Widget_AppCompat_ListPopupWindow = 2131427671; // aapt resource value: 0x7f0b0158 public const int Widget_AppCompat_ListView = 2131427672; // aapt resource value: 0x7f0b0159 public const int Widget_AppCompat_ListView_DropDown = 2131427673; // aapt resource value: 0x7f0b015a public const int Widget_AppCompat_ListView_Menu = 2131427674; // aapt resource value: 0x7f0b009f public const int Widget_AppCompat_NotificationActionContainer = 2131427487; // aapt resource value: 0x7f0b00a0 public const int Widget_AppCompat_NotificationActionText = 2131427488; // aapt resource value: 0x7f0b015b public const int Widget_AppCompat_PopupMenu = 2131427675; // aapt resource value: 0x7f0b015c public const int Widget_AppCompat_PopupMenu_Overflow = 2131427676; // aapt resource value: 0x7f0b015d public const int Widget_AppCompat_PopupWindow = 2131427677; // aapt resource value: 0x7f0b015e public const int Widget_AppCompat_ProgressBar = 2131427678; // aapt resource value: 0x7f0b015f public const int Widget_AppCompat_ProgressBar_Horizontal = 2131427679; // aapt resource value: 0x7f0b0160 public const int Widget_AppCompat_RatingBar = 2131427680; // aapt resource value: 0x7f0b0161 public const int Widget_AppCompat_RatingBar_Indicator = 2131427681; // aapt resource value: 0x7f0b0162 public const int Widget_AppCompat_RatingBar_Small = 2131427682; // aapt resource value: 0x7f0b0163 public const int Widget_AppCompat_SearchView = 2131427683; // aapt resource value: 0x7f0b0164 public const int Widget_AppCompat_SearchView_ActionBar = 2131427684; // aapt resource value: 0x7f0b0165 public const int Widget_AppCompat_SeekBar = 2131427685; // aapt resource value: 0x7f0b0166 public const int Widget_AppCompat_SeekBar_Discrete = 2131427686; // aapt resource value: 0x7f0b0167 public const int Widget_AppCompat_Spinner = 2131427687; // aapt resource value: 0x7f0b0168 public const int Widget_AppCompat_Spinner_DropDown = 2131427688; // aapt resource value: 0x7f0b0169 public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131427689; // aapt resource value: 0x7f0b016a public const int Widget_AppCompat_Spinner_Underlined = 2131427690; // aapt resource value: 0x7f0b016b public const int Widget_AppCompat_TextView_SpinnerItem = 2131427691; // aapt resource value: 0x7f0b016c public const int Widget_AppCompat_Toolbar = 2131427692; // aapt resource value: 0x7f0b016d public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131427693; // aapt resource value: 0x7f0b016f public const int Widget_Design_AppBarLayout = 2131427695; // aapt resource value: 0x7f0b0180 public const int Widget_Design_BottomNavigationView = 2131427712; // aapt resource value: 0x7f0b0181 public const int Widget_Design_BottomSheet_Modal = 2131427713; // aapt resource value: 0x7f0b0182 public const int Widget_Design_CollapsingToolbar = 2131427714; // aapt resource value: 0x7f0b0183 public const int Widget_Design_CoordinatorLayout = 2131427715; // aapt resource value: 0x7f0b0184 public const int Widget_Design_FloatingActionButton = 2131427716; // aapt resource value: 0x7f0b0185 public const int Widget_Design_NavigationView = 2131427717; // aapt resource value: 0x7f0b0186 public const int Widget_Design_ScrimInsetsFrameLayout = 2131427718; // aapt resource value: 0x7f0b0187 public const int Widget_Design_Snackbar = 2131427719; // aapt resource value: 0x7f0b016e public const int Widget_Design_TabLayout = 2131427694; // aapt resource value: 0x7f0b0188 public const int Widget_Design_TextInputLayout = 2131427720; // aapt resource value: 0x7f0b0009 public const int Widget_MediaRouter_Light_MediaRouteButton = 2131427337; // aapt resource value: 0x7f0b000a public const int Widget_MediaRouter_MediaRouteButton = 2131427338; static Style() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Style() { } } public partial class Styleable { public static int[] ActionBar = new int[] { 2130771997, 2130771999, 2130772000, 2130772001, 2130772002, 2130772003, 2130772004, 2130772005, 2130772006, 2130772007, 2130772008, 2130772009, 2130772010, 2130772011, 2130772012, 2130772013, 2130772014, 2130772015, 2130772016, 2130772017, 2130772018, 2130772019, 2130772020, 2130772021, 2130772022, 2130772023, 2130772024, 2130772025, 2130772089}; // aapt resource value: 10 public const int ActionBar_background = 10; // aapt resource value: 12 public const int ActionBar_backgroundSplit = 12; // aapt resource value: 11 public const int ActionBar_backgroundStacked = 11; // aapt resource value: 21 public const int ActionBar_contentInsetEnd = 21; // aapt resource value: 25 public const int ActionBar_contentInsetEndWithActions = 25; // aapt resource value: 22 public const int ActionBar_contentInsetLeft = 22; // aapt resource value: 23 public const int ActionBar_contentInsetRight = 23; // aapt resource value: 20 public const int ActionBar_contentInsetStart = 20; // aapt resource value: 24 public const int ActionBar_contentInsetStartWithNavigation = 24; // aapt resource value: 13 public const int ActionBar_customNavigationLayout = 13; // aapt resource value: 3 public const int ActionBar_displayOptions = 3; // aapt resource value: 9 public const int ActionBar_divider = 9; // aapt resource value: 26 public const int ActionBar_elevation = 26; // aapt resource value: 0 public const int ActionBar_height = 0; // aapt resource value: 19 public const int ActionBar_hideOnContentScroll = 19; // aapt resource value: 28 public const int ActionBar_homeAsUpIndicator = 28; // aapt resource value: 14 public const int ActionBar_homeLayout = 14; // aapt resource value: 7 public const int ActionBar_icon = 7; // aapt resource value: 16 public const int ActionBar_indeterminateProgressStyle = 16; // aapt resource value: 18 public const int ActionBar_itemPadding = 18; // aapt resource value: 8 public const int ActionBar_logo = 8; // aapt resource value: 2 public const int ActionBar_navigationMode = 2; // aapt resource value: 27 public const int ActionBar_popupTheme = 27; // aapt resource value: 17 public const int ActionBar_progressBarPadding = 17; // aapt resource value: 15 public const int ActionBar_progressBarStyle = 15; // aapt resource value: 4 public const int ActionBar_subtitle = 4; // aapt resource value: 6 public const int ActionBar_subtitleTextStyle = 6; // aapt resource value: 1 public const int ActionBar_title = 1; // aapt resource value: 5 public const int ActionBar_titleTextStyle = 5; public static int[] ActionBarLayout = new int[] { 16842931}; // aapt resource value: 0 public const int ActionBarLayout_android_layout_gravity = 0; public static int[] ActionMenuItemView = new int[] { 16843071}; // aapt resource value: 0 public const int ActionMenuItemView_android_minWidth = 0; public static int[] ActionMenuView; public static int[] ActionMode = new int[] { 2130771997, 2130772003, 2130772004, 2130772008, 2130772010, 2130772026}; // aapt resource value: 3 public const int ActionMode_background = 3; // aapt resource value: 4 public const int ActionMode_backgroundSplit = 4; // aapt resource value: 5 public const int ActionMode_closeItemLayout = 5; // aapt resource value: 0 public const int ActionMode_height = 0; // aapt resource value: 2 public const int ActionMode_subtitleTextStyle = 2; // aapt resource value: 1 public const int ActionMode_titleTextStyle = 1; public static int[] ActivityChooserView = new int[] { 2130772027, 2130772028}; // aapt resource value: 1 public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1; // aapt resource value: 0 public const int ActivityChooserView_initialActivityCount = 0; public static int[] AlertDialog = new int[] { 16842994, 2130772029, 2130772030, 2130772031, 2130772032, 2130772033, 2130772034}; // aapt resource value: 0 public const int AlertDialog_android_layout = 0; // aapt resource value: 1 public const int AlertDialog_buttonPanelSideLayout = 1; // aapt resource value: 5 public const int AlertDialog_listItemLayout = 5; // aapt resource value: 2 public const int AlertDialog_listLayout = 2; // aapt resource value: 3 public const int AlertDialog_multiChoiceItemLayout = 3; // aapt resource value: 6 public const int AlertDialog_showTitle = 6; // aapt resource value: 4 public const int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppBarLayout = new int[] { 16842964, 2130772024, 2130772227}; // aapt resource value: 0 public const int AppBarLayout_android_background = 0; // aapt resource value: 1 public const int AppBarLayout_elevation = 1; // aapt resource value: 2 public const int AppBarLayout_expanded = 2; public static int[] AppBarLayoutStates = new int[] { 2130772228, 2130772229}; // aapt resource value: 0 public const int AppBarLayoutStates_state_collapsed = 0; // aapt resource value: 1 public const int AppBarLayoutStates_state_collapsible = 1; public static int[] AppBarLayout_Layout = new int[] { 2130772230, 2130772231}; // aapt resource value: 0 public const int AppBarLayout_Layout_layout_scrollFlags = 0; // aapt resource value: 1 public const int AppBarLayout_Layout_layout_scrollInterpolator = 1; public static int[] AppCompatImageView = new int[] { 16843033, 2130772035, 2130772036, 2130772037}; // 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; public static int[] AppCompatSeekBar = new int[] { 16843074, 2130772038, 2130772039, 2130772040}; // 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; 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; public static int[] AppCompatTextView = new int[] { 16842804, 2130772041}; // aapt resource value: 0 public const int AppCompatTextView_android_textAppearance = 0; // aapt resource value: 1 public const int AppCompatTextView_textAllCaps = 1; public static int[] AppCompatTheme = new int[] { 16842839, 16842926, 2130772042, 2130772043, 2130772044, 2130772045, 2130772046, 2130772047, 2130772048, 2130772049, 2130772050, 2130772051, 2130772052, 2130772053, 2130772054, 2130772055, 2130772056, 2130772057, 2130772058, 2130772059, 2130772060, 2130772061, 2130772062, 2130772063, 2130772064, 2130772065, 2130772066, 2130772067, 2130772068, 2130772069, 2130772070, 2130772071, 2130772072, 2130772073, 2130772074, 2130772075, 2130772076, 2130772077, 2130772078, 2130772079, 2130772080, 2130772081, 2130772082, 2130772083, 2130772084, 2130772085, 2130772086, 2130772087, 2130772088, 2130772089, 2130772090, 2130772091, 2130772092, 2130772093, 2130772094, 2130772095, 2130772096, 2130772097, 2130772098, 2130772099, 2130772100, 2130772101, 2130772102, 2130772103, 2130772104, 2130772105, 2130772106, 2130772107, 2130772108, 2130772109, 2130772110, 2130772111, 2130772112, 2130772113, 2130772114, 2130772115, 2130772116, 2130772117, 2130772118, 2130772119, 2130772120, 2130772121, 2130772122, 2130772123, 2130772124, 2130772125, 2130772126, 2130772127, 2130772128, 2130772129, 2130772130, 2130772131, 2130772132, 2130772133, 2130772134, 2130772135, 2130772136, 2130772137, 2130772138, 2130772139, 2130772140, 2130772141, 2130772142, 2130772143, 2130772144, 2130772145, 2130772146, 2130772147, 2130772148, 2130772149, 2130772150, 2130772151, 2130772152, 2130772153, 2130772154, 2130772155}; // aapt resource value: 23 public const int AppCompatTheme_actionBarDivider = 23; // aapt resource value: 24 public const int AppCompatTheme_actionBarItemBackground = 24; // aapt resource value: 17 public const int AppCompatTheme_actionBarPopupTheme = 17; // aapt resource value: 22 public const int AppCompatTheme_actionBarSize = 22; // aapt resource value: 19 public const int AppCompatTheme_actionBarSplitStyle = 19; // aapt resource value: 18 public const int AppCompatTheme_actionBarStyle = 18; // aapt resource value: 13 public const int AppCompatTheme_actionBarTabBarStyle = 13; // aapt resource value: 12 public const int AppCompatTheme_actionBarTabStyle = 12; // aapt resource value: 14 public const int AppCompatTheme_actionBarTabTextStyle = 14; // aapt resource value: 20 public const int AppCompatTheme_actionBarTheme = 20; // aapt resource value: 21 public const int AppCompatTheme_actionBarWidgetTheme = 21; // aapt resource value: 50 public const int AppCompatTheme_actionButtonStyle = 50; // aapt resource value: 46 public const int AppCompatTheme_actionDropDownStyle = 46; // aapt resource value: 25 public const int AppCompatTheme_actionMenuTextAppearance = 25; // aapt resource value: 26 public const int AppCompatTheme_actionMenuTextColor = 26; // aapt resource value: 29 public const int AppCompatTheme_actionModeBackground = 29; // aapt resource value: 28 public const int AppCompatTheme_actionModeCloseButtonStyle = 28; // aapt resource value: 31 public const int AppCompatTheme_actionModeCloseDrawable = 31; // aapt resource value: 33 public const int AppCompatTheme_actionModeCopyDrawable = 33; // aapt resource value: 32 public const int AppCompatTheme_actionModeCutDrawable = 32; // aapt resource value: 37 public const int AppCompatTheme_actionModeFindDrawable = 37; // aapt resource value: 34 public const int AppCompatTheme_actionModePasteDrawable = 34; // aapt resource value: 39 public const int AppCompatTheme_actionModePopupWindowStyle = 39; // aapt resource value: 35 public const int AppCompatTheme_actionModeSelectAllDrawable = 35; // aapt resource value: 36 public const int AppCompatTheme_actionModeShareDrawable = 36; // aapt resource value: 30 public const int AppCompatTheme_actionModeSplitBackground = 30; // aapt resource value: 27 public const int AppCompatTheme_actionModeStyle = 27; // aapt resource value: 38 public const int AppCompatTheme_actionModeWebSearchDrawable = 38; // aapt resource value: 15 public const int AppCompatTheme_actionOverflowButtonStyle = 15; // aapt resource value: 16 public const int AppCompatTheme_actionOverflowMenuStyle = 16; // aapt resource value: 58 public const int AppCompatTheme_activityChooserViewStyle = 58; // aapt resource value: 95 public const int AppCompatTheme_alertDialogButtonGroupStyle = 95; // aapt resource value: 96 public const int AppCompatTheme_alertDialogCenterButtons = 96; // aapt resource value: 94 public const int AppCompatTheme_alertDialogStyle = 94; // aapt resource value: 97 public const int AppCompatTheme_alertDialogTheme = 97; // 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: 102 public const int AppCompatTheme_autoCompleteTextViewStyle = 102; // aapt resource value: 55 public const int AppCompatTheme_borderlessButtonStyle = 55; // aapt resource value: 52 public const int AppCompatTheme_buttonBarButtonStyle = 52; // aapt resource value: 100 public const int AppCompatTheme_buttonBarNegativeButtonStyle = 100; // aapt resource value: 101 public const int AppCompatTheme_buttonBarNeutralButtonStyle = 101; // aapt resource value: 99 public const int AppCompatTheme_buttonBarPositiveButtonStyle = 99; // aapt resource value: 51 public const int AppCompatTheme_buttonBarStyle = 51; // aapt resource value: 103 public const int AppCompatTheme_buttonStyle = 103; // aapt resource value: 104 public const int AppCompatTheme_buttonStyleSmall = 104; // aapt resource value: 105 public const int AppCompatTheme_checkboxStyle = 105; // aapt resource value: 106 public const int AppCompatTheme_checkedTextViewStyle = 106; // aapt resource value: 86 public const int AppCompatTheme_colorAccent = 86; // aapt resource value: 93 public const int AppCompatTheme_colorBackgroundFloating = 93; // aapt resource value: 90 public const int AppCompatTheme_colorButtonNormal = 90; // aapt resource value: 88 public const int AppCompatTheme_colorControlActivated = 88; // aapt resource value: 89 public const int AppCompatTheme_colorControlHighlight = 89; // aapt resource value: 87 public const int AppCompatTheme_colorControlNormal = 87; // aapt resource value: 84 public const int AppCompatTheme_colorPrimary = 84; // aapt resource value: 85 public const int AppCompatTheme_colorPrimaryDark = 85; // aapt resource value: 91 public const int AppCompatTheme_colorSwitchThumbNormal = 91; // aapt resource value: 92 public const int AppCompatTheme_controlBackground = 92; // aapt resource value: 44 public const int AppCompatTheme_dialogPreferredPadding = 44; // aapt resource value: 43 public const int AppCompatTheme_dialogTheme = 43; // aapt resource value: 57 public const int AppCompatTheme_dividerHorizontal = 57; // aapt resource value: 56 public const int AppCompatTheme_dividerVertical = 56; // aapt resource value: 75 public const int AppCompatTheme_dropDownListViewStyle = 75; // aapt resource value: 47 public const int AppCompatTheme_dropdownListPreferredItemHeight = 47; // aapt resource value: 64 public const int AppCompatTheme_editTextBackground = 64; // aapt resource value: 63 public const int AppCompatTheme_editTextColor = 63; // aapt resource value: 107 public const int AppCompatTheme_editTextStyle = 107; // aapt resource value: 49 public const int AppCompatTheme_homeAsUpIndicator = 49; // aapt resource value: 65 public const int AppCompatTheme_imageButtonStyle = 65; // aapt resource value: 83 public const int AppCompatTheme_listChoiceBackgroundIndicator = 83; // aapt resource value: 45 public const int AppCompatTheme_listDividerAlertDialog = 45; // aapt resource value: 115 public const int AppCompatTheme_listMenuViewStyle = 115; // aapt resource value: 76 public const int AppCompatTheme_listPopupWindowStyle = 76; // aapt resource value: 70 public const int AppCompatTheme_listPreferredItemHeight = 70; // aapt resource value: 72 public const int AppCompatTheme_listPreferredItemHeightLarge = 72; // aapt resource value: 71 public const int AppCompatTheme_listPreferredItemHeightSmall = 71; // aapt resource value: 73 public const int AppCompatTheme_listPreferredItemPaddingLeft = 73; // aapt resource value: 74 public const int AppCompatTheme_listPreferredItemPaddingRight = 74; // aapt resource value: 80 public const int AppCompatTheme_panelBackground = 80; // aapt resource value: 82 public const int AppCompatTheme_panelMenuListTheme = 82; // aapt resource value: 81 public const int AppCompatTheme_panelMenuListWidth = 81; // aapt resource value: 61 public const int AppCompatTheme_popupMenuStyle = 61; // aapt resource value: 62 public const int AppCompatTheme_popupWindowStyle = 62; // aapt resource value: 108 public const int AppCompatTheme_radioButtonStyle = 108; // aapt resource value: 109 public const int AppCompatTheme_ratingBarStyle = 109; // aapt resource value: 110 public const int AppCompatTheme_ratingBarStyleIndicator = 110; // aapt resource value: 111 public const int AppCompatTheme_ratingBarStyleSmall = 111; // aapt resource value: 69 public const int AppCompatTheme_searchViewStyle = 69; // aapt resource value: 112 public const int AppCompatTheme_seekBarStyle = 112; // aapt resource value: 53 public const int AppCompatTheme_selectableItemBackground = 53; // aapt resource value: 54 public const int AppCompatTheme_selectableItemBackgroundBorderless = 54; // aapt resource value: 48 public const int AppCompatTheme_spinnerDropDownItemStyle = 48; // aapt resource value: 113 public const int AppCompatTheme_spinnerStyle = 113; // aapt resource value: 114 public const int AppCompatTheme_switchStyle = 114; // aapt resource value: 40 public const int AppCompatTheme_textAppearanceLargePopupMenu = 40; // aapt resource value: 77 public const int AppCompatTheme_textAppearanceListItem = 77; // aapt resource value: 78 public const int AppCompatTheme_textAppearanceListItemSecondary = 78; // aapt resource value: 79 public const int AppCompatTheme_textAppearanceListItemSmall = 79; // aapt resource value: 42 public const int AppCompatTheme_textAppearancePopupMenuHeader = 42; // aapt resource value: 67 public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 67; // aapt resource value: 66 public const int AppCompatTheme_textAppearanceSearchResultTitle = 66; // aapt resource value: 41 public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41; // aapt resource value: 98 public const int AppCompatTheme_textColorAlertDialogListItem = 98; // aapt resource value: 68 public const int AppCompatTheme_textColorSearchUrl = 68; // aapt resource value: 60 public const int AppCompatTheme_toolbarNavigationButtonStyle = 60; // aapt resource value: 59 public const int AppCompatTheme_toolbarStyle = 59; // aapt resource value: 2 public const int AppCompatTheme_windowActionBar = 2; // aapt resource value: 4 public const int AppCompatTheme_windowActionBarOverlay = 4; // aapt resource value: 5 public const int AppCompatTheme_windowActionModeOverlay = 5; // aapt resource value: 9 public const int AppCompatTheme_windowFixedHeightMajor = 9; // aapt resource value: 7 public const int AppCompatTheme_windowFixedHeightMinor = 7; // aapt resource value: 6 public const int AppCompatTheme_windowFixedWidthMajor = 6; // aapt resource value: 8 public const int AppCompatTheme_windowFixedWidthMinor = 8; // aapt resource value: 10 public const int AppCompatTheme_windowMinWidthMajor = 10; // aapt resource value: 11 public const int AppCompatTheme_windowMinWidthMinor = 11; // aapt resource value: 3 public const int AppCompatTheme_windowNoTitle = 3; public static int[] BottomNavigationView = new int[] { 2130772024, 2130772270, 2130772271, 2130772272, 2130772273}; // aapt resource value: 0 public const int BottomNavigationView_elevation = 0; // aapt resource value: 4 public const int BottomNavigationView_itemBackground = 4; // aapt resource value: 2 public const int BottomNavigationView_itemIconTint = 2; // aapt resource value: 3 public const int BottomNavigationView_itemTextColor = 3; // aapt resource value: 1 public const int BottomNavigationView_menu = 1; public static int[] BottomSheetBehavior_Layout = new int[] { 2130772232, 2130772233, 2130772234}; // aapt resource value: 1 public const int BottomSheetBehavior_Layout_behavior_hideable = 1; // aapt resource value: 0 public const int BottomSheetBehavior_Layout_behavior_peekHeight = 0; // aapt resource value: 2 public const int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2; public static int[] ButtonBarLayout = new int[] { 2130772156}; // aapt resource value: 0 public const int ButtonBarLayout_allowStacking = 0; public static int[] CardView = new int[] { 16843071, 16843072, 2130771985, 2130771986, 2130771987, 2130771988, 2130771989, 2130771990, 2130771991, 2130771992, 2130771993, 2130771994, 2130771995}; // 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: 7 public const int CardView_cardPreventCornerOverlap = 7; // aapt resource value: 6 public const int CardView_cardUseCompatPadding = 6; // aapt resource value: 8 public const int CardView_contentPadding = 8; // aapt resource value: 12 public const int CardView_contentPaddingBottom = 12; // aapt resource value: 9 public const int CardView_contentPaddingLeft = 9; // aapt resource value: 10 public const int CardView_contentPaddingRight = 10; // aapt resource value: 11 public const int CardView_contentPaddingTop = 11; public static int[] CollapsingToolbarLayout = new int[] { 2130771999, 2130772235, 2130772236, 2130772237, 2130772238, 2130772239, 2130772240, 2130772241, 2130772242, 2130772243, 2130772244, 2130772245, 2130772246, 2130772247, 2130772248, 2130772249}; // aapt resource value: 13 public const int CollapsingToolbarLayout_collapsedTitleGravity = 13; // aapt resource value: 7 public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; // aapt resource value: 8 public const int CollapsingToolbarLayout_contentScrim = 8; // aapt resource value: 14 public const int CollapsingToolbarLayout_expandedTitleGravity = 14; // aapt resource value: 1 public const int CollapsingToolbarLayout_expandedTitleMargin = 1; // aapt resource value: 5 public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5; // aapt resource value: 4 public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 4; // aapt resource value: 2 public const int CollapsingToolbarLayout_expandedTitleMarginStart = 2; // aapt resource value: 3 public const int CollapsingToolbarLayout_expandedTitleMarginTop = 3; // aapt resource value: 6 public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 6; // aapt resource value: 12 public const int CollapsingToolbarLayout_scrimAnimationDuration = 12; // aapt resource value: 11 public const int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11; // aapt resource value: 9 public const int CollapsingToolbarLayout_statusBarScrim = 9; // aapt resource value: 0 public const int CollapsingToolbarLayout_title = 0; // aapt resource value: 15 public const int CollapsingToolbarLayout_titleEnabled = 15; // aapt resource value: 10 public const int CollapsingToolbarLayout_toolbarId = 10; public static int[] CollapsingToolbarLayout_Layout = new int[] { 2130772250, 2130772251}; // aapt resource value: 0 public const int CollapsingToolbarLayout_Layout_layout_collapseMode = 0; // aapt resource value: 1 public const int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1; public static int[] ColorStateListItem = new int[] { 16843173, 16843551, 2130772157}; // 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; public static int[] CompoundButton = new int[] { 16843015, 2130772158, 2130772159}; // aapt resource value: 0 public const int CompoundButton_android_button = 0; // aapt resource value: 1 public const int CompoundButton_buttonTint = 1; // aapt resource value: 2 public const int CompoundButton_buttonTintMode = 2; public static int[] CoordinatorLayout = new int[] { 2130772252, 2130772253}; // aapt resource value: 0 public const int CoordinatorLayout_keylines = 0; // aapt resource value: 1 public const int CoordinatorLayout_statusBarBackground = 1; public static int[] CoordinatorLayout_Layout = new int[] { 16842931, 2130772254, 2130772255, 2130772256, 2130772257, 2130772258, 2130772259}; // aapt resource value: 0 public const int CoordinatorLayout_Layout_android_layout_gravity = 0; // aapt resource value: 2 public const int CoordinatorLayout_Layout_layout_anchor = 2; // aapt resource value: 4 public const int CoordinatorLayout_Layout_layout_anchorGravity = 4; // aapt resource value: 1 public const int CoordinatorLayout_Layout_layout_behavior = 1; // aapt resource value: 6 public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6; // aapt resource value: 5 public const int CoordinatorLayout_Layout_layout_insetEdge = 5; // aapt resource value: 3 public const int CoordinatorLayout_Layout_layout_keyline = 3; public static int[] DesignTheme = new int[] { 2130772260, 2130772261, 2130772262}; // aapt resource value: 0 public const int DesignTheme_bottomSheetDialogTheme = 0; // aapt resource value: 1 public const int DesignTheme_bottomSheetStyle = 1; // aapt resource value: 2 public const int DesignTheme_textColorError = 2; public static int[] DrawerArrowToggle = new int[] { 2130772160, 2130772161, 2130772162, 2130772163, 2130772164, 2130772165, 2130772166, 2130772167}; // aapt resource value: 4 public const int DrawerArrowToggle_arrowHeadLength = 4; // aapt resource value: 5 public const int DrawerArrowToggle_arrowShaftLength = 5; // aapt resource value: 6 public const int DrawerArrowToggle_barLength = 6; // aapt resource value: 0 public const int DrawerArrowToggle_color = 0; // aapt resource value: 2 public const int DrawerArrowToggle_drawableSize = 2; // aapt resource value: 3 public const int DrawerArrowToggle_gapBetweenBars = 3; // aapt resource value: 1 public const int DrawerArrowToggle_spinBars = 1; // aapt resource value: 7 public const int DrawerArrowToggle_thickness = 7; public static int[] FloatingActionButton = new int[] { 2130772024, 2130772225, 2130772226, 2130772263, 2130772264, 2130772265, 2130772266, 2130772267}; // aapt resource value: 1 public const int FloatingActionButton_backgroundTint = 1; // aapt resource value: 2 public const int FloatingActionButton_backgroundTintMode = 2; // aapt resource value: 6 public const int FloatingActionButton_borderWidth = 6; // aapt resource value: 0 public const int FloatingActionButton_elevation = 0; // aapt resource value: 4 public const int FloatingActionButton_fabSize = 4; // aapt resource value: 5 public const int FloatingActionButton_pressedTranslationZ = 5; // aapt resource value: 3 public const int FloatingActionButton_rippleColor = 3; // aapt resource value: 7 public const int FloatingActionButton_useCompatPadding = 7; public static int[] FloatingActionButton_Behavior_Layout = new int[] { 2130772268}; // aapt resource value: 0 public const int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0; public static int[] ForegroundLinearLayout = new int[] { 16843017, 16843264, 2130772269}; // 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; public static int[] LinearLayoutCompat = new int[] { 16842927, 16842948, 16843046, 16843047, 16843048, 2130772007, 2130772168, 2130772169, 2130772170}; // 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: 8 public const int LinearLayoutCompat_dividerPadding = 8; // aapt resource value: 6 public const int LinearLayoutCompat_measureWithLargestChild = 6; // aapt resource value: 7 public const int LinearLayoutCompat_showDividers = 7; 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; 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; public static int[] MediaRouteButton = new int[] { 16843071, 16843072, 2130771984, 2130772158}; // aapt resource value: 1 public const int MediaRouteButton_android_minHeight = 1; // aapt resource value: 0 public const int MediaRouteButton_android_minWidth = 0; // aapt resource value: 3 public const int MediaRouteButton_buttonTint = 3; // aapt resource value: 2 public const int MediaRouteButton_externalRouteEnabledDrawable = 2; 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; public static int[] MenuItem = new int[] { 16842754, 16842766, 16842960, 16843014, 16843156, 16843230, 16843231, 16843233, 16843234, 16843235, 16843236, 16843237, 16843375, 2130772171, 2130772172, 2130772173, 2130772174}; // aapt resource value: 14 public const int MenuItem_actionLayout = 14; // aapt resource value: 16 public const int MenuItem_actionProviderClass = 16; // aapt resource value: 15 public const int MenuItem_actionViewClass = 15; // 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: 13 public const int MenuItem_showAsAction = 13; public static int[] MenuView = new int[] { 16842926, 16843052, 16843053, 16843054, 16843055, 16843056, 16843057, 2130772175, 2130772176}; // 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; public static int[] NavigationView = new int[] { 16842964, 16842973, 16843039, 2130772024, 2130772270, 2130772271, 2130772272, 2130772273, 2130772274, 2130772275}; // 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: 9 public const int NavigationView_headerLayout = 9; // aapt resource value: 7 public const int NavigationView_itemBackground = 7; // aapt resource value: 5 public const int NavigationView_itemIconTint = 5; // aapt resource value: 8 public const int NavigationView_itemTextAppearance = 8; // aapt resource value: 6 public const int NavigationView_itemTextColor = 6; // aapt resource value: 4 public const int NavigationView_menu = 4; public static int[] PopupWindow = new int[] { 16843126, 16843465, 2130772177}; // 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; public static int[] PopupWindowBackgroundState = new int[] { 2130772178}; // aapt resource value: 0 public const int PopupWindowBackgroundState_state_above_anchor = 0; public static int[] RecycleListView = new int[] { 2130772179, 2130772180}; // aapt resource value: 0 public const int RecycleListView_paddingBottomNoButtons = 0; // aapt resource value: 1 public const int RecycleListView_paddingTopNoTitle = 1; public static int[] RecyclerView = new int[] { 16842948, 16842993, 2130771968, 2130771969, 2130771970, 2130771971}; // aapt resource value: 1 public const int RecyclerView_android_descendantFocusability = 1; // aapt resource value: 0 public const int RecyclerView_android_orientation = 0; // aapt resource value: 2 public const int RecyclerView_layoutManager = 2; // aapt resource value: 4 public const int RecyclerView_reverseLayout = 4; // aapt resource value: 3 public const int RecyclerView_spanCount = 3; // aapt resource value: 5 public const int RecyclerView_stackFromEnd = 5; public static int[] ScrimInsetsFrameLayout = new int[] { 2130772276}; // aapt resource value: 0 public const int ScrimInsetsFrameLayout_insetForeground = 0; public static int[] ScrollingViewBehavior_Layout = new int[] { 2130772277}; // aapt resource value: 0 public const int ScrollingViewBehavior_Layout_behavior_overlapTop = 0; public static int[] SearchView = new int[] { 16842970, 16843039, 16843296, 16843364, 2130772181, 2130772182, 2130772183, 2130772184, 2130772185, 2130772186, 2130772187, 2130772188, 2130772189, 2130772190, 2130772191, 2130772192, 2130772193}; // 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: 8 public const int SearchView_closeIcon = 8; // aapt resource value: 13 public const int SearchView_commitIcon = 13; // aapt resource value: 7 public const int SearchView_defaultQueryHint = 7; // aapt resource value: 9 public const int SearchView_goIcon = 9; // aapt resource value: 5 public const int SearchView_iconifiedByDefault = 5; // aapt resource value: 4 public const int SearchView_layout = 4; // aapt resource value: 15 public const int SearchView_queryBackground = 15; // aapt resource value: 6 public const int SearchView_queryHint = 6; // aapt resource value: 11 public const int SearchView_searchHintIcon = 11; // aapt resource value: 10 public const int SearchView_searchIcon = 10; // aapt resource value: 16 public const int SearchView_submitBackground = 16; // aapt resource value: 14 public const int SearchView_suggestionRowLayout = 14; // aapt resource value: 12 public const int SearchView_voiceIcon = 12; public static int[] SnackbarLayout = new int[] { 16843039, 2130772024, 2130772278}; // 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; public static int[] Spinner = new int[] { 16842930, 16843126, 16843131, 16843362, 2130772025}; // 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; public static int[] SwitchCompat = new int[] { 16843044, 16843045, 16843074, 2130772194, 2130772195, 2130772196, 2130772197, 2130772198, 2130772199, 2130772200, 2130772201, 2130772202, 2130772203, 2130772204}; // 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: 13 public const int SwitchCompat_showText = 13; // aapt resource value: 12 public const int SwitchCompat_splitTrack = 12; // aapt resource value: 10 public const int SwitchCompat_switchMinWidth = 10; // aapt resource value: 11 public const int SwitchCompat_switchPadding = 11; // aapt resource value: 9 public const int SwitchCompat_switchTextAppearance = 9; // aapt resource value: 8 public const int SwitchCompat_thumbTextPadding = 8; // aapt resource value: 3 public const int SwitchCompat_thumbTint = 3; // aapt resource value: 4 public const int SwitchCompat_thumbTintMode = 4; // aapt resource value: 5 public const int SwitchCompat_track = 5; // aapt resource value: 6 public const int SwitchCompat_trackTint = 6; // aapt resource value: 7 public const int SwitchCompat_trackTintMode = 7; 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; public static int[] TabLayout = new int[] { 2130772279, 2130772280, 2130772281, 2130772282, 2130772283, 2130772284, 2130772285, 2130772286, 2130772287, 2130772288, 2130772289, 2130772290, 2130772291, 2130772292, 2130772293, 2130772294}; // aapt resource value: 3 public const int TabLayout_tabBackground = 3; // aapt resource value: 2 public const int TabLayout_tabContentStart = 2; // aapt resource value: 5 public const int TabLayout_tabGravity = 5; // aapt resource value: 0 public const int TabLayout_tabIndicatorColor = 0; // aapt resource value: 1 public const int TabLayout_tabIndicatorHeight = 1; // aapt resource value: 7 public const int TabLayout_tabMaxWidth = 7; // aapt resource value: 6 public const int TabLayout_tabMinWidth = 6; // aapt resource value: 4 public const int TabLayout_tabMode = 4; // aapt resource value: 15 public const int TabLayout_tabPadding = 15; // aapt resource value: 14 public const int TabLayout_tabPaddingBottom = 14; // aapt resource value: 13 public const int TabLayout_tabPaddingEnd = 13; // aapt resource value: 11 public const int TabLayout_tabPaddingStart = 11; // aapt resource value: 12 public const int TabLayout_tabPaddingTop = 12; // aapt resource value: 10 public const int TabLayout_tabSelectedTextColor = 10; // aapt resource value: 8 public const int TabLayout_tabTextAppearance = 8; // aapt resource value: 9 public const int TabLayout_tabTextColor = 9; public static int[] TextAppearance = new int[] { 16842901, 16842902, 16842903, 16842904, 16842906, 16843105, 16843106, 16843107, 16843108, 2130772041}; // aapt resource value: 5 public const int TextAppearance_android_shadowColor = 5; // aapt resource value: 6 public const int TextAppearance_android_shadowDx = 6; // aapt resource value: 7 public const int TextAppearance_android_shadowDy = 7; // aapt resource value: 8 public const int TextAppearance_android_shadowRadius = 8; // 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: 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: 9 public const int TextAppearance_textAllCaps = 9; public static int[] TextInputLayout = new int[] { 16842906, 16843088, 2130772295, 2130772296, 2130772297, 2130772298, 2130772299, 2130772300, 2130772301, 2130772302, 2130772303, 2130772304, 2130772305, 2130772306, 2130772307, 2130772308}; // 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: 6 public const int TextInputLayout_counterEnabled = 6; // aapt resource value: 7 public const int TextInputLayout_counterMaxLength = 7; // aapt resource value: 9 public const int TextInputLayout_counterOverflowTextAppearance = 9; // aapt resource value: 8 public const int TextInputLayout_counterTextAppearance = 8; // aapt resource value: 4 public const int TextInputLayout_errorEnabled = 4; // aapt resource value: 5 public const int TextInputLayout_errorTextAppearance = 5; // aapt resource value: 10 public const int TextInputLayout_hintAnimationEnabled = 10; // aapt resource value: 3 public const int TextInputLayout_hintEnabled = 3; // aapt resource value: 2 public const int TextInputLayout_hintTextAppearance = 2; // aapt resource value: 13 public const int TextInputLayout_passwordToggleContentDescription = 13; // aapt resource value: 12 public const int TextInputLayout_passwordToggleDrawable = 12; // aapt resource value: 11 public const int TextInputLayout_passwordToggleEnabled = 11; // aapt resource value: 14 public const int TextInputLayout_passwordToggleTint = 14; // aapt resource value: 15 public const int TextInputLayout_passwordToggleTintMode = 15; public static int[] Toolbar = new int[] { 16842927, 16843072, 2130771999, 2130772002, 2130772006, 2130772018, 2130772019, 2130772020, 2130772021, 2130772022, 2130772023, 2130772025, 2130772205, 2130772206, 2130772207, 2130772208, 2130772209, 2130772210, 2130772211, 2130772212, 2130772213, 2130772214, 2130772215, 2130772216, 2130772217, 2130772218, 2130772219, 2130772220, 2130772221}; // 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: 21 public const int Toolbar_buttonGravity = 21; // aapt resource value: 23 public const int Toolbar_collapseContentDescription = 23; // aapt resource value: 22 public const int Toolbar_collapseIcon = 22; // aapt resource value: 6 public const int Toolbar_contentInsetEnd = 6; // aapt resource value: 10 public const int Toolbar_contentInsetEndWithActions = 10; // aapt resource value: 7 public const int Toolbar_contentInsetLeft = 7; // aapt resource value: 8 public const int Toolbar_contentInsetRight = 8; // aapt resource value: 5 public const int Toolbar_contentInsetStart = 5; // aapt resource value: 9 public const int Toolbar_contentInsetStartWithNavigation = 9; // aapt resource value: 4 public const int Toolbar_logo = 4; // aapt resource value: 26 public const int Toolbar_logoDescription = 26; // aapt resource value: 20 public const int Toolbar_maxButtonHeight = 20; // aapt resource value: 25 public const int Toolbar_navigationContentDescription = 25; // aapt resource value: 24 public const int Toolbar_navigationIcon = 24; // aapt resource value: 11 public const int Toolbar_popupTheme = 11; // aapt resource value: 3 public const int Toolbar_subtitle = 3; // aapt resource value: 13 public const int Toolbar_subtitleTextAppearance = 13; // aapt resource value: 28 public const int Toolbar_subtitleTextColor = 28; // aapt resource value: 2 public const int Toolbar_title = 2; // aapt resource value: 14 public const int Toolbar_titleMargin = 14; // aapt resource value: 18 public const int Toolbar_titleMarginBottom = 18; // aapt resource value: 16 public const int Toolbar_titleMarginEnd = 16; // aapt resource value: 15 public const int Toolbar_titleMarginStart = 15; // aapt resource value: 17 public const int Toolbar_titleMarginTop = 17; // aapt resource value: 19 public const int Toolbar_titleMargins = 19; // aapt resource value: 12 public const int Toolbar_titleTextAppearance = 12; // aapt resource value: 27 public const int Toolbar_titleTextColor = 27; public static int[] View = new int[] { 16842752, 16842970, 2130772222, 2130772223, 2130772224}; // 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: 3 public const int View_paddingEnd = 3; // aapt resource value: 2 public const int View_paddingStart = 2; // aapt resource value: 4 public const int View_theme = 4; public static int[] ViewBackgroundHelper = new int[] { 16842964, 2130772225, 2130772226}; // 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; 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; static Styleable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Styleable() { } } } } #pragma warning restore 1591
31.878498
147
0.732606
[ "Apache-2.0" ]
Ezeji/xamarin-forms-samples
UserInterface/ShadowPlatformSpecific/Droid/Resources/Resource.designer.cs
223,277
C#
/* * FactSet Formula API * * **FactSet Formula API** FactSet’s Formula API is a modern, flexible, formula-based API that enables users to access FactSet’s wide range of financial data and content. The API offers two endpoints, one optimized for time-series analysis and one designed for cross-sectional analysis, providing users a simplified interface into FactSet’s expansive offering. By providing two endpoints, it allows for the optimization of user workflows, while reducing complexity. Leverage the power and flexibility of the Formula API to - * Pull data from across most content sets that a user has access to in a single request * Include business logic and mathematical operations in request * Submit a dynamic universe in both endpoints * Return the fsymId to easily combine with other FactSet content / products * Set the trading calendar * Define custom display names **Formula API Request Builder** The Formula API Request Builder provides users everything they need to form a Formula API request. In the Request Builder, you can select identifiers, build a universe expression, select FQL or Screening formulas, easily apply business logic and mathematical functions to the FQL or Screening formulas, specify optional parameters, and construct a GET or POST request. The Request Builder eliminates the need to have previous FQL and Screening knowledge and allows you to quickly find your desired data items and form the request. The Formula API Request Builder can be accessed by navigating to [https://developer.factset.com/formula-api-request-builder](https://developer.factset.com/formula-api-request-builder) and logging in using your FactSet.net ID. When using the Request Builder to construct requests for the one of the Formula API's endpoints, be sure to toggle to the correct endpoint at the top of the page. **How to Check the Health and Availability of the Formula API** Please use the below endpoint to check the health and availability of the Formula API. You must be authorized for this API to use the Health endpoint. [https://api.factset.com/formula-api/health](https://api.factset.com/formula-api/health) **How to Programmatically Download API Specification File** Please use the below endpoint to download the FactSet Formula API Specification File in .yaml. You must be authorized for this API to extract. This specification can then be used for Codegen to create your own SDKs. You can also download the spec using the \"Download Spec\" button to the right of the version number. [https://api.factset.com/formula-api/v1/spec](https://api.factset.com/formula-api/v1/spec) * * The version of the OpenAPI document: 1.2.0 * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Collections; using System.Globalization; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace FactSet.SDK.Formula.Client { /// <summary> /// Utility functions providing some benefit to API client consumers. /// </summary> public static class ClientUtils { /// <summary> /// Sanitize filename by removing the path /// </summary> /// <param name="filename">Filename</param> /// <returns>Filename</returns> public static string SanitizeFilename(string filename) { Match match = Regex.Match(filename, @".*[/\\](.*)$"); return match.Success ? match.Groups[1].Value : filename; } /// <summary> /// Convert params to key/value pairs. /// Use collectionFormat to properly format lists and collections. /// </summary> /// <param name="collectionFormat">The swagger-supported collection format, one of: csv, tsv, ssv, pipes, multi</param> /// <param name="name">Key name.</param> /// <param name="value">Value object.</param> /// <returns>A multimap of keys with 1..n associated values.</returns> public static Multimap<string, string> ParameterToMultiMap(string collectionFormat, string name, object value) { var parameters = new Multimap<string, string>(); if (value is ICollection collection && collectionFormat == "multi") { foreach (var item in collection) { parameters.Add(name, ParameterToString(item)); } } else if (value is IDictionary dictionary) { if(collectionFormat == "deepObject") { foreach (DictionaryEntry entry in dictionary) { parameters.Add(name + "[" + entry.Key + "]", ParameterToString(entry.Value)); } } else { foreach (DictionaryEntry entry in dictionary) { parameters.Add(entry.Key.ToString(), ParameterToString(entry.Value)); } } } else { parameters.Add(name, ParameterToString(value)); } return parameters; } /// <summary> /// If parameter is DateTime, output in a formatted string (default ISO 8601), customizable with Configuration.DateTime. /// If parameter is a list, join the list with ",". /// Otherwise just return the string. /// </summary> /// <param name="obj">The parameter (header, path, query, form).</param> /// <param name="configuration">An optional configuration instance, providing formatting options used in processing.</param> /// <returns>Formatted string.</returns> public static string ParameterToString(object obj, IReadableConfiguration configuration = null) { if (obj is DateTime dateTime) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 return dateTime.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is DateTimeOffset dateTimeOffset) // Return a formatted date string - Can be customized with Configuration.DateTimeFormat // Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o") // https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8 // For example: 2009-06-15T13:45:30.0000000 return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat); if (obj is bool boolean) return boolean ? "true" : "false"; if (obj is ICollection collection) return string.Join(",", collection.Cast<object>()); return Convert.ToString(obj, CultureInfo.InvariantCulture); } /// <summary> /// URL encode a string /// Credit/Ref: https://github.com/restsharp/RestSharp/blob/master/RestSharp/Extensions/StringExtensions.cs#L50 /// </summary> /// <param name="input">string to be URL encoded</param> /// <returns>Byte array</returns> public static string UrlEncode(string input) { const int maxLength = 32766; if (input == null) { throw new ArgumentNullException("input"); } if (input.Length <= maxLength) { return Uri.EscapeDataString(input); } StringBuilder sb = new StringBuilder(input.Length * 2); int index = 0; while (index < input.Length) { int length = Math.Min(input.Length - index, maxLength); string subString = input.Substring(index, length); sb.Append(Uri.EscapeDataString(subString)); index += subString.Length; } return sb.ToString(); } /// <summary> /// Encode string in base64 format. /// </summary> /// <param name="text">string to be encoded.</param> /// <returns>Encoded string.</returns> public static string Base64Encode(string text) { return Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes(text)); } /// <summary> /// Convert stream to byte array /// </summary> /// <param name="inputStream">Input stream to be converted</param> /// <returns>Byte array</returns> public static byte[] ReadAsBytes(Stream inputStream) { using (var ms = new MemoryStream()) { inputStream.CopyTo(ms); return ms.ToArray(); } } /// <summary> /// Select the Content-Type header's value from the given content-type array: /// if JSON type exists in the given array, use it; /// otherwise use the first one defined in 'consumes' /// </summary> /// <param name="contentTypes">The Content-Type array to select from.</param> /// <returns>The Content-Type header to use.</returns> public static string SelectHeaderContentType(string[] contentTypes) { if (contentTypes.Length == 0) return null; foreach (var contentType in contentTypes) { if (IsJsonMime(contentType)) return contentType; } return contentTypes[0]; // use the first content type specified in 'consumes' } /// <summary> /// Select the Accept header's value from the given accepts array: /// if JSON exists in the given array, use it; /// otherwise use all of them (joining into a string) /// </summary> /// <param name="accepts">The accepts array to select from.</param> /// <returns>The Accept header to use.</returns> public static string SelectHeaderAccept(string[] accepts) { if (accepts.Length == 0) return null; if (accepts.Contains("application/json", StringComparer.OrdinalIgnoreCase)) return "application/json"; return string.Join(",", accepts); } /// <summary> /// Provides a case-insensitive check that a provided content type is a known JSON-like content type. /// </summary> public static readonly Regex JsonRegex = new Regex("(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"); /// <summary> /// Check if the given MIME is a JSON MIME. /// JSON MIME examples: /// application/json /// application/json; charset=UTF8 /// APPLICATION/JSON /// application/vnd.company+json /// </summary> /// <param name="mime">MIME</param> /// <returns>Returns True if MIME type is json.</returns> public static bool IsJsonMime(string mime) { if (string.IsNullOrWhiteSpace(mime)) return false; return JsonRegex.IsMatch(mime) || mime.Equals("application/json-patch+json"); } } }
50.117391
2,605
0.616899
[ "Apache-2.0" ]
factset/enterprise-sdk
code/dotnet/Formula/v1/src/FactSet.SDK.Formula/Client/ClientUtils.cs
11,533
C#
using Microsoft.VisualStudio.Services.ReleaseManagement.WebApi; using Microsoft.VisualStudio.Services.WebApi; using System; using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.Services.ReleaseManagement.WebApi.Clients; using Microsoft.VisualStudio.Services.ReleaseManagement.WebApi.Contracts; using Microsoft.VisualStudio.Services.ReleaseManagement.WebApi.Contracts.Conditions; using Newtonsoft.Json; using WebApiRelease = Microsoft.VisualStudio.Services.ReleaseManagement.WebApi.Release; namespace Microsoft.TeamServices.Samples.Client.Release { [ClientSample(ReleaseManagementApiConstants.ReleaseAreaName, ReleaseManagementApiConstants.ReleaseGatesResource)] public class GatesSample : ClientSample { private const string releaseDefinitionName = "Fabrikam-web-with-Gates"; private int _newlyCreatedReleaseDefinitionId = 0; [ClientSampleMethod] public ReleaseGates IgnoreGate() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; string gateName = "Query Work Items"; ReleaseDefinitionGatesStep releaseDefinitionGatesStep = new ReleaseDefinitionGatesStep { Gates = new List<ReleaseDefinitionGate> { new ReleaseDefinitionGate { Tasks = new List<WorkflowTask> { new WorkflowTask { Enabled = true, Name = gateName, TaskId = new Guid("f1e4b0e6-017e-4819-8a48-ef19ae96e289"), Version = "0.*", Inputs = new Dictionary<string, string> { { "queryId", "c871ca91-e30c-43a0-9306-97a2be93861e" }, { "maxThreshold", "6" }, { "minThreshold", "2" } } } } } }, GatesOptions = new ReleaseDefinitionGatesOptions { IsEnabled = true, MinimumSuccessDuration = 2, SamplingInterval = 5, StabilizationTime = 10, Timeout = 60 }, Id = 0 }; ReleaseDefinition definition = new ReleaseDefinition() { Name = releaseDefinitionName, Revision = 1, Environments = new List<ReleaseDefinitionEnvironment>() { new ReleaseDefinitionEnvironment() { Name = "PROD", Conditions = new List<Condition>() { new Condition() { ConditionType = ConditionType.Event, Name = "ReleaseStarted" } }, DeployPhases = new List<DeployPhase>() { new RunOnServerDeployPhase() { Name = "Agentless phase", Rank = 1, WorkflowTasks = new List<WorkflowTask>() { new WorkflowTask() { Name = "Manual Intervention", TaskId = new Guid("bcb64569-d51a-4af0-9c01-ea5d05b3b622"), Version = "8.*", Enabled = true } } } }, PreDeployApprovals = new ReleaseDefinitionApprovals() { Approvals = new List<ReleaseDefinitionApprovalStep>() { new ReleaseDefinitionApprovalStep() { IsAutomated = true, Rank = 1, } } }, PostDeployApprovals = new ReleaseDefinitionApprovals() { Approvals = new List<ReleaseDefinitionApprovalStep>() { new ReleaseDefinitionApprovalStep() { IsAutomated = true, Rank = 1 } } }, RetentionPolicy = new EnvironmentRetentionPolicy() { DaysToKeep = 30, ReleasesToKeep = 3, RetainBuild = true }, PreDeploymentGates = releaseDefinitionGatesStep } } }; // Get a release client instance VssConnection connection = Context.Connection; ReleaseHttpClient releaseClient = connection.GetClient<ReleaseHttpClient>(); // create a release definition ReleaseDefinition releaseDefinition = releaseClient.CreateReleaseDefinitionAsync(project: projectName, releaseDefinition: definition).Result; this._newlyCreatedReleaseDefinitionId = releaseDefinition.Id; // create a release WebApiRelease release = ReleasesSample.CreateRelease(releaseClient, _newlyCreatedReleaseDefinitionId, projectName); Context.Log("{0} {1}", release.Id.ToString().PadLeft(6), release.Name); // Wait till deployment moves to evaluation gates state ClientSampleHelpers.Retry( TimeSpan.FromMinutes(2), TimeSpan.FromSeconds(5), () => { release = releaseClient.GetReleaseAsync(project: projectName, releaseId: release.Id).Result; return release != null && release.Environments.First().DeploySteps.FirstOrDefault().OperationStatus == DeploymentOperationStatus.EvaluatingGates; }); // Ignore the gate GateUpdateMetadata gateUpdateMetadata = new GateUpdateMetadata { Comment = "Ignore gate", GatesToIgnore = new List<string> { gateName } }; int gateStepId = release.Environments.FirstOrDefault().DeploySteps.FirstOrDefault().PreDeploymentGates.Id; ReleaseGates releaseGates = releaseClient.UpdateGatesAsync(gateUpdateMetadata: gateUpdateMetadata, project: projectName, gateStepId: gateStepId).Result; Context.Log("{0} {1}", releaseGates.Id.ToString().PadLeft(6), releaseGates.Id); return releaseGates; } [ClientSampleMethod] public void DeleteReleaseDefinitionWithGates() { string projectName = ClientSampleHelpers.FindAnyProject(this.Context).Name; // Get a release client instance VssConnection connection = Context.Connection; ReleaseHttpClient releaseClient = connection.GetClient<ReleaseHttpClient>(); // delete release definition releaseClient.DeleteReleaseDefinitionAsync(project: projectName, definitionId: this._newlyCreatedReleaseDefinitionId, forceDelete: true).SyncResult(); } } }
45.494444
173
0.474173
[ "MIT" ]
armohamm/azure-devops-dotnet-samples
ClientLibrary/Snippets/Microsoft.TeamServices.Samples.Client/Release/GatesSample.cs
8,191
C#
using UMS.Data; using UMS.Models; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Threading.Tasks; using UMS.ViewModels; namespace UMS.Controllers { public class StudentController : Controller { private readonly ApplicationDbContext context; public StudentController(ApplicationDbContext context) { this.context = context; } public async Task<IActionResult> Index() { var students = await context.Students.Include(m => m.Department).ToListAsync(); return View(students); } public async Task<IActionResult> Create() { StudentViewModel studentViewModel = new StudentViewModel() { Student = new Student(), Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentViewModel); } [HttpPost, ValidateAntiForgeryToken] public async Task<IActionResult> Create(Student student) { if (ModelState.IsValid) { await context.Students.AddAsync(student); await context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); } StudentViewModel studentViewModel = new StudentViewModel() { Student = new Student(), Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentViewModel); } public async Task<IActionResult> Edit(int? id) { if (id == null) { return NotFound(); } var findById = await context.Students.SingleOrDefaultAsync(m => m.Id == id); if (findById == null) { return NotFound(); } StudentViewModel studentViewModel = new StudentViewModel() { Student = findById, Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentViewModel); } [HttpPost, ValidateAntiForgeryToken] public async Task<IActionResult> Edit(StudentViewModel studentViewModel, int? id) { if (ModelState.IsValid) { var findById = await context.Students.FindAsync(id); findById.FirstName = studentViewModel.Student.FirstName; findById.LastName = studentViewModel.Student.LastName; findById.DepartmentId = studentViewModel.Student.DepartmentId; findById.Semester = studentViewModel.Student.Semester; await context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); } StudentViewModel studentVM = new StudentViewModel() { Student = new Student(), Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentVM); } public async Task<IActionResult> Delete(int? id) { if (id == null) { return NotFound(); } var findById = await context.Students.SingleOrDefaultAsync(m => m.Id == id); if (findById == null) { return NotFound(); } StudentViewModel studentViewModel = new StudentViewModel() { Student = findById, Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentViewModel); } [HttpPost, ValidateAntiForgeryToken] public async Task<IActionResult> Delete(StudentViewModel studentViewModel, int? id) { if (ModelState.IsValid) { var findById = await context.Students.FindAsync(id); context.Students.Remove(findById); await context.SaveChangesAsync(); //return RedirectToAction(nameof(Index)); } StudentViewModel studentVM = new StudentViewModel() { Student = new Student(), Department = new Department(), Departments = await context.Departments.ToListAsync() }; return View(studentVM); } } }
31.013245
91
0.543669
[ "MIT" ]
tahmidradit/UMS
UMS/Controllers/StudentController.cs
4,685
C#
// -------------------------------------------------------------------------- // Tethys.Logging // ========================================================================== // // A (portable) logging library for .NET Framework 4.5, Silverlight 4 and // higher, Windows Phone 7 and higher and .NET for Windows Store apps. // // =========================================================================== // // <copyright file="ILogEvent.cs" company="Tethys"> // Copyright 2009-2015 by Thomas Graf // All rights reserved. // Licensed under the Apache License, Version 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. // </copyright> // // --------------------------------------------------------------------------- namespace Tethys.Logging { using System; /// <summary> /// Interface for logging events for log viewer. /// This is an abstract interface for as well log4net as /// NLog logging events. /// </summary> public interface ILogEvent { /// <summary> /// Gets the log level. /// </summary> /// <value>The level.</value> LogLevel Level { get; } /// <summary> /// Gets the log event time stamp. /// </summary> /// <value>The time stamp.</value> DateTime Timestamp { get; } /// <summary> /// Gets the log message. /// </summary> /// <value>The message.</value> string Message { get; } } // ILogEvent } // Tethys.Logging // ==================================
32.703704
78
0.46376
[ "Apache-2.0" ]
tngraf/Tethys.Logging
Tethys.Logging/ILogEvent.cs
1,768
C#
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ using System.Collections.Generic; using Aliyun.Acs.Core; namespace Aliyun.Acs.Vcs.Model.V20200515 { public class GetFaceOptionsResponse : AcsResponse { private string code; private string message; private string requestId; private List<GetFaceOptions_DataItem> data; public string Code { get { return code; } set { code = value; } } public string Message { get { return message; } set { message = value; } } public string RequestId { get { return requestId; } set { requestId = value; } } public List<GetFaceOptions_DataItem> Data { get { return data; } set { data = value; } } public class GetFaceOptions_DataItem { private string key; private string name; private List<GetFaceOptions_OptionListItem> optionList; public string Key { get { return key; } set { key = value; } } public string Name { get { return name; } set { name = value; } } public List<GetFaceOptions_OptionListItem> OptionList { get { return optionList; } set { optionList = value; } } public class GetFaceOptions_OptionListItem { private string key; private string name; public string Key { get { return key; } set { key = value; } } public string Name { get { return name; } set { name = value; } } } } } }
15.730061
63
0.574493
[ "Apache-2.0" ]
AxiosCros/aliyun-openapi-net-sdk
aliyun-net-sdk-vcs/Vcs/Model/V20200515/GetFaceOptionsResponse.cs
2,564
C#
using AdoDataLayer; using System; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AdoDataLayer.Tests { [TestClass()] public class DbManagerTests { [TestMethod()] public void OpenTest() { Assert.Fail(); } [TestMethod()] public void DbManagerTest() { Assert.Fail(); } [TestMethod()] public void DbManagerTest1() { Assert.Fail(); } [TestMethod()] public void OpenTest1() { Assert.Fail(); } [TestMethod()] public void CloseTest() { Assert.Fail(); } [TestMethod()] public void AddParametersTest() { Assert.Fail(); } [TestMethod()] public void BeginTransactionTest() { Assert.Fail(); } [TestMethod()] public void CommitTransactionTest() { Assert.Fail(); } [TestMethod()] public void ExecuteReaderTest() { Assert.Fail(); } [TestMethod()] public void CloseReaderTest() { Assert.Fail(); } [TestMethod()] public void ExecuteNonQueryTest() { Assert.Fail(); } [TestMethod()] public void ExecuteScalarTest() { Assert.Fail(); } [TestMethod()] public void ExecuteDataSetTest() { Assert.Fail(); } } } namespace AdoDataLayerUnitTests { [TestClass] public class DbManagerTests { [TestMethod] public void TestMethod1() { } } }
17.554455
51
0.460237
[ "MIT" ]
GXSoftwareUK/AdoDataLayer
GX.DataLayer/AdoDataLayerUnitTests/DbManagerTests.cs
1,775
C#
using Microsoft.AspNetCore.Identity; using System; using System.Collections.Generic; using System.Text; namespace Identity.Data { public static class DbInitializer { public static void Initialize(ApplicationDbContext context) { if (context.Database.EnsureCreated()) { // Code to create initial data Seed(context); } } private static void Seed(ApplicationDbContext context) { // Create list with dummy users List<IdentityUser> userList = new List<IdentityUser> { new IdentityUser("JonDue") { Email = "jond@outlook.com", PasswordHash = Convert.ToBase64String(Encoding.ASCII.GetBytes("password1234"))}, }; context.Users.AddRange(userList); context.SaveChanges(); } } }
29.466667
153
0.590498
[ "MIT" ]
ARambazamba/20487
AllFiles/Mod09/Labfiles/Lab1/Solution/Identity/Data/DbInitializer.cs
884
C#
// CommandLine.cs // Script#/Tools/Preprocessor // This source code is subject to terms and conditions of the Apache License, Version 2.0. // using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.IO; namespace ScriptSharp { internal sealed class CommandLine { private string[] _arguments; private IDictionary _options; private bool _showHelp; private bool _hideAbout; public CommandLine(string[] args) { if (args == null) { throw new ArgumentNullException("args"); } args = ExpandResponseFileArguments(args); ArrayList argList = new ArrayList(); for (int i = 0; i < args.Length; i++) { char c = args[i][0]; if ((c != '/') && (c != '-')) { argList.Add(args[i]); } else { int index = args[i].IndexOf(':'); if (index == -1) { string option = args[i].Substring(1); if ((String.Compare(option, "help", StringComparison.OrdinalIgnoreCase) == 0) || (String.Compare(option, "?", StringComparison.Ordinal) == 0)) { _showHelp = true; } else if (String.Compare(option, "nologo", StringComparison.OrdinalIgnoreCase) == 0) { _hideAbout = true; } else { Options[option] = String.Empty; } } else { string optionName = args[i].Substring(1, index - 1); string optionValue = args[i].Substring(index + 1); if (Options.Contains(optionName)) { object existingValue = Options[optionName]; if (existingValue is string) { ArrayList valueList = new ArrayList(); valueList.Add(existingValue); valueList.Add(optionValue); Options[optionName] = valueList; } else { Debug.Assert(existingValue is ArrayList); ArrayList valueList = (ArrayList)existingValue; valueList.Add(optionValue); } } else { Options[optionName] = optionValue; } } } } _arguments = (string[])argList.ToArray(typeof(string)); } public string[] Arguments { get { return _arguments; } } public bool HideAbout { get { return _hideAbout; } } public IDictionary Options { get { if (_options == null) { _options = new HybridDictionary(true); } return _options; } } public bool ShowHelp { get { return _showHelp; } } private string[] ExpandResponseFileArguments(string[] args) { List<string> expandedArgs = new List<string>(); for (int i = 0; i < args.Length; i++) { if ((args[i].Length > 1) && args[i].StartsWith("@")) { string responseFile = args[i].Substring(1); if (File.Exists(responseFile)) { using (TextReader reader = File.OpenText(responseFile)) { string line; while ((line = reader.ReadLine()) != null) { line = line.Trim(); if (line.Length > 0) { expandedArgs.Add(line); } } } } } else { expandedArgs.Add(args[i]); } } return expandedArgs.ToArray(); } } }
33.835821
109
0.408028
[ "Apache-2.0" ]
AmanArnold/dsharp
tools/Preprocessor/CommandLine.cs
4,534
C#
using LogLib; using ModuleLib; using NetORMLib; using NetORMLib.Databases; using NetORMLib.Queries; using PIO.Models; using System; using System.Collections.Generic; using System.Linq; using System.Text; using PIO.ServerLib.Tables; using PIO.Models.Modules; using PIO.ModulesLib.Exceptions; namespace PIO.ServerLib.Modules { public class IdlerModule : TaskGeneratorModule, IIdlerModule { public IdlerModule(ILogger Logger, ITaskModule TaskModule, IWorkerModule WorkerModule) : base(Logger,TaskModule,WorkerModule) { this.workerModule = WorkerModule; } public Task BeginIdle(int WorkerID,int Duration) { Task task; Worker worker; LogEnter(); worker = AssertWorkerIsIdle(WorkerID); Log(LogLevels.Information, $"Creating task (WorkerID={WorkerID})"); task=Try(() => taskModule.CreateTask(TaskTypeIDs.Idle, WorkerID, worker.X, worker.Y,null, null, null, DateTime.Now.AddSeconds(Duration))).OrThrow<PIOInternalErrorException>("Failed to create task"); OnTasksCreated(task); return task; } public void EndIdle(int WorkerID) { Worker worker; LogEnter(); worker = AssertExists(() => workerModule.GetWorker(WorkerID), $"WorkerID={WorkerID}"); } } }
19.677419
202
0.739344
[ "MIT" ]
dfgs/PIO
PIO.ServerLib/Modules/FunctionalModules/IdlerModule.cs
1,222
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Runtime.InteropServices; using ILRuntime.CLR.TypeSystem; using ILRuntime.CLR.Method; using ILRuntime.Runtime.Enviorment; using ILRuntime.Runtime.Intepreter; using ILRuntime.Runtime.Stack; using ILRuntime.Reflection; using ILRuntime.CLR.Utils; namespace ILRuntime.Runtime.Generated { unsafe class ETModel_MessageDispatcherComponent_Binding { public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app) { BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly; MethodBase method; Type[] args; Type type = typeof(ETModel.MessageDispatcherComponent); args = new Type[]{typeof(System.UInt16), typeof(ETModel.IMHandler)}; method = type.GetMethod("RegisterHandler", flag, null, args, null); app.RegisterCLRMethodRedirection(method, RegisterHandler_0); } static StackObject* RegisterHandler_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject* ptr_of_this_method; StackObject* __ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); ETModel.IMHandler @handler = (ETModel.IMHandler)typeof(ETModel.IMHandler).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.UInt16 @opcode = (ushort)ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); ETModel.MessageDispatcherComponent instance_of_this_method = (ETModel.MessageDispatcherComponent)typeof(ETModel.MessageDispatcherComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.RegisterHandler(@opcode, @handler); return __ret; } } }
39.20339
229
0.698227
[ "MIT" ]
naivetang/2019MiniGame22
Unity/Assets/Model/ILBinding/ETModel_MessageDispatcherComponent_Binding.cs
2,313
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the elasticache-2015-02-02.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.ElastiCache.Model { /// <summary> /// Container for the parameters to the CreateReplicationGroup operation. /// Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication /// group. /// /// /// <para> /// This API can be used to create a standalone regional replication group or a secondary /// replication group associated with a Global Datastore. /// </para> /// /// <para> /// A Redis (cluster mode disabled) replication group is a collection of clusters, where /// one of the clusters is a read/write primary and the others are read-only replicas. /// Writes to the primary are asynchronously propagated to the replicas. /// </para> /// /// <para> /// A Redis (cluster mode enabled) replication group is a collection of 1 to 90 node groups /// (shards). Each node group (shard) has one read/write primary node and up to 5 read-only /// replica nodes. Writes to the primary are asynchronously propagated to the replicas. /// Redis (cluster mode enabled) replication groups partition the data across node groups /// (shards). /// </para> /// /// <para> /// When a Redis (cluster mode disabled) replication group has been successfully created, /// you can add one or more read replicas to it, up to a total of 5 read replicas. You /// cannot alter a Redis (cluster mode enabled) replication group after it has been created. /// However, if you need to increase or decrease the number of node groups (console: shards), /// you can avail yourself of ElastiCache for Redis' enhanced backup and restore. For /// more information, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/backups-restoring.html">Restoring /// From a Backup with Cluster Resizing</a> in the <i>ElastiCache User Guide</i>. /// </para> /// <note> /// <para> /// This operation is valid for Redis only. /// </para> /// </note> /// </summary> public partial class CreateReplicationGroupRequest : AmazonElastiCacheRequest { private bool? _atRestEncryptionEnabled; private string _authToken; private bool? _automaticFailoverEnabled; private bool? _autoMinorVersionUpgrade; private string _cacheNodeType; private string _cacheParameterGroupName; private List<string> _cacheSecurityGroupNames = new List<string>(); private string _cacheSubnetGroupName; private string _engine; private string _engineVersion; private string _globalReplicationGroupId; private string _kmsKeyId; private List<NodeGroupConfiguration> _nodeGroupConfiguration = new List<NodeGroupConfiguration>(); private string _notificationTopicArn; private int? _numCacheClusters; private int? _numNodeGroups; private int? _port; private List<string> _preferredCacheClusterAZs = new List<string>(); private string _preferredMaintenanceWindow; private string _primaryClusterId; private int? _replicasPerNodeGroup; private string _replicationGroupDescription; private string _replicationGroupId; private List<string> _securityGroupIds = new List<string>(); private List<string> _snapshotArns = new List<string>(); private string _snapshotName; private int? _snapshotRetentionLimit; private string _snapshotWindow; private List<Tag> _tags = new List<Tag>(); private bool? _transitEncryptionEnabled; /// <summary> /// Gets and sets the property AtRestEncryptionEnabled. /// <para> /// A flag that enables encryption at rest when set to <code>true</code>. /// </para> /// /// <para> /// You cannot modify the value of <code>AtRestEncryptionEnabled</code> after the replication /// group is created. To enable encryption at rest on a replication group you must set /// <code>AtRestEncryptionEnabled</code> to <code>true</code> when you create the replication /// group. /// </para> /// /// <para> /// <b>Required:</b> Only available when creating a replication group in an Amazon VPC /// using redis version <code>3.2.6</code>, <code>4.x</code> or later. /// </para> /// /// <para> /// Default: <code>false</code> /// </para> /// </summary> public bool AtRestEncryptionEnabled { get { return this._atRestEncryptionEnabled.GetValueOrDefault(); } set { this._atRestEncryptionEnabled = value; } } // Check to see if AtRestEncryptionEnabled property is set internal bool IsSetAtRestEncryptionEnabled() { return this._atRestEncryptionEnabled.HasValue; } /// <summary> /// Gets and sets the property AuthToken. /// <para> /// <b>Reserved parameter.</b> The password used to access a password protected server. /// </para> /// /// <para> /// <code>AuthToken</code> can be specified only on replication groups where <code>TransitEncryptionEnabled</code> /// is <code>true</code>. /// </para> /// <important> /// <para> /// For HIPAA compliance, you must specify <code>TransitEncryptionEnabled</code> as <code>true</code>, /// an <code>AuthToken</code>, and a <code>CacheSubnetGroup</code>. /// </para> /// </important> /// <para> /// Password constraints: /// </para> /// <ul> <li> /// <para> /// Must be only printable ASCII characters. /// </para> /// </li> <li> /// <para> /// Must be at least 16 characters and no more than 128 characters in length. /// </para> /// </li> <li> /// <para> /// The only permitted printable special characters are !, &amp;, #, $, ^, &lt;, &gt;, /// and -. Other printable special characters cannot be used in the AUTH token. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="http://redis.io/commands/AUTH">AUTH password</a> /// at http://redis.io/commands/AUTH. /// </para> /// </summary> public string AuthToken { get { return this._authToken; } set { this._authToken = value; } } // Check to see if AuthToken property is set internal bool IsSetAuthToken() { return this._authToken != null; } /// <summary> /// Gets and sets the property AutomaticFailoverEnabled. /// <para> /// Specifies whether a read-only replica is automatically promoted to read/write primary /// if the existing primary fails. /// </para> /// /// <para> /// If <code>true</code>, Multi-AZ is enabled for this replication group. If <code>false</code>, /// Multi-AZ is disabled for this replication group. /// </para> /// /// <para> /// <code>AutomaticFailoverEnabled</code> must be enabled for Redis (cluster mode enabled) /// replication groups. /// </para> /// /// <para> /// Default: false /// </para> /// /// <para> /// Amazon ElastiCache for Redis does not support Multi-AZ with automatic failover on: /// </para> /// <ul> <li> /// <para> /// Redis versions earlier than 2.8.6. /// </para> /// </li> <li> /// <para> /// Redis (cluster mode disabled): T1 node types. /// </para> /// </li> <li> /// <para> /// Redis (cluster mode enabled): T1 node types. /// </para> /// </li> </ul> /// </summary> public bool AutomaticFailoverEnabled { get { return this._automaticFailoverEnabled.GetValueOrDefault(); } set { this._automaticFailoverEnabled = value; } } // Check to see if AutomaticFailoverEnabled property is set internal bool IsSetAutomaticFailoverEnabled() { return this._automaticFailoverEnabled.HasValue; } /// <summary> /// Gets and sets the property AutoMinorVersionUpgrade. /// <para> /// This parameter is currently disabled. /// </para> /// </summary> public bool AutoMinorVersionUpgrade { get { return this._autoMinorVersionUpgrade.GetValueOrDefault(); } set { this._autoMinorVersionUpgrade = value; } } // Check to see if AutoMinorVersionUpgrade property is set internal bool IsSetAutoMinorVersionUpgrade() { return this._autoMinorVersionUpgrade.HasValue; } /// <summary> /// Gets and sets the property CacheNodeType. /// <para> /// The compute and memory capacity of the nodes in the node group (shard). /// </para> /// /// <para> /// The following node types are supported by ElastiCache. Generally speaking, the current /// generation types provide more memory and computational power at lower cost when compared /// to their equivalent previous generation counterparts. /// </para> /// <ul> <li> /// <para> /// General purpose: /// </para> /// <ul> <li> /// <para> /// Current generation: /// </para> /// /// <para> /// <b>M5 node types:</b> <code>cache.m5.large</code>, <code>cache.m5.xlarge</code>, /// <code>cache.m5.2xlarge</code>, <code>cache.m5.4xlarge</code>, <code>cache.m5.12xlarge</code>, /// <code>cache.m5.24xlarge</code> /// </para> /// /// <para> /// <b>M4 node types:</b> <code>cache.m4.large</code>, <code>cache.m4.xlarge</code>, /// <code>cache.m4.2xlarge</code>, <code>cache.m4.4xlarge</code>, <code>cache.m4.10xlarge</code> /// /// </para> /// /// <para> /// <b>T3 node types:</b> <code>cache.t3.micro</code>, <code>cache.t3.small</code>, <code>cache.t3.medium</code> /// /// </para> /// /// <para> /// <b>T2 node types:</b> <code>cache.t2.micro</code>, <code>cache.t2.small</code>, <code>cache.t2.medium</code> /// /// </para> /// </li> <li> /// <para> /// Previous generation: (not recommended) /// </para> /// /// <para> /// <b>T1 node types:</b> <code>cache.t1.micro</code> /// </para> /// /// <para> /// <b>M1 node types:</b> <code>cache.m1.small</code>, <code>cache.m1.medium</code>, /// <code>cache.m1.large</code>, <code>cache.m1.xlarge</code> /// </para> /// /// <para> /// <b>M3 node types:</b> <code>cache.m3.medium</code>, <code>cache.m3.large</code>, /// <code>cache.m3.xlarge</code>, <code>cache.m3.2xlarge</code> /// </para> /// </li> </ul> </li> <li> /// <para> /// Compute optimized: /// </para> /// <ul> <li> /// <para> /// Previous generation: (not recommended) /// </para> /// /// <para> /// <b>C1 node types:</b> <code>cache.c1.xlarge</code> /// </para> /// </li> </ul> </li> <li> /// <para> /// Memory optimized: /// </para> /// <ul> <li> /// <para> /// Current generation: /// </para> /// /// <para> /// <b>R5 node types:</b> <code>cache.r5.large</code>, <code>cache.r5.xlarge</code>, /// <code>cache.r5.2xlarge</code>, <code>cache.r5.4xlarge</code>, <code>cache.r5.12xlarge</code>, /// <code>cache.r5.24xlarge</code> /// </para> /// /// <para> /// <b>R4 node types:</b> <code>cache.r4.large</code>, <code>cache.r4.xlarge</code>, /// <code>cache.r4.2xlarge</code>, <code>cache.r4.4xlarge</code>, <code>cache.r4.8xlarge</code>, /// <code>cache.r4.16xlarge</code> /// </para> /// </li> <li> /// <para> /// Previous generation: (not recommended) /// </para> /// /// <para> /// <b>M2 node types:</b> <code>cache.m2.xlarge</code>, <code>cache.m2.2xlarge</code>, /// <code>cache.m2.4xlarge</code> /// </para> /// /// <para> /// <b>R3 node types:</b> <code>cache.r3.large</code>, <code>cache.r3.xlarge</code>, /// <code>cache.r3.2xlarge</code>, <code>cache.r3.4xlarge</code>, <code>cache.r3.8xlarge</code> /// /// </para> /// </li> </ul> </li> </ul> /// <para> /// <b>Additional node type info</b> /// </para> /// <ul> <li> /// <para> /// All current generation instance types are created in Amazon VPC by default. /// </para> /// </li> <li> /// <para> /// Redis append-only files (AOF) are not supported for T1 or T2 instances. /// </para> /// </li> <li> /// <para> /// Redis Multi-AZ with automatic failover is not supported on T1 instances. /// </para> /// </li> <li> /// <para> /// Redis configuration variables <code>appendonly</code> and <code>appendfsync</code> /// are not supported on Redis version 2.8.22 and later. /// </para> /// </li> </ul> /// </summary> public string CacheNodeType { get { return this._cacheNodeType; } set { this._cacheNodeType = value; } } // Check to see if CacheNodeType property is set internal bool IsSetCacheNodeType() { return this._cacheNodeType != null; } /// <summary> /// Gets and sets the property CacheParameterGroupName. /// <para> /// The name of the parameter group to associate with this replication group. If this /// argument is omitted, the default cache parameter group for the specified engine is /// used. /// </para> /// <note> /// <para> /// If you are restoring to an engine version that is different than the original, you /// must specify the default version of that version. For example, <code>CacheParameterGroupName=default.redis4.0</code>. /// </para> /// </note> /// <para> /// If you are running Redis version 3.2.4 or later, only one node group (shard), and /// want to use a default parameter group, we recommend that you specify the parameter /// group by name. /// </para> /// <ul> <li> /// <para> /// To create a Redis (cluster mode disabled) replication group, use <code>CacheParameterGroupName=default.redis3.2</code>. /// </para> /// </li> <li> /// <para> /// To create a Redis (cluster mode enabled) replication group, use <code>CacheParameterGroupName=default.redis3.2.cluster.on</code>. /// </para> /// </li> </ul> /// </summary> public string CacheParameterGroupName { get { return this._cacheParameterGroupName; } set { this._cacheParameterGroupName = value; } } // Check to see if CacheParameterGroupName property is set internal bool IsSetCacheParameterGroupName() { return this._cacheParameterGroupName != null; } /// <summary> /// Gets and sets the property CacheSecurityGroupNames. /// <para> /// A list of cache security group names to associate with this replication group. /// </para> /// </summary> public List<string> CacheSecurityGroupNames { get { return this._cacheSecurityGroupNames; } set { this._cacheSecurityGroupNames = value; } } // Check to see if CacheSecurityGroupNames property is set internal bool IsSetCacheSecurityGroupNames() { return this._cacheSecurityGroupNames != null && this._cacheSecurityGroupNames.Count > 0; } /// <summary> /// Gets and sets the property CacheSubnetGroupName. /// <para> /// The name of the cache subnet group to be used for the replication group. /// </para> /// <important> /// <para> /// If you're going to launch your cluster in an Amazon VPC, you need to create a subnet /// group before you start creating a cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SubnetGroups.html">Subnets /// and Subnet Groups</a>. /// </para> /// </important> /// </summary> public string CacheSubnetGroupName { get { return this._cacheSubnetGroupName; } set { this._cacheSubnetGroupName = value; } } // Check to see if CacheSubnetGroupName property is set internal bool IsSetCacheSubnetGroupName() { return this._cacheSubnetGroupName != null; } /// <summary> /// Gets and sets the property Engine. /// <para> /// The name of the cache engine to be used for the clusters in this replication group. /// </para> /// </summary> public string Engine { get { return this._engine; } set { this._engine = value; } } // Check to see if Engine property is set internal bool IsSetEngine() { return this._engine != null; } /// <summary> /// Gets and sets the property EngineVersion. /// <para> /// The version number of the cache engine to be used for the clusters in this replication /// group. To view the supported cache engine versions, use the <code>DescribeCacheEngineVersions</code> /// operation. /// </para> /// /// <para> /// <b>Important:</b> You can upgrade to a newer engine version (see <a href="https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/SelectEngine.html#VersionManagement">Selecting /// a Cache Engine and Version</a>) in the <i>ElastiCache User Guide</i>, but you cannot /// downgrade to an earlier engine version. If you want to use an earlier engine version, /// you must delete the existing cluster or replication group and create it anew with /// the earlier engine version. /// </para> /// </summary> public string EngineVersion { get { return this._engineVersion; } set { this._engineVersion = value; } } // Check to see if EngineVersion property is set internal bool IsSetEngineVersion() { return this._engineVersion != null; } /// <summary> /// Gets and sets the property GlobalReplicationGroupId. /// <para> /// The name of the Global Datastore /// </para> /// </summary> public string GlobalReplicationGroupId { get { return this._globalReplicationGroupId; } set { this._globalReplicationGroupId = value; } } // Check to see if GlobalReplicationGroupId property is set internal bool IsSetGlobalReplicationGroupId() { return this._globalReplicationGroupId != null; } /// <summary> /// Gets and sets the property KmsKeyId. /// <para> /// The ID of the KMS key used to encrypt the disk in the cluster. /// </para> /// </summary> public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// <summary> /// Gets and sets the property NodeGroupConfiguration. /// <para> /// A list of node group (shard) configuration options. Each node group (shard) configuration /// has the following members: <code>PrimaryAvailabilityZone</code>, <code>ReplicaAvailabilityZones</code>, /// <code>ReplicaCount</code>, and <code>Slots</code>. /// </para> /// /// <para> /// If you're creating a Redis (cluster mode disabled) or a Redis (cluster mode enabled) /// replication group, you can use this parameter to individually configure each node /// group (shard), or you can omit this parameter. However, when seeding a Redis (cluster /// mode enabled) cluster from a S3 rdb file, you must configure each node group (shard) /// using this parameter because you must specify the slots for each node group. /// </para> /// </summary> public List<NodeGroupConfiguration> NodeGroupConfiguration { get { return this._nodeGroupConfiguration; } set { this._nodeGroupConfiguration = value; } } // Check to see if NodeGroupConfiguration property is set internal bool IsSetNodeGroupConfiguration() { return this._nodeGroupConfiguration != null && this._nodeGroupConfiguration.Count > 0; } /// <summary> /// Gets and sets the property NotificationTopicArn. /// <para> /// The Amazon Resource Name (ARN) of the Amazon Simple Notification Service (SNS) topic /// to which notifications are sent. /// </para> /// <note> /// <para> /// The Amazon SNS topic owner must be the same as the cluster owner. /// </para> /// </note> /// </summary> public string NotificationTopicArn { get { return this._notificationTopicArn; } set { this._notificationTopicArn = value; } } // Check to see if NotificationTopicArn property is set internal bool IsSetNotificationTopicArn() { return this._notificationTopicArn != null; } /// <summary> /// Gets and sets the property NumCacheClusters. /// <para> /// The number of clusters this replication group initially has. /// </para> /// /// <para> /// This parameter is not used if there is more than one node group (shard). You should /// use <code>ReplicasPerNodeGroup</code> instead. /// </para> /// /// <para> /// If <code>AutomaticFailoverEnabled</code> is <code>true</code>, the value of this parameter /// must be at least 2. If <code>AutomaticFailoverEnabled</code> is <code>false</code> /// you can omit this parameter (it will default to 1), or you can explicitly set it to /// a value between 2 and 6. /// </para> /// /// <para> /// The maximum permitted value for <code>NumCacheClusters</code> is 6 (1 primary plus /// 5 replicas). /// </para> /// </summary> public int NumCacheClusters { get { return this._numCacheClusters.GetValueOrDefault(); } set { this._numCacheClusters = value; } } // Check to see if NumCacheClusters property is set internal bool IsSetNumCacheClusters() { return this._numCacheClusters.HasValue; } /// <summary> /// Gets and sets the property NumNodeGroups. /// <para> /// An optional parameter that specifies the number of node groups (shards) for this Redis /// (cluster mode enabled) replication group. For Redis (cluster mode disabled) either /// omit this parameter or set it to 1. /// </para> /// /// <para> /// Default: 1 /// </para> /// </summary> public int NumNodeGroups { get { return this._numNodeGroups.GetValueOrDefault(); } set { this._numNodeGroups = value; } } // Check to see if NumNodeGroups property is set internal bool IsSetNumNodeGroups() { return this._numNodeGroups.HasValue; } /// <summary> /// Gets and sets the property Port. /// <para> /// The port number on which each member of the replication group accepts connections. /// </para> /// </summary> public int Port { get { return this._port.GetValueOrDefault(); } set { this._port = value; } } // Check to see if Port property is set internal bool IsSetPort() { return this._port.HasValue; } /// <summary> /// Gets and sets the property PreferredCacheClusterAZs. /// <para> /// A list of EC2 Availability Zones in which the replication group's clusters are created. /// The order of the Availability Zones in the list is the order in which clusters are /// allocated. The primary cluster is created in the first AZ in the list. /// </para> /// /// <para> /// This parameter is not used if there is more than one node group (shard). You should /// use <code>NodeGroupConfiguration</code> instead. /// </para> /// <note> /// <para> /// If you are creating your replication group in an Amazon VPC (recommended), you can /// only locate clusters in Availability Zones associated with the subnets in the selected /// subnet group. /// </para> /// /// <para> /// The number of Availability Zones listed must equal the value of <code>NumCacheClusters</code>. /// </para> /// </note> /// <para> /// Default: system chosen Availability Zones. /// </para> /// </summary> public List<string> PreferredCacheClusterAZs { get { return this._preferredCacheClusterAZs; } set { this._preferredCacheClusterAZs = value; } } // Check to see if PreferredCacheClusterAZs property is set internal bool IsSetPreferredCacheClusterAZs() { return this._preferredCacheClusterAZs != null && this._preferredCacheClusterAZs.Count > 0; } /// <summary> /// Gets and sets the property PreferredMaintenanceWindow. /// <para> /// Specifies the weekly time range during which maintenance on the cluster is performed. /// It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). /// The minimum maintenance window is a 60 minute period. Valid values for <code>ddd</code> /// are: /// </para> /// /// <para> /// Specifies the weekly time range during which maintenance on the cluster is performed. /// It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). /// The minimum maintenance window is a 60 minute period. /// </para> /// /// <para> /// Valid values for <code>ddd</code> are: /// </para> /// <ul> <li> /// <para> /// <code>sun</code> /// </para> /// </li> <li> /// <para> /// <code>mon</code> /// </para> /// </li> <li> /// <para> /// <code>tue</code> /// </para> /// </li> <li> /// <para> /// <code>wed</code> /// </para> /// </li> <li> /// <para> /// <code>thu</code> /// </para> /// </li> <li> /// <para> /// <code>fri</code> /// </para> /// </li> <li> /// <para> /// <code>sat</code> /// </para> /// </li> </ul> /// <para> /// Example: <code>sun:23:00-mon:01:30</code> /// </para> /// </summary> public string PreferredMaintenanceWindow { get { return this._preferredMaintenanceWindow; } set { this._preferredMaintenanceWindow = value; } } // Check to see if PreferredMaintenanceWindow property is set internal bool IsSetPreferredMaintenanceWindow() { return this._preferredMaintenanceWindow != null; } /// <summary> /// Gets and sets the property PrimaryClusterId. /// <para> /// The identifier of the cluster that serves as the primary for this replication group. /// This cluster must already exist and have a status of <code>available</code>. /// </para> /// /// <para> /// This parameter is not required if <code>NumCacheClusters</code>, <code>NumNodeGroups</code>, /// or <code>ReplicasPerNodeGroup</code> is specified. /// </para> /// </summary> public string PrimaryClusterId { get { return this._primaryClusterId; } set { this._primaryClusterId = value; } } // Check to see if PrimaryClusterId property is set internal bool IsSetPrimaryClusterId() { return this._primaryClusterId != null; } /// <summary> /// Gets and sets the property ReplicasPerNodeGroup. /// <para> /// An optional parameter that specifies the number of replica nodes in each node group /// (shard). Valid values are 0 to 5. /// </para> /// </summary> public int ReplicasPerNodeGroup { get { return this._replicasPerNodeGroup.GetValueOrDefault(); } set { this._replicasPerNodeGroup = value; } } // Check to see if ReplicasPerNodeGroup property is set internal bool IsSetReplicasPerNodeGroup() { return this._replicasPerNodeGroup.HasValue; } /// <summary> /// Gets and sets the property ReplicationGroupDescription. /// <para> /// A user-created description for the replication group. /// </para> /// </summary> [AWSProperty(Required=true)] public string ReplicationGroupDescription { get { return this._replicationGroupDescription; } set { this._replicationGroupDescription = value; } } // Check to see if ReplicationGroupDescription property is set internal bool IsSetReplicationGroupDescription() { return this._replicationGroupDescription != null; } /// <summary> /// Gets and sets the property ReplicationGroupId. /// <para> /// The replication group identifier. This parameter is stored as a lowercase string. /// </para> /// /// <para> /// Constraints: /// </para> /// <ul> <li> /// <para> /// A name must contain from 1 to 40 alphanumeric characters or hyphens. /// </para> /// </li> <li> /// <para> /// The first character must be a letter. /// </para> /// </li> <li> /// <para> /// A name cannot end with a hyphen or contain two consecutive hyphens. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public string ReplicationGroupId { get { return this._replicationGroupId; } set { this._replicationGroupId = value; } } // Check to see if ReplicationGroupId property is set internal bool IsSetReplicationGroupId() { return this._replicationGroupId != null; } /// <summary> /// Gets and sets the property SecurityGroupIds. /// <para> /// One or more Amazon VPC security groups associated with this replication group. /// </para> /// /// <para> /// Use this parameter only when you are creating a replication group in an Amazon Virtual /// Private Cloud (Amazon VPC). /// </para> /// </summary> public List<string> SecurityGroupIds { get { return this._securityGroupIds; } set { this._securityGroupIds = value; } } // Check to see if SecurityGroupIds property is set internal bool IsSetSecurityGroupIds() { return this._securityGroupIds != null && this._securityGroupIds.Count > 0; } /// <summary> /// Gets and sets the property SnapshotArns. /// <para> /// A list of Amazon Resource Names (ARN) that uniquely identify the Redis RDB snapshot /// files stored in Amazon S3. The snapshot files are used to populate the new replication /// group. The Amazon S3 object name in the ARN cannot contain any commas. The new replication /// group will have the number of node groups (console: shards) specified by the parameter /// <i>NumNodeGroups</i> or the number of node groups configured by <i>NodeGroupConfiguration</i> /// regardless of the number of ARNs specified here. /// </para> /// /// <para> /// Example of an Amazon S3 ARN: <code>arn:aws:s3:::my_bucket/snapshot1.rdb</code> /// </para> /// </summary> public List<string> SnapshotArns { get { return this._snapshotArns; } set { this._snapshotArns = value; } } // Check to see if SnapshotArns property is set internal bool IsSetSnapshotArns() { return this._snapshotArns != null && this._snapshotArns.Count > 0; } /// <summary> /// Gets and sets the property SnapshotName. /// <para> /// The name of a snapshot from which to restore data into the new replication group. /// The snapshot status changes to <code>restoring</code> while the new replication group /// is being created. /// </para> /// </summary> public string SnapshotName { get { return this._snapshotName; } set { this._snapshotName = value; } } // Check to see if SnapshotName property is set internal bool IsSetSnapshotName() { return this._snapshotName != null; } /// <summary> /// Gets and sets the property SnapshotRetentionLimit. /// <para> /// The number of days for which ElastiCache retains automatic snapshots before deleting /// them. For example, if you set <code>SnapshotRetentionLimit</code> to 5, a snapshot /// that was taken today is retained for 5 days before being deleted. /// </para> /// /// <para> /// Default: 0 (i.e., automatic backups are disabled for this cluster). /// </para> /// </summary> public int SnapshotRetentionLimit { get { return this._snapshotRetentionLimit.GetValueOrDefault(); } set { this._snapshotRetentionLimit = value; } } // Check to see if SnapshotRetentionLimit property is set internal bool IsSetSnapshotRetentionLimit() { return this._snapshotRetentionLimit.HasValue; } /// <summary> /// Gets and sets the property SnapshotWindow. /// <para> /// The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot /// of your node group (shard). /// </para> /// /// <para> /// Example: <code>05:00-09:00</code> /// </para> /// /// <para> /// If you do not specify this parameter, ElastiCache automatically chooses an appropriate /// time range. /// </para> /// </summary> public string SnapshotWindow { get { return this._snapshotWindow; } set { this._snapshotWindow = value; } } // Check to see if SnapshotWindow property is set internal bool IsSetSnapshotWindow() { return this._snapshotWindow != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A list of cost allocation tags to be added to this resource. Tags are comma-separated /// key,value pairs (e.g. Key=<code>myKey</code>, Value=<code>myKeyValue</code>. You can /// include multiple tags as shown following: Key=<code>myKey</code>, Value=<code>myKeyValue</code> /// Key=<code>mySecondKey</code>, Value=<code>mySecondKeyValue</code>. /// </para> /// </summary> public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TransitEncryptionEnabled. /// <para> /// A flag that enables in-transit encryption when set to <code>true</code>. /// </para> /// /// <para> /// You cannot modify the value of <code>TransitEncryptionEnabled</code> after the cluster /// is created. To enable in-transit encryption on a cluster you must set <code>TransitEncryptionEnabled</code> /// to <code>true</code> when you create a cluster. /// </para> /// /// <para> /// This parameter is valid only if the <code>Engine</code> parameter is <code>redis</code>, /// the <code>EngineVersion</code> parameter is <code>3.2.6</code>, <code>4.x</code> or /// later, and the cluster is being created in an Amazon VPC. /// </para> /// /// <para> /// If you enable in-transit encryption, you must also specify a value for <code>CacheSubnetGroup</code>. /// </para> /// /// <para> /// <b>Required:</b> Only available when creating a replication group in an Amazon VPC /// using redis version <code>3.2.6</code>, <code>4.x</code> or later. /// </para> /// /// <para> /// Default: <code>false</code> /// </para> /// <important> /// <para> /// For HIPAA compliance, you must specify <code>TransitEncryptionEnabled</code> as <code>true</code>, /// an <code>AuthToken</code>, and a <code>CacheSubnetGroup</code>. /// </para> /// </important> /// </summary> public bool TransitEncryptionEnabled { get { return this._transitEncryptionEnabled.GetValueOrDefault(); } set { this._transitEncryptionEnabled = value; } } // Check to see if TransitEncryptionEnabled property is set internal bool IsSetTransitEncryptionEnabled() { return this._transitEncryptionEnabled.HasValue; } } }
37.589104
193
0.555233
[ "Apache-2.0" ]
playstudios/aws-sdk-net
sdk/src/Services/ElastiCache/Generated/Model/CreateReplicationGroupRequest.cs
40,709
C#
using Newtonsoft.Json; using Okex.Net.Converters; using Okex.Net.Enums; using System; namespace Okex.Net.RestObjects.Funding { public class OkexWithdrawalHistory { [JsonProperty("ts"), JsonConverter(typeof(OkexTimestampConverter))] public DateTime Time { get; set; } [JsonProperty("wdId")] public long WithdrawalId { get; set; } [JsonProperty("state"), JsonConverter(typeof(WithdrawalStateConverter))] public OkexWithdrawalState State { get; set; } [JsonProperty("ccy")] public string Currency { get; set; } [JsonProperty("chain")] public string Chain { get; set; } [JsonProperty("txId")] public string TransactionId { get; set; } [JsonProperty("from")] public string From { get; set; } [JsonProperty("to")] public string To { get; set; } [JsonProperty("fee")] public decimal Fee { get; set; } [JsonProperty("amt")] public decimal Amount { get; set; } } }
25.95
80
0.6079
[ "MIT" ]
EricGarnier/OKEx.Net
Okex.Net/RestObjects/Funding/OkexWithdrawalHistory.cs
1,040
C#
using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Metadata.Ecma335; using System.Threading.Tasks; namespace dotnet_rpg.Models { public class CharacterSkill { public int CharacterId { get; set; } public Character Character { get; set; } public int SkillId { get; set; } public Skill Skill { get; set; } } }
23.117647
48
0.676845
[ "MIT" ]
kmaodus/dotnet-rpg
Models/CharacterSkill.cs
395
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class CompleteLevel : MonoBehaviour { public string menuSceneName = "MainMenu"; public string nextLevel = "Level02"; public int LevelToReached = 2; public SceneFader sceneFader; public void Continue() { PlayerPrefs.SetInt("levelReached", LevelToReached); sceneFader.FadeTo(nextLevel); } public void Menu() { sceneFader.FadeTo(menuSceneName); } }
19.346154
59
0.683897
[ "MIT" ]
vabyz971/Tower-Defense
Assets/Script/Manager/CompleteLevel.cs
505
C#
//using MongoDB.Bson; //using MongoDB.Driver; //using MongoDB.Driver.Linq; //using Resonance.Common; //using Resonance.Data.Models; //using System; //using System.Collections.Generic; //using System.Linq; //using System.Linq.Expressions; //using System.Text.RegularExpressions; //using System.Threading; //using System.Threading.Tasks; //namespace Resonance.Data.Storage.MongoDB //{ // public class MetadataRepository : IMetadataRepository // { // public static readonly Dictionary<Type, string> CollectionLookup = new Dictionary<Type, string> // { // {typeof(Album), DatabaseConstants.Albums }, // {typeof(Artist), DatabaseConstants.Artists }, // {typeof(Genre), DatabaseConstants.Genres }, // {typeof(Track), DatabaseConstants.Tracks }, // {typeof(User), DatabaseConstants.Configuration }, // {typeof(Disposition), DatabaseConstants.Disposition }, // {typeof(Playback), DatabaseConstants.Playback }, // {typeof(Chat), DatabaseConstants.Chat }, // {typeof(MediaInfo), DatabaseConstants.MediaInfo } // }; // private readonly MongoClient _client; // private readonly string _port; // private readonly string _server; // public MetadataRepository(string server, string port) // { // _server = server; // _port = port; // _client = new MongoClient(Uri); // } // private string Uri => string.Format("mongodb://{0}:{1}", _server, _port); // public Task AddChatAsync(Chat chat, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task AddCollectionAsync(Collection collection, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task AddPlaybackAsync(Playback playback, CancellationToken cancellationToken) // { // await InsertPlaybackAsync(playback, cancellationToken); // } // public Task AddPlaylistAsync(Playlist playlist, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task AddSettingAsync<T>(T type, CancellationToken cancellationToken) where T : SettingBase // { // var resultList = await GetSettingsAsync<T>(cancellationToken); // if (resultList.Contains(type)) // { // return; // } // await InsertOrUpdateSettingAsync(type, cancellationToken); // } // public Task AddUserAsync(User user, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public void BeginTransactionAsync(CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task ClearCollectionAsync<T>(Guid? collectionId, CancellationToken cancellationToken) where T : ModelBase, ICollectionIdentifier // { // var db = _client.GetDatabase(DatabaseConstants.Database); // var objectType = typeof(T); // if (CollectionLookup.ContainsKey(objectType)) // { // var collectionName = CollectionLookup[objectType]; // await db.DropCollectionAsync(collectionName, cancellationToken); // await db.CreateCollectionAsync(collectionName, null, cancellationToken); // var collection = db.GetCollection<T>(collectionName); // await CreateIndexesAsync(collection, cancellationToken); // } // } // public Task DeletePlaylistAsync(Guid id, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeletePlaylistTracksAsync(Guid id, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeletePlayQueueAsync(Guid userId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeletePlayQueueTracksAsync(Guid playQueueId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeleteTrackReferencesAsync(Track track, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeleteUserAsync(Guid userId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public void EndTransactionAsync(bool commit, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<MediaBundle<Album>> GetAlbumAsync(Guid userId, Guid id, bool populate, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var filter = Builders<Album>.Filter.Eq(t => t.Id, id); // var result = await collection.FindAsync(filter, null, cancellationToken); // var albumTracks = await GetTracksAsync(id, cancellationToken); // var album = await result.FirstOrDefaultAsync(cancellationToken); // foreach (var track in albumTracks) // { // album.AddTrack(track); // } // return album; // } // public async Task<MediaBundle<Album>> GetAlbumAsync(Guid userId, HashSet<Artist> artists, string name, Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var filter = Builders<Album>.Filter.Eq(a => a.Name, name); // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // foreach (var album in await result.ToListAsync(cancellationToken)) // { // if (album.Artists != null) // { // if (album.Artists.SequenceEqual(artists)) // { // var albumTracks = await GetTracksAsync(album.Id, cancellationToken); // foreach (var track in albumTracks) // { // album.AddTrack(track); // } // return album; // } // } // } // return null; // } // public async Task<IEnumerable<MediaBundle<Album>>> GetAlbumsAsync(Guid userId, Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var filter = Builders<Album>.Filter.Empty; // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // var albums = await result.ToListAsync(cancellationToken); // var albumResult = new List<Album>(albums.Count); // foreach (var album in albums) // { // var albumTracks = await GetTracksAsync(album.Id, cancellationToken); // foreach (var track in albumTracks) // { // album.AddTrack(track); // } // albumResult.Add(album); // } // return albumResult; // } // public async Task<IEnumerable<MediaBundle<Album>>> GetAlbumsByArtistAsync(Guid userId, Guid artistId, bool populate, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var artist = await GetArtistAsync(artistId, cancellationToken); // var tracks = await GetTracksByArtistAsync(artistId, cancellationToken); // var artistTrackAlbums = tracks.Select(a => a.Album.Id); // var filter = Builders<Album>.Filter.Where(a => a.Artists.Contains(artist) || artistTrackAlbums.Contains(a.Id)); // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // var albums = await result.ToListAsync(cancellationToken); // var albumResult = new List<Album>(albums.Count); // foreach (var album in albums) // { // var albumTracks = await GetTracksAsync(album.Id, cancellationToken); // foreach (var track in albumTracks) // { // album.AddTrack(track); // } // albumResult.Add(album); // } // return albumResult; // } // public Task<IEnumerable<MediaBundle<Album>>> GetAlbumsByGenreAsync(Guid userId, Guid genreId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetAlbumsByGenreAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var results = await collection.AsQueryable().Where(predicate).OrderBy(a => a.ReleaseDate).OrderBy(a => a.Name).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public async Task<IEnumerable<Album>> GetAlbumsByYearAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var results = await collection.AsQueryable().Where(predicate).OrderBy(a => a.ReleaseDate).OrderBy(a => a.Name).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public Task<IEnumerable<MediaBundle<Album>>> GetAlphabeticalAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetAlphabeticalAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var results = await collection.AsQueryable().Where(predicate).OrderBy(a => a.ReleaseDate).OrderByDescending(a => a.Name).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public Task<IEnumerable<MediaBundle<Album>>> GetAlphabeticalByArtistAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetAlphabeticalByArtistAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var results = await collection.AsQueryable().Where(predicate).OrderBy(a => a.ReleaseDate).OrderByDescending(a => a.Name).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public async Task<MediaBundle<Artist>> GetArtistAsync(Guid userId, Guid id, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Artist>(DatabaseConstants.Artists, cancellationToken); // var filter = Builders<Artist>.Filter.Eq(a => a.Id, id); // var result = await collection.FindAsync(filter, null, cancellationToken); // return await result.FirstOrDefaultAsync(cancellationToken); // } // public async Task<MediaBundle<Artist>> GetArtistAsync(Guid userId, string artist, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Artist>(DatabaseConstants.Artists, cancellationToken); // var filter = Builders<Artist>.Filter.Eq(a => a.Name, artist); // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // return await result.FirstOrDefaultAsync(cancellationToken); // } // public async Task<IEnumerable<KeyValuePair<Artist, Disposition>>> GetArtistsAsync(Guid userId, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Artist>(DatabaseConstants.Artists, cancellationToken); // var dispositionCollection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // var query = from a in collection.AsQueryable() select a; // if (collectionId.HasValue) // { // query = query.Where(a => a.CollectionId == collectionId); // } // var query2 = from a in query // join d in dispositionCollection on // a.Id equals d.MediaId // into joined // select new { Key = a, Value = joined }; // var test = query2.ToEnumerable(cancellationToken); // var results = new List<KeyValuePair<Artist, Disposition>>(test.Count()); // foreach (var t in test) // { // var artist = t.Key; // var disposition = t.Value.FirstOrDefault(d => d.UserId == userId); // results.Add(new KeyValuePair<Artist, Disposition>(artist, disposition)); // } // return results; // //var filter = Builders<Artist>.Filter.Empty; // //filter = UpdateCollectionFilter(filter, collectionId); // //var result = await collection.FindAsync(filter, null, cancellationToken); // //return result.ToEnumerable(); // } // public Task<IEnumerable<MediaBundle<Artist>>> GetArtistsByAlbumAsync(Guid userId, Guid albumId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Artist>>> GetArtistsByTrackAsync(Guid userId, Guid trackId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<double?> GetAverageRatingAsync(Guid mediaId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // return await collection.AsQueryable().Where(d => d.MediaId == mediaId).AverageAsync(d => d.UserRating); // } // public Task<IEnumerable<Chat>> GetChatAsync(DateTime? since, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<Collection>> GetCollectionsAsync(CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<Disposition> GetDispositionAsync(Guid userId, Guid mediaId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // return await collection.AsQueryable().Where(d => d.UserId == userId && d.MediaId == mediaId).FirstOrDefaultAsync(cancellationToken); // } // public async Task<IEnumerable<Disposition>> GetDispositionsAsync(Guid userId, DispositionType dispositionType, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // return await collection.AsQueryable().Where(d => d.UserId == userId && d.DispositionType == dispositionType).ToListAsync(cancellationToken); // } // public Task<DispositionType?> GetDispositionTypeAsync(Guid mediaId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<T>>> GetFavorited<T>(Guid userId, Guid? collectionId, bool populate, CancellationToken cancellationToken) where T : MediaBase, ISearchable, ICollectionIdentifier // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Album>>> GetFavoritedAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetFavoritedAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var dispositionCollection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // var dispositions = dispositionCollection.AsQueryable().Where(d => d.UserId == userId && d.DispositionType == DispositionType.Album && d.Favorited.HasValue); // predicate.And(a => dispositions.Select(d => d.MediaId).Contains(a.Id)); // var results = await collection.AsQueryable().Where(predicate).OrderByDescending(a => a.Name).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public async Task<Genre> GetGenreAsync(string genre, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Genre>(DatabaseConstants.Genres, cancellationToken); // var filter = Builders<Genre>.Filter.Eq(g => g.Name, genre); // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // return await result.FirstOrDefaultAsync(cancellationToken); // } // public Task<Dictionary<string, Tuple<int, int>>> GetGenreCountsAsync(Guid? collectionId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Genre>> GetGenresAsync(Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Genre>(DatabaseConstants.Genres, cancellationToken); // var filter = Builders<Genre>.Filter.Empty; // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // return result.ToEnumerable(); // } // public Task<IEnumerable<Genre>> GetGenresByTrackAsync(Guid trackId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<MediaInfo> GetMediaInfoAsync(Guid mediaId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Album>>> GetMostPlayedAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Album>>> GetMostRecentlyPlayedAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Album>>> GetNewestAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetNewestAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = await GetAlbumPredicateAsync(genre, fromYear, toYear, collectionId, cancellationToken); // var results = await collection.AsQueryable().Where(predicate).OrderByDescending(a => a.DateAdded).Skip(offset).Take(size).ToListAsync(cancellationToken); // return await PopulateAlbumTracks(results, cancellationToken); // } // public Task<Playlist> GetPlaylistAsync(Guid userId, Guid id, bool getTracks, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<List<Playlist>> GetPlaylistsAsync(Guid userId, string username, bool getTracks, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<PlayQueue> GetPlayQueueAsync(Guid userId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Album>>> GetRandomAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, // Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Album>> GetRandomAlbumsAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var predicate = PredicateBuilder.True<Album>(); // var filter = Builders<Album>.Filter.Empty; // if (!string.IsNullOrWhiteSpace(genre)) // { // var filterGenre = await GetGenreAsync(genre, collectionId, cancellationToken); // if (filterGenre != null) // { // filter = filter & Builders<Album>.Filter.Where(a => a.Genres.Contains(filterGenre)); // predicate = predicate.And(a => a.Genres.Contains(filterGenre)); // } // } // if (fromYear.HasValue) // { // filter = filter & Builders<Album>.Filter.Where(a => a.ReleaseDate >= fromYear.Value); // predicate = predicate.And(a => a.ReleaseDate >= fromYear.Value); // } // if (toYear.HasValue) // { // filter = filter & Builders<Album>.Filter.Where(a => a.ReleaseDate <= toYear.Value); // predicate = predicate.And(a => a.ReleaseDate <= toYear.Value); // } // predicate = UpdatePredicate(predicate, collectionId); // var filteredResults = collection.AsQueryable().Where(predicate).Select(a => new { id = Guid.NewGuid(), a }).Select(a => (Album)a.a); // var results = await filteredResults.ToListAsync(cancellationToken); // var albums = new List<Album>(); // foreach (var r in results) // { // var albumTracks = await GetTracksAsync(r.Id, cancellationToken); // foreach (var track in albumTracks) // { // r.AddTrack(track); // } // albums.Add(r); // } // return albums; // } // public async Task<IEnumerable<Track>> GetRandomTracksAsync(int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var filter = Builders<Track>.Filter.Empty; // if (!string.IsNullOrWhiteSpace(genre)) // { // var filterGenre = await GetGenreAsync(genre, collectionId, cancellationToken); // if (filterGenre != null) // { // filter = filter & Builders<Track>.Filter.Where(t => t.Genres.Contains(filterGenre)); // } // } // if (fromYear > 0) // { // filter = filter & Builders<Track>.Filter.Where(t => t.ReleaseDate >= fromYear); // } // if (toYear > 0) // { // filter = filter & Builders<Track>.Filter.Where(t => t.ReleaseDate <= toYear); // } // filter = UpdateCollectionFilter(filter, collectionId); // var findOptions = new FindOptions<Track, Track> // { // Limit = size, // Skip = offset // }; // var result = await collection.FindAsync(filter, findOptions, cancellationToken); // var list = await result.ToListAsync(cancellationToken); // var tracks = list.OrderBy(t => Guid.NewGuid()); // return tracks; // } // public Task<IEnumerable<MediaBundle<Track>>> GetRecentPlaybackAsync(Guid userId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<MediaBundle<Track>>> GetRecentPlaybackAsync(CancellationToken cancellationToken) // { // var playbackCollection = await GetCollectionAsync<Playback>(DatabaseConstants.Playback, cancellationToken); // var dispositionCollection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // var mediaCollection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var lookup = DateTime.UtcNow.AddHours(-4); // var playbackFilter = Builders<Playback>.Filter.Gte(new StringFieldDefinition<Playback, BsonDateTime>("PlaybackDateTime"), new BsonDateTime(lookup)); // var playbackResults = await playbackCollection.FindAsync<Playback>(playbackFilter, null, cancellationToken); // var playbackEnumerable = await playbackResults.ToListAsync(cancellationToken); // var trackFilter = Builders<Track>.Filter.In(new StringFieldDefinition<Track, Guid>("Id"), playbackEnumerable.Select(t => t.TrackId)); // var trackResults = await mediaCollection.FindAsync<Track>(trackFilter, null, cancellationToken); // var trackEnumerable = await trackResults.ToListAsync(cancellationToken); // var dispositionFilter = Builders<Disposition>.Filter.In(new StringFieldDefinition<Disposition, Guid>("MediaId"), playbackEnumerable.Select(t => t.TrackId)); // var dispositionResults = await dispositionCollection.FindAsync<Disposition>(dispositionFilter, null, cancellationToken); // var dispositionEnumerable = await dispositionResults.ToListAsync(cancellationToken); // var mediaBundles = new List<MediaBundle<Track>>(); // foreach (var playback in playbackEnumerable) // { // var mediaBundle = new MediaBundle<Track>(); // mediaBundle.Playback = playback; // mediaBundle.Dispositions = dispositionEnumerable.Where(d => d.MediaId == playback.TrackId); // mediaBundle.Media = trackEnumerable.First(t => t.Id == playback.TrackId); // mediaBundles.Add(mediaBundle); // } // return mediaBundles; // } // public Task<IEnumerable<Role>> GetRolesForUserAsync(Guid userId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<T>> GetSettingsAsync<T>(CancellationToken cancellationToken) where T : SettingBase // { // var collection = await GetCollectionAsync<SettingBase>(DatabaseConstants.Configuration, cancellationToken); // var filter = Builders<SettingBase>.Filter.Where(s => true); // var result = await collection.FindAsync<SettingBase>(filter, null, cancellationToken); // var settings = new List<T>(); // foreach (var r in await result.ToListAsync(cancellationToken)) // { // if (r.GetType() == typeof(T)) // { // settings.Add((T)r); // } // } // return settings; // } // public Task<MediaBundle<Track>> GetTrackAsync(Guid userId, string artist, string track, Guid? collectionId, bool populate, // CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<MediaBundle<Track>> GetTrackAsync(Guid userId, string path, Guid? collectionId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<MediaBundle<Track>> GetTrackAsync(Guid userId, Guid id, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<Track> GetTrackAsync(Guid id, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var filter = Builders<Track>.Filter.Eq(t => t.Id, id); // var result = await collection.FindAsync(filter, null, cancellationToken); // return await result.FirstOrDefaultAsync(cancellationToken); // } // public async Task<Track> GetTrackAsync(string path, Guid? collectionId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var filter = Builders<Track>.Filter.Eq(t => t.FileMetadata.Path, path); // filter = UpdateCollectionFilter(filter, collectionId); // var result = await collection.FindAsync(filter, null, cancellationToken); // return await result.FirstOrDefaultAsync(cancellationToken); // } // public Task<IEnumerable<MediaBundle<Track>>> GetTracksAsync(Guid userId, int size, int offset, string genre, int? fromYear, int? toYear, Guid? collectionId, // bool populate, bool randomize, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<Track>>> GetTracksAsync(Guid userId, Guid? collectionId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Track>> GetTracksAsync(Guid albumId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var filter = Builders<Track>.Filter.Eq(t => t.Album.Id, albumId); // var result = await collection.FindAsync(filter, null, cancellationToken); // return result.ToEnumerable().OrderBy(t => t.FileMetadata.Path); // } // public Task<IEnumerable<MediaBundle<Track>>> GetTracksByAlbumAsync(Guid userId, Guid albumId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<Track>> GetTracksByArtistAsync(Guid artistId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var artist = await GetArtistAsync(artistId, cancellationToken); // var filter = Builders<Track>.Filter.Where(t => t.Artists.Contains(artist)); // var result = await collection.FindAsync(filter, null, cancellationToken); // return result.ToEnumerable().OrderBy(t => t.FileMetadata.Path); // } // public Task<IEnumerable<MediaBundle<Track>>> GetTracksByGenreAsync(Guid userId, Guid genreId, bool populate, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task<User> GetUserAsync(string username, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<SettingBase>(DatabaseConstants.Configuration, cancellationToken); // var filter = Builders<SettingBase>.Filter.Where(s => true); // var result = await collection.FindAsync<SettingBase>(filter, null, cancellationToken); // foreach (var r in await result.ToListAsync(cancellationToken)) // { // if (r.GetType() == typeof(User)) // { // var user = (User)r; // if (user.Name == username) // { // return user; // } // } // } // return null; // } // public async Task<User> GetUserAsync(Guid userId, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<SettingBase>(DatabaseConstants.Configuration, cancellationToken); // var filter = Builders<SettingBase>.Filter.Empty; // var result = await collection.FindAsync<SettingBase>(filter, null, cancellationToken); // foreach (var r in await result.ToListAsync(cancellationToken)) // { // if (r.GetType() == typeof(User)) // { // var user = (User)r; // if (user.Id == userId) // { // return user; // } // } // } // return null; // } // public Task<IEnumerable<User>> GetUsersAsync(CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // Task<IEnumerable<MediaBundle<Artist>>> IMetadataRepository.GetArtistsAsync(Guid userId, Guid? collectionId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task InsertOrUpdateAlbumAsync(Album album, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Album>(DatabaseConstants.Albums, cancellationToken); // var filter = Builders<Album>.Filter.Eq(a => a.Id, album.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, album, updateOptions, cancellationToken); // } // public async Task InsertOrUpdateArtistAsync(Artist artist, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Artist>(DatabaseConstants.Artists, cancellationToken); // var filter = Builders<Artist>.Filter.Eq(a => a.Id, artist.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, artist, updateOptions, cancellationToken); // } // public Task InsertOrUpdateCollectionAsync(Collection collection, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task InsertOrUpdateDispositionAsync(Disposition disposition, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Disposition>(DatabaseConstants.Disposition, cancellationToken); // var filter = Builders<Disposition>.Filter.Eq(d => d.Id, disposition.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, disposition, updateOptions, cancellationToken); // } // public Task InsertOrUpdateFileInfoAsync(Track track, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task InsertOrUpdateGenreAsync(Genre genre, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Genre>(DatabaseConstants.Genres, cancellationToken); // var filter = Builders<Genre>.Filter.Eq(g => g.Id, genre.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, genre, updateOptions, cancellationToken); // } // public Task InsertOrUpdateMediaInfoAsync(MediaInfo mediaInfo, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task InsertOrUpdatePlaylistAsync(Playlist playlist, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task InsertOrUpdatePlaylistTrackAsync(Guid playlistId, Guid trackId, int position, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task InsertOrUpdatePlayQueueAsync(PlayQueue playQueue, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task InsertOrUpdatePlayQueueTrackAsync(Guid playQueueId, Guid trackId, int position, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task InsertOrUpdateSettingAsync<T>(T type, CancellationToken cancellationToken) where T : SettingBase // { // var collection = await GetCollectionAsync<SettingBase>(DatabaseConstants.Configuration, cancellationToken); // var filter = Builders<SettingBase>.Filter.Eq(s => s.Id, type.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, type, updateOptions, cancellationToken); // } // public async Task InsertOrUpdateTrackAsync(Track track, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Track>(DatabaseConstants.Tracks, cancellationToken); // var filter = Builders<Track>.Filter.Eq(t => t.Id, track.Id); // var updateOptions = new UpdateOptions // { // IsUpsert = true // }; // await collection.ReplaceOneAsync(filter, track, updateOptions, cancellationToken); // } // public Task InsertOrUpdateUserAsync(User type, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task InsertPlaybackAsync(Playback playback, CancellationToken cancellationToken) // { // var collection = await GetCollectionAsync<Playback>(DatabaseConstants.Playback, cancellationToken); // await collection.InsertOneAsync(playback, null, cancellationToken); // } // public Task RemoveCollectionAsync(Collection collection, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public async Task RemoveSettingAsync<T>(T type, CancellationToken cancellationToken) where T : SettingBase // { // var collection = await GetCollectionAsync<SettingBase>(DatabaseConstants.Configuration, cancellationToken); // var filter = Builders<SettingBase>.Filter.Eq(s => s.Id, type.Id); // await collection.DeleteOneAsync(filter, cancellationToken); // } // public Task RemoveUserAsync(User user, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<T>>> SearchAsync<T>(Guid userId, string query, int size, int offset, Guid? collectionId, bool populate, // CancellationToken cancellationToken) where T : MediaBase, ISearchable, ICollectionIdentifier // { // throw new NotImplementedException(); // } // public async Task<IEnumerable<T>> SearchAsync<T>(string query, int size, int offset, Guid? collectionId, CancellationToken cancellationToken) where T : ISearchable, ICollectionIdentifier // { // var genericType = typeof(T); // IMongoCollection<T> collection = null; // if (genericType == typeof(Artist)) // { // collection = await GetCollectionAsync<T>(DatabaseConstants.Artists, cancellationToken); // } // else if (genericType == typeof(Album)) // { // collection = await GetCollectionAsync<T>(DatabaseConstants.Albums, cancellationToken); // } // else if (genericType == typeof(Track)) // { // collection = await GetCollectionAsync<T>(DatabaseConstants.Tracks, cancellationToken); // } // if (collection == null) // { // return null; // } // var filter = Builders<T>.Filter.Empty; // if (!string.IsNullOrWhiteSpace(query)) // { // var escapedQuery = Regex.Escape(query).Replace(@"\*", string.Empty).Replace(@"\?", "."); // var regex = new Regex(escapedQuery, RegexOptions.IgnoreCase | RegexOptions.CultureInvariant); // filter = filter & Builders<T>.Filter.Where(t => regex.IsMatch(t.Name)); // } // filter = UpdateCollectionFilter(filter, collectionId); // var findOptions = new FindOptions<T, T> // { // Limit = size, // Skip = offset // }; // var result = await collection.FindAsync(filter, findOptions, cancellationToken); // var list = await result.ToListAsync(cancellationToken); // if (genericType == typeof(Album)) // { // foreach (var album in list) // { // var a = album as Album; // var albumTracks = await GetTracksAsync(a.Id, cancellationToken); // foreach (var track in albumTracks) // { // a.AddTrack(track); // } // } // } // var filteredResult = list.OrderBy(t => t.Name); // return filteredResult; // } // public async Task SetDispositionAsync(Disposition disposition, CancellationToken cancellationToken) // { // await InsertOrUpdateDispositionAsync(disposition, cancellationToken); // } // public Task UpdatePlaylistAsync(Playlist playlist, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task UpdatePlayQueueAsync(PlayQueue playQueue, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // private static FilterDefinition<T> UpdateCollectionFilter<T>(FilterDefinition<T> filter, Guid? collectionId) where T : ICollectionIdentifier // { // if (collectionId.HasValue) // { // var id = collectionId.Value; // Builders<T>.Filter.Eq(a => a.CollectionId, id); // } // return filter; // } // private static Expression<Func<T, bool>> UpdatePredicate<T>(Expression<Func<T, bool>> predicate, Guid? collectionId) where T : ICollectionIdentifier // { // if (collectionId.HasValue) // { // var id = collectionId.Value; // predicate.And(a => a.CollectionId.Equals(id)); // } // return predicate; // } // private async Task CreateAlbumIndexesAsync(IMongoCollection<Album> collection, CancellationToken cancellationToken) // { // var builder = new IndexKeysDefinitionBuilder<Album>(); // var indexFilter = builder.Ascending(g => g.Name); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // } // private async Task CreateArtistIndexesAsync(IMongoCollection<Artist> collection, CancellationToken cancellationToken) // { // var options = new CreateIndexOptions() { Unique = true }; // var builder = new IndexKeysDefinitionBuilder<Artist>(); // var indexFilter = builder.Ascending(g => g.Name); // await collection.Indexes.CreateOneAsync(indexFilter, options, cancellationToken); // } // private async Task CreateDispositionIndexesAsync(IMongoCollection<Disposition> collection, CancellationToken cancellationToken) // { // var builder = new IndexKeysDefinitionBuilder<Disposition>(); // var options = new CreateIndexOptions() { Unique = true }; // var indexFilter = builder.Ascending(d => d.MediaId).Ascending(d => d.UserId); // await collection.Indexes.CreateOneAsync(indexFilter, options, cancellationToken); // builder = new IndexKeysDefinitionBuilder<Disposition>(); // indexFilter = builder.Ascending(p => p.MediaId); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // } // private async Task CreateGenreIndexesAsync(IMongoCollection<Genre> collection, CancellationToken cancellationToken) // { // var options = new CreateIndexOptions() { Unique = true }; // var builder = new IndexKeysDefinitionBuilder<Genre>(); // var indexFilter = builder.Ascending(g => g.Name); // await collection.Indexes.CreateOneAsync(indexFilter, options, cancellationToken); // } // private async Task CreateIndexesAsync<T>(IMongoCollection<T> collection, CancellationToken cancellationToken) // { // var collectionType = typeof(T); // if (collectionType == typeof(Album)) // { // await CreateAlbumIndexesAsync(collection as IMongoCollection<Album>, cancellationToken); // } // else if (collectionType == typeof(Artist)) // { // await CreateArtistIndexesAsync(collection as IMongoCollection<Artist>, cancellationToken); // } // else if (collectionType == typeof(Genre)) // { // await CreateGenreIndexesAsync(collection as IMongoCollection<Genre>, cancellationToken); // } // else if (collectionType == typeof(Track)) // { // await CreateTrackIndexesAsync(collection as IMongoCollection<Track>, cancellationToken); // } // else if (collectionType == typeof(Disposition)) // { // await CreateDispositionIndexesAsync(collection as IMongoCollection<Disposition>, cancellationToken); // } // else if (collectionType == typeof(Playback)) // { // await CreatePlaybackIndexesAsync(collection as IMongoCollection<Playback>, cancellationToken); // } // } // private async Task CreatePlaybackIndexesAsync(IMongoCollection<Playback> collection, CancellationToken cancellationToken) // { // var builder = new IndexKeysDefinitionBuilder<Playback>(); // var indexFilter = builder.Ascending(p => p.TrackId); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // builder = new IndexKeysDefinitionBuilder<Playback>(); // indexFilter = builder.Ascending(p => p.UserId); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // } // private async Task CreateTrackIndexesAsync(IMongoCollection<Track> collection, CancellationToken cancellationToken) // { // var options = new CreateIndexOptions() { Unique = true }; // var keys = new IndexKeysDefinitionBuilder<Track>().Ascending(t => t.FileMetadata.Path).Ascending(t => t.CollectionId); // await collection.Indexes.CreateOneAsync(keys, options, cancellationToken); // var builder = new IndexKeysDefinitionBuilder<Track>(); // var indexFilter = builder.Ascending(t => t.ReleaseDate); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // builder = new IndexKeysDefinitionBuilder<Track>(); // indexFilter = builder.Ascending(t => t.Album.Id); // await collection.Indexes.CreateOneAsync(indexFilter, null, cancellationToken); // } // private async Task<Expression<Func<Album, bool>>> GetAlbumPredicateAsync(string genre, int? fromYear, int? toYear, Guid? collectionId, CancellationToken cancellationToken) // { // var predicate = PredicateBuilder.True<Album>(); // if (!string.IsNullOrWhiteSpace(genre)) // { // var filterGenre = await GetGenreAsync(genre, collectionId, cancellationToken); // if (filterGenre != null) // { // predicate = predicate.And(a => a.Genres.Contains(filterGenre)); // } // } // if (fromYear.HasValue) // { // predicate = predicate.And(a => a.ReleaseDate >= fromYear.Value); // } // if (toYear.HasValue) // { // predicate = predicate.And(a => a.ReleaseDate <= toYear.Value); // } // return UpdatePredicate(predicate, collectionId); // } // private async Task<IMongoCollection<T>> GetCollectionAsync<T>(string collectionName, CancellationToken cancellationToken) // { // var db = _client.GetDatabase(DatabaseConstants.Database); // var collection = db.GetCollection<T>(collectionName); // if (collection == null) // { // await db.CreateCollectionAsync(collectionName, null, cancellationToken); // collection = db.GetCollection<T>(collectionName); // await CreateIndexesAsync(collection, cancellationToken); // } // return collection; // } // private async Task<IEnumerable<Album>> PopulateAlbumTracks(IEnumerable<Album> results, CancellationToken cancellationToken) // { // var albums = new List<Album>(); // foreach (var r in results) // { // var albumTracks = await GetTracksAsync(r.Id, cancellationToken); // foreach (var track in albumTracks) // { // r.AddTrack(track); // } // albums.Add(r); // } // return albums; // } // private async Task<bool> ShouldCreateIndex<T>(IMongoCollection<T> collection, string name, string value, CancellationToken cancellationToken) // { // var createIndex = false; // if (collection.Indexes == null) // { // createIndex = true; // } // else // { // var indexes = await collection.Indexes.ListAsync(cancellationToken); // var indexList = await indexes.ToListAsync(cancellationToken); // createIndex = !indexList.Any(); // if (!createIndex) // { // createIndex = true; // foreach (var index in indexList) // { // if (index.IsBsonDocument) // { // var bsonDocument = index.AsBsonDocument; // var indexExists = bsonDocument.Any(a => a.Name == name && a.Value == value); // if (indexExists) // { // createIndex = false; // break; // } // } // } // } // } // return createIndex; // } // public void BeginTransaction(CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeleteMarkerAsync(Guid userId, Guid trackId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task DeletePlaylistAsync(Guid userId, Guid id, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public void EndTransaction(bool commit, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<Disposition>> GetDispositionsAsync(Guid userId, MediaType mediaType, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<IEnumerable<MediaBundle<T>>> GetFavoritedAsync<T>(Guid userId, Guid? collectionId, bool populate, CancellationToken cancellationToken) where T : MediaBase, ISearchable, ICollectionIdentifier // { // throw new NotImplementedException(); // } // public Task<IEnumerable<Marker>> GetMarkersAsync(Guid userId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task<MediaType?> GetMediaTypeAsync(Guid mediaId, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // public Task InsertOrUpdateMarkerAsync(Marker marker, CancellationToken cancellationToken) // { // throw new NotImplementedException(); // } // } //}
42.511541
216
0.613823
[ "Apache-2.0" ]
archrival/Resonance
src/Resonance.Data.Storage.MongoDB/MetadataRepository.cs
57,095
C#
using Marketplace.DatabaseProvider.Repositories; using Marketplace.Server.WebSockets; using Marketplace.Shared; using Marketplace.WebSockets; using Marketplace.WebSockets.Attributes; using Marketplace.WebSockets.Models; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using System; using System.Collections.Generic; using System.Linq; using System.Net.WebSockets; using System.Threading.Tasks; namespace Marketplace.Server.Services { public class ServerService : IServersService { private readonly IServersRepository serversRepository; private readonly ILogger<ServerService> logger; private readonly IWebSocketsManager webSocketsManager; public IEnumerable<Shared.Server> ConnectedServers => connectedServers; public List<Shared.Server> connectedServers = new List<Shared.Server>(); public ServerService(IServersRepository serversRepository, IWebSocketsManager webSocketsManager, ILogger<ServerService> logger) { this.serversRepository = serversRepository; this.webSocketsManager = webSocketsManager; this.logger = logger; } [WebSocketCall("ServerId")] private async Task ConnectServerAsync(WebSocketMessage msg) { var serverId = Convert.ToInt32(msg.Arguments[0]); var server = await serversRepository.GetServerAsync(serverId); if (server == null) { logger.LogInformation($"Server with {serverId} ID not found!"); return; } // add to connected servers server.WebSocket = msg.WebSocket; connectedServers.Add(server); logger.LogInformation($"Server {server.ServerName} has connected to web"); } public async Task ListenServerWebSocketAsync(HttpContext context, WebSocket webSocket) { try { await webSocketsManager.ListenWebSocketAsync(webSocket); } catch (Exception e) { logger.LogError(e, $"Connection with the server {context.Connection.RemoteIpAddress} lost"); } connectedServers.RemoveAll(x => x.WebSocket == webSocket); } public Shared.Server GetConnectedServer(int? id = null) { Shared.Server server; if (!id.HasValue) { server = ConnectedServers.FirstOrDefault(); if (server == null) logger.LogWarning("There isn't any server connected to web!"); } else { server = ConnectedServers.FirstOrDefault(s => s.Id == id); if (server == null) logger.LogWarning($"Failed to find server with ID {id}!"); } return server; } public void ToggleConnectedServers(IEnumerable<Shared.Server> servers) { foreach (var server in servers) { if (ConnectedServers.Any(x => x.Id == server.Id)) server.IsConnected = true; else server.IsConnected = false; } } } }
34.752688
135
0.610149
[ "MIT" ]
RestoreMonarchy/Marketplace-Web
src/Server/Services/ServersService.cs
3,234
C#
// <auto-generated /> using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using SamuraiApp.Data; namespace SamuraiApp.Data.Migrations { [DbContext(typeof(SamuraiContext))] [Migration("20201006171211_init")] partial class init { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .UseIdentityColumns() .HasAnnotation("Relational:MaxIdentifierLength", 128) .HasAnnotation("ProductVersion", "5.0.0-rtm.20502.6"); modelBuilder.Entity("SamuraiApp.Domain.Quote", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .UseIdentityColumn(); b.Property<int>("SamuraiId") .HasColumnType("int"); b.Property<string>("Text") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.HasIndex("SamuraiId"); b.ToTable("Quotes"); }); modelBuilder.Entity("SamuraiApp.Domain.Samurai", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int") .UseIdentityColumn(); b.Property<string>("Name") .HasColumnType("nvarchar(max)"); b.HasKey("Id"); b.ToTable("Samurais"); }); modelBuilder.Entity("SamuraiApp.Domain.Quote", b => { b.HasOne("SamuraiApp.Domain.Samurai", "Samurai") .WithMany("Quotes") .HasForeignKey("SamuraiId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Samurai"); }); modelBuilder.Entity("SamuraiApp.Domain.Samurai", b => { b.Navigation("Quotes"); }); #pragma warning restore 612, 618 } } }
31.883117
75
0.495316
[ "MIT" ]
chunk1ty/FrameworkPlayground
src/EntityFrameworkCore/SamuraiApp/SamuraiApp.Data/Migrations/20201006171211_init.Designer.cs
2,457
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; namespace IisLogRotator.Configuration { public class RotationSection : ConfigurationSection { private static readonly ConfigurationElementProperty s_elemProperty; private static readonly ConfigurationPropertyCollection s_properties; private static readonly ConfigurationProperty s_propEnableEventLog; private static readonly ConfigurationProperty s_propDefaultSettings; private static readonly ConfigurationProperty s_propSitesSettings; static RotationSection() { s_elemProperty = new ConfigurationElementProperty( new CallbackValidator( typeof(RotationSection), new ValidatorCallback(RotationSection.Validate) ) ); s_propEnableEventLog = new ConfigurationProperty( "enableEventLog", typeof(bool), false, ConfigurationPropertyOptions.None ); s_propDefaultSettings = new ConfigurationProperty( "defaultSettings", typeof(RotationSettingsElement), new RotationSettingsElement(), ConfigurationPropertyOptions.None ); s_propSitesSettings = new ConfigurationProperty( "sitesSettings", typeof(SiteRotationSettingsElementCollection), new SiteRotationSettingsElementCollection(), ConfigurationPropertyOptions.IsDefaultCollection ); s_properties = new ConfigurationPropertyCollection(); s_properties.Add(s_propEnableEventLog); s_properties.Add(s_propDefaultSettings); s_properties.Add(s_propSitesSettings); } protected override ConfigurationPropertyCollection Properties { get { return s_properties; } } protected override ConfigurationElementProperty ElementProperty { get { return s_elemProperty; } } private static void Validate(object value) { //RotationSection section = (RotationSection)value; } public bool EnableEventLog { get { return ((bool)(this[s_propEnableEventLog])); } set { this[s_propEnableEventLog] = value; } } public RotationSettingsElement DefaultSettings { get { return ((RotationSettingsElement)(this[s_propDefaultSettings])); } set { this[s_propDefaultSettings] = value; } } public SiteRotationSettingsElementCollection SitesSettings { get { return ((SiteRotationSettingsElementCollection)(this[s_propSitesSettings])); } set { this[s_propSitesSettings] = value; } } public RotationSettingsElement GetSiteSettingsOrDefault(string id) { SiteRotationSettingsElement siteSettings = this.SitesSettings .Cast<SiteRotationSettingsElement>() .FirstOrDefault(s => s.ID == id); return siteSettings ?? this.DefaultSettings; } } }
28.760417
88
0.744296
[ "Apache-2.0" ]
geeooff/iis-log-rotator
Configuration/RotationSection.cs
2,763
C#
using leetcodesln.common; using System.Collections.Generic; namespace leetcodesln { public class N_aryTreeLevelOrderTraversal { public IList<IList<int>> LevelOrder(Node root) { if (root == null) return new List<IList<int>>(); var ans = new List<IList<int>>(); var q = new Queue<Node>(); q.Enqueue(root); while (q.Count != 0) { int size = q.Count; IList<int> list = new List<int>(); for (int i = 0; i < size; i++) { var node = q.Dequeue(); list.Add(node.val); if (node.children == null) continue; foreach (var child in node.children) { q.Enqueue(child); } } ans.Add(list); } return ans; } } }
27.628571
60
0.417787
[ "MIT" ]
matwming/TrialOfTheGrasses
CSharp/leetcodesln/N-aryTreeLevelOrderTraversal.cs
969
C#
using OpenMMO; using OpenMMO.Network; using OpenMMO.Portals; using UnityEngine; using UnityEngine.Events; using System; using System.Collections.Generic; using Mirror; namespace OpenMMO.Network { // =================================================================================== // NetworkManager // =================================================================================== public partial class NetworkManager { // ----------------------------------------------------------------------------------- // OnStartClient_NetworkPortals // @Client // ----------------------------------------------------------------------------------- [DevExtMethods(nameof(OnStartClient))] void OnStartClient_NetworkPortals() { NetworkClient.RegisterHandler<ServerMessageResponsePlayerSwitchServer>(GetComponent<PortalManager>().OnServerMessageResponsePlayerSwitchServer); NetworkClient.RegisterHandler<ServerMessageResponsePlayerAutoLogin>(GetComponent<PortalManager>().OnServerMessageResponsePlayerAutoLogin); } // ======================= PUBLIC METHODS - PLAYER ================================ // ------------------------------------------------------------------------------- // RequestPlayerAutoLogin // @Client -> @Server // ------------------------------------------------------------------------------- protected bool RequestPlayerAutoLogin(NetworkConnection conn, string playerName, string userName, int _token) { if (!base.RequestPlayerLogin(conn, playerName, userName)) return false; ClientMessageRequestPlayerAutoLogin message = new ClientMessageRequestPlayerAutoLogin { playername = playerName, username = userName, token = _token }; ClientScene.Ready(conn); conn.Send(message); return true; } // ------------------------------------------------------------------------------- } } // =======================================================================================
31.984375
147
0.460674
[ "MIT" ]
B1sounours/OpenMMO
Core/PortalManager/Scripts/Hooked/NetworkManager/NetworkManager.Client.Protected.NetworkPortals.cs
2,047
C#
// ------------------------------------------------------------------------------- // Written by Matthew Monroe for the Department of Energy (PNNL, Richland, WA) // // E-mail: matthew.monroe@pnnl.gov or proteomics@pnnl.gov // Website: https://github.com/PNNL-Comp-Mass-Spec/ or https://panomics.pnnl.gov/ or https://www.pnnl.gov/integrative-omics // ------------------------------------------------------------------------------- // // Licensed under the 2-Clause BSD License; you may not use this file except // in compliance with the License. You may obtain a copy of the License at // https://opensource.org/licenses/BSD-2-Clause // // Copyright 2018 Battelle Memorial Institute using PHRPReader; using PHRPReader.Data; namespace PeptideHitResultsProcessor.Data { /// <summary> /// This class is used to track the peptide details for a MSPathFinder search result loaded from a synopsis file /// </summary> /// <remarks> /// See SearchResultsBaseClass for additional information /// </remarks> public class MSPathFinderResults : SearchResultsBaseClass { // Ignore Spelling: Dehydro public string MostAbundantIsotopeMz { get; set; } /// <summary> /// Comma-separated list of modification names and affected residue number /// </summary> /// <remarks> /// Examples: /// Oxidation 7,Dehydro 16 /// Dehydro 1,Dehydro 4,Dehydro 7 /// </remarks> public string Modifications { get; set; } /// <summary> /// Empirical formula /// </summary> /// <remarks> /// Example: C(74) H(119) N(19) O(26) S(0) /// </remarks> public string Composition { get; set; } /// <summary> /// Protein description /// </summary> public string ProteinDesc { get; set; } /// <summary> /// Number of residues in the full protein /// </summary> public string ProteinLength { get; set; } /// <summary> /// Residue number in the protein where this PSM starts /// </summary> public string ResidueStart { get; set; } /// <summary> /// Residue number in the protein where this PSM ends /// </summary> public string ResidueEnd { get; set; } /// <summary> /// Number of matched fragment ions /// </summary> public string MatchedFragments { get; set; } /// <summary> /// Spectrum-level E-value for this PSM /// </summary> public string SpecEValue { get; set; } /// <summary> /// Dataset-wide E-value for this PSM /// </summary> public string EValue { get; set; } /// <summary> /// Q-value (FDR) for this PSM /// </summary> /// <remarks> /// Minimum false discovery rate (FDR) at which a test may be called significant /// </remarks> public string QValue { get; set; } /// <summary> /// Peptide-level QValue (FDR) estimated using the target-decoy approach /// </summary> public string PepQValue { get; set; } /// <summary> /// Constructor /// </summary> /// <remarks> /// The base class constructor calls InitializeLocalVariables, /// which calls both the base class's Clear method and this class's Clear method /// </remarks> /// <param name="peptideMods"></param> /// <param name="peptideSeqMassCalculator"></param> public MSPathFinderResults(PeptideModificationContainer peptideMods, PeptideMassCalculator peptideSeqMassCalculator) : base(peptideMods, peptideSeqMassCalculator) { } /// <summary> /// Reset properties to empty strings /// </summary> public override void Clear() { base.Clear(); MostAbundantIsotopeMz = string.Empty; Modifications = string.Empty; Composition = string.Empty; ProteinDesc = string.Empty; ProteinLength = string.Empty; ResidueStart = string.Empty; ResidueEnd = string.Empty; MatchedFragments = string.Empty; SpecEValue = string.Empty; EValue = string.Empty; QValue = string.Empty; PepQValue = string.Empty; } } }
34.515152
125
0.540606
[ "BSD-2-Clause" ]
PNNL-Comp-Mass-Spec/PHRP
PeptideHitResultsProcessor/Data/MSPathFinderResults.cs
4,558
C#
/* * MIT License * * Copyright (c) Microsoft Corporation. * * 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; namespace Microsoft.Playwright { internal static class BrowserContextEvent { public static PlaywrightEvent<IPage> Page { get; } = new PlaywrightEvent<IPage>() { Name = "Page" }; public static PlaywrightEvent<IBrowserContext> Close { get; } = new PlaywrightEvent<IBrowserContext>() { Name = "Close" }; } }
41.388889
130
0.741611
[ "MIT" ]
RPagels/playwright-dotnet
src/Playwright/BrowserContextEvent.cs
1,490
C#
/******************************************************************************* * You may amend and distribute as you like, but don't remove this header! * * EPPlus provides server-side generation of Excel 2007/2010 spreadsheets. * See http://www.codeplex.com/EPPlus for details. * * Copyright (C) 2011 Jan Källman * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU Lesser General Public License for more details. * * The GNU Lesser General Public License can be viewed at http://www.opensource.org/licenses/lgpl-license.php * If you unfamiliar with this license or have questions about it, here is an http://www.gnu.org/licenses/gpl-faq.html * * All code and executables are provided "as is" with no warranty either express or implied. * The author accepts no liability for any damage or loss of business that this product may cause. * * Code change notes: * * Author Change Date * ****************************************************************************** * Eyal Seagull Conditional Formatting Adaption 2012-04-03 *******************************************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using OfficeOpenXml.ConditionalFormatting; namespace OfficeOpenXml.ConditionalFormatting.Contracts { /// <summary> /// IExcelConditionalFormattingFourIconSet /// </summary> public interface IExcelConditionalFormattingFourIconSet<T> : IExcelConditionalFormattingThreeIconSet<T> { #region Public Properties /// <summary> /// Icon4 (part of the 4 ou 5 Icon Set) /// </summary> ExcelConditionalFormattingIconDataBarValue Icon4 { get; } #endregion Public Properties } }
41.169811
118
0.652612
[ "MIT" ]
GlobalcachingEU/GAPP
EPPlus/ConditionalFormatting/Contracts/IExcelConditionalFormattingFourIconSet.cs
2,185
C#
using ExcelDna.Fluent.Control; namespace AddinX.Fluent.Impl.Control { public class ToggleButtonUnsize : Control<IToggleButtonUnsize>, IToggleButtonUnsize { public ToggleButtonUnsize() : base("toggleButton") { NoImage(); } /* protected internal override XElement ToXml(XNamespace ns) { var tmpId = (ElementId) Id; var element = new XElement(ns + ElementName , new XAttribute(tmpId.Type.ToString(), tmpId.Value) , new XAttribute("label", Label) , _imageVisible ? string.IsNullOrEmpty(_imageMso) ? new XAttribute("image", _imagePath) : new XAttribute("imageMso", _imageMso) : new XAttribute("showImage", "false") , new XAttribute("showLabel", _showLabel) , new XAttribute("getEnabled", "GetEnabled") , new XAttribute("getVisible", "GetVisible") , new XAttribute("onAction", "OnActionPressed") , new XAttribute("getPressed", "GetPressed") , new XAttribute("tag", tmpId.Value) ); if (!string.IsNullOrEmpty(_screentip)) { element.Add(new XAttribute("screentip", _screentip)); } if (!string.IsNullOrEmpty(_supertip)) { element.Add(new XAttribute("supertip", _supertip)); } if (!string.IsNullOrEmpty(_keytip)) { element.Add(new XAttribute("keytip", _keytip)); } if (!string.IsNullOrEmpty(_description)) { element.Add(new XAttribute("description", _description)); } return element; }*/ protected override IToggleButtonUnsize Interface => this; } }
37.877551
89
0.545259
[ "MIT" ]
zwq00000/AddinX.Ribbon
src/ExcelDna.RibbonFluent/Impl/Control/ToggleButtonUnsize.cs
1,858
C#
using RiotSharp.Caching; using RiotSharp.Endpoints.Interfaces.Static; using RiotSharp.Http.Interfaces; using RiotSharp.Misc; using System; namespace RiotSharp.Endpoints.StaticDataEndpoint { /// <summary> /// Abstract base class which implements <see cref="IStaticEndpoint"/> /// </summary> /// <seealso cref="RiotSharp.Endpoints.Interfaces.Static.IStaticEndpoint" /> public abstract class StaticEndpointBase : IStaticEndpoint { internal const string Host = "ddragon.leagueoflegends.com"; protected const string CdnUrl = "/cdn/"; protected const string ApiUrl = "/api/"; protected const string ResoureUrlPattern = CdnUrl + "{0}/data/{1}/{2}.json"; protected bool useHttps; protected ICache cache; protected IRequester requester; protected TimeSpan SlidingExpirationTime; public readonly TimeSpan DefaultSlidingExpirationTime = new TimeSpan(1, 0, 0); /// <summary> /// Initializes a new instance of the <see cref="StaticEndpointBase"/> class. /// </summary> /// <param name="requester">The requester.</param> /// <param name="cache">The cache.</param> /// <param name="slidingExpirationTime">The sliding expiration time.</param> /// <param name="useHttps">if set to <c>true</c> [use HTTPS].</param> protected StaticEndpointBase(IRequester requester, ICache cache, TimeSpan? slidingExpirationTime, bool useHttps = true) { this.requester = requester; this.cache = cache; this.useHttps = useHttps; this.SlidingExpirationTime = slidingExpirationTime ?? DefaultSlidingExpirationTime; } /// <summary> /// Initializes a new instance of the <see cref="StaticEndpointBase"/> class. /// </summary> /// <param name="requester">The requester.</param> /// <param name="cache">The cache.</param> protected StaticEndpointBase(IRequester requester, ICache cache) : this(requester, cache, null) { } /// <summary> /// Creates the URL. /// </summary> /// <param name="version">The version.</param> /// <param name="language">The language.</param> /// <param name="dataKey">The data key.</param> protected string CreateUrl(string version, Language language, string dataKey) { return String.Format(ResoureUrlPattern, version, language, dataKey); } } }
39.873016
127
0.636545
[ "MIT" ]
BenFradet/RiotSharp
RiotSharp/Endpoints/StaticDataEndpoint/StaticEndpointBase.cs
2,514
C#
namespace Ustilz.Sql.RequestElement.Implementations { #region Usings using System; using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; #endregion /// <summary>The columns. </summary> [PublicAPI] internal sealed class Columns : List<IColumn>, IColumns { #region Champs et constantes statiques /// <summary>The ms g_ no m_ colonn e_ nulle. </summary> private const string MsgNomColonneNulle = "Le nom de la colonne ne doit pas être nulle."; #endregion #region Constructeurs et destructeurs /// <summary>Initializes a new instance of the <see cref="Columns" /> class. Initialise une nouvelle instance de la classe<see cref="Columns" />.</summary> /// <param name="ownerTable">The owner Table.</param> public Columns([NotNull] ITable ownerTable) => this.OwnerTable = ownerTable; #endregion #region Propriétés et indexeurs /// <summary>Gets the owner table. </summary> /// <value>The owner table.</value> public ITable OwnerTable { get; private set; } #endregion #region Méthodes publiques /// <summary>The add.</summary> /// <param name="nomColumn">The nom column.</param> [ContractAnnotation("nomColumn:null => halt")] public void Add(string nomColumn) { if (string.IsNullOrEmpty(nomColumn)) { throw new ArgumentNullException(nameof(nomColumn), MsgNomColonneNulle); } this.Add(new Column(this.OwnerTable, nomColumn)); } /// <summary>The add.</summary> /// <param name="nomColumn">The nom column.</param> /// <param name="alias">The alias.</param> public void Add(string nomColumn, string alias) { if (string.IsNullOrEmpty(nomColumn)) { throw new ArgumentNullException(nameof(nomColumn), MsgNomColonneNulle); } this.Add(new Column(this.OwnerTable, nomColumn, alias)); } /// <summary>The to string array. </summary> /// <returns>The <see cref="string" />. </returns> public string[] ToStringArray() { return this.Select(column => column.ToString()).ToArray(); } #endregion } }
30.384615
163
0.599156
[ "MIT" ]
74nu5/Ustilz
src/Ustilz.Sql/RequestElement/Implementations/Columns.cs
2,376
C#
// Copyright 2007-2019 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // 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 MassTransit.Containers.Tests.Windsor_Tests { using Castle.MicroKernel.Registration; using Castle.Windsor; using Common_Tests; using NUnit.Framework; using Scenarios; [TestFixture] public class Windsor_Consumer : Common_Consumer { readonly IWindsorContainer _container; public Windsor_Consumer() { var container = new WindsorContainer(); container.AddMassTransit(x => { x.AddConsumer<SimpleConsumer>(); x.AddBus(provider => BusControl); }); container.Register(Component.For<ISimpleConsumerDependency>().ImplementedBy<SimpleConsumerDependency>().LifestyleScoped(), Component.For<AnotherMessageConsumer>().ImplementedBy<AnotherMessageConsumerImpl>().LifestyleScoped() ); _container = container; } [OneTimeTearDown] public void Close_container() { _container.Dispose(); } protected override MassTransit.IRegistration Registration => _container.Resolve<MassTransit.IRegistration>(); } [TestFixture] public class Windsor_Consumer_Endpoint : Common_Consumer_Endpoint { readonly IWindsorContainer _container; public Windsor_Consumer_Endpoint() { var container = new WindsorContainer(); container.AddMassTransit(x => { x.AddConsumer<SimplerConsumer>() .Endpoint(e => e.Name = "custom-endpoint-name"); x.AddBus(provider => BusControl); }); container.Register(Component.For<ISimpleConsumerDependency>().ImplementedBy<SimpleConsumerDependency>().LifestyleScoped(), Component.For<AnotherMessageConsumer>().ImplementedBy<AnotherMessageConsumerImpl>().LifestyleScoped() ); _container = container; } [OneTimeTearDown] public void Close_container() { _container.Dispose(); } protected override MassTransit.IRegistration Registration => _container.Resolve<MassTransit.IRegistration>(); } }
32.724138
134
0.646997
[ "ECL-2.0", "Apache-2.0" ]
DamirAinullin/MassTransit
src/Containers/MassTransit.Containers.Tests/Windsor_Tests/Windsor_Consumer.cs
2,847
C#
using CookBook.DAL; using Microsoft.EntityFrameworkCore; namespace CookBook.BL.Factories { public class DbContextFactory : IDbContextFactory { public CookBookDbContext CreateDbContext() { var optionsBuilder = new DbContextOptionsBuilder<CookBookDbContext>(); optionsBuilder.UseSqlServer( @"Data Source=(LocalDB)\MSSQLLocalDB;Initial Catalog = TasksDB;MultipleActiveResultSets = True;Integrated Security = True; "); return new CookBookDbContext(optionsBuilder.Options); } } }
35.25
142
0.695035
[ "MIT" ]
orlicekm/CsharpCourse
Laboratories/Laboratory04/Laboratory04_After/CookBook.BL/Factories/DbContextFactory.cs
566
C#
/* * LUSID API * * # Introduction This page documents the [LUSID APIs](https://www.lusid.com/api/swagger), which allows authorised clients to query and update their data within the LUSID platform. SDKs to interact with the LUSID APIs are available in the following languages and frameworks: * [C#](https://github.com/finbourne/lusid-sdk-csharp) * [Java](https://github.com/finbourne/lusid-sdk-java) * [JavaScript](https://github.com/finbourne/lusid-sdk-js) * [Python](https://github.com/finbourne/lusid-sdk-python) * [Angular](https://github.com/finbourne/lusid-sdk-angular) # Data Model The LUSID API has a relatively lightweight but extremely powerful data model. One of the goals of LUSID was not to enforce on clients a single rigid data model but rather to provide a flexible foundation onto which clients can map their own data models. The core entities in LUSID provide a minimal structure and set of relationships, and the data model can be extended using Properties. The LUSID data model is exposed through the LUSID APIs. The APIs provide access to both business objects and the meta data used to configure the systems behaviours. The key business entities are: - * **Portfolios** A portfolio is a container for transactions and holdings (a **Transaction Portfolio**) or constituents (a **Reference Portfolio**). * **Derived Portfolios**. Derived Portfolios allow Portfolios to be created based on other Portfolios, by overriding or adding specific items. * **Holdings** A Holding is a quantity of an Instrument or a balance of cash within a Portfolio. Holdings can only be adjusted via Transactions. * **Transactions** A Transaction is an economic event that occurs in a Portfolio, causing its holdings to change. * **Corporate Actions** A corporate action is a market event which occurs to an Instrument and thus applies to all portfolios which holding the instrument. Examples are stock splits or mergers. * **Constituents** A constituent is a record in a Reference Portfolio containing an Instrument and an associated weight. * **Instruments** An instrument represents a currency, tradable instrument or OTC contract that is attached to a transaction and a holding. * **Properties** All major entities allow additional user defined properties to be associated with them. For example, a Portfolio manager may be associated with a portfolio. Meta data includes: - * **Transaction Types** Transactions are booked with a specific transaction type. The types are client defined and are used to map the Transaction to a series of movements which update the portfolio holdings. * **Properties Types** Types of user defined properties used within the system. ## Scope All data in LUSID is segregated at the client level. Entities in LUSID are identifiable by a unique code. Every entity lives within a logical data partition known as a Scope. Scope is an identity namespace allowing two entities with the same unique code to co-exist within individual address spaces. For example, prices for equities from different vendors may be uploaded into different scopes such as `client/vendor1` and `client/vendor2`. A portfolio may then be valued using either of the price sources by referencing the appropriate scope. LUSID Clients cannot access scopes of other clients. ## Instruments LUSID has its own built-in instrument master which you can use to master your own instrument universe. Every instrument must be created with one or more unique market identifiers, such as [FIGI](https://openfigi.com/). For any non-listed instruments (eg OTCs), you can upload an instrument against a custom ID of your choosing. In addition, LUSID will allocate each instrument a unique 'LUSID instrument identifier'. The LUSID instrument identifier is what is used when uploading transactions, holdings, prices, etc. The API exposes an `instrument/lookup` endpoint which can be used to lookup these LUSID identifiers using their market identifiers. Cash can be referenced using the ISO currency code prefixed with \"`CCY_`\" e.g. `CCY_GBP` ## Instrument Data Instrument data can be uploaded to the system using the [Instrument Properties](#operation/UpsertInstrumentsProperties) endpoint. | Field|Type|Description | | - --|- --|- -- | | Key|propertykey|The key of the property. This takes the format {domain}/{scope}/{code} e.g. 'Instrument/system/Name' or 'Transaction/strategy/quantsignal'. | | Value|string|The value of the property. | | EffectiveFrom|datetimeoffset|The effective datetime from which the property is valid. | | EffectiveUntil|datetimeoffset|The effective datetime until which the property is valid. If not supplied this will be valid indefinitely, or until the next 'effectiveFrom' datetime of the property. | ## Transaction Portfolios Portfolios are the top-level entity containers within LUSID, containing transactions, corporate actions and holdings. The transactions build up the portfolio holdings on which valuations, analytics profit & loss and risk can be calculated. Properties can be associated with Portfolios to add in additional data. Portfolio properties can be changed over time, for example to allow a Portfolio Manager to be linked with a Portfolio. Additionally, portfolios can be securitised and held by other portfolios, allowing LUSID to perform \"drill-through\" into underlying fund holdings ### Derived Portfolios LUSID also allows for a portfolio to be composed of another portfolio via derived portfolios. A derived portfolio can contain its own transactions and also inherits any transactions from its parent portfolio. Any changes made to the parent portfolio are automatically reflected in derived portfolio. Derived portfolios in conjunction with scopes are a powerful construct. For example, to do pre-trade what-if analysis, a derived portfolio could be created a new namespace linked to the underlying live (parent) portfolio. Analysis can then be undertaken on the derived portfolio without affecting the live portfolio. ### Transactions A transaction represents an economic activity against a Portfolio. Transactions are processed according to a configuration. This will tell the LUSID engine how to interpret the transaction and correctly update the holdings. LUSID comes with a set of transaction types you can use out of the box, or you can configure your own set(s) of transactions. For more details see the [LUSID Getting Started Guide for transaction configuration.](https://support.lusid.com/configuring-transaction-types) | Field|Type|Description | | - --|- --|- -- | | TransactionId|string|The unique identifier for the transaction. | | Type|string|The type of the transaction e.g. 'Buy', 'Sell'. The transaction type should have been pre-configured via the System Configuration API endpoint. If it hasn't been pre-configured the transaction will still be updated or inserted however you will be unable to generate the resultant holdings for the portfolio that contains this transaction as LUSID does not know how to process it. | | InstrumentIdentifiers|map|A set of instrument identifiers to use to resolve the transaction to a unique instrument. | | TransactionDate|dateorcutlabel|The date of the transaction. | | SettlementDate|dateorcutlabel|The settlement date of the transaction. | | Units|decimal|The number of units transacted in the associated instrument. | | TransactionPrice|transactionprice|The price for each unit of the transacted instrument in the transaction currency. | | TotalConsideration|currencyandamount|The total value of the transaction in the settlement currency. | | ExchangeRate|decimal|The exchange rate between the transaction and settlement currency (settlement currency being represented by the TotalConsideration.Currency). For example if the transaction currency is in USD and the settlement currency is in GBP this this the USD/GBP rate. | | TransactionCurrency|currency|The transaction currency. | | Properties|map|Set of unique transaction properties and associated values to store with the transaction. Each property must be from the 'Transaction' domain. | | CounterpartyId|string|The identifier for the counterparty of the transaction. | | Source|string|The source of the transaction. This is used to look up the appropriate transaction group set in the transaction type configuration. | From these fields, the following values can be calculated * **Transaction value in Transaction currency**: TotalConsideration / ExchangeRate * **Transaction value in Portfolio currency**: Transaction value in Transaction currency * TradeToPortfolioRate #### Example Transactions ##### A Common Purchase Example Three example transactions are shown in the table below. They represent a purchase of USD denominated IBM shares within a Sterling denominated portfolio. * The first two transactions are for separate buy and fx trades * Buying 500 IBM shares for $71,480.00 * A spot foreign exchange conversion to fund the IBM purchase. (Buy $71,480.00 for &#163;54,846.60) * The third transaction is an alternate version of the above trades. Buying 500 IBM shares and settling directly in Sterling. | Column | Buy Trade | Fx Trade | Buy Trade with foreign Settlement | | - -- -- | - -- -- | - -- -- | - -- -- | | TransactionId | FBN00001 | FBN00002 | FBN00003 | | Type | Buy | FxBuy | Buy | | InstrumentIdentifiers | { \"figi\", \"BBG000BLNNH6\" } | { \"CCY\", \"CCY_USD\" } | { \"figi\", \"BBG000BLNNH6\" } | | TransactionDate | 2018-08-02 | 2018-08-02 | 2018-08-02 | | SettlementDate | 2018-08-06 | 2018-08-06 | 2018-08-06 | | Units | 500 | 71480 | 500 | | TransactionPrice | 142.96 | 1 | 142.96 | | TradeCurrency | USD | USD | USD | | ExchangeRate | 1 | 0.7673 | 0.7673 | | TotalConsideration.Amount | 71480.00 | 54846.60 | 54846.60 | | TotalConsideration.Currency | USD | GBP | GBP | | Trade/default/TradeToPortfolioRate&ast; | 0.7673 | 0.7673 | 0.7673 | [&ast; This is a property field] ##### A Forward FX Example LUSID has a flexible transaction modelling system, meaning there are a number of different ways of modelling forward fx trades. The default LUSID transaction types are FwdFxBuy and FwdFxSell. Using these transaction types, LUSID will generate two holdings for each Forward FX trade, one for each currency in the trade. An example Forward Fx trade to sell GBP for USD in a JPY-denominated portfolio is shown below: | Column | Forward 'Sell' Trade | Notes | | - -- -- | - -- -- | - -- - | | TransactionId | FBN00004 | | | Type | FwdFxSell | | | InstrumentIdentifiers | { \"Instrument/default/Currency\", \"GBP\" } | | | TransactionDate | 2018-08-02 | | | SettlementDate | 2019-02-06 | Six month forward | | Units | 10000.00 | Units of GBP | | TransactionPrice | 1 | | | TradeCurrency | GBP | Currency being sold | | ExchangeRate | 1.3142 | Agreed rate between GBP and USD | | TotalConsideration.Amount | 13142.00 | Amount in the settlement currency, USD | | TotalConsideration.Currency | USD | Settlement currency | | Trade/default/TradeToPortfolioRate | 142.88 | Rate between trade currency, GBP and portfolio base currency, JPY | Please note that exactly the same economic behaviour could be modelled using the FwdFxBuy Transaction Type with the amounts and rates reversed. ### Holdings A holding represents a position in an instrument or cash on a given date. | Field|Type|Description | | - --|- --|- -- | | InstrumentUid|string|The unqiue Lusid Instrument Id (LUID) of the instrument that the holding is in. | | SubHoldingKeys|map|The sub-holding properties which identify the holding. Each property will be from the 'Transaction' domain. These are configured when a transaction portfolio is created. | | Properties|map|The properties which have been requested to be decorated onto the holding. These will be from the 'Instrument' or 'Holding' domain. | | HoldingType|string|The type of the holding e.g. Position, Balance, CashCommitment, Receivable, ForwardFX etc. | | Units|decimal|The total number of units of the holding. | | SettledUnits|decimal|The total number of settled units of the holding. | | Cost|currencyandamount|The total cost of the holding in the transaction currency. | | CostPortfolioCcy|currencyandamount|The total cost of the holding in the portfolio currency. | | Transaction|transaction|The transaction associated with an unsettled holding. | | Currency|currency|The holding currency. | ## Corporate Actions Corporate actions are represented within LUSID in terms of a set of instrument-specific 'transitions'. These transitions are used to specify the participants of the corporate action, and the effect that the corporate action will have on holdings in those participants. ### Corporate Action | Field|Type|Description | | - --|- --|- -- | | CorporateActionCode|code|The unique identifier of this corporate action | | Description|string| | | AnnouncementDate|datetimeoffset|The announcement date of the corporate action | | ExDate|datetimeoffset|The ex date of the corporate action | | RecordDate|datetimeoffset|The record date of the corporate action | | PaymentDate|datetimeoffset|The payment date of the corporate action | | Transitions|corporateactiontransition[]|The transitions that result from this corporate action | ### Transition | Field|Type|Description | | - --|- --|- -- | | InputTransition|corporateactiontransitioncomponent|Indicating the basis of the corporate action - which security and how many units | | OutputTransitions|corporateactiontransitioncomponent[]|What will be generated relative to the input transition | ### Example Corporate Action Transitions #### A Dividend Action Transition In this example, for each share of IBM, 0.20 units (or 20 pence) of GBP are generated. | Column | Input Transition | Output Transition | | - -- -- | - -- -- | - -- -- | | Instrument Identifiers | { \"figi\" : \"BBG000BLNNH6\" } | { \"ccy\" : \"CCY_GBP\" } | | Units Factor | 1 | 0.20 | | Cost Factor | 1 | 0 | #### A Split Action Transition In this example, for each share of IBM, we end up with 2 units (2 shares) of IBM, with total value unchanged. | Column | Input Transition | Output Transition | | - -- -- | - -- -- | - -- -- | | Instrument Identifiers | { \"figi\" : \"BBG000BLNNH6\" } | { \"figi\" : \"BBG000BLNNH6\" } | | Units Factor | 1 | 2 | | Cost Factor | 1 | 1 | #### A Spinoff Action Transition In this example, for each share of IBM, we end up with 1 unit (1 share) of IBM and 3 units (3 shares) of Celestica, with 85% of the value remaining on the IBM share, and 5% in each Celestica share (15% total). | Column | Input Transition | Output Transition 1 | Output Transition 2 | | - -- -- | - -- -- | - -- -- | - -- -- | | Instrument Identifiers | { \"figi\" : \"BBG000BLNNH6\" } | { \"figi\" : \"BBG000BLNNH6\" } | { \"figi\" : \"BBG000HBGRF3\" } | | Units Factor | 1 | 1 | 3 | | Cost Factor | 1 | 0.85 | 0.15 | ## Reference Portfolios Reference portfolios are portfolios that contain constituents with weights. They are designed to represent entities such as indices and benchmarks. ### Constituents | Field|Type|Description | | - --|- --|- -- | | InstrumentIdentifiers|map|Unique instrument identifiers | | InstrumentUid|string|LUSID's internal unique instrument identifier, resolved from the instrument identifiers | | Currency|decimal| | | Weight|decimal| | | FloatingWeight|decimal| | ## Portfolio Groups Portfolio groups allow the construction of a hierarchy from portfolios and groups. Portfolio operations on the group are executed on an aggregated set of portfolios in the hierarchy. For example: * Global Portfolios _(group)_ * APAC _(group)_ * Hong Kong _(portfolio)_ * Japan _(portfolio)_ * Europe _(group)_ * France _(portfolio)_ * Germany _(portfolio)_ * UK _(portfolio)_ In this example **Global Portfolios** is a group that consists of an aggregate of **Hong Kong**, **Japan**, **France**, **Germany** and **UK** portfolios. ## Properties Properties are key-value pairs that can be applied to any entity within a domain (where a domain is `trade`, `portfolio`, `security` etc). Properties must be defined before use with a `PropertyDefinition` and can then subsequently be added to entities. ## Schema A detailed description of the entities used by the API and parameters for endpoints which take a JSON document can be retrieved via the `schema` endpoint. ## Meta data The following headers are returned on all responses from LUSID | Name | Purpose | | - -- | - -- | | lusid-meta-duration | Duration of the request | | lusid-meta-success | Whether or not LUSID considered the request to be successful | | lusid-meta-requestId | The unique identifier for the request | | lusid-schema-url | Url of the schema for the data being returned | | lusid-property-schema-url | Url of the schema for any properties | # Error Codes | Code|Name|Description | | - --|- --|- -- | | <a name=\"-10\">-10</a>|Server Configuration Error| | | <a name=\"-1\">-1</a>|Unknown error|An unexpected error was encountered on our side. | | <a name=\"102\">102</a>|Version Not Found| | | <a name=\"103\">103</a>|Api Rate Limit Violation| | | <a name=\"104\">104</a>|Instrument Not Found| | | <a name=\"105\">105</a>|Property Not Found| | | <a name=\"106\">106</a>|Portfolio Recursion Depth| | | <a name=\"108\">108</a>|Group Not Found| | | <a name=\"109\">109</a>|Portfolio Not Found| | | <a name=\"110\">110</a>|Property Schema Not Found| | | <a name=\"111\">111</a>|Portfolio Ancestry Not Found| | | <a name=\"112\">112</a>|Portfolio With Id Already Exists| | | <a name=\"113\">113</a>|Orphaned Portfolio| | | <a name=\"119\">119</a>|Missing Base Claims| | | <a name=\"121\">121</a>|Property Not Defined| | | <a name=\"122\">122</a>|Cannot Delete System Property| | | <a name=\"123\">123</a>|Cannot Modify Immutable Property Field| | | <a name=\"124\">124</a>|Property Already Exists| | | <a name=\"125\">125</a>|Invalid Property Life Time| | | <a name=\"126\">126</a>|Property Constraint Style Excludes Properties| | | <a name=\"127\">127</a>|Cannot Modify Default Data Type| | | <a name=\"128\">128</a>|Group Already Exists| | | <a name=\"129\">129</a>|No Such Data Type| | | <a name=\"130\">130</a>|Undefined Value For Data Type| | | <a name=\"131\">131</a>|Unsupported Value Type Defined On Data Type| | | <a name=\"132\">132</a>|Validation Error| | | <a name=\"133\">133</a>|Loop Detected In Group Hierarchy| | | <a name=\"134\">134</a>|Undefined Acceptable Values| | | <a name=\"135\">135</a>|Sub Group Already Exists| | | <a name=\"138\">138</a>|Price Source Not Found| | | <a name=\"139\">139</a>|Analytic Store Not Found| | | <a name=\"141\">141</a>|Analytic Store Already Exists| | | <a name=\"143\">143</a>|Client Instrument Already Exists| | | <a name=\"144\">144</a>|Duplicate In Parameter Set| | | <a name=\"147\">147</a>|Results Not Found| | | <a name=\"148\">148</a>|Order Field Not In Result Set| | | <a name=\"149\">149</a>|Operation Failed| | | <a name=\"150\">150</a>|Elastic Search Error| | | <a name=\"151\">151</a>|Invalid Parameter Value| | | <a name=\"153\">153</a>|Command Processing Failure| | | <a name=\"154\">154</a>|Entity State Construction Failure| | | <a name=\"155\">155</a>|Entity Timeline Does Not Exist| | | <a name=\"156\">156</a>|Concurrency Conflict Failure| | | <a name=\"157\">157</a>|Invalid Request| | | <a name=\"158\">158</a>|Event Publish Unknown| | | <a name=\"159\">159</a>|Event Query Failure| | | <a name=\"160\">160</a>|Blob Did Not Exist| | | <a name=\"162\">162</a>|Sub System Request Failure| | | <a name=\"163\">163</a>|Sub System Configuration Failure| | | <a name=\"165\">165</a>|Failed To Delete| | | <a name=\"166\">166</a>|Upsert Client Instrument Failure| | | <a name=\"167\">167</a>|Illegal As At Interval| | | <a name=\"168\">168</a>|Illegal Bitemporal Query| | | <a name=\"169\">169</a>|Invalid Alternate Id| | | <a name=\"170\">170</a>|Cannot Add Source Portfolio Property Explicitly| | | <a name=\"171\">171</a>|Entity Already Exists In Group| | | <a name=\"173\">173</a>|Entity With Id Already Exists| | | <a name=\"174\">174</a>|Derived Portfolio Details Do Not Exist| | | <a name=\"176\">176</a>|Portfolio With Name Already Exists| | | <a name=\"177\">177</a>|Invalid Transactions| | | <a name=\"178\">178</a>|Reference Portfolio Not Found| | | <a name=\"179\">179</a>|Duplicate Id| | | <a name=\"180\">180</a>|Command Retrieval Failure| | | <a name=\"181\">181</a>|Data Filter Application Failure| | | <a name=\"182\">182</a>|Search Failed| | | <a name=\"183\">183</a>|Movements Engine Configuration Key Failure| | | <a name=\"184\">184</a>|Fx Rate Source Not Found| | | <a name=\"185\">185</a>|Accrual Source Not Found| | | <a name=\"186\">186</a>|Access Denied| | | <a name=\"187\">187</a>|Invalid Identity Token| | | <a name=\"188\">188</a>|Invalid Request Headers| | | <a name=\"189\">189</a>|Price Not Found| | | <a name=\"190\">190</a>|Invalid Sub Holding Keys Provided| | | <a name=\"191\">191</a>|Duplicate Sub Holding Keys Provided| | | <a name=\"192\">192</a>|Cut Definition Not Found| | | <a name=\"193\">193</a>|Cut Definition Invalid| | | <a name=\"194\">194</a>|Time Variant Property Deletion Date Unspecified| | | <a name=\"195\">195</a>|Perpetual Property Deletion Date Specified| | | <a name=\"196\">196</a>|Time Variant Property Upsert Date Unspecified| | | <a name=\"197\">197</a>|Perpetual Property Upsert Date Specified| | | <a name=\"200\">200</a>|Invalid Unit For Data Type| | | <a name=\"201\">201</a>|Invalid Type For Data Type| | | <a name=\"202\">202</a>|Invalid Value For Data Type| | | <a name=\"203\">203</a>|Unit Not Defined For Data Type| | | <a name=\"204\">204</a>|Units Not Supported On Data Type| | | <a name=\"205\">205</a>|Cannot Specify Units On Data Type| | | <a name=\"206\">206</a>|Unit Schema Inconsistent With Data Type| | | <a name=\"207\">207</a>|Unit Definition Not Specified| | | <a name=\"208\">208</a>|Duplicate Unit Definitions Specified| | | <a name=\"209\">209</a>|Invalid Units Definition| | | <a name=\"210\">210</a>|Invalid Instrument Identifier Unit| | | <a name=\"211\">211</a>|Holdings Adjustment Does Not Exist| | | <a name=\"212\">212</a>|Could Not Build Excel Url| | | <a name=\"213\">213</a>|Could Not Get Excel Version| | | <a name=\"214\">214</a>|Instrument By Code Not Found| | | <a name=\"215\">215</a>|Entity Schema Does Not Exist| | | <a name=\"216\">216</a>|Feature Not Supported On Portfolio Type| | | <a name=\"217\">217</a>|Quote Not Found| | | <a name=\"218\">218</a>|Invalid Quote Identifier| | | <a name=\"219\">219</a>|Invalid Metric For Data Type| | | <a name=\"220\">220</a>|Invalid Instrument Definition| | | <a name=\"221\">221</a>|Instrument Upsert Failure| | | <a name=\"222\">222</a>|Reference Portfolio Request Not Supported| | | <a name=\"223\">223</a>|Transaction Portfolio Request Not Supported| | | <a name=\"224\">224</a>|Invalid Property Value Assignment| | | <a name=\"230\">230</a>|Transaction Type Not Found| | | <a name=\"231\">231</a>|Transaction Type Duplication| | | <a name=\"232\">232</a>|Portfolio Does Not Exist At Given Date| | | <a name=\"233\">233</a>|Query Parser Failure| | | <a name=\"234\">234</a>|Duplicate Constituent| | | <a name=\"235\">235</a>|Unresolved Instrument Constituent| | | <a name=\"236\">236</a>|Unresolved Instrument In Transition| | | <a name=\"237\">237</a>|Missing Side Definitions| | | <a name=\"299\">299</a>|Invalid Recipe| | | <a name=\"300\">300</a>|Missing Recipe| | | <a name=\"301\">301</a>|Dependencies| | | <a name=\"304\">304</a>|Portfolio Preprocess Failure| | | <a name=\"310\">310</a>|Valuation Engine Failure| | | <a name=\"311\">311</a>|Task Factory Failure| | | <a name=\"312\">312</a>|Task Evaluation Failure| | | <a name=\"313\">313</a>|Task Generation Failure| | | <a name=\"314\">314</a>|Engine Configuration Failure| | | <a name=\"315\">315</a>|Model Specification Failure| | | <a name=\"320\">320</a>|Market Data Key Failure| | | <a name=\"321\">321</a>|Market Resolver Failure| | | <a name=\"322\">322</a>|Market Data Failure| | | <a name=\"330\">330</a>|Curve Failure| | | <a name=\"331\">331</a>|Volatility Surface Failure| | | <a name=\"332\">332</a>|Volatility Cube Failure| | | <a name=\"350\">350</a>|Instrument Failure| | | <a name=\"351\">351</a>|Cash Flows Failure| | | <a name=\"352\">352</a>|Reference Data Failure| | | <a name=\"360\">360</a>|Aggregation Failure| | | <a name=\"361\">361</a>|Aggregation Measure Failure| | | <a name=\"370\">370</a>|Result Retrieval Failure| | | <a name=\"371\">371</a>|Result Processing Failure| | | <a name=\"372\">372</a>|Vendor Result Processing Failure| | | <a name=\"373\">373</a>|Vendor Result Mapping Failure| | | <a name=\"374\">374</a>|Vendor Library Unauthorised| | | <a name=\"375\">375</a>|Vendor Connectivity Error| | | <a name=\"376\">376</a>|Vendor Interface Error| | | <a name=\"377\">377</a>|Vendor Pricing Failure| | | <a name=\"378\">378</a>|Vendor Translation Failure| | | <a name=\"379\">379</a>|Vendor Key Mapping Failure| | | <a name=\"380\">380</a>|Vendor Reflection Failure| | | <a name=\"390\">390</a>|Attempt To Upsert Duplicate Quotes| | | <a name=\"391\">391</a>|Corporate Action Source Does Not Exist| | | <a name=\"392\">392</a>|Corporate Action Source Already Exists| | | <a name=\"393\">393</a>|Instrument Identifier Already In Use| | | <a name=\"394\">394</a>|Properties Not Found| | | <a name=\"395\">395</a>|Batch Operation Aborted| | | <a name=\"400\">400</a>|Invalid Iso4217 Currency Code| | | <a name=\"401\">401</a>|Cannot Assign Instrument Identifier To Currency| | | <a name=\"402\">402</a>|Cannot Assign Currency Identifier To Non Currency| | | <a name=\"403\">403</a>|Currency Instrument Cannot Be Deleted| | | <a name=\"404\">404</a>|Currency Instrument Cannot Have Economic Definition| | | <a name=\"405\">405</a>|Currency Instrument Cannot Have Lookthrough Portfolio| | | <a name=\"406\">406</a>|Cannot Create Currency Instrument With Multiple Identifiers| | | <a name=\"407\">407</a>|Specified Currency Is Undefined| | | <a name=\"410\">410</a>|Index Does Not Exist| | | <a name=\"411\">411</a>|Sort Field Does Not Exist| | | <a name=\"413\">413</a>|Negative Pagination Parameters| | | <a name=\"414\">414</a>|Invalid Search Syntax| | | <a name=\"415\">415</a>|Filter Execution Timeout| | | <a name=\"420\">420</a>|Side Definition Inconsistent| | | <a name=\"450\">450</a>|Invalid Quote Access Metadata Rule| | | <a name=\"451\">451</a>|Access Metadata Not Found| | | <a name=\"452\">452</a>|Invalid Access Metadata Identifier| | | <a name=\"460\">460</a>|Standard Resource Not Found| | | <a name=\"461\">461</a>|Standard Resource Conflict| | | <a name=\"462\">462</a>|Calendar Not Found| | | <a name=\"463\">463</a>|Date In A Calendar Not Found| | | <a name=\"464\">464</a>|Invalid Date Source Data| | | <a name=\"465\">465</a>|Invalid Timezone| | | <a name=\"601\">601</a>|Person Identifier Already In Use| | | <a name=\"602\">602</a>|Person Not Found| | | <a name=\"603\">603</a>|Cannot Set Identifier| | | <a name=\"617\">617</a>|Invalid Recipe Specification In Request| | | <a name=\"618\">618</a>|Inline Recipe Deserialisation Failure| | | <a name=\"619\">619</a>|Identifier Types Not Set For Entity| | | <a name=\"620\">620</a>|Cannot Delete All Client Defined Identifiers| | | <a name=\"650\">650</a>|The Order requested was not found.| | | <a name=\"654\">654</a>|The Allocation requested was not found.| | | <a name=\"655\">655</a>|Cannot build the fx forward target with the given holdings.| | | <a name=\"656\">656</a>|Group does not contain expected entities.| | | <a name=\"667\">667</a>|Relation definition already exists| | | <a name=\"673\">673</a>|Missing entitlements for entities in Group| | | <a name=\"674\">674</a>|Next Best Action not found| | | <a name=\"676\">676</a>|Relation definition not defined| | | <a name=\"677\">677</a>|Invalid entity identifier for relation| | | <a name=\"681\">681</a>|Sorting by specified field not supported|One or more of the provided fields to order by were either invalid or not supported. | | <a name=\"682\">682</a>|Too many fields to sort by|The number of fields to sort the data by exceeds the number allowed by the endpoint | | <a name=\"684\">684</a>|Sequence Not Found| | | <a name=\"685\">685</a>|Sequence Already Exists| | | <a name=\"686\">686</a>|Non-cycling sequence has been exhausted| | | <a name=\"687\">687</a>|Legal Entity Identifier Already In Use| | | <a name=\"688\">688</a>|Legal Entity Not Found| | | <a name=\"689\">689</a>|The supplied pagination token is invalid| | | <a name=\"690\">690</a>|Property Type Is Not Supported| | | <a name=\"691\">691</a>|Multiple Tax-lots For Currency Type Is Not Supported| | | <a name=\"692\">692</a>|This endpoint does not support impersonation| | | <a name=\"693\">693</a>|Entity type is not supported for Relationship| | | <a name=\"694\">694</a>|Relationship Validation Failure| | | <a name=\"695\">695</a>|Relationship Not Found| | | <a name=\"697\">697</a>|Derived Property Formula No Longer Valid| | | <a name=\"698\">698</a>|Story is not available| | | <a name=\"703\">703</a>|Corporate Action Does Not Exist| | * * The version of the OpenAPI document: 0.11.2863 * Contact: info@finbourne.com * Generated by: https://github.com/openapitools/openapi-generator.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using OpenAPIDateConverter = Lusid.Sdk.Client.OpenAPIDateConverter; namespace Lusid.Sdk.Model { /// <summary> /// UpsertLegalEntityAccessMetadataRequest /// </summary> [DataContract] public partial class UpsertLegalEntityAccessMetadataRequest : IEquatable<UpsertLegalEntityAccessMetadataRequest> { /// <summary> /// Initializes a new instance of the <see cref="UpsertLegalEntityAccessMetadataRequest" /> class. /// </summary> /// <param name="metadata">The access control metadata to assign to a Legal Entity that matches the identifier.</param> public UpsertLegalEntityAccessMetadataRequest(List<AccessMetadataValue> metadata = default(List<AccessMetadataValue>)) { this.Metadata = metadata; this.Metadata = metadata; } /// <summary> /// The access control metadata to assign to a Legal Entity that matches the identifier /// </summary> /// <value>The access control metadata to assign to a Legal Entity that matches the identifier</value> [DataMember(Name="metadata", EmitDefaultValue=true)] public List<AccessMetadataValue> Metadata { get; set; } /// <summary> /// Returns the string presentation of the object /// </summary> /// <returns>String presentation of the object</returns> public override string ToString() { var sb = new StringBuilder(); sb.Append("class UpsertLegalEntityAccessMetadataRequest {\n"); sb.Append(" Metadata: ").Append(Metadata).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// <summary> /// Returns the JSON string presentation of the object /// </summary> /// <returns>JSON string presentation of the object</returns> public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// <summary> /// Returns true if objects are equal /// </summary> /// <param name="input">Object to be compared</param> /// <returns>Boolean</returns> public override bool Equals(object input) { return this.Equals(input as UpsertLegalEntityAccessMetadataRequest); } /// <summary> /// Returns true if UpsertLegalEntityAccessMetadataRequest instances are equal /// </summary> /// <param name="input">Instance of UpsertLegalEntityAccessMetadataRequest to be compared</param> /// <returns>Boolean</returns> public bool Equals(UpsertLegalEntityAccessMetadataRequest input) { if (input == null) return false; return ( this.Metadata == input.Metadata || this.Metadata != null && input.Metadata != null && this.Metadata.SequenceEqual(input.Metadata) ); } /// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Metadata != null) hashCode = hashCode * 59 + this.Metadata.GetHashCode(); return hashCode; } } } }
286.991379
29,340
0.690727
[ "MIT" ]
bogdanLicaFinbourne/lusid-sdk-csharp-preview
sdk/Lusid.Sdk/Model/UpsertLegalEntityAccessMetadataRequest.cs
33,291
C#
using System; using System.Threading; using NUnit.Framework; using Photon.SocketServer; using Photon.SocketServer.UnitTesting; using EventData = ExitGames.Client.Photon.EventData; using OperationRequest = ExitGames.Client.Photon.OperationRequest; using OperationResponse = ExitGames.Client.Photon.OperationResponse; using ExitGames.Logging; using System.Collections.Generic; namespace Photon.UnitTest.Utils.Basic.NUnitClients { public class OfflineNUnitClient : UnitTestClient, INUnitClient { private static readonly ILogger log = LogManager.GetCurrentClassLogger(); public OfflineNUnitClient(int defaultTimeout, ConnectPolicy policy) : base(defaultTimeout, policy.ClientVersion, policy.sdkId) { this.Policy = policy; } private PhotonApplicationProxy ServerAppProxy { get; set; } private ConnectPolicy Policy { get; set; } public Dictionary<long, object> OnMessageBuffer { get; set; } public string RemoteEndPoint { get { return this.ServerAppProxy.EndPoint.ToString(); } } private bool enableOnMessageReceiveBuffer; public bool EnableOnMessageReceiveBuffer { get { return this.enableOnMessageReceiveBuffer; } set { if (value && OnMessageBuffer == null) { OnMessageBuffer = new Dictionary<long, object>(); } this.enableOnMessageReceiveBuffer = value; } } void INUnitClient.Connect(string serverAddress, byte[] token, object custom) { this.Policy.ConnectToServer(this, serverAddress, custom); } public override bool Connect(PhotonApplicationProxy serverAppProxy, object custom = null) { Assert.IsNotNull(serverAppProxy); if (base.Connect(serverAppProxy, custom)) { this.ServerAppProxy = serverAppProxy; return true; } return false; } public bool SendRequest(OperationRequest op, bool encrypted) { if (this.Policy.UseSendDelayForOfflineTests) { Thread.Sleep(40); } var r = new Photon.SocketServer.OperationRequest { OperationCode = op.OperationCode, Parameters = (Dictionary<byte, object>)op.Parameters }; return this.SendOperationRequest(r, encrypted) == SendResult.Ok; } public new EventData WaitForEvent(int millisecodsWaitTime = ConnectPolicy.WaitTime) { Thread.Sleep(40); var res = base.WaitForEvent(millisecodsWaitTime); if (res == null) { return null; } if (log.IsDebugEnabled) { log.Debug($"Peer({this.ConnectionId}) got event: {Newtonsoft.Json.JsonConvert.SerializeObject(res)}");//, } return new EventData(res.Code,res.Parameters); } public EventData WaitEvent(byte eventCode, int millisecodsWaitTime = ConnectPolicy.WaitTime) { Thread.Sleep(40); var res = this.EventQueue.DequeueIf(data => { return data.Code == eventCode;}, millisecodsWaitTime); if (res == null) { return null; } if (log.IsDebugEnabled) { log.Debug($"Peer({this.ConnectionId}) got event: {Newtonsoft.Json.JsonConvert.SerializeObject(res)}");//, } return new EventData(res.Code, res.Parameters); } public new OperationResponse WaitForOperationResponse(int milliseconsWaitTime = ConnectPolicy.WaitTime) { Thread.Sleep(40); var res = base.WaitForOperationResponse(milliseconsWaitTime); if (res == null) { return null; } return new OperationResponse { DebugMessage = res.DebugMessage, OperationCode = res.OperationCode, Parameters = res.Parameters, ReturnCode = res.ReturnCode, }; } public void EventQueueClear() { this.EventQueue.Clear(); } public void OperationResponseQueueClear() { this.ResponseQueue.Clear(); } public void InitEncryption() { this.InitializeEncryption(); } public bool WaitForConnect(int timeout = ConnectPolicy.WaitTime) { Thread.Sleep(40); return true; } public void SendMessage(object message) { this.SendMessage(message, false); } protected override void OnMessage(object message) { if (!this.EnableOnMessageReceiveBuffer) { return; } OnMessageBuffer.Add(DateTime.Now.Ticks, message); } public NetworkProtocolType NetworkProtocol { get { return NetworkProtocolType.Tcp; } } public void SetupEncryption(Dictionary<byte, object> encryptionData) { // do nothing here } } }
29.406417
122
0.556829
[ "MIT" ]
swDill/PacManProject
Photon Server/src-server/Photon.UnitTest.Utils/Basic/NUnitClients/OfflineNUnitClient.cs
5,501
C#
using System; using Gtk; public partial class MainWindow: Gtk.Window { public MainWindow () : base (Gtk.WindowType.Toplevel) { Build (); txtNombre.Text = Environment.UserName; } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; } protected void OnBtnSaludarClicked (object sender, EventArgs e) { var msg = new Gtk.MessageDialog (this, DialogFlags.DestroyWithParent, MessageType.Info, ButtonsType.Close, "Hola {0}!, estamos aprendiendo a programar en Linux", txtNombre.Text); msg.Show (); } }
19.733333
64
0.702703
[ "Apache-2.0" ]
erickorlando/holamundolinux
HelloWorld/MainWindow.cs
594
C#
// Copyright (c) Bottlenose Labs Inc. (https://github.com/bottlenoselabs). All rights reserved. // Licensed under the MIT license. See LICENSE file in the Git repository root directory for full license information. namespace C2CS.UseCases.BindgenCSharp; public record CSharpPseudoEnumValue( string Name, string CodeLocationComment, long Value) : CSharpNode(Name, CodeLocationComment) { public readonly long Value = Value; // Required for debugger string with records // ReSharper disable once RedundantOverriddenMember public override string ToString() { return base.ToString(); } }
30.761905
118
0.72291
[ "MIT" ]
elix22/c2cs
src/cs/production/C2CS/UseCases/BindgenCSharp/Data/CSharpPseudoEnumValue.cs
646
C#
using System; using System.Collections.Generic; using System.Linq; namespace Restaurant.Domain { public class RestaurantDb { List<Restaurant> restaurants; Address add1 = new Address() { street1 = "123", street2 = "Plaza America", city = "Reston", state = "VA", country = "US" }; Reviews rev1 = new Reviews() { revid = 1, rid = 1, rating = 4.5f, comments = "decent restaurant" }; Reviews rev2 = new Reviews() { revid = 2, rid = 1, rating = 3.5f, comments = "Not bad" }; List<Reviews> reviews = new List<Reviews>(); public List<Restaurant> GetRestaurants() { //logic to get restarants } } public class RestaurantLogic { public List<Restaurant> GetBest() { //Logic to get best rating restuarant RestaurantDb db = new RestaurantDb(); var res = db.GetRestaurants(); //LINQ return res; } } }
29.029412
131
0.56231
[ "MIT" ]
1905-may05-dotnet/training-code
01-CSharp/RestaurantSampleProject/Restaurant.Domain/RestaurantLogic.cs
989
C#
using StringManipulation.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StringManipulation.Models { class Exercise1:IExercise1 { private List<int> _numberList; public List<int> NumberList { get { return _numberList; } private set { _numberList = value; } } public Exercise1() { ExecuteExercise1(6); } public void ExecuteExercise1(int count) { int[] array = AskNumbers(count); _numberList = new List<int>(); RandomList(array); PrintNumberList(); Sort(true); PrintNumberList(); Sort(false); PrintNumberList(); PrintSum(); } public int[] AskNumbers(int count) { Console.WriteLine("Give me {0} intergers\n", count); int[] result = new int[count]; for (int i = 0; i < count; i++) { result[i] = AskSingleNumber(); } return (result); } public int AskSingleNumber() { Console.WriteLine("Give me a number"); int result = 0; bool isValidFlag = false; string input; while (!isValidFlag) { input = Console.ReadLine(); if (string.IsNullOrEmpty(input) || string.IsNullOrWhiteSpace(input)) Console.WriteLine("INVALID INPUT, must not be an empty/white space input"); else { if (!Int32.TryParse(input, out result)) Console.WriteLine("INVALID INPUT, must be an interger"); else isValidFlag = true; } } return (result); } public int SingleRandom(int max) { Random r = new Random(); r.Next(max); int result = r.Next(max); return (result); } public void RandomList(int[] array) { for (int i = 0; i < array.Length; i++) { _numberList.Add(SingleRandom(array[i])); } } public void PrintNumberList() { Console.WriteLine("here is the list"); for (int i = 0; i < _numberList.Count; i++) { Console.WriteLine(_numberList[i]); } } public void Sort(bool sort) { if (sort) _numberList.Sort(); else { _numberList.Sort(); _numberList.Reverse(); } } public void PrintSum() { int result = 0; for (int i = 0; i < _numberList.Count; i++) { result += _numberList[i]; } Console.WriteLine("the sum of the numbers in the list is {0}", result); } } }
23.149254
160
0.46196
[ "Unlicense" ]
MammosGeorgios/TestingGrounds
StringManipulation/Models/Exercise1.cs
3,104
C#
///////////////////////////////////////////////////////////////////////////////////////////////// // // IL2C - A translator for ECMA-335 CIL/MSIL to C language. // Copyright (c) 2016-2019 Kouji Matsui (@kozy_kekyo, @kekyo2) // // 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.Runtime.CompilerServices; namespace IL2C.BasicTypes { public sealed class Format31_CustomProducer { public override string ToString() => "STU"; } public sealed class Format32_CustomProducer : IFormattable { public string ToString(string format, IFormatProvider formatProvider) { switch (format) { case "N": return "777"; case "": return "888"; case null: return "999"; default: throw new Exception(); } } } [TestId("System_String")] [TestCase("A123BC124DE125F", "Format3", "A{0}BC{1}DE{2}F", (byte)123, (byte)124, (byte)125)] [TestCase("A-123BC-124DE-125F", "Format3", "A{0}BC{1}DE{2}F", (sbyte)-123, (sbyte)-124, (sbyte)-125)] [TestCase("A-12345BC-12346DE-12347F", "Format3", "A{0}BC{1}DE{2}F", (short)-12345, (short)-12346, (short)-12347)] [TestCase("A12345BC12346DE12347F", "Format3", "A{0}BC{1}DE{2}F", (ushort)12345, (ushort)12346, (ushort)12347)] [TestCase("A1234567BC1234568DE1234569F", "Format3", "A{0}BC{1}DE{2}F", 1234567, 1234568, 1234569)] [TestCase("A-1234567BC-1234568DE-1234569F", "Format3", "A{0}BC{1}DE{2}F", -1234567, -1234568, -1234569)] [TestCase("A1234567890123BC1234567890124DE1234567890125F", "Format3", "A{0}BC{1}DE{2}F", 1234567890123, 1234567890124, 1234567890125)] [TestCase("A-1234567890123BC-1234567890124DE-1234567890125F", "Format3", "A{0}BC{1}DE{2}F", -1234567890123, -1234567890124, -1234567890125)] [TestCase("A123.456BC123.457DE123.458F", "Format3", "A{0}BC{1}DE{2}F", 123.456f, 123.457f, 123.458f)] [TestCase("A123.456789BC123.456788DE123.456787F", "Format3", "A{0}BC{1}DE{2}F", 123.456789, 123.456788, 123.456787)] [TestCase("ATrueBCFalseDETrueF", "Format3", "A{0}BC{1}DE{2}F", true, false, true)] [TestCase("AXBCYDEZF", "Format3", "A{0}BC{1}DE{2}F", 'X', 'Y', 'Z')] [TestCase("AXYZBCPQRDESTUF", "Format3", "A{0}BC{1}DE{2}F", "XYZ", "PQR", "STU")] [TestCase("AXYZBCPQRDESTUF", "Format31_Custom", "A{0}BC{1}DE{2}F", IncludeTypes = new[] { typeof(Format11_CustomProducer), typeof(Format21_CustomProducer), typeof(Format31_CustomProducer) })] [TestCase("AXYZBCPQRDESTUF", "Format31_Custom", "A{0:}BC{1:}DE{2:}F", IncludeTypes = new[] { typeof(Format11_CustomProducer), typeof(Format21_CustomProducer), typeof(Format31_CustomProducer) })] [TestCase("AXYZBCPQRDESTUF", "Format31_Custom", "A{0:N}BC{1:N}DE{2:N}F", IncludeTypes = new[] { typeof(Format11_CustomProducer), typeof(Format21_CustomProducer), typeof(Format31_CustomProducer) })] [TestCase("A333BC666DE999F", "Format32_Custom", "A{0}BC{1}DE{2}F", IncludeTypes = new[] { typeof(Format12_CustomProducer), typeof(Format22_CustomProducer), typeof(Format32_CustomProducer) })] [TestCase("A333BC666DE999F", "Format32_Custom", "A{0:}BC{1:}DE{2:}F", IncludeTypes = new[] { typeof(Format12_CustomProducer), typeof(Format22_CustomProducer), typeof(Format32_CustomProducer) })] [TestCase("A111BC444DE777F", "Format32_Custom", "A{0:N}BC{1:N}DE{2:N}F", IncludeTypes = new[] { typeof(Format12_CustomProducer), typeof(Format22_CustomProducer), typeof(Format32_CustomProducer) })] [TestCase("123A123B124C124D125E125", "Format3", "{0}A{0}B{1}C{1}D{2}E{2}", 123, 124, 125)] [TestCase("A125BC124DE123F", "Format3", "A{2}BC{1}DE{0}F", 123, 124, 125)] [TestCase("A333B111C666D444E999F777G", "Format32_Custom", "A{0}B{0:N}C{1}D{1:N}E{2}F{2:N}G", IncludeTypes = new[] { typeof(Format12_CustomProducer), typeof(Format22_CustomProducer), typeof(Format32_CustomProducer) })] [TestCase("ABCDEF", "Format3", "ABCDEF", 123, 124, 125)] [TestCase("ABCDEF", "Format3", "A{0}BC{1}DE{2}F", "", "", "")] [TestCase("ABCDEF", "Format3", "A{0}BC{1}DE{2}F", null, null, null)] [TestCase(true, "Format3_Exception", "ABC{3}DEF", 123, 124, 125)] public sealed class System_String_Format3 { public static string Format3(string format, object value0, object value1, object value2) { return string.Format(format, value0, value1, value2); } public static string Format31_Custom(string format) { var cp1 = new Format11_CustomProducer(); var cp2 = new Format21_CustomProducer(); var cp3 = new Format31_CustomProducer(); return string.Format(format, cp1, cp2, cp3); } public static string Format32_Custom(string format) { var cp1 = new Format12_CustomProducer(); var cp2 = new Format22_CustomProducer(); var cp3 = new Format32_CustomProducer(); return string.Format(format, cp1, cp2, cp3); } public static bool Format3_Exception(string format, object value0, object value1, object value2) { try { var s = string.Format(format, value0, value1, value2); } catch (FormatException) { return true; } return false; } } }
55.231481
221
0.632858
[ "Apache-2.0" ]
am11/IL2C
tests/IL2C.Core.Test.BasicTypes/System_String/System_String_Format3.cs
5,965
C#
using WG.Entities; using Common; using System; using System.Linq; using System.Collections.Generic; namespace WG.Controllers.item.item_master { public class ItemMaster_OrderDTO : DataDTO { public long Id { get; set; } public long CustomerId { get; set; } public DateTime CreatedDate { get; set; } public string VoucherCode { get; set; } public long Total { get; set; } public long VoucherDiscount { get; set; } public long CampaignDiscount { get; set; } public long StatusId { get; set; } public ItemMaster_OrderDTO() {} public ItemMaster_OrderDTO(Order Order) { this.Id = Order.Id; this.CustomerId = Order.CustomerId; this.CreatedDate = Order.CreatedDate; this.VoucherCode = Order.VoucherCode; this.Total = Order.Total; this.VoucherDiscount = Order.VoucherDiscount; this.CampaignDiscount = Order.CampaignDiscount; this.StatusId = Order.StatusId; } } public class ItemMaster_OrderFilterDTO : FilterDTO { public long? Id { get; set; } public long? CustomerId { get; set; } public DateTime? CreatedDate { get; set; } public string VoucherCode { get; set; } public long? Total { get; set; } public long? VoucherDiscount { get; set; } public long? CampaignDiscount { get; set; } public long? StatusId { get; set; } public OrderOrder OrderBy { get; set; } } }
31.54
59
0.596703
[ "MIT" ]
blyzer/CodeGenerator
CodeGeneration/Controllers/item/item-master/ItemMaster_OrderDTO.cs
1,577
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("ExcelMaker")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ExcelMaker")] [assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("95528b2a-efb1-4cff-b1cf-879bc707a161")] // 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")]
37.513514
84
0.747118
[ "MIT" ]
donahuedtg/GenericExcelMaker
ExcelMaker/ExcelMaker/Properties/AssemblyInfo.cs
1,391
C#
using System; using System.Collections.Generic; namespace Jurassic.Compiler { /// <summary> /// Represents a try-catch-finally statement. /// </summary> internal class TryCatchFinallyStatement : Statement { /// <summary> /// Creates a new TryCatchFinallyStatement instance. /// </summary> public TryCatchFinallyStatement(IList<string> labels) : base(labels) { } /// <summary> /// Gets or sets the statement(s) inside the try block. /// </summary> public BlockStatement TryBlock { get; set; } /// <summary> /// Gets or sets the statement(s) inside the catch block. Can be <c>null</c>. /// </summary> public BlockStatement CatchBlock { get; set; } /// <summary> /// Gets or sets the scope of the variable to receive the exception. Can be <c>null</c> but /// only if CatchStatement is also <c>null</c>. /// </summary> public Scope CatchScope { get; set; } /// <summary> /// Gets or sets the name of the variable to receive the exception. Can be <c>null</c> but /// only if CatchStatement is also <c>null</c>. /// </summary> public string CatchVariableName { get; set; } /// <summary> /// Gets or sets the statement(s) inside the finally block. Can be <c>null</c>. /// </summary> public BlockStatement FinallyBlock { get; set; } /// <summary> /// Generates CIL for the statement. /// </summary> /// <param name="generator"> The generator to output the CIL to. </param> /// <param name="optimizationInfo"> Information about any optimizations that should be performed. </param> public override void GenerateCode(ILGenerator generator, OptimizationInfo optimizationInfo) { // Generate code for the start of the statement. var statementLocals = new StatementLocals() { NonDefaultSourceSpanBehavior = true }; GenerateStartOfStatement(generator, optimizationInfo, statementLocals); // Unlike in .NET, in javascript there are no restrictions on what can appear inside // try, catch and finally blocks. The one restriction which causes problems is the // inability to jump out of .NET finally blocks. This is required when break, continue // or return statements appear inside of a finally block. To work around this, when // inside a finally block these instructions throw an exception instead. // Setting the InsideTryCatchOrFinally flag converts BR instructions into LEAVE // instructions so that the finally block is executed correctly. var previousInsideTryCatchOrFinally = optimizationInfo.InsideTryCatchOrFinally; optimizationInfo.InsideTryCatchOrFinally = true; // Finally requires two exception nested blocks. if (this.FinallyBlock != null) generator.BeginExceptionBlock(); // Begin the exception block. generator.BeginExceptionBlock(); // Generate code for the try block. this.TryBlock.GenerateCode(generator, optimizationInfo); // Generate code for the catch block. if (this.CatchBlock != null) { // Begin a catch block. The exception is on the top of the stack. generator.BeginCatchBlock(typeof(JavaScriptException)); // Create a new DeclarativeScope. this.CatchScope.GenerateScopeCreation(generator, optimizationInfo); // Store the error object in the variable provided. generator.Call(ReflectionHelpers.JavaScriptException_ErrorObject); var catchVariable = new NameExpression(this.CatchScope, this.CatchVariableName); catchVariable.GenerateSet(generator, optimizationInfo, PrimitiveType.Any, false); // Make sure the scope is reverted even if an exception is thrown. generator.BeginExceptionBlock(); // Emit code for the statements within the catch block. this.CatchBlock.GenerateCode(generator, optimizationInfo); // Revert the scope. generator.BeginFinallyBlock(); this.CatchScope.GenerateScopeDestruction(generator, optimizationInfo); generator.EndExceptionBlock(); } // Generate code for the finally block. if (this.FinallyBlock != null) { generator.BeginFinallyBlock(); var branches = new List<ILLabel>(); var previousStackSize = optimizationInfo.LongJumpStackSizeThreshold; optimizationInfo.LongJumpStackSizeThreshold = optimizationInfo.BreakOrContinueStackSize; var previousCallback = optimizationInfo.LongJumpCallback; optimizationInfo.LongJumpCallback = (generator2, label) => { // It is not possible to branch out of a finally block - therefore instead of // generating LEAVE instructions we throw an exception then catch it to transfer // control out of the finally block. generator2.LoadInt32(branches.Count); generator2.NewObject(ReflectionHelpers.LongJumpException_Constructor); generator2.Throw(); // Record any branches that are made within the finally code. branches.Add(label); }; // Emit code for the finally block. this.FinallyBlock.GenerateCode(generator, optimizationInfo); // End the main exception block. generator.EndExceptionBlock(); // Begin a catch block to catch any LongJumpExceptions. The exception object is on // the top of the stack. generator.BeginCatchBlock(typeof(LongJumpException)); if (branches.Count > 0) { // switch (exception.RouteID) // { // case 0: goto label1; // case 1: goto label2; // } ILLabel[] switchLabels = new ILLabel[branches.Count]; for (int i = 0; i < branches.Count; i++) switchLabels[i] = generator.CreateLabel(); generator.Call(ReflectionHelpers.LongJumpException_RouteID); generator.Switch(switchLabels); for (int i = 0; i < branches.Count; i++) { generator.DefineLabelPosition(switchLabels[i]); generator.Leave(branches[i]); } } // Reset the state we clobbered. optimizationInfo.LongJumpStackSizeThreshold = previousStackSize; optimizationInfo.LongJumpCallback = previousCallback; } // End the exception block. generator.EndExceptionBlock(); // Reset the InsideTryCatchOrFinally flag. optimizationInfo.InsideTryCatchOrFinally = previousInsideTryCatchOrFinally; // Generate code for the end of the statement. GenerateEndOfStatement(generator, optimizationInfo, statementLocals); } /// <summary> /// Gets an enumerable list of child nodes in the abstract syntax tree. /// </summary> public override IEnumerable<AstNode> ChildNodes { get { yield return this.TryBlock; if (this.CatchBlock != null) yield return this.CatchBlock; if (this.FinallyBlock != null) yield return this.FinallyBlock; } } /// <summary> /// Converts the statement to a string. /// </summary> /// <param name="indentLevel"> The number of tabs to include before the statement. </param> /// <returns> A string representing this statement. </returns> public override string ToString(int indentLevel) { var result = new System.Text.StringBuilder(); result.Append(new string('\t', indentLevel)); result.AppendLine("try"); result.AppendLine(this.TryBlock.ToString(indentLevel + 1)); if (this.CatchBlock != null) { result.Append(new string('\t', indentLevel)); result.Append("catch ("); result.Append(this.CatchVariableName); result.AppendLine(")"); result.AppendLine(this.CatchBlock.ToString(indentLevel + 1)); } if (this.FinallyBlock != null) { result.Append(new string('\t', indentLevel)); result.AppendLine("finally"); result.AppendLine(this.FinallyBlock.ToString(indentLevel + 1)); } return result.ToString(); } } }
41.493617
115
0.549174
[ "MIT" ]
bushadam/jurassic
Jurassic/Compiler/Statements/TryCatchFinallyStatement.cs
9,753
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 CommandBinderSample.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.645161
151
0.58473
[ "Apache-2.0" ]
imasm/Prism.WinForms
Sandbox/WinForms/CommandBinderSample/Properties/Settings.Designer.cs
1,076
C#
// Copyright (c) 2021 .NET Foundation and Contributors. All rights reserved. // 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 full license information. namespace ReactiveUI; /// <summary> /// Extension methods associated with the ControlFetcher class. /// </summary> public static partial class ControlFetcherMixin { /// <summary> /// Resolution strategy for bindings. /// </summary> public enum ResolveStrategy { /// <summary> /// Resolve all properties that use a subclass of View. /// </summary> Implicit, /// <summary> /// Resolve only properties with an WireUpResource attribute. /// </summary> ExplicitOptIn, /// <summary> /// Resolve all View properties and those that use a subclass of View, except those with an IgnoreResource attribute. /// </summary> ExplicitOptOut } }
31.545455
125
0.654179
[ "MIT" ]
PKRoma/ReactiveUI
src/ReactiveUI/Platforms/android/ResolveStrategy.cs
1,043
C#
using System.Collections.Generic; using ReqTrack.Domain.Core.Entities.ValidationHelpers; namespace ReqTrack.Domain.Core.UseCases.UseCases.AddUseCase { public class AddUseCaseRequest : AddUseCaseInitialRequest { public AddUseCaseRequest(string requestedBy) : base(requestedBy) { } public string Title { get; set; } public string Note { get; set; } public IEnumerable<string> Steps { get; set; } protected override void ValidateCore(Dictionary<string, string> errors) { base.ValidateCore(errors); if (!RequirementValidationHelper.IsTitleValid(Title)) { errors.Add(nameof(Title), "Title is invalid"); } if (!RequirementValidationHelper.IsNoteValid(Note)) { errors.Add(nameof(Note), "Note is invalid"); } } } }
27.69697
79
0.607221
[ "MIT" ]
jan-kelemen/req-track
ca/src/ReqTrack/Domain.Core.UseCases/UseCases/AddUseCase/AddUseCaseRequest.cs
916
C#
using System.Threading; using System.Threading.Tasks; using StarCommander.Application.Services; using StarCommander.Domain.Players; using StarCommander.Domain.Ships; namespace StarCommander.Application.DomainEventHandlers { public class LaunchShip : IWhen<PlayerSignedUp> { readonly ICommandService commandService; readonly IReferenceGenerator generator; public LaunchShip(ICommandService commandService, IReferenceGenerator generator) { this.commandService = commandService; this.generator = generator; } public async Task Handle(PlayerSignedUp @event, CancellationToken cancellationToken) { await commandService.Issue(new Domain.Ships.LaunchShip(generator.NewReference<Ship>(), @event.Player)); } } }
29.32
106
0.80764
[ "MIT" ]
RyanNieuwoudt/StarCommander
StarCommander.Application/DomainEventHandlers/LaunchShip.cs
733
C#
using System; namespace TAlex.MathCore.NumericalAnalysis.EquationSolvers { /// <summary> /// Represents the solver of equation of a real variable that uses the Newton-Raphson algorithm. /// </summary> /// <remarks> /// Newton's method, also called the Newton-Raphson method, is a root-finding /// algorithm that uses the first few terms of the Taylor series /// of a function in the vicinity of a suspected root. /// </remarks> public class NewtonEquationSolver : InitialGuessEquationSolver { #region Constructors /// <summary> /// Initializes a new instance of the NewtonEquationSolver class. /// </summary> public NewtonEquationSolver() : base() { } /// <summary> /// Initializes a new instance of the NewtonEquationSolver class /// with the specified target function and initial guess for the root. /// </summary> /// <param name="function">A delegate that specifies the target function.</param> /// <param name="initialGuess">The initial guess for the root.</param> public NewtonEquationSolver(Func<double, double> function, double initialGuess) : base(function, initialGuess) { } /// <summary> /// Initializes a new instance of the NewtonEquationSolver class /// with the specified target function, initial guess for the root and tolerance. /// </summary> /// <param name="function">A delegate that specifies the target function.</param> /// <param name="initialGuess">The initial guess for the root.</param> /// <param name="tolerance">The tolerance used in the convergence test.</param> /// <exception cref="System.ArgumentOutOfRangeException"> /// tolerance must be non negative. /// </exception> public NewtonEquationSolver(Func<double, double> function, double initialGuess, double tolerance) : base(function, initialGuess, tolerance) { } #endregion #region Methods /// <summary> /// Returns the best approximation to the root of the nonlinear equation. /// </summary> /// <returns>The best approximation to the root.</returns> /// <exception cref="NotConvergenceException"> /// The algorithm does not converged for a certain number of iterations. /// </exception> public override double Solve() { if (Math.Abs(Function(InitialGuess)) <= Tolerance) { IterationsNeeded = 0; return InitialGuess; } Func<double, double> func = Function; double x = InitialGuess; double xOld; for (int i = 0; i < MaxIterations; i++) { xOld = x; x = x - (func(x) * Tolerance) / (func(x + Tolerance) - func(x)); if (Math.Abs(func(x)) <= Tolerance) { IterationsNeeded = i + 1; return x; } } IterationsNeeded = -1; throw new NotConvergenceException(); } #endregion } }
34.410526
105
0.574488
[ "MIT" ]
T-Alex/MathCore
src/TAlex.MathCore.NumericalAnalysis/EquationSolvers/NewtonEquationSolver.cs
3,271
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Baseline.Dates; using Marten.Events; using Marten.Events.Projections.Async; using NSubstitute; using Shouldly; using Xunit; namespace Marten.Testing.Events.Projections.Async { public class FetcherTests: IntegratedFixture { public FetcherTests() { theStore.Tenancy.Default.EnsureStorageExists(typeof(EventStream)); } [Fact] public async Task smoke_test_able_to_fetch_a_page_of_events() { var list = new List<MembersJoined>(); for (int i = 0; i < 500; i++) { list.Add(new MembersJoined { Day = i, Location = Guid.NewGuid().ToString(), Members = new string[] { Guid.NewGuid().ToString() } }); } using (var session = theStore.LightweightSession()) { session.Events.Append(Guid.NewGuid(), list.ToArray()); await session.SaveChangesAsync().ConfigureAwait(false); } var options = new AsyncOptions(); var settings = new DaemonSettings { LeadingEdgeBuffer = 0.Seconds() }; using (var data = new Fetcher(theStore, settings, options, Substitute.For<IDaemonLogger>(), new StubErrorHandler(), new Type[] { typeof(MembersJoined) })) { var page = await data.FetchNextPage(0).ConfigureAwait(false); page.From.ShouldBe(0); page.To.ShouldBe(options.PageSize); page.Streams.SelectMany(x => x.Events).Count().ShouldBe(100); } } [Fact] public async Task filters_by_event_type_name() { using (var session = theStore.OpenSession()) { for (int i = 0; i < 20; i++) { var joined = new MembersJoined { Day = i, Location = Guid.NewGuid().ToString(), Members = new string[] { Guid.NewGuid().ToString() } }; var departed = new MembersDeparted { Day = i, Location = Guid.NewGuid().ToString(), Members = new[] { Guid.NewGuid().ToString() } }; var reached = new ArrivedAtLocation { Day = i, Location = Guid.NewGuid().ToString() }; session.Events.Append(Guid.NewGuid(), joined, departed, reached); } await session.SaveChangesAsync().ConfigureAwait(false); } var settings = new DaemonSettings { LeadingEdgeBuffer = 0.Seconds() }; using (var data = new Fetcher(theStore, settings, new AsyncOptions(), Substitute.For<IDaemonLogger>(), new StubErrorHandler(), new Type[] { typeof(MembersDeparted), typeof(ArrivedAtLocation) })) { var page = await data.FetchNextPage(0).ConfigureAwait(false); var all = page.Streams.SelectMany(x => x.Events).ToArray(); all.OfType<Event<MembersJoined>>().Any().ShouldBeFalse(); all.OfType<Event<MembersDeparted>>().Any().ShouldBeTrue(); all.OfType<Event<ArrivedAtLocation>>().Any().ShouldBeTrue(); } } [Fact] public async Task correctly_correlates_by_stream() { var streams = new List<EventStream>(); var logger = new RecordingLogger(); using (var session = theStore.LightweightSession()) { session.Logger = logger; for (int i = 0; i < 20; i++) { var joined = new MembersJoined { Day = i, Location = Guid.NewGuid().ToString(), Members = new string[] { Guid.NewGuid().ToString() } }; var departed = new MembersDeparted { Day = i, Location = Guid.NewGuid().ToString(), Members = new[] { Guid.NewGuid().ToString() } }; var reached = new ArrivedAtLocation { Day = i, Location = Guid.NewGuid().ToString() }; session.Events.Append(Guid.NewGuid(), joined, departed, reached); } await session.SaveChangesAsync().ConfigureAwait(false); streams.AddRange(logger.LastCommit.GetStreams()); } var types = new Type[] { typeof(MembersJoined), typeof(MembersDeparted), typeof(ArrivedAtLocation) }; var settings = new DaemonSettings { LeadingEdgeBuffer = 0.Seconds() }; using (var data = new Fetcher(theStore, settings, new AsyncOptions(), Substitute.For<IDaemonLogger>(), new StubErrorHandler(), types)) { var page = await data.FetchNextPage(0).ConfigureAwait(false); foreach (var stream in page.Streams) { var existing = streams.Single(x => x.Id == stream.Id); existing.Events.Select(x => x.Id) .ShouldHaveTheSameElementsAs(stream.Events.Select(x => x.Id)); } } } [Fact] public async Task able_to_page_events() { var list = new List<MembersJoined>(); for (int i = 0; i < 500; i++) { list.Add(new MembersJoined { Day = i, Location = Guid.NewGuid().ToString(), Members = new string[] { Guid.NewGuid().ToString() } }); } using (var session = theStore.LightweightSession()) { session.Events.Append(Guid.NewGuid(), list.ToArray()); await session.SaveChangesAsync().ConfigureAwait(false); } var types = new Type[] { typeof(MembersJoined) }; var settings = new DaemonSettings { LeadingEdgeBuffer = 0.Seconds() }; using (var data = new Fetcher(theStore, settings, new AsyncOptions(), Substitute.For<IDaemonLogger>(), new StubErrorHandler(), types)) { var events1 = (await data.FetchNextPage(0).ConfigureAwait(false)).Streams.SelectMany(x => x.Events).ToArray(); var events2 = (await data.FetchNextPage(100).ConfigureAwait(false)).Streams.SelectMany(x => x.Events).ToArray(); var events3 = (await data.FetchNextPage(200).ConfigureAwait(false)).Streams.SelectMany(x => x.Events).ToArray(); events1.Intersect(events2).Any().ShouldBeFalse(); events1.Intersect(events3).Any().ShouldBeFalse(); events3.Intersect(events2).Any().ShouldBeFalse(); events1.Length.ShouldBe(100); events2.Length.ShouldBe(100); events3.Length.ShouldBe(100); } } } }
37.407407
206
0.532249
[ "MIT" ]
Crown0815/marten
src/Marten.Testing/Events/Projections/Async/FetcherTests.cs
7,070
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace ember_asp_test.Services { public interface IEmailSender { Task SendEmailAsync(string email, string subject, string message); } }
19.846154
74
0.748062
[ "MIT" ]
andreicojocaru/ember-asp-core-integration
src/ember-asp-test/Services/IEmailSender.cs
260
C#
namespace BoardCraft.Input { using System.Threading.Tasks; using Newtonsoft.Json.Linq; internal static class ParserHelper { public static T GetValue<T>(this JObject jObject, string propertyName) { var jVal = jObject.GetValue(propertyName); return jVal.Value<T>(); } } }
22.666667
78
0.620588
[ "MIT" ]
niyoko/BoardCraft
BoardCraft.Input.Json/ParserHelper.cs
342
C#
using UnityEngine; public class PoolManager : UnityFakeSingleton<PoolManager> { public ObjectPool[] _pools; public void Init() { foreach (var item in _pools) { item.Init(); } } public GameObject GetObjectFrom(string poolIdentifier) { ObjectPool pool = null; foreach (var item in _pools) { if (item.identifier.Equals(poolIdentifier)) { pool = item; break; } } if (pool != null) { return pool.GetObject(); } return null; } }
17.37037
60
0.660981
[ "MIT" ]
joubierjc/SCHMUP
Assets/Scripts/Managers/PoolManager.cs
471
C#
using System; namespace PubSubHub.Models { public interface ISubscriptionInfo { Guid Client { get; set; } int FailureCount { get; set; } string Group { get; set; } Guid Id { get; set; } DateTime LastRefresh { get; set; } int Level { get; set; } string MappedUri { get; set; } string Topic { get; set; } Uri Uri { get; set; } } }
24.352941
42
0.536232
[ "MIT" ]
frobzig/PubSubHub
PubSubHub/Models/ISubscriptionInfo.cs
416
C#
namespace MassTransit.TestFramework.Courier { using System; using System.Threading.Tasks; using MassTransit.Courier; public class ReviseToEmptyItineraryActivity : IActivity<TestArguments, TestLog> { public async Task<ExecutionResult> Execute(ExecuteContext<TestArguments> context) { Console.WriteLine("ReviseToEmptyItineraryActivity: Execute: {0}", context.Arguments.Value); return context.ReviseItinerary(x => { }); } public async Task<CompensationResult> Compensate(CompensateContext<TestLog> context) { return context.Compensated(); } } }
26.423077
103
0.643377
[ "ECL-2.0", "Apache-2.0" ]
MathiasZander/ServiceFabricPerfomanceTest
src/MassTransit.TestFramework/Courier/ReviseToEmptyItineraryActivity.cs
689
C#
using System; using System.IO; using MHLab.Patch.Admin.Editor.Components; using MHLab.Patch.Admin.Editor.EditorHelpers; using MHLab.Patch.Admin.Editor.Localization; using MHLab.Patch.Core.Admin; using MHLab.Patch.Core.Admin.Localization; using MHLab.Patch.Core.IO; using UnityEditor; using UnityEngine; namespace MHLab.Patch.Admin.Editor { public sealed class AdminWindow : EditorWindow { public static class AdminWindowMenu { [MenuItem("Window/PATCH/Admin Tool #&p")] public static void ShowAdminWindow() { ShowWindow(); } [MenuItem("Window/PATCH/Go to workspace folder #&o")] public static void OpenWorkspaceFolder() { System.Diagnostics.Process.Start(Path.Combine(Path.GetDirectoryName(Application.dataPath), WorkspaceFolderName)); } [MenuItem("Window/PATCH/Read the manual")] public static void OpenDocumentation() { System.Diagnostics.Process.Start("https://github.com/manhunterita/PATCH/wiki"); } } private static EditorWindow _currentWindow; private static bool _isInitialized = false; private const string WorkspaceFolderName = "PATCHWorkspace"; public IAdminSettings AdminSettings; public IAdminLocalizedMessages Localization; private WidgetContainer _widgets; private static void ShowWindow() { const int minWidth = 800; const int minHeight = 600; const string windowTitle = "PATCH - Admin Tool"; var window = GetWindow<AdminWindow>(false, windowTitle); window.minSize = GetWindowSize(minWidth, minHeight); _currentWindow = window; window.Initialize(); window.Show(); } private static Vector2 GetWindowSize(int minWidth, int minHeight) { if (Screen.currentResolution.width < minWidth) minWidth = Screen.currentResolution.width; if (Screen.currentResolution.height < minHeight) minHeight = Screen.currentResolution.height; return new Vector2(minWidth, minHeight); } private void Initialize() { if (!_isInitialized) { InitializeSettings(); InitializeInterface(); _isInitialized = true; } } private void InitializeSettings() { AdminSettings = new AdminSettings(); AdminSettings.RootPath = Path.Combine(Path.GetDirectoryName(Application.dataPath), WorkspaceFolderName); AdminSettings.AppDataPath = PathsManager.GetSpecialPath(Environment.SpecialFolder.ApplicationData); Localization = new EnglishAdminLocalizedMessages(); } private void InitializeInterface() { _widgets = WidgetContainer.Create(this); _widgets.MinSize = _currentWindow.minSize; _widgets.AddSkin(ThemeHelper.MainColorName, Resources.Load<GUISkin>("PatchMainGUISkin")); _widgets.AddSkin(ThemeHelper.SecondaryColorName, Resources.Load<GUISkin>("PatchSecondaryGUISkin")); _widgets.AddSkin(ThemeHelper.DarkColorName, Resources.Load<GUISkin>("PatchDarkGUISkin")); _widgets.AddSkin(ThemeHelper.PopupColorName, Resources.Load<GUISkin>("PatchPopupGUISkin")); ThemeHelper.InitializeContent(_widgets); SetContainerComponents(_widgets); } public static void SetContainerComponents(WidgetContainer widgets) { widgets.ClearComponents(); if (ThemeHelper.HasToShowErrorPopup(out var type)) { widgets.Push<PatchErrorPopup>(); } /*else if (ThemeHelper.HasToSetProjectName()) { widgets.Push<PatchProjectSettings>(); }*/ else if (ThemeHelper.HasToShowTutorial()) { widgets.Push<PatchTutorial>(); } else { widgets.Push<PatchTopbar>(); widgets.Push<PatchWindow>(); widgets.Push<PatchSidebar>(); widgets.Push<PatchTipPopup>(); widgets.Push<PatchPopup>(); widgets.Push<PatchErrorPopup>(); } } private void OnInspectorUpdate() { if (_isInitialized) { _widgets.Update(); Repaint(); } if (EditorApplication.isCompiling) { Close(); } } private void OnGUI() { if (_isInitialized) { _widgets.Render(); } } private void OnDestroy() { _isInitialized = false; _currentWindow = null; } } }
31.723926
129
0.56082
[ "MIT" ]
justbake-bit/Block-Drop
Assets/MHLab/Patch/Admin/Editor/AdminWindow.cs
5,173
C#
// // VNRequestRevision.cs // // Authors: // Alex Soto <alexsoto@microsoft.com> // // Copyright 2018 Microsoft Corporation. // using System; using Foundation; using ObjCRuntime; namespace Vision { public partial class VNRequest { internal static T [] GetSupportedVersions<T> (NSIndexSet indexSet) where T : struct, IConvertible // Enum is sadly a C# 7.3 feature { if (indexSet == null) return null; if (!typeof (T).IsEnum) throw new ArgumentException ("T must be an enum."); var count = indexSet.Count; var supportedRevisions = new T [indexSet.Count]; if (count == 0) return supportedRevisions; int j = 0; for (var i = indexSet.FirstIndex; i <= indexSet.LastIndex;) { supportedRevisions [j++] = (T) Enum.Parse (typeof (T), i.ToString (), true); i = indexSet.IndexGreaterThan (i); } return supportedRevisions; } } }
21.536585
133
0.663647
[ "BSD-3-Clause" ]
dottam/xamarin-macios
src/Vision/VNRequestRevision.cs
885
C#
using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; using System.Threading.Tasks; using Microsoft.AspNetCore.Server.IntegrationTesting; using Microsoft.AspNetCore.Testing.xunit; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging.Testing; using Xunit; using Xunit.Abstractions; namespace E2ETests { // These tests publish(on the machine where these tests on run) the MusicStore app to a local folder first // and then copy the published output to the target NanoServer and launch them. public class SmokeTestsOnNanoServerUsingStandaloneRuntime { private readonly SmokeTestsOnNanoServer _smokeTestsOnNanoServer; private readonly RemoteDeploymentConfig _remoteDeploymentConfig; public SmokeTestsOnNanoServerUsingStandaloneRuntime(ITestOutputHelper output) { _remoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration(); _smokeTestsOnNanoServer = new SmokeTestsOnNanoServer(output, _remoteDeploymentConfig); } [ConditionalTheory, Trait("E2ETests", "NanoServer")] [OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)] [SkipIfEnvironmentVariableNotEnabled("RUN_TESTS_ON_NANO")] [InlineData(ServerType.Kestrel, 5000, ApplicationType.Standalone)] [InlineData(ServerType.HttpSys, 5000, ApplicationType.Standalone)] [InlineData(ServerType.IIS, 8080, ApplicationType.Standalone)] public async Task Test(ServerType serverType, int portToListen, ApplicationType applicationType) { var applicationBaseUrl = $"http://{_remoteDeploymentConfig.ServerName}:{portToListen}/"; await _smokeTestsOnNanoServer.RunTestsAsync(serverType, applicationBaseUrl, applicationType); } } // Tests here test portable app scenario, so we copy the dotnet runtime onto the // target server's file share and after setting up a remote session to the server, we update the PATH environment // to have the path to this copied dotnet runtime folder in the share. // The dotnet runtime is copied only once for all the tests in this class. public class SmokeTestsOnNanoServerUsingSharedRuntime : IClassFixture<SmokeTestsOnNanoServerUsingSharedRuntime.DotnetRuntimeSetupTestFixture> { private readonly SmokeTestsOnNanoServer _smokeTestsOnNanoServer; private readonly RemoteDeploymentConfig _remoteDeploymentConfig; public SmokeTestsOnNanoServerUsingSharedRuntime( DotnetRuntimeSetupTestFixture dotnetRuntimeSetupTestFixture, ITestOutputHelper output) { _remoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration(); _remoteDeploymentConfig.DotnetRuntimePathOnShare = dotnetRuntimeSetupTestFixture.DotnetRuntimePathOnShare; _smokeTestsOnNanoServer = new SmokeTestsOnNanoServer(output, _remoteDeploymentConfig); } [ConditionalTheory, Trait("E2Etests", "NanoServer")] [OSSkipCondition(OperatingSystems.Linux | OperatingSystems.MacOSX)] [SkipIfEnvironmentVariableNotEnabled("RUN_TESTS_ON_NANO")] [InlineData(ServerType.Kestrel, 5000, ApplicationType.Portable)] [InlineData(ServerType.HttpSys, 5000, ApplicationType.Portable)] [InlineData(ServerType.IIS, 8080, ApplicationType.Portable)] public async Task Test(ServerType serverType, int portToListen, ApplicationType applicationType) { var applicationBaseUrl = $"http://{_remoteDeploymentConfig.ServerName}:{portToListen}/"; await _smokeTestsOnNanoServer.RunTestsAsync(serverType, applicationBaseUrl, applicationType); } // Copies dotnet runtime to the target server's file share. public class DotnetRuntimeSetupTestFixture : IDisposable { private bool copiedDotnetRuntime; public DotnetRuntimeSetupTestFixture() { var runNanoServerTests = Environment.GetEnvironmentVariable("RUN_TESTS_ON_NANO"); if (string.IsNullOrWhiteSpace(runNanoServerTests) || string.IsNullOrEmpty(runNanoServerTests) || runNanoServerTests.ToLower() == "false") { return; } RemoteDeploymentConfig = RemoteDeploymentConfigHelper.GetConfiguration(); DotnetRuntimePathOnShare = Path.Combine(RemoteDeploymentConfig.FileSharePath, "dotnet_" + Guid.NewGuid()); // Prefer copying the zip file to fileshare and extracting on file share over copying the extracted // dotnet runtime folder from source to file share as the size could be significantly huge. if (!string.IsNullOrEmpty(RemoteDeploymentConfig.DotnetRuntimeZipFilePath)) { if (!File.Exists(RemoteDeploymentConfig.DotnetRuntimeZipFilePath)) { throw new InvalidOperationException( $"Expected dotnet runtime zip file at '{RemoteDeploymentConfig.DotnetRuntimeFolderPath}', but didn't find one."); } ZippedDotnetRuntimePathOnShare = Path.Combine( RemoteDeploymentConfig.FileSharePath, Path.GetFileName(RemoteDeploymentConfig.DotnetRuntimeZipFilePath)); if (!File.Exists(ZippedDotnetRuntimePathOnShare)) { File.Copy(RemoteDeploymentConfig.DotnetRuntimeZipFilePath, ZippedDotnetRuntimePathOnShare, overwrite: true); Console.WriteLine($"Copied the local dotnet zip folder '{RemoteDeploymentConfig.DotnetRuntimeZipFilePath}' " + $"to the file share path '{RemoteDeploymentConfig.FileSharePath}'"); } if (Directory.Exists(DotnetRuntimePathOnShare)) { Directory.Delete(DotnetRuntimePathOnShare, recursive: true); } ZipFile.ExtractToDirectory(ZippedDotnetRuntimePathOnShare, DotnetRuntimePathOnShare); copiedDotnetRuntime = true; Console.WriteLine($"Extracted dotnet runtime to folder '{DotnetRuntimePathOnShare}'"); } else if (!string.IsNullOrEmpty(RemoteDeploymentConfig.DotnetRuntimeFolderPath)) { if (!Directory.Exists(RemoteDeploymentConfig.DotnetRuntimeFolderPath)) { throw new InvalidOperationException( $"Expected dotnet runtime folder at '{RemoteDeploymentConfig.DotnetRuntimeFolderPath}', but didn't find one."); } Console.WriteLine($"Copying dotnet runtime folder from '{RemoteDeploymentConfig.DotnetRuntimeFolderPath}' to '{DotnetRuntimePathOnShare}'."); Console.WriteLine("This could take some time."); DirectoryCopy(RemoteDeploymentConfig.DotnetRuntimeFolderPath, DotnetRuntimePathOnShare, copySubDirs: true); copiedDotnetRuntime = true; } else { throw new InvalidOperationException("Dotnet runtime is required to be copied for testing portable apps scenario. " + $"Either supply '{nameof(RemoteDeploymentConfig.DotnetRuntimeFolderPath)}' containing the unzipped dotnet runtime content or " + $"supply the dotnet runtime zip file path via '{nameof(RemoteDeploymentConfig.DotnetRuntimeZipFilePath)}'."); } } public RemoteDeploymentConfig RemoteDeploymentConfig { get; } public string ZippedDotnetRuntimePathOnShare { get; } public string DotnetRuntimePathOnShare { get; } private static void DirectoryCopy(string sourceDirName, string destDirName, bool copySubDirs) { var dir = new DirectoryInfo(sourceDirName); if (!dir.Exists) { throw new DirectoryNotFoundException( "Source directory does not exist or could not be found: " + sourceDirName); } var dirs = dir.GetDirectories(); if (!Directory.Exists(destDirName)) { Directory.CreateDirectory(destDirName); } var files = dir.GetFiles(); foreach (var file in files) { var temppath = Path.Combine(destDirName, file.Name); file.CopyTo(temppath, false); } if (copySubDirs) { foreach (var subdir in dirs) { var temppath = Path.Combine(destDirName, subdir.Name); DirectoryCopy(subdir.FullName, temppath, copySubDirs); } } } public void Dispose() { if (!copiedDotnetRuntime) { return; } // In case the source is provided as a folder itself, then we wouldn't have the zip file to begin with. if (!string.IsNullOrEmpty(ZippedDotnetRuntimePathOnShare)) { try { Console.WriteLine($"Deleting the dotnet runtime zip file '{ZippedDotnetRuntimePathOnShare}'"); File.Delete(ZippedDotnetRuntimePathOnShare); } catch (Exception ex) { Console.WriteLine($"Failed to delete the dotnet runtime zip file '{ZippedDotnetRuntimePathOnShare}'. Exception: " + ex.ToString()); } } try { Console.WriteLine($"Deleting the dotnet runtime folder '{DotnetRuntimePathOnShare}'"); Directory.Delete(DotnetRuntimePathOnShare, recursive: true); } catch (Exception ex) { Console.WriteLine($"Failed to delete the dotnet runtime folder '{DotnetRuntimePathOnShare}'. Exception: " + ex.ToString()); } } } } class SmokeTestsOnNanoServer : LoggedTest { private readonly RemoteDeploymentConfig _remoteDeploymentConfig; public SmokeTestsOnNanoServer(ITestOutputHelper output, RemoteDeploymentConfig config) : base(output) { _remoteDeploymentConfig = config; } public async Task RunTestsAsync( ServerType serverType, string applicationBaseUrl, ApplicationType applicationType) { var testName = $"SmokeTestsOnNanoServer_{serverType}_{applicationType}"; using (StartLog(out var loggerFactory, testName)) { var logger = loggerFactory.CreateLogger(nameof(SmokeTestsOnNanoServerUsingStandaloneRuntime)); var deploymentParameters = new RemoteWindowsDeploymentParameters( Helpers.GetApplicationPath(), _remoteDeploymentConfig.DotnetRuntimePathOnShare, serverType, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64, _remoteDeploymentConfig.FileSharePath, _remoteDeploymentConfig.ServerName, _remoteDeploymentConfig.AccountName, _remoteDeploymentConfig.AccountPassword) { TargetFramework = Tfm.NetCoreApp22, ApplicationBaseUriHint = applicationBaseUrl, ApplicationType = applicationType }; deploymentParameters.EnvironmentVariables.Add( new KeyValuePair<string, string>("ASPNETCORE_ENVIRONMENT", "SocialTesting")); using (var deployer = new RemoteWindowsDeployer(deploymentParameters, loggerFactory)) { var deploymentResult = await deployer.DeployAsync(); await SmokeTests.RunTestsAsync(deploymentResult, logger); } } } } static class RemoteDeploymentConfigHelper { private static RemoteDeploymentConfig _remoteDeploymentConfig; public static RemoteDeploymentConfig GetConfiguration() { if (_remoteDeploymentConfig == null) { var configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("remoteDeploymentConfig.json") .AddUserSecrets("MusicStore.E2ETests") .AddEnvironmentVariables() .Build(); _remoteDeploymentConfig = new RemoteDeploymentConfig(); configuration.GetSection("NanoServer").Bind(_remoteDeploymentConfig); } return _remoteDeploymentConfig; } } }
46.756944
161
0.61258
[ "Apache-2.0" ]
SHANG-TING/MusicStore
test/MusicStore.E2ETests/SmokeTestsOnNanoServer.cs
13,466
C#
// Copyright (c) .NET Foundation and Contributors (https://dotnetfoundation.org/ & https://stride3d.net) and Silicon Studio Corp. (https://www.siliconstudio.co.jp) // Distributed under the MIT license. See the LICENSE.md file in the project root for more information. #if STRIDE_GRAPHICS_API_DIRECT3D12 using System; using SharpDX.Direct3D12; namespace Stride.Graphics { /// <summary> /// GraphicsResource class /// </summary> public abstract partial class GraphicsResource { internal GraphicsResource ParentResource; internal long? StagingFenceValue; internal CommandList StagingBuilder; internal CpuDescriptorHandle NativeShaderResourceView; internal CpuDescriptorHandle NativeUnorderedAccessView; internal ResourceStates NativeResourceState; protected bool IsDebugMode => GraphicsDevice != null && GraphicsDevice.IsDebugMode; /// <summary> /// Returns true if resource state transition is needed in order to use resource in given state /// </summary> /// <param name="targeState">Destination resource state</param> /// <returns>True if need to perform a transition, otherwsie false</returns> internal bool IsTransitionNeeded(ResourceStates targeState) { // If 'targeState' is a subset of 'before', then there's no need for a transition // Note: COMMON is an oddball state that doesn't follow the RESOURE_STATE pattern of // having exactly one bit set so we need to special case these return NativeResourceState != targeState && ((NativeResourceState | targeState) != NativeResourceState || targeState == ResourceStates.Common); } } } #endif
43.575
163
0.701664
[ "MIT" ]
Alan-love/xenko
sources/engine/Stride.Graphics/Direct3D12/GraphicsResource.Direct3D12.cs
1,743
C#
using System; using System.Net; using HealthyWayOfLife.Model.Enums; namespace HealthyWayOfLife.Model.Models { public class HwolException : Exception { public LogType LogType { get; set; } public HttpStatusCode StatusCode { get; } public string UserInfo { get; } public HwolException(HttpStatusCode statusCode, string userInfo, LogType logType = LogType.Message, Exception e = null) : base( e?.Message, e ) { StatusCode = statusCode; UserInfo = userInfo ?? "Some error occured, try again please"; LogType = logType; } public HwolException(string userInfo, LogType logType = LogType.Message, Exception e = null) : base(e?.Message, e) { StatusCode = HttpStatusCode.NotAcceptable; UserInfo = userInfo ?? "Some error occured, try again please"; LogType = logType; } } }
35.5
151
0.632719
[ "MIT" ]
holkurgapprentice/HealthyWayOfLife
HealthyWayOfLife.Model/Models/HwolException.cs
925
C#
// // Encog(tm) Core v3.1 - .Net Version // http://www.heatonresearch.com/encog/ // // Copyright 2008-2012 Heaton Research, Inc. // // 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. // // For more information on Heaton Research copyrights, licenses // and trademarks visit: // http://www.heatonresearch.com/copyright // using System; using System.Collections.Generic; using System.IO; using System.Text; #if logging #endif namespace Encog.Parse.Tags.Write { /// <summary> /// Class used to write out tags, such as XML or HTML. /// </summary> public class WriteTags { /// <summary> /// The output stream to write to. /// </summary> private readonly Stream _output; /// <summary> /// Stack to keep track of beginning and ending tags. /// </summary> private readonly Stack<String> _tagStack; /// <summary> /// The attributes for the current tag. /// </summary> private readonly IDictionary<String, String> _attributes; /// <summary> /// Used to encode strings to bytes. /// </summary> private readonly StreamWriter _encoder; /// <summary> /// Construct an object to write tags. /// </summary> /// <param name="output">THe output stream.</param> public WriteTags(Stream output) { _output = output; _tagStack = new Stack<String>(); _attributes = new Dictionary<String, String>(); _encoder = new StreamWriter(output); } /// <summary> /// Add an attribute to be written with the next tag. /// </summary> /// <param name="name">The name of the attribute.</param> /// <param name="v">The value of the attribute.</param> public void AddAttribute(String name, String v) { _attributes.Add(name, v); } /// <summary> /// Add CDATA to the output stream. XML allows a large block of unformatted /// text to be added as a CDATA tag. /// </summary> /// <param name="text">The text to add.</param> public void AddCDATA(String text) { var builder = new StringBuilder(); builder.Append('<'); builder.Append(TagConst.CDATABegin); builder.Append(text); builder.Append(TagConst.CDATAEnd); builder.Append('>'); try { _encoder.Write(builder.ToString()); } catch (IOException e) { throw new ParseError(e); } } /// <summary> /// Add a property as a double. A property is a value enclosed in two tags. /// </summary> /// <param name="name">The name of the enclosing tags.</param> /// <param name="d">The value to store.</param> public void AddProperty(String name, double d) { BeginTag(name); AddText("" + d); EndTag(); } /// <summary> /// Add a property as an integer. A property is a value enclosed in two tags. /// </summary> /// <param name="name">The name of the enclosing tags.</param> /// <param name="i">The value to store.</param> public void AddProperty(String name, int i) { AddProperty(name, "" + i); } /// <summary> /// Add a property as a string. A property is a value enclosed in two tags. /// </summary> /// <param name="name">The name of the enclosing tags.</param> /// <param name="str">The value to store.</param> public void AddProperty(String name, String str) { BeginTag(name); AddText(str); EndTag(); } /// <summary> /// Add text. /// </summary> /// <param name="text">The text to add.</param> public void AddText(String text) { try { _encoder.Write(text); } catch (IOException e) { throw new ParseError(e); } } /// <summary> /// Called to begin the document. /// </summary> public void BeginDocument() { } /// <summary> /// Begin a tag with the specified name. /// </summary> /// <param name="name">The tag to begin.</param> public void BeginTag(String name) { var builder = new StringBuilder(); builder.Append("<"); builder.Append(name); if (_attributes.Count > 0) { foreach (String key in _attributes.Keys) { String value = _attributes[key]; builder.Append(' '); builder.Append(key); builder.Append('='); builder.Append("\""); builder.Append(value); builder.Append("\""); } } builder.Append(">"); try { _encoder.Write(builder.ToString()); } catch (IOException e) { throw new ParseError(e); } _attributes.Clear(); _tagStack.Push(name); } /// <summary> /// Close this object. /// </summary> public void Close() { try { _output.Close(); } catch (Exception e) { throw new EncogError(e); } } /// <summary> /// End the document. /// </summary> public void EndDocument() { _encoder.Flush(); } /// <summary> /// End the current tag. /// </summary> public void EndTag() { if (_tagStack.Count < 1) { throw new ParseError( "Can't create end tag, no beginning tag."); } String tag = _tagStack.Pop(); var builder = new StringBuilder(); builder.Append("</"); builder.Append(tag); builder.Append(">"); try { _encoder.Write(builder.ToString()); } catch (IOException e) { throw new ParseError(e); } } /// <summary> /// Write an array as a property. /// </summary> /// <param name="name">The name of the property.</param> /// <param name="array">The array to write.</param> /// <param name="len">The length of the array to write.</param> public void AddProperty(String name, double[] array, int len) { if (array != null) { var str = new StringBuilder(); for (int i = 0; i < len; i++) { if (i != 0) str.Append(' '); str.Append(array[i]); } AddProperty(name, str.ToString()); } } /// <summary> /// Write an array as a property. /// </summary> /// <param name="name">The name of the property.</param> /// <param name="array">The array to write.</param> /// <param name="len">The length of the array to write.</param> public void AddProperty(String name, int[] array, int len) { if (array != null) { var str = new StringBuilder(); for (int i = 0; i < len; i++) { if (i != 0) str.Append(' '); str.Append(array[i]); } AddProperty(name, str.ToString()); } } /// <summary> /// End a tag, require that we are ending the specified tag. /// </summary> /// <param name="name">The tag to be ending.</param> public void EndTag(String name) { if (!_tagStack.Peek().Equals(name)) { String str = "End tag mismatch, should be ending: " + _tagStack.Peek() + ", but trying to end: " + name + "."; #if logging if (logger.IsErrorEnabled) { logger.Error(str); } #endif throw new ParseError(str); } EndTag(); } } }
29.658147
85
0.474092
[ "BSD-3-Clause" ]
mpcoombes/MaterialPredictor
encog-core-cs/Parse/Tags/Write/WriteTags.cs
9,283
C#