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.Globalization; using Xamarin.Forms; namespace SmartHotel220.Clients.Core.Converters { /// <inheritdoc /> /// <summary> /// Количество к высоте. Используется для показа отзывов /// </summary> public class CountToHeightConverter : IValueConverter { private const int RowHeight = 300; public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is int) { var count = System.Convert.ToInt32(value); return (RowHeight * count); } return null; } public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { return null; } } }
25.28125
103
0.595797
[ "MIT" ]
AlexeyBuryanov/SmartHotel220.Clients
src/SmartHotel220.Clients/Converters/CountToHeightConverter.cs
856
C#
using System; namespace Abstractions { public enum Scope : UInt16 { Block = 0, Public = 1, Internal = 2, Any = 3 } }
13.5
31
0.487654
[ "MIT" ]
paulsalmon-za/microservices-play-ground
Abstractions/Information/Scope.cs
162
C#
// GestorFincas (c) 2005 Baltasar MIT License (baltasarq@gmail.com) using System.Windows.Forms; namespace EstateManager.UI { using System; using System.Drawing; using System.Diagnostics; /// <summary> /// Solo visualiza una ventana con un dibujo mientras se carga la base de datos. /// </summary> public class SplashInit : Form { public SplashInit() { this.Build(); } private void BuildIcons() { var asm = System.Reflection.Assembly.GetEntryAssembly(); try { this.bmpSplash = new Bitmap( asm.GetManifestResourceStream( "EstateManager.Res.splash.png" ) ); } catch(Exception e) { Debug.WriteLine( "ERROR loading icons: " + e.Message); } return; } /// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void Build() { this.BuildIcons(); this.splashViewer = new PictureBox(); ( (System.ComponentModel.ISupportInitialize) ( this.splashViewer ) ).BeginInit(); this.SuspendLayout(); // // splashViewer // this.splashViewer.Dock = System.Windows.Forms.DockStyle.Fill; this.splashViewer.Image = this.bmpSplash; this.splashViewer.Location = new System.Drawing.Point( 0, 0 ); this.splashViewer.Name = "pictureBox2"; this.splashViewer.Size = new System.Drawing.Size( 391, 230 ); this.splashViewer.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.splashViewer.TabIndex = 0; this.splashViewer.TabStop = false; // // SplashInit // this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; this.ClientSize = new System.Drawing.Size( 391, 230 ); this.Controls.Add( this.splashViewer ); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "SplashInit"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TopMost = true; ( (System.ComponentModel.ISupportInitialize) ( this.splashViewer ) ).EndInit(); this.ResumeLayout( false ); } private PictureBox splashViewer; private Bitmap bmpSplash; } }
34.08
96
0.640454
[ "MIT" ]
Baltasarq/EstateManager
UI/SplashInit.cs
2,556
C#
using System; namespace Demo.WeatherService { public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string Summary { get; set; } } }
18.75
69
0.61
[ "MIT" ]
emilbolet/weather
Demo.WeatherService/WeatherForecast.cs
300
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using System; using System.IO; using System.Threading.Tasks; using Squidex.Infrastructure; using Squidex.Infrastructure.Log; namespace Squidex.Domain.Apps.Entities.Apps { public sealed class DefaultAppLogStore : IAppLogStore { private readonly ILogStore logStore; public DefaultAppLogStore(ILogStore logStore) { Guard.NotNull(logStore, nameof(logStore)); this.logStore = logStore; } public Task ReadLogAsync(string appId, DateTime from, DateTime to, Stream stream) { Guard.NotNull(appId, nameof(appId)); return logStore.ReadLogAsync(appId, from, to, stream); } } }
30.142857
89
0.524171
[ "MIT" ]
Avd6977/squidex
src/Squidex.Domain.Apps.Entities/Apps/DefaultAppLogStore.cs
1,057
C#
using System.Xml; namespace D_Parser.Misc { public class CompletionOptions { public static CompletionOptions Instance = new CompletionOptions(); public bool LimitResolutionErrors = !System.Diagnostics.Debugger.IsAttached; public bool DumpResolutionErrors = System.Diagnostics.Debugger.IsAttached; /// <summary> /// Time a completion request has until it quits silently. Milliseconds. -1 for inifinite time. /// </summary> public int CompletionTimeout = 100; public bool EnableSuggestionMode = true; public bool ShowUFCSItems = true; /// <summary> /// If true, type &amp; expression resolution will happen including checking of existing declaration constraints. /// It might be disabled because of huge performance tear-downs. /// </summary> public bool EnableDeclarationConstraints = true; public bool DisableMixinAnalysis = true; public bool HideDeprecatedNodes = true; public bool HideDisabledNodes = true; /// <summary> /// If false, all ctrl+space-leveled items will get shown in completion either /// </summary> public bool ShowStructMembersInStructInitOnly = true; public bool EnableResolutionCache = true; public void Load(XmlReader x) { while (x.Read()) { switch (x.LocalName) { case "EnableResolutionCache": EnableResolutionCache = x.ReadString().ToLower() == "true"; break; case "CompletionTimeout": int.TryParse(x.ReadString(), out CompletionTimeout); break; case "EnableUFCSCompletion": ShowUFCSItems = x.ReadString().ToLower() == "true"; break; case "EnableDeclarationConstraints": EnableDeclarationConstraints = x.ReadString().ToLower() == "true"; break; case "MixinAnalysis": DisableMixinAnalysis = x.ReadString().ToLower() != "true"; break; case "CompletionSuggestionMode": EnableSuggestionMode = x.ReadString().ToLower() == "true"; break; case "HideDeprecatedNodes": HideDeprecatedNodes = x.ReadString().ToLower() == "true"; break; case "HideDisabledNodes": HideDisabledNodes = x.ReadString().ToLower() == "true"; break; case "ShowStructMembersInStructInitOnly": ShowStructMembersInStructInitOnly = x.ReadString().ToLower() == "true"; break; } } } public void Save(XmlWriter x) { x.WriteElementString("CompletionTimeout", CompletionTimeout.ToString()); x.WriteElementString("EnableUFCSCompletion", ShowUFCSItems.ToString()); x.WriteElementString("EnableDeclarationConstraints", EnableDeclarationConstraints.ToString()); x.WriteElementString("MixinAnalysis", (!DisableMixinAnalysis).ToString()); x.WriteElementString("CompletionSuggestionMode", EnableSuggestionMode.ToString()); x.WriteElementString("HideDeprecatedNodes", HideDeprecatedNodes.ToString()); x.WriteElementString("HideDisabledNodes", HideDisabledNodes.ToString()); x.WriteElementString("ShowStructMembersInStructInitOnly", ShowStructMembersInStructInitOnly.ToString()); x.WriteElementString("EnableResolutionCache", EnableResolutionCache.ToString()); } } }
36.517647
115
0.721972
[ "Apache-2.0" ]
ahmetsait/D_Parser
DParser2/Misc/CompletionOptions.cs
3,106
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. using System; using System.Collections.Generic; namespace Stride.Core.Shaders.Ast { /// <summary> /// A reference to a variable. /// </summary> public partial class VariableReferenceExpression : Expression { /// <summary> /// Initializes a new instance of the <see cref="VariableReferenceExpression"/> class. /// </summary> public VariableReferenceExpression() { } /// <summary> /// Initializes a new instance of the <see cref="VariableReferenceExpression"/> class. /// </summary> /// <param name="variable">The variable.</param> public VariableReferenceExpression(Variable variable) { Name = variable.Name; TypeInference.TargetType = variable.Type.ResolveType(); } /// <summary> /// Initializes a new instance of the <see cref="VariableReferenceExpression"/> class. /// </summary> /// <param name="name">The name.</param> public VariableReferenceExpression(Identifier name) { Name = name; } /// <summary> /// Gets or sets the name. /// </summary> /// <value> /// The name. /// </value> public Identifier Name { get; set; } ///// <summary> ///// Gets or sets the variable. ///// </summary> ///// <value> ///// The variable. ///// </value> //[VisitorIgnore] //public Variable Variable //{ // get // { // return (Variable)TypeInference.Declaration; // } // set // { // TypeInference.Declaration = value; // } //} /// <inheritdoc/> public override IEnumerable<Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Name); return ChildrenList; } /// <summary> /// Gets a name of the variable referenced by an expression. /// </summary> /// <param name="expression">The expression.</param> /// <returns>Name of the variable referenced. If the expression is not a VariableReferenceExpression, returns null</returns> public static string GetVariableName(Expression expression) { var variableReferenceExpression = expression as VariableReferenceExpression; return variableReferenceExpression == null ? null : variableReferenceExpression.Name.Text; } /// <inheritdoc/> public override string ToString() { return Name; } } }
32.032609
163
0.558873
[ "MIT" ]
Alan-love/xenko
sources/shaders/Stride.Core.Shaders/Ast/VariableReferenceExpression.cs
2,947
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Logging; using Properties.Data; using Properties.Models; using Properties.Repositories; using Utilities; namespace Properties.Controllers { [Route("api/v1/[controller]")] [ApiController] public class OwnersController : ControllerBase { private readonly IOwnerRepository _repository; private readonly ILogger<OwnersController> _logger; public OwnersController(ILogger<OwnersController> logger, IOwnerRepository repository) { _repository = repository; _logger = logger; } /// <summary> /// Consulta la totalidad de las Owners /// </summary> /// <returns>Retorna una colección de Owner</returns> [HttpGet] [Route("Get")] [ProducesResponseType(typeof(IEnumerable<Owner>), (int)HttpStatusCode.OK)] public async Task<IActionResult> GetOwners() => await Utilities.Utilities.TryCatchAsync( async () => { _logger.LogInformation("Begin HttpGet call GetOwners"); var response = await _repository.GetOwners(); if (response != null && response.Any()) return Ok(response.JsonSerialize()); return NotFound("No results found"); }, HttpErrorHandlerAsync ); /// <summary> /// Consulta un Owner por su Id /// </summary> /// <param name="id">Identificador del Owner</param> /// <returns>Retorna un Owner</returns> [HttpGet] [Route("Get/{id:guid}")] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType((int)HttpStatusCode.BadRequest)] [ProducesResponseType(typeof(Owner), (int)HttpStatusCode.OK)] public async Task<IActionResult> GetOwner(Guid id) => await Utilities.Utilities.TryCatchAsync( async () => { _logger.LogInformation($"Begin HttpGet call GetPropertiy for id {id}"); var owner = await _repository.GetOwner(id); if (owner is null) return NotFound($"The property with id {id} do not exist"); return Ok(owner.JsonSerialize()); }, HttpErrorHandlerAsync ); /// <summary> /// Agrega una nueva Owner /// </summary> /// <param name="property">Owner a crear</param> /// <returns>Retorna la Owner creada</returns> [HttpPost] [Route("Create")] [ProducesResponseType((int)HttpStatusCode.BadRequest)] [ProducesResponseType((int)HttpStatusCode.Created)] public async Task<IActionResult> CreateOwner([FromBody] Owner owner) => await Utilities.Utilities.TryCatchAsync( async () => { if (ModelState.IsValid) { _logger.LogInformation($"Begin HttpPost call CreateOwner for: {owner}"); owner = await _repository.CreateOwner(owner); return StatusCode((int)HttpStatusCode.Created, owner.JsonSerialize()); } else return BadRequest(); }, async error => { if (error.GetType() == typeof(DbUpdateException)) if (OwnerExists(owner.IdOwner)) return Conflict($"The property with id {owner.IdOwner} already exist"); return await HttpErrorHandlerAsync(error); } ); /// <summary> /// Actualiza un Owner /// </summary> /// <param name="property">Owner a actualizar</param> /// <returns>Retorna la Owner actualizada</returns> [HttpPost] [Route("Update")] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType((int)HttpStatusCode.BadRequest)] [ProducesResponseType((int)HttpStatusCode.OK)] public async Task<IActionResult> UpdateOwner([FromBody] Owner owner) => await Utilities.Utilities.TryCatchAsync( async () => { if (ModelState.IsValid) { _logger.LogInformation($"Begin HttpPost call UpdateOwner for: {owner}"); owner = await _repository.UpdateOwner(owner); return Ok(owner.JsonSerialize()); } else return BadRequest(); }, async error => { if (error.GetType() == typeof(DbUpdateConcurrencyException)) if (!OwnerExists(owner.IdOwner)) return NotFound($"The property with id {owner.IdOwner} do not exist"); return await HttpErrorHandlerAsync(error); } ); /// <summary> /// Elimina un Owner por su Id /// </summary> /// <param name="id">Identificador del Owner</param> /// <returns></returns> [HttpPost] [Route("Delete/{id:guid}")] [ProducesResponseType((int)HttpStatusCode.NoContent)] [ProducesResponseType((int)HttpStatusCode.NotFound)] [ProducesResponseType((int)HttpStatusCode.BadRequest)] public async Task<IActionResult> DeleteOwner(Guid id) => await Utilities.Utilities.TryCatchAsync( async () => { _logger.LogInformation($"Begin HttpPost call DeleteOwner for id {id}"); var owner = await _repository.GetOwner(id); if (owner is null) return NotFound($"The property with id {id} do not exist"); var response = await _repository.DeleteOwner(owner); return response ? NoContent() : StatusCode((int)HttpStatusCode.NotModified); }, HttpErrorHandlerAsync ); /// <summary> /// Valida si existe un Owner por su Id /// </summary> /// <param name="id">Identificador del Owner</param> /// <returns>True si existe</returns> private bool OwnerExists(Guid id) => _repository.OwnerExists(id); private IActionResult HttpErrorHandler(Exception error) { _logger.LogError("An error has occurred: @error", error); return StatusCode((int)HttpStatusCode.InternalServerError, "An error has occurred, contact the administrator!"); } private async Task<IActionResult> HttpErrorHandlerAsync(Exception error) => await Task.FromResult(HttpErrorHandler(error)); } }
38.286486
131
0.559367
[ "MIT" ]
RockerInt/Properties
Services/Properties/Controllers/OwnersController.cs
7,086
C#
using System; using System.Net.Sockets; using Npgsql; using Com.Latipium.Engine.Data; using Com.Latipium.Engine.Logging; namespace Com.Latipium.Engine { public static class LatipiumEngine { public static void Start(ILatipiumServer server) { Context ctx = null; try { ctx = server.OpenDatabaseContext(); } catch (SocketException ex) { Log.Error(Log.Startup, "Unable to connect to database: {0}", ex.Message); Environment.Exit(1); } catch (PostgresException ex) { Log.Error(Log.Startup, "Unable to authenticate to database: {0}", ex.Message); Environment.Exit(1); } catch (Exception ex) { Log.Error(Log.Startup, "Unknown error while connecting to database: {0}", ex.Message); Console.Error.WriteLine(ex); Environment.Exit(1); } ctx.Database.EnsureCreated(); } } }
35.678571
102
0.575576
[ "MIT" ]
latipium/engine
Com.Latipium.Engine/LatipiumEngine.cs
999
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using DiabloCms.Entities.Models; using DiabloCms.Models.RequestModel.Categories; using DiabloCms.Models.ResponseModel.Categories; using DiabloCms.MsSql; using DiabloCms.Shared; using DiabloCms.Shared.ConstContent; using DiabloCms.UseCases.Base; using DiabloCms.UseCases.Contracts.Categories; using Microsoft.EntityFrameworkCore; namespace DiabloCms.UseCases.Services.Categories { using static ErrorMessagesService; public class CategoriesService : BaseService<Category>, ICategoriesService { public CategoriesService(CmsDbContext dbContext, IMapper mapper) : base(dbContext, mapper) { } public async Task<string> CreateAsync(CategoryRequastModel model) { var category = new Category { Name = model.Name, ParentCategoryName = model.ParentCategoryName, ShowInFilter = model.ShowInFilter }; await Data.AddAsync(category).ConfigureAwait(false); await Data.SaveChangesAsync().ConfigureAwait(false); return category.Id.ToString(); } public async Task<Result> UpdateAsync(Guid id, CategoryRequastModel model) { var category = await FindById(id) .ConfigureAwait(false); if (category == null) return NotFound; category.Name = model.Name; category.ParentCategoryName = model.ParentCategoryName; category.ShowInFilter = model.ShowInFilter; await Data.SaveChangesAsync() .ConfigureAwait(false); return Result.Success; } public async Task<Result> RemoveAsync(Guid id) { var category = await FindById(id) .ConfigureAwait(false); if (category == null) return NotFound; Data.Remove(category); await Data.SaveChangesAsync() .ConfigureAwait(false); return Result.Success; } public async Task<IEnumerable<CategoryResponseModel>> AllAsync() { return await Mapper .ProjectTo<CategoryResponseModel>(AllAsNoTracking) .ToListAsync() .ConfigureAwait(false); } public async Task<Category> FindById(Guid id) { return await All .Where(c => c.Id == id) .FirstOrDefaultAsync() .ConfigureAwait(false); } } }
29.727273
98
0.616972
[ "MIT" ]
eldiablo-1226/Diablo-Cms-Ecommerce
DiabloCms.UseCases/Services/Categories/CategoriesService.cs
2,618
C#
 namespace Droplet.CommandLine.Commands; public class CommandBase { protected List<string> Instructions = new(); public async virtual Task GenerateFileAsync(string dir, string fileName, string content, bool cover = false) { if (!Directory.Exists(dir)) { Directory.CreateDirectory(dir); } var filePath = Path.Combine(dir, fileName); if (!File.Exists(filePath) || cover) { await File.WriteAllTextAsync(filePath, content); Console.WriteLine(@$" 👍 generate file {fileName}."); } else { Console.WriteLine($" 📣 Skip exist file: {fileName}."); } } }
26.615385
112
0.58237
[ "Apache-2.0" ]
AterDev/ater.cli
src/CommandLine/Commands/CommandBase.cs
700
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("Timer Module")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Teknik")] [assembly: AssemblyProduct("Combot")] [assembly: AssemblyCopyright("Copyright © 2015")] [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("5c350b8e-5820-4034-9d67-49d2ddbfcc6f")] // 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:
37.5
84
0.750588
[ "BSD-3-Clause" ]
Rohanyadav028/Combot
Modules/Timer/Properties/AssemblyInfo.cs
1,278
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 waf-regional-2016-11-28.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.WAFRegional.Model { /// <summary> /// This is the response object from the DeletePermissionPolicy operation. /// </summary> public partial class DeletePermissionPolicyResponse : AmazonWebServiceResponse { } }
30.486486
110
0.737589
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/WAFRegional/Generated/Model/DeletePermissionPolicyResponse.cs
1,128
C#
using Lab2.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lab2.Automata { public class StateDescription { private Dictionary<SymbolBase, HashSet<StateDescription>> transitions = new Dictionary<SymbolBase, HashSet<StateDescription>>(); public string Name { get; set; } public bool IsStart { get; set; } public bool IsFinish { get; set; } public StateDescription(string name) { this.Name = name; this.IsStart = false; this.IsFinish = false; } public void AddNewTransition(SymbolBase label, StateDescription to) { if (!this.transitions.ContainsKey(label)) this.transitions[label] = new HashSet<StateDescription>(); this.transitions[label].Add(to); } public HashSet<StateDescription> FindNextStatesBySymbol(SymbolBase symbol) { HashSet<StateDescription> res = new HashSet<StateDescription>(); if (this.transitions.ContainsKey(symbol)) { foreach (StateDescription st in this.transitions[symbol]) res.UnionWith(st.StateClosure()); } return res; } public HashSet<StateDescription> StateClosure() { HashSet<StateDescription> stateClosure = new HashSet<StateDescription>(); HashSet<StateDescription> currentLevelStates = new HashSet<StateDescription>(); currentLevelStates.Add(this); while (currentLevelStates.Count != 0) { stateClosure.UnionWith(currentLevelStates); HashSet<StateDescription> newStates = new HashSet<StateDescription>(); foreach (StateDescription st in currentLevelStates) { if (st.transitions.ContainsKey(EpsilonSymbol.Instance)) newStates.UnionWith(st.transitions[EpsilonSymbol.Instance]); } newStates.ExceptWith(stateClosure); currentLevelStates = newStates; } return stateClosure; } public HashSet<SymbolBase> GetLabelsToState(StateDescription state) { HashSet<SymbolBase> result = new HashSet<SymbolBase>(); foreach (var pair in transitions) foreach (var st in pair.Value) if (st == state) { result.Add(pair.Key); } return result; } public void RemoveAllTransitionsTo(StateDescription state) { foreach (var pair in transitions) { pair.Value.Remove(state); } } } }
33.302326
136
0.572626
[ "MIT" ]
pugachAG/univ
SystemProgramming/Lab2/Lab2/Automata/StateDescription.cs
2,866
C#
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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 Gallio.Common.IO; using Gallio.Runtime.ProgressMonitoring; using Gallio.UI.Common.Policies; using Gallio.UI.ProgressMonitoring; namespace Gallio.Copy.Commands { public class CopyCommand : ICommand { private readonly string destinationFolder; private readonly string sourceFolder; private readonly IList<string> files; private readonly IFileSystem fileSystem; private readonly IUnhandledExceptionPolicy unhandledExceptionPolicy; public CopyCommand(string destinationFolder, string sourceFolder, IList<string> files, IFileSystem fileSystem, IUnhandledExceptionPolicy unhandledExceptionPolicy) { this.destinationFolder = destinationFolder; this.sourceFolder = sourceFolder; this.files = files; this.fileSystem = fileSystem; this.unhandledExceptionPolicy = unhandledExceptionPolicy; } public void Execute(IProgressMonitor progressMonitor) { if (files.Count == 0) return; using (progressMonitor.BeginTask("Copying files", files.Count)) { foreach (var file in files) { using (var subProgressMonitor = progressMonitor.CreateSubProgressMonitor(1)) CopyFile(subProgressMonitor, file); } } } private void CopyFile(IProgressMonitor progressMonitor, string filePath) { try { var destinationFilePath = Path.Combine(destinationFolder, filePath); progressMonitor.SetStatus(destinationFilePath); var sourceFilePath = Path.Combine(sourceFolder, filePath); var destinationDirectory = Path.GetDirectoryName(destinationFilePath); if (!fileSystem.DirectoryExists(destinationDirectory)) fileSystem.CreateDirectory(destinationDirectory); fileSystem.CopyFile(sourceFilePath, destinationFilePath, true); } catch (Exception ex) { unhandledExceptionPolicy.Report(string.Format("Error copying file '{0}'.", filePath), ex); } } } }
36.987805
106
0.650841
[ "ECL-2.0", "Apache-2.0" ]
citizenmatt/gallio
src/Extensions/Copy/Gallio.Copy/Commands/CopyCommand.cs
3,033
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Reflection.Metadata; using Internal.TypeSystem.Ecma; using ILCompiler.Dataflow; using ILCompiler.DependencyAnalysisFramework; using ILCompiler.Logging; namespace ILTrim.DependencyAnalysis { /// <summary> /// Class that aids in interning nodes of the dependency graph. /// </summary> public sealed class NodeFactory { IReadOnlySet<string> _trimAssemblies { get; } public TrimmerSettings Settings { get; } public ILCompiler.Logger Logger { get; } public FlowAnnotations FlowAnnotations { get; } public NodeFactory(IEnumerable<string> trimAssemblies, TrimmerSettings settings) { _trimAssemblies = new HashSet<string>(trimAssemblies); Settings = settings; Logger = new ILCompiler.Logger(Console.Out, isVerbose: false); FlowAnnotations = new FlowAnnotations(Logger, new ILProvider()); } /// <summary> /// Given a module-qualified token, get the dependency graph node that represent the token. /// </summary> public TokenBasedNode GetNodeForToken(EcmaModule module, EntityHandle handle) { switch (handle.Kind) { case HandleKind.TypeReference: return TypeReference(module, (TypeReferenceHandle)handle); case HandleKind.TypeDefinition: return TypeDefinition(module, (TypeDefinitionHandle)handle); case HandleKind.FieldDefinition: return FieldDefinition(module, (FieldDefinitionHandle)handle); case HandleKind.MethodDefinition: return MethodDefinition(module, (MethodDefinitionHandle)handle); case HandleKind.Parameter: return Parameter(module, (ParameterHandle)handle); case HandleKind.InterfaceImplementation: throw new NotImplementedException(); case HandleKind.MemberReference: return MemberReference(module, (MemberReferenceHandle)handle); case HandleKind.Constant: return Constant(module, (ConstantHandle)handle); case HandleKind.CustomAttribute: return CustomAttribute(module, (CustomAttributeHandle)handle); case HandleKind.DeclarativeSecurityAttribute: throw new NotImplementedException(); case HandleKind.StandaloneSignature: return StandaloneSignature(module, (StandaloneSignatureHandle)handle); case HandleKind.EventDefinition: return EventDefinition(module, (EventDefinitionHandle)handle); case HandleKind.PropertyDefinition: return PropertyDefinition(module, (PropertyDefinitionHandle)handle); case HandleKind.MethodImplementation: return MethodImplementation(module, (MethodImplementationHandle)handle); case HandleKind.ModuleReference: return ModuleReference(module, (ModuleReferenceHandle)handle); case HandleKind.TypeSpecification: return TypeSpecification(module, (TypeSpecificationHandle)handle); case HandleKind.AssemblyReference: throw new InvalidOperationException("Assembly references are not represented by token-based nodes."); case HandleKind.AssemblyFile: throw new NotImplementedException(); case HandleKind.ExportedType: throw new NotImplementedException(); case HandleKind.ManifestResource: return ManifestResource(module, (ManifestResourceHandle)handle); case HandleKind.GenericParameter: return GenericParameter(module, (GenericParameterHandle)handle); case HandleKind.MethodSpecification: return MethodSpecification(module, (MethodSpecificationHandle)handle); case HandleKind.GenericParameterConstraint: return GenericParameterConstraint(module, (GenericParameterConstraintHandle)handle); default: throw new NotImplementedException(); } } NodeCache<EcmaType, ConstructedTypeNode> _constructedTypes = new NodeCache<EcmaType, ConstructedTypeNode>(key => new ConstructedTypeNode(key)); public ConstructedTypeNode ConstructedType(EcmaType type) { return _constructedTypes.GetOrAdd(type); } NodeCache<EcmaType, ObjectGetTypeFlowDependenciesNode> _objectGetTypeFlowDependencies = new NodeCache<EcmaType, ObjectGetTypeFlowDependenciesNode>(key => new ObjectGetTypeFlowDependenciesNode(key)); public ObjectGetTypeFlowDependenciesNode ObjectGetTypeFlowDependencies(EcmaType type) { return _objectGetTypeFlowDependencies.GetOrAdd(type); } NodeCache<EcmaMethod, VirtualMethodUseNode> _virtualMethodUses = new NodeCache<EcmaMethod, VirtualMethodUseNode>(key => new VirtualMethodUseNode(key)); public VirtualMethodUseNode VirtualMethodUse(EcmaMethod method) { return _virtualMethodUses.GetOrAdd(method); } NodeCache<EcmaType, InterfaceUseNode> _interfaceUses = new NodeCache<EcmaType, InterfaceUseNode>(key => new InterfaceUseNode(key)); public InterfaceUseNode InterfaceUse(EcmaType type) { return _interfaceUses.GetOrAdd(type); } NodeCache<HandleKey<TypeReferenceHandle>, TypeReferenceNode> _typeReferences = new NodeCache<HandleKey<TypeReferenceHandle>, TypeReferenceNode>(key => new TypeReferenceNode(key.Module, key.Handle)); public TypeReferenceNode TypeReference(EcmaModule module, TypeReferenceHandle handle) { return _typeReferences.GetOrAdd(new HandleKey<TypeReferenceHandle>(module, handle)); } NodeCache<HandleKey<TypeDefinitionHandle>, TypeDefinitionNode> _typeDefinitions = new NodeCache<HandleKey<TypeDefinitionHandle>, TypeDefinitionNode>(key => new TypeDefinitionNode(key.Module, key.Handle)); public TypeDefinitionNode TypeDefinition(EcmaModule module, TypeDefinitionHandle handle) { return _typeDefinitions.GetOrAdd(new HandleKey<TypeDefinitionHandle>(module, handle)); } NodeCache<HandleKey<MethodImplementationHandle>, MethodImplementationNode> _methodImplementations = new NodeCache<HandleKey<MethodImplementationHandle>, MethodImplementationNode>(key => new MethodImplementationNode(key.Module, key.Handle)); public MethodImplementationNode MethodImplementation(EcmaModule module, MethodImplementationHandle handle) { return _methodImplementations.GetOrAdd(new HandleKey<MethodImplementationHandle>(module, handle)); } NodeCache<HandleKey<FieldDefinitionHandle>, FieldDefinitionNode> _fieldDefinitions = new NodeCache<HandleKey<FieldDefinitionHandle>, FieldDefinitionNode>(key => new FieldDefinitionNode(key.Module, key.Handle)); public FieldDefinitionNode FieldDefinition(EcmaModule module, FieldDefinitionHandle handle) { return _fieldDefinitions.GetOrAdd(new HandleKey<FieldDefinitionHandle>(module, handle)); } NodeCache<HandleKey<MethodDefinitionHandle>, MethodDefinitionNode> _methodDefinitions = new NodeCache<HandleKey<MethodDefinitionHandle>, MethodDefinitionNode>(key => new MethodDefinitionNode(key.Module, key.Handle)); public MethodDefinitionNode MethodDefinition(EcmaModule module, MethodDefinitionHandle handle) { return _methodDefinitions.GetOrAdd(new HandleKey<MethodDefinitionHandle>(module, handle)); } NodeCache<HandleKey<MethodDefinitionHandle>, MethodBodyNode> _methodBodies = new NodeCache<HandleKey<MethodDefinitionHandle>, MethodBodyNode>(key => new MethodBodyNode(key.Module, key.Handle)); public MethodBodyNode MethodBody(EcmaModule module, MethodDefinitionHandle handle) { return _methodBodies.GetOrAdd(new HandleKey<MethodDefinitionHandle>(module, handle)); } NodeCache<HandleKey<MemberReferenceHandle>, MemberReferenceNode> _memberReferences = new NodeCache<HandleKey<MemberReferenceHandle>, MemberReferenceNode>(key => new MemberReferenceNode(key.Module, key.Handle)); public MemberReferenceNode MemberReference(EcmaModule module, MemberReferenceHandle handle) { return _memberReferences.GetOrAdd(new HandleKey<MemberReferenceHandle>(module, handle)); } NodeCache<HandleKey<ParameterHandle>, ParameterNode> _parameters = new NodeCache<HandleKey<ParameterHandle>, ParameterNode>(key => new ParameterNode(key.Module, key.Handle)); public ParameterNode Parameter(EcmaModule module, ParameterHandle handle) { return _parameters.GetOrAdd(new HandleKey<ParameterHandle>(module, handle)); } NodeCache<HandleKey<ConstantHandle>, ConstantNode> _constants = new NodeCache<HandleKey<ConstantHandle>, ConstantNode>(key => new ConstantNode(key.Module, key.Handle)); public ConstantNode Constant(EcmaModule module, ConstantHandle handle) { return _constants.GetOrAdd(new HandleKey<ConstantHandle>(module, handle)); } NodeCache<HandleKey<CustomAttributeHandle>, CustomAttributeNode> _customAttributes = new NodeCache<HandleKey<CustomAttributeHandle>, CustomAttributeNode>(key => new CustomAttributeNode(key.Module, key.Handle)); public CustomAttributeNode CustomAttribute(EcmaModule module, CustomAttributeHandle handle) { return _customAttributes.GetOrAdd(new HandleKey<CustomAttributeHandle>(module, handle)); } NodeCache<HandleKey<StandaloneSignatureHandle>, StandaloneSignatureNode> _standaloneSignatures = new NodeCache<HandleKey<StandaloneSignatureHandle>, StandaloneSignatureNode>(key => new StandaloneSignatureNode(key.Module, key.Handle)); public StandaloneSignatureNode StandaloneSignature(EcmaModule module, StandaloneSignatureHandle handle) { return _standaloneSignatures.GetOrAdd(new HandleKey<StandaloneSignatureHandle>(module, handle)); } NodeCache<HandleKey<EventDefinitionHandle>, EventDefinitionNode> _eventDefinitions = new NodeCache<HandleKey<EventDefinitionHandle>, EventDefinitionNode>(key => new EventDefinitionNode(key.Module, key.Handle)); public EventDefinitionNode EventDefinition(EcmaModule module, EventDefinitionHandle handle) { return _eventDefinitions.GetOrAdd(new HandleKey<EventDefinitionHandle>(module, handle)); } NodeCache<HandleKey<PropertyDefinitionHandle>, PropertyDefinitionNode> _propertyDefinitions = new NodeCache<HandleKey<PropertyDefinitionHandle>, PropertyDefinitionNode>(key => new PropertyDefinitionNode(key.Module, key.Handle)); public PropertyDefinitionNode PropertyDefinition(EcmaModule module, PropertyDefinitionHandle handle) { return _propertyDefinitions.GetOrAdd(new HandleKey<PropertyDefinitionHandle>(module, handle)); } NodeCache<EcmaModule, ModuleDefinitionNode> _moduleDefinitions = new NodeCache<EcmaModule, ModuleDefinitionNode>( key => new ModuleDefinitionNode(key)); public ModuleDefinitionNode ModuleDefinition(EcmaModule module) { return _moduleDefinitions.GetOrAdd(module); } NodeCache<HandleKey<MethodSpecificationHandle>, MethodSpecificationNode> _methodSpecifications = new NodeCache<HandleKey<MethodSpecificationHandle>, MethodSpecificationNode>(key => new MethodSpecificationNode(key.Module, key.Handle)); public MethodSpecificationNode MethodSpecification(EcmaModule module, MethodSpecificationHandle handle) { return _methodSpecifications.GetOrAdd(new HandleKey<MethodSpecificationHandle>(module, handle)); } NodeCache<HandleKey<TypeSpecificationHandle>, TypeSpecificationNode> _typeSpecifications = new NodeCache<HandleKey<TypeSpecificationHandle>, TypeSpecificationNode>(key => new TypeSpecificationNode(key.Module, key.Handle)); public TypeSpecificationNode TypeSpecification(EcmaModule module, TypeSpecificationHandle handle) { return _typeSpecifications.GetOrAdd(new HandleKey<TypeSpecificationHandle>(module, handle)); } NodeCache<EcmaModule, AssemblyDefinitionNode> _assemblyDefinitions = new NodeCache<EcmaModule, AssemblyDefinitionNode>( key => new AssemblyDefinitionNode(key)); public AssemblyDefinitionNode AssemblyDefinition(EcmaModule module) { return _assemblyDefinitions.GetOrAdd(module); } NodeCache<HandleKey<AssemblyReferenceValue>, AssemblyReferenceNode> _assemblyReferences = new NodeCache<HandleKey<AssemblyReferenceValue>, AssemblyReferenceNode>(key => new AssemblyReferenceNode(key.Module, key.Handle.Reference)); public AssemblyReferenceNode AssemblyReference(EcmaModule module, EcmaAssembly reference) { return _assemblyReferences.GetOrAdd(new HandleKey<AssemblyReferenceValue>(module, new AssemblyReferenceValue(reference))); } NodeCache<HandleKey<ModuleReferenceHandle>, ModuleReferenceNode> _moduleReferences = new NodeCache<HandleKey<ModuleReferenceHandle>, ModuleReferenceNode>(key => new ModuleReferenceNode(key.Module, key.Handle)); public ModuleReferenceNode ModuleReference(EcmaModule module, ModuleReferenceHandle handle) { return _moduleReferences.GetOrAdd(new HandleKey<ModuleReferenceHandle>(module, handle)); } NodeCache<HandleKey<ManifestResourceHandle>, ManifestResourceNode> _manifestResources = new NodeCache<HandleKey<ManifestResourceHandle>, ManifestResourceNode>(key => new ManifestResourceNode(key.Module, key.Handle)); public ManifestResourceNode ManifestResource(EcmaModule module, ManifestResourceHandle handle) { return _manifestResources.GetOrAdd(new HandleKey<ManifestResourceHandle>(module, handle)); } NodeCache<HandleKey<GenericParameterHandle>, GenericParameterNode> _genericParameters = new NodeCache<HandleKey<GenericParameterHandle>, GenericParameterNode>(key => new GenericParameterNode(key.Module, key.Handle)); public GenericParameterNode GenericParameter(EcmaModule module, GenericParameterHandle handle) { return _genericParameters.GetOrAdd(new HandleKey<GenericParameterHandle>(module, handle)); } NodeCache<HandleKey<GenericParameterConstraintHandle>, GenericParameterConstraintNode> _genericParameterConstraints = new NodeCache<HandleKey<GenericParameterConstraintHandle>, GenericParameterConstraintNode>(key => new GenericParameterConstraintNode(key.Module, key.Handle)); public GenericParameterConstraintNode GenericParameterConstraint(EcmaModule module, GenericParameterConstraintHandle handle) { return _genericParameterConstraints.GetOrAdd(new HandleKey<GenericParameterConstraintHandle>(module, handle)); } public bool IsModuleTrimmed(EcmaModule module) { return _trimAssemblies.Contains(module.Assembly.GetName().Name); } public bool IsModuleTrimmedInLibraryMode() { return Settings.LibraryMode; } private struct HandleKey<T> : IEquatable<HandleKey<T>> where T : struct, IEquatable<T> { public readonly EcmaModule Module; public readonly T Handle; public HandleKey(EcmaModule module, T handle) => (Module, Handle) = (module, handle); public override bool Equals(object obj) => obj is HandleKey<T> key && Equals(key); public bool Equals(HandleKey<T> other) { return Handle.Equals(other.Handle) && Module == other.Module; } public override int GetHashCode() { return HashCode.Combine(Handle, Module.MetadataReader); } } private struct NodeCache<TKey, TValue> { private Func<TKey, TValue> _creator; #if SINGLE_THREADED private Dictionary<TKey, TValue> _cache; #else private ConcurrentDictionary<TKey, TValue> _cache; #endif public NodeCache(Func<TKey, TValue> creator) { _creator = creator; #if SINGLE_THREADED _cache = new Dictionary<TKey, TValue>(); #else _cache = new ConcurrentDictionary<TKey, TValue>(); #endif } public TValue GetOrAdd(TKey key) { #if SINGLE_THREADED if (_cache.TryGetValue(key, out var value)) return value; _cache[key] = value = _creator(key); return value; #else return _cache.GetOrAdd(key, _creator); #endif } } } }
49.727273
158
0.681126
[ "MIT" ]
MichalStrehovsky/iltrim
src/coreclr/tools/ILTrim/ILTrim/DependencyAnalysis/NodeFactory.cs
18,053
C#
using Boa.Constrictor.RestSharp; using FluentAssertions; using Moq; using NUnit.Framework; using RestSharp; using System; using System.Collections.Generic; namespace Boa.Constrictor.UnitTests.RestSharp { [TestFixture] public class RequestDataTest { [Test] public void Init_Basic() { var clientUri = new Uri("https://www.pl.com"); var resource = "/path/to/thing"; var requestMethod = Method.GET; var clientMock = new Mock<IRestClient>(); clientMock.Setup(x => x.BaseUrl).Returns(clientUri); clientMock.Setup(x => x.BuildUri(It.IsAny<IRestRequest>())).Returns(clientUri); var request = new RestRequest(resource, requestMethod); var data = new RequestData(request, clientMock.Object); data.Method.Should().Be(requestMethod.ToString()); data.Uri.Should().Be(clientUri.ToString()); data.Resource.Should().Be(resource); data.Parameters.Should().BeEmpty(); data.Body.Should().BeNull(); } [Test] public void Init_Full() { var clientUri = new Uri("https://www.pl.com"); var resource = "/path/to/thing"; var requestMethod = Method.GET; #pragma warning disable 0618 var parameters = new List<Parameter>() { new Parameter("p1", "hello", ParameterType.HttpHeader), new Parameter("p2", "goodbye", ParameterType.Cookie), }; var body = new RequestBody("json", "body", "value"); #pragma warning restore 0618 var clientMock = new Mock<IRestClient>(); clientMock.Setup(x => x.BaseUrl).Returns(clientUri); clientMock.Setup(x => x.BuildUri(It.IsAny<IRestRequest>())).Returns(clientUri); var requestMock = new Mock<IRestRequest>(); requestMock.Setup(x => x.Method).Returns(requestMethod); requestMock.Setup(x => x.Resource).Returns(resource); requestMock.Setup(x => x.Parameters).Returns(parameters); requestMock.Setup(x => x.Body).Returns(body); var data = new RequestData(requestMock.Object, clientMock.Object); data.Method.Should().Be(requestMethod.ToString()); data.Uri.Should().Be(clientUri.ToString()); data.Resource.Should().Be(resource); data.Parameters.Count.Should().Be(2); data.Parameters[0].Name.Should().Be("p1"); data.Parameters[0].Value.Should().Be("hello"); data.Parameters[0].Type.Should().Be(ParameterType.HttpHeader.ToString()); data.Parameters[1].Name.Should().Be("p2"); data.Parameters[1].Value.Should().Be("goodbye"); data.Parameters[1].Type.Should().Be(ParameterType.Cookie.ToString()); data.Body.Should().Be(body); } } }
37.518987
91
0.585695
[ "Apache-2.0" ]
AngieEuphoria/Boa.Constrictor
Boa.Constrictor.UnitTests/RestSharp/Serialization/RequestDataTest.cs
2,966
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; namespace Amazon.CloudFormation.Model.Internal.MarshallTransformations { /// <summary> /// DeleteStackInstances Request Marshaller /// </summary> public class DeleteStackInstancesRequestMarshaller : IMarshaller<IRequest, DeleteStackInstancesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteStackInstancesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteStackInstancesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudFormation"); request.Parameters.Add("Action", "DeleteStackInstances"); request.Parameters.Add("Version", "2010-05-15"); if(publicRequest != null) { if(publicRequest.IsSetAccounts()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Accounts) { request.Parameters.Add("Accounts" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetDeploymentTargets()) { if(publicRequest.DeploymentTargets.IsSetAccounts()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.Accounts) { request.Parameters.Add("DeploymentTargets" + "." + "Accounts" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } if(publicRequest.DeploymentTargets.IsSetOrganizationalUnitIds()) { int publicRequestDeploymentTargetslistValueIndex = 1; foreach(var publicRequestDeploymentTargetslistValue in publicRequest.DeploymentTargets.OrganizationalUnitIds) { request.Parameters.Add("DeploymentTargets" + "." + "OrganizationalUnitIds" + "." + "member" + "." + publicRequestDeploymentTargetslistValueIndex, StringUtils.FromString(publicRequestDeploymentTargetslistValue)); publicRequestDeploymentTargetslistValueIndex++; } } } if(publicRequest.IsSetOperationId()) { request.Parameters.Add("OperationId", StringUtils.FromString(publicRequest.OperationId)); } else if(!(publicRequest.IsSetOperationId())) { request.Parameters.Add("OperationId", StringUtils.FromString(Guid.NewGuid().ToString())); } if(publicRequest.IsSetOperationPreferences()) { if(publicRequest.OperationPreferences.IsSetFailureToleranceCount()) { request.Parameters.Add("OperationPreferences" + "." + "FailureToleranceCount", StringUtils.FromInt(publicRequest.OperationPreferences.FailureToleranceCount)); } if(publicRequest.OperationPreferences.IsSetFailureTolerancePercentage()) { request.Parameters.Add("OperationPreferences" + "." + "FailureTolerancePercentage", StringUtils.FromInt(publicRequest.OperationPreferences.FailureTolerancePercentage)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentCount()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentCount", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentCount)); } if(publicRequest.OperationPreferences.IsSetMaxConcurrentPercentage()) { request.Parameters.Add("OperationPreferences" + "." + "MaxConcurrentPercentage", StringUtils.FromInt(publicRequest.OperationPreferences.MaxConcurrentPercentage)); } if(publicRequest.OperationPreferences.IsSetRegionOrder()) { int publicRequestOperationPreferenceslistValueIndex = 1; foreach(var publicRequestOperationPreferenceslistValue in publicRequest.OperationPreferences.RegionOrder) { request.Parameters.Add("OperationPreferences" + "." + "RegionOrder" + "." + "member" + "." + publicRequestOperationPreferenceslistValueIndex, StringUtils.FromString(publicRequestOperationPreferenceslistValue)); publicRequestOperationPreferenceslistValueIndex++; } } } if(publicRequest.IsSetRegions()) { int publicRequestlistValueIndex = 1; foreach(var publicRequestlistValue in publicRequest.Regions) { request.Parameters.Add("Regions" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue)); publicRequestlistValueIndex++; } } if(publicRequest.IsSetRetainStacks()) { request.Parameters.Add("RetainStacks", StringUtils.FromBool(publicRequest.RetainStacks)); } if(publicRequest.IsSetStackSetName()) { request.Parameters.Add("StackSetName", StringUtils.FromString(publicRequest.StackSetName)); } } return request; } private static DeleteStackInstancesRequestMarshaller _instance = new DeleteStackInstancesRequestMarshaller(); internal static DeleteStackInstancesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteStackInstancesRequestMarshaller Instance { get { return _instance; } } } }
49.933735
240
0.582097
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/CloudFormation/Generated/Model/Internal/MarshallTransformations/DeleteStackInstancesRequestMarshaller.cs
8,289
C#
// Copyright (c) 2019 Lykke Corp. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using Microsoft.Data.SqlClient; using System.Linq; using System.Threading.Tasks; using Dapper; using MarginTrading.Backend.Core.Orders; using MarginTrading.Backend.Core.Repositories; using MarginTrading.SqlRepositories.Entities; namespace MarginTrading.SqlRepositories.Repositories { public class OrdersHistoryRepository : IOrdersHistoryRepository { private readonly string _connectionString; private readonly int _getLastSnapshotTimeoutS; private readonly string _select = @" ;WITH filteredOrderHist AS ( SELECT *, CASE [Status] WHEN 'Placed' THEN 0 WHEN 'Inactive'THEN 1 WHEN 'Active'THEN 2 WHEN 'ExecutionStarted'THEN 3 WHEN 'Executed'THEN 4 WHEN 'Canceled'THEN 5 WHEN 'Rejected'THEN 6 WHEN 'Expired'THEN 7 ELSE 99 END as StatusOrder FROM [{0}] oh (NOLOCK) WHERE oh.ModifiedTimestamp > @Timestamp ), filteredOrderHistWithRowNumber AS ( SELECT *, ROW_NUMBER() OVER (PARTITION BY Id ORDER BY [ModifiedTimestamp] DESC, StatusOrder DESC ) AS RowNumber FROM filteredOrderHist ) SELECT * FROM filteredOrderHistWithRowNumber WHERE RowNumber = 1"; public OrdersHistoryRepository(string connectionString, string tableName, int getLastSnapshotTimeoutS) { _connectionString = connectionString; _select = string.Format(_select, tableName); _getLastSnapshotTimeoutS = getLastSnapshotTimeoutS; } public async Task<IReadOnlyList<IOrderHistory>> GetLastSnapshot(DateTime @from) { using (var conn = new SqlConnection(_connectionString)) { var data = await conn.QueryAsync<OrderHistoryEntity>(_select, new { Timestamp = @from }, commandTimeout: _getLastSnapshotTimeoutS); return data.Cast<IOrderHistory>().ToList(); } } } }
33.492537
147
0.634135
[ "MIT-0" ]
LykkeBusiness/MT
src/MarginTrading.SqlRepositories/Repositories/OrdersHistoryRepository.cs
2,244
C#
namespace CodeComb.CodeAnalysis.OmniSharp.Models { // [OmniSharpEndpoint(OmnisharpEndpoints.NavigateUp, typeof(NavigateUpRequest), typeof(NavigateResponse))] public class NavigateUpRequest : Request { } }
22.3
110
0.757848
[ "Apache-2.0" ]
CodeComb/CodeComb.CodeAnalysis.OmniSharp
src/CodeComb.CodeAnalysis.OmniSharp/Models/v1/NavigateUpRequest.cs
223
C#
using ApertureLabs.Selenium.Attributes; using OpenQA.Selenium; using OpenQA.Selenium.Support.UI; using System; using System.Collections.Generic; namespace ApertureLabs.Selenium.PageObjects { /// <summary> /// A PageObject whose url has route parameters. /// </summary> /// <seealso cref="ApertureLabs.Selenium.PageObjects.IParameterPageObject" /> /// <seealso cref="System.IDisposable" /> public abstract class ParameterPageObject : PageObject, IParameterPageObject { #region Constructor /// <summary> /// Initializes a new instance of the <see cref="ParameterPageObject"/> class. /// </summary> /// <param name="driver">The driver.</param> /// <param name="baseUri">The base uri.</param> /// <param name="route">The route.</param> public ParameterPageObject(IWebDriver driver, Uri baseUri, UriTemplate route) : base(driver, baseUri, route) { } #endregion #region Methods /// <summary> /// Gets the URI information. /// </summary> /// <returns></returns> /// <exception cref="Exception">Need to call Load first.</exception> public virtual UriTemplateMatch GetUriInfo() { if (Uri == null) throw new Exception("Need to call Load first."); var authority = new Uri(Uri.GetLeftPart(UriPartial.Authority)); var path = new Uri( Uri.GetComponents( UriComponents.PathAndQuery, UriFormat.Unescaped)); return Route.Match(authority, path); } /// <summary> /// Replaces the variables in the <see cref="IPageObject.Route" /> with /// the parameters and navigates to that url (if not on it already) /// then calls <see cref="ILoadableComponent.Load" />. /// </summary> /// <param name="parameters">The parameters.</param> /// <returns></returns> /// <exception cref="ArgumentNullException"> /// Thrown if the <see cref="IDictionary{TKey, TValue}"/> argument is /// null. /// </exception> public virtual ILoadableComponent Load(IDictionary<string, string> parameters) { if (parameters == null) throw new ArgumentNullException(nameof(parameters)); // Need to extract the authority section of the route template. var uri = Route.BindByName(BaseUri, parameters); // Navigate to the url. var alreadyOnUrl = String.Equals( uri.ToString(), WrappedDriver.Url, StringComparison.OrdinalIgnoreCase); if (!alreadyOnUrl) WrappedDriver.Navigate().GoToUrl(uri); return Load(); } #endregion } }
33.011236
86
0.571477
[ "Apache-2.0" ]
sai09451/ApertureLabs.Selenium
ApertureLabs.Selenium/PageObjects/ParameterPageObject.cs
2,940
C#
/* * Copyright © 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 *· * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an “AS IS” BASIS, without * warranties or conditions of any kind, EITHER EXPRESS OR IMPLIED. See the * License for the specific language governing permissions and limitations * under the License. */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace VmDirInterop.SuperLogging { [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct LDAP_SEARCH_INFO { [MarshalAs(UnmanagedType.LPWStr)] public String pwszAttributes; [MarshalAs(UnmanagedType.LPWStr)] public String pwszBaseDN; [MarshalAs(UnmanagedType.LPWStr)] public String pwszScope; [MarshalAs(UnmanagedType.LPWStr)] public String pwszIndexResults; [MarshalAs(UnmanagedType.U4)] public UInt32 dwScanned; [MarshalAs(UnmanagedType.U4)] public UInt32 dwReturned; } [StructLayout(LayoutKind.Explicit, CharSet = CharSet.Auto)] public struct LDAP_OPERATION_INFO { [FieldOffset(0)] public LDAP_SEARCH_INFO searchInfo; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct VMDIR_SUPERLOG_ENTRY_LDAPOPERATION { [MarshalAs(UnmanagedType.LPWStr)] public String pwszLoginDN; [MarshalAs(UnmanagedType.LPWStr)] public String pwszClientIP; [MarshalAs(UnmanagedType.LPWStr)] public String pwszServerIP; [MarshalAs(UnmanagedType.LPWStr)] public String pwszOperation; [MarshalAs(UnmanagedType.LPWStr)] public String pwszString; [MarshalAs(UnmanagedType.U4)] public UInt32 dwClientPort; [MarshalAs(UnmanagedType.U4)] public UInt32 dwServerPort; [MarshalAs(UnmanagedType.U4)] public UInt32 dwErrorCode; [MarshalAs(UnmanagedType.U8)] public UInt64 iStartTime; [MarshalAs(UnmanagedType.U8)] public UInt64 iEndTime; [MarshalAs(UnmanagedType.U4)] public UInt32 opType; public LDAP_OPERATION_INFO opInfo; } [StructLayout(LayoutKind.Sequential)] public struct VMDIR_SUPERLOG_ENTRY_LDAPOPERATION_ARRAY { [MarshalAs(UnmanagedType.U4)] public UInt32 dwCount; public IntPtr entries; } [StructLayout(LayoutKind.Sequential)] public struct VMDIR_SUPERLOG_TABLE_COLUMN_SET { [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U4, SizeConst = 7)] public UInt32[] isColumnSet; } [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] public struct VMDIR_SUPERLOG_TABLE_ROW { [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.LPStr, SizeConst = 7)] public string[] colVals; [MarshalAs(UnmanagedType.U8)] public UInt64 totalTime; [MarshalAs(UnmanagedType.U4)] public UInt32 count; } [StructLayout(LayoutKind.Sequential)] public struct VMDIR_SUPERLOG_TABLE { [MarshalAs(UnmanagedType.U4)] public UInt32 numRows; public IntPtr cols; public IntPtr rows; } }
32.36036
96
0.687918
[ "Apache-2.0" ]
WestCope/lightwave
lwraft/interop/csharp/VmDirInterop/VmDirInterop/SuperLogging/SuperLoggingStructs.cs
3,604
C#
using JT905.Protocol.Extensions; using JT905.Protocol.Interfaces; using JT905.Protocol.MessagePack; using System; using System.Collections.Generic; using System.Text; using System.Text.Json; namespace JT905.Protocol.MessageBody { /// <summary> /// 中心解除报警 /// </summary> public class JT905_0x8B0B : JT905Bodies { public override ushort MsgId => (ushort)Enums.JT905MsgId.中心解除报警; public override string Description => "中心解除报警"; public override bool SkipSerialization { get; set; } = true; } }
21.730769
72
0.672566
[ "MIT" ]
SmallChi/JT905
src/JT905.Protocol/MessageBody/JT905_0x8B0B.cs
603
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Xe.Tools.Components.AnimationEditor.Commands { internal interface ICommand { void Execute(); void UnExecute(); } }
18.066667
54
0.712177
[ "MIT" ]
XeEngine/XeTools
Xe.Tools.Components.AnimationEditor/Commands/ICommand.cs
273
C#
using System; using System.Text; using JetBrains.Annotations; namespace fNbt { /// <summary> A tag containing a single byte. </summary> public sealed class NbtByte : NbtTag { /// <summary> Type of this tag (Byte). </summary> public override NbtTagType TagType { get { return NbtTagType.Byte; } } /// <summary> Value/payload of this tag (a single byte). </summary> public byte Value { get; set; } /// <summary> Creates an unnamed NbtByte tag with the default value of 0. </summary> public NbtByte() { } /// <summary> Creates an unnamed NbtByte tag with the given value. </summary> /// <param name="value"> Value to assign to this tag. </param> public NbtByte(byte value) : this(null, value) { } /// <summary> Creates an NbtByte tag with the given name and the default value of 0. </summary> /// <param name="tagName"> Name to assign to this tag. May be <c>null</c>. </param> public NbtByte([CanBeNull] string tagName) : this(tagName, 0) { } /// <summary> Creates an NbtByte tag with the given name and value. </summary> /// <param name="tagName"> Name to assign to this tag. May be <c>null</c>. </param> /// <param name="value"> Value to assign to this tag. </param> public NbtByte([CanBeNull] string tagName, byte value) { name = tagName; Value = value; } /// <summary> Creates a copy of given NbtByte tag. </summary> /// <param name="other"> Tag to copy. May not be <c>null</c>. </param> /// <exception cref="ArgumentNullException"> <paramref name="other"/> is <c>null</c>. </exception> public NbtByte([NotNull] NbtByte other) { if (other == null) throw new ArgumentNullException(nameof(other)); name = other.name; Value = other.Value; } internal override bool ReadTag(NbtBinaryReader readStream) { if (readStream.Selector != null && !readStream.Selector(this)) { readStream.ReadByte(); return false; } Value = readStream.ReadByte(); return true; } internal override void SkipTag(NbtBinaryReader readStream) { readStream.ReadByte(); } internal override void WriteTag(NbtBinaryWriter writeStream) { writeStream.Write(NbtTagType.Byte); if (Name == null) throw new NbtFormatException("Name is null"); writeStream.Write(Name); writeStream.Write(Value); } internal override void WriteData(NbtBinaryWriter writeStream) { writeStream.Write(Value); } /// <inheritdoc /> public override object Clone() { return new NbtByte(this); } internal override void PrettyPrint(StringBuilder sb, string indentString, int indentLevel) { for (int i = 0; i < indentLevel; i++) { sb.Append(indentString); } sb.Append("TAG_Byte"); if (!String.IsNullOrEmpty(Name)) { sb.AppendFormat("(\"{0}\")", Name); } sb.Append(": "); sb.Append(Value); } } }
33.555556
106
0.564419
[ "BSD-3-Clause" ]
fragmer/fNbt
fNbt/Tags/NbtByte.cs
3,324
C#
using System; using System.Text; using System.Text.RegularExpressions; using System.Threading; using NUnit.Framework; using System.Collections.Generic; using System.IO; using System.Xml; using System.Xml.Serialization; using Newtonsoft.Json; using Excel = Microsoft.Office.Interop.Excel; using System.Linq; namespace WebAddressbookTests { [TestFixture] public class GroupCreationTests : GroupTestBase { //генератор случайных строк public static IEnumerable<GroupData> RandomGroupDataProvider() { List<GroupData> groups = new List<GroupData>(); for (int i = 0; i < 5; i++) { groups.Add(new GroupData(GenerateRandomString(30)) { Header = GenerateRandomString(100), Footer = GenerateRandomString(100) }); } return groups; } //чтение данных из файла .csv public static IEnumerable<GroupData> GroupDataFromCsvFile() { List<GroupData> groups = new List<GroupData>(); string[] lines = File.ReadAllLines(@"groups.csv"); foreach (string l in lines) { string[] parts = l.Split(';'); groups.Add(new GroupData(parts[0]) { Header = parts[1], Footer = parts[2] }); } return groups; } //чтение данных из файла .xml public static IEnumerable<GroupData> GroupDataFromXmlFile() { return (List<GroupData>) new XmlSerializer(typeof(List<GroupData>)) .Deserialize(new StreamReader(@"groups.xml")); } //чтение данных из файла .json public static IEnumerable<GroupData> GroupDataFromJsonFile() { return JsonConvert.DeserializeObject<List<GroupData>>( File.ReadAllText(@"groups.json")); } //чтение данных из файла.xls public static IEnumerable<GroupData> GroupDataFromExcelFile() { List<GroupData> groups = new List<GroupData>(); Excel.Application app = new Excel.Application(); Excel.Workbook wb = app.Workbooks.Open(Path.Combine(Directory.GetCurrentDirectory(), @"groups.xlsx")); Excel.Worksheet sheet = wb.ActiveSheet; Excel.Range range = sheet.UsedRange; for (int i = 1; i <= range.Rows.Count; i++) { groups.Add(new GroupData() { Name = range.Cells[i, 1].Value, Header = range.Cells[i, 2].Value, Footer = range.Cells[i, 3].Value }); } wb.Close(); app.Visible = false; app.Quit(); return groups; } //заполнить все поля; данные из файла .xml [Test, TestCaseSource("GroupDataFromXmlFile")] public void GroupCreationTest_AllFieldsXml(GroupData group) { //GroupData group = new GroupData("aaa") //{ // Header = "bbb", // Footer = "ccc" //}; //List<GroupData> oldGroups = app.Groups.GetGroupList(); List<GroupData> oldGroups = GroupData.GetAll(); app.Groups.Create(group); oldGroups.Add(group); //Assert.AreEqual(oldGroups.Count + 1, app.Groups.GetGroupCount()); //List<GroupData> newGroups = app.Groups.GetGroupList(); List<GroupData> newGroups = GroupData.GetAll(); oldGroups.Sort(); newGroups.Sort(); Assert.AreEqual(oldGroups, newGroups); //app.Auth.Logout(); } //заполнить все поля; данные из файла .json [Test, TestCaseSource("GroupDataFromJsonFile")] public void GroupCreationTest_AllFieldsJson(GroupData group) { //List<GroupData> oldGroups = app.Groups.GetGroupList(); List<GroupData> oldGroups = GroupData.GetAll(); app.Groups.Create(group); oldGroups.Add(group); //List<GroupData> newGroups = app.Groups.GetGroupList(); List<GroupData> newGroups = GroupData.GetAll(); oldGroups.Sort(); newGroups.Sort(); Assert.AreEqual(oldGroups, newGroups); } //[Test] //public void TestDBConnectivity() //{ // //DateTime start = DateTime.Now; // //List<GroupData> fromUI = app.Groups.GetGroupList(); // //DateTime end = DateTime.Now; // //System.Console.Out.WriteLine(end.Subtract(start)); // //start = DateTime.Now; // //List<GroupData> fromDB = GroupData.GetAll(); // //end = DateTime.Now; // //System.Console.Out.WriteLine(end.Subtract(start)); // foreach(ContactData contact in GroupData.GetAll()[0].GetContacts()) // { // System.Console.Out.WriteLine(contact); // } //} //[Test] ////оставить все поля пустыми //public void GroupCreationTest_EmptyFields() //{ // GroupData group = new GroupData("") // { // Header = "", // Footer = "" // }; // List<GroupData> oldGroups = app.Groups.GetGroupList(); // app.Groups.Create(group); // //Assert.AreEqual(oldGroups.Count + 1, app.Groups.GetGroupCount()); // List<GroupData> newGroups = app.Groups.GetGroupList(); // oldGroups.Add(group); // oldGroups.Sort(); // newGroups.Sort(); // Assert.AreEqual(oldGroups, newGroups); // //app.Auth.Logout(); //} //[Test] ////заполнить поля спецсимволами //public void GroupCreationTest_SpecCharFields() //{ // GroupData group = new GroupData("$$$") // { // Header = "***", // Footer = "&&&" // }; // List<GroupData> oldGroups = app.Groups.GetGroupList(); // app.Groups.Create(group); // //Assert.AreEqual(oldGroups.Count + 1, app.Groups.GetGroupCount()); // List<GroupData> newGroups = app.Groups.GetGroupList(); // oldGroups.Add(group); // oldGroups.Sort(); // newGroups.Sort(); // Assert.AreEqual(oldGroups, newGroups); // //app.Auth.Logout(); //} //[Test] //заполнить все поля //public void GroupCreationTest_BadName() //{ // GroupData group = new GroupData("a'a"); // group.Header = "bbb"; // group.Footer = "ccc"; // List<GroupData> oldGroups = app.Groups.GetGroupList(); // app.Groups.Create(group); // //Assert.AreEqual(oldGroups.Count + 1, app.Groups.GetGroupCount()); // List<GroupData> newGroups = app.Groups.GetGroupList(); // oldGroups.Add(group); // oldGroups.Sort(); // newGroups.Sort(); // Assert.AreEqual(oldGroups, newGroups); // //app.Auth.Logout(); //} } }
32.131579
114
0.525662
[ "Apache-2.0" ]
azagorodskih/csharp_training
addressbook-web-tests/addressbook-web-tests/tests/GroupCreationTests.cs
7,549
C#
using System; using System.Text; using FluentAssertions; using NUnit.Framework; namespace Newbe.ObjectVisitor.Tests { public class LambdaTest { [Test] public void NoExtendObj() { var obj = Yueluo.Create(); var sb = new StringBuilder(); var action = default(Yueluo).V() .ForEach((name, value) => sb.Append($"{name}:{value}{Environment.NewLine}")) .GetLambda(); action.Invoke(obj); sb.ToString().Should().Be(obj.FormatString()); } [Test] public void WithExtendObj() { var obj = Yueluo.Create(); var sb = new StringBuilder(); var action = default(Yueluo)!.V() .WithExtendObject<Yueluo, StringBuilder>() .ForEach((name, value, s) => s.Append($"{name}:{value}{Environment.NewLine}")) .GetLambda(); action.Invoke(obj, sb); sb.ToString().Should().Be(obj.FormatString()); } } }
28.378378
94
0.521905
[ "MIT" ]
Memoyu/Newbe.ObjectVisitor
src/Newbe.ObjectVisitor/Newbe.ObjectVisitor.Tests/LambdaTest.cs
1,052
C#
namespace MyUserName.Bll { using System; using System.Collections.Generic; using System.Linq; public class Compute { private static readonly string[] UserNames = { "Hugh", "Pugh", "Barney", "McGrew", "Cuthbert", "Dibble", "Grub" }; public IEnumerable<string> Get() { var rng = new Random(); var result = Enumerable.Range(1, 5).Select(index => UserNames[rng.Next(UserNames.Length)]) .ToArray(); return result; } } }
23
76
0.516522
[ "MIT" ]
klagan/sample-dotnet
src/openapi/MyUserName.Bll/Compute.cs
577
C#
using AonWeb.FluentHttp.Settings; namespace AonWeb.FluentHttp { public interface IAdvancedCacheConfigurable<out TBuilder> : IFluentConfigurable<TBuilder, ICacheSettings> where TBuilder : IAdvancedCacheConfigurable<TBuilder> { } }
26
109
0.746154
[ "MIT" ]
andrewescutia/fluent-http
AonWeb.FluentHttp/IAdvancedCacheConfigurable.cs
262
C#
using System; using Microsoft.EntityFrameworkCore.Migrations; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace Pixicity.Data.Migrations { public partial class addtablecomentarios : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "Comentarios", schema: "Seguridad", table: "Usuarios", newName: "CantidadComentarios"); migrationBuilder.RenameColumn( name: "Comentarios", schema: "Post", table: "Posts", newName: "CantidadComentarios"); migrationBuilder.CreateTable( name: "Comentarios", schema: "Post", columns: table => new { Id = table.Column<long>(type: "bigint", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), PostId = table.Column<long>(type: "bigint", nullable: false), UsuarioId = table.Column<long>(type: "bigint", nullable: false), Contenido = table.Column<string>(type: "text", nullable: false), FechaComentario = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), Votos = table.Column<int>(type: "integer", nullable: false), IP = table.Column<string>(type: "character varying(15)", maxLength: 15, nullable: true), Eliminado = table.Column<bool>(type: "boolean", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Comentarios", x => x.Id); table.ForeignKey( name: "FK_Comentarios_Posts_PostId", column: x => x.PostId, principalSchema: "Post", principalTable: "Posts", principalColumn: "Id", onDelete: ReferentialAction.Cascade); table.ForeignKey( name: "FK_Comentarios_Usuarios_UsuarioId", column: x => x.UsuarioId, principalSchema: "Seguridad", principalTable: "Usuarios", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_Comentarios_Id", schema: "Post", table: "Comentarios", column: "Id", unique: true); migrationBuilder.CreateIndex( name: "IX_Comentarios_PostId", schema: "Post", table: "Comentarios", column: "PostId"); migrationBuilder.CreateIndex( name: "IX_Comentarios_UsuarioId", schema: "Post", table: "Comentarios", column: "UsuarioId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Comentarios", schema: "Post"); migrationBuilder.RenameColumn( name: "CantidadComentarios", schema: "Seguridad", table: "Usuarios", newName: "Comentarios"); migrationBuilder.RenameColumn( name: "CantidadComentarios", schema: "Post", table: "Posts", newName: "Comentarios"); } } }
39.402062
125
0.50157
[ "MIT" ]
NESTicle/pixicity-backend
Pixicity.Data/Migrations/20210801140636_add-table--comentarios.cs
3,824
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading.Tasks; namespace ASP.NET_Core_Email.Models.AccountViewModels { public class RegisterViewModel { [Required] [EmailAddress] [Display(Name = "Email")] public string Email { get; set; } [Required] [StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)] [DataType(DataType.Password)] [Display(Name = "Password")] public string Password { get; set; } [DataType(DataType.Password)] [Display(Name = "Confirm password")] [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")] public string ConfirmPassword { get; set; } } }
31.071429
125
0.654023
[ "MIT" ]
elanderson/ASP.NET-Core-Email
ASP.NET-Core-Email/src/ASP.NET-Core-Email/Models/AccountViewModels/RegisterViewModel.cs
872
C#
/* * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the devicefarm-2015-06-23.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.DeviceFarm.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.DeviceFarm.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for NotEligibleException Object /// </summary> public class NotEligibleExceptionUnmarshaller : IErrorResponseUnmarshaller<NotEligibleException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public NotEligibleException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public NotEligibleException Unmarshall(JsonUnmarshallerContext context, ErrorResponse errorResponse) { context.Read(); NotEligibleException unmarshalledObject = new NotEligibleException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static NotEligibleExceptionUnmarshaller _instance = new NotEligibleExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static NotEligibleExceptionUnmarshaller Instance { get { return _instance; } } } }
34.470588
131
0.666894
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/DeviceFarm/Generated/Model/Internal/MarshallTransformations/NotEligibleExceptionUnmarshaller.cs
2,930
C#
namespace MassTransit.JobService { using System; using System.Threading.Tasks; using Contracts.JobService; using Util; /// <summary> /// Handles the <see cref="SubmitJob{TJob}" /> command /// </summary> /// <typeparam name="TJob">The job type</typeparam> public class SubmitJobConsumer<TJob> : IConsumer<TJob>, IConsumer<SubmitJob<TJob>> where TJob : class { readonly Guid _jobTypeId; readonly JobOptions<TJob> _options; public SubmitJobConsumer(JobOptions<TJob> options, Guid jobTypeId) { _options = options; _jobTypeId = jobTypeId; } public Task Consume(ConsumeContext<SubmitJob<TJob>> context) { return PublishJobSubmitted(context, context.Message.JobId, context.Message.Job, context.SentTime ?? DateTime.UtcNow); } public Task Consume(ConsumeContext<TJob> context) { var jobId = context.RequestId ?? NewId.NextGuid(); return PublishJobSubmitted(context, jobId, context.Message, context.SentTime ?? DateTime.UtcNow); } async Task PublishJobSubmitted(ConsumeContext context, Guid jobId, TJob job, DateTime timestamp) { await context.Publish<JobSubmitted>(new { JobId = jobId, JobTypeId = _jobTypeId, Timestamp = timestamp, Job = context.ToDictionary(job), _options.JobTimeout }); if (context.RequestId.HasValue && context.ResponseAddress != null) await context.RespondAsync<JobSubmissionAccepted>(new { JobId = jobId }); } } }
31.290909
129
0.600232
[ "ECL-2.0", "Apache-2.0" ]
csteeg/MassTransit
src/MassTransit/JobService/JobService/SubmitJobConsumer.cs
1,721
C#
using System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Xml.Serialization; namespace Workday.ResourceManagement { [GeneratedCode("System.Xml", "4.6.1590.0"), DesignerCategory("code"), DebuggerStepThrough, XmlType(Namespace = "urn:com.workday/bsvc")] [Serializable] public class Prepaid_Spend_Amortization_ScheduleType : INotifyPropertyChanged { private Prepaid_Spend_Amortization_ScheduleObjectType prepaid_Spend_Amortization_Schedule_ReferenceField; private Prepaid_Spend_Amortization_Schedule_DataType[] prepaid_Spend_Amortization_ScheduleField; [method: CompilerGenerated] [CompilerGenerated] public event PropertyChangedEventHandler PropertyChanged; [XmlElement(Order = 0)] public Prepaid_Spend_Amortization_ScheduleObjectType Prepaid_Spend_Amortization_Schedule_Reference { get { return this.prepaid_Spend_Amortization_Schedule_ReferenceField; } set { this.prepaid_Spend_Amortization_Schedule_ReferenceField = value; this.RaisePropertyChanged("Prepaid_Spend_Amortization_Schedule_Reference"); } } [XmlElement("Prepaid_Spend_Amortization_Schedule", Order = 1)] public Prepaid_Spend_Amortization_Schedule_DataType[] Prepaid_Spend_Amortization_Schedule { get { return this.prepaid_Spend_Amortization_ScheduleField; } set { this.prepaid_Spend_Amortization_ScheduleField = value; this.RaisePropertyChanged("Prepaid_Spend_Amortization_Schedule"); } } protected void RaisePropertyChanged(string propertyName) { PropertyChangedEventHandler propertyChanged = this.PropertyChanged; if (propertyChanged != null) { propertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } } }
29.966667
136
0.804783
[ "MIT" ]
matteofabbri/Workday.WebServices
Workday.ResourceManagement/Prepaid_Spend_Amortization_ScheduleType.cs
1,798
C#
using System; using Assisticant; namespace Assisticant.StoreApp.ViewModels { public class ContactListNavigationModel { private Person _selectedPerson; #region Observable properties // Generated by Update Controls -------------------------------- private Observable _indSelectedPerson = new Observable(); public Person SelectedPerson { get { _indSelectedPerson.OnGet(); return _selectedPerson; } set { _indSelectedPerson.OnSet(); _selectedPerson = value; } } // End generated code -------------------------------- #endregion } }
24.304348
66
0.667263
[ "MIT" ]
robertvazan/Assisticant
StoreApp.ViewModels/ContactListNavigationModel.cs
561
C#
using System.Collections.ObjectModel; namespace PasswordGen.WebApi.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } public Collection<ParameterDescription> Properties { get; private set; } } }
28
80
0.709184
[ "MIT" ]
magnusbakken/simplepasswordgen
PasswordGen.WebApi/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
392
C#
// ---------------------------------------------------------------------------- // <copyright file="PhotonRigidbody2DView.cs" company="Exit Games GmbH"> // PhotonNetwork Framework for Unity - Copyright (C) 2018 Exit Games GmbH // </copyright> // <summary> // Component to synchronize 2d rigidbodies via PUN. // </summary> // <author>developer@exitgames.com</author> // ---------------------------------------------------------------------------- namespace Photon.Pun { using UnityEngine; [RequireComponent(typeof(Rigidbody2D))] [AddComponentMenu("Photon Networking/Photon Rigidbody 2D View")] public class PhotonRigidbody2DView : MonoBehaviourPun, IPunObservable { private float m_Distance; private float m_Angle; private Rigidbody2D m_Body; private Vector2 m_NetworkPosition; private float m_NetworkRotation; [HideInInspector] public bool m_SynchronizeVelocity = true; [HideInInspector] public bool m_SynchronizeAngularVelocity = false; [HideInInspector] public bool m_TeleportEnabled = false; [HideInInspector] public float m_TeleportIfDistanceGreaterThan = 3.0f; public void Awake() { this.m_Body = GetComponent<Rigidbody2D>(); this.m_NetworkPosition = new Vector2(); } public void FixedUpdate() { if (!this.photonView.IsMine) { this.m_Body.position = Vector2.MoveTowards(this.m_Body.position, this.m_NetworkPosition, this.m_Distance * (1.0f / PhotonNetwork.SerializationRate)); this.m_Body.rotation = Mathf.MoveTowards(this.m_Body.rotation, this.m_NetworkRotation, this.m_Angle * (1.0f / PhotonNetwork.SerializationRate)); } } public void OnPhotonSerializeView(PhotonStream stream, PhotonMessageInfo info) { if (stream.IsWriting) { stream.SendNext(this.m_Body.position); stream.SendNext(this.m_Body.rotation); if (this.m_SynchronizeVelocity) { stream.SendNext(this.m_Body.velocity); } if (this.m_SynchronizeAngularVelocity) { stream.SendNext(this.m_Body.angularVelocity); } } else { this.m_NetworkPosition = (Vector2)stream.ReceiveNext(); this.m_NetworkRotation = (float)stream.ReceiveNext(); if (this.m_TeleportEnabled) { if (Vector3.Distance(this.m_Body.position, this.m_NetworkPosition) > this.m_TeleportIfDistanceGreaterThan) { this.m_Body.position = this.m_NetworkPosition; } } if (this.m_SynchronizeVelocity || this.m_SynchronizeAngularVelocity) { float lag = Mathf.Abs((float)(PhotonNetwork.Time - info.SentServerTime)); if (m_SynchronizeVelocity) { this.m_Body.velocity = (Vector2)stream.ReceiveNext(); this.m_NetworkPosition += this.m_Body.velocity * lag; this.m_Distance = Vector2.Distance(this.m_Body.position, this.m_NetworkPosition); } if (this.m_SynchronizeAngularVelocity) { this.m_Body.angularVelocity = (float)stream.ReceiveNext(); this.m_NetworkRotation += this.m_Body.angularVelocity * lag; this.m_Angle = Mathf.Abs(this.m_Body.rotation - this.m_NetworkRotation); } } } } } }
35.711712
166
0.529516
[ "MIT" ]
AdeliaSabirova/gb0122
Assets/Photon/PhotonUnityNetworking/Code/Views/PhotonRigidbody2DView.cs
3,966
C#
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System.Collections.Generic; using UnityEditor; using UnityEditorInternal; using UnityEngine; namespace Microsoft.MixedReality.Toolkit.Utilities.Editor { [CustomEditor(typeof(SplineDataProvider))] public class SplineDataProviderInspector : BaseLineDataProviderInspector { private const float OverlappingPointThreshold = 0.015f; private const float HandleSizeModifier = 0.04f; private const float PickSizeModifier = 0.06f; private static readonly HashSet<int> OverlappingPointIndexes = new HashSet<int>(); private static readonly Vector2 ControlPointButtonSize = new Vector2(16, 16); private static readonly Vector2 LeftControlPointPositionOffset = Vector2.left * 12; private static readonly Vector2 RightControlPointPositionOffset = Vector2.right * 24; private static readonly Vector2 ControlPointButtonHandleOffset = Vector3.up * 24; private static readonly GUIContent PositionContent = new GUIContent("Position"); private static readonly GUIContent RotationContent = new GUIContent("Rotation"); private static readonly GUIContent AddControlPointContent = new GUIContent("+", "Add a control point"); private static readonly GUIContent RemoveControlPointContent = new GUIContent("-", "Remove a control point"); private static readonly GUIContent ControlPointHeaderContent = new GUIContent("Spline Control Points", "The current control points for the spline."); private static bool controlPointFoldout = true; private SerializedProperty controlPoints; private SerializedProperty alignAllControlPoints; private SplineDataProvider splineData; private ReorderableList controlPointList; private int selectedHandleIndex = -1; protected override void OnEnable() { base.OnEnable(); splineData = (SplineDataProvider)target; controlPoints = serializedObject.FindProperty("controlPoints"); alignAllControlPoints = serializedObject.FindProperty("alignAllControlPoints"); controlPointList = new ReorderableList(serializedObject, controlPoints, false, false, false, false) { elementHeight = EditorGUIUtility.singleLineHeight * 3 }; controlPointList.drawElementCallback += DrawControlPointElement; } public override void OnInspectorGUI() { base.OnInspectorGUI(); serializedObject.Update(); // We always draw line points for splines. DrawLinePoints = true; EditorGUILayout.LabelField("Spline Settings"); EditorGUI.indentLevel++; EditorGUILayout.PropertyField(alignAllControlPoints); GUILayout.BeginHorizontal(); if (GUILayout.Button("Add New Point", GUILayout.Width(48f), GUILayout.ExpandWidth(true))) { AddControlPoint(); } GUI.enabled = controlPoints.arraySize > 4; if (GUILayout.Button("Remove Last Point", GUILayout.Width(48f), GUILayout.ExpandWidth(true))) { RemoveControlPoint(); } GUI.enabled = true; GUILayout.EndHorizontal(); controlPointFoldout = EditorGUILayout.Foldout(controlPointFoldout, ControlPointHeaderContent, true); if (controlPointFoldout) { // If we found overlapping points, provide an option to auto-separate them if (OverlappingPointIndexes.Count > 0) { EditorGUILayout.HelpBox("We noticed some of your control points have the same position.", MessageType.Warning); if (GUILayout.Button("Fix overlapping points")) { // Move them slightly out of the way foreach (int pointIndex in OverlappingPointIndexes) { var controlPointProperty = controlPoints.GetArrayElementAtIndex(pointIndex); var position = controlPointProperty.FindPropertyRelative("position"); position.vector3Value += Random.onUnitSphere * OverlappingPointThreshold * 2; } OverlappingPointIndexes.Clear(); } } controlPointList.DoLayoutList(); } EditorGUI.indentLevel--; serializedObject.ApplyModifiedProperties(); } protected override void OnSceneGUI() { base.OnSceneGUI(); // We skip the first point as it should always remain at the GameObject's local origin (Pose.ZeroIdentity) for (int i = 1; i < controlPoints?.arraySize; i++) { bool isTangentHandle = i % 3 != 0; serializedObject.Update(); bool isLastPoint = i == controlPoints.arraySize - 1; var controlPointPosition = LineData.GetPoint(i); var controlPointProperty = controlPoints.GetArrayElementAtIndex(i); var controlPointRotation = controlPointProperty.FindPropertyRelative("rotation"); // Draw our tangent lines Handles.color = Color.gray; if (i == 1) { Handles.DrawLine(LineData.GetPoint(0), LineData.GetPoint(1)); } else if (!isTangentHandle) { Handles.DrawLine(LineData.GetPoint(i), LineData.GetPoint(i - 1)); if (!isLastPoint) { Handles.DrawLine(LineData.GetPoint(i), LineData.GetPoint(i + 1)); } } Handles.color = isTangentHandle ? Color.white : Color.green; float handleSize = HandleUtility.GetHandleSize(controlPointPosition); if (Handles.Button(controlPointPosition, controlPointRotation.quaternionValue, handleSize * HandleSizeModifier, handleSize * PickSizeModifier, Handles.DotHandleCap)) { selectedHandleIndex = i; } // Draw our handles if (Tools.current == Tool.Move && selectedHandleIndex == i) { EditorGUI.BeginChangeCheck(); var newTargetPosition = Handles.PositionHandle(controlPointPosition, controlPointRotation.quaternionValue); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(LineData, "Change Spline Point Position"); LineData.SetPoint(i, newTargetPosition); } if (isLastPoint) { DrawSceneControlOptionButtons(controlPointPosition); } } else if (Tools.current == Tool.Rotate && selectedHandleIndex == i) { EditorGUI.BeginChangeCheck(); Quaternion newTargetRotation = Handles.RotationHandle(controlPointRotation.quaternionValue, controlPointPosition); if (EditorGUI.EndChangeCheck()) { Undo.RecordObject(LineData, "Change Spline Point Rotation"); controlPointRotation.quaternionValue = newTargetRotation; } } serializedObject.ApplyModifiedProperties(); } // Check for overlapping points OverlappingPointIndexes.Clear(); for (int i = 0; i < splineData.ControlPoints.Length; i++) { for (int j = 0; j < splineData.ControlPoints.Length; j++) { if (i == j) { continue; } if (Vector3.Distance(splineData.ControlPoints[i].Position, splineData.ControlPoints[j].Position) < OverlappingPointThreshold) { if (i != 0) { OverlappingPointIndexes.Add(i); } if (j != 0) { OverlappingPointIndexes.Add(j); } break; } } } } private void AddControlPoint() { serializedObject.Update(); Undo.RecordObject(LineData, "Add Spline Control Point"); var newControlPoints = new MixedRealityPose[3]; Vector3 direction = LineData.GetVelocity(0.99f); float distance = Mathf.Max(LineData.UnClampedWorldLength * 0.05f, OverlappingPointThreshold * 5); newControlPoints[0].Position = LineData.LastPoint + (direction * distance); newControlPoints[1].Position = newControlPoints[0].Position + (direction * distance); newControlPoints[2].Position = newControlPoints[1].Position + (direction * distance); for (int i = 0; i < 3; i++) { controlPoints.arraySize = controlPoints.arraySize + 1; var newControlPointProperty = controlPoints.GetArrayElementAtIndex(controlPoints.arraySize - 1); newControlPointProperty.FindPropertyRelative("position").vector3Value = newControlPoints[i].Position; newControlPointProperty.FindPropertyRelative("rotation").quaternionValue = Quaternion.identity; } serializedObject.ApplyModifiedProperties(); } private void RemoveControlPoint() { if (controlPoints.arraySize <= 4) { return; } serializedObject.Update(); Undo.RecordObject(LineData, "Remove Spline Control Point"); controlPoints.DeleteArrayElementAtIndex(controlPoints.arraySize - 1); controlPoints.DeleteArrayElementAtIndex(controlPoints.arraySize - 1); controlPoints.DeleteArrayElementAtIndex(controlPoints.arraySize - 1); serializedObject.ApplyModifiedProperties(); } private void DrawSceneControlOptionButtons(Vector3 position) { Handles.BeginGUI(); var buttonPosition = HandleUtility.WorldToGUIPoint(position); var buttonRect = new Rect(buttonPosition + ControlPointButtonHandleOffset, ControlPointButtonSize); // Move the button slightly to the left buttonRect.position += LeftControlPointPositionOffset; if (GUI.Button(buttonRect, AddControlPointContent)) { AddControlPoint(); } if (controlPoints.arraySize > 4) { // Move the button slightly to the right buttonRect.position += RightControlPointPositionOffset; if (GUI.Button(buttonRect, RemoveControlPointContent)) { RemoveControlPoint(); } } Handles.EndGUI(); } private void DrawControlPointElement(Rect rect, int index, bool isActive, bool isFocused) { bool lastMode = EditorGUIUtility.wideMode; EditorGUIUtility.wideMode = true; var lastLabelWidth = EditorGUIUtility.labelWidth; EditorGUIUtility.labelWidth = 88f; var property = controlPoints.GetArrayElementAtIndex(index); var fieldHeight = EditorGUIUtility.singleLineHeight * 0.5f; var labelRect = new Rect(rect.x - 8f, rect.y + fieldHeight * 2, rect.width, EditorGUIUtility.singleLineHeight); var positionRect = new Rect(rect.x, rect.y + fieldHeight, rect.width, EditorGUIUtility.singleLineHeight); var rotationRect = new Rect(rect.x, rect.y + fieldHeight * 3, rect.width, EditorGUIUtility.singleLineHeight); EditorGUI.LabelField(labelRect, $"{index + 1}"); EditorGUI.indentLevel++; GUI.enabled = index != 0; EditorGUI.BeginChangeCheck(); EditorGUI.PropertyField(positionRect, property.FindPropertyRelative("position"), PositionContent); bool hasPositionChanged = EditorGUI.EndChangeCheck(); var rotationProperty = property.FindPropertyRelative("rotation"); EditorGUI.BeginChangeCheck(); var newEulerRotation = EditorGUI.Vector3Field(rotationRect, RotationContent, rotationProperty.quaternionValue.eulerAngles); bool hasRotationChanged = EditorGUI.EndChangeCheck(); if (hasRotationChanged) { rotationProperty.quaternionValue = Quaternion.Euler(newEulerRotation); } if (hasPositionChanged || hasRotationChanged) { EditorUtility.SetDirty(target); } GUI.enabled = true; EditorGUI.indentLevel--; EditorGUIUtility.wideMode = lastMode; EditorGUIUtility.labelWidth = lastLabelWidth; } } }
40.237237
181
0.587507
[ "Apache-2.0" ]
AsWeSee/SeeThrough
Assets/MRTK/Core/Inspectors/Utilities/Lines/DataProviders/SplineDataProviderInspector.cs
13,401
C#
// code adapted from https://github.com/dotnet/command-line-api/blob/166610c56ff732093f0145a2911d4f6c40b786da/src/System.CommandLine.DragonFruit/CommandLine.cs using System; using System.Collections.Generic; using System.CommandLine; using System.CommandLine.Binding; using System.CommandLine.Builder; using System.CommandLine.Invocation; using System.Linq; using System.Reflection; using System.Threading; namespace MLS.WasmCodeRunner { internal static class CommandLineBuilderExtensions { public static CommandLineBuilder ConfigureRootCommandFromMethod( this CommandLineBuilder builder, MethodInfo method) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (method == null) { throw new ArgumentNullException(nameof(method)); } builder.Command.ConfigureFromMethod(method); return builder; } private static readonly string[] _argumentParameterNames = { "arguments", "argument", "args" }; public static void ConfigureFromMethod( this Command command, MethodInfo method) { if (command == null) { throw new ArgumentNullException(nameof(command)); } if (method == null) { throw new ArgumentNullException(nameof(method)); } foreach (var option in method.BuildOptions()) { command.AddOption(option); } if (method.GetParameters() .FirstOrDefault(p => _argumentParameterNames.Contains(p.Name)) is ParameterInfo argsParam) { command.Argument = new Argument { ArgumentType = argsParam.ParameterType, Name = argsParam.Name }; } command.Handler = CommandHandler.Create(method); } public static IEnumerable<Option> BuildOptions(this MethodInfo type) { var descriptor = HandlerDescriptor.FromMethodInfo(type); var omittedTypes = new[] { typeof(IConsole), typeof(InvocationContext), typeof(BindingContext), typeof(ParseResult), typeof(CancellationToken), }; foreach (var option in descriptor.ParameterDescriptors .Where(d => !omittedTypes.Contains(d.Type)) .Where(d => !_argumentParameterNames.Contains(d.Name)) .Select(p => p.BuildOption())) { yield return option; } } public static Option BuildOption(this ParameterDescriptor parameter) { var argument = new Argument { ArgumentType = parameter.Type }; if (parameter.HasDefaultValue) { argument.SetDefaultValue(parameter.GetDefaultValue); } var option = new Option( parameter.BuildAlias(), parameter.Name, argument); return option; } public static string BuildAlias(this IValueDescriptor descriptor) { if (descriptor == null) { throw new ArgumentNullException(nameof(descriptor)); } return BuildAlias(descriptor.Name); } internal static string BuildAlias(string parameterName) { if (String.IsNullOrWhiteSpace(parameterName)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(parameterName)); } return parameterName.Length > 1 ? $"--{parameterName.ToKebabCase()}" : $"-{parameterName.ToLowerInvariant()}"; } } }
29.007092
160
0.543032
[ "MIT" ]
paulomorgado/dotnet-try
WasmCodeRunner/CommandLineBuilderExtensions.cs
4,092
C#
namespace Nancy.Tests.Unit.ViewEngines { using FakeItEasy; using Nancy.ViewEngines; using Xunit; public class ViewNotFoundExceptionFixture { [Fact] public void Should_include_both_name_and_extensions_in_message() { // Given var rootPathProvider = A.Fake<IRootPathProvider>(); A.CallTo(() => rootPathProvider.GetRootPath()).Returns("The root path"); // When var result = new ViewNotFoundException("foo", new[] { "html", "sshtml" }, new[] { "baz", "bar" }, rootPathProvider); // Then result.Message.ShouldContain("foo"); result.Message.ShouldContain("html"); result.Message.ShouldContain("sshtml"); result.Message.ShouldContain("baz"); result.Message.ShouldContain("bar"); } } }
33.111111
129
0.572707
[ "MIT" ]
Adalyat/Nancy
src/Nancy.Tests/Unit/ViewEngines/ViewNotFoundExceptionFixture.cs
896
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace EmpowerBusiness { using System; public partial class IW_Man_BankClaimsPrintJobs_Result { public string ddlValue { get; set; } public string ddlText { get; set; } } }
31.85
85
0.508634
[ "Apache-2.0" ]
HaloImageEngine/EmpowerClaim-hotfix-1.25.1
EmpowerBusiness/IW_Man_BankClaimsPrintJobs_Result.cs
637
C#
using System.Diagnostics; using Microsoft.EntityFrameworkCore.Metadata.Conventions; using Microsoft.EntityFrameworkCore.Metadata.Conventions.Internal; namespace Bing.Datas.EntityFramework.Conventions { /// <summary> /// Bing 核心约束集合生成器 /// </summary> public class BingCoreConventionSetBuilder : CoreConventionSetBuilder { /// <summary> /// 初始化一个<see cref="BingCoreConventionSetBuilder"/>类型的实例 /// </summary> /// <param name="dependencies">依赖</param> public BingCoreConventionSetBuilder(CoreConventionSetBuilderDependencies dependencies) : base(dependencies) { Debug.WriteLine("BingRelationModeCustomizer ctor"); } /// <summary> /// 创建约束集合 /// </summary> public override ConventionSet CreateConventionSet() { Debug.WriteLine("BingCoreConventionSetBuilder.CreateConventionSet"); var conventionSet = base.CreateConventionSet(); conventionSet.PropertyAddedConventions.Add(new DecimalPrecisionAttributeConvention()); conventionSet.PropertyAddedConventions.Add(new HasMaxLengthAttributeConvention()); return conventionSet; } } }
34.083333
115
0.679707
[ "MIT" ]
brucehu123/Bing.NetCore
framework/src/Bing.Datas.EntityFramework/Conventions/BingCoreConventionSetBuilder.cs
1,283
C#
using System.Collections.Generic; namespace Minedraft.Services.Contracts { public interface IDraftManager { string RegisterHarvester(List<string> arguments); string RegisterProvider(List<string> arguments); string Day(); string Mode(List<string> arguments); string Check(List<string> arguments); string ShutDown(); } }
19.3
57
0.665803
[ "MIT" ]
BlueDress/School
C# OOP Basics/Exams/Exam - 16 July 2017/Minedraft/Services/Contracts/IDraftManager.cs
388
C#
using System; #pragma warning disable CS1591 // Fehledes XML-Kommentar für öffentlich sichtbaren Typ oder Element namespace CenterDevice.Rest.Exceptions { [Serializable] public class InvalidResponseDataException : RestClientException { public InvalidResponseDataException(string message, Exception innerException) : base(message, innerException) { } } } #pragma warning restore CS1591 // Fehledes XML-Kommentar für öffentlich sichtbaren Typ oder Element
39.916667
121
0.787056
[ "Apache-2.0" ]
CompuMasterGmbH/CompuMaster.CenterDevice
CenterDevice.Rest/Rest/Exceptions/InvalidResponseDataException.cs
485
C#
// Copyright (c) 2014 Takashi Yoshizawa using System; using System.Collections.Generic; using System.Linq; using System.Text; using OpenQA.Selenium; using OpenQA.Selenium.Interactions; using OpenQA.Selenium.Support.UI; using Excel = Microsoft.Office.Interop.Excel; namespace SeleniumExcelAddIn.TestCommands { public class WindowMaximizeAndWaitCommand : ITestCommand { public TestCommandSyntax Syntax { get { return TestCommandSyntax.None; } } public bool IsScreenCapture { get { return true; } } public string Description { get { return TestCommandResource.WindowMaximizeAndWait; } } public string TargetDescription { get { return TestCommandResource.WindowMaximizeAndWait_Target; } } public string ValueDescription { get { return TestCommandResource.WindowMaximizeAndWait_Value; } } public void Execute(ITestContext context) { if (null == context) { throw new ArgumentNullException("context"); } ExecuteInternal(context); } public static void ExecuteInternal(ITestContext context) { if (null == context) { throw new ArgumentNullException("context"); } WindowMaximizeCommand.ExecuteInternal(context); } } }
21.518987
72
0.524118
[ "Apache-2.0" ]
daluu/seleniumexceladdin
SeleniumExcelAddIn/TestCommands/WindowMaximizeAndWaitCommand.cs
1,702
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ // **NOTE** This file was generated by a tool and any changes will be overwritten. // <auto-generated/> // Template Source: Templates\CSharp\Requests\IMethodRequest.cs.tt namespace Microsoft.Graph { using System; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Threading; /// <summary> /// The interface IWorkbookFunctionsStDev_SRequest. /// </summary> public partial interface IWorkbookFunctionsStDev_SRequest : IBaseRequest { /// <summary> /// Gets the request body. /// </summary> WorkbookFunctionsStDev_SRequestBody RequestBody { get; } /// <summary> /// Issues the POST request. /// </summary> System.Threading.Tasks.Task<WorkbookFunctionResult> PostAsync(); /// <summary> /// Issues the POST request. /// </summary> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The task to await for async call.</returns> System.Threading.Tasks.Task<WorkbookFunctionResult> PostAsync( CancellationToken cancellationToken); /// <summary> /// Adds the specified expand value to the request. /// </summary> /// <param name="value">The expand value.</param> /// <returns>The request object to send.</returns> IWorkbookFunctionsStDev_SRequest Expand(string value); /// <summary> /// Adds the specified select value to the request. /// </summary> /// <param name="value">The select value.</param> /// <returns>The request object to send.</returns> IWorkbookFunctionsStDev_SRequest Select(string value); } }
33.190476
153
0.58967
[ "MIT" ]
andrueastman/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/IWorkbookFunctionsStDev_SRequest.cs
2,091
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using BusinessLayer; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolicy; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; using Microsoft.OpenApi.Models; using RepositoryLayer; namespace P2Api { public class Startup { public Startup(IConfiguration configuration) { Configuration = configuration; } public IConfiguration Configuration { get; } // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddControllers(); services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "P2Api", Version = "v1" }); }); services.AddControllersWithViews(); services.AddDbContext<P1Db>(options => { if (!options.IsConfigured) { // options.UseSqlServer(Configuration.GetConnectionString("")); options.UseSqlServer(Configuration.GetConnectionString("newpipeline")); //options.UseSqlServer(Configuration.GetConnectionString("AzureDb")); } }); // make P1Db class PUBLIC services.AddScoped<IRegisterUser, Register>(); // add interfaces in scopp services.AddScoped<ILocation, LocationService>(); services.AddScoped<IOrder, OrderService>(); services.AddScoped<IStore, StoreService>(); services.AddScoped<IProduct, ProductService>(); services.AddScoped<IOrderProduct, OrderProductService>(); services.AddScoped<IStoreProduct, StoreProductService>(); services.AddScoped<ICart, CartService>(); services.AddScoped<IAccount, AccountService>(); services.AddScoped<ICartProduct, CartProductService>(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseSwagger(); app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "P2Api v1")); } app.UseHttpsRedirection(); app.UseRouting(); app.UseAuthorization(); app.UseEndpoints(endpoints => { endpoints.MapControllers(); }); } } }
34.835294
106
0.625127
[ "MIT" ]
06012021-dotnet-uta/SekouDossoP0
P2Api/Startup.cs
2,961
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; using Roslynator.CSharp; using Roslynator.Formatting.CSharp; using Roslynator.Text; using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory; using static Roslynator.CSharp.SyntaxTriviaAnalysis; using static Roslynator.Formatting.CSharp.FixFormattingOfListAnalyzer; namespace Roslynator.Formatting.CodeFixes.CSharp { internal static class CodeFixHelpers { public static Task<Document> AppendEndOfLineAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { SyntaxToken newToken = token.AppendEndOfLineToTrailingTrivia(); return document.ReplaceTokenAsync(token, newToken, cancellationToken); } public static Task<Document> AppendEndOfLineAsync( Document document, SyntaxNode node, CancellationToken cancellationToken = default) { SyntaxNode newNode = node.AppendEndOfLineToTrailingTrivia(); return document.ReplaceNodeAsync(node, newNode, cancellationToken); } public static Task<Document> AddNewLineBeforeAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { SyntaxTrivia indentation = DetermineIndentation(token.Parent, cancellationToken); return AddNewLineBeforeAsync( document, token, indentation.ToString(), cancellationToken); } public static Task<Document> AddNewLineAfterAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { SyntaxTrivia indentation = DetermineIndentation(token.Parent, cancellationToken); return AddNewLineAfterAsync( document, token, indentation.ToString(), cancellationToken); } public static Task<Document> AddNewLineBeforeAndIncreaseIndentationAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { return AddNewLineBeforeAndIncreaseIndentationAsync( document, token, AnalyzeIndentation(token.Parent, cancellationToken), cancellationToken); } public static Task<Document> AddNewLineBeforeAndIncreaseIndentationAsync( Document document, SyntaxToken token, IndentationAnalysis indentation, CancellationToken cancellationToken = default) { return AddNewLineBeforeAsync( document, token, indentation.GetIncreasedIndentation(), cancellationToken); } public static Task<Document> AddNewLineAfterAndIncreaseIndentationAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { return AddNewLineAfterAndIncreaseIndentationAsync( document, token, AnalyzeIndentation(token.Parent, cancellationToken), cancellationToken); } public static Task<Document> AddNewLineAfterAndIncreaseIndentationAsync( Document document, SyntaxToken token, IndentationAnalysis indentation, CancellationToken cancellationToken = default) { return AddNewLineAfterAsync( document, token, indentation.GetIncreasedIndentation(), cancellationToken); } public static Task<Document> AddNewLineBeforeAsync( Document document, SyntaxToken token, string indentation, CancellationToken cancellationToken = default) { return document.WithTextChangeAsync( GetNewLineBeforeTextChange(token, indentation), cancellationToken); } public static TextChange GetNewLineBeforeTextChange(SyntaxToken token, string indentation) { return new TextChange( TextSpan.FromBounds(token.GetPreviousToken().Span.End, token.SpanStart), DetermineEndOfLine(token).ToString() + indentation); } public static Task<Document> AddNewLineAfterAsync( Document document, SyntaxToken token, string indentation, CancellationToken cancellationToken = default) { return document.WithTextChangeAsync( GetNewLineAfterTextChange(token, indentation), cancellationToken); } public static TextChange GetNewLineAfterTextChange(SyntaxToken token, string indentation) { return new TextChange( TextSpan.FromBounds(token.Span.End, token.GetNextToken().SpanStart), DetermineEndOfLine(token).ToString() + indentation); } public static (ExpressionSyntax left, SyntaxToken token, ExpressionSyntax right) AddNewLineBeforeTokenInsteadOfAfterIt( ExpressionSyntax left, SyntaxToken token, ExpressionSyntax right) { return ( left.WithTrailingTrivia(token.TrailingTrivia), Token( right.GetLeadingTrivia(), token.Kind(), TriviaList(Space)), right.WithoutLeadingTrivia()); } public static (ExpressionSyntax left, SyntaxToken token, ExpressionSyntax right) AddNewLineAfterTokenInsteadOfBeforeIt( ExpressionSyntax left, SyntaxToken token, ExpressionSyntax right) { return ( left.WithTrailingTrivia(Space), Token( SyntaxTriviaList.Empty, token.Kind(), left.GetTrailingTrivia()), right.WithLeadingTrivia(token.LeadingTrivia)); } public static Task<Document> AddEmptyLineBeforeDirectiveAsync( Document document, DirectiveTriviaSyntax directiveTrivia, CancellationToken cancellationToken = default) { SyntaxTrivia parentTrivia = directiveTrivia.ParentTrivia; SyntaxToken token = parentTrivia.Token; SyntaxTriviaList leadingTrivia = token.LeadingTrivia; int index = leadingTrivia.IndexOf(parentTrivia); if (index > 0 && leadingTrivia[index - 1].IsWhitespaceTrivia()) { index--; } SyntaxTriviaList newLeadingTrivia = leadingTrivia.Insert(index, DetermineEndOfLine(token)); SyntaxToken newToken = token.WithLeadingTrivia(newLeadingTrivia); return document.ReplaceTokenAsync(token, newToken, cancellationToken); } public static Task<Document> AddEmptyLineAfterDirectiveAsync( Document document, DirectiveTriviaSyntax directiveTrivia, CancellationToken cancellationToken = default) { SyntaxTrivia parentTrivia = directiveTrivia.ParentTrivia; SyntaxToken token = parentTrivia.Token; SyntaxTriviaList leadingTrivia = token.LeadingTrivia; int index = leadingTrivia.IndexOf(parentTrivia); SyntaxTriviaList newLeadingTrivia = leadingTrivia.Insert(index + 1, DetermineEndOfLine(token)); SyntaxToken newToken = token.WithLeadingTrivia(newLeadingTrivia); return document.ReplaceTokenAsync(token, newToken, cancellationToken); } public static Task<Document> AddNewLineAfterInsteadOfBeforeAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { ExpressionSyntax right = FindNextExpression(token); return AddNewLineAfterInsteadOfBeforeAsync(document, token.GetPreviousToken(), token, right, cancellationToken); } public static Task<Document> AddNewLineAfterInsteadOfBeforeAsync( Document document, SyntaxNodeOrToken left, SyntaxNodeOrToken middle, SyntaxNodeOrToken right, CancellationToken cancellationToken = default) { StringBuilder sb = StringBuilderCache.GetInstance(); sb.Append(" "); sb.Append(middle.ToString()); SyntaxTriviaList trailingTrivia = left.GetTrailingTrivia(); if (IsOptionalWhitespaceThenEndOfLineTrivia(trailingTrivia)) { sb.Append(DetermineEndOfLine(left).ToString()); } else { sb.Append(trailingTrivia.ToString()); } sb.Append(middle.GetLeadingTrivia().ToString()); return document.WithTextChangeAsync( TextSpan.FromBounds(left.Span.End, right.SpanStart), StringBuilderCache.GetStringAndFree(sb), cancellationToken); } public static Task<Document> AddNewLineBeforeInsteadOfAfterAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { ExpressionSyntax right = FindNextExpression(token); return AddNewLineBeforeInsteadOfAfterAsync(document, token.GetPreviousToken(), token, right, cancellationToken); } public static Task<Document> AddNewLineBeforeInsteadOfAfterAsync( Document document, SyntaxNodeOrToken left, SyntaxNodeOrToken middle, SyntaxNodeOrToken right, CancellationToken cancellationToken = default) { StringBuilder sb = StringBuilderCache.GetInstance(); SyntaxTriviaList trailingTrivia = middle.GetTrailingTrivia(); if (IsOptionalWhitespaceThenEndOfLineTrivia(trailingTrivia)) { sb.Append(DetermineEndOfLine(middle).ToString()); } else { sb.Append(trailingTrivia.ToString()); } sb.Append(right.GetLeadingTrivia().ToString()); sb.Append(middle.ToString()); sb.Append(" "); return document.WithTextChangeAsync( TextSpan.FromBounds(left.Span.End, right.SpanStart), StringBuilderCache.GetStringAndFree(sb), cancellationToken); } private static ExpressionSyntax FindNextExpression(SyntaxToken token) { switch (token.Parent) { case ArrowExpressionClauseSyntax arrowExpressionClause: { return arrowExpressionClause.Expression; } case AssignmentExpressionSyntax assignmentExpression: { return assignmentExpression.Right; } case EqualsValueClauseSyntax equalsValueClause: { return equalsValueClause.Value; } case NameEqualsSyntax nameEquals: { if (nameEquals.Parent is AttributeArgumentSyntax attributeArgument) { return attributeArgument.Expression; } else if (nameEquals.Parent is AnonymousObjectMemberDeclaratorSyntax declarator) { return declarator.Expression; } break; } } throw new InvalidOperationException(); } public static Task<Document> RemoveEmptyLinesBeforeAsync( Document document, SyntaxToken token, CancellationToken cancellationToken = default) { SyntaxTriviaList leadingTrivia = token.LeadingTrivia; int count = 0; SyntaxTriviaList.Enumerator en = leadingTrivia.GetEnumerator(); while (en.MoveNext()) { if (en.Current.IsWhitespaceTrivia()) { if (!en.MoveNext()) break; if (!en.Current.IsEndOfLineTrivia()) break; count += 2; } else if (en.Current.IsEndOfLineTrivia()) { count++; } else { break; } } SyntaxToken newToken = token.WithLeadingTrivia(leadingTrivia.RemoveRange(0, count)); return document.ReplaceTokenAsync(token, newToken, cancellationToken); } public static Task<Document> AddNewLineAfterOpeningBraceAsync( Document document, BlockSyntax block, CancellationToken cancellationToken = default) { BlockSyntax newBlock = block .WithOpenBraceToken(block.OpenBraceToken.AppendEndOfLineToTrailingTrivia()) .WithFormatterAnnotation(); return document.ReplaceNodeAsync(block, newBlock, cancellationToken); } public static Task<Document> ReplaceTriviaBetweenAsync( Document document, SyntaxToken token1, SyntaxToken token2, string replacement = " ", CancellationToken cancellationToken = default) { return document.WithTextChangeAsync( TextSpan.FromBounds(token1.Span.End, token2.SpanStart), replacement, cancellationToken); } public static Task<Document> FixCallChainAsync( Document document, ExpressionSyntax expression, CancellationToken cancellationToken = default) { return FixCallChainAsync(document, expression, expression.Span, cancellationToken); } public static Task<Document> FixCallChainAsync( Document document, ExpressionSyntax expression, TextSpan span, CancellationToken cancellationToken = default) { IndentationAnalysis indentationAnalysis = AnalyzeIndentation(expression, cancellationToken); string indentation = indentationAnalysis.GetIncreasedIndentation(); string endOfLineAndIndentation = DetermineEndOfLine(expression).ToString() + indentation; var textChanges = new List<TextChange>(); int prevIndex = expression.Span.End; foreach (SyntaxNode node in new MethodChain(expression)) { SyntaxKind kind = node.Kind(); if (kind == SyntaxKind.SimpleMemberAccessExpression) { var memberAccess = (MemberAccessExpressionSyntax)node; if (!SetIndentation(memberAccess.OperatorToken)) break; } else if (kind == SyntaxKind.MemberBindingExpression) { var memberBinding = (MemberBindingExpressionSyntax)node; if (!SetIndentation(memberBinding.OperatorToken)) break; } } FormattingVerifier.VerifyChangedSpansAreWhitespace(expression, textChanges); return document.WithTextChangesAsync(textChanges, cancellationToken); bool SetIndentation(SyntaxToken token) { if (token.Span.End > span.End) return true; if (token.SpanStart < span.Start) return false; SyntaxTriviaList leading = token.LeadingTrivia; SyntaxTriviaList.Reversed.Enumerator en = leading.Reverse().GetEnumerator(); if (!en.MoveNext()) { SyntaxTrivia trivia = expression.FindTrivia(token.SpanStart - 1); string newText = (trivia.IsEndOfLineTrivia()) ? indentation : endOfLineAndIndentation; textChanges.Add(new TextSpan(token.SpanStart, 0), newText); SetIndendation(token, prevIndex); prevIndex = (trivia.IsEndOfLineTrivia()) ? trivia.SpanStart : token.SpanStart; return true; } SyntaxTrivia last = en.Current; SyntaxKind kind = en.Current.Kind(); if (kind == SyntaxKind.WhitespaceTrivia) { if (en.Current.Span.Length != indentation.Length) { if (!en.MoveNext() || en.Current.IsEndOfLineTrivia()) { SyntaxTrivia trivia = expression.FindTrivia(token.FullSpan.Start - 1); if (trivia.IsEndOfLineTrivia()) { textChanges.Add((leading.IsEmptyOrWhitespace()) ? leading.Span : last.Span, indentation); SetIndendation(token, prevIndex); prevIndex = trivia.SpanStart; return true; } } } } else if (kind == SyntaxKind.EndOfLineTrivia) { SyntaxTrivia trivia = expression.FindTrivia(token.FullSpan.Start - 1); if (trivia.IsEndOfLineTrivia()) { textChanges.Add((leading.IsEmptyOrWhitespace()) ? leading.Span : last.Span, indentation); SetIndendation(token, prevIndex); prevIndex = trivia.SpanStart; return true; } } prevIndex = leading.Span.Start - 1; return true; } void SetIndendation(SyntaxToken token, int endIndex) { ImmutableArray<IndentationInfo> indentations = FindIndentations( expression, TextSpan.FromBounds(token.SpanStart, endIndex)) .ToImmutableArray(); if (!indentations.Any()) return; int firstIndentationLength = indentations[0].Span.Length; for (int j = 0; j < indentations.Length; j++) { IndentationInfo indentationInfo = indentations[j]; string replacement = indentation + indentationAnalysis.GetSingleIndentation(); if (j > 0 && indentationInfo.Span.Length > firstIndentationLength) { replacement += indentationInfo.ToString().Substring(firstIndentationLength); } if (indentationInfo.Span.Length != replacement.Length) textChanges.Add(indentationInfo.Span, replacement); } } } public static Task<Document> FixBinaryExpressionAsync( Document document, BinaryExpressionSyntax binaryExpression, CancellationToken cancellationToken) { return FixBinaryExpressionAsync(document, binaryExpression, binaryExpression.Span, cancellationToken); } public static Task<Document> FixBinaryExpressionAsync( Document document, BinaryExpressionSyntax binaryExpression, TextSpan span, CancellationToken cancellationToken) { IndentationAnalysis indentationAnalysis = AnalyzeIndentation(binaryExpression, cancellationToken); string indentation; if (indentationAnalysis.Indentation == binaryExpression.GetLeadingTrivia().LastOrDefault() && document.IsAnalyzerOptionEnabled(AnalyzerOptions.AddNewLineAfterBinaryOperatorInsteadOfBeforeIt)) { indentation = indentationAnalysis.Indentation.ToString(); } else { indentation = indentationAnalysis.GetIncreasedIndentation(); } string endOfLineAndIndentation = DetermineEndOfLine(binaryExpression).ToString() + indentation; var textChanges = new List<TextChange>(); int prevIndex = binaryExpression.Span.End; SyntaxKind binaryKind = binaryExpression.Kind(); while (true) { SyntaxToken token = binaryExpression.OperatorToken; if (token.Span.End > span.End) continue; if (token.SpanStart < span.Start) break; ExpressionSyntax left = binaryExpression.Left; ExpressionSyntax right = binaryExpression.Right; SyntaxTriviaList leftTrailing = left.GetTrailingTrivia(); SyntaxTriviaList tokenTrailing = token.TrailingTrivia; if (IsOptionalWhitespaceThenOptionalSingleLineCommentThenEndOfLineTrivia(leftTrailing)) { if (!SetIndentation(token)) break; } else if (IsOptionalWhitespaceThenOptionalSingleLineCommentThenEndOfLineTrivia(tokenTrailing)) { if (!SetIndentation(right)) break; } else if (leftTrailing.IsEmptyOrWhitespace() && tokenTrailing.IsEmptyOrWhitespace()) { if (document.IsAnalyzerOptionEnabled(AnalyzerOptions.AddNewLineAfterBinaryOperatorInsteadOfBeforeIt)) { if (!SetIndentation(right)) break; } else if (!SetIndentation(token)) { break; } } if (!left.IsKind(binaryKind)) break; binaryExpression = (BinaryExpressionSyntax)left; } if (textChanges.Count > 0) { SyntaxTriviaList leading = binaryExpression.GetLeadingTrivia(); if (!leading.Any()) { SyntaxTrivia trivia = binaryExpression.GetFirstToken().GetPreviousToken().TrailingTrivia.LastOrDefault(); if (trivia.IsEndOfLineTrivia() && trivia.Span.End == binaryExpression.SpanStart) { textChanges.Add(new TextSpan(binaryExpression.SpanStart, 0), indentation); } } } FormattingVerifier.VerifyChangedSpansAreWhitespace(binaryExpression, textChanges); return document.WithTextChangesAsync(textChanges, cancellationToken); bool SetIndentation(SyntaxNodeOrToken nodeOrToken) { SyntaxTriviaList leading = nodeOrToken.GetLeadingTrivia(); SyntaxTriviaList.Reversed.Enumerator en = leading.Reverse().GetEnumerator(); if (!en.MoveNext()) { SyntaxTrivia trivia = binaryExpression.FindTrivia(nodeOrToken.SpanStart - 1); string newText = (trivia.IsEndOfLineTrivia()) ? indentation : endOfLineAndIndentation; int start = (trivia.IsWhitespaceTrivia()) ? trivia.SpanStart : nodeOrToken.SpanStart; TextSpan span = (trivia.IsWhitespaceTrivia()) ? trivia.Span : new TextSpan(nodeOrToken.SpanStart, 0); textChanges.Add(span, newText); SetIndendation(nodeOrToken, prevIndex); prevIndex = start; return true; } SyntaxTrivia last = en.Current; SyntaxKind kind = en.Current.Kind(); if (kind == SyntaxKind.WhitespaceTrivia) { if (en.Current.Span.Length != indentation.Length) { if (!en.MoveNext() || en.Current.IsEndOfLineTrivia()) { SyntaxTrivia trivia = binaryExpression.FindTrivia(nodeOrToken.FullSpan.Start - 1); if (trivia.IsEndOfLineTrivia()) { AddTextChange((leading.IsEmptyOrWhitespace()) ? leading.Span : last.Span); SetIndendation(nodeOrToken, prevIndex); prevIndex = trivia.SpanStart; return true; } } } } else if (kind == SyntaxKind.EndOfLineTrivia) { SyntaxTrivia trivia = binaryExpression.FindTrivia(nodeOrToken.FullSpan.Start - 1); if (trivia.IsEndOfLineTrivia()) { AddTextChange((leading.IsEmptyOrWhitespace()) ? leading.Span : last.Span); SetIndendation(nodeOrToken, prevIndex); prevIndex = trivia.SpanStart; return true; } } prevIndex = leading.Span.Start - 1; return true; void AddTextChange(TextSpan span) => textChanges.Add(span, indentation); } void SetIndendation(SyntaxNodeOrToken nodeOrToken, int endIndex) { ImmutableArray<IndentationInfo> indentations = FindIndentations( binaryExpression, TextSpan.FromBounds(nodeOrToken.SpanStart, endIndex)) .ToImmutableArray(); if (!indentations.Any()) return; int firstIndentationLength = indentations[0].Span.Length; for (int j = 0; j < indentations.Length; j++) { IndentationInfo indentationInfo = indentations[j]; string replacement = indentation + indentationAnalysis.GetSingleIndentation(); if (j > 0 && indentationInfo.Span.Length > firstIndentationLength) { replacement += indentationInfo.ToString().Substring(firstIndentationLength); } if (indentationInfo.Span.Length != replacement.Length) textChanges.Add(indentationInfo.Span, replacement); } } } public static Task<Document> FixListAsync( Document document, ParameterListSyntax parameterList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, parameterList, parameterList.OpenParenToken, parameterList.Parameters, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, BracketedParameterListSyntax bracketedParameterList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, bracketedParameterList, bracketedParameterList.OpenBracketToken, bracketedParameterList.Parameters, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, TypeParameterListSyntax typeParameterList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, typeParameterList, typeParameterList.LessThanToken, typeParameterList.Parameters, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, ArgumentListSyntax argumentList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, argumentList, argumentList.OpenParenToken, argumentList.Arguments, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, BracketedArgumentListSyntax bracketedArgumentList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, bracketedArgumentList, bracketedArgumentList.OpenBracketToken, bracketedArgumentList.Arguments, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, AttributeArgumentListSyntax attributeArgumentList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, attributeArgumentList, attributeArgumentList.OpenParenToken, attributeArgumentList.Arguments, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, TypeArgumentListSyntax typeArgumentList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, typeArgumentList, typeArgumentList.LessThanToken, typeArgumentList.Arguments, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, AttributeListSyntax attributeList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, attributeList, attributeList.OpenBracketToken, attributeList.Attributes, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, BaseListSyntax baseList, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync(document, baseList, baseList.ColonToken, baseList.Types, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, TupleTypeSyntax tupleType, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, tupleType, tupleType.OpenParenToken, tupleType.Elements, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, TupleExpressionSyntax tupleExpression, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, tupleExpression, tupleExpression.OpenParenToken, tupleExpression.Arguments, fixMode, cancellationToken); } public static Task<Document> FixListAsync( Document document, InitializerExpressionSyntax initializerExpression, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) { return FixListAsync( document, initializerExpression, initializerExpression.OpenBraceToken, initializerExpression.Expressions, fixMode, cancellationToken); } private static Task<Document> FixListAsync<TNode>( Document document, SyntaxNode containingNode, SyntaxNodeOrToken openNodeOrToken, SeparatedSyntaxList<TNode> nodes, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) where TNode : SyntaxNode { List<TextChange> textChanges = GetFixListChanges( containingNode, openNodeOrToken, nodes, fixMode, cancellationToken); return document.WithTextChangesAsync( textChanges, cancellationToken); } internal static List<TextChange> GetFixListChanges<TNode>( SyntaxNode containingNode, SyntaxNodeOrToken openNodeOrToken, IReadOnlyList<TNode> nodes, ListFixMode fixMode = ListFixMode.Fix, CancellationToken cancellationToken = default) where TNode : SyntaxNode { IndentationAnalysis indentationAnalysis = AnalyzeIndentation(containingNode, cancellationToken); string increasedIndentation = indentationAnalysis.GetIncreasedIndentation(); bool isSingleLine; SeparatedSyntaxList<TNode> separatedList = default; if (nodes is SyntaxList<TNode> list) { isSingleLine = list.IsSingleLine(includeExteriorTrivia: false, cancellationToken: cancellationToken); } else { separatedList = (SeparatedSyntaxList<TNode>)nodes; isSingleLine = separatedList.IsSingleLine( includeExteriorTrivia: false, cancellationToken: cancellationToken); } if (isSingleLine && fixMode == ListFixMode.Fix) { TNode node = nodes[0]; SyntaxTriviaList leading = node.GetLeadingTrivia(); TextSpan span = (leading.Any() && leading.Last().IsWhitespaceTrivia()) ? leading.Last().Span : new TextSpan(node.SpanStart, 0); return new List<TextChange>() { new TextChange(span, increasedIndentation) }; } var textChanges = new List<TextChange>(); TextLineCollection lines = null; string endOfLine = DetermineEndOfLine(containingNode).ToString(); for (int i = 0; i < nodes.Count; i++) { SyntaxToken token; if (i == 0) { token = (openNodeOrToken.IsNode) ? openNodeOrToken.AsNode().GetLastToken() : openNodeOrToken.AsToken(); } else { token = (list == default) ? separatedList.GetSeparator(i - 1) : list[i - 1].GetLastToken(); } SyntaxTriviaList trailing = token.TrailingTrivia; TNode node = nodes[i]; var indentationAdded = false; if (IsOptionalWhitespaceThenOptionalSingleLineCommentThenEndOfLineTrivia(trailing)) { SyntaxTrivia last = node.GetLeadingTrivia().LastOrDefault(); if (last.IsWhitespaceTrivia()) { if (last.Span.Length == increasedIndentation.Length) continue; textChanges.Add(last.Span, increasedIndentation); } else { textChanges.Add(new TextSpan(node.SpanStart, 0), increasedIndentation); } indentationAdded = true; } else { if (nodes.Count == 1 && node is ArgumentSyntax argument) { LambdaBlock lambdaBlock = GetLambdaBlock(argument, lines ??= argument.SyntaxTree.GetText().Lines); if (lambdaBlock.Block != null) increasedIndentation = indentationAnalysis.Indentation.ToString(); } if ((nodes.Count > 1 || fixMode == ListFixMode.Wrap) && ShouldWrapAndIndent(containingNode, i)) { textChanges.Add( (trailing.Any() && trailing.Last().IsWhitespaceTrivia()) ? trailing.Last().Span : new TextSpan(token.FullSpan.End, 0), endOfLine); textChanges.Add(new TextSpan(node.FullSpan.Start, 0), increasedIndentation); indentationAdded = true; } } ImmutableArray<IndentationInfo> indentations = FindIndentations(node, node.Span).ToImmutableArray(); if (!indentations.Any()) continue; LambdaBlock lambdaBlock2 = GetLambdaBlock(node, lines ??= node.SyntaxTree.GetText().Lines); bool isLambdaBlockWithOpenBraceAtEndOfLine = lambdaBlock2.Token == indentations.Last().Token; int baseIndentationLength = (isLambdaBlockWithOpenBraceAtEndOfLine) ? indentations.Last().Span.Length : indentations[0].Span.Length; for (int j = indentations.Length - 1; j >= 0; j--) { IndentationInfo indentationInfo = indentations[j]; if (indentationAdded && node is ArgumentSyntax argument && (argument.Expression as AnonymousFunctionExpressionSyntax)?.Block != null) { indentationAdded = false; } string replacement = increasedIndentation; if (indentationAdded) replacement += indentationAnalysis.GetSingleIndentation(); if ((j > 0 || isLambdaBlockWithOpenBraceAtEndOfLine) && indentationInfo.Span.Length > baseIndentationLength) { replacement += indentationInfo.ToString().Substring(baseIndentationLength); } if (indentationInfo.Span.Length != replacement.Length) textChanges.Add(indentationInfo.Span, replacement); } } FormattingVerifier.VerifyChangedSpansAreWhitespace(containingNode, textChanges); return textChanges; } } }
37.484404
160
0.549072
[ "Apache-2.0" ]
RickeyEstes/Roslynator
src/Formatting.Analyzers.CodeFixes/CSharp/CodeFixHelpers.cs
40,860
C#
using System; using System.Runtime.InteropServices; using System.Security; using Microsoft.VisualStudio.TestTools.UnitTesting; using NativeCodeSharp; namespace NativeCodeSharpTest { /// <summary> /// Test class for <see cref="NativeMethodHandle"/> /// </summary> [TestClass] public class NativeMethodHandleTest { /// <summary> /// Test method for <see cref="NativeMethodHandle.Create{TDelegate}(byte[])"/>. /// </summary> [TestMethod] public void Create() { const int ArraySize = 32; var src1 = new float[ArraySize]; var src2 = new float[ArraySize]; for (int i = 0; i < ArraySize; i++) { src1[i] = i; src2[i] = i; } var dst = new float[ArraySize]; using (var mh = CreateInnerProductMethodHandle()) { mh.Method(dst, src1, src2, dst.Length); } foreach (var e in dst) { Console.Write($"{e} "); } } /// <summary> /// Test method for <see cref="NativeMethodHandle{TDelegate}.Clone"/>. /// </summary> [TestMethod] public void Clone() { const int ArraySize = 32; var src1 = new float[ArraySize]; var src2 = new float[ArraySize]; for (int i = 0; i < ArraySize; i++) { src1[i] = i; src2[i] = i; } var dst = new float[ArraySize]; var mh1 = CreateInnerProductMethodHandle(); var mh2 = (NativeMethodHandle<InnerProductDelegate>)mh1.Clone(); mh1.Dispose(); mh2.Method(dst, src1, src2, dst.Length); foreach (var e in dst) { Console.Write($"{e} "); } } /// <summary> /// Calculate inner product of two <see cref="float"/> arrays. /// </summary> /// <param name="dst">Destination array</param> /// <param name="src1">First source array</param> /// <param name="src2">Second source array</param> /// <param name="count">Element size of <paramref name="dst"/>, <paramref name="src1"/> and <paramref name="src2"/></param> [UnmanagedFunctionPointer(CallingConvention.StdCall)] [SuppressUnmanagedCodeSecurity] private delegate void InnerProductDelegate(float[] dst, float[] src1, float[] src2, int count); /// <summary> /// Create native code method that calculate inner product of two <see cref="float"/> arrays. /// </summary> /// <returns>Native code method of inner product calculation</returns> private NativeMethodHandle<InnerProductDelegate> CreateInnerProductMethodHandle() { // void __stdcall // inner_product( // float* dst, // const float* src1, // const float* src2, // int size) noexcept // { // constexpr auto stride = static_cast<int>(sizeof(__m128) / sizeof(float)); // // for (int i = 0, im = size - stride; i <= im; i += stride) { // _mm_storeu_ps( // &dst[i], // _mm_mul_ps( // _mm_loadu_ps(&src1[i]), // _mm_loadu_ps(&src2[i]))); // } // // const auto remSize = size % stride; // if (remSize == 0) { // return; // } // // const auto offset = size - remSize; // for (int i = offset; i < size; i++) { // dst[i] = src1[i] * src2[i]; // } // } return NativeMethodHandle.Create<InnerProductDelegate>(Environment.Is64BitProcess ? new byte[] { 0x41, 0x83, 0xf9, 0x03, // cmp r9d,0x3 0x7e, 0x33, // jle L2 0x45, 0x8d, 0x51, 0xfc, // lea r10d,[r9-0x4] 0x31, 0xc0, // xor eax,eax 0x41, 0xc1, 0xea, 0x02, // shr r10d,0x2 0x49, 0x83, 0xc2, 0x01, // add r10,0x1 0x49, 0xc1, 0xe2, 0x04, // shl r10,0x4 0x0f, 0x1f, 0x84, 0x00, 0x00, 0x00, 0x00, // nop DWORD PTR [rax+rax*1+0x0] 0x00, // L1: 0x41, 0x0f, 0x10, 0x04, 0x00, // movups xmm0,XMMWORD PTR [r8+rax*1] 0x0f, 0x10, 0x0c, 0x02, // movups xmm1,XMMWORD PTR [rdx+rax*1] 0x0f, 0x59, 0xc1, // mulps xmm0,xmm1 0x0f, 0x11, 0x04, 0x01, // movups XMMWORD PTR [rcx+rax*1],xmm0 0x48, 0x83, 0xc0, 0x10, // add rax,0x10 0x49, 0x39, 0xc2, // cmp r10,rax 0x75, 0xe7, // jne L1 // L2: 0x45, 0x89, 0xca, // mov r10d,r9d 0x41, 0xc1, 0xfa, 0x1f, // sar r10d,0x1f 0x41, 0xc1, 0xea, 0x1e, // shr r10d,0x1e 0x43, 0x8d, 0x04, 0x11, // lea eax,[r9+r10*1] 0x83, 0xe0, 0x03, // and eax,0x3 0x44, 0x29, 0xd0, // sub eax,r10d 0x74, 0x49, // je L4 0x45, 0x89, 0xca, // mov r10d,r9d 0x41, 0x29, 0xc2, // sub r10d,eax 0x45, 0x39, 0xd1, // cmp r9d,r10d 0x7e, 0x3e, // jle L4 0x41, 0x83, 0xe9, 0x01, // sub r9d,0x1 0x4d, 0x63, 0xda, // movsxd r11,r10d 0x45, 0x29, 0xd1, // sub r9d,r10d 0x4a, 0x8d, 0x04, 0x9d, 0x00, 0x00, 0x00, // lea rax,[r11*4+0x0] 0x00, 0x4f, 0x8d, 0x4c, 0x0b, 0x01, // lea r9,[r11+r9*1+0x1] 0x49, 0xc1, 0xe1, 0x02, // shl r9,0x2 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0x00, 0x00, // nop WORD PTR cs:[rax+rax*1+0x0] 0x00, 0x00, 0x00, // L3: 0xf3, 0x0f, 0x10, 0x04, 0x02, // movss xmm0,DWORD PTR [rdx+rax*1] 0xf3, 0x41, 0x0f, 0x59, 0x04, 0x00, // mulss xmm0,DWORD PTR [r8+rax*1] 0xf3, 0x0f, 0x11, 0x04, 0x01, // movss DWORD PTR [rcx+rax*1],xmm0 0x48, 0x83, 0xc0, 0x04, // add rax,0x4 0x4c, 0x39, 0xc8, // cmp rax,r9 0x75, 0xe7, // jne L3 // L4: 0xc3, // ret } : new byte[] { 0x55, // push ebp 0x89, 0xe5, // mov ebp,esp 0x57, // push edi 0x56, // push esi 0x8b, 0x75, 0x14, // mov esi,DWORD PTR [ebp+0x14] 0x53, // push ebx 0x8b, 0x55, 0x08, // mov edx,DWORD PTR [ebp+0x8] 0x8b, 0x5d, 0x0c, // mov ebx,DWORD PTR [ebp+0xc] 0x83, 0xe4, 0xf0, // and esp,0xfffffff0 0x8b, 0x4d, 0x10, // mov ecx,DWORD PTR [ebp+0x10] 0x83, 0xfe, 0x03, // cmp esi,0x3 0x7e, 0x21, // jle L2 0x8d, 0x7e, 0xfc, // lea edi,[esi-0x4] 0x31, 0xc0, // xor eax,eax 0x83, 0xe7, 0xfc, // and edi,0xfffffffc 0x83, 0xc7, 0x04, // add edi,0x4 // L1: 0x0f, 0x10, 0x04, 0x81, // movups xmm0,XMMWORD PTR [ecx+eax*4] 0x0f, 0x10, 0x0c, 0x83, // movups xmm1,XMMWORD PTR [ebx+eax*4] 0x0f, 0x59, 0xc1, // mulps xmm0,xmm1 0x0f, 0x11, 0x04, 0x82, // movups XMMWORD PTR [edx+eax*4],xmm0 0x83, 0xc0, 0x04, // add eax,0x4 0x39, 0xf8, // cmp eax,edi 0x75, 0xea, // jne L1 // L2: 0x89, 0xf7, // mov edi,esi 0xc1, 0xff, 0x1f, // sar edi,0x1f 0xc1, 0xef, 0x1e, // shr edi,0x1e 0x8d, 0x04, 0x3e, // lea eax,[esi+edi*1] 0x83, 0xe0, 0x03, // and eax,0x3 0x29, 0xf8, // sub eax,edi 0x74, 0x2a, // je L4 0x89, 0xf7, // mov edi,esi 0x29, 0xc7, // sub edi,eax 0x39, 0xfe, // cmp esi,edi 0x7e, 0x22, // jle L4 0xc1, 0xe7, 0x02, // shl edi,0x2 0x8d, 0x04, 0x3b, // lea eax,[ebx+edi*1] 0x8d, 0x1c, 0xb3, // lea ebx,[ebx+esi*4] 0x01, 0xf9, // add ecx,edi 0x01, 0xfa, // add edx,edi // L3: 0xd9, 0x00, // fld DWORD PTR [eax] 0x83, 0xc0, 0x04, // add eax,0x4 0x83, 0xc1, 0x04, // add ecx,0x4 0x83, 0xc2, 0x04, // add edx,0x4 0xd8, 0x49, 0xfc, // fmul DWORD PTR [ecx-0x4] 0xd9, 0x5a, 0xfc, // fstp DWORD PTR [edx-0x4] 0x39, 0xd8, // cmp eax,ebx 0x75, 0xeb, // jne L3 // L4: 0x8d, 0x65, 0xf4, // lea esp,[ebp-0xc] 0x5b, // pop ebx 0x5e, // pop esi 0x5f, // pop edi 0x5d, // pop ebp 0xc2, 0x10, 0x00, // ret 0x10 }); } } }
53.943966
132
0.334319
[ "MIT" ]
koturn/NativeCodeSharp
NativeCodeSharpTest/NativeMethodHandleTest.cs
12,517
C#
using System.Collections.Generic; using System.Linq; using SmartHome.DomainCore.Data.Models; namespace SmartHome.Web.Models.User { public class UserPermissionsViewModel { public long UserId { get; set; } public IEnumerable<PermissionModel> PermissionOptions { get; set; } = Enumerable.Empty<PermissionModel>(); public UserPermissionsViewModel(long userId) { UserId = userId; } } }
26.235294
114
0.679372
[ "MIT" ]
JanPalasek/smart-home-server
SmartHome.Web/Models/User/UserPermissionsViewModel.cs
446
C#
using System; using Vostok.Logging.File.Helpers; namespace Vostok.Logging.File.Muxers { internal interface IMuxerRegistration : IDisposable { bool IsValid(FilePath against); } }
19.9
55
0.723618
[ "MIT" ]
dragrayraptor/logging.file
Vostok.Logging.File/Muxers/IMuxerRegistration.cs
201
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; namespace Weakly { /// <summary> /// A collections which only holds weak references to the items. /// </summary> /// <typeparam name="T">The type of the elements in the collection.</typeparam> public class WeakCollection<T> : ICollection<T> where T : class { private readonly List<WeakReference> _inner; private readonly WeakReference _gcSentinel = new WeakReference(new object()); private void CleanIfNeeded() { if (_gcSentinel.IsAlive) return; _gcSentinel.Target = new object(); Purge(); } #region Constructors /// <summary> /// Initializes a new instance of the <see cref="WeakCollection&lt;T&gt;"/> class that is empty and has the default initial capacity. /// </summary> public WeakCollection() { _inner = new List<WeakReference>(); } /// <summary> /// Initializes a new instance of the <see cref="WeakCollection&lt;T&gt;"/> class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied. /// </summary> /// <param name="collection">The collection whose elements are copied to the new collection.</param> public WeakCollection(IEnumerable<T> collection) { _inner = new List<WeakReference>(collection.Select(item => new WeakReference(item))); } /// <summary> /// Initializes a new instance of the <see cref="WeakCollection&lt;T&gt;"/> class that is empty and has the specified initial capacity. /// </summary> /// <param name="capacity">The number of elements that the new list can initially store.</param> public WeakCollection(int capacity) { _inner = new List<WeakReference>(capacity); } #endregion /// <summary> /// Removes all dead entries. /// </summary> /// <returns>true if entries where removed; otherwise false.</returns> public bool Purge() { return _inner.RemoveAll(l => !l.IsAlive) > 0; } /// <summary> /// Returns an enumerator that iterates through the collection. /// </summary> /// <returns>A <see cref="T:System.Collections.Generic.IEnumerator`1" /> that can be used to iterate through the collection.</returns> public IEnumerator<T> GetEnumerator() { CleanIfNeeded(); var enumerable = _inner.Select(item => (T) item.Target) .Where(value => value is object); return enumerable.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } /// <summary> /// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> /// <param name="item">The object to add to the <see cref="T:System.Collections.Generic.ICollection`1" />.</param> public void Add(T item) { CleanIfNeeded(); _inner.Add(new WeakReference(item)); } /// <summary> /// Removes all items from the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> public void Clear() { _inner.Clear(); } /// <summary> /// Determines whether the <see cref="T:System.Collections.Generic.ICollection`1" /> contains a specific value. /// </summary> /// <param name="item">The object to locate in the <see cref="T:System.Collections.Generic.ICollection`1" />.</param> /// <returns>true if <paramref name="item" /> is found in the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, false.</returns> public bool Contains(T item) { CleanIfNeeded(); return _inner.FindIndex(w => ((T) w.Target) == item) >= 0; } /// <summary> /// Copies the elements of the collection to an Array, starting at a particular Array index. /// </summary> /// <param name="array">The one-dimensional Array that is the destination of the elements copied from the collection.</param> /// <param name="arrayIndex">The zero-based index in array at which copying begins.</param> public void CopyTo(T[] array, int arrayIndex) { CleanIfNeeded(); if (array is null) throw new ArgumentNullException(nameof(array)); if (arrayIndex < 0 || arrayIndex >= array.Length) throw new ArgumentOutOfRangeException(nameof(arrayIndex)); if ((arrayIndex + _inner.Count) > array.Length) throw new ArgumentException("The number of elements in the source collection is greater than the available space from arrayIndex to the end of the destination array."); var items = _inner.Select(item => (T) item.Target) .Where(value => value is object) .ToArray(); items.CopyTo(array, arrayIndex); } /// <summary> /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> /// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1" />.</param> /// <returns>true if <paramref name="item" /> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, false. This method also returns false if <paramref name="item" /> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1" />.</returns> public bool Remove(T item) { CleanIfNeeded(); for (var i = 0; i < _inner.Count; i++) { var target = (T) _inner[i].Target; if (target == item) { _inner.RemoveAt(i); return true; } } return false; } /// <summary> /// Gets the number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> /// <returns>The number of elements contained in the <see cref="T:System.Collections.Generic.ICollection`1" />.</returns> public int Count { get { CleanIfNeeded(); return _inner.Count; } } /// <summary> /// Gets a value indicating whether the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only. /// </summary> /// <returns>true if the <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only; otherwise, false.</returns> public bool IsReadOnly { get { return false; } } } }
39.430939
321
0.580076
[ "MIT" ]
tibel/Weakly
src/Weakly/Collections/WeakCollection.cs
7,139
C#
using System; namespace AnyConfig { public class SectionInformation { /// <summary> /// Gets or sets a value that indicates whether the associated configuration section will be saved even if it has not been modified. /// </summary> public bool ForceSave { get; set; } /// <summary> /// Gets or sets a value that specifies whether a change in an external configuration include file requires an application restart. /// </summary> public bool RestartOnExternalChanges { get; set; } /// <summary> /// Gets a value that indicates whether the associated configuration section requires access permissions. /// </summary> public bool RequirePermission { get; set; } /// <summary> /// Gets the protected configuration provider for the associated configuration section. /// </summary> public ProtectedConfigurationProvider ProtectionProvider { get; private set; } /// <summary> /// Gets the name of the associated configuration section. /// </summary> public string Name { get; private set; } /// <summary> /// Gets a value that indicates whether the associated configuration section is protected. /// </summary> public bool IsProtected { get; private set; } /// <summary> /// Gets a value that indicates whether the associated configuration section is locked. /// </summary> public bool IsLocked { get; private set; } /// <summary> /// Gets a value that indicates whether the associated configuration section is declared in the configuration file. /// </summary> public bool IsDeclared { get; private set; } /// <summary> /// Gets a value that indicates whether the configuration section must be declared in the configuration file. /// </summary> public bool IsDeclarationRequired { get; private set; } /// <summary> /// Gets or sets a value that indicates whether the settings that are specified in the associated configuration section are inherited by applications that reside in a subdirectory of the relevant application. /// </summary> public bool InheritInChildApplications { get; set; } /// <summary> /// Gets or sets the section class name. /// </summary> public string Type { get; set; } /// <summary> /// Gets or sets the name of the include file in which the associated configuration section is defined, if such a file exists. /// </summary> public string ConfigSource { get; set; } /// <summary> /// Gets or sets a value that indicates whether the associated configuration section can be overridden by lower-level configuration files. /// </summary> public bool AllowOverride { get; set; } /// <summary> /// Gets or sets a value that indicates whether the configuration section allows the location attribute. /// </summary> public bool AllowLocation { get; set; } /// <summary> /// Gets the name of the associated configuration section. /// </summary> public string SectionName { get; private set; } public SectionInformation() { } public SectionInformation(string sectionName, string protectionProvider) : this(sectionName, typeof(object), protectionProvider) { } public SectionInformation(string sectionName, Type sectionType, string protectionProvider) { Name = sectionName; SectionName = sectionName; Type = sectionType.Name; if (!string.IsNullOrEmpty(protectionProvider)) { IsProtected = true; switch (protectionProvider.ToLower()) { case "rsaprotectedconfigurationprovider": ProtectionProvider = new RsaProtectedConfigurationProvider(); break; case "dataprotectionconfigurationprovider": case "dpapiprotectedconfigurationprovider": ProtectionProvider = new DpapiProtectedConfigurationProvider(); break; default: throw new NotSupportedException("Custom data protection providers are not supported. Please choose one of the default protection providers: DataProtectionConfigurationProvider, RsaProtectedConfigurationProvider"); } ProtectionProvider.Initialize(protectionProvider, null); } } } }
41.078261
237
0.618332
[ "MIT" ]
AaronAllBright/AnyConfig
AnyConfig/AnyConfig/SectionInformation.cs
4,726
C#
#nullable enable using System; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; namespace Content.Shared.Ghost.Roles { public abstract class SharedGhostRoleSystem : EntitySystem { } [Serializable, NetSerializable] public class GhostRole { public string Name { get; set; } = string.Empty; public string Description { get; set; } = string.Empty; public EntityUid Id; } }
21.095238
63
0.68623
[ "MIT" ]
Bright0/space-station-14
Content.Shared/Ghost/Roles/SharedGhostRoleSystem.cs
443
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ // **NOTE** This file was generated by a tool and any changes will be overwritten. // <auto-generated/> // Template Source: EntityCollectionResponse.cs.tt namespace Microsoft.Graph { using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// The type DeviceManagementDeviceShellScriptsCollectionResponse. /// </summary> [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public class DeviceManagementDeviceShellScriptsCollectionResponse { /// <summary> /// Gets or sets the <see cref="IDeviceManagementDeviceShellScriptsCollectionPage"/> value. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName ="value", Required = Newtonsoft.Json.Required.Default)] public IDeviceManagementDeviceShellScriptsCollectionPage Value { get; set; } /// <summary> /// Gets or sets additional data. /// </summary> [JsonExtensionData(ReadData = true)] public IDictionary<string, object> AdditionalData { get; set; } } }
42.147059
153
0.630147
[ "MIT" ]
GeertVL/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Generated/requests/DeviceManagementDeviceShellScriptsCollectionResponse.cs
1,433
C#
using System; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; namespace Mirror.Tests.RemoteAttrributeTest { class TargetRpcBehaviour : NetworkBehaviour { public event Action<int> onSendInt; [TargetRpc] public void SendInt(int someInt) { onSendInt?.Invoke(someInt); } [TargetRpc] public void SendIntWithTarget(NetworkConnection target, int someInt) { onSendInt?.Invoke(someInt); } } public class TargetRpcTest : RemoteTestBase { [Test] public void TargetRpcIsCalled() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(true); const int someInt = 20; int callCount = 0; hostBehaviour.onSendInt += incomingInt => { callCount++; Assert.That(incomingInt, Is.EqualTo(someInt)); }; hostBehaviour.SendInt(someInt); ProcessMessages(); Assert.That(callCount, Is.EqualTo(1)); } [Test] public void TargetRpcIsCalledOnTarget() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(false); const int someInt = 20; int callCount = 0; hostBehaviour.onSendInt += incomingInt => { callCount++; Assert.That(incomingInt, Is.EqualTo(someInt)); }; hostBehaviour.SendIntWithTarget(NetworkServer.localConnection, someInt); ProcessMessages(); Assert.That(callCount, Is.EqualTo(1)); } [Test] public void ErrorForTargetRpcWithNoOwner() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(false); const int someInt = 20; hostBehaviour.onSendInt += incomingInt => { Assert.Fail("Event should not be invoked with error"); }; LogAssert.Expect(LogType.Error, $"TargetRPC {nameof(TargetRpcBehaviour.SendInt)} was given a null connection, make sure the object has an owner or you pass in the target connection"); hostBehaviour.SendInt(someInt); } [Test] public void ErrorForTargetRpcWithNullArgment() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(false); const int someInt = 20; hostBehaviour.onSendInt += incomingInt => { Assert.Fail("Event should not be invoked with error"); }; LogAssert.Expect(LogType.Error, $"TargetRPC {nameof(TargetRpcBehaviour.SendIntWithTarget)} was given a null connection, make sure the object has an owner or you pass in the target connection"); hostBehaviour.SendIntWithTarget(null, someInt); } [Test] public void ErrorForTargetRpcWhenNotGivenConnectionToClient() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(false); const int someInt = 20; hostBehaviour.onSendInt += incomingInt => { Assert.Fail("Event should not be invoked with error"); }; LogAssert.Expect(LogType.Error, $"TargetRPC {nameof(TargetRpcBehaviour.SendIntWithTarget)} requires a NetworkConnectionToClient but was given {typeof(FakeConnection).Name}"); hostBehaviour.SendIntWithTarget(new FakeConnection(), someInt); } class FakeConnection : NetworkConnection { public override string address => throw new NotImplementedException(); public override void Disconnect() => throw new NotImplementedException(); internal override void Send(ArraySegment<byte> segment, int channelId = 0) => throw new NotImplementedException(); } [Test] public void ErrorForTargetRpcWhenServerNotActive() { TargetRpcBehaviour hostBehaviour = CreateHostObject<TargetRpcBehaviour>(true); const int someInt = 20; hostBehaviour.onSendInt += incomingInt => { Assert.Fail("Event should not be invoked with error"); }; NetworkServer.active = false; LogAssert.Expect(LogType.Error, $"TargetRPC {nameof(TargetRpcBehaviour.SendInt)} called when server not active"); hostBehaviour.SendInt(someInt); } [Test] public void ErrorForTargetRpcWhenObjetNotSpawned() { GameObject gameObject = new GameObject(); spawned.Add(gameObject); gameObject.AddComponent<NetworkIdentity>(); TargetRpcBehaviour hostBehaviour = gameObject.AddComponent<TargetRpcBehaviour>(); const int someInt = 20; hostBehaviour.onSendInt += incomingInt => { Assert.Fail("Event should not be invoked with error"); }; LogAssert.Expect(LogType.Warning, $"TargetRpc {nameof(TargetRpcBehaviour.SendInt)} called on {hostBehaviour.name} but that object has not been spawned or has been unspawned"); hostBehaviour.SendInt(someInt); } } }
35.718121
205
0.610673
[ "MIT" ]
28raining/Mirror
Assets/Mirror/Tests/Editor/TargetRpcTest.cs
5,322
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TarkOrm.Attributes { public class KeyAttribute : Attribute { public int Order { get; set; } public KeyAttribute() { } public KeyAttribute(int order) { Order = order; } } }
16.681818
41
0.618529
[ "Apache-2.0" ]
juniortarcisio/TarkOrm
TarkOrm/Attributes/KeyAttribute.cs
369
C#
using SF.Biz.Payments.DataModels; using SF.Sys.Entities; using System; using System.Linq; using System.Threading.Tasks; namespace SF.Biz.Payments.Managers { public class RefundRecordManager: AutoQueryableEntitySource<ObjectKey<long>, RefundRecordDetail,RefundRecord, RefundRecordQueryArgument,DataModels.DataRefundRecord>, IRefundRecordManager { public RefundRecordManager(IEntityServiceContext ServiceContext):base(ServiceContext) { } } }
25.578947
139
0.769547
[ "Apache-2.0" ]
etechi/ServiceFramework
Projects/Server/Biz/SF.Biz.Payments.Implements/Managers/RefundRecordManager.cs
488
C#
using OpenTK; using OpenTK.Graphics; using System; using System.Runtime.InteropServices; namespace Arbatel.Graphics { public static class VertexExtensions { public static Vector3 Rotate(this Vector3 vector, float pitch, float yaw, float roll) { if (pitch < 0.0f) { pitch = Math.Abs(pitch); } else { pitch = 360.0f - pitch; } // Assumes that objects are pointing toward +X; thereby pitch // represents rotation around world Y (camera Z), yaw is world // Z (camera Y), and roll is world/camera X. Matrix4 rotZ = Matrix4.CreateRotationZ(MathHelper.DegreesToRadians(pitch)); Matrix4 rotY = Matrix4.CreateRotationY(MathHelper.DegreesToRadians(yaw)); Matrix4 rotX = Matrix4.CreateRotationX(MathHelper.DegreesToRadians(roll)); Matrix4 rotation = rotZ * rotY * rotX; var yUpRightHand = new Vector4(vector.X, vector.Z, -vector.Y, 1.0f); Vector4 rotated = yUpRightHand * rotation; var zUpLeftHand = new Vector3(rotated.X, -rotated.Z, rotated.Y); return zUpLeftHand; } public static Vertex ModelToWorld(this Vertex v, Matrix4 modelMatrix) { return ConvertCoordinateSpace(v, modelMatrix); } public static Vertex WorldToModel(this Vertex v, Matrix4 modelMatrix) { var inverted = modelMatrix; inverted.Invert(); return ConvertCoordinateSpace(v, inverted); } public static Vertex ConvertCoordinateSpace(Vertex v, Matrix4 matrix) { var vec4 = new Vector4(v.Position.X, v.Position.Z, -v.Position.Y, 1.0f); Vector4 converted = vec4 * matrix; var vec3 = new Vector3(converted.X, -converted.Z, converted.Y); return new Vertex(v) { Position = vec3 }; } } public struct Vertex { public static int MemorySize { get; } = Marshal.SizeOf(typeof(Vertex)); public Vector3 Position { get; set; } public Vector3 Normal { get; set; } public Color4 Color { get; set; } public Vector2 TexCoords { get; set; } public Vertex(Vertex vertex) : this(vertex.Position, vertex.Normal, vertex.Color) { } public Vertex(Vector3 position) : this(position.X, position.Y, position.Z) { } public Vertex(float x, float y, float z) : this(new Vector3(x, y, z), new Vector3(0.0f, 0.0f, 1.0f), Color4.White) { } public Vertex(float x, float y, float z, Color4 color) : this(new Vector3(x, y, z), new Vector3(0.0f, 0.0f, 1.0f), color) { } public Vertex(Vector3 position, Color4 color) : this(position, new Vector3(0.0f, 0.0f, 1.0f), color) { } public Vertex(Vector3 position, Vector3 normal, Color4 color) : this(position, normal, color, new Vector2()) { } public Vertex(Vector3 position, Vector3 normal, Color4 color, Vector2 texCoords) { Position = position; Normal = normal; Color = color; TexCoords = texCoords; } public static Vertex Rotate(Vertex vertex, float pitch, float yaw, float roll) { return new Vertex(vertex) { Position = vertex.Position.Rotate(pitch, yaw, roll), Normal = vertex.Normal.Rotate(pitch, yaw, roll) }; } public static Vertex TranslateRelative(Vertex v, Vector3 diff) { return new Vertex(v) { Position = new Vector3(v.Position + diff) }; } public static Vertex TranslateRelative(Vertex v, float diffX, float diffY, float diffZ) { return TranslateRelative(v, new Vector3(diffX, diffY, diffZ)); } public static Vector3 Add(Vertex lhs, Vertex rhs) { return lhs.Position + rhs.Position; } public static Vector3 operator +(Vertex lhs, Vertex rhs) { return Add(lhs, rhs); } public static Vector3 Subtract(Vertex lhs, Vertex rhs) { return lhs.Position - rhs.Position; } public static Vector3 operator -(Vertex lhs, Vertex rhs) { return Subtract(lhs, rhs); } public static Vector3 ToVector3(Vertex vertex) { return new Vector3(vertex.Position); } public static implicit operator Vector3(Vertex vertex) { return ToVector3(vertex); } public override string ToString() { return Position.ToString(); } } }
25.608974
89
0.68786
[ "MIT" ]
ItEndsWithTens/Arbatel
src/Arbatel.Core/Graphics/Vertex.cs
3,997
C#
/** * The MIT License * Copyright (c) 2016 Population Register Centre (VRK) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ using System; using PTV.Database.DataAccess.Interfaces.Translators; using PTV.Database.Model.Models; using PTV.Domain.Model.Models; using PTV.Framework; using PTV.Framework.Interfaces; namespace PTV.Database.DataAccess.Translators.GeneralDescription { [RegisterService(typeof(ITranslator<StatutoryServiceIndustrialClass, VmListItem>), RegisterType.Transient)] internal class StatutoryServiceIndustrialClassTranslator : Translator<StatutoryServiceIndustrialClass, VmListItem> { public StatutoryServiceIndustrialClassTranslator(IResolveManager resolveManager, ITranslationPrimitives translationPrimitives) : base(resolveManager, translationPrimitives) { } public override VmListItem TranslateEntityToVm(StatutoryServiceIndustrialClass entity) { throw new NotImplementedException(); } public override StatutoryServiceIndustrialClass TranslateVmToEntity(VmListItem vModel) { return CreateViewModelEntityDefinition<StatutoryServiceIndustrialClass>(vModel) .UseDataContextUpdate(i => true, i => o => i.Id == o.IndustrialClassId && i.OwnerReferenceId == o.StatutoryServiceGeneralDescriptionVersionedId, def => def.UseDataContextCreate(i => true).AddSimple(i => i.Id, o => o.IndustrialClassId)) .GetFinal(); } } }
47.754717
180
0.749506
[ "MIT" ]
MikkoVirenius/ptv-1.7
src/PTV.Database.DataAccess/Translators/GeneralDescription/StatutoryServiceIndustrialClassTranslator.cs
2,533
C#
namespace Gw2Sharp.WebApi.V2.Models { /// <summary> /// A distance skill fact. /// </summary> public class SkillFactDistance : SkillFact { /// <summary> /// The distance. /// </summary> public int Distance { get; set; } } }
20
46
0.528571
[ "MIT" ]
Archomeda/Gw2Sharp
Gw2Sharp/WebApi/V2/Models/Skills/SkillFactDistance.cs
280
C#
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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.Web; using ASC.Api.Interfaces; using ASC.Api.Utils; using ASC.Common.Logging; using ASC.Core; using ASC.Web.Core; namespace ASC.Specific { public class AscCookieAuthorization : IApiAuthorization { private readonly ILog log; public AscCookieAuthorization(ILog log) { this.log = log; } public bool Authorize(HttpContextBase context) { if (!SecurityContext.IsAuthenticated) { try { var cookie = CookiesManager.GetRequestVar(CookiesType.AuthKey).If(x => string.IsNullOrEmpty(x), () => context.Request.Headers["Authorization"]); if (cookie != null && !string.IsNullOrEmpty(cookie)) { if (!SecurityContext.AuthenticateMe(cookie)) { log.WarnFormat("ASC cookie auth failed with cookie={0}", cookie); } return SecurityContext.IsAuthenticated; } log.Debug("no ASC cookie"); } catch (Exception e) { log.Error("ASC cookie auth error", e); } } return SecurityContext.IsAuthenticated; } public bool OnAuthorizationFailed(HttpContextBase context) { return false; } } }
29.263889
164
0.573802
[ "ECL-2.0", "Apache-2.0", "MIT" ]
ONLYOFFICE/CommunityServer
module/ASC.Api/ASC.Specific/ASCCookieAuthorization.cs
2,107
C#
namespace B3dm.Tileset { public static class Comparer { public static bool IsSimilar(double first, double second) { var delta = 0.1; return (second > first - delta) && (second < first + delta); } } }
20.153846
72
0.538168
[ "MIT" ]
Geodan/pg2b3dm
src/b3dm.tileset/Comparer.cs
264
C#
namespace Optivem.Demo.Core.Domain.Customers { public class CustomerHeaderReadModel { public CustomerHeaderReadModel(CustomerIdentity customerId, string firstName, string lastName, int openOrders) { CustomerId = customerId; FirstName = firstName; LastName = lastName; OpenOrders = openOrders; } public CustomerIdentity CustomerId { get; } public string FirstName { get; } public string LastName { get; } public int OpenOrders { get; } } }
25.454545
118
0.621429
[ "MIT" ]
optivem/csharp-serialization-xml
src/Core/Optivem.Demo.Core.Domain/Customers/CustomerHeaderReadModel.cs
562
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 macie2-2020-01-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Macie2.Model; namespace Amazon.Macie2 { /// <summary> /// Interface for accessing Macie2 /// /// Amazon Macie is a fully managed data security and data privacy service that uses machine /// learning and pattern matching to discover and protect your sensitive data in AWS. /// Macie automates the discovery of sensitive data, such as PII and intellectual property, /// to provide you with insight into the data that your organization stores in AWS. Macie /// also provides an inventory of your Amazon S3 buckets, which it continually monitors /// for you. If Macie detects sensitive data or potential data access issues, it generates /// detailed findings for you to review and act upon as necessary. /// </summary> public partial interface IAmazonMacie2 : IAmazonService, IDisposable { #region AcceptInvitation /// <summary> /// Accepts an Amazon Macie membership invitation that was received from a specific account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the AcceptInvitation service method.</param> /// /// <returns>The response from the AcceptInvitation service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AcceptInvitation">REST API Reference for AcceptInvitation Operation</seealso> AcceptInvitationResponse AcceptInvitation(AcceptInvitationRequest request); /// <summary> /// Initiates the asynchronous execution of the AcceptInvitation operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AcceptInvitation operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAcceptInvitation /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AcceptInvitation">REST API Reference for AcceptInvitation Operation</seealso> IAsyncResult BeginAcceptInvitation(AcceptInvitationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AcceptInvitation operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAcceptInvitation.</param> /// /// <returns>Returns a AcceptInvitationResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/AcceptInvitation">REST API Reference for AcceptInvitation Operation</seealso> AcceptInvitationResponse EndAcceptInvitation(IAsyncResult asyncResult); #endregion #region BatchGetCustomDataIdentifiers /// <summary> /// Retrieves information about one or more custom data identifiers. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchGetCustomDataIdentifiers service method.</param> /// /// <returns>The response from the BatchGetCustomDataIdentifiers service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BatchGetCustomDataIdentifiers">REST API Reference for BatchGetCustomDataIdentifiers Operation</seealso> BatchGetCustomDataIdentifiersResponse BatchGetCustomDataIdentifiers(BatchGetCustomDataIdentifiersRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchGetCustomDataIdentifiers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchGetCustomDataIdentifiers operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchGetCustomDataIdentifiers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BatchGetCustomDataIdentifiers">REST API Reference for BatchGetCustomDataIdentifiers Operation</seealso> IAsyncResult BeginBatchGetCustomDataIdentifiers(BatchGetCustomDataIdentifiersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchGetCustomDataIdentifiers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchGetCustomDataIdentifiers.</param> /// /// <returns>Returns a BatchGetCustomDataIdentifiersResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BatchGetCustomDataIdentifiers">REST API Reference for BatchGetCustomDataIdentifiers Operation</seealso> BatchGetCustomDataIdentifiersResponse EndBatchGetCustomDataIdentifiers(IAsyncResult asyncResult); #endregion #region CreateClassificationJob /// <summary> /// Creates and defines the settings for a classification job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateClassificationJob service method.</param> /// /// <returns>The response from the CreateClassificationJob service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateClassificationJob">REST API Reference for CreateClassificationJob Operation</seealso> CreateClassificationJobResponse CreateClassificationJob(CreateClassificationJobRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateClassificationJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateClassificationJob operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateClassificationJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateClassificationJob">REST API Reference for CreateClassificationJob Operation</seealso> IAsyncResult BeginCreateClassificationJob(CreateClassificationJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateClassificationJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateClassificationJob.</param> /// /// <returns>Returns a CreateClassificationJobResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateClassificationJob">REST API Reference for CreateClassificationJob Operation</seealso> CreateClassificationJobResponse EndCreateClassificationJob(IAsyncResult asyncResult); #endregion #region CreateCustomDataIdentifier /// <summary> /// Creates and defines the criteria and other settings for a custom data identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateCustomDataIdentifier service method.</param> /// /// <returns>The response from the CreateCustomDataIdentifier service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateCustomDataIdentifier">REST API Reference for CreateCustomDataIdentifier Operation</seealso> CreateCustomDataIdentifierResponse CreateCustomDataIdentifier(CreateCustomDataIdentifierRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateCustomDataIdentifier operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateCustomDataIdentifier operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCustomDataIdentifier /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateCustomDataIdentifier">REST API Reference for CreateCustomDataIdentifier Operation</seealso> IAsyncResult BeginCreateCustomDataIdentifier(CreateCustomDataIdentifierRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateCustomDataIdentifier operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCustomDataIdentifier.</param> /// /// <returns>Returns a CreateCustomDataIdentifierResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateCustomDataIdentifier">REST API Reference for CreateCustomDataIdentifier Operation</seealso> CreateCustomDataIdentifierResponse EndCreateCustomDataIdentifier(IAsyncResult asyncResult); #endregion #region CreateFindingsFilter /// <summary> /// Creates and defines the criteria and other settings for a findings filter. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateFindingsFilter service method.</param> /// /// <returns>The response from the CreateFindingsFilter service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateFindingsFilter">REST API Reference for CreateFindingsFilter Operation</seealso> CreateFindingsFilterResponse CreateFindingsFilter(CreateFindingsFilterRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateFindingsFilter operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateFindingsFilter operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateFindingsFilter /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateFindingsFilter">REST API Reference for CreateFindingsFilter Operation</seealso> IAsyncResult BeginCreateFindingsFilter(CreateFindingsFilterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateFindingsFilter operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateFindingsFilter.</param> /// /// <returns>Returns a CreateFindingsFilterResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateFindingsFilter">REST API Reference for CreateFindingsFilter Operation</seealso> CreateFindingsFilterResponse EndCreateFindingsFilter(IAsyncResult asyncResult); #endregion #region CreateInvitations /// <summary> /// Sends an Amazon Macie membership invitation to one or more accounts. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateInvitations service method.</param> /// /// <returns>The response from the CreateInvitations service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateInvitations">REST API Reference for CreateInvitations Operation</seealso> CreateInvitationsResponse CreateInvitations(CreateInvitationsRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateInvitations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateInvitations operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateInvitations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateInvitations">REST API Reference for CreateInvitations Operation</seealso> IAsyncResult BeginCreateInvitations(CreateInvitationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateInvitations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateInvitations.</param> /// /// <returns>Returns a CreateInvitationsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateInvitations">REST API Reference for CreateInvitations Operation</seealso> CreateInvitationsResponse EndCreateInvitations(IAsyncResult asyncResult); #endregion #region CreateMember /// <summary> /// Associates an account with an Amazon Macie master account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateMember service method.</param> /// /// <returns>The response from the CreateMember service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateMember">REST API Reference for CreateMember Operation</seealso> CreateMemberResponse CreateMember(CreateMemberRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateMember operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateMember operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateMember /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateMember">REST API Reference for CreateMember Operation</seealso> IAsyncResult BeginCreateMember(CreateMemberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateMember operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateMember.</param> /// /// <returns>Returns a CreateMemberResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateMember">REST API Reference for CreateMember Operation</seealso> CreateMemberResponse EndCreateMember(IAsyncResult asyncResult); #endregion #region CreateSampleFindings /// <summary> /// Creates sample findings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateSampleFindings service method.</param> /// /// <returns>The response from the CreateSampleFindings service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateSampleFindings">REST API Reference for CreateSampleFindings Operation</seealso> CreateSampleFindingsResponse CreateSampleFindings(CreateSampleFindingsRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateSampleFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateSampleFindings operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateSampleFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateSampleFindings">REST API Reference for CreateSampleFindings Operation</seealso> IAsyncResult BeginCreateSampleFindings(CreateSampleFindingsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateSampleFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateSampleFindings.</param> /// /// <returns>Returns a CreateSampleFindingsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/CreateSampleFindings">REST API Reference for CreateSampleFindings Operation</seealso> CreateSampleFindingsResponse EndCreateSampleFindings(IAsyncResult asyncResult); #endregion #region DeclineInvitations /// <summary> /// Declines Amazon Macie membership invitations that were received from specific accounts. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeclineInvitations service method.</param> /// /// <returns>The response from the DeclineInvitations service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeclineInvitations">REST API Reference for DeclineInvitations Operation</seealso> DeclineInvitationsResponse DeclineInvitations(DeclineInvitationsRequest request); /// <summary> /// Initiates the asynchronous execution of the DeclineInvitations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeclineInvitations operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeclineInvitations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeclineInvitations">REST API Reference for DeclineInvitations Operation</seealso> IAsyncResult BeginDeclineInvitations(DeclineInvitationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeclineInvitations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeclineInvitations.</param> /// /// <returns>Returns a DeclineInvitationsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeclineInvitations">REST API Reference for DeclineInvitations Operation</seealso> DeclineInvitationsResponse EndDeclineInvitations(IAsyncResult asyncResult); #endregion #region DeleteCustomDataIdentifier /// <summary> /// Soft deletes a custom data identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCustomDataIdentifier service method.</param> /// /// <returns>The response from the DeleteCustomDataIdentifier service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteCustomDataIdentifier">REST API Reference for DeleteCustomDataIdentifier Operation</seealso> DeleteCustomDataIdentifierResponse DeleteCustomDataIdentifier(DeleteCustomDataIdentifierRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteCustomDataIdentifier operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCustomDataIdentifier operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCustomDataIdentifier /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteCustomDataIdentifier">REST API Reference for DeleteCustomDataIdentifier Operation</seealso> IAsyncResult BeginDeleteCustomDataIdentifier(DeleteCustomDataIdentifierRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteCustomDataIdentifier operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCustomDataIdentifier.</param> /// /// <returns>Returns a DeleteCustomDataIdentifierResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteCustomDataIdentifier">REST API Reference for DeleteCustomDataIdentifier Operation</seealso> DeleteCustomDataIdentifierResponse EndDeleteCustomDataIdentifier(IAsyncResult asyncResult); #endregion #region DeleteFindingsFilter /// <summary> /// Deletes a findings filter. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteFindingsFilter service method.</param> /// /// <returns>The response from the DeleteFindingsFilter service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteFindingsFilter">REST API Reference for DeleteFindingsFilter Operation</seealso> DeleteFindingsFilterResponse DeleteFindingsFilter(DeleteFindingsFilterRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteFindingsFilter operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteFindingsFilter operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteFindingsFilter /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteFindingsFilter">REST API Reference for DeleteFindingsFilter Operation</seealso> IAsyncResult BeginDeleteFindingsFilter(DeleteFindingsFilterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteFindingsFilter operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteFindingsFilter.</param> /// /// <returns>Returns a DeleteFindingsFilterResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteFindingsFilter">REST API Reference for DeleteFindingsFilter Operation</seealso> DeleteFindingsFilterResponse EndDeleteFindingsFilter(IAsyncResult asyncResult); #endregion #region DeleteInvitations /// <summary> /// Deletes Amazon Macie membership invitations that were received from specific accounts. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteInvitations service method.</param> /// /// <returns>The response from the DeleteInvitations service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteInvitations">REST API Reference for DeleteInvitations Operation</seealso> DeleteInvitationsResponse DeleteInvitations(DeleteInvitationsRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteInvitations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteInvitations operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteInvitations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteInvitations">REST API Reference for DeleteInvitations Operation</seealso> IAsyncResult BeginDeleteInvitations(DeleteInvitationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteInvitations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteInvitations.</param> /// /// <returns>Returns a DeleteInvitationsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteInvitations">REST API Reference for DeleteInvitations Operation</seealso> DeleteInvitationsResponse EndDeleteInvitations(IAsyncResult asyncResult); #endregion #region DeleteMember /// <summary> /// Deletes the association between an Amazon Macie master account and an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteMember service method.</param> /// /// <returns>The response from the DeleteMember service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteMember">REST API Reference for DeleteMember Operation</seealso> DeleteMemberResponse DeleteMember(DeleteMemberRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteMember operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteMember operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteMember /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteMember">REST API Reference for DeleteMember Operation</seealso> IAsyncResult BeginDeleteMember(DeleteMemberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteMember operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteMember.</param> /// /// <returns>Returns a DeleteMemberResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DeleteMember">REST API Reference for DeleteMember Operation</seealso> DeleteMemberResponse EndDeleteMember(IAsyncResult asyncResult); #endregion #region DescribeBuckets /// <summary> /// Retrieves (queries) statistical data and other information about one or more S3 buckets /// that Amazon Macie monitors and analyzes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeBuckets service method.</param> /// /// <returns>The response from the DescribeBuckets service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeBuckets">REST API Reference for DescribeBuckets Operation</seealso> DescribeBucketsResponse DescribeBuckets(DescribeBucketsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeBuckets operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeBuckets operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeBuckets /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeBuckets">REST API Reference for DescribeBuckets Operation</seealso> IAsyncResult BeginDescribeBuckets(DescribeBucketsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeBuckets operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeBuckets.</param> /// /// <returns>Returns a DescribeBucketsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeBuckets">REST API Reference for DescribeBuckets Operation</seealso> DescribeBucketsResponse EndDescribeBuckets(IAsyncResult asyncResult); #endregion #region DescribeClassificationJob /// <summary> /// Retrieves information about the status and settings for a classification job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeClassificationJob service method.</param> /// /// <returns>The response from the DescribeClassificationJob service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeClassificationJob">REST API Reference for DescribeClassificationJob Operation</seealso> DescribeClassificationJobResponse DescribeClassificationJob(DescribeClassificationJobRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeClassificationJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeClassificationJob operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeClassificationJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeClassificationJob">REST API Reference for DescribeClassificationJob Operation</seealso> IAsyncResult BeginDescribeClassificationJob(DescribeClassificationJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeClassificationJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeClassificationJob.</param> /// /// <returns>Returns a DescribeClassificationJobResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeClassificationJob">REST API Reference for DescribeClassificationJob Operation</seealso> DescribeClassificationJobResponse EndDescribeClassificationJob(IAsyncResult asyncResult); #endregion #region DescribeOrganizationConfiguration /// <summary> /// Retrieves information about the Amazon Macie configuration settings for an AWS organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationConfiguration service method.</param> /// /// <returns>The response from the DescribeOrganizationConfiguration service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeOrganizationConfiguration">REST API Reference for DescribeOrganizationConfiguration Operation</seealso> DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeOrganizationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeOrganizationConfiguration operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeOrganizationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeOrganizationConfiguration">REST API Reference for DescribeOrganizationConfiguration Operation</seealso> IAsyncResult BeginDescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeOrganizationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeOrganizationConfiguration.</param> /// /// <returns>Returns a DescribeOrganizationConfigurationResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DescribeOrganizationConfiguration">REST API Reference for DescribeOrganizationConfiguration Operation</seealso> DescribeOrganizationConfigurationResponse EndDescribeOrganizationConfiguration(IAsyncResult asyncResult); #endregion #region DisableMacie /// <summary> /// Disables an Amazon Macie account and deletes Macie resources for the account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMacie service method.</param> /// /// <returns>The response from the DisableMacie service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableMacie">REST API Reference for DisableMacie Operation</seealso> DisableMacieResponse DisableMacie(DisableMacieRequest request); /// <summary> /// Initiates the asynchronous execution of the DisableMacie operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableMacie operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableMacie /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableMacie">REST API Reference for DisableMacie Operation</seealso> IAsyncResult BeginDisableMacie(DisableMacieRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisableMacie operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableMacie.</param> /// /// <returns>Returns a DisableMacieResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableMacie">REST API Reference for DisableMacie Operation</seealso> DisableMacieResponse EndDisableMacie(IAsyncResult asyncResult); #endregion #region DisableOrganizationAdminAccount /// <summary> /// Disables an account as a delegated administrator of Amazon Macie for an AWS organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableOrganizationAdminAccount service method.</param> /// /// <returns>The response from the DisableOrganizationAdminAccount service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableOrganizationAdminAccount">REST API Reference for DisableOrganizationAdminAccount Operation</seealso> DisableOrganizationAdminAccountResponse DisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the DisableOrganizationAdminAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableOrganizationAdminAccount operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableOrganizationAdminAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableOrganizationAdminAccount">REST API Reference for DisableOrganizationAdminAccount Operation</seealso> IAsyncResult BeginDisableOrganizationAdminAccount(DisableOrganizationAdminAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisableOrganizationAdminAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableOrganizationAdminAccount.</param> /// /// <returns>Returns a DisableOrganizationAdminAccountResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisableOrganizationAdminAccount">REST API Reference for DisableOrganizationAdminAccount Operation</seealso> DisableOrganizationAdminAccountResponse EndDisableOrganizationAdminAccount(IAsyncResult asyncResult); #endregion #region DisassociateFromMasterAccount /// <summary> /// Disassociates a member account from its Amazon Macie master account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateFromMasterAccount service method.</param> /// /// <returns>The response from the DisassociateFromMasterAccount service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromMasterAccount">REST API Reference for DisassociateFromMasterAccount Operation</seealso> DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateFromMasterAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateFromMasterAccount operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateFromMasterAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromMasterAccount">REST API Reference for DisassociateFromMasterAccount Operation</seealso> IAsyncResult BeginDisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateFromMasterAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateFromMasterAccount.</param> /// /// <returns>Returns a DisassociateFromMasterAccountResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateFromMasterAccount">REST API Reference for DisassociateFromMasterAccount Operation</seealso> DisassociateFromMasterAccountResponse EndDisassociateFromMasterAccount(IAsyncResult asyncResult); #endregion #region DisassociateMember /// <summary> /// Disassociates an Amazon Macie master account from a member account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisassociateMember service method.</param> /// /// <returns>The response from the DisassociateMember service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateMember">REST API Reference for DisassociateMember Operation</seealso> DisassociateMemberResponse DisassociateMember(DisassociateMemberRequest request); /// <summary> /// Initiates the asynchronous execution of the DisassociateMember operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisassociateMember operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateMember /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateMember">REST API Reference for DisassociateMember Operation</seealso> IAsyncResult BeginDisassociateMember(DisassociateMemberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisassociateMember operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisassociateMember.</param> /// /// <returns>Returns a DisassociateMemberResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/DisassociateMember">REST API Reference for DisassociateMember Operation</seealso> DisassociateMemberResponse EndDisassociateMember(IAsyncResult asyncResult); #endregion #region EnableMacie /// <summary> /// Enables Amazon Macie and specifies the configuration settings for a Macie account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMacie service method.</param> /// /// <returns>The response from the EnableMacie service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableMacie">REST API Reference for EnableMacie Operation</seealso> EnableMacieResponse EnableMacie(EnableMacieRequest request); /// <summary> /// Initiates the asynchronous execution of the EnableMacie operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableMacie operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableMacie /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableMacie">REST API Reference for EnableMacie Operation</seealso> IAsyncResult BeginEnableMacie(EnableMacieRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnableMacie operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableMacie.</param> /// /// <returns>Returns a EnableMacieResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableMacie">REST API Reference for EnableMacie Operation</seealso> EnableMacieResponse EndEnableMacie(IAsyncResult asyncResult); #endregion #region EnableOrganizationAdminAccount /// <summary> /// Enables an account as a delegated administrator of Amazon Macie for an AWS organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableOrganizationAdminAccount service method.</param> /// /// <returns>The response from the EnableOrganizationAdminAccount service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableOrganizationAdminAccount">REST API Reference for EnableOrganizationAdminAccount Operation</seealso> EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the EnableOrganizationAdminAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableOrganizationAdminAccount operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableOrganizationAdminAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableOrganizationAdminAccount">REST API Reference for EnableOrganizationAdminAccount Operation</seealso> IAsyncResult BeginEnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnableOrganizationAdminAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableOrganizationAdminAccount.</param> /// /// <returns>Returns a EnableOrganizationAdminAccountResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/EnableOrganizationAdminAccount">REST API Reference for EnableOrganizationAdminAccount Operation</seealso> EnableOrganizationAdminAccountResponse EndEnableOrganizationAdminAccount(IAsyncResult asyncResult); #endregion #region GetBucketStatistics /// <summary> /// Retrieves (queries) aggregated statistical data for all the S3 buckets that Amazon /// Macie monitors and analyzes. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetBucketStatistics service method.</param> /// /// <returns>The response from the GetBucketStatistics service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatistics">REST API Reference for GetBucketStatistics Operation</seealso> GetBucketStatisticsResponse GetBucketStatistics(GetBucketStatisticsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetBucketStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetBucketStatistics operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetBucketStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatistics">REST API Reference for GetBucketStatistics Operation</seealso> IAsyncResult BeginGetBucketStatistics(GetBucketStatisticsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetBucketStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetBucketStatistics.</param> /// /// <returns>Returns a GetBucketStatisticsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetBucketStatistics">REST API Reference for GetBucketStatistics Operation</seealso> GetBucketStatisticsResponse EndGetBucketStatistics(IAsyncResult asyncResult); #endregion #region GetClassificationExportConfiguration /// <summary> /// Retrieves the configuration settings for storing data classification results. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetClassificationExportConfiguration service method.</param> /// /// <returns>The response from the GetClassificationExportConfiguration service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetClassificationExportConfiguration">REST API Reference for GetClassificationExportConfiguration Operation</seealso> GetClassificationExportConfigurationResponse GetClassificationExportConfiguration(GetClassificationExportConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetClassificationExportConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetClassificationExportConfiguration operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetClassificationExportConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetClassificationExportConfiguration">REST API Reference for GetClassificationExportConfiguration Operation</seealso> IAsyncResult BeginGetClassificationExportConfiguration(GetClassificationExportConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetClassificationExportConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetClassificationExportConfiguration.</param> /// /// <returns>Returns a GetClassificationExportConfigurationResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetClassificationExportConfiguration">REST API Reference for GetClassificationExportConfiguration Operation</seealso> GetClassificationExportConfigurationResponse EndGetClassificationExportConfiguration(IAsyncResult asyncResult); #endregion #region GetCustomDataIdentifier /// <summary> /// Retrieves information about the criteria and other settings for a custom data identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCustomDataIdentifier service method.</param> /// /// <returns>The response from the GetCustomDataIdentifier service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetCustomDataIdentifier">REST API Reference for GetCustomDataIdentifier Operation</seealso> GetCustomDataIdentifierResponse GetCustomDataIdentifier(GetCustomDataIdentifierRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCustomDataIdentifier operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCustomDataIdentifier operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCustomDataIdentifier /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetCustomDataIdentifier">REST API Reference for GetCustomDataIdentifier Operation</seealso> IAsyncResult BeginGetCustomDataIdentifier(GetCustomDataIdentifierRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCustomDataIdentifier operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCustomDataIdentifier.</param> /// /// <returns>Returns a GetCustomDataIdentifierResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetCustomDataIdentifier">REST API Reference for GetCustomDataIdentifier Operation</seealso> GetCustomDataIdentifierResponse EndGetCustomDataIdentifier(IAsyncResult asyncResult); #endregion #region GetFindings /// <summary> /// Retrieves information about one or more findings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFindings service method.</param> /// /// <returns>The response from the GetFindings service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindings">REST API Reference for GetFindings Operation</seealso> GetFindingsResponse GetFindings(GetFindingsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFindings operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindings">REST API Reference for GetFindings Operation</seealso> IAsyncResult BeginGetFindings(GetFindingsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFindings.</param> /// /// <returns>Returns a GetFindingsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindings">REST API Reference for GetFindings Operation</seealso> GetFindingsResponse EndGetFindings(IAsyncResult asyncResult); #endregion #region GetFindingsFilter /// <summary> /// Retrieves information about the criteria and other settings for a findings filter. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFindingsFilter service method.</param> /// /// <returns>The response from the GetFindingsFilter service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsFilter">REST API Reference for GetFindingsFilter Operation</seealso> GetFindingsFilterResponse GetFindingsFilter(GetFindingsFilterRequest request); /// <summary> /// Initiates the asynchronous execution of the GetFindingsFilter operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFindingsFilter operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindingsFilter /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsFilter">REST API Reference for GetFindingsFilter Operation</seealso> IAsyncResult BeginGetFindingsFilter(GetFindingsFilterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetFindingsFilter operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFindingsFilter.</param> /// /// <returns>Returns a GetFindingsFilterResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingsFilter">REST API Reference for GetFindingsFilter Operation</seealso> GetFindingsFilterResponse EndGetFindingsFilter(IAsyncResult asyncResult); #endregion #region GetFindingStatistics /// <summary> /// Retrieves (queries) aggregated statistical data about findings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetFindingStatistics service method.</param> /// /// <returns>The response from the GetFindingStatistics service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingStatistics">REST API Reference for GetFindingStatistics Operation</seealso> GetFindingStatisticsResponse GetFindingStatistics(GetFindingStatisticsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetFindingStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetFindingStatistics operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetFindingStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingStatistics">REST API Reference for GetFindingStatistics Operation</seealso> IAsyncResult BeginGetFindingStatistics(GetFindingStatisticsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetFindingStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetFindingStatistics.</param> /// /// <returns>Returns a GetFindingStatisticsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetFindingStatistics">REST API Reference for GetFindingStatistics Operation</seealso> GetFindingStatisticsResponse EndGetFindingStatistics(IAsyncResult asyncResult); #endregion #region GetInvitationsCount /// <summary> /// Retrieves the count of Amazon Macie membership invitations that were received by an /// account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetInvitationsCount service method.</param> /// /// <returns>The response from the GetInvitationsCount service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetInvitationsCount">REST API Reference for GetInvitationsCount Operation</seealso> GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request); /// <summary> /// Initiates the asynchronous execution of the GetInvitationsCount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetInvitationsCount operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetInvitationsCount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetInvitationsCount">REST API Reference for GetInvitationsCount Operation</seealso> IAsyncResult BeginGetInvitationsCount(GetInvitationsCountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetInvitationsCount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetInvitationsCount.</param> /// /// <returns>Returns a GetInvitationsCountResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetInvitationsCount">REST API Reference for GetInvitationsCount Operation</seealso> GetInvitationsCountResponse EndGetInvitationsCount(IAsyncResult asyncResult); #endregion #region GetMacieSession /// <summary> /// Retrieves information about the current status and configuration settings for an Amazon /// Macie account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMacieSession service method.</param> /// /// <returns>The response from the GetMacieSession service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMacieSession">REST API Reference for GetMacieSession Operation</seealso> GetMacieSessionResponse GetMacieSession(GetMacieSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMacieSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMacieSession operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMacieSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMacieSession">REST API Reference for GetMacieSession Operation</seealso> IAsyncResult BeginGetMacieSession(GetMacieSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMacieSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMacieSession.</param> /// /// <returns>Returns a GetMacieSessionResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMacieSession">REST API Reference for GetMacieSession Operation</seealso> GetMacieSessionResponse EndGetMacieSession(IAsyncResult asyncResult); #endregion #region GetMasterAccount /// <summary> /// Retrieves information about the Amazon Macie master account for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMasterAccount service method.</param> /// /// <returns>The response from the GetMasterAccount service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMasterAccount">REST API Reference for GetMasterAccount Operation</seealso> GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMasterAccount operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMasterAccount operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMasterAccount /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMasterAccount">REST API Reference for GetMasterAccount Operation</seealso> IAsyncResult BeginGetMasterAccount(GetMasterAccountRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMasterAccount operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMasterAccount.</param> /// /// <returns>Returns a GetMasterAccountResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMasterAccount">REST API Reference for GetMasterAccount Operation</seealso> GetMasterAccountResponse EndGetMasterAccount(IAsyncResult asyncResult); #endregion #region GetMember /// <summary> /// Retrieves information about a member account that's associated with an Amazon Macie /// master account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetMember service method.</param> /// /// <returns>The response from the GetMember service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMember">REST API Reference for GetMember Operation</seealso> GetMemberResponse GetMember(GetMemberRequest request); /// <summary> /// Initiates the asynchronous execution of the GetMember operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetMember operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMember /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMember">REST API Reference for GetMember Operation</seealso> IAsyncResult BeginGetMember(GetMemberRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetMember operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMember.</param> /// /// <returns>Returns a GetMemberResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetMember">REST API Reference for GetMember Operation</seealso> GetMemberResponse EndGetMember(IAsyncResult asyncResult); #endregion #region GetUsageStatistics /// <summary> /// Retrieves (queries) quotas and aggregated usage data for one or more accounts. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetUsageStatistics service method.</param> /// /// <returns>The response from the GetUsageStatistics service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageStatistics">REST API Reference for GetUsageStatistics Operation</seealso> GetUsageStatisticsResponse GetUsageStatistics(GetUsageStatisticsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetUsageStatistics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetUsageStatistics operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetUsageStatistics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageStatistics">REST API Reference for GetUsageStatistics Operation</seealso> IAsyncResult BeginGetUsageStatistics(GetUsageStatisticsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetUsageStatistics operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetUsageStatistics.</param> /// /// <returns>Returns a GetUsageStatisticsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageStatistics">REST API Reference for GetUsageStatistics Operation</seealso> GetUsageStatisticsResponse EndGetUsageStatistics(IAsyncResult asyncResult); #endregion #region GetUsageTotals /// <summary> /// Retrieves (queries) aggregated usage data for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetUsageTotals service method.</param> /// /// <returns>The response from the GetUsageTotals service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageTotals">REST API Reference for GetUsageTotals Operation</seealso> GetUsageTotalsResponse GetUsageTotals(GetUsageTotalsRequest request); /// <summary> /// Initiates the asynchronous execution of the GetUsageTotals operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetUsageTotals operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetUsageTotals /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageTotals">REST API Reference for GetUsageTotals Operation</seealso> IAsyncResult BeginGetUsageTotals(GetUsageTotalsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetUsageTotals operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetUsageTotals.</param> /// /// <returns>Returns a GetUsageTotalsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/GetUsageTotals">REST API Reference for GetUsageTotals Operation</seealso> GetUsageTotalsResponse EndGetUsageTotals(IAsyncResult asyncResult); #endregion #region ListClassificationJobs /// <summary> /// Retrieves a subset of information about one or more classification jobs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListClassificationJobs service method.</param> /// /// <returns>The response from the ListClassificationJobs service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListClassificationJobs">REST API Reference for ListClassificationJobs Operation</seealso> ListClassificationJobsResponse ListClassificationJobs(ListClassificationJobsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListClassificationJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListClassificationJobs operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListClassificationJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListClassificationJobs">REST API Reference for ListClassificationJobs Operation</seealso> IAsyncResult BeginListClassificationJobs(ListClassificationJobsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListClassificationJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListClassificationJobs.</param> /// /// <returns>Returns a ListClassificationJobsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListClassificationJobs">REST API Reference for ListClassificationJobs Operation</seealso> ListClassificationJobsResponse EndListClassificationJobs(IAsyncResult asyncResult); #endregion #region ListCustomDataIdentifiers /// <summary> /// Retrieves a subset of information about all the custom data identifiers for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCustomDataIdentifiers service method.</param> /// /// <returns>The response from the ListCustomDataIdentifiers service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListCustomDataIdentifiers">REST API Reference for ListCustomDataIdentifiers Operation</seealso> ListCustomDataIdentifiersResponse ListCustomDataIdentifiers(ListCustomDataIdentifiersRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCustomDataIdentifiers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCustomDataIdentifiers operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCustomDataIdentifiers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListCustomDataIdentifiers">REST API Reference for ListCustomDataIdentifiers Operation</seealso> IAsyncResult BeginListCustomDataIdentifiers(ListCustomDataIdentifiersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCustomDataIdentifiers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCustomDataIdentifiers.</param> /// /// <returns>Returns a ListCustomDataIdentifiersResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListCustomDataIdentifiers">REST API Reference for ListCustomDataIdentifiers Operation</seealso> ListCustomDataIdentifiersResponse EndListCustomDataIdentifiers(IAsyncResult asyncResult); #endregion #region ListFindings /// <summary> /// Retrieves a subset of information about one or more findings. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFindings service method.</param> /// /// <returns>The response from the ListFindings service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindings">REST API Reference for ListFindings Operation</seealso> ListFindingsResponse ListFindings(ListFindingsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListFindings operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFindings operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFindings /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindings">REST API Reference for ListFindings Operation</seealso> IAsyncResult BeginListFindings(ListFindingsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListFindings operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFindings.</param> /// /// <returns>Returns a ListFindingsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindings">REST API Reference for ListFindings Operation</seealso> ListFindingsResponse EndListFindings(IAsyncResult asyncResult); #endregion #region ListFindingsFilters /// <summary> /// Retrieves a subset of information about all the findings filters for an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListFindingsFilters service method.</param> /// /// <returns>The response from the ListFindingsFilters service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindingsFilters">REST API Reference for ListFindingsFilters Operation</seealso> ListFindingsFiltersResponse ListFindingsFilters(ListFindingsFiltersRequest request); /// <summary> /// Initiates the asynchronous execution of the ListFindingsFilters operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListFindingsFilters operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListFindingsFilters /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindingsFilters">REST API Reference for ListFindingsFilters Operation</seealso> IAsyncResult BeginListFindingsFilters(ListFindingsFiltersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListFindingsFilters operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListFindingsFilters.</param> /// /// <returns>Returns a ListFindingsFiltersResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListFindingsFilters">REST API Reference for ListFindingsFilters Operation</seealso> ListFindingsFiltersResponse EndListFindingsFilters(IAsyncResult asyncResult); #endregion #region ListInvitations /// <summary> /// Retrieves information about all the Amazon Macie membership invitations that were /// received by an account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListInvitations service method.</param> /// /// <returns>The response from the ListInvitations service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListInvitations">REST API Reference for ListInvitations Operation</seealso> ListInvitationsResponse ListInvitations(ListInvitationsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListInvitations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListInvitations operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListInvitations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListInvitations">REST API Reference for ListInvitations Operation</seealso> IAsyncResult BeginListInvitations(ListInvitationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListInvitations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListInvitations.</param> /// /// <returns>Returns a ListInvitationsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListInvitations">REST API Reference for ListInvitations Operation</seealso> ListInvitationsResponse EndListInvitations(IAsyncResult asyncResult); #endregion #region ListMembers /// <summary> /// Retrieves information about the accounts that are associated with an Amazon Macie /// master account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListMembers service method.</param> /// /// <returns>The response from the ListMembers service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListMembers">REST API Reference for ListMembers Operation</seealso> ListMembersResponse ListMembers(ListMembersRequest request); /// <summary> /// Initiates the asynchronous execution of the ListMembers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListMembers operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListMembers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListMembers">REST API Reference for ListMembers Operation</seealso> IAsyncResult BeginListMembers(ListMembersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListMembers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListMembers.</param> /// /// <returns>Returns a ListMembersResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListMembers">REST API Reference for ListMembers Operation</seealso> ListMembersResponse EndListMembers(IAsyncResult asyncResult); #endregion #region ListOrganizationAdminAccounts /// <summary> /// Retrieves information about the account that's designated as the delegated administrator /// of Amazon Macie for an AWS organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListOrganizationAdminAccounts service method.</param> /// /// <returns>The response from the ListOrganizationAdminAccounts service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListOrganizationAdminAccounts">REST API Reference for ListOrganizationAdminAccounts Operation</seealso> ListOrganizationAdminAccountsResponse ListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request); /// <summary> /// Initiates the asynchronous execution of the ListOrganizationAdminAccounts operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListOrganizationAdminAccounts operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOrganizationAdminAccounts /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListOrganizationAdminAccounts">REST API Reference for ListOrganizationAdminAccounts Operation</seealso> IAsyncResult BeginListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListOrganizationAdminAccounts operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListOrganizationAdminAccounts.</param> /// /// <returns>Returns a ListOrganizationAdminAccountsResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListOrganizationAdminAccounts">REST API Reference for ListOrganizationAdminAccounts Operation</seealso> ListOrganizationAdminAccountsResponse EndListOrganizationAdminAccounts(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Retrieves the tags (keys and values) that are associated with a classification job, /// custom data identifier, findings filter, or member account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region PutClassificationExportConfiguration /// <summary> /// Creates or updates the configuration settings for storing data classification results. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutClassificationExportConfiguration service method.</param> /// /// <returns>The response from the PutClassificationExportConfiguration service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutClassificationExportConfiguration">REST API Reference for PutClassificationExportConfiguration Operation</seealso> PutClassificationExportConfigurationResponse PutClassificationExportConfiguration(PutClassificationExportConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the PutClassificationExportConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutClassificationExportConfiguration operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutClassificationExportConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutClassificationExportConfiguration">REST API Reference for PutClassificationExportConfiguration Operation</seealso> IAsyncResult BeginPutClassificationExportConfiguration(PutClassificationExportConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutClassificationExportConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutClassificationExportConfiguration.</param> /// /// <returns>Returns a PutClassificationExportConfigurationResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/PutClassificationExportConfiguration">REST API Reference for PutClassificationExportConfiguration Operation</seealso> PutClassificationExportConfigurationResponse EndPutClassificationExportConfiguration(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Adds or updates one or more tags (keys and values) that are associated with a classification /// job, custom data identifier, findings filter, or member account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagResource">REST API Reference for TagResource Operation</seealso> IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region TestCustomDataIdentifier /// <summary> /// Tests a custom data identifier. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TestCustomDataIdentifier service method.</param> /// /// <returns>The response from the TestCustomDataIdentifier service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TestCustomDataIdentifier">REST API Reference for TestCustomDataIdentifier Operation</seealso> TestCustomDataIdentifierResponse TestCustomDataIdentifier(TestCustomDataIdentifierRequest request); /// <summary> /// Initiates the asynchronous execution of the TestCustomDataIdentifier operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TestCustomDataIdentifier operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestCustomDataIdentifier /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TestCustomDataIdentifier">REST API Reference for TestCustomDataIdentifier Operation</seealso> IAsyncResult BeginTestCustomDataIdentifier(TestCustomDataIdentifierRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TestCustomDataIdentifier operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTestCustomDataIdentifier.</param> /// /// <returns>Returns a TestCustomDataIdentifierResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/TestCustomDataIdentifier">REST API Reference for TestCustomDataIdentifier Operation</seealso> TestCustomDataIdentifierResponse EndTestCustomDataIdentifier(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Removes one or more tags (keys and values) from a classification job, custom data /// identifier, findings filter, or member account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion #region UpdateClassificationJob /// <summary> /// Cancels a classification job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateClassificationJob service method.</param> /// /// <returns>The response from the UpdateClassificationJob service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateClassificationJob">REST API Reference for UpdateClassificationJob Operation</seealso> UpdateClassificationJobResponse UpdateClassificationJob(UpdateClassificationJobRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateClassificationJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateClassificationJob operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateClassificationJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateClassificationJob">REST API Reference for UpdateClassificationJob Operation</seealso> IAsyncResult BeginUpdateClassificationJob(UpdateClassificationJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateClassificationJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateClassificationJob.</param> /// /// <returns>Returns a UpdateClassificationJobResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateClassificationJob">REST API Reference for UpdateClassificationJob Operation</seealso> UpdateClassificationJobResponse EndUpdateClassificationJob(IAsyncResult asyncResult); #endregion #region UpdateFindingsFilter /// <summary> /// Updates the criteria and other settings for a findings filter. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateFindingsFilter service method.</param> /// /// <returns>The response from the UpdateFindingsFilter service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilter">REST API Reference for UpdateFindingsFilter Operation</seealso> UpdateFindingsFilterResponse UpdateFindingsFilter(UpdateFindingsFilterRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateFindingsFilter operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateFindingsFilter operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateFindingsFilter /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilter">REST API Reference for UpdateFindingsFilter Operation</seealso> IAsyncResult BeginUpdateFindingsFilter(UpdateFindingsFilterRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateFindingsFilter operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateFindingsFilter.</param> /// /// <returns>Returns a UpdateFindingsFilterResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateFindingsFilter">REST API Reference for UpdateFindingsFilter Operation</seealso> UpdateFindingsFilterResponse EndUpdateFindingsFilter(IAsyncResult asyncResult); #endregion #region UpdateMacieSession /// <summary> /// Suspends or re-enables an Amazon Macie account, or updates the configuration settings /// for a Macie account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateMacieSession service method.</param> /// /// <returns>The response from the UpdateMacieSession service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMacieSession">REST API Reference for UpdateMacieSession Operation</seealso> UpdateMacieSessionResponse UpdateMacieSession(UpdateMacieSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateMacieSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateMacieSession operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateMacieSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMacieSession">REST API Reference for UpdateMacieSession Operation</seealso> IAsyncResult BeginUpdateMacieSession(UpdateMacieSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateMacieSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateMacieSession.</param> /// /// <returns>Returns a UpdateMacieSessionResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMacieSession">REST API Reference for UpdateMacieSession Operation</seealso> UpdateMacieSessionResponse EndUpdateMacieSession(IAsyncResult asyncResult); #endregion #region UpdateMemberSession /// <summary> /// Enables an Amazon Macie master account to suspend or re-enable a member account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateMemberSession service method.</param> /// /// <returns>The response from the UpdateMemberSession service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMemberSession">REST API Reference for UpdateMemberSession Operation</seealso> UpdateMemberSessionResponse UpdateMemberSession(UpdateMemberSessionRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateMemberSession operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateMemberSession operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateMemberSession /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMemberSession">REST API Reference for UpdateMemberSession Operation</seealso> IAsyncResult BeginUpdateMemberSession(UpdateMemberSessionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateMemberSession operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateMemberSession.</param> /// /// <returns>Returns a UpdateMemberSessionResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateMemberSession">REST API Reference for UpdateMemberSession Operation</seealso> UpdateMemberSessionResponse EndUpdateMemberSession(IAsyncResult asyncResult); #endregion #region UpdateOrganizationConfiguration /// <summary> /// Updates Amazon Macie configuration settings for an AWS organization. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateOrganizationConfiguration service method.</param> /// /// <returns>The response from the UpdateOrganizationConfiguration service method, as returned by Macie2.</returns> /// <exception cref="Amazon.Macie2.Model.AccessDeniedException"> /// Provides information about an error that occurred due to insufficient access to a /// specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.ConflictException"> /// Provides information about an error that occurred due to a versioning conflict for /// a specified resource. /// </exception> /// <exception cref="Amazon.Macie2.Model.InternalServerException"> /// Provides information about an error that occurred due to an unknown internal server /// error, exception, or failure. /// </exception> /// <exception cref="Amazon.Macie2.Model.ResourceNotFoundException"> /// Provides information about an error that occurred because a specified resource wasn't /// found. /// </exception> /// <exception cref="Amazon.Macie2.Model.ServiceQuotaExceededException"> /// Provides information about an error that occurred due to one or more service quotas /// for an account. /// </exception> /// <exception cref="Amazon.Macie2.Model.ThrottlingException"> /// Provides information about an error that occurred because too many requests were sent /// during a certain amount of time. /// </exception> /// <exception cref="Amazon.Macie2.Model.ValidationException"> /// Provides information about an error that occurred due to a syntax error in a request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateOrganizationConfiguration">REST API Reference for UpdateOrganizationConfiguration Operation</seealso> UpdateOrganizationConfigurationResponse UpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateOrganizationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateOrganizationConfiguration operation on AmazonMacie2Client.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateOrganizationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateOrganizationConfiguration">REST API Reference for UpdateOrganizationConfiguration Operation</seealso> IAsyncResult BeginUpdateOrganizationConfiguration(UpdateOrganizationConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateOrganizationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateOrganizationConfiguration.</param> /// /// <returns>Returns a UpdateOrganizationConfigurationResult from Macie2.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/UpdateOrganizationConfiguration">REST API Reference for UpdateOrganizationConfiguration Operation</seealso> UpdateOrganizationConfigurationResponse EndUpdateOrganizationConfiguration(IAsyncResult asyncResult); #endregion } }
60.016505
201
0.681898
[ "Apache-2.0" ]
alefranz/aws-sdk-net
sdk/src/Services/Macie2/Generated/_bcl35/IAmazonMacie2.cs
203,636
C#
namespace MyCoolWebServer.Server.Http { using Common; using Contracts; using System; using System.Collections; using System.Collections.Generic; public class HttpCookieCollection : IHttpCookieCollection { private readonly Dictionary<string, HttpCookie> cookies; public HttpCookieCollection() { this.cookies = new Dictionary<string, HttpCookie>(); } public void Add(HttpCookie cookie) { CoreValidator.ThrowIfNull(cookie, nameof(cookie)); this.cookies[cookie.Key] = cookie; } public void Add(string key, string value) { CoreValidator.ThrowIfNullOrEmpty(key, nameof(key)); CoreValidator.ThrowIfNullOrEmpty(value, nameof(value)); this.Add(new HttpCookie(key, value)); } public bool ContainsKey(string key) { CoreValidator.ThrowIfNullOrEmpty(key, nameof(key)); return this.cookies.ContainsKey(key); } public HttpCookie Get(string key) { CoreValidator.ThrowIfNullOrEmpty(key, nameof(key)); if (!this.cookies.ContainsKey(key)) { throw new InvalidOperationException($"The given key {key} is not present."); } return this.cookies[key]; } public IEnumerator<HttpCookie> GetEnumerator() => this.cookies.Values.GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => this.cookies.Values.GetEnumerator(); } }
26.813559
92
0.601138
[ "MIT" ]
emrrar/MyCoolWebServer
MyCoolWebServer/Server/Http/HttpCookieCollection.cs
1,584
C#
namespace Divstack.Company.Estimation.Tool.Valuations.Application.Valuations.Commands.SuggestProposal; using MediatR; using Shared.DDD.ValueObjects; internal sealed class SuggestProposalCommandHandler : IRequestHandler<SuggestProposalCommand> { private readonly ICurrentUserService _currentUserService; private readonly IIntegrationEventPublisher _integrationEventPublisher; private readonly IValuationsRepository _valuationsRepository; public SuggestProposalCommandHandler(IValuationsRepository valuationsRepository, ICurrentUserService currentUserService, IIntegrationEventPublisher integrationEventPublisher) { _valuationsRepository = valuationsRepository; _currentUserService = currentUserService; _integrationEventPublisher = integrationEventPublisher; } public async Task<Unit> Handle(SuggestProposalCommand command, CancellationToken cancellationToken) { var valuationId = ValuationId.Of(command.ValuationId); var valuation = await _valuationsRepository.GetAsync(valuationId, cancellationToken); if (valuation is null) { throw new NotFoundException(command.ValuationId, nameof(Valuation)); } var employeeId = EmployeeId.Of(_currentUserService.GetPublicUserId()); var money = Money.Of(command.Value, command.Currency); valuation.SuggestProposal(money, command.Description, employeeId); await _valuationsRepository.CommitAsync(valuation, cancellationToken); await _integrationEventPublisher.PublishAsync(valuation.DomainEvents, cancellationToken); return Unit.Value; } }
41.5
103
0.773494
[ "MIT" ]
kamilbaczek/estimation-tool
Src/Modules/Valuations/Divstack.Company.Estimation.Tool.Valuations.Application/Valuations/Commands/SuggestProposal/SuggestProposalCommandHandler.cs
1,662
C#
// ========================================================================== // Squidex Headless CMS // ========================================================================== // Copyright (c) Squidex UG (haftungsbeschraenkt) // All rights reserved. Licensed under the MIT license. // ========================================================================== using GraphQL.Language.AST; using Newtonsoft.Json.Linq; namespace Squidex.Domain.Apps.Entities.Contents.GraphQL.Types.Utils { public sealed class JsonValue : ValueNode<JObject> { public JsonValue(JObject value) { Value = value; } protected override bool Equals(ValueNode<JObject> node) { return false; } } }
29.346154
78
0.44692
[ "MIT" ]
BtrJay/squidex
src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/Utils/JsonValue.cs
765
C#
using System; using System.Runtime.InteropServices; namespace SkiaSharp { [Obsolete ("The Index8 color type and color table is no longer supported.")] public unsafe class SKColorTable : SKObject, ISKReferenceCounted { public const int MaxLength = 256; [Preserve] internal SKColorTable (IntPtr x, bool owns) : base (x, owns) { } public SKColorTable () : this (new SKPMColor[MaxLength]) { } public SKColorTable (int count) : this (new SKPMColor[count]) { } public SKColorTable (SKColor[] colors) : this (colors, colors.Length) { } public SKColorTable (SKColor[] colors, int count) : this (SKPMColor.PreMultiply (colors), count) { } public SKColorTable (SKPMColor[] colors) : this (colors, colors.Length) { } public SKColorTable (SKPMColor[] colors, int count) : this (CreateNew (colors, count), true) { if (Handle == IntPtr.Zero) { throw new InvalidOperationException ("Unable to create a new SKColorTable instance."); } } private static IntPtr CreateNew (SKPMColor[] colors, int count) { fixed (SKPMColor* c = colors) { return SkiaApi.sk_colortable_new ((uint*)c, count); } } protected override void Dispose (bool disposing) => base.Dispose (disposing); public int Count => SkiaApi.sk_colortable_count (Handle); public SKPMColor[] Colors { get { var count = Count; var pointer = ReadColors (); if (count == 0 || pointer == IntPtr.Zero) { return new SKPMColor[0]; } return PtrToStructureArray <SKPMColor> (pointer, count); } } public SKColor[] UnPreMultipledColors => SKPMColor.UnPreMultiply (Colors); public SKPMColor this [int index] { get { var count = Count; var pointer = ReadColors (); if (index < 0 || index >= count || pointer == IntPtr.Zero) { throw new ArgumentOutOfRangeException (nameof (index)); } return PtrToStructure <SKPMColor> (pointer, index); } } public SKColor GetUnPreMultipliedColor (int index) => SKPMColor.UnPreMultiply (this [index]); public IntPtr ReadColors () { uint* colors; SkiaApi.sk_colortable_read_colors (Handle, &colors); return (IntPtr)colors; } } }
21.047619
95
0.662896
[ "MIT" ]
Gitzhangjinyu/SkiaSharp
binding/Binding/SKColorTable.cs
2,212
C#
using System; using System.Diagnostics; using System.Net; using System.Reflection; using log4net; using Newtonsoft.Json; using CKAN.Types; using System.Linq; namespace CKAN { /// <summary> /// CKAN client auto-updating routines. This works in conjunction with the /// auto-update helper to allow users to upgrade. /// </summary> public class AutoUpdate { private readonly ILog log = LogManager.GetLogger(typeof(AutoUpdate)); private readonly Uri latestCKANReleaseApiUrl = new Uri("https://api.github.com/repos/KSP-CKAN/CKAN/releases/latest"); private readonly Uri latestUpdaterReleaseApiUrl = new Uri( "https://api.github.com/repos/KSP-CKAN/CKAN-autoupdate/releases/latest"); private Uri fetchedUpdaterUrl; private Uri fetchedCkanUrl; public Version LatestVersion { get; private set; } public string ReleaseNotes { get; private set; } private static AutoUpdate instance; public static AutoUpdate Instance { get { if (instance == null) { instance = new AutoUpdate(); } return instance; } private set { } } // This is private so we can enforce our class being a singleton. private AutoUpdate() { } public static void ClearCache() { instance = new AutoUpdate(); } /// <summary> /// Our metadata is considered fetched if we have a latest version, release notes, /// and download URLs for the ckan executable and helper. /// </summary> public bool IsFetched() { return LatestVersion != null && fetchedUpdaterUrl != null && fetchedCkanUrl != null && ReleaseNotes != null; } /// <summary> /// Fetches all the latest release info, populating our attributes in /// the process. /// </summary> public void FetchLatestReleaseInfo() { var response = MakeRequest(latestCKANReleaseApiUrl); try { fetchedUpdaterUrl = RetrieveUrl(MakeRequest(latestUpdaterReleaseApiUrl)); fetchedCkanUrl = RetrieveUrl(response); } catch (Kraken) { LatestVersion = new Version(Meta.Version()); return; } string body = response.body.ToString(); ReleaseNotes = ExtractReleaseNotes(body); LatestVersion = new CKANVersion(response.tag_name.ToString(), response.name.ToString()); } /// <summary> /// Extracts release notes from the body of text provided by the github API. /// By default this is everything after the first three dashes on a line by /// itself, but as a fallback we'll use the whole body if not found. /// </summary> /// <returns>The release notes.</returns> public string ExtractReleaseNotes(string releaseBody) { string divider = "\r\n---\r\n"; string[] notesArray = releaseBody.Split(new string[] { divider }, StringSplitOptions.None); if (notesArray.Length > 1) { // Return everything after the first divider, re-joining if necessary. return string.Join(divider, notesArray.Skip(1)); } return notesArray[0]; } /// <summary> /// Downloads the new ckan.exe version, as well as the updater helper, /// and then launches the helper allowing us to upgrade. /// </summary> /// <param name="launchCKANAfterUpdate">If set to <c>true</c> launch CKAN after update.</param> public void StartUpdateProcess(bool launchCKANAfterUpdate) { if (!IsFetched()) { throw new Kraken("We have not fetched the release info yet. Can't update."); } var pid = Process.GetCurrentProcess().Id; // download updater app string updaterFilename = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".exe"; var web = new WebClient(); web.Headers.Add("user-agent", Net.UserAgentString); web.DownloadFile(fetchedUpdaterUrl, updaterFilename); // download new ckan.exe string ckanFilename = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".exe"; web.DownloadFile(fetchedCkanUrl, ckanFilename); var path = Assembly.GetEntryAssembly().Location; // run updater SetExecutable(updaterFilename); var args = String.Format("{0} \"{1}\" \"{2}\" {3}", pid, path, ckanFilename, launchCKANAfterUpdate ? "launch" : "nolaunch"); ProcessStartInfo processInfo = new ProcessStartInfo(); processInfo.Verb = "runas"; processInfo.FileName = updaterFilename; processInfo.Arguments = args; processInfo.UseShellExecute = false; Process.Start(processInfo); // exit this ckan instance Environment.Exit(0); } /// <summary> /// Extracts the first downloadable asset (either the ckan.exe or its updater) /// from the provided github API response /// </summary> /// <returns>The URL to the downloadable asset.</returns> internal Uri RetrieveUrl(dynamic response) { if (response.assets.Count == 0) { throw new Kraken("The latest release isn't uploaded yet."); } var assets = response.assets[0]; return new Uri(assets.browser_download_url.ToString()); } /// <summary> /// Fetches the URL provided, and de-serialises the returned JSON /// data structure into a dynamic object. /// /// May throw an exception (especially a WebExeption) on failure. /// </summary> /// <returns>A dynamic object representing the JSON we fetched.</returns> internal dynamic MakeRequest(Uri url) { var web = new WebClient(); web.Headers.Add("user-agent", Net.UserAgentString); try { var result = web.DownloadString(url); return JsonConvert.DeserializeObject(result); } catch (WebException webEx) { log.ErrorFormat("WebException while accessing {0}: {1}", url, webEx); throw; } } public static void SetExecutable(string fileName) { // mark as executable if on Linux or Mac if (Platform.IsUnix || Platform.IsMac) { // TODO: It would be really lovely (and safer!) to use the native system // call here: http://docs.go-mono.com/index.aspx?link=M:Mono.Unix.Native.Syscall.chmod string command = string.Format("+x \"{0}\"", fileName); ProcessStartInfo permsinfo = new ProcessStartInfo("chmod", command); permsinfo.UseShellExecute = false; Process permsprocess = Process.Start(permsinfo); permsprocess.WaitForExit(); } } } }
34.948113
136
0.568093
[ "MIT" ]
RichardLake/CKAN
Core/Net/AutoUpdate.cs
7,411
C#
using ActionsList; using Ship; using System; using Upgrade; namespace Ship { namespace SecondEdition.LambdaClassT4AShuttle { public class LieutenantSai : LambdaClassT4AShuttle { public LieutenantSai() : base() { PilotInfo = new PilotCardInfo( "Lieutenant Sai", 3, 46, isLimited: true, abilityType: typeof(Abilities.SecondEdition.LieutenantSaiAbility), seImageNumber: 144 ); } } } } namespace Abilities.SecondEdition { public class LieutenantSaiAbility : GenericAbility { GenericShip abilityTarget; GenericAction abilityAction; public override void ActivateAbility() { HostShip.OnCoordinateTargetIsSelected += RegisterAbilityEvents; } public override void DeactivateAbility() { HostShip.OnCoordinateTargetIsSelected -= RegisterAbilityEvents; } private void RegisterAbilityEvents(GenericShip targetShip) { abilityTarget = targetShip; targetShip.OnActionIsPerformed += RegisterAbility; targetShip.OnActionIsSkipped += DeregisterAbilityEvents; } private void DeregisterAbilityEvents(GenericShip ship) { abilityTarget.OnActionIsPerformed -= RegisterAbility; abilityTarget.OnActionIsSkipped -= DeregisterAbilityEvents; abilityTarget = null; abilityAction = null; } private void RegisterAbility(GenericAction action) { DeregisterAbilityEvents(abilityTarget); if (action == null || !HostShip.ActionBar.HasAction(action.GetType())) { return; } abilityAction = action; Triggers.RegisterTrigger(new Trigger() { Name = HostShip.PilotInfo.PilotName + "'s ability", TriggerType = TriggerTypes.OnActionIsPerformed, TriggerOwner = HostShip.Owner.PlayerNo, EventHandler = AbilityTakeFreeAction }); } private void AbilityTakeFreeAction(object sender, EventArgs e) { GenericShip previousActiveShip = Selection.ThisShip; Selection.ChangeActiveShip(HostShip); HostShip.AskPerformFreeAction( abilityAction, delegate { Selection.ChangeActiveShip(previousActiveShip); Triggers.FinishTrigger(); }, HostShip.PilotInfo.PilotName, "After you perform a Coordinate action, if the ship you chose performed an action on your action bar, you may perform that action", HostShip ); } } }
30.360825
147
0.571138
[ "MIT" ]
97saundersj/FlyCasual
Assets/Scripts/Model/Content/SecondEdition/Pilots/LambdaClassT4AShuttle/LieutenantSai.cs
2,947
C#
/* * 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/. * Copyright (c) Swan & The Quaver Team <support@quavergame.com>. */ using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Quaver.Server.Client; using Quaver.Shared.Assets; using Quaver.Shared.Audio; using Quaver.Shared.Config; using Quaver.Shared.Database.Maps; using Quaver.Shared.Graphics; using Quaver.Shared.Graphics.Backgrounds; using Quaver.Shared.Graphics.Menu; using Quaver.Shared.Graphics.Notifications; using Quaver.Shared.Helpers; using Quaver.Shared.Online; using Quaver.Shared.Online.Chat; using Quaver.Shared.Scheduling; using Quaver.Shared.Screens.Menu; using Quaver.Shared.Screens.Menu.UI.Navigation; using Quaver.Shared.Screens.Menu.UI.Navigation.User; using Quaver.Shared.Screens.Menu.UI.Visualizer; using Quaver.Shared.Screens.Options; using Quaver.Shared.Screens.Select.UI.Banner; using Quaver.Shared.Screens.Select.UI.Leaderboard; using Quaver.Shared.Screens.Select.UI.Leaderboard.Selector; using Quaver.Shared.Screens.Select.UI.Maps; using Quaver.Shared.Screens.Select.UI.Mapsets; using Quaver.Shared.Screens.Select.UI.Modifiers; using Quaver.Shared.Screens.Settings; using Wobble; using Wobble.Graphics; using Wobble.Graphics.Animations; using Wobble.Graphics.UI; using Wobble.Graphics.UI.Dialogs; using Wobble.Logging; using Wobble.Screens; using Wobble.Window; namespace Quaver.Shared.Screens.Select { public class SelectScreenView : ScreenView { /// <summary> /// The background image for the screen /// </summary> public BackgroundImage Background { get; private set; } /// <summary> /// The navigation bar used to go back/open up dialogs. /// </summary> public Navbar Navbar { get; private set; } /// <summary> /// The user's profile when the click on their name in the navbar. /// </summary> public UserProfileContainer UserProfile { get; private set; } /// <summary> /// Audio visualizer at the bottom of the screen. /// </summary> public MenuAudioVisualizer Visualizer { get; private set; } /// <summary> /// Allows scrolling for different mapsets. /// </summary> public MapsetScrollContainer MapsetScrollContainer { get; private set; } /// <summary> /// Allows scrolling to different difficulties (maps)) /// </summary> public DifficultyScrollContainer DifficultyScrollContainer { get; private set; } /// <summary> /// The banner that displays some map information. /// </summary> public SelectMapBanner Banner { get; private set; } /// <summary> /// Displays the leaderboard to show user scores. /// </summary> public LeaderboardContainer Leaderboard { get; private set; } /// <summary> /// Allows the user to select between different leaderboard sections. /// </summary> public LeaderboardSelector LeaderboardSelector { get; private set; } /// <summary> /// The navigation bar at the bottom /// </summary> public Navbar BottomNavbar { get; private set; } /// <summary> /// </summary> private MenuHeader Header { get; set; } /// <summary> /// </summary> private MenuFooter Footer { get; set; } /// <summary> /// Dictates which container (mapsets, or difficulties) are currently active. /// </summary> public SelectContainerStatus ActiveContainer { get; private set; } = SelectContainerStatus.Mapsets; /// <summary> /// The time the user last exported a map /// </summary> private long LastExportTime { get; set; } /// <inheritdoc /> /// <summary> /// </summary> /// <param name="screen"></param> public SelectScreenView(Screen screen) : base(screen) { // CreateBackground(); BackgroundHelper.Background.Dim = 65; CreateHeader(); CreateAudioVisualizer(); CreateMapBanner(); CreateMapsetScrollContainer(); CreateDifficultyScrollContainer(); CreateLeaderboardSelector(); CreateLeaderboard(); CreateMenuFooter(); var selectScreen = Screen as SelectScreen; selectScreen.ScreenExiting += OnScreenExiting; // Needs to be called last so it's above the entire UI //CreateUserProfile(); } /// <inheritdoc /> /// <summary> /// </summary> /// <param name="gameTime"></param> public override void Update(GameTime gameTime) => Container?.Update(gameTime); /// <inheritdoc /> /// <summary> /// </summary> /// <param name="gameTime"></param> public override void Draw(GameTime gameTime) { GameBase.Game.GraphicsDevice.Clear(Color.Black); BackgroundHelper.Draw(gameTime); Container?.Draw(gameTime); } /// <inheritdoc /> /// <summary> /// </summary> public override void Destroy() { var screen = Screen as SelectScreen; screen.ScreenExiting -= OnScreenExiting; Container?.Destroy(); } /// <summary> /// Creates the audio visaulizer container for the screen /// </summary>12 private void CreateAudioVisualizer() => Visualizer = new MenuAudioVisualizer((int)WindowManager.Width, 400, 150, 5) { Parent = Container, Alignment = Alignment.BotLeft }; /// <summary> /// Creates the container to scroll for different mapsets. /// </summary> private void CreateMapsetScrollContainer() { MapsetScrollContainer = new MapsetScrollContainer(this) { Parent = Container, Alignment = Alignment.TopRight, Y = Header.Height + 2 }; MapsetScrollContainer.X = MapsetScrollContainer.Width; MapsetScrollContainer.MoveToX(-18, Easing.OutBounce, 1200); } /// <summary> /// Creates the container to scroll to different maps. /// </summary> private void CreateDifficultyScrollContainer() { DifficultyScrollContainer = new DifficultyScrollContainer(this) { Parent = Container, Alignment = Alignment.TopRight, Y = MapsetScrollContainer.Y }; // Hide it originally. DifficultyScrollContainer.X = DifficultyScrollContainer.Width; } /// <summary> /// Creates the sprite that displays the map banner. /// </summary> private void CreateMapBanner() { Banner = new SelectMapBanner(this) { Parent = Container, Alignment = Alignment.TopLeft, Position = new ScalableVector2(0, Header.Height + 20), }; Banner.X = -Banner.Width; Banner.MoveToX(25, Easing.OutQuint, 900); } /// <summary> /// Creates the container that houses the leaderboard. /// </summary> private void CreateLeaderboard() => Leaderboard = new LeaderboardContainer(this) { Parent = Container, Position = new ScalableVector2(28 - Banner.Border.Thickness, LeaderboardSelector.Y + LeaderboardSelector.Height + 10) }; /// <summary> /// Creates the interface to select between different leaderboard sections. /// </summary> private void CreateLeaderboardSelector() => LeaderboardSelector = new LeaderboardSelector(this, new List<LeaderboardSelectorItem>() { new LeaderboardSelectorItemRankings(LeaderboardType.Local, "Local"), }) { Parent = Container }; /// <summary> /// Switches the UI to the specified ScrollContainer. /// </summary> /// <param name="container"></param> public void SwitchToContainer(SelectContainerStatus container) { if (container == ActiveContainer) return; const int time = 400; const int targetX = -18; MapsetScrollContainer.ClearAnimations(); DifficultyScrollContainer.ClearAnimations(); switch (container) { case SelectContainerStatus.Mapsets: MapsetScrollContainer.Parent = Container; MapsetScrollContainer.MoveToX(targetX, Easing.OutQuint, time); DifficultyScrollContainer.MoveToX(DifficultyScrollContainer.Width, Easing.OutQuint, time); break; case SelectContainerStatus.Difficulty: DifficultyScrollContainer.Parent = Container; DifficultyScrollContainer.Visible = true; DifficultyScrollContainer.ContentContainer.Visible = true; MapsetScrollContainer.MoveToX(MapsetScrollContainer.Width, Easing.OutQuint, time); DifficultyScrollContainer.MoveToX(targetX, Easing.OutQuint, time); break; default: throw new ArgumentOutOfRangeException(nameof(container), container, null); } ActiveContainer = container; Banner.Parent = Container; Footer.Parent = Container; Logger.Debug($"Switched to Select Container: {ActiveContainer}", LogType.Runtime, false); } /// <summary> /// Called when the screen is exiting /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnScreenExiting(object sender, ScreenExitingEventArgs e) { if (Screen is SelectScreen screen && !screen.IsExitingToGameplay) return; MapsetScrollContainer.MoveToX(MapsetScrollContainer.Width, Easing.OutQuint, 400); DifficultyScrollContainer.MoveToX(DifficultyScrollContainer.Width, Easing.OutQuint, 400); Banner.MoveToX(-Banner.Width, Easing.OutQuint, 400); LeaderboardSelector.MoveToX(-LeaderboardSelector.Width, Easing.OutQuint, 400); Leaderboard.MoveToX(-Leaderboard.Width, Easing.OutQuint, 400); } /// <summary> /// </summary> private void CreateHeader() { Header = new MenuHeader(FontAwesome.Get(FontAwesomeIcon.fa_gamepad_console), "Song", "Select", "Select a map to play", Colors.MainAccent) { Parent = Container, Alignment = Alignment.TopLeft }; } /// <summary> /// </summary> /// <exception cref="NotImplementedException"></exception> private void CreateMenuFooter() { var screen = (SelectScreen) Screen; var leftButtons = new List<ButtonText>() { new ButtonText(FontsBitmap.GothamRegular, "Back", 14, (sender, args) => screen.ExitToMenu()), new ButtonText(FontsBitmap.GothamRegular, "Options", 14,(sender, args) => DialogManager.Show(new OptionsDialog())), new ButtonText(FontsBitmap.GothamRegular, "Profile", 14, (sender, args) => BrowserHelper.OpenURL($"https://quavergame.com/profile/{ConfigManager.Username.Value}?mode={(int) ConfigManager.SelectedGameMode.Value}")), }; var rightButtons = new List<ButtonText>() { new ButtonText(FontsBitmap.GothamRegular, "Modifiers", 14, (sender, args) => DialogManager.Show(new ModifiersDialog())), new ButtonText(FontsBitmap.GothamRegular, "Export", 14, (sender, args) => { if (Math.Abs(GameBase.Game.TimeRunning - LastExportTime) < 2000) { NotificationManager.Show(NotificationLevel.Error, "Slow down! You can only export a set every 2 seconds."); return; } LastExportTime = GameBase.Game.TimeRunning; ThreadScheduler.Run(() => { NotificationManager.Show(NotificationLevel.Info, "Exporting mapset to file..."); MapManager.Selected.Value.Mapset.ExportToZip(); NotificationManager.Show(NotificationLevel.Success, "Successfully exported mapset!"); }); }), new ButtonText(FontsBitmap.GothamRegular, "Delete", 14, ((sender, args) => { if (MapManager.Selected.Value == null) return; screen.DeleteSelected(); })) }; if (OnlineManager.CurrentGame == null) rightButtons.Add(new ButtonText(FontsBitmap.GothamRegular, "Edit", 14, (sender, args) => screen.ExitToEditor())); rightButtons.Add(new ButtonText(FontsBitmap.GothamRegular, "Random", 14, (sender, args) => screen.SelectRandomMap())); Footer = new MenuFooter(leftButtons, rightButtons, Colors.MainAccent) { Parent = Container, Alignment = Alignment.BotLeft }; } } }
37.029333
230
0.585626
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Kizuna-dev/QuaverKeymode
Quaver.Shared/Screens/Select/SelectScreenView.cs
13,886
C#
/* * Copyright 2012 The Netty Project * * The Netty Project 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. * * Copyright (c) 2020 The Dotnetty-Span-Fork Project (cuteant@outlook.com) All rights reserved. * * https://github.com/cuteant/dotnetty-span-fork * * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ namespace DotNetty.Transport.Channels { using System; using DotNetty.Common.Concurrency; /// <summary> /// <see cref="MultithreadEventLoopGroup{T1, T2}"/> which must be used for the local transport. /// </summary> public class DefaultEventLoopGroup : MultithreadEventLoopGroup<DefaultEventLoopGroup, DefaultEventLoop> { private static readonly Func<DefaultEventLoopGroup, DefaultEventLoop> DefaultEventLoopFactory; static DefaultEventLoopGroup() { DefaultEventLoopFactory = group => new DefaultEventLoop(group); } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup() : base(0, DefaultEventLoopFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads) : base(nThreads, DefaultEventLoopFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(IRejectedExecutionHandler rejectedHandler) : this(0, rejectedHandler) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(IEventLoopTaskQueueFactory queueFactory) : this(0, queueFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IRejectedExecutionHandler rejectedHandler) : base(nThreads, group => new DefaultEventLoop(group, rejectedHandler)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, int maxPendingTasks) : base(nThreads, group => new DefaultEventLoop(group, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, group => new DefaultEventLoop(group, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IRejectedExecutionHandler rejectedHandler, int maxPendingTasks) : base(nThreads, group => new DefaultEventLoop(group, rejectedHandler, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IRejectedExecutionHandler rejectedHandler, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, group => new DefaultEventLoop(group, rejectedHandler, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(IThreadFactory threadFactory) : this(0, threadFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, queueFactory: null)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IRejectedExecutionHandler rejectedHandler) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, rejectedHandler, queueFactory: null)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, int maxPendingTasks) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IRejectedExecutionHandler rejectedHandler, int maxPendingTasks) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, rejectedHandler, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IRejectedExecutionHandler rejectedHandler, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, group => new DefaultEventLoop(group, threadFactory, rejectedHandler, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory) : base(0, chooserFactory, DefaultEventLoopFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory) : base(nThreads, chooserFactory, DefaultEventLoopFactory) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IRejectedExecutionHandler rejectedHandler) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, rejectedHandler, queueFactory: null)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, int maxPendingTasks) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IRejectedExecutionHandler rejectedHandler, int maxPendingTasks) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, rejectedHandler, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IRejectedExecutionHandler rejectedHandler, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, rejectedHandler, queueFactory)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IRejectedExecutionHandler rejectedHandler, int maxPendingTasks) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, threadFactory, rejectedHandler, maxPendingTasks)) { } /// <summary>Creates a new instance of <see cref="DefaultEventLoopGroup"/>.</summary> public DefaultEventLoopGroup(int nThreads, IThreadFactory threadFactory, IEventExecutorChooserFactory<DefaultEventLoop> chooserFactory, IRejectedExecutionHandler rejectedHandler, IEventLoopTaskQueueFactory queueFactory) : base(nThreads, chooserFactory, group => new DefaultEventLoop(group, threadFactory, rejectedHandler, queueFactory)) { } } }
48.62
156
0.697038
[ "MIT" ]
cuteant/SpanNetty
src/DotNetty.Transport/Channels/DefaultEventLoopGroup.cs
9,726
C#
using CompanySales.Repository.DAO; using CompanySales.Repository.Models; using CompanySales.Repository.Parameter; using System; using System.Collections.Generic; using System.Text; namespace CompanySales.Repository.Business { public class ProductBiz { public static List<Product> GetList() { return ProductDAO.GetList(); } public static bool AddProduct(Product entity) { // 新产品入库的时候,产品已销售数量均为0 entity.ProductSellNumber = 0; return ProductDAO.AddProduct(entity); } /// <summary> /// 根据产品编号检查是否存在该产品 /// </summary> /// <param name="id"></param> /// <returns>存在则返回true,不存在则返回false</returns> public static bool CheckProductById(int id) { Product result = ProductDAO.GetProductById(id); return result != null; } public static Product GetProductById(int id) { return ProductDAO.GetProductById(id); } public static bool DeleteById(int id) { return ProductDAO.DeleteById(id); } public static bool Update(Product entity) { return ProductDAO.Update(entity); } public static Pager<Product> GetListByPage(ProductParameter parameter) { var res = MyHttpContext.Claims; return ProductDAO.GetListByPage(parameter); } public static bool BatchDelete(string ids) { string[] array = ids.Split(','); return ProductDAO.BatchDelete(array); } } }
25.904762
78
0.585172
[ "Apache-2.0" ]
imwyw/.net
Src/CompanySales_Speration/CompanySales/CompanySales.Repository/Business/ProductBiz.cs
1,724
C#
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Concurrent; using System.Dynamic; using System.Runtime.CompilerServices; using System.Linq; using System.Text; using Microsoft.CSharp.RuntimeBinder; namespace Sylvester.Data { public class FrameR : DynamicObject, IRow { #region Constructors public FrameR(Frame f, int index) { Frame = f; Index = index; foreach (var c in Frame.ColumnLabels) { AddCallSite(c.Key); } Enumerator = new FrameREnumerator(this); } #endregion #region Properties public Frame Frame { get; } public int Index { get; } internal Dictionary<string, CallSite<Func<CallSite, object, object>>> CallSites = new Dictionary<string, CallSite<Func<CallSite, object, object>>>(); public FrameREnumerator Enumerator { get; } public dynamic this[string column] => Frame.ColumnLabels[column].GetVal(Index); public dynamic this[int i] { get => Frame.Columns[i].GetVal(Index); } public IEnumerable<string> ColumnLabels => Frame.ColumnLabels.Keys; public IEnumerator GetEnumerator() => Enumerator; #endregion #region Overriden Methods public override bool TryGetMember(GetMemberBinder binder, out object result) { result = null; if (Frame.ColumnLabels.ContainsKey(binder.Name)) { if (!CallSites.ContainsKey(binder.Name)) { AddCallSite(binder.Name); } result = GetMember(binder.Name); return true; } else { return false; } } public override bool TrySetMember(SetMemberBinder binder, object value) => false; #endregion #region Methods public FrameDR Sel(params IColumn[] columns) => new FrameDR(this.Frame, this.Index, columns); public FrameDR Sel(params string[] columns) => Sel(Frame.Columns.Where(s => columns.Contains(s.Label)).ToArray()); public FrameDR Sel(params int[] columns) => Sel(columns.Select(i => Frame.Columns[i]).ToArray()); public FrameDR Ex(params IColumn[] columns) => new FrameDR(this.Frame, this.Index, this.Frame.Columns.Where(s => !columns.Contains(s)).ToArray()); public FrameDR Ex(params string[] columns) => new FrameDR(this.Frame, this.Index, this.Frame.Columns.Where(s => !columns.Contains(s.Label)).ToArray()); public IRow Cols(params string[] columns) => Sel(Frame.Columns.Where(s => columns.Contains(s.Label)).ToArray()); public IRow ColsEx(params string[] columns) => Ex(columns); internal dynamic GetMember(string propName) { IColumn c = (IColumn) CallSites[propName].Target(CallSites[propName], this.Frame); return c.GetVal(Index); } private void AddCallSite(string propName) { var binder = Binder.GetMember(CSharpBinderFlags.None, propName, this.GetType(), new List<CSharpArgumentInfo>{ CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)}); var callsite = CallSite<Func<CallSite, object, object>>.Create(binder); CallSites.Add(propName, callsite); } #endregion #region Fields private object _lock = new object(); #endregion } public class FrameREnumerator : IEnumerator { public FrameREnumerator(FrameR r) { row = r; } FrameR row; int position = -1; public bool MoveNext() => (++position < row.Frame.ColumnLabels.Count); public void Reset() => position = -1; dynamic IEnumerator.Current => row[position]; } }
31.511811
122
0.593203
[ "MIT" ]
allisterb/Sylvester
src/Data/Sylvester.DataFrame/FrameR.cs
4,004
C#
using System; using Xunit; using Xunit.Abstractions; namespace Swashbuckle.AspNetCore.SwaggerGen.Test { public class XmlCommentsMemberNameHelperTests { private readonly ITestOutputHelper _output; public XmlCommentsMemberNameHelperTests(ITestOutputHelper output) { _output = output; } [Theory] [InlineData(typeof(XmlAnnotatedType), "AcceptsNothing", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.AcceptsNothing")] [InlineData(typeof(XmlAnnotatedType), "AcceptsNestedType", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.AcceptsNestedType(Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.NestedType)")] [InlineData(typeof(XmlAnnotatedType), "AcceptsConstructedGenericType", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.AcceptsConstructedGenericType(System.Collections.Generic.KeyValuePair{System.String,System.Int32})")] [InlineData(typeof(XmlAnnotatedType), "AcceptsConstructedOfConstructedGenericType", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.AcceptsConstructedOfConstructedGenericType(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Int32}})")] [InlineData(typeof(XmlAnnotatedType), "AcceptsArrayOfConstructedGenericType", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.AcceptsArrayOfConstructedGenericType(System.Nullable{System.Int32}[])")] [InlineData(typeof(XmlAnnotatedGenericType<int, string>), "AcceptsTypeParameters", "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedGenericType`2.AcceptsTypeParameters(System.Int32,`0,`1)")] //[InlineData(typeof(XmlAnnotatedGenericType<int, string>), "AcceptsConstructedOfTypeParametersType", // "M:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedGenericType`2.AcceptsConstructedOfTypeParametersType(System.Collections.Generic.IDictionary{`0,`1})")] public void GetMemberNameForMethod_ReturnsCorrectXmlCommentsMemberName_ForGivenMethodInfo( Type declaringType, string name, string expectedMemberName) { var methodInfo = declaringType.GetMethod(name); var memberName = XmlCommentsMemberNameHelper.GetMemberNameForMethod(methodInfo); _output.WriteLine(expectedMemberName); _output.WriteLine(memberName); Assert.Equal(expectedMemberName, memberName); } [Theory] [InlineData(typeof(XmlAnnotatedType), "T:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType")] [InlineData(typeof(XmlAnnotatedType.NestedType), "T:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.NestedType")] [InlineData(typeof(XmlAnnotatedGenericType<int,string>), "T:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedGenericType`2")] [InlineData(typeof(NoNamespaceType), "T:NoNamespaceType")] public void GetMemberNameForType_ReturnsCorrectXmlCommentsMemberName_ForGivenType( Type type, string expectedMemberName ) { var memberName = XmlCommentsMemberNameHelper.GetMemberNameForType(type); _output.WriteLine(expectedMemberName); _output.WriteLine(memberName); Assert.Equal(expectedMemberName, memberName); } [Theory] [InlineData(typeof(XmlAnnotatedType), "Property", "P:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.Property")] [InlineData(typeof(XmlAnnotatedType), "Field", "F:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.Field")] [InlineData(typeof(XmlAnnotatedType.NestedType), "Property", "P:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedType.NestedType.Property")] [InlineData(typeof(XmlAnnotatedGenericType<int,string>), "GenericProperty", "P:Swashbuckle.AspNetCore.SwaggerGen.Test.XmlAnnotatedGenericType`2.GenericProperty")] public void GetMemberNameForProperty_ReturnsCorrectXmlCommentMemberName_ForGivenMemberInfo( Type declaringType, string fieldOrPropertyName, string expectedMemberName ) { var memberInfo = declaringType.GetMember(fieldOrPropertyName)[0]; var memberName = XmlCommentsMemberNameHelper.GetMemberNameForMember(memberInfo); _output.WriteLine(expectedMemberName); _output.WriteLine(memberName); Assert.Equal(expectedMemberName, memberName); } } }
51.615385
225
0.71897
[ "MIT" ]
matdube/Swashbuckle.AspNetCore
test/Swashbuckle.AspNetCore.SwaggerGen.Test/Annotations/XmlCommentsMemberNameHelperTests.cs
4,699
C#
namespace Zinnia.Data.Type.Transformation { using Malimbe.PropertySerializationAttribute; using Malimbe.XmlDocumentationAttribute; using System; using UnityEngine; using UnityEngine.Events; /// <summary> /// Transforms a <see cref="Vector3"/> by changing its magnitude. /// </summary> public class Vector3MagnitudeSetter : Transformer<Vector3, Vector3, Vector3MagnitudeSetter.UnityEvent> { /// <summary> /// Defines the event with the <see cref="Vector3"/> with the changed magnitude. /// </summary> [Serializable] public class UnityEvent : UnityEvent<Vector3> { } /// <summary> /// The magnitude to use when transforming values. /// </summary> [Serialized] [field: DocumentedByXml] public float Magnitude { get; set; } = 1f; /// <summary> /// Sets the magnitude to use. /// </summary> /// <param name="magnitudeSource">The source of the magnitude to use when transforming values.</param> public virtual void SetMagnitude(Vector3 magnitudeSource) { Magnitude = magnitudeSource.magnitude; } /// <summary> /// Transforms the given <see cref="Vector3"/> by changing its magnitude to <see cref="Magnitude"/>. /// </summary> /// <param name="input">The value to change the magnitude of.</param> /// <returns>A new <see cref="Vector3"/> with the same direction as <paramref name="input"/> and a magnitude of <see cref="Magnitude"/>.</returns> protected override Vector3 Process(Vector3 input) { return input.normalized * Magnitude; } } }
37.217391
154
0.617991
[ "MIT" ]
Borck/Zinnia.Unity
Runtime/Data/Type/Transformation/Vector3MagnitudeSetter.cs
1,714
C#
namespace Improving.Highway.Data.Scope.Test.Context.Foos { using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; public class FooMap : EntityTypeConfiguration<Foo> { public FooMap() { ToTable(nameof(Foo)); HasKey(x => x.Id); Property(x => x.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); Property(x => x.Name).HasMaxLength(30); } } }
30.5
93
0.639344
[ "MIT" ]
improving/Improving.Highway.Data.Scope
Test/Improving.Highway.Data.Scope.Test/Context/Foos/FooMap.cs
488
C#
using Jcompiler.Syntax; using System; namespace Jcompiler.Binding { internal class BoundBinaryOperator { private BoundBinaryOperator(NodeKind nodeKind, BoundBinaryOperatorKind kind, Type type) : this(nodeKind, kind, type, type, type) { } private BoundBinaryOperator(NodeKind nodeKind, BoundBinaryOperatorKind kind, Type operandType, Type resultType) : this(nodeKind, kind, operandType, operandType, resultType) { } private BoundBinaryOperator(NodeKind nodeKind, BoundBinaryOperatorKind kind, Type leftType, Type rightType, Type resultType) { NodeKind = nodeKind; Kind = kind; LeftType = leftType; RightTye = rightType; Type = resultType; } public NodeKind NodeKind { get; } public BoundBinaryOperatorKind Kind { get; } public Type LeftType { get; } public Type RightTye { get; } public Type Type { get; } private static BoundBinaryOperator[] _operators = { new BoundBinaryOperator(NodeKind.PlusToken, BoundBinaryOperatorKind.Addition, typeof(int)), new BoundBinaryOperator(NodeKind.MinusToken, BoundBinaryOperatorKind.Subtraction, typeof(int)), new BoundBinaryOperator(NodeKind.StarToken, BoundBinaryOperatorKind.Multiplication, typeof(int)), new BoundBinaryOperator(NodeKind.SlashToken, BoundBinaryOperatorKind.Division, typeof(int)), new BoundBinaryOperator(NodeKind.EqualsEqualsToken, BoundBinaryOperatorKind.Equals, typeof(int), typeof(bool)), new BoundBinaryOperator(NodeKind.BangEqualsToken, BoundBinaryOperatorKind.NotEquals, typeof(int), typeof(bool)), new BoundBinaryOperator(NodeKind.AmpersandAmpersandToken, BoundBinaryOperatorKind.LogicalAnd, typeof(bool)), new BoundBinaryOperator(NodeKind.PipePipeToken, BoundBinaryOperatorKind.LogicalOr, typeof(bool)), new BoundBinaryOperator(NodeKind.EqualsEqualsToken, BoundBinaryOperatorKind.Equals, typeof(bool)), new BoundBinaryOperator(NodeKind.BangEqualsToken, BoundBinaryOperatorKind.NotEquals, typeof(bool)), }; public static BoundBinaryOperator Bind(NodeKind nodeKind, Type leftType, Type rightType) { foreach (var op in _operators) { if (op.NodeKind == nodeKind && op.LeftType == leftType && op.RightTye == rightType) return op; } return null; } } }
42.163934
132
0.671462
[ "MIT" ]
CozminDev/Jcompiler
src/Jcompiler/Binding/BoundBinaryOperator.cs
2,574
C#
// <auto-generated /> using System; using AlocaGFT.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace AlocaGFT.Migrations { [DbContext(typeof(AlocaGFTDbContext))] [Migration("20201103180317_CriandoEntidades")] partial class CriandoEntidades { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.8") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("AlocaGFT.Models.Cargo", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("nome") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("id"); b.ToTable("Cargos"); }); modelBuilder.Entity("AlocaGFT.Models.Cep", b => { b.Property<string>("cod") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<string>("cidade") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("logradouro") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("uf") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("cod"); b.ToTable("Ceps"); }); modelBuilder.Entity("AlocaGFT.Models.Endereco", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("cepcod") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<string>("complemento") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<float>("latitude") .HasColumnType("float"); b.Property<float>("longitude") .HasColumnType("float"); b.Property<int>("numero") .HasColumnType("int"); b.HasKey("id"); b.HasIndex("cepcod"); b.ToTable("Enderecos"); }); modelBuilder.Entity("AlocaGFT.Models.Funcionario", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<int?>("cargoid") .HasColumnType("int"); b.Property<DateTime>("data_alteracao") .HasColumnType("datetime(6)"); b.Property<DateTime>("data_criacao") .HasColumnType("datetime(6)"); b.Property<int?>("gftid") .HasColumnType("int"); b.Property<DateTime>("inicio_wa") .HasColumnType("datetime(6)"); b.Property<string>("matricula") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("nome") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<bool?>("status") .IsRequired() .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(true); b.Property<DateTime>("termino_wa") .HasColumnType("datetime(6)"); b.Property<int?>("vagaid") .HasColumnType("int"); b.HasKey("id"); b.HasIndex("cargoid"); b.HasIndex("gftid"); b.HasIndex("vagaid"); b.ToTable("Funcionarios"); }); modelBuilder.Entity("AlocaGFT.Models.Funcionario_Tecnologia", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<int?>("funcionarioid") .HasColumnType("int"); b.Property<int?>("tecnologiaid") .HasColumnType("int"); b.HasKey("id"); b.HasIndex("funcionarioid"); b.HasIndex("tecnologiaid"); b.ToTable("Funcionarios_Tecnologias"); }); modelBuilder.Entity("AlocaGFT.Models.Gft", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<DateTime>("data_alteracao") .HasColumnType("datetime(6)"); b.Property<DateTime>("data_criacao") .HasColumnType("datetime(6)"); b.Property<int?>("enderecoid") .HasColumnType("int"); b.Property<string>("nome") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<bool?>("status") .IsRequired() .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(true); b.Property<string>("telefone") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("id"); b.HasIndex("enderecoid"); b.ToTable("Gfts"); }); modelBuilder.Entity("AlocaGFT.Models.Tecnologia", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<DateTime>("data_alteracao") .HasColumnType("datetime(6)"); b.Property<DateTime>("data_criacao") .HasColumnType("datetime(6)"); b.Property<string>("imageName") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("nome") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<bool?>("status") .IsRequired() .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(true); b.HasKey("id"); b.ToTable("Tecnologias"); }); modelBuilder.Entity("AlocaGFT.Models.Vaga", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<DateTime>("abertura") .HasColumnType("datetime(6)"); b.Property<int>("codigo_vaga") .HasColumnType("int"); b.Property<DateTime>("data_alteracao") .HasColumnType("datetime(6)"); b.Property<DateTime>("data_criacao") .HasColumnType("datetime(6)"); b.Property<string>("descricao") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("projeto") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<int>("qtd_vaga") .HasColumnType("int"); b.Property<bool?>("status") .IsRequired() .ValueGeneratedOnAdd() .HasColumnType("tinyint(1)") .HasDefaultValue(true); b.HasKey("id"); b.ToTable("Vagas"); }); modelBuilder.Entity("AlocaGFT.Models.Vaga_Tecnologia", b => { b.Property<int>("id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<int?>("tecnologiaid") .HasColumnType("int"); b.Property<int?>("vagaid") .HasColumnType("int"); b.HasKey("id"); b.HasIndex("tecnologiaid"); b.HasIndex("vagaid"); b.ToTable("Vagas_Tecnologias"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b => { b.Property<string>("Id") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("Name") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property<string>("NormalizedName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedName") .IsUnique() .HasName("RoleNameIndex"); b.ToTable("AspNetRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("ClaimType") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("ClaimValue") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("RoleId") .IsRequired() .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.HasKey("Id"); b.HasIndex("RoleId"); b.ToTable("AspNetRoleClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUser", b => { b.Property<string>("Id") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<int>("AccessFailedCount") .HasColumnType("int"); b.Property<string>("ConcurrencyStamp") .IsConcurrencyToken() .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("Email") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property<bool>("EmailConfirmed") .HasColumnType("tinyint(1)"); b.Property<bool>("LockoutEnabled") .HasColumnType("tinyint(1)"); b.Property<DateTimeOffset?>("LockoutEnd") .HasColumnType("datetime(6)"); b.Property<string>("NormalizedEmail") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property<string>("NormalizedUserName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.Property<string>("PasswordHash") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("PhoneNumber") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<bool>("PhoneNumberConfirmed") .HasColumnType("tinyint(1)"); b.Property<string>("SecurityStamp") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<bool>("TwoFactorEnabled") .HasColumnType("tinyint(1)"); b.Property<string>("UserName") .HasColumnType("varchar(256) CHARACTER SET utf8mb4") .HasMaxLength(256); b.HasKey("Id"); b.HasIndex("NormalizedEmail") .HasName("EmailIndex"); b.HasIndex("NormalizedUserName") .IsUnique() .HasName("UserNameIndex"); b.ToTable("AspNetUsers"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => { b.Property<int>("Id") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property<string>("ClaimType") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("ClaimValue") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("UserId") .IsRequired() .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.HasKey("Id"); b.HasIndex("UserId"); b.ToTable("AspNetUserClaims"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.Property<string>("LoginProvider") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property<string>("ProviderKey") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property<string>("ProviderDisplayName") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.Property<string>("UserId") .IsRequired() .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.HasKey("LoginProvider", "ProviderKey"); b.HasIndex("UserId"); b.ToTable("AspNetUserLogins"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => { b.Property<string>("UserId") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<string>("RoleId") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.HasKey("UserId", "RoleId"); b.HasIndex("RoleId"); b.ToTable("AspNetUserRoles"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.Property<string>("UserId") .HasColumnType("varchar(255) CHARACTER SET utf8mb4"); b.Property<string>("LoginProvider") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property<string>("Name") .HasColumnType("varchar(128) CHARACTER SET utf8mb4") .HasMaxLength(128); b.Property<string>("Value") .HasColumnType("longtext CHARACTER SET utf8mb4"); b.HasKey("UserId", "LoginProvider", "Name"); b.ToTable("AspNetUserTokens"); }); modelBuilder.Entity("AlocaGFT.Models.Endereco", b => { b.HasOne("AlocaGFT.Models.Cep", "cep") .WithMany() .HasForeignKey("cepcod"); }); modelBuilder.Entity("AlocaGFT.Models.Funcionario", b => { b.HasOne("AlocaGFT.Models.Cargo", "cargo") .WithMany() .HasForeignKey("cargoid"); b.HasOne("AlocaGFT.Models.Gft", "gft") .WithMany() .HasForeignKey("gftid"); b.HasOne("AlocaGFT.Models.Vaga", "vaga") .WithMany() .HasForeignKey("vagaid"); }); modelBuilder.Entity("AlocaGFT.Models.Funcionario_Tecnologia", b => { b.HasOne("AlocaGFT.Models.Funcionario", "funcionario") .WithMany() .HasForeignKey("funcionarioid"); b.HasOne("AlocaGFT.Models.Tecnologia", "tecnologia") .WithMany() .HasForeignKey("tecnologiaid"); }); modelBuilder.Entity("AlocaGFT.Models.Gft", b => { b.HasOne("AlocaGFT.Models.Endereco", "endereco") .WithMany() .HasForeignKey("enderecoid"); }); modelBuilder.Entity("AlocaGFT.Models.Vaga_Tecnologia", b => { b.HasOne("AlocaGFT.Models.Tecnologia", "tecnologia") .WithMany() .HasForeignKey("tecnologiaid"); b.HasOne("AlocaGFT.Models.Vaga", "vaga") .WithMany() .HasForeignKey("vagaid"); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null) .WithMany() .HasForeignKey("RoleId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b => { b.HasOne("Microsoft.AspNetCore.Identity.IdentityUser", null) .WithMany() .HasForeignKey("UserId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); #pragma warning restore 612, 618 } } }
36.299827
95
0.445739
[ "MIT" ]
LucasCancio/aloca-gft
AlocaGFT/Data/Migrations/20201103180317_CriandoEntidades.Designer.cs
20,947
C#
using System; namespace Acomp3 { class TailQuickSort : QuickSort { public new void Sort(int[] E, int left, int right) { throw new NotImplementedException(); } } }
16.384615
58
0.56338
[ "MIT" ]
GuilhermeFSV/Acomp3
Acomp3/TailQuickSort.cs
215
C#
using Foundation; namespace HyperlinkDemo; [Register("AppDelegate")] public class AppDelegate : MauiUIApplicationDelegate { protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); }
20.5
75
0.8
[ "MIT" ]
davidbritch/dotnet-maui-samples
UserInterface/HyperlinkDemo/HyperlinkDemo/Platforms/MacCatalyst/AppDelegate.cs
207
C#
using System; using System.Diagnostics; namespace toofz { internal sealed class StopwatchAdapter : IStopwatch { /// <summary> /// Initializes a new <see cref="StopwatchAdapter"/> instance, sets the elapsed time property to zero, and /// starts measuring elapsed time. /// </summary> /// <returns> /// A <see cref="StopwatchAdapter"/> that has just begun measuring elapsed time. /// </returns> public static StopwatchAdapter StartNew() { return new StopwatchAdapter(Stopwatch.StartNew()); } internal StopwatchAdapter(Stopwatch stopwatch) { this.stopwatch = stopwatch; } private readonly Stopwatch stopwatch; /// <summary> /// Gets a value indicating whether the stopwatch timer is running. /// </summary> public bool IsRunning => stopwatch.IsRunning; /// <summary> /// Gets the total elapsed time measured by the current instance. /// </summary> public TimeSpan Elapsed => stopwatch.Elapsed; /// <summary> /// Gets the total elapsed time measured by the current instance, in milliseconds. /// </summary> public long ElapsedMilliseconds => stopwatch.ElapsedMilliseconds; /// <summary> /// Gets the total elapsed time measured by the current instance, in timer ticks. /// </summary> public long ElapsedTicks => stopwatch.ElapsedTicks; /// <summary> /// Stops time interval measurement and resets the elapsed time to zero. /// </summary> public void Reset() => stopwatch.Reset(); /// <summary> /// Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time. /// </summary> public void Restart() => stopwatch.Restart(); /// <summary> /// Starts, or resumes, measuring elapsed time for an interval. /// </summary> public void Start() => stopwatch.Start(); /// <summary> /// Stops measuring elapsed time for an interval. /// </summary> public void Stop() => stopwatch.Stop(); } }
32.808824
115
0.593456
[ "MIT" ]
leonard-thieu/toofz-activity-tracing
src/toofz.ActivityTracing/StopwatchAdapter.cs
2,233
C#
#pragma warning disable 1591 //------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por una herramienta. // Versión de runtime:4.0.30319.42000 // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // se vuelve a generar el código. // </auto-generated> //------------------------------------------------------------------------------ [assembly: global::Android.Runtime.ResourceDesignerAttribute("BonosCaiApp.Droid.Resource", IsApplication=true)] namespace BonosCaiApp.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::BonosCaiApp.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 Attribute { // aapt resource value: 0x7f010004 public const int MediaRouteControllerWindowBackground = 2130771972; // aapt resource value: 0x7f010061 public const int actionBarDivider = 2130772065; // aapt resource value: 0x7f010062 public const int actionBarItemBackground = 2130772066; // aapt resource value: 0x7f01005b public const int actionBarPopupTheme = 2130772059; // aapt resource value: 0x7f010060 public const int actionBarSize = 2130772064; // aapt resource value: 0x7f01005d public const int actionBarSplitStyle = 2130772061; // aapt resource value: 0x7f01005c public const int actionBarStyle = 2130772060; // aapt resource value: 0x7f010057 public const int actionBarTabBarStyle = 2130772055; // aapt resource value: 0x7f010056 public const int actionBarTabStyle = 2130772054; // aapt resource value: 0x7f010058 public const int actionBarTabTextStyle = 2130772056; // aapt resource value: 0x7f01005e public const int actionBarTheme = 2130772062; // aapt resource value: 0x7f01005f public const int actionBarWidgetTheme = 2130772063; // aapt resource value: 0x7f01007b public const int actionButtonStyle = 2130772091; // aapt resource value: 0x7f010077 public const int actionDropDownStyle = 2130772087; // aapt resource value: 0x7f0100c9 public const int actionLayout = 2130772169; // aapt resource value: 0x7f010063 public const int actionMenuTextAppearance = 2130772067; // aapt resource value: 0x7f010064 public const int actionMenuTextColor = 2130772068; // aapt resource value: 0x7f010067 public const int actionModeBackground = 2130772071; // aapt resource value: 0x7f010066 public const int actionModeCloseButtonStyle = 2130772070; // aapt resource value: 0x7f010069 public const int actionModeCloseDrawable = 2130772073; // aapt resource value: 0x7f01006b public const int actionModeCopyDrawable = 2130772075; // aapt resource value: 0x7f01006a public const int actionModeCutDrawable = 2130772074; // aapt resource value: 0x7f01006f public const int actionModeFindDrawable = 2130772079; // aapt resource value: 0x7f01006c public const int actionModePasteDrawable = 2130772076; // aapt resource value: 0x7f010071 public const int actionModePopupWindowStyle = 2130772081; // aapt resource value: 0x7f01006d public const int actionModeSelectAllDrawable = 2130772077; // aapt resource value: 0x7f01006e public const int actionModeShareDrawable = 2130772078; // aapt resource value: 0x7f010068 public const int actionModeSplitBackground = 2130772072; // aapt resource value: 0x7f010065 public const int actionModeStyle = 2130772069; // aapt resource value: 0x7f010070 public const int actionModeWebSearchDrawable = 2130772080; // aapt resource value: 0x7f010059 public const int actionOverflowButtonStyle = 2130772057; // aapt resource value: 0x7f01005a public const int actionOverflowMenuStyle = 2130772058; // aapt resource value: 0x7f0100cb public const int actionProviderClass = 2130772171; // aapt resource value: 0x7f0100ca public const int actionViewClass = 2130772170; // aapt resource value: 0x7f010083 public const int activityChooserViewStyle = 2130772099; // aapt resource value: 0x7f0100a6 public const int alertDialogButtonGroupStyle = 2130772134; // aapt resource value: 0x7f0100a7 public const int alertDialogCenterButtons = 2130772135; // aapt resource value: 0x7f0100a5 public const int alertDialogStyle = 2130772133; // aapt resource value: 0x7f0100a8 public const int alertDialogTheme = 2130772136; // aapt resource value: 0x7f0100ba public const int allowStacking = 2130772154; // aapt resource value: 0x7f0100c1 public const int arrowHeadLength = 2130772161; // aapt resource value: 0x7f0100c2 public const int arrowShaftLength = 2130772162; // aapt resource value: 0x7f0100ad public const int autoCompleteTextViewStyle = 2130772141; // aapt resource value: 0x7f010032 public const int background = 2130772018; // aapt resource value: 0x7f010034 public const int backgroundSplit = 2130772020; // aapt resource value: 0x7f010033 public const int backgroundStacked = 2130772019; // aapt resource value: 0x7f0100f5 public const int backgroundTint = 2130772213; // aapt resource value: 0x7f0100f6 public const int backgroundTintMode = 2130772214; // aapt resource value: 0x7f0100c3 public const int barLength = 2130772163; // aapt resource value: 0x7f0100fb public const int behavior_hideable = 2130772219; // aapt resource value: 0x7f010121 public const int behavior_overlapTop = 2130772257; // aapt resource value: 0x7f0100fa public const int behavior_peekHeight = 2130772218; // aapt resource value: 0x7f010117 public const int borderWidth = 2130772247; // aapt resource value: 0x7f010080 public const int borderlessButtonStyle = 2130772096; // aapt resource value: 0x7f010111 public const int bottomSheetDialogTheme = 2130772241; // aapt resource value: 0x7f010112 public const int bottomSheetStyle = 2130772242; // aapt resource value: 0x7f01007d public const int buttonBarButtonStyle = 2130772093; // aapt resource value: 0x7f0100ab public const int buttonBarNegativeButtonStyle = 2130772139; // aapt resource value: 0x7f0100ac public const int buttonBarNeutralButtonStyle = 2130772140; // aapt resource value: 0x7f0100aa public const int buttonBarPositiveButtonStyle = 2130772138; // aapt resource value: 0x7f01007c public const int buttonBarStyle = 2130772092; // aapt resource value: 0x7f010045 public const int buttonPanelSideLayout = 2130772037; // aapt resource value: 0x7f0100ae public const int buttonStyle = 2130772142; // aapt resource value: 0x7f0100af public const int buttonStyleSmall = 2130772143; // aapt resource value: 0x7f0100bb public const int buttonTint = 2130772155; // aapt resource value: 0x7f0100bc public const int buttonTintMode = 2130772156; // aapt resource value: 0x7f01001b public const int cardBackgroundColor = 2130771995; // aapt resource value: 0x7f01001c public const int cardCornerRadius = 2130771996; // aapt resource value: 0x7f01001d public const int cardElevation = 2130771997; // aapt resource value: 0x7f01001e public const int cardMaxElevation = 2130771998; // aapt resource value: 0x7f010020 public const int cardPreventCornerOverlap = 2130772000; // aapt resource value: 0x7f01001f public const int cardUseCompatPadding = 2130771999; // aapt resource value: 0x7f0100b0 public const int checkboxStyle = 2130772144; // aapt resource value: 0x7f0100b1 public const int checkedTextViewStyle = 2130772145; // aapt resource value: 0x7f0100d3 public const int closeIcon = 2130772179; // aapt resource value: 0x7f010042 public const int closeItemLayout = 2130772034; // aapt resource value: 0x7f0100ec public const int collapseContentDescription = 2130772204; // aapt resource value: 0x7f0100eb public const int collapseIcon = 2130772203; // aapt resource value: 0x7f010108 public const int collapsedTitleGravity = 2130772232; // aapt resource value: 0x7f010104 public const int collapsedTitleTextAppearance = 2130772228; // aapt resource value: 0x7f0100bd public const int color = 2130772157; // aapt resource value: 0x7f01009e public const int colorAccent = 2130772126; // 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: 0x7f0100d8 public const int commitIcon = 2130772184; // aapt resource value: 0x7f01003d public const int contentInsetEnd = 2130772029; // aapt resource value: 0x7f01003e public const int contentInsetLeft = 2130772030; // aapt resource value: 0x7f01003f public const int contentInsetRight = 2130772031; // aapt resource value: 0x7f01003c public const int contentInsetStart = 2130772028; // aapt resource value: 0x7f010021 public const int contentPadding = 2130772001; // aapt resource value: 0x7f010025 public const int contentPaddingBottom = 2130772005; // aapt resource value: 0x7f010022 public const int contentPaddingLeft = 2130772002; // aapt resource value: 0x7f010023 public const int contentPaddingRight = 2130772003; // aapt resource value: 0x7f010024 public const int contentPaddingTop = 2130772004; // aapt resource value: 0x7f010105 public const int contentScrim = 2130772229; // aapt resource value: 0x7f0100a4 public const int controlBackground = 2130772132; // aapt resource value: 0x7f010137 public const int counterEnabled = 2130772279; // aapt resource value: 0x7f010138 public const int counterMaxLength = 2130772280; // aapt resource value: 0x7f01013a public const int counterOverflowTextAppearance = 2130772282; // aapt resource value: 0x7f010139 public const int counterTextAppearance = 2130772281; // aapt resource value: 0x7f010035 public const int customNavigationLayout = 2130772021; // aapt resource value: 0x7f0100d2 public const int defaultQueryHint = 2130772178; // aapt resource value: 0x7f010075 public const int dialogPreferredPadding = 2130772085; // aapt resource value: 0x7f010074 public const int dialogTheme = 2130772084; // aapt resource value: 0x7f01002b public const int displayOptions = 2130772011; // aapt resource value: 0x7f010031 public const int divider = 2130772017; // aapt resource value: 0x7f010082 public const int dividerHorizontal = 2130772098; // aapt resource value: 0x7f0100c7 public const int dividerPadding = 2130772167; // aapt resource value: 0x7f010081 public const int dividerVertical = 2130772097; // aapt resource value: 0x7f0100bf public const int drawableSize = 2130772159; // aapt resource value: 0x7f010026 public const int drawerArrowStyle = 2130772006; // aapt resource value: 0x7f010094 public const int dropDownListViewStyle = 2130772116; // aapt resource value: 0x7f010078 public const int dropdownListPreferredItemHeight = 2130772088; // aapt resource value: 0x7f010089 public const int editTextBackground = 2130772105; // aapt resource value: 0x7f010088 public const int editTextColor = 2130772104; // aapt resource value: 0x7f0100b2 public const int editTextStyle = 2130772146; // aapt resource value: 0x7f010040 public const int elevation = 2130772032; // aapt resource value: 0x7f010135 public const int errorEnabled = 2130772277; // aapt resource value: 0x7f010136 public const int errorTextAppearance = 2130772278; // aapt resource value: 0x7f010044 public const int expandActivityOverflowButtonDrawable = 2130772036; // aapt resource value: 0x7f0100f7 public const int expanded = 2130772215; // aapt resource value: 0x7f010109 public const int expandedTitleGravity = 2130772233; // aapt resource value: 0x7f0100fe public const int expandedTitleMargin = 2130772222; // aapt resource value: 0x7f010102 public const int expandedTitleMarginBottom = 2130772226; // aapt resource value: 0x7f010101 public const int expandedTitleMarginEnd = 2130772225; // aapt resource value: 0x7f0100ff public const int expandedTitleMarginStart = 2130772223; // aapt resource value: 0x7f010100 public const int expandedTitleMarginTop = 2130772224; // aapt resource value: 0x7f010103 public const int expandedTitleTextAppearance = 2130772227; // aapt resource value: 0x7f01001a public const int externalRouteEnabledDrawable = 2130771994; // aapt resource value: 0x7f010115 public const int fabSize = 2130772245; // aapt resource value: 0x7f010119 public const int foregroundInsidePadding = 2130772249; // aapt resource value: 0x7f0100c0 public const int gapBetweenBars = 2130772160; // aapt resource value: 0x7f0100d4 public const int goIcon = 2130772180; // aapt resource value: 0x7f01011f public const int headerLayout = 2130772255; // aapt resource value: 0x7f010027 public const int height = 2130772007; // aapt resource value: 0x7f01003b public const int hideOnContentScroll = 2130772027; // aapt resource value: 0x7f01013b public const int hintAnimationEnabled = 2130772283; // aapt resource value: 0x7f010134 public const int hintEnabled = 2130772276; // aapt resource value: 0x7f010133 public const int hintTextAppearance = 2130772275; // aapt resource value: 0x7f01007a public const int homeAsUpIndicator = 2130772090; // aapt resource value: 0x7f010036 public const int homeLayout = 2130772022; // aapt resource value: 0x7f01002f public const int icon = 2130772015; // aapt resource value: 0x7f0100d0 public const int iconifiedByDefault = 2130772176; // aapt resource value: 0x7f01008a public const int imageButtonStyle = 2130772106; // aapt resource value: 0x7f010038 public const int indeterminateProgressStyle = 2130772024; // aapt resource value: 0x7f010043 public const int initialActivityCount = 2130772035; // aapt resource value: 0x7f010120 public const int insetForeground = 2130772256; // aapt resource value: 0x7f010028 public const int isLightTheme = 2130772008; // aapt resource value: 0x7f01011d public const int itemBackground = 2130772253; // aapt resource value: 0x7f01011b public const int itemIconTint = 2130772251; // aapt resource value: 0x7f01003a public const int itemPadding = 2130772026; // aapt resource value: 0x7f01011e public const int itemTextAppearance = 2130772254; // aapt resource value: 0x7f01011c public const int itemTextColor = 2130772252; // aapt resource value: 0x7f01010b public const int keylines = 2130772235; // aapt resource value: 0x7f0100cf public const int layout = 2130772175; // aapt resource value: 0x7f010000 public const int layoutManager = 2130771968; // aapt resource value: 0x7f01010e public const int layout_anchor = 2130772238; // aapt resource value: 0x7f010110 public const int layout_anchorGravity = 2130772240; // aapt resource value: 0x7f01010d public const int layout_behavior = 2130772237; // aapt resource value: 0x7f0100fc public const int layout_collapseMode = 2130772220; // aapt resource value: 0x7f0100fd public const int layout_collapseParallaxMultiplier = 2130772221; // aapt resource value: 0x7f01010f public const int layout_keyline = 2130772239; // aapt resource value: 0x7f0100f8 public const int layout_scrollFlags = 2130772216; // aapt resource value: 0x7f0100f9 public const int layout_scrollInterpolator = 2130772217; // aapt resource value: 0x7f01009b public const int listChoiceBackgroundIndicator = 2130772123; // aapt resource value: 0x7f010076 public const int listDividerAlertDialog = 2130772086; // aapt resource value: 0x7f010049 public const int listItemLayout = 2130772041; // aapt resource value: 0x7f010046 public const int listLayout = 2130772038; // aapt resource value: 0x7f010095 public const int listPopupWindowStyle = 2130772117; // aapt resource value: 0x7f01008f public const int listPreferredItemHeight = 2130772111; // aapt resource value: 0x7f010091 public const int listPreferredItemHeightLarge = 2130772113; // aapt resource value: 0x7f010090 public const int listPreferredItemHeightSmall = 2130772112; // aapt resource value: 0x7f010092 public const int listPreferredItemPaddingLeft = 2130772114; // aapt resource value: 0x7f010093 public const int listPreferredItemPaddingRight = 2130772115; // aapt resource value: 0x7f010030 public const int logo = 2130772016; // aapt resource value: 0x7f0100ef public const int logoDescription = 2130772207; // aapt resource value: 0x7f010122 public const int maxActionInlineWidth = 2130772258; // aapt resource value: 0x7f0100ea public const int maxButtonHeight = 2130772202; // aapt resource value: 0x7f0100c5 public const int measureWithLargestChild = 2130772165; // aapt resource value: 0x7f010005 public const int mediaRouteAudioTrackDrawable = 2130771973; // aapt resource value: 0x7f010006 public const int mediaRouteBluetoothIconDrawable = 2130771974; // aapt resource value: 0x7f010007 public const int mediaRouteButtonStyle = 2130771975; // aapt resource value: 0x7f010008 public const int mediaRouteCastDrawable = 2130771976; // aapt resource value: 0x7f010009 public const int mediaRouteChooserPrimaryTextStyle = 2130771977; // aapt resource value: 0x7f01000a public const int mediaRouteChooserSecondaryTextStyle = 2130771978; // aapt resource value: 0x7f01000b public const int mediaRouteCloseDrawable = 2130771979; // aapt resource value: 0x7f01000c public const int mediaRouteCollapseGroupDrawable = 2130771980; // aapt resource value: 0x7f01000d public const int mediaRouteConnectingDrawable = 2130771981; // aapt resource value: 0x7f01000e public const int mediaRouteControllerPrimaryTextStyle = 2130771982; // aapt resource value: 0x7f01000f public const int mediaRouteControllerSecondaryTextStyle = 2130771983; // aapt resource value: 0x7f010010 public const int mediaRouteControllerTitleTextStyle = 2130771984; // aapt resource value: 0x7f010011 public const int mediaRouteDefaultIconDrawable = 2130771985; // aapt resource value: 0x7f010012 public const int mediaRouteExpandGroupDrawable = 2130771986; // aapt resource value: 0x7f010013 public const int mediaRouteOffDrawable = 2130771987; // aapt resource value: 0x7f010014 public const int mediaRouteOnDrawable = 2130771988; // aapt resource value: 0x7f010015 public const int mediaRoutePauseDrawable = 2130771989; // aapt resource value: 0x7f010016 public const int mediaRoutePlayDrawable = 2130771990; // aapt resource value: 0x7f010017 public const int mediaRouteSpeakerGroupIconDrawable = 2130771991; // aapt resource value: 0x7f010018 public const int mediaRouteSpeakerIconDrawable = 2130771992; // aapt resource value: 0x7f010019 public const int mediaRouteTvIconDrawable = 2130771993; // aapt resource value: 0x7f01011a public const int menu = 2130772250; // aapt resource value: 0x7f010047 public const int multiChoiceItemLayout = 2130772039; // aapt resource value: 0x7f0100ee public const int navigationContentDescription = 2130772206; // aapt resource value: 0x7f0100ed public const int navigationIcon = 2130772205; // aapt resource value: 0x7f01002a public const int navigationMode = 2130772010; // aapt resource value: 0x7f0100cd public const int overlapAnchor = 2130772173; // aapt resource value: 0x7f0100f3 public const int paddingEnd = 2130772211; // aapt resource value: 0x7f0100f2 public const int paddingStart = 2130772210; // 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: 0x7f010086 public const int popupMenuStyle = 2130772102; // aapt resource value: 0x7f010041 public const int popupTheme = 2130772033; // aapt resource value: 0x7f010087 public const int popupWindowStyle = 2130772103; // aapt resource value: 0x7f0100cc public const int preserveIconSpacing = 2130772172; // aapt resource value: 0x7f010116 public const int pressedTranslationZ = 2130772246; // aapt resource value: 0x7f010039 public const int progressBarPadding = 2130772025; // aapt resource value: 0x7f010037 public const int progressBarStyle = 2130772023; // aapt resource value: 0x7f0100da public const int queryBackground = 2130772186; // aapt resource value: 0x7f0100d1 public const int queryHint = 2130772177; // aapt resource value: 0x7f0100b3 public const int radioButtonStyle = 2130772147; // aapt resource value: 0x7f0100b4 public const int ratingBarStyle = 2130772148; // aapt resource value: 0x7f0100b5 public const int ratingBarStyleIndicator = 2130772149; // aapt resource value: 0x7f0100b6 public const int ratingBarStyleSmall = 2130772150; // aapt resource value: 0x7f010002 public const int reverseLayout = 2130771970; // aapt resource value: 0x7f010114 public const int rippleColor = 2130772244; // aapt resource value: 0x7f0100d6 public const int searchHintIcon = 2130772182; // aapt resource value: 0x7f0100d5 public const int searchIcon = 2130772181; // aapt resource value: 0x7f01008e public const int searchViewStyle = 2130772110; // aapt resource value: 0x7f0100b7 public const int seekBarStyle = 2130772151; // aapt resource value: 0x7f01007e public const int selectableItemBackground = 2130772094; // aapt resource value: 0x7f01007f public const int selectableItemBackgroundBorderless = 2130772095; // aapt resource value: 0x7f0100c8 public const int showAsAction = 2130772168; // aapt resource value: 0x7f0100c6 public const int showDividers = 2130772166; // aapt resource value: 0x7f0100e2 public const int showText = 2130772194; // aapt resource value: 0x7f010048 public const int singleChoiceItemLayout = 2130772040; // aapt resource value: 0x7f010001 public const int spanCount = 2130771969; // aapt resource value: 0x7f0100be public const int spinBars = 2130772158; // aapt resource value: 0x7f010079 public const int spinnerDropDownItemStyle = 2130772089; // aapt resource value: 0x7f0100b8 public const int spinnerStyle = 2130772152; // aapt resource value: 0x7f0100e1 public const int splitTrack = 2130772193; // aapt resource value: 0x7f01004a public const int srcCompat = 2130772042; // aapt resource value: 0x7f010003 public const int stackFromEnd = 2130771971; // aapt resource value: 0x7f0100ce public const int state_above_anchor = 2130772174; // aapt resource value: 0x7f01010c public const int statusBarBackground = 2130772236; // aapt resource value: 0x7f010106 public const int statusBarScrim = 2130772230; // aapt resource value: 0x7f0100db public const int submitBackground = 2130772187; // aapt resource value: 0x7f01002c public const int subtitle = 2130772012; // aapt resource value: 0x7f0100e4 public const int subtitleTextAppearance = 2130772196; // aapt resource value: 0x7f0100f1 public const int subtitleTextColor = 2130772209; // aapt resource value: 0x7f01002e public const int subtitleTextStyle = 2130772014; // aapt resource value: 0x7f0100d9 public const int suggestionRowLayout = 2130772185; // aapt resource value: 0x7f0100df public const int switchMinWidth = 2130772191; // aapt resource value: 0x7f0100e0 public const int switchPadding = 2130772192; // aapt resource value: 0x7f0100b9 public const int switchStyle = 2130772153; // aapt resource value: 0x7f0100de public const int switchTextAppearance = 2130772190; // aapt resource value: 0x7f010126 public const int tabBackground = 2130772262; // aapt resource value: 0x7f010125 public const int tabContentStart = 2130772261; // aapt resource value: 0x7f010128 public const int tabGravity = 2130772264; // aapt resource value: 0x7f010123 public const int tabIndicatorColor = 2130772259; // aapt resource value: 0x7f010124 public const int tabIndicatorHeight = 2130772260; // aapt resource value: 0x7f01012a public const int tabMaxWidth = 2130772266; // aapt resource value: 0x7f010129 public const int tabMinWidth = 2130772265; // aapt resource value: 0x7f010127 public const int tabMode = 2130772263; // aapt resource value: 0x7f010132 public const int tabPadding = 2130772274; // aapt resource value: 0x7f010131 public const int tabPaddingBottom = 2130772273; // aapt resource value: 0x7f010130 public const int tabPaddingEnd = 2130772272; // aapt resource value: 0x7f01012e public const int tabPaddingStart = 2130772270; // aapt resource value: 0x7f01012f public const int tabPaddingTop = 2130772271; // aapt resource value: 0x7f01012d public const int tabSelectedTextColor = 2130772269; // aapt resource value: 0x7f01012b public const int tabTextAppearance = 2130772267; // aapt resource value: 0x7f01012c public const int tabTextColor = 2130772268; // aapt resource value: 0x7f01004b public const int textAllCaps = 2130772043; // aapt resource value: 0x7f010072 public const int textAppearanceLargePopupMenu = 2130772082; // aapt resource value: 0x7f010096 public const int textAppearanceListItem = 2130772118; // aapt resource value: 0x7f010097 public const int textAppearanceListItemSmall = 2130772119; // aapt resource value: 0x7f01008c public const int textAppearanceSearchResultSubtitle = 2130772108; // aapt resource value: 0x7f01008b public const int textAppearanceSearchResultTitle = 2130772107; // aapt resource value: 0x7f010073 public const int textAppearanceSmallPopupMenu = 2130772083; // aapt resource value: 0x7f0100a9 public const int textColorAlertDialogListItem = 2130772137; // aapt resource value: 0x7f010113 public const int textColorError = 2130772243; // aapt resource value: 0x7f01008d public const int textColorSearchUrl = 2130772109; // aapt resource value: 0x7f0100f4 public const int theme = 2130772212; // aapt resource value: 0x7f0100c4 public const int thickness = 2130772164; // aapt resource value: 0x7f0100dd public const int thumbTextPadding = 2130772189; // aapt resource value: 0x7f010029 public const int title = 2130772009; // aapt resource value: 0x7f01010a public const int titleEnabled = 2130772234; // aapt resource value: 0x7f0100e9 public const int titleMarginBottom = 2130772201; // aapt resource value: 0x7f0100e7 public const int titleMarginEnd = 2130772199; // aapt resource value: 0x7f0100e6 public const int titleMarginStart = 2130772198; // aapt resource value: 0x7f0100e8 public const int titleMarginTop = 2130772200; // aapt resource value: 0x7f0100e5 public const int titleMargins = 2130772197; // aapt resource value: 0x7f0100e3 public const int titleTextAppearance = 2130772195; // aapt resource value: 0x7f0100f0 public const int titleTextColor = 2130772208; // aapt resource value: 0x7f01002d public const int titleTextStyle = 2130772013; // aapt resource value: 0x7f010107 public const int toolbarId = 2130772231; // aapt resource value: 0x7f010085 public const int toolbarNavigationButtonStyle = 2130772101; // aapt resource value: 0x7f010084 public const int toolbarStyle = 2130772100; // aapt resource value: 0x7f0100dc public const int track = 2130772188; // aapt resource value: 0x7f010118 public const int useCompatPadding = 2130772248; // aapt resource value: 0x7f0100d7 public const int voiceIcon = 2130772183; // aapt resource value: 0x7f01004c public const int windowActionBar = 2130772044; // aapt resource value: 0x7f01004e public const int windowActionBarOverlay = 2130772046; // aapt resource value: 0x7f01004f public const int windowActionModeOverlay = 2130772047; // aapt resource value: 0x7f010053 public const int windowFixedHeightMajor = 2130772051; // aapt resource value: 0x7f010051 public const int windowFixedHeightMinor = 2130772049; // aapt resource value: 0x7f010050 public const int windowFixedWidthMajor = 2130772048; // aapt resource value: 0x7f010052 public const int windowFixedWidthMinor = 2130772050; // aapt resource value: 0x7f010054 public const int windowMinWidthMajor = 2130772052; // aapt resource value: 0x7f010055 public const int windowMinWidthMinor = 2130772053; // aapt resource value: 0x7f01004d public const int windowNoTitle = 2130772045; static Attribute() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Attribute() { } } public partial class Boolean { // aapt resource value: 0x7f0c0003 public const int abc_action_bar_embed_tabs = 2131492867; // aapt resource value: 0x7f0c0001 public const int abc_action_bar_embed_tabs_pre_jb = 2131492865; // aapt resource value: 0x7f0c0004 public const int abc_action_bar_expanded_action_views_exclusive = 2131492868; // aapt resource value: 0x7f0c0000 public const int abc_allow_stacked_button_bar = 2131492864; // aapt resource value: 0x7f0c0005 public const int abc_config_actionMenuItemAllCaps = 2131492869; // aapt resource value: 0x7f0c0002 public const int abc_config_allowActionMenuItemTextWithIcon = 2131492866; // aapt resource value: 0x7f0c0006 public const int abc_config_closeDialogWhenTouchOutside = 2131492870; // aapt resource value: 0x7f0c0007 public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131492871; static Boolean() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Boolean() { } } public partial class Color { // aapt resource value: 0x7f0b0048 public const int abc_background_cache_hint_selector_material_dark = 2131427400; // aapt resource value: 0x7f0b0049 public const int abc_background_cache_hint_selector_material_light = 2131427401; // aapt resource value: 0x7f0b004a public const int abc_color_highlight_material = 2131427402; // aapt resource value: 0x7f0b0004 public const int abc_input_method_navigation_guard = 2131427332; // aapt resource value: 0x7f0b004b public const int abc_primary_text_disable_only_material_dark = 2131427403; // aapt resource value: 0x7f0b004c public const int abc_primary_text_disable_only_material_light = 2131427404; // aapt resource value: 0x7f0b004d public const int abc_primary_text_material_dark = 2131427405; // aapt resource value: 0x7f0b004e public const int abc_primary_text_material_light = 2131427406; // aapt resource value: 0x7f0b004f public const int abc_search_url_text = 2131427407; // aapt resource value: 0x7f0b0005 public const int abc_search_url_text_normal = 2131427333; // aapt resource value: 0x7f0b0006 public const int abc_search_url_text_pressed = 2131427334; // aapt resource value: 0x7f0b0007 public const int abc_search_url_text_selected = 2131427335; // aapt resource value: 0x7f0b0050 public const int abc_secondary_text_material_dark = 2131427408; // aapt resource value: 0x7f0b0051 public const int abc_secondary_text_material_light = 2131427409; // aapt resource value: 0x7f0b0008 public const int accent_material_dark = 2131427336; // aapt resource value: 0x7f0b0009 public const int accent_material_light = 2131427337; // aapt resource value: 0x7f0b000a public const int background_floating_material_dark = 2131427338; // aapt resource value: 0x7f0b000b public const int background_floating_material_light = 2131427339; // aapt resource value: 0x7f0b000c public const int background_material_dark = 2131427340; // aapt resource value: 0x7f0b000d public const int background_material_light = 2131427341; // aapt resource value: 0x7f0b000e public const int bright_foreground_disabled_material_dark = 2131427342; // aapt resource value: 0x7f0b000f public const int bright_foreground_disabled_material_light = 2131427343; // aapt resource value: 0x7f0b0010 public const int bright_foreground_inverse_material_dark = 2131427344; // aapt resource value: 0x7f0b0011 public const int bright_foreground_inverse_material_light = 2131427345; // aapt resource value: 0x7f0b0012 public const int bright_foreground_material_dark = 2131427346; // aapt resource value: 0x7f0b0013 public const int bright_foreground_material_light = 2131427347; // aapt resource value: 0x7f0b0014 public const int button_material_dark = 2131427348; // aapt resource value: 0x7f0b0015 public const int button_material_light = 2131427349; // aapt resource value: 0x7f0b0000 public const int cardview_dark_background = 2131427328; // aapt resource value: 0x7f0b0001 public const int cardview_light_background = 2131427329; // aapt resource value: 0x7f0b0002 public const int cardview_shadow_end_color = 2131427330; // aapt resource value: 0x7f0b0003 public const int cardview_shadow_start_color = 2131427331; // aapt resource value: 0x7f0b003e public const int design_fab_shadow_end_color = 2131427390; // aapt resource value: 0x7f0b003f public const int design_fab_shadow_mid_color = 2131427391; // aapt resource value: 0x7f0b0040 public const int design_fab_shadow_start_color = 2131427392; // aapt resource value: 0x7f0b0041 public const int design_fab_stroke_end_inner_color = 2131427393; // aapt resource value: 0x7f0b0042 public const int design_fab_stroke_end_outer_color = 2131427394; // aapt resource value: 0x7f0b0043 public const int design_fab_stroke_top_inner_color = 2131427395; // aapt resource value: 0x7f0b0044 public const int design_fab_stroke_top_outer_color = 2131427396; // aapt resource value: 0x7f0b0045 public const int design_snackbar_background_color = 2131427397; // aapt resource value: 0x7f0b0046 public const int design_textinput_error_color_dark = 2131427398; // aapt resource value: 0x7f0b0047 public const int design_textinput_error_color_light = 2131427399; // aapt resource value: 0x7f0b0016 public const int dim_foreground_disabled_material_dark = 2131427350; // aapt resource value: 0x7f0b0017 public const int dim_foreground_disabled_material_light = 2131427351; // aapt resource value: 0x7f0b0018 public const int dim_foreground_material_dark = 2131427352; // aapt resource value: 0x7f0b0019 public const int dim_foreground_material_light = 2131427353; // aapt resource value: 0x7f0b001a public const int foreground_material_dark = 2131427354; // aapt resource value: 0x7f0b001b public const int foreground_material_light = 2131427355; // aapt resource value: 0x7f0b001c public const int highlighted_text_material_dark = 2131427356; // aapt resource value: 0x7f0b001d public const int highlighted_text_material_light = 2131427357; // aapt resource value: 0x7f0b001e public const int hint_foreground_material_dark = 2131427358; // aapt resource value: 0x7f0b001f public const int hint_foreground_material_light = 2131427359; // aapt resource value: 0x7f0b0020 public const int material_blue_grey_800 = 2131427360; // aapt resource value: 0x7f0b0021 public const int material_blue_grey_900 = 2131427361; // aapt resource value: 0x7f0b0022 public const int material_blue_grey_950 = 2131427362; // aapt resource value: 0x7f0b0023 public const int material_deep_teal_200 = 2131427363; // aapt resource value: 0x7f0b0024 public const int material_deep_teal_500 = 2131427364; // aapt resource value: 0x7f0b0025 public const int material_grey_100 = 2131427365; // aapt resource value: 0x7f0b0026 public const int material_grey_300 = 2131427366; // aapt resource value: 0x7f0b0027 public const int material_grey_50 = 2131427367; // aapt resource value: 0x7f0b0028 public const int material_grey_600 = 2131427368; // aapt resource value: 0x7f0b0029 public const int material_grey_800 = 2131427369; // aapt resource value: 0x7f0b002a public const int material_grey_850 = 2131427370; // aapt resource value: 0x7f0b002b public const int material_grey_900 = 2131427371; // aapt resource value: 0x7f0b002c public const int primary_dark_material_dark = 2131427372; // aapt resource value: 0x7f0b002d public const int primary_dark_material_light = 2131427373; // aapt resource value: 0x7f0b002e public const int primary_material_dark = 2131427374; // aapt resource value: 0x7f0b002f public const int primary_material_light = 2131427375; // aapt resource value: 0x7f0b0030 public const int primary_text_default_material_dark = 2131427376; // aapt resource value: 0x7f0b0031 public const int primary_text_default_material_light = 2131427377; // aapt resource value: 0x7f0b0032 public const int primary_text_disabled_material_dark = 2131427378; // aapt resource value: 0x7f0b0033 public const int primary_text_disabled_material_light = 2131427379; // aapt resource value: 0x7f0b0034 public const int ripple_material_dark = 2131427380; // aapt resource value: 0x7f0b0035 public const int ripple_material_light = 2131427381; // aapt resource value: 0x7f0b0036 public const int secondary_text_default_material_dark = 2131427382; // aapt resource value: 0x7f0b0037 public const int secondary_text_default_material_light = 2131427383; // aapt resource value: 0x7f0b0038 public const int secondary_text_disabled_material_dark = 2131427384; // aapt resource value: 0x7f0b0039 public const int secondary_text_disabled_material_light = 2131427385; // aapt resource value: 0x7f0b003a public const int switch_thumb_disabled_material_dark = 2131427386; // aapt resource value: 0x7f0b003b public const int switch_thumb_disabled_material_light = 2131427387; // aapt resource value: 0x7f0b0052 public const int switch_thumb_material_dark = 2131427410; // aapt resource value: 0x7f0b0053 public const int switch_thumb_material_light = 2131427411; // aapt resource value: 0x7f0b003c public const int switch_thumb_normal_material_dark = 2131427388; // aapt resource value: 0x7f0b003d public const int switch_thumb_normal_material_light = 2131427389; static Color() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Color() { } } public partial class Dimension { // aapt resource value: 0x7f060019 public const int abc_action_bar_content_inset_material = 2131099673; // aapt resource value: 0x7f06000d public const int abc_action_bar_default_height_material = 2131099661; // aapt resource value: 0x7f06001a public const int abc_action_bar_default_padding_end_material = 2131099674; // aapt resource value: 0x7f06001b public const int abc_action_bar_default_padding_start_material = 2131099675; // aapt resource value: 0x7f06001d public const int abc_action_bar_icon_vertical_padding_material = 2131099677; // aapt resource value: 0x7f06001e public const int abc_action_bar_overflow_padding_end_material = 2131099678; // aapt resource value: 0x7f06001f public const int abc_action_bar_overflow_padding_start_material = 2131099679; // aapt resource value: 0x7f06000e public const int abc_action_bar_progress_bar_size = 2131099662; // aapt resource value: 0x7f060020 public const int abc_action_bar_stacked_max_height = 2131099680; // aapt resource value: 0x7f060021 public const int abc_action_bar_stacked_tab_max_width = 2131099681; // aapt resource value: 0x7f060022 public const int abc_action_bar_subtitle_bottom_margin_material = 2131099682; // aapt resource value: 0x7f060023 public const int abc_action_bar_subtitle_top_margin_material = 2131099683; // aapt resource value: 0x7f060024 public const int abc_action_button_min_height_material = 2131099684; // aapt resource value: 0x7f060025 public const int abc_action_button_min_width_material = 2131099685; // aapt resource value: 0x7f060026 public const int abc_action_button_min_width_overflow_material = 2131099686; // aapt resource value: 0x7f06000c public const int abc_alert_dialog_button_bar_height = 2131099660; // aapt resource value: 0x7f060027 public const int abc_button_inset_horizontal_material = 2131099687; // aapt resource value: 0x7f060028 public const int abc_button_inset_vertical_material = 2131099688; // aapt resource value: 0x7f060029 public const int abc_button_padding_horizontal_material = 2131099689; // aapt resource value: 0x7f06002a public const int abc_button_padding_vertical_material = 2131099690; // aapt resource value: 0x7f060011 public const int abc_config_prefDialogWidth = 2131099665; // aapt resource value: 0x7f06002b public const int abc_control_corner_material = 2131099691; // aapt resource value: 0x7f06002c public const int abc_control_inset_material = 2131099692; // aapt resource value: 0x7f06002d public const int abc_control_padding_material = 2131099693; // aapt resource value: 0x7f060012 public const int abc_dialog_fixed_height_major = 2131099666; // aapt resource value: 0x7f060013 public const int abc_dialog_fixed_height_minor = 2131099667; // aapt resource value: 0x7f060014 public const int abc_dialog_fixed_width_major = 2131099668; // aapt resource value: 0x7f060015 public const int abc_dialog_fixed_width_minor = 2131099669; // aapt resource value: 0x7f06002e public const int abc_dialog_list_padding_vertical_material = 2131099694; // aapt resource value: 0x7f060016 public const int abc_dialog_min_width_major = 2131099670; // aapt resource value: 0x7f060017 public const int abc_dialog_min_width_minor = 2131099671; // aapt resource value: 0x7f06002f public const int abc_dialog_padding_material = 2131099695; // aapt resource value: 0x7f060030 public const int abc_dialog_padding_top_material = 2131099696; // aapt resource value: 0x7f060031 public const int abc_disabled_alpha_material_dark = 2131099697; // aapt resource value: 0x7f060032 public const int abc_disabled_alpha_material_light = 2131099698; // aapt resource value: 0x7f060033 public const int abc_dropdownitem_icon_width = 2131099699; // aapt resource value: 0x7f060034 public const int abc_dropdownitem_text_padding_left = 2131099700; // aapt resource value: 0x7f060035 public const int abc_dropdownitem_text_padding_right = 2131099701; // aapt resource value: 0x7f060036 public const int abc_edit_text_inset_bottom_material = 2131099702; // aapt resource value: 0x7f060037 public const int abc_edit_text_inset_horizontal_material = 2131099703; // aapt resource value: 0x7f060038 public const int abc_edit_text_inset_top_material = 2131099704; // aapt resource value: 0x7f060039 public const int abc_floating_window_z = 2131099705; // aapt resource value: 0x7f06003a public const int abc_list_item_padding_horizontal_material = 2131099706; // aapt resource value: 0x7f06003b public const int abc_panel_menu_list_width = 2131099707; // aapt resource value: 0x7f06003c public const int abc_search_view_preferred_width = 2131099708; // aapt resource value: 0x7f060018 public const int abc_search_view_text_min_width = 2131099672; // aapt resource value: 0x7f06003d public const int abc_seekbar_track_background_height_material = 2131099709; // aapt resource value: 0x7f06003e public const int abc_seekbar_track_progress_height_material = 2131099710; // aapt resource value: 0x7f06003f public const int abc_select_dialog_padding_start_material = 2131099711; // aapt resource value: 0x7f06001c public const int abc_switch_padding = 2131099676; // aapt resource value: 0x7f060040 public const int abc_text_size_body_1_material = 2131099712; // aapt resource value: 0x7f060041 public const int abc_text_size_body_2_material = 2131099713; // aapt resource value: 0x7f060042 public const int abc_text_size_button_material = 2131099714; // aapt resource value: 0x7f060043 public const int abc_text_size_caption_material = 2131099715; // aapt resource value: 0x7f060044 public const int abc_text_size_display_1_material = 2131099716; // aapt resource value: 0x7f060045 public const int abc_text_size_display_2_material = 2131099717; // aapt resource value: 0x7f060046 public const int abc_text_size_display_3_material = 2131099718; // aapt resource value: 0x7f060047 public const int abc_text_size_display_4_material = 2131099719; // aapt resource value: 0x7f060048 public const int abc_text_size_headline_material = 2131099720; // aapt resource value: 0x7f060049 public const int abc_text_size_large_material = 2131099721; // aapt resource value: 0x7f06004a public const int abc_text_size_medium_material = 2131099722; // aapt resource value: 0x7f06004b public const int abc_text_size_menu_material = 2131099723; // aapt resource value: 0x7f06004c public const int abc_text_size_small_material = 2131099724; // aapt resource value: 0x7f06004d public const int abc_text_size_subhead_material = 2131099725; // aapt resource value: 0x7f06000f public const int abc_text_size_subtitle_material_toolbar = 2131099663; // aapt resource value: 0x7f06004e public const int abc_text_size_title_material = 2131099726; // aapt resource value: 0x7f060010 public const int abc_text_size_title_material_toolbar = 2131099664; // aapt resource value: 0x7f060009 public const int cardview_compat_inset_shadow = 2131099657; // aapt resource value: 0x7f06000a public const int cardview_default_elevation = 2131099658; // aapt resource value: 0x7f06000b public const int cardview_default_radius = 2131099659; // aapt resource value: 0x7f06005f public const int design_appbar_elevation = 2131099743; // aapt resource value: 0x7f060060 public const int design_bottom_sheet_modal_elevation = 2131099744; // aapt resource value: 0x7f060061 public const int design_bottom_sheet_modal_peek_height = 2131099745; // aapt resource value: 0x7f060062 public const int design_fab_border_width = 2131099746; // aapt resource value: 0x7f060063 public const int design_fab_elevation = 2131099747; // aapt resource value: 0x7f060064 public const int design_fab_image_size = 2131099748; // aapt resource value: 0x7f060065 public const int design_fab_size_mini = 2131099749; // aapt resource value: 0x7f060066 public const int design_fab_size_normal = 2131099750; // aapt resource value: 0x7f060067 public const int design_fab_translation_z_pressed = 2131099751; // aapt resource value: 0x7f060068 public const int design_navigation_elevation = 2131099752; // aapt resource value: 0x7f060069 public const int design_navigation_icon_padding = 2131099753; // aapt resource value: 0x7f06006a public const int design_navigation_icon_size = 2131099754; // aapt resource value: 0x7f060057 public const int design_navigation_max_width = 2131099735; // aapt resource value: 0x7f06006b public const int design_navigation_padding_bottom = 2131099755; // aapt resource value: 0x7f06006c public const int design_navigation_separator_vertical_padding = 2131099756; // aapt resource value: 0x7f060058 public const int design_snackbar_action_inline_max_width = 2131099736; // aapt resource value: 0x7f060059 public const int design_snackbar_background_corner_radius = 2131099737; // aapt resource value: 0x7f06006d public const int design_snackbar_elevation = 2131099757; // aapt resource value: 0x7f06005a public const int design_snackbar_extra_spacing_horizontal = 2131099738; // aapt resource value: 0x7f06005b public const int design_snackbar_max_width = 2131099739; // aapt resource value: 0x7f06005c public const int design_snackbar_min_width = 2131099740; // aapt resource value: 0x7f06006e public const int design_snackbar_padding_horizontal = 2131099758; // aapt resource value: 0x7f06006f public const int design_snackbar_padding_vertical = 2131099759; // aapt resource value: 0x7f06005d public const int design_snackbar_padding_vertical_2lines = 2131099741; // aapt resource value: 0x7f060070 public const int design_snackbar_text_size = 2131099760; // aapt resource value: 0x7f060071 public const int design_tab_max_width = 2131099761; // aapt resource value: 0x7f06005e public const int design_tab_scrollable_min_width = 2131099742; // aapt resource value: 0x7f060072 public const int design_tab_text_size = 2131099762; // aapt resource value: 0x7f060073 public const int design_tab_text_size_2line = 2131099763; // aapt resource value: 0x7f06004f public const int disabled_alpha_material_dark = 2131099727; // aapt resource value: 0x7f060050 public const int disabled_alpha_material_light = 2131099728; // aapt resource value: 0x7f060051 public const int highlight_alpha_material_colored = 2131099729; // aapt resource value: 0x7f060052 public const int highlight_alpha_material_dark = 2131099730; // aapt resource value: 0x7f060053 public const int highlight_alpha_material_light = 2131099731; // aapt resource value: 0x7f060000 public const int item_touch_helper_max_drag_scroll_per_frame = 2131099648; // aapt resource value: 0x7f060001 public const int item_touch_helper_swipe_escape_max_velocity = 2131099649; // aapt resource value: 0x7f060002 public const int item_touch_helper_swipe_escape_velocity = 2131099650; // aapt resource value: 0x7f060003 public const int mr_controller_volume_group_list_item_height = 2131099651; // aapt resource value: 0x7f060004 public const int mr_controller_volume_group_list_item_icon_size = 2131099652; // aapt resource value: 0x7f060005 public const int mr_controller_volume_group_list_max_height = 2131099653; // aapt resource value: 0x7f060008 public const int mr_controller_volume_group_list_padding_top = 2131099656; // aapt resource value: 0x7f060006 public const int mr_dialog_fixed_width_major = 2131099654; // aapt resource value: 0x7f060007 public const int mr_dialog_fixed_width_minor = 2131099655; // aapt resource value: 0x7f060054 public const int notification_large_icon_height = 2131099732; // aapt resource value: 0x7f060055 public const int notification_large_icon_width = 2131099733; // aapt resource value: 0x7f060056 public const int notification_subtext_size = 2131099734; 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_rating_star_off_mtrl_alpha = 2130837515; // aapt resource value: 0x7f02000c public const int abc_btn_rating_star_on_mtrl_alpha = 2130837516; // aapt resource value: 0x7f02000d public const int abc_btn_switch_to_on_mtrl_00001 = 2130837517; // aapt resource value: 0x7f02000e public const int abc_btn_switch_to_on_mtrl_00012 = 2130837518; // aapt resource value: 0x7f02000f public const int abc_cab_background_internal_bg = 2130837519; // aapt resource value: 0x7f020010 public const int abc_cab_background_top_material = 2130837520; // aapt resource value: 0x7f020011 public const int abc_cab_background_top_mtrl_alpha = 2130837521; // aapt resource value: 0x7f020012 public const int abc_control_background_material = 2130837522; // aapt resource value: 0x7f020013 public const int abc_dialog_material_background_dark = 2130837523; // aapt resource value: 0x7f020014 public const int abc_dialog_material_background_light = 2130837524; // aapt resource value: 0x7f020015 public const int abc_edit_text_material = 2130837525; // aapt resource value: 0x7f020016 public const int abc_ic_ab_back_mtrl_am_alpha = 2130837526; // aapt resource value: 0x7f020017 public const int abc_ic_clear_mtrl_alpha = 2130837527; // aapt resource value: 0x7f020018 public const int abc_ic_commit_search_api_mtrl_alpha = 2130837528; // aapt resource value: 0x7f020019 public const int abc_ic_go_search_api_mtrl_alpha = 2130837529; // aapt resource value: 0x7f02001a public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837530; // aapt resource value: 0x7f02001b public const int abc_ic_menu_cut_mtrl_alpha = 2130837531; // aapt resource value: 0x7f02001c public const int abc_ic_menu_moreoverflow_mtrl_alpha = 2130837532; // aapt resource value: 0x7f02001d public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837533; // aapt resource value: 0x7f02001e public const int abc_ic_menu_selectall_mtrl_alpha = 2130837534; // aapt resource value: 0x7f02001f public const int abc_ic_menu_share_mtrl_alpha = 2130837535; // aapt resource value: 0x7f020020 public const int abc_ic_search_api_mtrl_alpha = 2130837536; // aapt resource value: 0x7f020021 public const int abc_ic_star_black_16dp = 2130837537; // aapt resource value: 0x7f020022 public const int abc_ic_star_black_36dp = 2130837538; // aapt resource value: 0x7f020023 public const int abc_ic_star_half_black_16dp = 2130837539; // aapt resource value: 0x7f020024 public const int abc_ic_star_half_black_36dp = 2130837540; // aapt resource value: 0x7f020025 public const int abc_ic_voice_search_api_mtrl_alpha = 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_full_material = 2130837557; // aapt resource value: 0x7f020036 public const int abc_ratingbar_indicator_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_track_material = 2130837566; // aapt resource value: 0x7f02003f public const int abc_spinner_mtrl_am_alpha = 2130837567; // aapt resource value: 0x7f020040 public const int abc_spinner_textfield_background_material = 2130837568; // aapt resource value: 0x7f020041 public const int abc_switch_thumb_material = 2130837569; // aapt resource value: 0x7f020042 public const int abc_switch_track_mtrl_alpha = 2130837570; // aapt resource value: 0x7f020043 public const int abc_tab_indicator_material = 2130837571; // aapt resource value: 0x7f020044 public const int abc_tab_indicator_mtrl_alpha = 2130837572; // aapt resource value: 0x7f020045 public const int abc_text_cursor_material = 2130837573; // aapt resource value: 0x7f020046 public const int abc_textfield_activated_mtrl_alpha = 2130837574; // aapt resource value: 0x7f020047 public const int abc_textfield_default_mtrl_alpha = 2130837575; // aapt resource value: 0x7f020048 public const int abc_textfield_search_activated_mtrl_alpha = 2130837576; // aapt resource value: 0x7f020049 public const int abc_textfield_search_default_mtrl_alpha = 2130837577; // aapt resource value: 0x7f02004a public const int abc_textfield_search_material = 2130837578; // aapt resource value: 0x7f02004b public const int cai = 2130837579; // aapt resource value: 0x7f02004c public const int design_fab_background = 2130837580; // aapt resource value: 0x7f02004d public const int design_snackbar_background = 2130837581; // aapt resource value: 0x7f02004e public const int ic_audiotrack = 2130837582; // aapt resource value: 0x7f02004f public const int ic_audiotrack_light = 2130837583; // aapt resource value: 0x7f020050 public const int ic_bluetooth_grey = 2130837584; // aapt resource value: 0x7f020051 public const int ic_bluetooth_white = 2130837585; // aapt resource value: 0x7f020052 public const int ic_cast_dark = 2130837586; // aapt resource value: 0x7f020053 public const int ic_cast_disabled_light = 2130837587; // aapt resource value: 0x7f020054 public const int ic_cast_grey = 2130837588; // aapt resource value: 0x7f020055 public const int ic_cast_light = 2130837589; // aapt resource value: 0x7f020056 public const int ic_cast_off_light = 2130837590; // aapt resource value: 0x7f020057 public const int ic_cast_on_0_light = 2130837591; // aapt resource value: 0x7f020058 public const int ic_cast_on_1_light = 2130837592; // aapt resource value: 0x7f020059 public const int ic_cast_on_2_light = 2130837593; // aapt resource value: 0x7f02005a public const int ic_cast_on_light = 2130837594; // aapt resource value: 0x7f02005b public const int ic_cast_white = 2130837595; // aapt resource value: 0x7f02005c public const int ic_close_dark = 2130837596; // aapt resource value: 0x7f02005d public const int ic_close_light = 2130837597; // aapt resource value: 0x7f02005e public const int ic_collapse = 2130837598; // aapt resource value: 0x7f02005f public const int ic_collapse_00000 = 2130837599; // aapt resource value: 0x7f020060 public const int ic_collapse_00001 = 2130837600; // aapt resource value: 0x7f020061 public const int ic_collapse_00002 = 2130837601; // aapt resource value: 0x7f020062 public const int ic_collapse_00003 = 2130837602; // aapt resource value: 0x7f020063 public const int ic_collapse_00004 = 2130837603; // aapt resource value: 0x7f020064 public const int ic_collapse_00005 = 2130837604; // aapt resource value: 0x7f020065 public const int ic_collapse_00006 = 2130837605; // aapt resource value: 0x7f020066 public const int ic_collapse_00007 = 2130837606; // aapt resource value: 0x7f020067 public const int ic_collapse_00008 = 2130837607; // aapt resource value: 0x7f020068 public const int ic_collapse_00009 = 2130837608; // aapt resource value: 0x7f020069 public const int ic_collapse_00010 = 2130837609; // aapt resource value: 0x7f02006a public const int ic_collapse_00011 = 2130837610; // aapt resource value: 0x7f02006b public const int ic_collapse_00012 = 2130837611; // aapt resource value: 0x7f02006c public const int ic_collapse_00013 = 2130837612; // aapt resource value: 0x7f02006d public const int ic_collapse_00014 = 2130837613; // aapt resource value: 0x7f02006e public const int ic_collapse_00015 = 2130837614; // aapt resource value: 0x7f02006f public const int ic_expand = 2130837615; // aapt resource value: 0x7f020070 public const int ic_expand_00000 = 2130837616; // aapt resource value: 0x7f020071 public const int ic_expand_00001 = 2130837617; // aapt resource value: 0x7f020072 public const int ic_expand_00002 = 2130837618; // aapt resource value: 0x7f020073 public const int ic_expand_00003 = 2130837619; // aapt resource value: 0x7f020074 public const int ic_expand_00004 = 2130837620; // aapt resource value: 0x7f020075 public const int ic_expand_00005 = 2130837621; // aapt resource value: 0x7f020076 public const int ic_expand_00006 = 2130837622; // aapt resource value: 0x7f020077 public const int ic_expand_00007 = 2130837623; // aapt resource value: 0x7f020078 public const int ic_expand_00008 = 2130837624; // aapt resource value: 0x7f020079 public const int ic_expand_00009 = 2130837625; // aapt resource value: 0x7f02007a public const int ic_expand_00010 = 2130837626; // aapt resource value: 0x7f02007b public const int ic_expand_00011 = 2130837627; // aapt resource value: 0x7f02007c public const int ic_expand_00012 = 2130837628; // aapt resource value: 0x7f02007d public const int ic_expand_00013 = 2130837629; // aapt resource value: 0x7f02007e public const int ic_expand_00014 = 2130837630; // aapt resource value: 0x7f02007f public const int ic_expand_00015 = 2130837631; // aapt resource value: 0x7f020080 public const int ic_media_pause = 2130837632; // aapt resource value: 0x7f020081 public const int ic_media_play = 2130837633; // aapt resource value: 0x7f020082 public const int ic_media_route_disabled_mono_dark = 2130837634; // aapt resource value: 0x7f020083 public const int ic_media_route_off_mono_dark = 2130837635; // aapt resource value: 0x7f020084 public const int ic_media_route_on_0_mono_dark = 2130837636; // aapt resource value: 0x7f020085 public const int ic_media_route_on_1_mono_dark = 2130837637; // aapt resource value: 0x7f020086 public const int ic_media_route_on_2_mono_dark = 2130837638; // aapt resource value: 0x7f020087 public const int ic_media_route_on_mono_dark = 2130837639; // aapt resource value: 0x7f020088 public const int ic_pause_dark = 2130837640; // aapt resource value: 0x7f020089 public const int ic_pause_light = 2130837641; // aapt resource value: 0x7f02008a public const int ic_play_dark = 2130837642; // aapt resource value: 0x7f02008b public const int ic_play_light = 2130837643; // aapt resource value: 0x7f02008c public const int ic_speaker_dark = 2130837644; // aapt resource value: 0x7f02008d public const int ic_speaker_group_dark = 2130837645; // aapt resource value: 0x7f02008e public const int ic_speaker_group_light = 2130837646; // aapt resource value: 0x7f02008f public const int ic_speaker_light = 2130837647; // aapt resource value: 0x7f020090 public const int ic_tv_dark = 2130837648; // aapt resource value: 0x7f020091 public const int ic_tv_light = 2130837649; // aapt resource value: 0x7f020092 public const int icon = 2130837650; // aapt resource value: 0x7f020093 public const int mr_dialog_material_background_dark = 2130837651; // aapt resource value: 0x7f020094 public const int mr_dialog_material_background_light = 2130837652; // aapt resource value: 0x7f020095 public const int mr_ic_audiotrack_light = 2130837653; // aapt resource value: 0x7f020096 public const int mr_ic_cast_dark = 2130837654; // aapt resource value: 0x7f020097 public const int mr_ic_cast_light = 2130837655; // aapt resource value: 0x7f020098 public const int mr_ic_close_dark = 2130837656; // aapt resource value: 0x7f020099 public const int mr_ic_close_light = 2130837657; // aapt resource value: 0x7f02009a public const int mr_ic_media_route_connecting_mono_dark = 2130837658; // aapt resource value: 0x7f02009b public const int mr_ic_media_route_connecting_mono_light = 2130837659; // aapt resource value: 0x7f02009c public const int mr_ic_media_route_mono_dark = 2130837660; // aapt resource value: 0x7f02009d public const int mr_ic_media_route_mono_light = 2130837661; // aapt resource value: 0x7f02009e public const int mr_ic_pause_dark = 2130837662; // aapt resource value: 0x7f02009f public const int mr_ic_pause_light = 2130837663; // aapt resource value: 0x7f0200a0 public const int mr_ic_play_dark = 2130837664; // aapt resource value: 0x7f0200a1 public const int mr_ic_play_light = 2130837665; // aapt resource value: 0x7f0200a3 public const int notification_template_icon_bg = 2130837667; // aapt resource value: 0x7f0200a2 public const int splashscreen = 2130837666; static Drawable() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Drawable() { } } public partial class Id { // aapt resource value: 0x7f07008b public const int action0 = 2131165323; // aapt resource value: 0x7f07005a public const int action_bar = 2131165274; // aapt resource value: 0x7f070001 public const int action_bar_activity_content = 2131165185; // aapt resource value: 0x7f070059 public const int action_bar_container = 2131165273; // aapt resource value: 0x7f070055 public const int action_bar_root = 2131165269; // aapt resource value: 0x7f070002 public const int action_bar_spinner = 2131165186; // aapt resource value: 0x7f07003b public const int action_bar_subtitle = 2131165243; // aapt resource value: 0x7f07003a public const int action_bar_title = 2131165242; // aapt resource value: 0x7f07005b public const int action_context_bar = 2131165275; // aapt resource value: 0x7f07008f public const int action_divider = 2131165327; // aapt resource value: 0x7f070003 public const int action_menu_divider = 2131165187; // aapt resource value: 0x7f070004 public const int action_menu_presenter = 2131165188; // aapt resource value: 0x7f070057 public const int action_mode_bar = 2131165271; // aapt resource value: 0x7f070056 public const int action_mode_bar_stub = 2131165270; // aapt resource value: 0x7f07003c public const int action_mode_close_button = 2131165244; // aapt resource value: 0x7f07003d public const int activity_chooser_view_content = 2131165245; // aapt resource value: 0x7f070049 public const int alertTitle = 2131165257; // aapt resource value: 0x7f07001e public const int always = 2131165214; // aapt resource value: 0x7f07001b public const int beginning = 2131165211; // aapt resource value: 0x7f07002a public const int bottom = 2131165226; // aapt resource value: 0x7f070044 public const int buttonPanel = 2131165252; // aapt resource value: 0x7f07008c public const int cancel_action = 2131165324; // aapt resource value: 0x7f07002b public const int center = 2131165227; // aapt resource value: 0x7f07002c public const int center_horizontal = 2131165228; // aapt resource value: 0x7f07002d public const int center_vertical = 2131165229; // aapt resource value: 0x7f070052 public const int checkbox = 2131165266; // aapt resource value: 0x7f070092 public const int chronometer = 2131165330; // aapt resource value: 0x7f070033 public const int clip_horizontal = 2131165235; // aapt resource value: 0x7f070034 public const int clip_vertical = 2131165236; // aapt resource value: 0x7f07001f public const int collapseActionView = 2131165215; // aapt resource value: 0x7f07004a public const int contentPanel = 2131165258; // aapt resource value: 0x7f070050 public const int custom = 2131165264; // aapt resource value: 0x7f07004f public const int customPanel = 2131165263; // aapt resource value: 0x7f070058 public const int decor_content_parent = 2131165272; // aapt resource value: 0x7f070040 public const int default_activity_button = 2131165248; // aapt resource value: 0x7f07006a public const int design_bottom_sheet = 2131165290; // aapt resource value: 0x7f070071 public const int design_menu_item_action_area = 2131165297; // aapt resource value: 0x7f070070 public const int design_menu_item_action_area_stub = 2131165296; // aapt resource value: 0x7f07006f public const int design_menu_item_text = 2131165295; // aapt resource value: 0x7f07006e public const int design_navigation_view = 2131165294; // aapt resource value: 0x7f07000e public const int disableHome = 2131165198; // aapt resource value: 0x7f07005c public const int edit_query = 2131165276; // aapt resource value: 0x7f07001c public const int end = 2131165212; // aapt resource value: 0x7f070097 public const int end_padder = 2131165335; // aapt resource value: 0x7f070023 public const int enterAlways = 2131165219; // aapt resource value: 0x7f070024 public const int enterAlwaysCollapsed = 2131165220; // aapt resource value: 0x7f070025 public const int exitUntilCollapsed = 2131165221; // aapt resource value: 0x7f07003e public const int expand_activities_button = 2131165246; // aapt resource value: 0x7f070051 public const int expanded_menu = 2131165265; // aapt resource value: 0x7f070035 public const int fill = 2131165237; // aapt resource value: 0x7f070036 public const int fill_horizontal = 2131165238; // aapt resource value: 0x7f07002e public const int fill_vertical = 2131165230; // aapt resource value: 0x7f070038 public const int @fixed = 2131165240; // aapt resource value: 0x7f070005 public const int home = 2131165189; // aapt resource value: 0x7f07000f public const int homeAsUp = 2131165199; // aapt resource value: 0x7f070042 public const int icon = 2131165250; // aapt resource value: 0x7f070020 public const int ifRoom = 2131165216; // aapt resource value: 0x7f07003f public const int image = 2131165247; // aapt resource value: 0x7f070096 public const int info = 2131165334; // aapt resource value: 0x7f070000 public const int item_touch_helper_previous_elevation = 2131165184; // aapt resource value: 0x7f07002f public const int left = 2131165231; // aapt resource value: 0x7f070090 public const int line1 = 2131165328; // aapt resource value: 0x7f070094 public const int line3 = 2131165332; // aapt resource value: 0x7f07000b public const int listMode = 2131165195; // aapt resource value: 0x7f070041 public const int list_item = 2131165249; // aapt resource value: 0x7f07008e public const int media_actions = 2131165326; // aapt resource value: 0x7f07001d public const int middle = 2131165213; // aapt resource value: 0x7f070037 public const int mini = 2131165239; // aapt resource value: 0x7f07007d public const int mr_art = 2131165309; // aapt resource value: 0x7f070072 public const int mr_chooser_list = 2131165298; // aapt resource value: 0x7f070075 public const int mr_chooser_route_desc = 2131165301; // aapt resource value: 0x7f070073 public const int mr_chooser_route_icon = 2131165299; // aapt resource value: 0x7f070074 public const int mr_chooser_route_name = 2131165300; // aapt resource value: 0x7f07007a public const int mr_close = 2131165306; // aapt resource value: 0x7f070080 public const int mr_control_divider = 2131165312; // aapt resource value: 0x7f070086 public const int mr_control_play_pause = 2131165318; // aapt resource value: 0x7f070089 public const int mr_control_subtitle = 2131165321; // aapt resource value: 0x7f070088 public const int mr_control_title = 2131165320; // aapt resource value: 0x7f070087 public const int mr_control_title_container = 2131165319; // aapt resource value: 0x7f07007b public const int mr_custom_control = 2131165307; // aapt resource value: 0x7f07007c public const int mr_default_control = 2131165308; // aapt resource value: 0x7f070077 public const int mr_dialog_area = 2131165303; // aapt resource value: 0x7f070076 public const int mr_expandable_area = 2131165302; // aapt resource value: 0x7f07008a public const int mr_group_expand_collapse = 2131165322; // aapt resource value: 0x7f07007e public const int mr_media_main_control = 2131165310; // aapt resource value: 0x7f070079 public const int mr_name = 2131165305; // aapt resource value: 0x7f07007f public const int mr_playback_control = 2131165311; // aapt resource value: 0x7f070078 public const int mr_title_bar = 2131165304; // aapt resource value: 0x7f070081 public const int mr_volume_control = 2131165313; // aapt resource value: 0x7f070082 public const int mr_volume_group_list = 2131165314; // aapt resource value: 0x7f070084 public const int mr_volume_item_icon = 2131165316; // aapt resource value: 0x7f070085 public const int mr_volume_slider = 2131165317; // aapt resource value: 0x7f070016 public const int multiply = 2131165206; // aapt resource value: 0x7f07006d public const int navigation_header_container = 2131165293; // aapt resource value: 0x7f070021 public const int never = 2131165217; // aapt resource value: 0x7f070010 public const int none = 2131165200; // aapt resource value: 0x7f07000c public const int normal = 2131165196; // aapt resource value: 0x7f070028 public const int parallax = 2131165224; // aapt resource value: 0x7f070046 public const int parentPanel = 2131165254; // aapt resource value: 0x7f070029 public const int pin = 2131165225; // aapt resource value: 0x7f070006 public const int progress_circular = 2131165190; // aapt resource value: 0x7f070007 public const int progress_horizontal = 2131165191; // aapt resource value: 0x7f070054 public const int radio = 2131165268; // aapt resource value: 0x7f070030 public const int right = 2131165232; // aapt resource value: 0x7f070017 public const int screen = 2131165207; // aapt resource value: 0x7f070026 public const int scroll = 2131165222; // aapt resource value: 0x7f07004e public const int scrollIndicatorDown = 2131165262; // aapt resource value: 0x7f07004b public const int scrollIndicatorUp = 2131165259; // aapt resource value: 0x7f07004c public const int scrollView = 2131165260; // aapt resource value: 0x7f070039 public const int scrollable = 2131165241; // aapt resource value: 0x7f07005e public const int search_badge = 2131165278; // aapt resource value: 0x7f07005d public const int search_bar = 2131165277; // aapt resource value: 0x7f07005f public const int search_button = 2131165279; // aapt resource value: 0x7f070064 public const int search_close_btn = 2131165284; // aapt resource value: 0x7f070060 public const int search_edit_frame = 2131165280; // aapt resource value: 0x7f070066 public const int search_go_btn = 2131165286; // aapt resource value: 0x7f070061 public const int search_mag_icon = 2131165281; // aapt resource value: 0x7f070062 public const int search_plate = 2131165282; // aapt resource value: 0x7f070063 public const int search_src_text = 2131165283; // aapt resource value: 0x7f070067 public const int search_voice_btn = 2131165287; // aapt resource value: 0x7f070068 public const int select_dialog_listview = 2131165288; // aapt resource value: 0x7f070053 public const int shortcut = 2131165267; // aapt resource value: 0x7f070011 public const int showCustom = 2131165201; // aapt resource value: 0x7f070012 public const int showHome = 2131165202; // aapt resource value: 0x7f070013 public const int showTitle = 2131165203; // aapt resource value: 0x7f070098 public const int sliding_tabs = 2131165336; // aapt resource value: 0x7f07006c public const int snackbar_action = 2131165292; // aapt resource value: 0x7f07006b public const int snackbar_text = 2131165291; // aapt resource value: 0x7f070027 public const int snap = 2131165223; // aapt resource value: 0x7f070045 public const int spacer = 2131165253; // aapt resource value: 0x7f070008 public const int split_action_bar = 2131165192; // aapt resource value: 0x7f070018 public const int src_atop = 2131165208; // aapt resource value: 0x7f070019 public const int src_in = 2131165209; // aapt resource value: 0x7f07001a public const int src_over = 2131165210; // aapt resource value: 0x7f070031 public const int start = 2131165233; // aapt resource value: 0x7f07008d public const int status_bar_latest_event_content = 2131165325; // aapt resource value: 0x7f070065 public const int submit_area = 2131165285; // aapt resource value: 0x7f07000d public const int tabMode = 2131165197; // aapt resource value: 0x7f070095 public const int text = 2131165333; // aapt resource value: 0x7f070093 public const int text2 = 2131165331; // aapt resource value: 0x7f07004d public const int textSpacerNoButtons = 2131165261; // aapt resource value: 0x7f070091 public const int time = 2131165329; // aapt resource value: 0x7f070043 public const int title = 2131165251; // aapt resource value: 0x7f070048 public const int title_template = 2131165256; // aapt resource value: 0x7f070099 public const int toolbar = 2131165337; // aapt resource value: 0x7f070032 public const int top = 2131165234; // aapt resource value: 0x7f070047 public const int topPanel = 2131165255; // aapt resource value: 0x7f070069 public const int touch_outside = 2131165289; // aapt resource value: 0x7f070009 public const int up = 2131165193; // aapt resource value: 0x7f070014 public const int useLogo = 2131165204; // aapt resource value: 0x7f07000a public const int view_offset_helper = 2131165194; // aapt resource value: 0x7f070083 public const int volume_item_container = 2131165315; // aapt resource value: 0x7f070022 public const int withText = 2131165218; // aapt resource value: 0x7f070015 public const int wrap_content = 2131165205; static Id() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Id() { } } public partial class Integer { // aapt resource value: 0x7f090004 public const int abc_config_activityDefaultDur = 2131296260; // aapt resource value: 0x7f090005 public const int abc_config_activityShortDur = 2131296261; // aapt resource value: 0x7f090003 public const int abc_max_action_buttons = 2131296259; // aapt resource value: 0x7f090009 public const int bottom_sheet_slide_duration = 2131296265; // aapt resource value: 0x7f090006 public const int cancel_button_image_alpha = 2131296262; // aapt resource value: 0x7f090008 public const int design_snackbar_text_max_lines = 2131296264; // aapt resource value: 0x7f090000 public const int mr_controller_volume_group_list_animation_duration_ms = 2131296256; // aapt resource value: 0x7f090001 public const int mr_controller_volume_group_list_fade_in_duration_ms = 2131296257; // aapt resource value: 0x7f090002 public const int mr_controller_volume_group_list_fade_out_duration_ms = 2131296258; // aapt resource value: 0x7f090007 public const int status_bar_notification_info_maxnum = 2131296263; static Integer() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Integer() { } } public partial class Interpolator { // aapt resource value: 0x7f050000 public const int mr_fast_out_slow_in = 2131034112; // aapt resource value: 0x7f050001 public const int mr_linear_out_slow_in = 2131034113; 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_dialog_title_material = 2130903051; // aapt resource value: 0x7f03000c public const int abc_expanded_menu_layout = 2130903052; // aapt resource value: 0x7f03000d public const int abc_list_menu_item_checkbox = 2130903053; // aapt resource value: 0x7f03000e public const int abc_list_menu_item_icon = 2130903054; // aapt resource value: 0x7f03000f public const int abc_list_menu_item_layout = 2130903055; // aapt resource value: 0x7f030010 public const int abc_list_menu_item_radio = 2130903056; // aapt resource value: 0x7f030011 public const int abc_popup_menu_item_layout = 2130903057; // aapt resource value: 0x7f030012 public const int abc_screen_content_include = 2130903058; // aapt resource value: 0x7f030013 public const int abc_screen_simple = 2130903059; // aapt resource value: 0x7f030014 public const int abc_screen_simple_overlay_action_mode = 2130903060; // aapt resource value: 0x7f030015 public const int abc_screen_toolbar = 2130903061; // aapt resource value: 0x7f030016 public const int abc_search_dropdown_item_icons_2line = 2130903062; // aapt resource value: 0x7f030017 public const int abc_search_view = 2130903063; // aapt resource value: 0x7f030018 public const int abc_select_dialog_material = 2130903064; // aapt resource value: 0x7f030019 public const int design_bottom_sheet_dialog = 2130903065; // aapt resource value: 0x7f03001a public const int design_layout_snackbar = 2130903066; // aapt resource value: 0x7f03001b public const int design_layout_snackbar_include = 2130903067; // aapt resource value: 0x7f03001c public const int design_layout_tab_icon = 2130903068; // aapt resource value: 0x7f03001d public const int design_layout_tab_text = 2130903069; // aapt resource value: 0x7f03001e public const int design_menu_item_action_area = 2130903070; // aapt resource value: 0x7f03001f public const int design_navigation_item = 2130903071; // aapt resource value: 0x7f030020 public const int design_navigation_item_header = 2130903072; // aapt resource value: 0x7f030021 public const int design_navigation_item_separator = 2130903073; // aapt resource value: 0x7f030022 public const int design_navigation_item_subheader = 2130903074; // aapt resource value: 0x7f030023 public const int design_navigation_menu = 2130903075; // aapt resource value: 0x7f030024 public const int design_navigation_menu_item = 2130903076; // aapt resource value: 0x7f030025 public const int mr_chooser_dialog = 2130903077; // aapt resource value: 0x7f030026 public const int mr_chooser_list_item = 2130903078; // aapt resource value: 0x7f030027 public const int mr_controller_material_dialog_b = 2130903079; // aapt resource value: 0x7f030028 public const int mr_controller_volume_item = 2130903080; // aapt resource value: 0x7f030029 public const int mr_playback_control = 2130903081; // aapt resource value: 0x7f03002a public const int mr_volume_control = 2130903082; // aapt resource value: 0x7f03002b public const int notification_media_action = 2130903083; // aapt resource value: 0x7f03002c public const int notification_media_cancel_action = 2130903084; // aapt resource value: 0x7f03002d public const int notification_template_big_media = 2130903085; // aapt resource value: 0x7f03002e public const int notification_template_big_media_narrow = 2130903086; // aapt resource value: 0x7f03002f public const int notification_template_lines = 2130903087; // aapt resource value: 0x7f030030 public const int notification_template_media = 2130903088; // aapt resource value: 0x7f030031 public const int notification_template_part_chronometer = 2130903089; // aapt resource value: 0x7f030032 public const int notification_template_part_time = 2130903090; // aapt resource value: 0x7f030033 public const int select_dialog_item_material = 2130903091; // aapt resource value: 0x7f030034 public const int select_dialog_multichoice_material = 2130903092; // aapt resource value: 0x7f030035 public const int select_dialog_singlechoice_material = 2130903093; // aapt resource value: 0x7f030036 public const int support_simple_spinner_dropdown_item = 2130903094; // aapt resource value: 0x7f030037 public const int Tabbar = 2130903095; // aapt resource value: 0x7f030038 public const int Toolbar = 2130903096; static Layout() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Layout() { } } public partial class String { // aapt resource value: 0x7f08000f public const int abc_action_bar_home_description = 2131230735; // aapt resource value: 0x7f080010 public const int abc_action_bar_home_description_format = 2131230736; // aapt resource value: 0x7f080011 public const int abc_action_bar_home_subtitle_description_format = 2131230737; // aapt resource value: 0x7f080012 public const int abc_action_bar_up_description = 2131230738; // aapt resource value: 0x7f080013 public const int abc_action_menu_overflow_description = 2131230739; // aapt resource value: 0x7f080014 public const int abc_action_mode_done = 2131230740; // aapt resource value: 0x7f080015 public const int abc_activity_chooser_view_see_all = 2131230741; // aapt resource value: 0x7f080016 public const int abc_activitychooserview_choose_application = 2131230742; // aapt resource value: 0x7f080017 public const int abc_capital_off = 2131230743; // aapt resource value: 0x7f080018 public const int abc_capital_on = 2131230744; // aapt resource value: 0x7f080019 public const int abc_search_hint = 2131230745; // aapt resource value: 0x7f08001a public const int abc_searchview_description_clear = 2131230746; // aapt resource value: 0x7f08001b public const int abc_searchview_description_query = 2131230747; // aapt resource value: 0x7f08001c public const int abc_searchview_description_search = 2131230748; // aapt resource value: 0x7f08001d public const int abc_searchview_description_submit = 2131230749; // aapt resource value: 0x7f08001e public const int abc_searchview_description_voice = 2131230750; // aapt resource value: 0x7f08001f public const int abc_shareactionprovider_share_with = 2131230751; // aapt resource value: 0x7f080020 public const int abc_shareactionprovider_share_with_application = 2131230752; // aapt resource value: 0x7f080021 public const int abc_toolbar_collapse_description = 2131230753; // aapt resource value: 0x7f080023 public const int appbar_scrolling_view_behavior = 2131230755; // aapt resource value: 0x7f080024 public const int bottom_sheet_behavior = 2131230756; // aapt resource value: 0x7f080025 public const int character_counter_pattern = 2131230757; // aapt resource value: 0x7f080000 public const int mr_button_content_description = 2131230720; // aapt resource value: 0x7f080001 public const int mr_chooser_searching = 2131230721; // aapt resource value: 0x7f080002 public const int mr_chooser_title = 2131230722; // aapt resource value: 0x7f080003 public const int mr_controller_casting_screen = 2131230723; // aapt resource value: 0x7f080004 public const int mr_controller_close_description = 2131230724; // aapt resource value: 0x7f080005 public const int mr_controller_collapse_group = 2131230725; // aapt resource value: 0x7f080006 public const int mr_controller_disconnect = 2131230726; // aapt resource value: 0x7f080007 public const int mr_controller_expand_group = 2131230727; // aapt resource value: 0x7f080008 public const int mr_controller_no_info_available = 2131230728; // aapt resource value: 0x7f080009 public const int mr_controller_no_media_selected = 2131230729; // aapt resource value: 0x7f08000a public const int mr_controller_pause = 2131230730; // aapt resource value: 0x7f08000b public const int mr_controller_play = 2131230731; // aapt resource value: 0x7f08000c public const int mr_controller_stop = 2131230732; // aapt resource value: 0x7f08000d public const int mr_system_route_name = 2131230733; // aapt resource value: 0x7f08000e public const int mr_user_route_category_name = 2131230734; // aapt resource value: 0x7f080022 public const int status_bar_notification_info_overflow = 2131230754; static String() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private String() { } } public partial class Style { // aapt resource value: 0x7f0a00a1 public const int AlertDialog_AppCompat = 2131361953; // aapt resource value: 0x7f0a00a2 public const int AlertDialog_AppCompat_Light = 2131361954; // aapt resource value: 0x7f0a00a3 public const int Animation_AppCompat_Dialog = 2131361955; // aapt resource value: 0x7f0a00a4 public const int Animation_AppCompat_DropDownUp = 2131361956; // aapt resource value: 0x7f0a015a public const int Animation_Design_BottomSheetDialog = 2131362138; // aapt resource value: 0x7f0a0175 public const int AppCompatDialogStyle = 2131362165; // aapt resource value: 0x7f0a00a5 public const int Base_AlertDialog_AppCompat = 2131361957; // aapt resource value: 0x7f0a00a6 public const int Base_AlertDialog_AppCompat_Light = 2131361958; // aapt resource value: 0x7f0a00a7 public const int Base_Animation_AppCompat_Dialog = 2131361959; // aapt resource value: 0x7f0a00a8 public const int Base_Animation_AppCompat_DropDownUp = 2131361960; // aapt resource value: 0x7f0a0018 public const int Base_CardView = 2131361816; // aapt resource value: 0x7f0a00a9 public const int Base_DialogWindowTitle_AppCompat = 2131361961; // aapt resource value: 0x7f0a00aa public const int Base_DialogWindowTitleBackground_AppCompat = 2131361962; // aapt resource value: 0x7f0a0051 public const int Base_TextAppearance_AppCompat = 2131361873; // aapt resource value: 0x7f0a0052 public const int Base_TextAppearance_AppCompat_Body1 = 2131361874; // aapt resource value: 0x7f0a0053 public const int Base_TextAppearance_AppCompat_Body2 = 2131361875; // aapt resource value: 0x7f0a003b public const int Base_TextAppearance_AppCompat_Button = 2131361851; // aapt resource value: 0x7f0a0054 public const int Base_TextAppearance_AppCompat_Caption = 2131361876; // aapt resource value: 0x7f0a0055 public const int Base_TextAppearance_AppCompat_Display1 = 2131361877; // aapt resource value: 0x7f0a0056 public const int Base_TextAppearance_AppCompat_Display2 = 2131361878; // aapt resource value: 0x7f0a0057 public const int Base_TextAppearance_AppCompat_Display3 = 2131361879; // aapt resource value: 0x7f0a0058 public const int Base_TextAppearance_AppCompat_Display4 = 2131361880; // aapt resource value: 0x7f0a0059 public const int Base_TextAppearance_AppCompat_Headline = 2131361881; // aapt resource value: 0x7f0a0026 public const int Base_TextAppearance_AppCompat_Inverse = 2131361830; // aapt resource value: 0x7f0a005a public const int Base_TextAppearance_AppCompat_Large = 2131361882; // aapt resource value: 0x7f0a0027 public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131361831; // aapt resource value: 0x7f0a005b public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131361883; // aapt resource value: 0x7f0a005c public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131361884; // aapt resource value: 0x7f0a005d public const int Base_TextAppearance_AppCompat_Medium = 2131361885; // aapt resource value: 0x7f0a0028 public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131361832; // aapt resource value: 0x7f0a005e public const int Base_TextAppearance_AppCompat_Menu = 2131361886; // aapt resource value: 0x7f0a00ab public const int Base_TextAppearance_AppCompat_SearchResult = 2131361963; // aapt resource value: 0x7f0a005f public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131361887; // aapt resource value: 0x7f0a0060 public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131361888; // aapt resource value: 0x7f0a0061 public const int Base_TextAppearance_AppCompat_Small = 2131361889; // aapt resource value: 0x7f0a0029 public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131361833; // aapt resource value: 0x7f0a0062 public const int Base_TextAppearance_AppCompat_Subhead = 2131361890; // aapt resource value: 0x7f0a002a public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131361834; // aapt resource value: 0x7f0a0063 public const int Base_TextAppearance_AppCompat_Title = 2131361891; // aapt resource value: 0x7f0a002b public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131361835; // aapt resource value: 0x7f0a009a public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131361946; // aapt resource value: 0x7f0a0064 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131361892; // aapt resource value: 0x7f0a0065 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131361893; // aapt resource value: 0x7f0a0066 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131361894; // aapt resource value: 0x7f0a0067 public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131361895; // aapt resource value: 0x7f0a0068 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131361896; // aapt resource value: 0x7f0a0069 public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131361897; // aapt resource value: 0x7f0a006a public const int Base_TextAppearance_AppCompat_Widget_Button = 2131361898; // aapt resource value: 0x7f0a009b public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131361947; // aapt resource value: 0x7f0a00ac public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131361964; // aapt resource value: 0x7f0a006b public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131361899; // aapt resource value: 0x7f0a006c public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131361900; // aapt resource value: 0x7f0a006d public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131361901; // aapt resource value: 0x7f0a006e public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131361902; // aapt resource value: 0x7f0a00ad public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131361965; // aapt resource value: 0x7f0a006f public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131361903; // aapt resource value: 0x7f0a0070 public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131361904; // aapt resource value: 0x7f0a0071 public const int Base_Theme_AppCompat = 2131361905; // aapt resource value: 0x7f0a00ae public const int Base_Theme_AppCompat_CompactMenu = 2131361966; // aapt resource value: 0x7f0a002c public const int Base_Theme_AppCompat_Dialog = 2131361836; // aapt resource value: 0x7f0a00af public const int Base_Theme_AppCompat_Dialog_Alert = 2131361967; // aapt resource value: 0x7f0a00b0 public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131361968; // aapt resource value: 0x7f0a00b1 public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131361969; // aapt resource value: 0x7f0a001c public const int Base_Theme_AppCompat_DialogWhenLarge = 2131361820; // aapt resource value: 0x7f0a0072 public const int Base_Theme_AppCompat_Light = 2131361906; // aapt resource value: 0x7f0a00b2 public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131361970; // aapt resource value: 0x7f0a002d public const int Base_Theme_AppCompat_Light_Dialog = 2131361837; // aapt resource value: 0x7f0a00b3 public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131361971; // aapt resource value: 0x7f0a00b4 public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131361972; // aapt resource value: 0x7f0a00b5 public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131361973; // aapt resource value: 0x7f0a001d public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131361821; // aapt resource value: 0x7f0a00b6 public const int Base_ThemeOverlay_AppCompat = 2131361974; // aapt resource value: 0x7f0a00b7 public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131361975; // aapt resource value: 0x7f0a00b8 public const int Base_ThemeOverlay_AppCompat_Dark = 2131361976; // aapt resource value: 0x7f0a00b9 public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131361977; // aapt resource value: 0x7f0a00ba public const int Base_ThemeOverlay_AppCompat_Light = 2131361978; // aapt resource value: 0x7f0a002e public const int Base_V11_Theme_AppCompat_Dialog = 2131361838; // aapt resource value: 0x7f0a002f public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131361839; // aapt resource value: 0x7f0a0037 public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131361847; // aapt resource value: 0x7f0a0038 public const int Base_V12_Widget_AppCompat_EditText = 2131361848; // aapt resource value: 0x7f0a0073 public const int Base_V21_Theme_AppCompat = 2131361907; // aapt resource value: 0x7f0a0074 public const int Base_V21_Theme_AppCompat_Dialog = 2131361908; // aapt resource value: 0x7f0a0075 public const int Base_V21_Theme_AppCompat_Light = 2131361909; // aapt resource value: 0x7f0a0076 public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131361910; // aapt resource value: 0x7f0a0098 public const int Base_V22_Theme_AppCompat = 2131361944; // aapt resource value: 0x7f0a0099 public const int Base_V22_Theme_AppCompat_Light = 2131361945; // aapt resource value: 0x7f0a009c public const int Base_V23_Theme_AppCompat = 2131361948; // aapt resource value: 0x7f0a009d public const int Base_V23_Theme_AppCompat_Light = 2131361949; // aapt resource value: 0x7f0a00bb public const int Base_V7_Theme_AppCompat = 2131361979; // aapt resource value: 0x7f0a00bc public const int Base_V7_Theme_AppCompat_Dialog = 2131361980; // aapt resource value: 0x7f0a00bd public const int Base_V7_Theme_AppCompat_Light = 2131361981; // aapt resource value: 0x7f0a00be public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131361982; // aapt resource value: 0x7f0a00bf public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131361983; // aapt resource value: 0x7f0a00c0 public const int Base_V7_Widget_AppCompat_EditText = 2131361984; // aapt resource value: 0x7f0a00c1 public const int Base_Widget_AppCompat_ActionBar = 2131361985; // aapt resource value: 0x7f0a00c2 public const int Base_Widget_AppCompat_ActionBar_Solid = 2131361986; // aapt resource value: 0x7f0a00c3 public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131361987; // aapt resource value: 0x7f0a0077 public const int Base_Widget_AppCompat_ActionBar_TabText = 2131361911; // aapt resource value: 0x7f0a0078 public const int Base_Widget_AppCompat_ActionBar_TabView = 2131361912; // aapt resource value: 0x7f0a0079 public const int Base_Widget_AppCompat_ActionButton = 2131361913; // aapt resource value: 0x7f0a007a public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131361914; // aapt resource value: 0x7f0a007b public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131361915; // aapt resource value: 0x7f0a00c4 public const int Base_Widget_AppCompat_ActionMode = 2131361988; // aapt resource value: 0x7f0a00c5 public const int Base_Widget_AppCompat_ActivityChooserView = 2131361989; // aapt resource value: 0x7f0a0039 public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131361849; // aapt resource value: 0x7f0a007c public const int Base_Widget_AppCompat_Button = 2131361916; // aapt resource value: 0x7f0a007d public const int Base_Widget_AppCompat_Button_Borderless = 2131361917; // aapt resource value: 0x7f0a007e public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131361918; // aapt resource value: 0x7f0a00c6 public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131361990; // aapt resource value: 0x7f0a009e public const int Base_Widget_AppCompat_Button_Colored = 2131361950; // aapt resource value: 0x7f0a007f public const int Base_Widget_AppCompat_Button_Small = 2131361919; // aapt resource value: 0x7f0a0080 public const int Base_Widget_AppCompat_ButtonBar = 2131361920; // aapt resource value: 0x7f0a00c7 public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131361991; // aapt resource value: 0x7f0a0081 public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131361921; // aapt resource value: 0x7f0a0082 public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131361922; // aapt resource value: 0x7f0a00c8 public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131361992; // aapt resource value: 0x7f0a001b public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131361819; // aapt resource value: 0x7f0a00c9 public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131361993; // aapt resource value: 0x7f0a0083 public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131361923; // aapt resource value: 0x7f0a003a public const int Base_Widget_AppCompat_EditText = 2131361850; // aapt resource value: 0x7f0a0084 public const int Base_Widget_AppCompat_ImageButton = 2131361924; // aapt resource value: 0x7f0a00ca public const int Base_Widget_AppCompat_Light_ActionBar = 2131361994; // aapt resource value: 0x7f0a00cb public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131361995; // aapt resource value: 0x7f0a00cc public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131361996; // aapt resource value: 0x7f0a0085 public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131361925; // aapt resource value: 0x7f0a0086 public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131361926; // aapt resource value: 0x7f0a0087 public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131361927; // aapt resource value: 0x7f0a0088 public const int Base_Widget_AppCompat_Light_PopupMenu = 2131361928; // aapt resource value: 0x7f0a0089 public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131361929; // aapt resource value: 0x7f0a008a public const int Base_Widget_AppCompat_ListPopupWindow = 2131361930; // aapt resource value: 0x7f0a008b public const int Base_Widget_AppCompat_ListView = 2131361931; // aapt resource value: 0x7f0a008c public const int Base_Widget_AppCompat_ListView_DropDown = 2131361932; // aapt resource value: 0x7f0a008d public const int Base_Widget_AppCompat_ListView_Menu = 2131361933; // aapt resource value: 0x7f0a008e public const int Base_Widget_AppCompat_PopupMenu = 2131361934; // aapt resource value: 0x7f0a008f public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131361935; // aapt resource value: 0x7f0a00cd public const int Base_Widget_AppCompat_PopupWindow = 2131361997; // aapt resource value: 0x7f0a0030 public const int Base_Widget_AppCompat_ProgressBar = 2131361840; // aapt resource value: 0x7f0a0031 public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131361841; // aapt resource value: 0x7f0a0090 public const int Base_Widget_AppCompat_RatingBar = 2131361936; // aapt resource value: 0x7f0a009f public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131361951; // aapt resource value: 0x7f0a00a0 public const int Base_Widget_AppCompat_RatingBar_Small = 2131361952; // aapt resource value: 0x7f0a00ce public const int Base_Widget_AppCompat_SearchView = 2131361998; // aapt resource value: 0x7f0a00cf public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131361999; // aapt resource value: 0x7f0a0091 public const int Base_Widget_AppCompat_SeekBar = 2131361937; // aapt resource value: 0x7f0a0092 public const int Base_Widget_AppCompat_Spinner = 2131361938; // aapt resource value: 0x7f0a001e public const int Base_Widget_AppCompat_Spinner_Underlined = 2131361822; // aapt resource value: 0x7f0a0093 public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131361939; // aapt resource value: 0x7f0a00d0 public const int Base_Widget_AppCompat_Toolbar = 2131362000; // aapt resource value: 0x7f0a0094 public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131361940; // aapt resource value: 0x7f0a015b public const int Base_Widget_Design_TabLayout = 2131362139; // aapt resource value: 0x7f0a0017 public const int CardView = 2131361815; // aapt resource value: 0x7f0a0019 public const int CardView_Dark = 2131361817; // aapt resource value: 0x7f0a001a public const int CardView_Light = 2131361818; // aapt resource value: 0x7f0a0172 public const int MainTheme = 2131362162; // aapt resource value: 0x7f0a0173 public const int MainTheme_Base = 2131362163; // aapt resource value: 0x7f0a0174 public const int MainTheme_Splash = 2131362164; // aapt resource value: 0x7f0a0032 public const int Platform_AppCompat = 2131361842; // aapt resource value: 0x7f0a0033 public const int Platform_AppCompat_Light = 2131361843; // aapt resource value: 0x7f0a0095 public const int Platform_ThemeOverlay_AppCompat = 2131361941; // aapt resource value: 0x7f0a0096 public const int Platform_ThemeOverlay_AppCompat_Dark = 2131361942; // aapt resource value: 0x7f0a0097 public const int Platform_ThemeOverlay_AppCompat_Light = 2131361943; // aapt resource value: 0x7f0a0034 public const int Platform_V11_AppCompat = 2131361844; // aapt resource value: 0x7f0a0035 public const int Platform_V11_AppCompat_Light = 2131361845; // aapt resource value: 0x7f0a003c public const int Platform_V14_AppCompat = 2131361852; // aapt resource value: 0x7f0a003d public const int Platform_V14_AppCompat_Light = 2131361853; // aapt resource value: 0x7f0a0036 public const int Platform_Widget_AppCompat_Spinner = 2131361846; // aapt resource value: 0x7f0a0043 public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131361859; // aapt resource value: 0x7f0a0044 public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131361860; // aapt resource value: 0x7f0a0045 public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131361861; // aapt resource value: 0x7f0a0046 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131361862; // aapt resource value: 0x7f0a0047 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131361863; // aapt resource value: 0x7f0a0048 public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131361864; // aapt resource value: 0x7f0a0049 public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131361865; // aapt resource value: 0x7f0a004a public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131361866; // aapt resource value: 0x7f0a004b public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131361867; // aapt resource value: 0x7f0a004c public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131361868; // aapt resource value: 0x7f0a004d public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131361869; // aapt resource value: 0x7f0a004e public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131361870; // aapt resource value: 0x7f0a004f public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131361871; // aapt resource value: 0x7f0a0050 public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131361872; // aapt resource value: 0x7f0a00d1 public const int TextAppearance_AppCompat = 2131362001; // aapt resource value: 0x7f0a00d2 public const int TextAppearance_AppCompat_Body1 = 2131362002; // aapt resource value: 0x7f0a00d3 public const int TextAppearance_AppCompat_Body2 = 2131362003; // aapt resource value: 0x7f0a00d4 public const int TextAppearance_AppCompat_Button = 2131362004; // aapt resource value: 0x7f0a00d5 public const int TextAppearance_AppCompat_Caption = 2131362005; // aapt resource value: 0x7f0a00d6 public const int TextAppearance_AppCompat_Display1 = 2131362006; // aapt resource value: 0x7f0a00d7 public const int TextAppearance_AppCompat_Display2 = 2131362007; // aapt resource value: 0x7f0a00d8 public const int TextAppearance_AppCompat_Display3 = 2131362008; // aapt resource value: 0x7f0a00d9 public const int TextAppearance_AppCompat_Display4 = 2131362009; // aapt resource value: 0x7f0a00da public const int TextAppearance_AppCompat_Headline = 2131362010; // aapt resource value: 0x7f0a00db public const int TextAppearance_AppCompat_Inverse = 2131362011; // aapt resource value: 0x7f0a00dc public const int TextAppearance_AppCompat_Large = 2131362012; // aapt resource value: 0x7f0a00dd public const int TextAppearance_AppCompat_Large_Inverse = 2131362013; // aapt resource value: 0x7f0a00de public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131362014; // aapt resource value: 0x7f0a00df public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131362015; // aapt resource value: 0x7f0a00e0 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131362016; // aapt resource value: 0x7f0a00e1 public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131362017; // aapt resource value: 0x7f0a00e2 public const int TextAppearance_AppCompat_Medium = 2131362018; // aapt resource value: 0x7f0a00e3 public const int TextAppearance_AppCompat_Medium_Inverse = 2131362019; // aapt resource value: 0x7f0a00e4 public const int TextAppearance_AppCompat_Menu = 2131362020; // aapt resource value: 0x7f0a00e5 public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131362021; // aapt resource value: 0x7f0a00e6 public const int TextAppearance_AppCompat_SearchResult_Title = 2131362022; // aapt resource value: 0x7f0a00e7 public const int TextAppearance_AppCompat_Small = 2131362023; // aapt resource value: 0x7f0a00e8 public const int TextAppearance_AppCompat_Small_Inverse = 2131362024; // aapt resource value: 0x7f0a00e9 public const int TextAppearance_AppCompat_Subhead = 2131362025; // aapt resource value: 0x7f0a00ea public const int TextAppearance_AppCompat_Subhead_Inverse = 2131362026; // aapt resource value: 0x7f0a00eb public const int TextAppearance_AppCompat_Title = 2131362027; // aapt resource value: 0x7f0a00ec public const int TextAppearance_AppCompat_Title_Inverse = 2131362028; // aapt resource value: 0x7f0a00ed public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131362029; // aapt resource value: 0x7f0a00ee public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131362030; // aapt resource value: 0x7f0a00ef public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131362031; // aapt resource value: 0x7f0a00f0 public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131362032; // aapt resource value: 0x7f0a00f1 public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131362033; // aapt resource value: 0x7f0a00f2 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131362034; // aapt resource value: 0x7f0a00f3 public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131362035; // aapt resource value: 0x7f0a00f4 public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131362036; // aapt resource value: 0x7f0a00f5 public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131362037; // aapt resource value: 0x7f0a00f6 public const int TextAppearance_AppCompat_Widget_Button = 2131362038; // aapt resource value: 0x7f0a00f7 public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131362039; // aapt resource value: 0x7f0a00f8 public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131362040; // aapt resource value: 0x7f0a00f9 public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131362041; // aapt resource value: 0x7f0a00fa public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131362042; // aapt resource value: 0x7f0a00fb public const int TextAppearance_AppCompat_Widget_Switch = 2131362043; // aapt resource value: 0x7f0a00fc public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131362044; // aapt resource value: 0x7f0a015c public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131362140; // aapt resource value: 0x7f0a015d public const int TextAppearance_Design_Counter = 2131362141; // aapt resource value: 0x7f0a015e public const int TextAppearance_Design_Counter_Overflow = 2131362142; // aapt resource value: 0x7f0a015f public const int TextAppearance_Design_Error = 2131362143; // aapt resource value: 0x7f0a0160 public const int TextAppearance_Design_Hint = 2131362144; // aapt resource value: 0x7f0a0161 public const int TextAppearance_Design_Snackbar_Message = 2131362145; // aapt resource value: 0x7f0a0162 public const int TextAppearance_Design_Tab = 2131362146; // aapt resource value: 0x7f0a003e public const int TextAppearance_StatusBar_EventContent = 2131361854; // aapt resource value: 0x7f0a003f public const int TextAppearance_StatusBar_EventContent_Info = 2131361855; // aapt resource value: 0x7f0a0040 public const int TextAppearance_StatusBar_EventContent_Line2 = 2131361856; // aapt resource value: 0x7f0a0041 public const int TextAppearance_StatusBar_EventContent_Time = 2131361857; // aapt resource value: 0x7f0a0042 public const int TextAppearance_StatusBar_EventContent_Title = 2131361858; // aapt resource value: 0x7f0a00fd public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131362045; // aapt resource value: 0x7f0a00fe public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131362046; // aapt resource value: 0x7f0a00ff public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131362047; // aapt resource value: 0x7f0a0100 public const int Theme_AppCompat = 2131362048; // aapt resource value: 0x7f0a0101 public const int Theme_AppCompat_CompactMenu = 2131362049; // aapt resource value: 0x7f0a001f public const int Theme_AppCompat_DayNight = 2131361823; // aapt resource value: 0x7f0a0020 public const int Theme_AppCompat_DayNight_DarkActionBar = 2131361824; // aapt resource value: 0x7f0a0021 public const int Theme_AppCompat_DayNight_Dialog = 2131361825; // aapt resource value: 0x7f0a0022 public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131361826; // aapt resource value: 0x7f0a0023 public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131361827; // aapt resource value: 0x7f0a0024 public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131361828; // aapt resource value: 0x7f0a0025 public const int Theme_AppCompat_DayNight_NoActionBar = 2131361829; // aapt resource value: 0x7f0a0102 public const int Theme_AppCompat_Dialog = 2131362050; // aapt resource value: 0x7f0a0103 public const int Theme_AppCompat_Dialog_Alert = 2131362051; // aapt resource value: 0x7f0a0104 public const int Theme_AppCompat_Dialog_MinWidth = 2131362052; // aapt resource value: 0x7f0a0105 public const int Theme_AppCompat_DialogWhenLarge = 2131362053; // aapt resource value: 0x7f0a0106 public const int Theme_AppCompat_Light = 2131362054; // aapt resource value: 0x7f0a0107 public const int Theme_AppCompat_Light_DarkActionBar = 2131362055; // aapt resource value: 0x7f0a0108 public const int Theme_AppCompat_Light_Dialog = 2131362056; // aapt resource value: 0x7f0a0109 public const int Theme_AppCompat_Light_Dialog_Alert = 2131362057; // aapt resource value: 0x7f0a010a public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131362058; // aapt resource value: 0x7f0a010b public const int Theme_AppCompat_Light_DialogWhenLarge = 2131362059; // aapt resource value: 0x7f0a010c public const int Theme_AppCompat_Light_NoActionBar = 2131362060; // aapt resource value: 0x7f0a010d public const int Theme_AppCompat_NoActionBar = 2131362061; // aapt resource value: 0x7f0a0163 public const int Theme_Design = 2131362147; // aapt resource value: 0x7f0a0164 public const int Theme_Design_BottomSheetDialog = 2131362148; // aapt resource value: 0x7f0a0165 public const int Theme_Design_Light = 2131362149; // aapt resource value: 0x7f0a0166 public const int Theme_Design_Light_BottomSheetDialog = 2131362150; // aapt resource value: 0x7f0a0167 public const int Theme_Design_Light_NoActionBar = 2131362151; // aapt resource value: 0x7f0a0168 public const int Theme_Design_NoActionBar = 2131362152; // aapt resource value: 0x7f0a0000 public const int Theme_MediaRouter = 2131361792; // aapt resource value: 0x7f0a0001 public const int Theme_MediaRouter_Light = 2131361793; // aapt resource value: 0x7f0a0002 public const int Theme_MediaRouter_Light_DarkControlPanel = 2131361794; // aapt resource value: 0x7f0a0003 public const int Theme_MediaRouter_LightControlPanel = 2131361795; // aapt resource value: 0x7f0a010e public const int ThemeOverlay_AppCompat = 2131362062; // aapt resource value: 0x7f0a010f public const int ThemeOverlay_AppCompat_ActionBar = 2131362063; // aapt resource value: 0x7f0a0110 public const int ThemeOverlay_AppCompat_Dark = 2131362064; // aapt resource value: 0x7f0a0111 public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131362065; // aapt resource value: 0x7f0a0112 public const int ThemeOverlay_AppCompat_Light = 2131362066; // aapt resource value: 0x7f0a0113 public const int Widget_AppCompat_ActionBar = 2131362067; // aapt resource value: 0x7f0a0114 public const int Widget_AppCompat_ActionBar_Solid = 2131362068; // aapt resource value: 0x7f0a0115 public const int Widget_AppCompat_ActionBar_TabBar = 2131362069; // aapt resource value: 0x7f0a0116 public const int Widget_AppCompat_ActionBar_TabText = 2131362070; // aapt resource value: 0x7f0a0117 public const int Widget_AppCompat_ActionBar_TabView = 2131362071; // aapt resource value: 0x7f0a0118 public const int Widget_AppCompat_ActionButton = 2131362072; // aapt resource value: 0x7f0a0119 public const int Widget_AppCompat_ActionButton_CloseMode = 2131362073; // aapt resource value: 0x7f0a011a public const int Widget_AppCompat_ActionButton_Overflow = 2131362074; // aapt resource value: 0x7f0a011b public const int Widget_AppCompat_ActionMode = 2131362075; // aapt resource value: 0x7f0a011c public const int Widget_AppCompat_ActivityChooserView = 2131362076; // aapt resource value: 0x7f0a011d public const int Widget_AppCompat_AutoCompleteTextView = 2131362077; // aapt resource value: 0x7f0a011e public const int Widget_AppCompat_Button = 2131362078; // aapt resource value: 0x7f0a011f public const int Widget_AppCompat_Button_Borderless = 2131362079; // aapt resource value: 0x7f0a0120 public const int Widget_AppCompat_Button_Borderless_Colored = 2131362080; // aapt resource value: 0x7f0a0121 public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131362081; // aapt resource value: 0x7f0a0122 public const int Widget_AppCompat_Button_Colored = 2131362082; // aapt resource value: 0x7f0a0123 public const int Widget_AppCompat_Button_Small = 2131362083; // aapt resource value: 0x7f0a0124 public const int Widget_AppCompat_ButtonBar = 2131362084; // aapt resource value: 0x7f0a0125 public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131362085; // aapt resource value: 0x7f0a0126 public const int Widget_AppCompat_CompoundButton_CheckBox = 2131362086; // aapt resource value: 0x7f0a0127 public const int Widget_AppCompat_CompoundButton_RadioButton = 2131362087; // aapt resource value: 0x7f0a0128 public const int Widget_AppCompat_CompoundButton_Switch = 2131362088; // aapt resource value: 0x7f0a0129 public const int Widget_AppCompat_DrawerArrowToggle = 2131362089; // aapt resource value: 0x7f0a012a public const int Widget_AppCompat_DropDownItem_Spinner = 2131362090; // aapt resource value: 0x7f0a012b public const int Widget_AppCompat_EditText = 2131362091; // aapt resource value: 0x7f0a012c public const int Widget_AppCompat_ImageButton = 2131362092; // aapt resource value: 0x7f0a012d public const int Widget_AppCompat_Light_ActionBar = 2131362093; // aapt resource value: 0x7f0a012e public const int Widget_AppCompat_Light_ActionBar_Solid = 2131362094; // aapt resource value: 0x7f0a012f public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131362095; // aapt resource value: 0x7f0a0130 public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131362096; // aapt resource value: 0x7f0a0131 public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131362097; // aapt resource value: 0x7f0a0132 public const int Widget_AppCompat_Light_ActionBar_TabText = 2131362098; // aapt resource value: 0x7f0a0133 public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131362099; // aapt resource value: 0x7f0a0134 public const int Widget_AppCompat_Light_ActionBar_TabView = 2131362100; // aapt resource value: 0x7f0a0135 public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131362101; // aapt resource value: 0x7f0a0136 public const int Widget_AppCompat_Light_ActionButton = 2131362102; // aapt resource value: 0x7f0a0137 public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131362103; // aapt resource value: 0x7f0a0138 public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131362104; // aapt resource value: 0x7f0a0139 public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131362105; // aapt resource value: 0x7f0a013a public const int Widget_AppCompat_Light_ActivityChooserView = 2131362106; // aapt resource value: 0x7f0a013b public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131362107; // aapt resource value: 0x7f0a013c public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131362108; // aapt resource value: 0x7f0a013d public const int Widget_AppCompat_Light_ListPopupWindow = 2131362109; // aapt resource value: 0x7f0a013e public const int Widget_AppCompat_Light_ListView_DropDown = 2131362110; // aapt resource value: 0x7f0a013f public const int Widget_AppCompat_Light_PopupMenu = 2131362111; // aapt resource value: 0x7f0a0140 public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131362112; // aapt resource value: 0x7f0a0141 public const int Widget_AppCompat_Light_SearchView = 2131362113; // aapt resource value: 0x7f0a0142 public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131362114; // aapt resource value: 0x7f0a0143 public const int Widget_AppCompat_ListPopupWindow = 2131362115; // aapt resource value: 0x7f0a0144 public const int Widget_AppCompat_ListView = 2131362116; // aapt resource value: 0x7f0a0145 public const int Widget_AppCompat_ListView_DropDown = 2131362117; // aapt resource value: 0x7f0a0146 public const int Widget_AppCompat_ListView_Menu = 2131362118; // aapt resource value: 0x7f0a0147 public const int Widget_AppCompat_PopupMenu = 2131362119; // aapt resource value: 0x7f0a0148 public const int Widget_AppCompat_PopupMenu_Overflow = 2131362120; // aapt resource value: 0x7f0a0149 public const int Widget_AppCompat_PopupWindow = 2131362121; // aapt resource value: 0x7f0a014a public const int Widget_AppCompat_ProgressBar = 2131362122; // aapt resource value: 0x7f0a014b public const int Widget_AppCompat_ProgressBar_Horizontal = 2131362123; // aapt resource value: 0x7f0a014c public const int Widget_AppCompat_RatingBar = 2131362124; // aapt resource value: 0x7f0a014d public const int Widget_AppCompat_RatingBar_Indicator = 2131362125; // aapt resource value: 0x7f0a014e public const int Widget_AppCompat_RatingBar_Small = 2131362126; // aapt resource value: 0x7f0a014f public const int Widget_AppCompat_SearchView = 2131362127; // aapt resource value: 0x7f0a0150 public const int Widget_AppCompat_SearchView_ActionBar = 2131362128; // aapt resource value: 0x7f0a0151 public const int Widget_AppCompat_SeekBar = 2131362129; // aapt resource value: 0x7f0a0152 public const int Widget_AppCompat_Spinner = 2131362130; // aapt resource value: 0x7f0a0153 public const int Widget_AppCompat_Spinner_DropDown = 2131362131; // aapt resource value: 0x7f0a0154 public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131362132; // aapt resource value: 0x7f0a0155 public const int Widget_AppCompat_Spinner_Underlined = 2131362133; // aapt resource value: 0x7f0a0156 public const int Widget_AppCompat_TextView_SpinnerItem = 2131362134; // aapt resource value: 0x7f0a0157 public const int Widget_AppCompat_Toolbar = 2131362135; // aapt resource value: 0x7f0a0158 public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131362136; // aapt resource value: 0x7f0a0169 public const int Widget_Design_AppBarLayout = 2131362153; // aapt resource value: 0x7f0a016a public const int Widget_Design_BottomSheet_Modal = 2131362154; // aapt resource value: 0x7f0a016b public const int Widget_Design_CollapsingToolbar = 2131362155; // aapt resource value: 0x7f0a016c public const int Widget_Design_CoordinatorLayout = 2131362156; // aapt resource value: 0x7f0a016d public const int Widget_Design_FloatingActionButton = 2131362157; // aapt resource value: 0x7f0a016e public const int Widget_Design_NavigationView = 2131362158; // aapt resource value: 0x7f0a016f public const int Widget_Design_ScrimInsetsFrameLayout = 2131362159; // aapt resource value: 0x7f0a0170 public const int Widget_Design_Snackbar = 2131362160; // aapt resource value: 0x7f0a0159 public const int Widget_Design_TabLayout = 2131362137; // aapt resource value: 0x7f0a0171 public const int Widget_Design_TextInputLayout = 2131362161; // aapt resource value: 0x7f0a0004 public const int Widget_MediaRouter_ChooserText = 2131361796; // aapt resource value: 0x7f0a0005 public const int Widget_MediaRouter_ChooserText_Primary = 2131361797; // aapt resource value: 0x7f0a0006 public const int Widget_MediaRouter_ChooserText_Primary_Dark = 2131361798; // aapt resource value: 0x7f0a0007 public const int Widget_MediaRouter_ChooserText_Primary_Light = 2131361799; // aapt resource value: 0x7f0a0008 public const int Widget_MediaRouter_ChooserText_Secondary = 2131361800; // aapt resource value: 0x7f0a0009 public const int Widget_MediaRouter_ChooserText_Secondary_Dark = 2131361801; // aapt resource value: 0x7f0a000a public const int Widget_MediaRouter_ChooserText_Secondary_Light = 2131361802; // aapt resource value: 0x7f0a000b public const int Widget_MediaRouter_ControllerText = 2131361803; // aapt resource value: 0x7f0a000c public const int Widget_MediaRouter_ControllerText_Primary = 2131361804; // aapt resource value: 0x7f0a000d public const int Widget_MediaRouter_ControllerText_Primary_Dark = 2131361805; // aapt resource value: 0x7f0a000e public const int Widget_MediaRouter_ControllerText_Primary_Light = 2131361806; // aapt resource value: 0x7f0a000f public const int Widget_MediaRouter_ControllerText_Secondary = 2131361807; // aapt resource value: 0x7f0a0010 public const int Widget_MediaRouter_ControllerText_Secondary_Dark = 2131361808; // aapt resource value: 0x7f0a0011 public const int Widget_MediaRouter_ControllerText_Secondary_Light = 2131361809; // aapt resource value: 0x7f0a0012 public const int Widget_MediaRouter_ControllerText_Title = 2131361810; // aapt resource value: 0x7f0a0013 public const int Widget_MediaRouter_ControllerText_Title_Dark = 2131361811; // aapt resource value: 0x7f0a0014 public const int Widget_MediaRouter_ControllerText_Title_Light = 2131361812; // aapt resource value: 0x7f0a0015 public const int Widget_MediaRouter_Light_MediaRouteButton = 2131361813; // aapt resource value: 0x7f0a0016 public const int Widget_MediaRouter_MediaRouteButton = 2131361814; static Style() { global::Android.Runtime.ResourceIdManager.UpdateIdValues(); } private Style() { } } public partial class Styleable { public static int[] ActionBar = new int[] { 2130772007, 2130772009, 2130772010, 2130772011, 2130772012, 2130772013, 2130772014, 2130772015, 2130772016, 2130772017, 2130772018, 2130772019, 2130772020, 2130772021, 2130772022, 2130772023, 2130772024, 2130772025, 2130772026, 2130772027, 2130772028, 2130772029, 2130772030, 2130772031, 2130772032, 2130772033, 2130772090}; // 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: 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: 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: 24 public const int ActionBar_elevation = 24; // aapt resource value: 0 public const int ActionBar_height = 0; // aapt resource value: 19 public const int ActionBar_hideOnContentScroll = 19; // aapt resource value: 26 public const int ActionBar_homeAsUpIndicator = 26; // 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: 25 public const int ActionBar_popupTheme = 25; // 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[] { 2130772007, 2130772013, 2130772014, 2130772018, 2130772020, 2130772034}; // 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[] { 2130772035, 2130772036}; // 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, 2130772037, 2130772038, 2130772039, 2130772040, 2130772041}; // 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: 4 public const int AlertDialog_singleChoiceItemLayout = 4; public static int[] AppBarLayout = new int[] { 16842964, 2130772032, 2130772215}; // 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[] AppBarLayout_LayoutParams = new int[] { 2130772216, 2130772217}; // aapt resource value: 0 public const int AppBarLayout_LayoutParams_layout_scrollFlags = 0; // aapt resource value: 1 public const int AppBarLayout_LayoutParams_layout_scrollInterpolator = 1; public static int[] AppCompatImageView = new int[] { 16843033, 2130772042}; // aapt resource value: 0 public const int AppCompatImageView_android_src = 0; // aapt resource value: 1 public const int AppCompatImageView_srcCompat = 1; public static int[] AppCompatTextView = new int[] { 16842804, 2130772043}; // 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, 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}; // 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: 49 public const int AppCompatTheme_actionButtonStyle = 49; // aapt resource value: 45 public const int AppCompatTheme_actionDropDownStyle = 45; // 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: 57 public const int AppCompatTheme_activityChooserViewStyle = 57; // aapt resource value: 92 public const int AppCompatTheme_alertDialogButtonGroupStyle = 92; // aapt resource value: 93 public const int AppCompatTheme_alertDialogCenterButtons = 93; // aapt resource value: 91 public const int AppCompatTheme_alertDialogStyle = 91; // aapt resource value: 94 public const int AppCompatTheme_alertDialogTheme = 94; // 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: 99 public const int AppCompatTheme_autoCompleteTextViewStyle = 99; // aapt resource value: 54 public const int AppCompatTheme_borderlessButtonStyle = 54; // aapt resource value: 51 public const int AppCompatTheme_buttonBarButtonStyle = 51; // aapt resource value: 97 public const int AppCompatTheme_buttonBarNegativeButtonStyle = 97; // aapt resource value: 98 public const int AppCompatTheme_buttonBarNeutralButtonStyle = 98; // aapt resource value: 96 public const int AppCompatTheme_buttonBarPositiveButtonStyle = 96; // aapt resource value: 50 public const int AppCompatTheme_buttonBarStyle = 50; // aapt resource value: 100 public const int AppCompatTheme_buttonStyle = 100; // aapt resource value: 101 public const int AppCompatTheme_buttonStyleSmall = 101; // aapt resource value: 102 public const int AppCompatTheme_checkboxStyle = 102; // aapt resource value: 103 public const int AppCompatTheme_checkedTextViewStyle = 103; // aapt resource value: 84 public const int AppCompatTheme_colorAccent = 84; // aapt resource value: 88 public const int AppCompatTheme_colorButtonNormal = 88; // aapt resource value: 86 public const int AppCompatTheme_colorControlActivated = 86; // aapt resource value: 87 public const int AppCompatTheme_colorControlHighlight = 87; // aapt resource value: 85 public const int AppCompatTheme_colorControlNormal = 85; // aapt resource value: 82 public const int AppCompatTheme_colorPrimary = 82; // aapt resource value: 83 public const int AppCompatTheme_colorPrimaryDark = 83; // aapt resource value: 89 public const int AppCompatTheme_colorSwitchThumbNormal = 89; // aapt resource value: 90 public const int AppCompatTheme_controlBackground = 90; // aapt resource value: 43 public const int AppCompatTheme_dialogPreferredPadding = 43; // aapt resource value: 42 public const int AppCompatTheme_dialogTheme = 42; // aapt resource value: 56 public const int AppCompatTheme_dividerHorizontal = 56; // aapt resource value: 55 public const int AppCompatTheme_dividerVertical = 55; // aapt resource value: 74 public const int AppCompatTheme_dropDownListViewStyle = 74; // aapt resource value: 46 public const int AppCompatTheme_dropdownListPreferredItemHeight = 46; // aapt resource value: 63 public const int AppCompatTheme_editTextBackground = 63; // aapt resource value: 62 public const int AppCompatTheme_editTextColor = 62; // aapt resource value: 104 public const int AppCompatTheme_editTextStyle = 104; // aapt resource value: 48 public const int AppCompatTheme_homeAsUpIndicator = 48; // aapt resource value: 64 public const int AppCompatTheme_imageButtonStyle = 64; // aapt resource value: 81 public const int AppCompatTheme_listChoiceBackgroundIndicator = 81; // aapt resource value: 44 public const int AppCompatTheme_listDividerAlertDialog = 44; // aapt resource value: 75 public const int AppCompatTheme_listPopupWindowStyle = 75; // aapt resource value: 69 public const int AppCompatTheme_listPreferredItemHeight = 69; // aapt resource value: 71 public const int AppCompatTheme_listPreferredItemHeightLarge = 71; // aapt resource value: 70 public const int AppCompatTheme_listPreferredItemHeightSmall = 70; // aapt resource value: 72 public const int AppCompatTheme_listPreferredItemPaddingLeft = 72; // aapt resource value: 73 public const int AppCompatTheme_listPreferredItemPaddingRight = 73; // aapt resource value: 78 public const int AppCompatTheme_panelBackground = 78; // aapt resource value: 80 public const int AppCompatTheme_panelMenuListTheme = 80; // aapt resource value: 79 public const int AppCompatTheme_panelMenuListWidth = 79; // aapt resource value: 60 public const int AppCompatTheme_popupMenuStyle = 60; // aapt resource value: 61 public const int AppCompatTheme_popupWindowStyle = 61; // aapt resource value: 105 public const int AppCompatTheme_radioButtonStyle = 105; // aapt resource value: 106 public const int AppCompatTheme_ratingBarStyle = 106; // aapt resource value: 107 public const int AppCompatTheme_ratingBarStyleIndicator = 107; // aapt resource value: 108 public const int AppCompatTheme_ratingBarStyleSmall = 108; // aapt resource value: 68 public const int AppCompatTheme_searchViewStyle = 68; // aapt resource value: 109 public const int AppCompatTheme_seekBarStyle = 109; // aapt resource value: 52 public const int AppCompatTheme_selectableItemBackground = 52; // aapt resource value: 53 public const int AppCompatTheme_selectableItemBackgroundBorderless = 53; // aapt resource value: 47 public const int AppCompatTheme_spinnerDropDownItemStyle = 47; // aapt resource value: 110 public const int AppCompatTheme_spinnerStyle = 110; // aapt resource value: 111 public const int AppCompatTheme_switchStyle = 111; // aapt resource value: 40 public const int AppCompatTheme_textAppearanceLargePopupMenu = 40; // aapt resource value: 76 public const int AppCompatTheme_textAppearanceListItem = 76; // aapt resource value: 77 public const int AppCompatTheme_textAppearanceListItemSmall = 77; // aapt resource value: 66 public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 66; // aapt resource value: 65 public const int AppCompatTheme_textAppearanceSearchResultTitle = 65; // aapt resource value: 41 public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41; // aapt resource value: 95 public const int AppCompatTheme_textColorAlertDialogListItem = 95; // aapt resource value: 67 public const int AppCompatTheme_textColorSearchUrl = 67; // aapt resource value: 59 public const int AppCompatTheme_toolbarNavigationButtonStyle = 59; // aapt resource value: 58 public const int AppCompatTheme_toolbarStyle = 58; // 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[] BottomSheetBehavior_Params = new int[] { 2130772218, 2130772219}; // aapt resource value: 1 public const int BottomSheetBehavior_Params_behavior_hideable = 1; // aapt resource value: 0 public const int BottomSheetBehavior_Params_behavior_peekHeight = 0; public static int[] ButtonBarLayout = new int[] { 2130772154}; // aapt resource value: 0 public const int ButtonBarLayout_allowStacking = 0; public static int[] CardView = new int[] { 16843071, 16843072, 2130771995, 2130771996, 2130771997, 2130771998, 2130771999, 2130772000, 2130772001, 2130772002, 2130772003, 2130772004, 2130772005}; // 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[] CollapsingAppBarLayout_LayoutParams = new int[] { 2130772220, 2130772221}; // aapt resource value: 0 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseMode = 0; // aapt resource value: 1 public const int CollapsingAppBarLayout_LayoutParams_layout_collapseParallaxMultiplier = 1; public static int[] CollapsingToolbarLayout = new int[] { 2130772009, 2130772222, 2130772223, 2130772224, 2130772225, 2130772226, 2130772227, 2130772228, 2130772229, 2130772230, 2130772231, 2130772232, 2130772233, 2130772234}; // aapt resource value: 11 public const int CollapsingToolbarLayout_collapsedTitleGravity = 11; // aapt resource value: 7 public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7; // aapt resource value: 8 public const int CollapsingToolbarLayout_contentScrim = 8; // aapt resource value: 12 public const int CollapsingToolbarLayout_expandedTitleGravity = 12; // 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: 9 public const int CollapsingToolbarLayout_statusBarScrim = 9; // aapt resource value: 0 public const int CollapsingToolbarLayout_title = 0; // aapt resource value: 13 public const int CollapsingToolbarLayout_titleEnabled = 13; // aapt resource value: 10 public const int CollapsingToolbarLayout_toolbarId = 10; public static int[] CompoundButton = new int[] { 16843015, 2130772155, 2130772156}; // 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[] { 2130772235, 2130772236}; // aapt resource value: 0 public const int CoordinatorLayout_keylines = 0; // aapt resource value: 1 public const int CoordinatorLayout_statusBarBackground = 1; public static int[] CoordinatorLayout_LayoutParams = new int[] { 16842931, 2130772237, 2130772238, 2130772239, 2130772240}; // aapt resource value: 0 public const int CoordinatorLayout_LayoutParams_android_layout_gravity = 0; // aapt resource value: 2 public const int CoordinatorLayout_LayoutParams_layout_anchor = 2; // aapt resource value: 4 public const int CoordinatorLayout_LayoutParams_layout_anchorGravity = 4; // aapt resource value: 1 public const int CoordinatorLayout_LayoutParams_layout_behavior = 1; // aapt resource value: 3 public const int CoordinatorLayout_LayoutParams_layout_keyline = 3; public static int[] DesignTheme = new int[] { 2130772241, 2130772242, 2130772243}; // 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[] { 2130772157, 2130772158, 2130772159, 2130772160, 2130772161, 2130772162, 2130772163, 2130772164}; // 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[] { 2130772032, 2130772213, 2130772214, 2130772244, 2130772245, 2130772246, 2130772247, 2130772248}; // 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[] ForegroundLinearLayout = new int[] { 16843017, 16843264, 2130772249}; // 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, 2130772017, 2130772165, 2130772166, 2130772167}; // 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, 2130771994}; // 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: 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, 2130772168, 2130772169, 2130772170, 2130772171}; // 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, 2130772172}; // 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; public static int[] NavigationView = new int[] { 16842964, 16842973, 16843039, 2130772032, 2130772250, 2130772251, 2130772252, 2130772253, 2130772254, 2130772255}; // 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, 2130772173}; // aapt resource value: 0 public const int PopupWindow_android_popupBackground = 0; // aapt resource value: 1 public const int PopupWindow_overlapAnchor = 1; public static int[] PopupWindowBackgroundState = new int[] { 2130772174}; // aapt resource value: 0 public const int PopupWindowBackgroundState_state_above_anchor = 0; public static int[] RecyclerView = new int[] { 16842948, 2130771968, 2130771969, 2130771970, 2130771971}; // aapt resource value: 0 public const int RecyclerView_android_orientation = 0; // aapt resource value: 1 public const int RecyclerView_layoutManager = 1; // aapt resource value: 3 public const int RecyclerView_reverseLayout = 3; // aapt resource value: 2 public const int RecyclerView_spanCount = 2; // aapt resource value: 4 public const int RecyclerView_stackFromEnd = 4; public static int[] ScrimInsetsFrameLayout = new int[] { 2130772256}; // aapt resource value: 0 public const int ScrimInsetsFrameLayout_insetForeground = 0; public static int[] ScrollingViewBehavior_Params = new int[] { 2130772257}; // aapt resource value: 0 public const int ScrollingViewBehavior_Params_behavior_overlapTop = 0; public static int[] SearchView = new int[] { 16842970, 16843039, 16843296, 16843364, 2130772175, 2130772176, 2130772177, 2130772178, 2130772179, 2130772180, 2130772181, 2130772182, 2130772183, 2130772184, 2130772185, 2130772186, 2130772187}; // 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, 2130772032, 2130772258}; // 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, 2130772033}; // 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, 2130772188, 2130772189, 2130772190, 2130772191, 2130772192, 2130772193, 2130772194}; // 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: 9 public const int SwitchCompat_showText = 9; // aapt resource value: 8 public const int SwitchCompat_splitTrack = 8; // aapt resource value: 6 public const int SwitchCompat_switchMinWidth = 6; // aapt resource value: 7 public const int SwitchCompat_switchPadding = 7; // aapt resource value: 5 public const int SwitchCompat_switchTextAppearance = 5; // aapt resource value: 4 public const int SwitchCompat_thumbTextPadding = 4; // aapt resource value: 3 public const int SwitchCompat_track = 3; 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[] { 2130772259, 2130772260, 2130772261, 2130772262, 2130772263, 2130772264, 2130772265, 2130772266, 2130772267, 2130772268, 2130772269, 2130772270, 2130772271, 2130772272, 2130772273, 2130772274}; // 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, 16843105, 16843106, 16843107, 16843108, 2130772043}; // aapt resource value: 4 public const int TextAppearance_android_shadowColor = 4; // aapt resource value: 5 public const int TextAppearance_android_shadowDx = 5; // aapt resource value: 6 public const int TextAppearance_android_shadowDy = 6; // aapt resource value: 7 public const int TextAppearance_android_shadowRadius = 7; // aapt resource value: 3 public const int TextAppearance_android_textColor = 3; // 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: 8 public const int TextAppearance_textAllCaps = 8; public static int[] TextInputLayout = new int[] { 16842906, 16843088, 2130772275, 2130772276, 2130772277, 2130772278, 2130772279, 2130772280, 2130772281, 2130772282, 2130772283}; // 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; public static int[] Toolbar = new int[] { 16842927, 16843072, 2130772009, 2130772012, 2130772016, 2130772028, 2130772029, 2130772030, 2130772031, 2130772033, 2130772195, 2130772196, 2130772197, 2130772198, 2130772199, 2130772200, 2130772201, 2130772202, 2130772203, 2130772204, 2130772205, 2130772206, 2130772207, 2130772208, 2130772209}; // 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: 19 public const int Toolbar_collapseContentDescription = 19; // aapt resource value: 18 public const int Toolbar_collapseIcon = 18; // aapt resource value: 6 public const int Toolbar_contentInsetEnd = 6; // 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: 4 public const int Toolbar_logo = 4; // aapt resource value: 22 public const int Toolbar_logoDescription = 22; // aapt resource value: 17 public const int Toolbar_maxButtonHeight = 17; // aapt resource value: 21 public const int Toolbar_navigationContentDescription = 21; // aapt resource value: 20 public const int Toolbar_navigationIcon = 20; // aapt resource value: 9 public const int Toolbar_popupTheme = 9; // aapt resource value: 3 public const int Toolbar_subtitle = 3; // aapt resource value: 11 public const int Toolbar_subtitleTextAppearance = 11; // aapt resource value: 24 public const int Toolbar_subtitleTextColor = 24; // aapt resource value: 2 public const int Toolbar_title = 2; // aapt resource value: 16 public const int Toolbar_titleMarginBottom = 16; // aapt resource value: 14 public const int Toolbar_titleMarginEnd = 14; // aapt resource value: 13 public const int Toolbar_titleMarginStart = 13; // aapt resource value: 15 public const int Toolbar_titleMarginTop = 15; // aapt resource value: 12 public const int Toolbar_titleMargins = 12; // aapt resource value: 10 public const int Toolbar_titleTextAppearance = 10; // aapt resource value: 23 public const int Toolbar_titleTextColor = 23; public static int[] View = new int[] { 16842752, 16842970, 2130772210, 2130772211, 2130772212}; // 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, 2130772213, 2130772214}; // 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.640262
136
0.730834
[ "MIT" ]
matiasdieguez/bonos-independiente
src/BonosCaiApp/BonosCaiApp.Android/Resources/Resource.Designer.cs
188,138
C#
using Microservices.Demo.Core.Commands; namespace Microservices.Demo.ProductService.Messaging.Commands { public class GetProductsCommand : ICommand { public string Token { get; set; } public string ConnectionId { get; set; } } }
23.545455
62
0.698842
[ "MIT" ]
MarioEspositoStabia/microservices-demo
src/Microservices.Demo.ProductService.Messaging/Commands/GetProductsCommand.cs
261
C#
using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using JetBrains.ReSharper.Plugins.FSharp.Psi.Tree; namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Util { public static class FSharpPatternUtil { [ItemNotNull] public static IEnumerable<IFSharpPattern> GetPartialDeclarations([NotNull] this IFSharpPattern fsPattern) { if (!(fsPattern is IReferencePat refPat)) return new[] { fsPattern }; var canBePartial = false; while (fsPattern.Parent is IFSharpPattern parent) { fsPattern = parent; if (parent is IOrPat || parent is IAndsPat) canBePartial = true; } if (!canBePartial) return new[] { refPat }; return fsPattern.NestedPatterns.Where(pattern => pattern is IReferencePat nestedRefPat && nestedRefPat.SourceName == refPat.SourceName && pattern.IsDeclaration); } [CanBeNull] public static IBindingLikeDeclaration GetBinding([CanBeNull] this IFSharpPattern pat, bool allowFromParameters, out bool isFromParameter) { isFromParameter = false; if (pat == null) return null; var node = pat.Parent; while (node != null) { switch (node) { case IFSharpPattern _: node = node.Parent; break; case IParametersPatternDeclaration _ when allowFromParameters: node = node.Parent; isFromParameter = true; break; case IBindingLikeDeclaration binding: return binding; default: return null; } } return null; } [CanBeNull] public static IBindingLikeDeclaration GetBindingFromHeadPattern([CanBeNull] this IFSharpPattern pat) => GetBinding(pat, false, out _); } }
26.57971
120
0.637405
[ "Apache-2.0" ]
JetBrains/fsharp-support
ReSharper.FSharp/src/FSharp.Psi/src/Util/FSharpPatternUtil.cs
1,836
C#
/* Yet Another Forum.NET * Copyright (C) 2003-2005 Bjørnar Henden * Copyright (C) 2006-2013 Jaben Cargman * Copyright (C) 2014-2020 Ingo Herbote * https://www.yetanotherforum.net/ * * 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 * https://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace YAF.Core.Extensions { using System.Web.UI; using ServiceStack; using YAF.Core; using YAF.Core.BaseControls; using YAF.Core.Context; using YAF.Types; using YAF.Types.Extensions; using YAF.Types.Interfaces; /// <summary> /// The localization support extensions. /// </summary> public static class LocalizationSupportExtensions { #region Public Methods /// <summary> /// Localizes the specified support item. /// </summary> /// <param name="supportItem">The support Item.</param> /// <param name="currentControl">The current Control.</param> /// <returns> /// The get current item. /// </returns> public static string Localize([NotNull] this ILocalizationSupport supportItem, [NotNull] Control currentControl) { CodeContracts.VerifyNotNull(supportItem, "supportItem"); CodeContracts.VerifyNotNull(currentControl, "currentControl"); if (currentControl.Site != null && currentControl.Site.DesignMode) { return $"[PAGE:{supportItem.LocalizedPage}|TAG:{supportItem.LocalizedTag}]"; } if (supportItem.LocalizedPage.IsSet() && supportItem.LocalizedTag.IsSet()) { return BoardContext.Current.Get<ILocalization>() .GetText(supportItem.LocalizedPage, supportItem.LocalizedTag); } return supportItem.LocalizedTag.IsSet() ? BoardContext.Current.Get<ILocalization>().GetText(supportItem.LocalizedTag) : null; } /// <summary> /// Localizes the and render. /// </summary> /// <param name="supportedItem">The supported item.</param> /// <param name="currentControl">The current control.</param> /// <returns> /// The localize and render. /// </returns> public static string LocalizeAndRender( [NotNull] this ILocalizationSupport supportedItem, [NotNull] BaseControl currentControl) { CodeContracts.VerifyNotNull(supportedItem, "supportedItem"); CodeContracts.VerifyNotNull(currentControl, "currentControl"); var localizedItem = supportedItem.Localize(currentControl); // convert from BBCode to HTML if (supportedItem.EnableBBCode) { localizedItem = currentControl.Get<IBBCode>().MakeHtml(localizedItem, true, true); } return localizedItem.Fmt(supportedItem.Param0, supportedItem.Param1, supportedItem.Param2); } #endregion } }
37.70297
121
0.625788
[ "Apache-2.0" ]
hnjm/YAFNET
yafsrc/YAF.Core/Extensions/LocalizationSupportExtensions.cs
3,709
C#
// *** WARNING: this file was generated by crd2pulumi. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.Kubernetes.Types.Inputs.Certmanager.V1Beta1 { /// <summary> /// Use the Microsoft Azure DNS API to manage DNS01 challenge records. /// </summary> public class IssuerSpecAcmeSolversDns01AzureDNSArgs : Pulumi.ResourceArgs { /// <summary> /// if both this and ClientSecret are left unset MSI will be used /// </summary> [Input("clientID")] public Input<string>? ClientID { get; set; } /// <summary> /// if both this and ClientID are left unset MSI will be used /// </summary> [Input("clientSecretSecretRef")] public Input<Pulumi.Kubernetes.Types.Inputs.Certmanager.V1Beta1.IssuerSpecAcmeSolversDns01AzureDNSClientSecretSecretRefArgs>? ClientSecretSecretRef { get; set; } [Input("environment")] public Input<string>? Environment { get; set; } [Input("hostedZoneName")] public Input<string>? HostedZoneName { get; set; } [Input("resourceGroupName", required: true)] public Input<string> ResourceGroupName { get; set; } = null!; [Input("subscriptionID", required: true)] public Input<string> SubscriptionID { get; set; } = null!; /// <summary> /// when specifying ClientID and ClientSecret then this field is also needed /// </summary> [Input("tenantID")] public Input<string>? TenantID { get; set; } public IssuerSpecAcmeSolversDns01AzureDNSArgs() { } } }
33.830189
169
0.64696
[ "MIT" ]
WhereIsMyTransport/Pulumi.Crds.CertManager
crd/dotnet/Certmanager/V1Beta1/Inputs/IssuerSpecAcmeSolversDns01AzureDNSArgs.cs
1,793
C#
using System; using System.Collections.Generic; using System.Text; public class ENDCommand : Command { public ENDCommand(string[] data) : base(data) { } public override void Execute() { Environment.Exit(0); } }
14
34
0.705357
[ "MIT" ]
VladimirKyuranov/CSharp-OOP-Advanced
Exercises/Ex04-Reflection/07-InfernoInfinity/Core/Commands/ENDCommand.cs
226
C#
using System.ComponentModel; namespace ImageProcessing.App.DomainLayer.Code.Enums { /// <summary> /// Specifies the definition of luma. /// </summary> public enum Luma { /// <summary> /// ITU-R Recommendation BT.709. /// </summary> [Description("ITUR Recommendation BT.709")] Rec709 = 0, /// <summary> /// ITU-R Recommendation BT.601. /// </summary> [Description("ITUR Recommendation BT.601")] Rec601 = 1, /// <summary> /// SMPTE-240M. /// </summary> [Description("SMPTE-240M")] Rec240 = 2, /// <summary> /// ITU-R Recommendation BT.2020. /// </summary> [Description("ITUR Recommendation BT.2020")] Rec2020 = 4, /// <summary> /// ITU-R Recommendation BT.2100. /// </summary> [Description("ITUR Recommendation BT.2100")] Rec2100 = 5 } }
23.707317
52
0.510288
[ "Apache-2.0" ]
Softenraged/Image-Processing
Source/ImageProcessing.App.DomainLayer/Code/Enums/Luma.cs
972
C#
using System; using UniRx; namespace Networking.Messaging { public interface INetworkMessageHandler { /// <summary> /// An <see cref="IObservable{T}"/> stream that can be listened to in order to receive notifications /// of incoming messages. /// </summary> IObservable<NetworkMessage> NetworkMessageStream { get; } IObservable<Unit> BroadcastMessage(NetworkMessage networkMessage); IObservable<Unit> SendMessage(NetworkMessage networkMessage, int clientId); } }
37.642857
108
0.6926
[ "Apache-2.0" ]
dcasadevall/tabletop-combat-helper
Assets/Scripts/Networking/Messaging/INetworkMessageHandler.cs
527
C#
using FytSoa.Common; using FytSoa.Core.Model.Sys; using FytSoa.Service.DtoModel; using System.Threading.Tasks; namespace FytSoa.Service.Interfaces { /// <summary> /// 管理员接口 /// </summary> public interface ISysAdminService : IBaseService<SysAdmin> { /// <summary> /// 登录 /// </summary> /// <param name="parm"></param> /// <returns></returns> Task<ApiResult<SysAdminMenuDto>> LoginAsync(SysAdminLogin parm); /// <summary> /// 获得列表 /// </summary> /// <returns></returns> Task<ApiResult<Page<SysAdmin>>> GetPagesAsync(PageParm parm); /// <summary> /// 添加一条数据 /// </summary> /// <returns></returns> Task<ApiResult<string>> AddAsync(SysAdmin parm); /// <summary> /// 删除一条或多条数据 /// </summary> /// <returns></returns> Task<ApiResult<string>> DeleteAsync(string parm); /// <summary> /// 修改一条数据 /// </summary> /// <returns></returns> Task<ApiResult<string>> ModifyAsync(SysAdmin parm); } }
24.844444
72
0.54025
[ "MIT" ]
5653325/FytSoaCms
FytSoa.Service/Interfaces/Sys/ISysAdminService.cs
1,184
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.AzureNextGen.Cdn.V20200901 { public static class GetAFDEndpoint { /// <summary> /// CDN endpoint is the entity within a CDN profile containing configuration information such as origin, protocol, content caching and delivery behavior. The AzureFrontDoor endpoint uses the URL format &lt;endpointname&gt;.azureedge.net. /// </summary> public static Task<GetAFDEndpointResult> InvokeAsync(GetAFDEndpointArgs args, InvokeOptions? options = null) => Pulumi.Deployment.Instance.InvokeAsync<GetAFDEndpointResult>("azure-nextgen:cdn/v20200901:getAFDEndpoint", args ?? new GetAFDEndpointArgs(), options.WithVersion()); } public sealed class GetAFDEndpointArgs : Pulumi.InvokeArgs { /// <summary> /// Name of the endpoint under the profile which is unique globally. /// </summary> [Input("endpointName", required: true)] public string EndpointName { get; set; } = null!; /// <summary> /// Name of the CDN profile which is unique within the resource group. /// </summary> [Input("profileName", required: true)] public string ProfileName { get; set; } = null!; /// <summary> /// Name of the Resource group within the Azure subscription. /// </summary> [Input("resourceGroupName", required: true)] public string ResourceGroupName { get; set; } = null!; public GetAFDEndpointArgs() { } } [OutputType] public sealed class GetAFDEndpointResult { public readonly string DeploymentStatus; /// <summary> /// Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled' /// </summary> public readonly string? EnabledState; /// <summary> /// The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net /// </summary> public readonly string HostName; /// <summary> /// Resource ID. /// </summary> public readonly string Id; /// <summary> /// Resource location. /// </summary> public readonly string Location; /// <summary> /// Resource name. /// </summary> public readonly string Name; /// <summary> /// Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns. /// </summary> public readonly int? OriginResponseTimeoutSeconds; /// <summary> /// Provisioning status /// </summary> public readonly string ProvisioningState; /// <summary> /// Read only system data /// </summary> public readonly Outputs.SystemDataResponse SystemData; /// <summary> /// Resource tags. /// </summary> public readonly ImmutableDictionary<string, string>? Tags; /// <summary> /// Resource type. /// </summary> public readonly string Type; [OutputConstructor] private GetAFDEndpointResult( string deploymentStatus, string? enabledState, string hostName, string id, string location, string name, int? originResponseTimeoutSeconds, string provisioningState, Outputs.SystemDataResponse systemData, ImmutableDictionary<string, string>? tags, string type) { DeploymentStatus = deploymentStatus; EnabledState = enabledState; HostName = hostName; Id = id; Location = location; Name = name; OriginResponseTimeoutSeconds = originResponseTimeoutSeconds; ProvisioningState = provisioningState; SystemData = systemData; Tags = tags; Type = type; } } }
32.80916
245
0.601675
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Cdn/V20200901/GetAFDEndpoint.cs
4,298
C#
using Com.Danliris.Service.Packing.Inventory.Application.InventorySKU; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Xunit; namespace Com.Danliris.Service.Packing.Inventory.Test.Services.InventorySKU { public class FormDtoTest { [Fact] public void Validate_default() { FormDto dto = new FormDto() { Items = new List<FormItemDto>() }; var result = dto.Validate(null); Assert.True(result.Count() > 0); } [Fact] public void Validate_items() { FormDto dto = new FormDto() { Items = new List<FormItemDto>() { new FormItemDto() } }; var result = dto.Validate(null); Assert.True(result.Count() > 0); } } }
22.190476
75
0.516094
[ "MIT" ]
AndreaZain/com-danliris-service-packing-inventory
src/Com.Danliris.Service.Packing.Inventory.Test/Services/InventorySKU/FormDtoTest.cs
934
C#
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; using System.Web.Http; namespace tXeDataManager.Results { public class ChallengeResult : IHttpActionResult { public ChallengeResult(string loginProvider, ApiController controller) { LoginProvider = loginProvider; Request = controller.Request; } public string LoginProvider { get; set; } public HttpRequestMessage Request { get; set; } public Task<HttpResponseMessage> ExecuteAsync(CancellationToken cancellationToken) { Request.GetOwinContext().Authentication.Challenge(LoginProvider); HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.Unauthorized); response.RequestMessage = Request; return Task.FromResult(response); } } }
29.121212
96
0.695109
[ "MIT" ]
Redefender/theXeffect
tXeDataManager/Results/ChallengeResult.cs
963
C#
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. All rights reserved. * * This software is subject to the Microsoft Public License (Ms-PL). * A copy of the license can be found in the license.htm file included * in this distribution. * * You must not remove this notice, or any other, from this software. * * ***************************************************************************/ namespace System.Web.Mvc { using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.Linq; using System.Reflection; using System.Web.Mvc.Resources; using System.Xml; // Processes files with this format: // // <typeCache lastModified=... mvcVersionId=...> // <assembly name=...> // <module versionId=...> // <type>...</type> // </module> // </assembly> // </typeCache> // // This is used to store caches of files between AppDomain resets, leading to improved cold boot time // and more efficient use of memory. internal sealed class TypeCacheSerializer { private static readonly Guid _mvcVersionId = typeof(TypeCacheSerializer).Module.ModuleVersionId; // used for unit testing private DateTime CurrentDate { get { return CurrentDateOverride ?? DateTime.Now; } } internal DateTime? CurrentDateOverride { get; set; } [SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic", Justification = "This is an instance method for consistency with the SerializeTypes() method.")] public List<Type> DeserializeTypes(TextReader input) { XmlDocument doc = new XmlDocument(); doc.Load(input); XmlElement rootElement = doc.DocumentElement; Guid readMvcVersionId = new Guid(rootElement.Attributes["mvcVersionId"].Value); if (readMvcVersionId != _mvcVersionId) { // The cache is outdated because the cache file was produced by a different version // of MVC. return null; } List<Type> deserializedTypes = new List<Type>(); foreach (XmlNode assemblyNode in rootElement.ChildNodes) { string assemblyName = assemblyNode.Attributes["name"].Value; Assembly assembly = Assembly.Load(assemblyName); foreach (XmlNode moduleNode in assemblyNode.ChildNodes) { Guid moduleVersionId = new Guid(moduleNode.Attributes["versionId"].Value); foreach (XmlNode typeNode in moduleNode.ChildNodes) { string typeName = typeNode.InnerText; Type type = assembly.GetType(typeName); if (type == null || type.Module.ModuleVersionId != moduleVersionId) { // The cache is outdated because we couldn't find a previously recorded // type or the type's containing module was modified. return null; } else { deserializedTypes.Add(type); } } } } return deserializedTypes; } public void SerializeTypes(IEnumerable<Type> types, TextWriter output) { var groupedByAssembly = from type in types group type by type.Module into groupedByModule group groupedByModule by groupedByModule.Key.Assembly; XmlDocument doc = new XmlDocument(); doc.AppendChild(doc.CreateComment(MvcResources.TypeCache_DoNotModify)); XmlElement typeCacheElement = doc.CreateElement("typeCache"); doc.AppendChild(typeCacheElement); typeCacheElement.SetAttribute("lastModified", CurrentDate.ToString()); typeCacheElement.SetAttribute("mvcVersionId", _mvcVersionId.ToString()); foreach (var assemblyGroup in groupedByAssembly) { XmlElement assemblyElement = doc.CreateElement("assembly"); typeCacheElement.AppendChild(assemblyElement); assemblyElement.SetAttribute("name", assemblyGroup.Key.FullName); foreach (var moduleGroup in assemblyGroup) { XmlElement moduleElement = doc.CreateElement("module"); assemblyElement.AppendChild(moduleElement); moduleElement.SetAttribute("versionId", moduleGroup.Key.ModuleVersionId.ToString()); foreach (Type type in moduleGroup) { XmlElement typeElement = doc.CreateElement("type"); moduleElement.AppendChild(typeElement); typeElement.AppendChild(doc.CreateTextNode(type.FullName)); } } } doc.Save(output); } } }
40.224806
108
0.566005
[ "MIT" ]
zlxy/Genesis-3D
Engine/extlibs/IosLibs/mono-2.6.7/mcs/class/System.Web.Mvc2/System.Web.Mvc/TypeCacheSerializer.cs
5,191
C#
namespace CardboardKnight.Core.Models.API.Hotness { public class Item : ItemBase { public int? delta { get; set; } public string description { get; set; } public string href { get; set; } public Images images { get; set; } public string imageurl { get; set; } public string name { get; set; } public string rank { get; set; } public string rep_imageid { get; set; } public string yearpublished { get; set; } } }
31.0625
50
0.587525
[ "MIT" ]
TheCardboardKnight/App
CardboardKnight.Core/Models/API/Hotness/Item.cs
499
C#
using System; using System.Threading.Tasks; using AutoFixture; using FluentAssertions; using Newtonsoft.Json; using NUnit.Framework; using ClaimantInformation = AcademyResidentInformationApi.V1.Boundary.Responses.ClaimantInformation; namespace AcademyResidentInformationApi.Tests.V1.E2ETests { [TestFixture] public class GetResidentInformationById : IntegrationTests<Startup> { private IFixture _fixture; [SetUp] public void SetUp() { _fixture = new Fixture(); } [Test] public async Task GetClaimantInformationByIdReturnsTheCorrectInformation() { var claimId = _fixture.Create<int>(); var personRef = _fixture.Create<int>(); var expectedResponse = E2ETestHelpers.AddClaimantWithRelatesEntitiesToDb(AcademyContext, claimId: claimId, personRef: personRef); var requestUri = new Uri($"api/v1/claimants/claim/{claimId}/person/{personRef}", UriKind.Relative); var response = Client.GetAsync(requestUri); var statusCode = response.Result.StatusCode; statusCode.Should().Be(200); var content = response.Result.Content; var stringContent = await content.ReadAsStringAsync(); var convertedResponse = JsonConvert.DeserializeObject<ClaimantInformation>(stringContent); convertedResponse.Should().BeEquivalentTo(expectedResponse); } [Test] public void GetClaimantInformationByIdReturns404NotFound() { var requestUri = new Uri($"api/v1/claimants/claim/0/househould/0/members/0", UriKind.Relative); var response = Client.GetAsync(requestUri); var statusCode = response.Result.StatusCode; statusCode.Should().Be(404); } } }
35.843137
141
0.672867
[ "MIT" ]
LBHackney-IT/academy-resident-information-api
AcademyResidentInformationApi.Tests/V1/E2ETests/GetClaimantInformationById.cs
1,828
C#
/* MIT License Copyright (c) 2018 Binwell https://binwell.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading.Tasks; using OrderKingCoreDemo.BL.ViewModels; using OrderKingCoreDemo.Helpers; using OrderKingCoreDemo.UI.Pages; using Xamarin.Forms; namespace OrderKingCoreDemo.UI { public sealed class NavigationService { static readonly Lazy<NavigationService> LazyInstance = new Lazy<NavigationService>(() => new NavigationService(), true); readonly Dictionary<string, Type> _pageTypes; readonly Dictionary<string, Type> _viewModelTypes; NavigationService() { _pageTypes = GetAssemblyPageTypes(); _viewModelTypes = GetAssemblyViewModelTypes(); MessagingCenter.Subscribe<MessageBus, NavigationPushInfo>(this, Consts.NavigationPushMessage, NavigationPushCallback); MessagingCenter.Subscribe<MessageBus, NavigationPopInfo>(this, Consts.NavigationPopMessage, NavigationPopCallback); } public static void Init(OrderKingCoreDemo.Pages detail) { Instance.Initialize(detail); } void Initialize(OrderKingCoreDemo.Pages page) { var initPage = GetInitializedPage(page.ToString()); RootPush(initPage); } public static NavigationService Instance => LazyInstance.Value; void NavigationPushCallback(MessageBus bus, NavigationPushInfo navigationPushInfo) { if (navigationPushInfo == null) throw new ArgumentNullException(nameof(navigationPushInfo)); if (string.IsNullOrEmpty(navigationPushInfo.To)) throw new FieldAccessException(@"'To' page value should be set"); Push(navigationPushInfo); } void NavigationPopCallback(MessageBus bus, NavigationPopInfo navigationPopInfo) { if (navigationPopInfo == null) throw new ArgumentNullException(nameof(navigationPopInfo)); Pop(navigationPopInfo); } #region NavigationService internals INavigation GetTopNavigation() { var mainPage = Application.Current.MainPage; if (mainPage is MasterDetailPage masterDetailPage) { if (masterDetailPage.Detail is NavigationPage navigationPage) { var modalStack = navigationPage.Navigation.ModalStack.OfType<NavigationPage>().ToList(); if (modalStack.Any()) { return modalStack.LastOrDefault()?.Navigation; } return navigationPage.Navigation; } } return (mainPage as NavigationPage)?.Navigation; } void Push(NavigationPushInfo pushInfo) { var newPage = GetInitializedPage(pushInfo); switch (pushInfo.Mode) { case NavigationMode.Normal: NormalPush(newPage, pushInfo.OnCompletedTask); break; case NavigationMode.Modal: ModalPush(newPage, pushInfo.OnCompletedTask, pushInfo.NewNavigationStack); break; case NavigationMode.RootPage: RootPush(newPage, pushInfo.OnCompletedTask); break; case NavigationMode.Custom: CustomPush(newPage, pushInfo.OnCompletedTask); break; default: throw new NotImplementedException(); } } void NormalPush(Page newPage, TaskCompletionSource<bool> completed) { Device.BeginInvokeOnMainThread(async () => { try { await GetTopNavigation().PushAsync(newPage, true); completed.SetResult(true); } catch { completed.SetResult(false); } }); } void ModalPush(Page newPage, TaskCompletionSource<bool> completed, bool newNavigationStack = true) { Device.BeginInvokeOnMainThread(async () => { try { if(newNavigationStack) newPage = new NavigationPage(newPage); await GetTopNavigation().PushModalAsync(newPage, true); completed.SetResult(true); } catch { completed.SetResult(false); } }); } void RootPush(Page newPage, TaskCompletionSource<bool> pushInfoOnCompletedTask = null) { Device.BeginInvokeOnMainThread(async () => { try { if (Application.Current.MainPage == null) { var masterPage = GetInitializedPage(OrderKingCoreDemo.Pages.Menu.ToString()); //Xamarin.Forms return exception when master page title is null //this title not visible in app masterPage.Title = nameof(masterPage); var detailPage = new NavigationPage(newPage); Application.Current.MainPage = new MasterDetailPage { Master = masterPage, Detail = detailPage }; } else if (Application.Current.MainPage is MasterDetailPage mp) { mp.IsPresented = false; await Task.Delay(250); if (mp.Detail is NavigationPage navigationPage) { var navigation = navigationPage.Navigation; var navigationStack = navigationPage.Navigation.NavigationStack; if (navigationStack.Any()) { navigation.InsertPageBefore(newPage, navigationStack.FirstOrDefault()); await navigation.PopToRootAsync(); } } pushInfoOnCompletedTask?.SetResult(true); } } catch (Exception e) { Console.WriteLine(e); pushInfoOnCompletedTask?.SetResult(false); } }); } void CustomPush(Page newPage, TaskCompletionSource<bool> pushInfoOnCompletedTask) { // TODO: Implement your own navigation stack manipulation using popInfo } void Pop(NavigationPopInfo popInfo) { switch (popInfo.Mode) { case NavigationMode.Normal: NormalPop(popInfo.OnCompletedTask); break; case NavigationMode.Modal: ModalPop(popInfo.OnCompletedTask); break; case NavigationMode.Custom: CustomPop(popInfo.OnCompletedTask); break; default: throw new NotImplementedException(); } } void ModalPop(TaskCompletionSource<bool> completed) { Device.BeginInvokeOnMainThread(async () => { try { await GetTopNavigation().PopModalAsync(); completed.SetResult(true); } catch { completed.SetResult(false); } }); } void CustomPop(TaskCompletionSource<bool> completed) { // TODO: Implement your own navigation stack manipulation using popInfo } void NormalPop(TaskCompletionSource<bool> completed) { Device.BeginInvokeOnMainThread(async () => { try { await GetTopNavigation().PopAsync(); completed.SetResult(true); } catch { completed.SetResult(false); } }); } static string GetTypeBaseName(MemberInfo info) { if (info == null) throw new ArgumentNullException(nameof(info)); return info.Name.Replace(@"Page", "").Replace(@"ViewModel", ""); } static Dictionary<string, Type> GetAssemblyPageTypes() { return typeof(BasePage).GetTypeInfo().Assembly.DefinedTypes .Where(ti => ti.IsClass && !ti.IsAbstract && ti.Name.Contains(@"Page") && ti.BaseType.Name.Contains(@"Page")) .ToDictionary(GetTypeBaseName, ti => ti.AsType()); } static Dictionary<string, Type> GetAssemblyViewModelTypes() { return typeof(BaseViewModel).GetTypeInfo().Assembly.DefinedTypes .Where(ti => ti.IsClass && !ti.IsAbstract && ti.Name.Contains(@"ViewModel") && ti.BaseType.Name.Contains(@"ViewModel")) .ToDictionary(GetTypeBaseName, ti => ti.AsType()); } BasePage GetInitializedPage(string toName, Dictionary<string, object> navParams = null) { var page = GetPage(toName); var viewModel = GetViewModel(toName); viewModel.SetNavigationParams(navParams); page.BindingContext = viewModel; return page; } Page GetInitializedPage(NavigationPushInfo navigationPushInfo) { return GetInitializedPage(navigationPushInfo.To, navigationPushInfo.NavigationParams); } BasePage GetPage(string pageName) { if (!_pageTypes.ContainsKey(pageName)) throw new KeyNotFoundException($@"Page for {pageName} not found"); BasePage page; try { var pageType = _pageTypes[pageName]; var pageObject = Activator.CreateInstance(pageType); page = pageObject as BasePage; } catch (Exception e) { throw new TypeLoadException($@"Unable create instance for {pageName}Page", e); } return page; } BaseViewModel GetViewModel(string pageName) { if (!_viewModelTypes.ContainsKey(pageName)) throw new KeyNotFoundException($@"ViewModel for {pageName} not found"); BaseViewModel viewModel; try { viewModel = Activator.CreateInstance(_viewModelTypes[pageName]) as BaseViewModel; } catch (Exception e) { throw new TypeLoadException($@"Unable create instance for {pageName}ViewModel", e); } return viewModel; } #endregion } public class NavigationPushInfo { public string From { get; set; } public string To { get; set; } public Dictionary<string, object> NavigationParams { get; set; } public NavigationMode Mode { get; set; } = NavigationMode.Normal; public bool NewNavigationStack { get; set; } public TaskCompletionSource<bool> OnCompletedTask { get; set; } } public class NavigationPopInfo { public NavigationMode Mode { get; set; } = NavigationMode.Normal; public TaskCompletionSource<bool> OnCompletedTask { get; set; } public string To { get; set; } } }
31.962848
122
0.694886
[ "MIT" ]
digexco/Order-King-Mobile-Core
OrderKingCoreDemo/OrderKingCoreDemo/UI/NavigationService.cs
10,324
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.ComponentModel; using Xunit; namespace System.Drawing.Printing.Test { public class PrinterResolutionTest { [Fact] public void Default_Ctor() { PrinterResolution pr = new PrinterResolution(); Assert.Equal(PrinterResolutionKind.Custom, pr.Kind); } [Theory] [InlineData(PrinterResolutionKind.High)] [InlineData(PrinterResolutionKind.Medium)] [InlineData(PrinterResolutionKind.Low)] [InlineData(PrinterResolutionKind.Draft)] [InlineData(PrinterResolutionKind.Custom)] public void Set_Kind(PrinterResolutionKind kind) { PrinterResolution pr = new PrinterResolution(); pr.Kind = kind; Assert.Equal(kind, pr.Kind); } [Fact] public void Set_NotDefinedKind_ThrowsAnException() { PrinterResolution pr = new PrinterResolution(); Assert.Throws<InvalidEnumArgumentException>(() => pr.Kind = (PrinterResolutionKind)999); } [Theory] [InlineData(Int32.MaxValue, Int32.MaxValue)] [InlineData(Int32.MinValue, Int32.MinValue)] [InlineData(1, 2)] public void Set_Coordinates(int x, int y) { PrinterResolution pr = new PrinterResolution(); pr.X = x; pr.Y = y; Assert.Equal(x, pr.X); Assert.Equal(y, pr.Y); } } }
30.218182
100
0.615523
[ "MIT" ]
cydhaselton/cfx-android
src/System.Drawing.Common/tests/Printing/PrinterResolutionTest.cs
1,662
C#