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
namespace BattleShips.Client { using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; public static class Constants { public static class UrlEndPoints { public const string Register = "api/account/register"; public const string Login = "token"; public const string CreateGame = "api/games/create"; public const string JoinGame = "api/games/join"; public const string Play = "api/games/play"; } } }
27.47619
66
0.618718
[ "MIT" ]
ttitto/WebDevelopment
Web Services and Cloud/ConsumingWebServicesHW/BattleShipsClient/BattleShips.Client/Constants.cs
579
C#
// ----------------------------------------------------------------------- // <copyright file="InternalCacher.cs" company=""> // Copyright (c) 2014-2015 OSky. All rights reserved. // </copyright> // <last-editor>Lmf</last-editor> // <last-date>2015-03-22 23:46</last-date> // ----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using OSky.Core.Properties; using OSky.Utility.Logging; namespace OSky.Core.Caching { /// <summary> /// 缓存执行者 /// </summary> internal sealed class InternalCacher : ICache { private static readonly ILogger Logger = LogManager.GetLogger(typeof(InternalCacher)); private readonly ICollection<ICache> _caches; /// <summary> /// 初始化一个<see cref="InternalCacher"/>类型的新实例 /// </summary> public InternalCacher(string region) { _caches = CacheManager.Providers.Where(m => m != null).Select(m => m.GetCache(region)).ToList(); if (_caches.Count == 0) { Logger.Warn(Resources.Caching_CacheNotInitialized); } } #region Implementation of ICache /// <summary> /// 从缓存中获取数据 /// </summary> /// <param name="key">缓存键</param> /// <returns>获取的数据</returns> public object Get(string key) { object value = null; foreach (ICache cache in _caches) { value = cache.Get(key); if (value != null) { break; } } return value; } /// <summary> /// 从缓存中获取强类型数据 /// </summary> /// <typeparam name="T">数据类型</typeparam> /// <param name="key">缓存键</param> /// <returns>获取的强类型数据</returns> public T Get<T>(string key) { object value = Get(key); if (value == null) { return default(T); } return (T)value; } /// <summary> /// 获取当前缓存对象中的所有数据 /// </summary> /// <returns>所有数据的集合</returns> public IEnumerable<object> GetAll() { List<object> values = new List<object>(); foreach (ICache cache in _caches) { values = cache.GetAll().ToList(); if (values.Count != 0) { break; } } return values; } /// <summary> /// 获取当前缓存中的所有数据 /// </summary> /// <typeparam name="T">项数据类型</typeparam> /// <returns>所有数据的集合</returns> public IEnumerable<T> GetAll<T>() { List<T> values = new List<T>(); foreach (ICache cache in _caches) { values = cache.GetAll<T>().ToList(); if (values.Count != 0) { break; } } return values; } /// <summary> /// 使用默认配置添加或替换缓存项 /// </summary> /// <param name="key">缓存键</param> /// <param name="value">缓存数据</param> public void Set(string key, object value) { foreach (ICache cache in _caches) { cache.Set(key, value); } } /// <summary> /// 添加或替换缓存项并设置绝对过期时间 /// </summary> /// <param name="key">缓存键</param> /// <param name="value">缓存数据</param> /// <param name="absoluteExpiration">绝对过期时间,过了这个时间点,缓存即过期</param> public void Set(string key, object value, DateTime absoluteExpiration) { foreach (ICache cach in _caches) { cach.Set(key, value, absoluteExpiration); } } /// <summary> /// 添加或替换缓存项并设置相对过期时间 /// </summary> /// <param name="key">缓存键</param> /// <param name="value">缓存数据</param> /// <param name="slidingExpiration">滑动过期时间,在此时间内访问缓存,缓存将继续有效</param> public void Set(string key, object value, TimeSpan slidingExpiration) { foreach (ICache cach in _caches) { cach.Set(key, value, slidingExpiration); } } /// <summary> /// 移除指定键的缓存 /// </summary> /// <param name="key">缓存键</param> public void Remove(string key) { foreach (ICache cach in _caches) { cach.Remove(key); } } /// <summary> /// 清空缓存 /// </summary> public void Clear() { foreach (ICache cach in _caches) { cach.Clear(); } } #endregion } }
27.38674
108
0.453097
[ "Apache-2.0" ]
liumeifu/OSky
src/OSky.Core/Caching/InternalCacher.cs
5,421
C#
namespace Maroontress.Util { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; /// <summary> /// An <see cref="ImmutableDictionary{TKey, TValue}"/> and linked list /// implementation of the <see cref="IImmutableDictionary{TKey, TValue}"/> /// interface, with predictable iteration order. /// </summary> /// <remarks> /// <para>This implementation differs from <see /// cref="ImmutableDictionary{TKey, TValue}"/> in that it maintains a /// linked list running through all of its entries. This linked list /// defines the iteration ordering, which is normally the order in which /// keys were inserted into the dictionary (<i>insertion-order</i>).</para> /// /// <para>Note that insertion order is not affected if a key is /// <i>re-inserted</i> into the dictionary. (A key <c>k</c> is reinserted /// into a dictionary <c>m</c> if <c>m[k] = v</c> is invoked when /// <c>m.ContainsKey(k)</c> would return <c>true</c> immediately prior to /// the invocation.)</para> /// </remarks> /// <typeparam name="K"> /// The type of keys maintained by this dictionary. /// </typeparam> /// <typeparam name="V"> /// The type of mapped values. /// </typeparam> public sealed class ImmutableLinkedHashMap<K, V> : IImmutableDictionary<K, V> where K : IComparable<K> { /// <summary> /// Gets an empty <see cref="ImmutableLinkedHashMap{K, V}"/>. /// </summary> public static readonly ImmutableLinkedHashMap<K, V> Empty = new ImmutableLinkedHashMap<K, V>(); private readonly IEnumerable<KeyValuePair<K, V>> list; private readonly ImmutableDictionary<K, V> map; private ImmutableLinkedHashMap() { list = Enumerable.Empty<KeyValuePair<K, V>>(); map = ImmutableDictionary<K, V>.Empty; } private ImmutableLinkedHashMap( IEnumerable<KeyValuePair<K, V>> newList, ImmutableDictionary<K, V> newMap) { list = newList; map = newMap; } /// <inheritdoc/> public IEnumerable<K> Keys => list.Select(p => p.Key); /// <inheritdoc/> public IEnumerable<V> Values => list.Select(p => p.Value); /// <inheritdoc/> public int Count => map.Count; /// <inheritdoc/> public V this[K key] => map[key]; /// <inheritdoc/> public IImmutableDictionary<K, V> Add(K key, V value) { var pair = new KeyValuePair<K, V>(key, value); var newList = list.Append(pair); var newMap = map.Add(key, value); return new ImmutableLinkedHashMap<K, V>(newList, newMap); } /// <inheritdoc/> public IImmutableDictionary<K, V> AddRange( IEnumerable<KeyValuePair<K, V>> pairs) { if (!pairs.Any()) { return this; } var newList = list.Concat(pairs.ToImmutableArray()); var newMap = map.AddRange(pairs); return new ImmutableLinkedHashMap<K, V>(newList, newMap); } /// <inheritdoc/> public IImmutableDictionary<K, V> Clear() => Empty; /// <inheritdoc/> public bool Contains(KeyValuePair<K, V> pair) { return map.TryGetValue(pair.Key, out var value) && Equals(value, pair.Value); } /// <inheritdoc/> public bool ContainsKey(K key) => map.ContainsKey(key); /// <inheritdoc/> public IEnumerator<KeyValuePair<K, V>> GetEnumerator() => list.GetEnumerator(); /// <inheritdoc/> public IImmutableDictionary<K, V> Remove(K key) { if (!map.ContainsKey(key)) { return this; } bool NotMatches(KeyValuePair<K, V> p) => !p.Key.Equals(key); var newMap = map.Remove(key); var newList = list.Where(NotMatches); return new ImmutableLinkedHashMap<K, V>(newList, newMap); } /// <inheritdoc/> public IImmutableDictionary<K, V> RemoveRange(IEnumerable<K> keys) { var all = map.Keys.Intersect(keys).ToImmutableHashSet(); if (!all.Any()) { return this; } bool NotMatches(KeyValuePair<K, V> p) => !all.Contains(p.Key); var newMap = map.RemoveRange(all); var newList = list.Where(NotMatches); return new ImmutableLinkedHashMap<K, V>(newList, newMap); } /// <inheritdoc/> public IImmutableDictionary<K, V> SetItem(K key, V value) { if (!map.TryGetValue(key, out var oldValue)) { return Add(key, value); } if (Equals(oldValue, value)) { return this; } var newPair = new KeyValuePair<K, V>(key, value); var newMap = map.SetItem(key, value); var newList = list.Select(p => p.Key.Equals(key) ? newPair : p); return new ImmutableLinkedHashMap<K, V>(newList, newMap); } /// <inheritdoc/> public IImmutableDictionary<K, V> SetItems( IEnumerable<KeyValuePair<K, V>> items) { var appendingList = new List<KeyValuePair<K, V>>(); var replacingMap = new Dictionary<K, KeyValuePair<K, V>>(); foreach (var i in items) { if (!map.TryGetValue(i.Key, out var oldValue)) { appendingList.Add(i); continue; } if (Equals(oldValue, i.Value)) { continue; } replacingMap.Add(i.Key, i); } if (!replacingMap.Any()) { return AddRange(appendingList); } var newMap = map.SetItems( replacingMap.Values.AsEnumerable()); var newList = list.Select( p => replacingMap.TryGetValue(p.Key, out var newValue) ? newValue : p); return new ImmutableLinkedHashMap<K, V>(newList, newMap) .AddRange(appendingList); } /// <inheritdoc/> public bool TryGetKey(K equalKey, out K actualKey) => map.TryGetKey(equalKey, out actualKey); /// <inheritdoc/> public bool TryGetValue(K key, out V value) => map.TryGetValue(key, out value); /// <inheritdoc/> IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } }
33.047847
79
0.531924
[ "BSD-2-Clause" ]
maroontress-tomohisa/HtmlBuilder
HtmlBuilder/Maroontress/Util/ImmutableLinkedHashMap.cs
6,907
C#
// Instance generated by TankLibHelper.InstanceBuilder // ReSharper disable All namespace TankLib.STU.Types { [STUAttribute(0x91B28B0A)] public class STU_91B28B0A : STURankedData { [STUFieldAttribute(0x6E616C15)] public int m_6E616C15; [STUFieldAttribute(0x5814361A)] public int m_5814361A; [STUFieldAttribute(0x241EF0C9)] public float m_241EF0C9; [STUFieldAttribute(0x166987AE)] public float m_166987AE; [STUFieldAttribute(0x920E9126)] public byte m_920E9126; [STUFieldAttribute(0xCEB5178B)] public byte m_CEB5178B; } }
24.423077
54
0.677165
[ "MIT" ]
Mike111177/OWLib
TankLib/STU/Types/STU_91B28B0A.cs
635
C#
using System; using System.Collections; using System.Collections.Generic; using System.Linq; public class Program { public static void Main() { LinqKeywordsExamples(); LinqExtensionMethodsExamples(); } private static void LinqKeywordsExamples() { int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 }; var querySmallNums = from num in numbers where num < 5 select num; foreach (var num in querySmallNums) { Console.Write(num.ToString() + " "); } // The result is 4 1 3 2 0 Console.WriteLine(); Console.WriteLine(); string[] towns = { "Sofia", "Varna", "Pleven", "Ruse", "Bourgas" }; var townPairs = from t1 in towns from t2 in towns select new { T1 = t1, T2 = t2 }; foreach (var townPair in townPairs) { Console.WriteLine(townPair); } Console.WriteLine(); string[] fruits = { "cherry", "apple", "blueberry", "banana" }; // Sort in ascending sort var fruitsAscending = from fruit in fruits orderby fruit select fruit; foreach (string fruit in fruitsAscending) { Console.WriteLine(fruit); } Console.WriteLine(); } private static void LinqExtensionMethodsExamples() { var studentsRepository = new StudentsRepository(); var students = studentsRepository.GetAllStudents(); // where var someStudents = students.Where(st => st.Name == "Ivan" || st.Name == "Pesho"); PrintCollection(someStudents); // first Student first = students.FirstOrDefault(st => st.Courses.Count == 4); // First Console.WriteLine(first); // select var projectedItems = students.Select( st => new Student { Name = st.Id.ToString(), Courses = new List<Course>() }); PrintCollection(projectedItems); // select to annonymous var annStudents = students.Select(st => new { Id = st.Id, Courses = st.Courses.Count }); PrintCollection(annStudents); // order by var ordered = students.OrderBy(st => st.Courses.Count).ThenBy(st => st.Name); PrintCollection(ordered); // any bool checkAny = students.Any(st => st.Name.StartsWith("I")); Console.WriteLine(checkAny); // all bool checkAll = students.All(st => st.Name != string.Empty); Console.WriteLine(checkAll); checkAll = students.All(st => st.Id > 2); Console.WriteLine(checkAll); // ToList and ToArray Student[] arrayOfStudents = students.ToArray(); PrintCollection(arrayOfStudents); List<Student> listOfStudents = arrayOfStudents.ToList(); PrintCollection(listOfStudents); // reading string of numbers separated by space int[] numbers = Console.ReadLine().Split(' ').Select(int.Parse).ToArray(); PrintCollection(numbers); // reverse students.Reverse(); PrintCollection(students); // average double averageCourses = students.Average(st => st.Courses.Count); Console.WriteLine(averageCourses); // max int max = students.Max(st => st.Courses.Count); Console.WriteLine(max); // min int min = students.Min(st => st.Courses.Count); Console.WriteLine(min); // count int count = students.Count(st => st.Name.Length > 4); Console.WriteLine(count); // sum int sum = students.Sum(st => st.Courses.Count); Console.WriteLine(sum); // extension methods var someCollection = students.Where(st => st.Id > 1) .OrderBy(st => st.Name) .ThenBy(st => st.Courses.Count) .Select(st => new { Name = st.Name, Courses = st.Courses.Count }) .ToArray(); PrintCollection(someCollection); // nesting var someOtherStudents = students.Where(st => st.Courses.Any(c => c.Name == "OOP")).OrderBy(st => st.Name); PrintCollection(someOtherStudents); } private static void PrintCollection(IEnumerable collection) { foreach (var item in collection) { Console.WriteLine(item); } } }
28.580645
114
0.566817
[ "MIT" ]
DimitarDKirov/Object-Oriented-Programming-2016
Topics/03. Extension-Methods-Delegates-Lambda-LINQ/demos/LINQ-Extenstion-Methods/Program.cs
4,432
C#
 using System; using System.Collections.Generic; using System.Collections.Specialized; using System.IO; using System.Linq; using System.Web; using PholioVisualisation.Cache; using PholioVisualisation.RequestParameters; namespace PholioVisualisation.Services.HttpHandlers { public class GetChart : IHttpHandler { public bool IsReusable { get { return false; } } public void ProcessRequest(HttpContext context) { NameValueCollection parameters = context.Request.Params; var practiceChartParameters = new PracticeChartParameters(parameters); BaseChart chart = new PracticeChart { Parameters = practiceChartParameters }; HttpResponse response = context.Response; response.ContentType = "image/png"; MemoryStream stream = null; if (chart != null) { stream = chart.GetChart(); if (stream != null) { // Content-length required by Chrome response.AddHeader("content-length", stream.Length.ToString()); CachePolicyHelper.SetMidnightWebCache(response); response.Flush(); response.BinaryWrite(stream.ToArray()); } } response.Flush(); response.Close(); if (stream != null) { stream.Close(); stream.Dispose(); stream = null; } // Never call Dispose on chart - it prevents any more charts being created } } }
28.288136
89
0.562013
[ "MIT" ]
PublicHealthEngland/fingertips-open
PholioVisualisationWS/Services/HttpHandlers/GetChart.cs
1,671
C#
using System; using System.Collections.Generic; using System.Linq; namespace _07._Append_arrays { class Program { static void Main(string[] args) { List<string> bigArray = Console.ReadLine() .Split('|', StringSplitOptions.RemoveEmptyEntries) .Reverse() .ToList(); List<int> numbers = new List<int>(); for (int i = 0; i < bigArray.Count; i++) { numbers = bigArray[i] .Split(" ", StringSplitOptions.RemoveEmptyEntries) .Select(int.Parse) .ToList(); for (int j = 0; j < numbers.Count; j++) { Console.Write($"{numbers[j]} "); } } Console.WriteLine(); } } }
26.75
70
0.450935
[ "MIT" ]
dMundov/SoftUni-HomeWorks
CSharp-TechFundamentals/13.Lists - Exercise/07. Append Arrays/Program.cs
858
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Data; using Windows.UI.Xaml.Input; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Navigation; namespace FEI.IRK.HM.HMIvR.UWP { /// <summary> /// Provides application-specific behavior to supplement the default Application class. /// </summary> sealed partial class App : Application { /// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; } /// <summary> /// Invoked when the application is launched normally by the end user. Other entry points /// will be used such as when the application is launched to open a specific file. /// </summary> /// <param name="e">Details about the launch request and process.</param> protected override void OnLaunched(LaunchActivatedEventArgs e) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif Frame rootFrame = Window.Current.Content as Frame; // Do not repeat app initialization when the Window already has content, // just ensure that the window is active if (rootFrame == null) { // Create a Frame to act as the navigation context and navigate to the first page rootFrame = new Frame(); rootFrame.NavigationFailed += OnNavigationFailed; Xamarin.Forms.Forms.Init(e); if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) { //TODO: Load state from previously suspended application } // Place the frame in the current Window Window.Current.Content = rootFrame; } if (rootFrame.Content == null) { // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter rootFrame.Navigate(typeof(MainPage), e.Arguments); } // Ensure the current window is active Window.Current.Activate(); } /// <summary> /// Invoked when Navigation to a certain page fails /// </summary> /// <param name="sender">The Frame which failed navigation</param> /// <param name="e">Details about the navigation failure</param> void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { throw new Exception("Failed to load Page " + e.SourcePageType.FullName); } /// <summary> /// Invoked when application execution is being suspended. Application state is saved /// without knowing whether the application will be terminated or resumed with the contents /// of memory still intact. /// </summary> /// <param name="sender">The source of the suspend request.</param> /// <param name="e">Details about the suspend request.</param> private void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity deferral.Complete(); } } }
37.37037
99
0.620168
[ "MIT" ]
Martin77Punk/FEI_IRK_Projects
FEI.IRK.HM.HMIvR/FEI.IRK.HM.HMIvR.UWP/App.xaml.cs
4,038
C#
#if __IOS__ using System; using ObjCRuntime; using Foundation; namespace StoreKit { partial class SKCloudServiceSetupOptions { [iOS (10,1)] public virtual SKCloudServiceSetupAction? Action { get { return (SKCloudServiceSetupAction?) (SKCloudServiceSetupActionExtensions.GetValue (_Action)); } set { _Action = value != null ? SKCloudServiceSetupActionExtensions.GetConstant (value.Value) : null; } } } } #endif // __IOS__
19.695652
99
0.730684
[ "BSD-3-Clause" ]
1975781737/xamarin-macios
src/StoreKit/SKCloudServiceSetupOptions.cs
453
C#
using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.ComponentModel.Composition.Hosting; using System.Globalization; using System.IO; using System.Linq; using System.Runtime; using System.Waf; using System.Waf.Applications; using System.Windows; using System.Windows.Threading; using Waf.DotNetPad.Applications.Services; using Waf.DotNetPad.Applications.ViewModels; using Waf.DotNetPad.Domain; using Waf.DotNetPad.Presentation.Properties; using Waf.DotNetPad.Presentation.Services; namespace Waf.DotNetPad.Presentation { public partial class App : Application { private AggregateCatalog catalog; private CompositionContainer container; private IEnumerable<IModuleController> moduleControllers; public App() { var environmentService = new EnvironmentService(); Directory.CreateDirectory(environmentService.ProfilePath); ProfileOptimization.SetProfileRoot(environmentService.ProfilePath); ProfileOptimization.StartProfile("Startup.profile"); } protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); #if !(DEBUG) DispatcherUnhandledException += AppDispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += AppDomainUnhandledException; #endif InitializeCultures(); catalog = new AggregateCatalog(); catalog.Catalogs.Add(new AssemblyCatalog(typeof(WafConfiguration).Assembly)); catalog.Catalogs.Add(new AssemblyCatalog(typeof(ShellViewModel).Assembly)); catalog.Catalogs.Add(new AssemblyCatalog(typeof(App).Assembly)); container = new CompositionContainer(catalog, CompositionOptions.DisableSilentRejection); CompositionBatch batch = new CompositionBatch(); batch.AddExportedValue(container); container.Compose(batch); // Initialize all presentation services var presentationServices = container.GetExportedValues<IPresentationService>(); foreach (var presentationService in presentationServices) { presentationService.Initialize(); } // Initialize and run all module controllers moduleControllers = container.GetExportedValues<IModuleController>(); foreach (var moduleController in moduleControllers) { moduleController.Initialize(); } foreach (var moduleController in moduleControllers) { moduleController.Run(); } } protected override void OnExit(ExitEventArgs e) { // Shutdown the module controllers in reverse order foreach (var moduleController in moduleControllers.Reverse()) { moduleController.Shutdown(); } // Wait until all registered tasks are finished var shellService = container.GetExportedValue<IShellService>(); var tasksToWait = shellService.TasksToCompleteBeforeShutdown.ToArray(); while (tasksToWait.Any(t => !t.IsCompleted && !t.IsCanceled && !t.IsFaulted)) { DispatcherHelper.DoEvents(); } // Dispose container.Dispose(); catalog.Dispose(); base.OnExit(e); } private static void InitializeCultures() { if (!string.IsNullOrEmpty(Settings.Default.Culture)) { CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(Settings.Default.Culture); } if (!string.IsNullOrEmpty(Settings.Default.UICulture)) { CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo(Settings.Default.UICulture); } } private static void AppDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) { HandleException(e.Exception, false); } private static void AppDomainUnhandledException(object sender, UnhandledExceptionEventArgs e) { HandleException(e.ExceptionObject as Exception, e.IsTerminating); } private static void HandleException(Exception e, bool isTerminating) { if (e == null) { return; } Logger.Error(e.ToString()); if (!isTerminating) { MessageBox.Show(string.Format(CultureInfo.CurrentCulture, Presentation.Properties.Resources.UnknownError, e), ApplicationInfo.ProductName, MessageBoxButton.OK, MessageBoxImage.Error); } } } }
38.564516
116
0.647846
[ "MIT" ]
cnark/dotnetpad
src/DotNetPad/DotNetPad.Presentation/App.xaml.cs
4,784
C#
using Volo.Abp.Authorization.Permissions; using Volo.Abp.FeatureManagement.Localization; using Volo.Abp.Localization; namespace LINGYUN.Abp.FeatureManagement.Client.Permissions { public class ClientFeaturePermissionDefinitionProvider : PermissionDefinitionProvider { public override void Define(IPermissionDefinitionContext context) { var identityServerGroup = context.GetGroupOrNull(ClientFeaturePermissionNames.GroupName); if (identityServerGroup == null) { identityServerGroup = context .AddGroup( name: ClientFeaturePermissionNames.GroupName, displayName: L("Permissions:IdentityServer"), multiTenancySide: Volo.Abp.MultiTenancy.MultiTenancySides.Host); } identityServerGroup .AddPermission( name: ClientFeaturePermissionNames.Clients.ManageFeatures, displayName: L("Permissions:ManageFeatures"), multiTenancySide: Volo.Abp.MultiTenancy.MultiTenancySides.Host) .WithProviders(ClientPermissionValueProvider.ProviderName); } protected virtual LocalizableString L(string name) { return LocalizableString.Create<AbpFeatureManagementResource>(name); } } }
40.882353
101
0.64964
[ "MIT" ]
mysharp/abp-vue-admin-element-typescript
aspnet-core/modules/features/LINGYUN.Abp.FeatureManagement.Client/LINGYUN/Abp/FeatureManagement/Client/Permissions/ClientFeaturePermissionDefinitionProvider.cs
1,392
C#
using System; using System.Globalization; namespace Karambolo.ReactiveMvvm.Binding { public interface IBindingConverter { bool CanConvert(Type fromType, Type toType); bool TryConvert(ObservedValue<object> value, Type toType, object parameter, CultureInfo culture, out ObservedValue<object> result); } }
27.75
139
0.747748
[ "Apache-2.0", "MIT" ]
adams85/reactivemvvm
source/Karambolo.ReactiveMvvm/Binding/IBindingConverter.cs
335
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #pragma warning disable 414 using System; public class A{ ////////////////////////////// // Instance Fields public int FldPubInst; private int FldPrivInst; protected int FldFamInst; //Translates to "family" internal int FldAsmInst; //Translates to "assembly" protected internal int FldFoaInst; //Translates to "famorassem" ////////////////////////////// // Static Fields public static int FldPubStat; private static int FldPrivStat; protected static int FldFamStat; //family internal static int FldAsmStat; //assembly protected internal static int FldFoaStat; //famorassem ////////////////////////////////////// // Instance fields for nested classes public Cls ClsPubInst = new Cls(); private Cls ClsPrivInst = new Cls(); protected Cls ClsFamInst = new Cls(); internal Cls ClsAsmInst = new Cls(); protected internal Cls ClsFoaInst = new Cls(); ///////////////////////////////////// // Static fields of nested classes public static Cls ClsPubStat = new Cls(); private static Cls ClsPrivStat = new Cls(); ////////////////////////////// // Instance Methods public int MethPubInst(){ Console.WriteLine("A::MethPubInst()"); return 100; } private int MethPrivInst(){ Console.WriteLine("A::MethPrivInst()"); return 100; } protected int MethFamInst(){ Console.WriteLine("A::MethFamInst()"); return 100; } internal int MethAsmInst(){ Console.WriteLine("A::MethAsmInst()"); return 100; } protected internal int MethFoaInst(){ Console.WriteLine("A::MethFoaInst()"); return 100; } ////////////////////////////// // Static Methods public static int MethPubStat(){ Console.WriteLine("A::MethPubStat()"); return 100; } private static int MethPrivStat(){ Console.WriteLine("A::MethPrivStat()"); return 100; } protected static int MethFamStat(){ Console.WriteLine("A::MethFamStat()"); return 100; } internal static int MethAsmStat(){ Console.WriteLine("A::MethAsmStat()"); return 100; } protected internal static int MethFoaStat(){ Console.WriteLine("A::MethFoaStat()"); return 100; } ////////////////////////////// // Virtual Instance Methods public virtual int MethPubVirt(){ Console.WriteLine("A::MethPubVirt()"); return 100; } //@csharp - Note that C# won't compile an illegal private virtual function //So there is no negative testing MethPrivVirt() here. protected virtual int MethFamVirt(){ Console.WriteLine("A::MethFamVirt()"); return 100; } internal virtual int MethAsmVirt(){ Console.WriteLine("A::MethAsmVirt()"); return 100; } protected internal virtual int MethFoaVirt(){ Console.WriteLine("A::MethFoaVirt()"); return 100; } public class Cls{ ////////////////////////////// // Instance Fields public int NestFldPubInst; private int NestFldPrivInst; protected int NestFldFamInst; //Translates to "family" internal int NestFldAsmInst; //Translates to "assembly" protected internal int NestFldFoaInst; //Translates to "famorassem" ////////////////////////////// // Static Fields public static int NestFldPubStat; private static int NestFldPrivStat; protected static int NestFldFamStat; //family internal static int NestFldAsmStat; //assembly protected internal static int NestFldFoaStat; //famorassem ////////////////////////////////////// // Instance fields for nested classes public Cls2 Cls2PubInst = new Cls2(); private Cls2 Cls2PrivInst = new Cls2(); protected Cls2 Cls2FamInst = new Cls2(); internal Cls2 Cls2AsmInst = new Cls2(); protected internal Cls2 Cls2FoaInst = new Cls2(); ///////////////////////////////////// // Static fields of nested classes public static Cls ClsPubStat = new Cls(); private static Cls ClsPrivStat = new Cls(); ////////////////////////////// // Instance NestMethods public int NestMethPubInst(){ Console.WriteLine("A::NestMethPubInst()"); return 100; } private int NestMethPrivInst(){ Console.WriteLine("A::NestMethPrivInst()"); return 100; } protected int NestMethFamInst(){ Console.WriteLine("A::NestMethFamInst()"); return 100; } internal int NestMethAsmInst(){ Console.WriteLine("A::NestMethAsmInst()"); return 100; } protected internal int NestMethFoaInst(){ Console.WriteLine("A::NestMethFoaInst()"); return 100; } ////////////////////////////// // Static NestMethods public static int NestMethPubStat(){ Console.WriteLine("A::NestMethPubStat()"); return 100; } private static int NestMethPrivStat(){ Console.WriteLine("A::NestMethPrivStat()"); return 100; } protected static int NestMethFamStat(){ Console.WriteLine("A::NestMethFamStat()"); return 100; } internal static int NestMethAsmStat(){ Console.WriteLine("A::NestMethAsmStat()"); return 100; } protected internal static int NestMethFoaStat(){ Console.WriteLine("A::NestMethFoaStat()"); return 100; } ////////////////////////////// // Virtual Instance NestMethods public virtual int NestMethPubVirt(){ Console.WriteLine("A::NestMethPubVirt()"); return 100; } //@csharp - Note that C# won't compile an illegal private virtual function //So there is no negative testing NestMethPrivVirt() here. protected virtual int NestMethFamVirt(){ Console.WriteLine("A::NestMethFamVirt()"); return 100; } internal virtual int NestMethAsmVirt(){ Console.WriteLine("A::NestMethAsmVirt()"); return 100; } protected internal virtual int NestMethFoaVirt(){ Console.WriteLine("A::NestMethFoaVirt()"); return 100; } public class Cls2{ public int Test(){ int mi_RetCode = 100; ///////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// // ACCESS ENCLOSING FIELDS/MEMBERS ///////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////// //@csharp - C# will not allow nested classes to access non-static members of their enclosing classes ///////////////////////////////// // Test static field access FldPubStat = 100; if(FldPubStat != 100) mi_RetCode = 0; FldFamStat = 100; if(FldFamStat != 100) mi_RetCode = 0; FldAsmStat = 100; if(FldAsmStat != 100) mi_RetCode = 0; FldFoaStat = 100; if(FldFoaStat != 100) mi_RetCode = 0; ///////////////////////////////// // Test static method access if(MethPubStat() != 100) mi_RetCode = 0; if(MethFamStat() != 100) mi_RetCode = 0; if(MethAsmStat() != 100) mi_RetCode = 0; if(MethFoaStat() != 100) mi_RetCode = 0; //////////////////////////////////////////// // Test access from within the nested class //@todo - Look at testing accessing one nested class from another, @bugug - NEED TO ADD SUCH TESTING, access the public nested class fields from here, etc... ///////////////////////////////// // Test static field access NestFldPubStat = 100; if(NestFldPubStat != 100) mi_RetCode = 0; NestFldFamStat = 100; if(NestFldFamStat != 100) mi_RetCode = 0; NestFldAsmStat = 100; if(NestFldAsmStat != 100) mi_RetCode = 0; NestFldFoaStat = 100; if(NestFldFoaStat != 100) mi_RetCode = 0; ///////////////////////////////// // Test static method access if(NestMethPubStat() != 100) mi_RetCode = 0; if(NestMethFamStat() != 100) mi_RetCode = 0; if(NestMethAsmStat() != 100) mi_RetCode = 0; if(NestMethFoaStat() != 100) mi_RetCode = 0; return mi_RetCode; } ////////////////////////////// // Instance Fields public int Nest2FldPubInst; private int Nest2FldPrivInst; protected int Nest2FldFamInst; //Translates to "family" internal int Nest2FldAsmInst; //Translates to "assembly" protected internal int Nest2FldFoaInst; //Translates to "famorassem" ////////////////////////////// // Static Fields public static int Nest2FldPubStat; private static int Nest2FldPrivStat; protected static int Nest2FldFamStat; //family internal static int Nest2FldAsmStat; //assembly protected internal static int Nest2FldFoaStat; //famorassem ////////////////////////////// // Instance Nest2Methods public int Nest2MethPubInst(){ Console.WriteLine("A::Nest2MethPubInst()"); return 100; } private int Nest2MethPrivInst(){ Console.WriteLine("A::Nest2MethPrivInst()"); return 100; } protected int Nest2MethFamInst(){ Console.WriteLine("A::Nest2MethFamInst()"); return 100; } internal int Nest2MethAsmInst(){ Console.WriteLine("A::Nest2MethAsmInst()"); return 100; } protected internal int Nest2MethFoaInst(){ Console.WriteLine("A::Nest2MethFoaInst()"); return 100; } ////////////////////////////// // Static Nest2Methods public static int Nest2MethPubStat(){ Console.WriteLine("A::Nest2MethPubStat()"); return 100; } private static int Nest2MethPrivStat(){ Console.WriteLine("A::Nest2MethPrivStat()"); return 100; } protected static int Nest2MethFamStat(){ Console.WriteLine("A::Nest2MethFamStat()"); return 100; } internal static int Nest2MethAsmStat(){ Console.WriteLine("A::Nest2MethAsmStat()"); return 100; } protected internal static int Nest2MethFoaStat(){ Console.WriteLine("A::Nest2MethFoaStat()"); return 100; } ////////////////////////////// // Virtual Instance Nest2Methods public virtual int Nest2MethPubVirt(){ Console.WriteLine("A::Nest2MethPubVirt()"); return 100; } //@csharp - Note that C# won't compile an illegal private virtual function //So there is no negative testing Nest2MethPrivVirt() here. protected virtual int Nest2MethFamVirt(){ Console.WriteLine("A::Nest2MethFamVirt()"); return 100; } internal virtual int Nest2MethAsmVirt(){ Console.WriteLine("A::Nest2MethAsmVirt()"); return 100; } protected internal virtual int Nest2MethFoaVirt(){ Console.WriteLine("A::Nest2MethFoaVirt()"); return 100; } } } }
25.977941
161
0.598453
[ "MIT" ]
2m0nd/runtime
src/tests/Loader/classloader/v1/Beta1/Layout/Matrix/cs/L-1-6-3D.cs
10,599
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using T_MARIANA_GUSTAVO_BACKEND_ROMAN.Interfaces; using T_MARIANA_GUSTAVO_BACKEND_ROMAN.Repositories; namespace T_MARIANA_GUSTAVO_BACKEND_ROMAN.Controllers { [Route("api/[controller]")] [Produces("application/json")] [ApiController] public class TemasController : ControllerBase { private ITemasRepository temasRepository { get; set; } public TemasController() { temasRepository = new TemasRepository(); } //[Authorize] [HttpGet] public IActionResult Listar() { return Ok(temasRepository.Listar()); } } }
25.242424
62
0.695078
[ "MIT" ]
regiamariana/Sprint4-exerc-cios
Roman/BACKEND/T_MARIANA_GUSTAVO_BACKEND_ROMAN/T_MARIANA_GUSTAVO_BACKEND_ROMAN/Controllers/TemasController.cs
835
C#
using System; // ReSharper disable once CheckNamespace namespace Bing.Utils.Extensions { /// <summary> /// 字节值(<see cref="Byte"/>) 扩展 /// </summary> public static class ByteExtensions { #region Max(获取两个数中最大值) /// <summary> /// 获取两个数中最大值 /// </summary> /// <param name="value1">值1</param> /// <param name="value2">值2</param> /// <returns></returns> public static byte Max(this byte value1, byte value2) { return Math.Max(value1, value2); } #endregion #region Min(获取两个数中最小值) /// <summary> /// 获取两个数中最小值 /// </summary> /// <param name="value1">值1</param> /// <param name="value2">值2</param> /// <returns></returns> public static byte Min(this byte value1, byte value2) { return Math.Min(value1, value2); } #endregion } }
22.093023
61
0.511579
[ "MIT" ]
Alean-singleDog/Bing.NetCore
src/Bing.Utils/Extensions/Bases/ByteExtensions.cs
1,042
C#
using System; namespace ReactIdentity { 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; } } }
19.3125
70
0.576052
[ "MIT" ]
aurlaw/ReactIdentity
ReactIdentity/WeatherForecast.cs
309
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading; using System.Xml; using InvoiceClient.Helper; using InvoiceClient.Properties; using Model.Locale; using Model.Schema.EIVO; using Model.Schema.EIVO.B2B; using Model.Schema.TXN; using Utility; namespace InvoiceClient.Agent.MIGHelper { public class D0401Watcher : C0401Watcher { public D0401Watcher(String fullPath) : base(fullPath) { } protected override XmlDocument prepareInvoiceDocument(string invoiceFile) { XmlDocument docInv = new XmlDocument(); docInv.Load(invoiceFile); AllowanceRoot root = new AllowanceRoot { }; if (docInv.DocumentElement != null) { docInv.DocumentElement.SetAttribute("xmlns", "urn:GEINV:eInvoiceMessage:D0401:3.2"); docInv.LoadXml(docInv.OuterXml); var D0401 = docInv.ConvertTo<Model.Schema.TurnKey.D0401.Allowance>(); root.Allowance = new AllowanceRootAllowance[] { new AllowanceRootAllowance { SellerName = D0401.Main?.Seller?.Name, SellerId = D0401.Main?.Seller?.Identifier, BuyerId = D0401.Main?.Buyer?.Identifier, BuyerName = D0401.Main?.Buyer?.Name, AllowanceDate = D0401.Main?.AllowanceDate!=null && D0401.Main?.AllowanceDate.Length==8 ? $"{D0401.Main.AllowanceDate.Substring(0,4)}/{D0401.Main.AllowanceDate.Substring(4,2)}/{D0401.Main.AllowanceDate.Substring(6)}" : null, AllowanceNumber = D0401.Main?.AllowanceNumber, AllowanceType = (byte?)D0401.Main?.AllowanceType ?? 1, TaxAmount = D0401.Amount?.TaxAmount ?? 0, TotalAmount = D0401.Amount?.TotalAmount ?? 0, Contact = new AllowanceRootAllowanceContact { Address = D0401.Main?.Buyer?.Address, Email = D0401.Main?.Buyer?.EmailAddress, Name = D0401.Main?.Buyer?.Name, TEL = D0401.Main?.Buyer?.TelephoneNumber, }, } }; short idx = 1; short seqNo = 1; bool result = false; bool parseSeqNo(String sequenceNumber) { result = sequenceNumber != null && short.TryParse(sequenceNumber, out seqNo); return result; } root.Allowance[0].AllowanceItem = D0401.Details.Select(d => new AllowanceRootAllowanceAllowanceItem { OriginalDescription = d.OriginalDescription, OriginalInvoiceDate = d.OriginalInvoiceDate != null && d.OriginalInvoiceDate.Length == 8 ? $"{d.OriginalInvoiceDate.Substring(0, 4)}/{d.OriginalInvoiceDate.Substring(4, 2)}/{d.OriginalInvoiceDate.Substring(6)}" : null, OriginalInvoiceNumber = d.OriginalInvoiceNumber, OriginalSequenceNumberSpecified = parseSeqNo(d.OriginalSequenceNumber), OriginalSequenceNumber = result ? seqNo : (short?)null, AllowanceSequenceNumber = idx++, Tax = d.Tax, TaxType = (byte)d.TaxType, Quantity = d.Quantity, Unit = d.Unit, UnitPrice = d.UnitPrice, Amount = d.Amount, }).ToArray(); } return root.ConvertToXml(); } protected override Root processUpload(WS_Invoice.eInvoiceService invSvc, XmlDocument docInv) { var result = invSvc.UploadAllowanceByClient(docInv, Settings.Default.ClientID, (int)_channelID).ConvertTo<Root>(); return result; } } }
41.708738
160
0.524907
[ "MIT" ]
uxb2bralph/IFS-EIVO03
InvoiceClient/Agent/MIGHelper/D0401Watcher.cs
4,298
C#
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; namespace coderush { public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseKestrel() .UseContentRoot(Directory.GetCurrentDirectory()) .UseIISIntegration() .UseStartup<Startup>(); } }
26.285714
76
0.661685
[ "MIT" ]
newusertesr26/New-Coderush
coderush/Program.cs
738
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using NUnit.Framework; using osu.Game.Beatmaps.Legacy; using osu.Game.Rulesets.Osu.Mods; using osu.Game.Tests.Beatmaps; namespace osu.Game.Rulesets.Osu.Tests { [TestFixture] public class OsuLegacyModConversionTest : LegacyModConversionTest { [TestCase(LegacyMods.Easy, new[] { typeof(OsuModEasy) })] [TestCase(LegacyMods.HardRock | LegacyMods.DoubleTime, new[] { typeof(OsuModHardRock), typeof(OsuModDoubleTime) })] [TestCase(LegacyMods.DoubleTime, new[] { typeof(OsuModDoubleTime) })] [TestCase(LegacyMods.Nightcore, new[] { typeof(OsuModNightcore) })] [TestCase(LegacyMods.Nightcore | LegacyMods.DoubleTime, new[] { typeof(OsuModNightcore) })] [TestCase(LegacyMods.Flashlight | LegacyMods.Nightcore | LegacyMods.DoubleTime, new[] { typeof(OsuModFlashlight), typeof(OsuModFlashlight) })] [TestCase(LegacyMods.Perfect, new[] { typeof(OsuModPerfect) })] [TestCase(LegacyMods.SuddenDeath, new[] { typeof(OsuModSuddenDeath) })] [TestCase(LegacyMods.Perfect | LegacyMods.SuddenDeath, new[] { typeof(OsuModPerfect) })] [TestCase(LegacyMods.Perfect | LegacyMods.SuddenDeath | LegacyMods.DoubleTime, new[] { typeof(OsuModDoubleTime), typeof(OsuModPerfect) })] [TestCase(LegacyMods.SpunOut | LegacyMods.Easy, new[] { typeof(OsuModSpunOut), typeof(OsuModEasy) })] public new void Test(LegacyMods legacyMods, Type[] expectedMods) => base.Test(legacyMods, expectedMods); protected override Ruleset CreateRuleset() => new OsuRuleset(); } }
56.290323
151
0.70659
[ "MIT" ]
AaqibAhamed/osu
osu.Game.Rulesets.Osu.Tests/OsuLegacyModConversionTest.cs
1,717
C#
namespace Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api202101 { using Microsoft.Azure.PowerShell.Cmdlets.Kusto.Runtime.PowerShell; /// <summary> /// A PowerShell PSTypeConverter to support converting to an instance of <see cref="ScriptListResult" /> /// </summary> public partial class ScriptListResultTypeConverter : global::System.Management.Automation.PSTypeConverter { /// <summary> /// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" /> /// parameter. /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <returns> /// <c>true</c> if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" /> /// parameter, otherwise <c>false</c>. /// </returns> public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); /// <summary> /// Determines if the converter can convert the <see cref="sourceValue"/> parameter to the <see cref="destinationType" /> /// parameter. /// </summary> /// <param name="sourceValue">the <see cref="System.Object" /> instance to check if it can be converted to the <see cref="ScriptListResult" /// /> type.</param> /// <returns> /// <c>true</c> if the instance could be converted to a <see cref="ScriptListResult" /> type, otherwise <c>false</c> /// </returns> public static bool CanConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return true; } global::System.Type type = sourceValue.GetType(); if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { // we say yest to PSObjects return true; } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { // we say yest to Hashtables/dictionaries return true; } try { if (null != sourceValue.ToJsonString()) { return true; } } catch { // Not one of our objects } try { string text = sourceValue.ToString()?.Trim(); return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.Kusto.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.Kusto.Runtime.Json.JsonType.Object; } catch { // Doesn't look like it can be treated as JSON } return false; } /// <summary> /// Determines if the <see cref="sourceValue" /> parameter can be converted to the <see cref="destinationType" /> parameter /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <returns> /// <c>true</c> if the converter can convert the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> /// parameter, otherwise <c>false</c> /// </returns> public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; /// <summary> /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider" /// /> and <see cref="ignoreCase" /> /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <param name="formatProvider">not used by this TypeConverter.</param> /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param> /// <returns> /// an instance of <see cref="ScriptListResult" />, or <c>null</c> if there is no suitable conversion. /// </returns> public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); /// <summary> /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider" /// /> and <see cref="ignoreCase" /> /// </summary> /// <param name="sourceValue">the value to convert into an instance of <see cref="ScriptListResult" />.</param> /// <returns> /// an instance of <see cref="ScriptListResult" />, or <c>null</c> if there is no suitable conversion. /// </returns> public static Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api202101.IScriptListResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); if (typeof(Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api202101.IScriptListResult).IsAssignableFrom(type)) { return sourceValue; } try { return ScriptListResult.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; } catch { // Unable to use JSON pattern } if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) { return ScriptListResult.DeserializeFromPSObject(sourceValue); } if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) { return ScriptListResult.DeserializeFromDictionary(sourceValue); } return null; } /// <summary>NotImplemented -- this will return <c>null</c></summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <param name="formatProvider">not used by this TypeConverter.</param> /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param> /// <returns>will always return <c>null</c>.</returns> public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; } }
51.197183
241
0.580605
[ "MIT" ]
Agazoth/azure-powershell
src/Kusto/generated/api/Models/Api202101/ScriptListResult.TypeConverter.cs
7,129
C#
// Copyright (C) 2013 Xtensive LLC. // All rights reserved. // For conditions of distribution and use, see license. // Created by: Denis Krjuchkov // Created: 2013.12.11 using System; using System.Linq.Expressions; using Xtensive.Core; namespace Xtensive.Orm.Linq.Model { internal static class QueryParser { public static GroupByQuery ParseGroupBy(MethodCallExpression mc) { var method = mc.Method.GetGenericMethodDefinition(); if (method==QueryableMethodInfo.GroupBy) return new GroupByQuery { Source = mc.Arguments[0], KeySelector = mc.Arguments[1].StripQuotes(), }; if (method==QueryableMethodInfo.GroupByWithElementSelector) return new GroupByQuery { Source = mc.Arguments[0], KeySelector = mc.Arguments[1].StripQuotes(), ElementSelector = mc.Arguments[2].StripQuotes(), }; if (method==QueryableMethodInfo.GroupByWithResultSelector) return new GroupByQuery { Source = mc.Arguments[0], KeySelector = mc.Arguments[1].StripQuotes(), ResultSelector = mc.Arguments[2].StripQuotes(), }; if (method==QueryableMethodInfo.GroupByWithElementAndResultSelectors) return new GroupByQuery { Source = mc.Arguments[0], KeySelector = mc.Arguments[1].StripQuotes(), ElementSelector = mc.Arguments[2].StripQuotes(), ResultSelector = mc.Arguments[3].StripQuotes() }; throw new NotSupportedException(string.Format( Strings.ExGroupByOverloadXIsNotSupported, mc.ToString(true))); } } }
32.5
76
0.636095
[ "MIT" ]
SergeiPavlov/dataobjects-net
DataObjects/Orm/Linq/Model/QueryParser.cs
1,692
C#
using System; using UnityEngine; // Token: 0x02000333 RID: 819 public class BatheEventScript : MonoBehaviour { // Token: 0x0600173F RID: 5951 RVA: 0x000B6FFF File Offset: 0x000B53FF private void Start() { this.RivalPhone.SetActive(false); if (DateGlobals.Weekday != this.EventDay) { base.enabled = false; } } // Token: 0x06001740 RID: 5952 RVA: 0x000B7024 File Offset: 0x000B5424 private void Update() { if (!this.Clock.StopTime && !this.EventActive && this.Clock.HourTime > this.EventTime) { this.EventStudent = this.StudentManager.Students[30]; if (this.EventStudent != null && !this.EventStudent.Distracted && !this.EventStudent.Talking && !this.EventStudent.Meeting && this.EventStudent.Indoors) { if (!this.EventStudent.WitnessedMurder) { this.OriginalPosition = this.EventStudent.Cosmetic.FemaleAccessories[3].transform.localPosition; this.EventStudent.CurrentDestination = this.StudentManager.FemaleStripSpot; this.EventStudent.Pathfinding.target = this.StudentManager.FemaleStripSpot; this.EventStudent.Character.GetComponent<Animation>().CrossFade(this.EventStudent.WalkAnim); this.EventStudent.Pathfinding.canSearch = true; this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.SpeechLines.Stop(); this.EventStudent.DistanceToDestination = 100f; this.EventStudent.SmartPhone.SetActive(false); this.EventStudent.Obstacle.checkTime = 99f; this.EventStudent.InEvent = true; this.EventStudent.Private = true; this.EventStudent.Prompt.Hide(); this.EventStudent.Hearts.Stop(); this.EventActive = true; if (this.EventStudent.Following) { this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.Following = false; this.EventStudent.Routine = true; this.Yandere.Followers--; this.EventStudent.Subtitle.UpdateLabel(SubtitleType.StopFollowApology, 0, 3f); this.EventStudent.Prompt.Label[0].text = " Talk"; } } else { base.enabled = false; } } } if (this.EventActive) { if (this.Clock.HourTime > this.EventTime + 1f || this.EventStudent.WitnessedMurder || this.EventStudent.Splashed || this.EventStudent.Alarmed || this.EventStudent.Dying || !this.EventStudent.Alive) { this.EndEvent(); } else { if (this.EventStudent.DistanceToDestination < 0.5f) { if (this.EventPhase == 1) { this.EventStudent.Routine = false; this.EventStudent.BathePhase = 1; this.EventStudent.Wet = true; this.EventPhase++; } else if (this.EventPhase == 2) { if (this.EventStudent.BathePhase == 4) { this.RivalPhone.SetActive(true); this.EventPhase++; } } else if (this.EventPhase == 3 && !this.EventStudent.Wet) { this.EndEvent(); } } if (this.EventPhase == 4) { this.Timer += Time.deltaTime; if (this.Timer > this.CurrentClipLength + 1f) { this.EventStudent.Routine = true; this.EndEvent(); } } float num = Vector3.Distance(this.Yandere.transform.position, this.EventStudent.transform.position); if (num < 11f) { if (num < 10f) { float num2 = Mathf.Abs((num - 10f) * 0.2f); if (num2 < 0f) { num2 = 0f; } if (num2 > 1f) { num2 = 1f; } this.EventSubtitle.transform.localScale = new Vector3(num2, num2, num2); } else { this.EventSubtitle.transform.localScale = Vector3.zero; } } } } } // Token: 0x06001741 RID: 5953 RVA: 0x000B74CC File Offset: 0x000B58CC private void EndEvent() { if (!this.EventOver) { if (this.VoiceClip != null) { UnityEngine.Object.Destroy(this.VoiceClip); } this.EventStudent.CurrentDestination = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Pathfinding.target = this.EventStudent.Destinations[this.EventStudent.Phase]; this.EventStudent.Obstacle.checkTime = 1f; if (!this.EventStudent.Dying) { this.EventStudent.Prompt.enabled = true; this.EventStudent.Pathfinding.canSearch = true; this.EventStudent.Pathfinding.canMove = true; this.EventStudent.Pathfinding.speed = 1f; this.EventStudent.TargetDistance = 1f; this.EventStudent.Private = false; } this.EventStudent.InEvent = false; this.EventSubtitle.text = string.Empty; this.StudentManager.UpdateStudents(0); } this.EventActive = false; base.enabled = false; } // Token: 0x040016A7 RID: 5799 public StudentManagerScript StudentManager; // Token: 0x040016A8 RID: 5800 public YandereScript Yandere; // Token: 0x040016A9 RID: 5801 public ClockScript Clock; // Token: 0x040016AA RID: 5802 public StudentScript EventStudent; // Token: 0x040016AB RID: 5803 public UILabel EventSubtitle; // Token: 0x040016AC RID: 5804 public AudioClip[] EventClip; // Token: 0x040016AD RID: 5805 public string[] EventSpeech; // Token: 0x040016AE RID: 5806 public string[] EventAnim; // Token: 0x040016AF RID: 5807 public GameObject RivalPhone; // Token: 0x040016B0 RID: 5808 public GameObject VoiceClip; // Token: 0x040016B1 RID: 5809 public bool EventActive; // Token: 0x040016B2 RID: 5810 public bool EventOver; // Token: 0x040016B3 RID: 5811 public float EventTime = 15.1f; // Token: 0x040016B4 RID: 5812 public int EventPhase = 1; // Token: 0x040016B5 RID: 5813 public DayOfWeek EventDay = DayOfWeek.Thursday; // Token: 0x040016B6 RID: 5814 public Vector3 OriginalPosition; // Token: 0x040016B7 RID: 5815 public float CurrentClipLength; // Token: 0x040016B8 RID: 5816 public float Timer; }
28
200
0.68323
[ "Unlicense" ]
larryeedwards/openyan
Assembly-CSharp/BatheEventScript.cs
5,798
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Linq; using Microsoft.Toolkit.Uwp.UI.Lottie.WinCompData; namespace Microsoft.Toolkit.Uwp.UI.Lottie.UIData.Tools { /// <summary> /// Calculates stats for a WinCompData tree. Used to report the size of data /// and the effectiveness of optimization. /// </summary> #if PUBLIC_UIData public #endif sealed class Stats { public Stats(CompositionObject root) { var objectGraph = Graph.FromCompositionObject(root, includeVertices: false); CompositionPathCount = objectGraph.CompositionPathNodes.Count(); CanvasGeometryCount = objectGraph.CanvasGeometryNodes.Count(); foreach (var n in objectGraph.CompositionObjectNodes) { CompositionObjectCount++; switch (n.Object.Type) { case CompositionObjectType.AnimationController: AnimationControllerCount++; break; case CompositionObjectType.ColorKeyFrameAnimation: ColorKeyFrameAnimationCount++; break; case CompositionObjectType.CompositionColorBrush: ColorBrushCount++; break; case CompositionObjectType.CompositionColorGradientStop: ColorGradientStopCount++; break; case CompositionObjectType.CompositionContainerShape: ContainerShapeCount++; break; case CompositionObjectType.CompositionEffectBrush: EffectBrushCount++; break; case CompositionObjectType.CompositionEllipseGeometry: EllipseGeometryCount++; break; case CompositionObjectType.CompositionGeometricClip: GeometricClipCount++; break; case CompositionObjectType.CompositionLinearGradientBrush: LinearGradientBrushCount++; break; case CompositionObjectType.CompositionPathGeometry: PathGeometryCount++; break; case CompositionObjectType.CompositionPropertySet: { var propertyCount = ((CompositionPropertySet)n.Object).Names.Count(); if (propertyCount > 0) { PropertySetCount++; PropertySetPropertyCount += propertyCount; } } break; case CompositionObjectType.CompositionRadialGradientBrush: RadialGradientBrushCount++; break; case CompositionObjectType.CompositionRectangleGeometry: RectangleGeometryCount++; break; case CompositionObjectType.CompositionRoundedRectangleGeometry: RoundedRectangleGeometryCount++; break; case CompositionObjectType.CompositionSpriteShape: SpriteShapeCount++; break; case CompositionObjectType.CompositionSurfaceBrush: SurfaceBrushCount++; break; case CompositionObjectType.CompositionViewBox: ViewBoxCount++; break; case CompositionObjectType.CompositionVisualSurface: VisualSurfaceCount++; break; case CompositionObjectType.ContainerVisual: ContainerVisualCount++; break; case CompositionObjectType.CubicBezierEasingFunction: CubicBezierEasingFunctionCount++; break; case CompositionObjectType.ExpressionAnimation: ExpressionAnimationCount++; break; case CompositionObjectType.InsetClip: InsetClipCount++; break; case CompositionObjectType.LinearEasingFunction: LinearEasingFunctionCount++; break; case CompositionObjectType.PathKeyFrameAnimation: PathKeyFrameAnimationCount++; break; case CompositionObjectType.ScalarKeyFrameAnimation: ScalarKeyFrameAnimationCount++; break; case CompositionObjectType.ShapeVisual: ShapeVisualCount++; break; case CompositionObjectType.SpriteVisual: SpriteVisualCount++; break; case CompositionObjectType.StepEasingFunction: StepEasingFunctionCount++; break; case CompositionObjectType.Vector2KeyFrameAnimation: Vector2KeyFrameAnimationCount++; break; case CompositionObjectType.Vector3KeyFrameAnimation: Vector3KeyFrameAnimationCount++; break; case CompositionObjectType.Vector4KeyFrameAnimation: Vector4KeyFrameAnimationCount++; break; default: throw new InvalidOperationException(); } } } public int CompositionObjectCount { get; } public int CompositionPathCount { get; } public int CanvasGeometryCount { get; } public int AnimationControllerCount { get; } public int ColorKeyFrameAnimationCount { get; } public int ColorBrushCount { get; } public int ColorGradientStopCount { get; } public int ContainerShapeCount { get; } public int EffectBrushCount { get; } public int EllipseGeometryCount { get; } public int GeometricClipCount { get; } public int LinearGradientBrushCount { get; } public int PathGeometryCount { get; } public int PropertySetPropertyCount { get; } public int PropertySetCount { get; } public int RadialGradientBrushCount { get; } public int RectangleGeometryCount { get; } public int RoundedRectangleGeometryCount { get; } public int SpriteShapeCount { get; } public int SurfaceBrushCount { get; } public int ViewBoxCount { get; } public int VisualSurfaceCount { get; } public int ContainerVisualCount { get; } public int CubicBezierEasingFunctionCount { get; } public int ExpressionAnimationCount { get; } public int InsetClipCount { get; } public int LinearEasingFunctionCount { get; } public int PathKeyFrameAnimationCount { get; } public int ScalarKeyFrameAnimationCount { get; } public int ShapeVisualCount { get; } public int SpriteVisualCount { get; } public int StepEasingFunctionCount { get; } public int Vector2KeyFrameAnimationCount { get; } public int Vector3KeyFrameAnimationCount { get; } public int Vector4KeyFrameAnimationCount { get; } } }
38.295238
97
0.536309
[ "MIT" ]
salmanmkc/Lottie-Windows
source/UIData/Tools/Stats.cs
8,042
C#
using Abp.AutoMapper; using Project1.Authentication.External; namespace Project1.Models.TokenAuth { [AutoMapFrom(typeof(ExternalLoginProviderInfo))] public class ExternalLoginProviderInfoModel { public string Name { get; set; } public string ClientId { get; set; } } }
21.714286
52
0.710526
[ "MIT" ]
buiphuocnhat/DemoBoilerPlate
aspnet-core/src/Project1.Web.Core/Models/TokenAuth/ExternalLoginProviderInfoModel.cs
306
C#
/* * Copyright (C) Sportradar AG. See LICENSE for full license governing this code */ using System; using Sportradar.OddsFeed.SDK.Messages; using Sportradar.OddsFeed.SDK.Messages.REST; namespace Sportradar.OddsFeed.SDK.Entities.REST.Internal.DTO { /// <summary> /// A data-transfer-object for fixture change /// </summary> public class FixtureChangeDTO { /// <summary> /// Gets the <see cref="URN"/> specifying the sport event /// </summary> public URN SportEventId { get; } /// <summary> /// Gets the <see cref="DateTime"/> specifying the last update time /// </summary> public DateTime UpdateTime { get; } /// <summary> /// Gets the <see cref="DateTime"/> specifying when the associated message was generated (on the server side) /// </summary> public DateTime? GeneratedAt { get; } internal FixtureChangeDTO(fixtureChange fixtureChange, DateTime? generatedAt) { if (fixtureChange == null) throw new ArgumentNullException(nameof(fixtureChange)); SportEventId = URN.Parse(fixtureChange.sport_event_id); UpdateTime = fixtureChange.update_time; GeneratedAt = generatedAt; } } }
31.487805
117
0.625097
[ "Apache-2.0" ]
sportradar/UnifiedOddsSdkNet
src/Sportradar.OddsFeed.SDK.Entities.REST/Internal/DTO/FixtureChangeDTO.cs
1,293
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.Collections; using System.Collections.Generic; using Xunit; namespace System.ComponentModel.Design.Tests { public class DesignerActionListsChangedEventArgsTests { public static IEnumerable<object[]> Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection_TestData() { yield return new object[] { null, DesignerActionListsChangedType.ActionListsAdded - 1, null }; yield return new object[] { new object(), DesignerActionListsChangedType.ActionListsAdded, new DesignerActionListCollection() }; } [Theory] [MemberData(nameof(Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection_TestData))] public void Ctor_Object_DesignerActionListsChangedType_DesignerActionListCollection(object relatedObject, DesignerActionListsChangedType changeType, DesignerActionListCollection actionLists) { var e = new DesignerActionListsChangedEventArgs(relatedObject, changeType, actionLists); Assert.Same(relatedObject, e.RelatedObject); Assert.Equal(changeType, e.ChangeType); Assert.Same(actionLists, e.ActionLists); } } }
46.766667
198
0.753386
[ "MIT" ]
15835229565/winforms-1
src/System.Windows.Forms.Design/tests/UnitTests/System/ComponentModel/Design/DesignerActionListsChangedEventArgsTests.cs
1,403
C#
/** * Copyright 2015 Canada Health Infoway, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Author: $LastChangedBy: tmcgrady $ * Last modified: $LastChangedDate: 2011-05-04 15:47:15 -0400 (Wed, 04 May 2011) $ * Revision: $LastChangedRevision: 2623 $ */ /* This class was auto-generated by the message builder generator tools. */ using Ca.Infoway.Messagebuilder; namespace Ca.Infoway.Messagebuilder.Model.Ab_r02_04_03_imm.Domainvalue { public interface ActClassConsent : Code { } }
37.642857
83
0.711575
[ "ECL-2.0", "Apache-2.0" ]
CanadaHealthInfoway/message-builder-dotnet
message-builder-release-ab-r02_04_03_imm/Main/Ca/Infoway/Messagebuilder/Model/Ab_r02_04_03_imm/Domainvalue/ActClassConsent.cs
1,054
C#
#if !NO_RUNTIME using System; using ProtoBuf.Meta; #if FEAT_IKVM using Type = IKVM.Reflection.Type; using IKVM.Reflection; #else using System.Reflection; #endif namespace ProtoBuf.Serializers { sealed class PropertyDecorator : ProtoDecoratorBase { public override Type ExpectedType { get { return forType; } } private readonly PropertyInfo property; private readonly Type forType; public override bool RequiresOldValue { get { return true; } } public override bool ReturnsValue { get { return false; } } private readonly bool readOptionsWriteValue; private readonly MethodInfo shadowSetter; public PropertyDecorator(TypeModel model, Type forType, PropertyInfo property, IProtoSerializer tail) : base(tail) { Helpers.DebugAssert(forType != null); Helpers.DebugAssert(property != null); this.forType = forType; this.property = property; SanityCheck(model, property, tail, out readOptionsWriteValue, true, true); shadowSetter = GetShadowSetter(model, property); } private static void SanityCheck(TypeModel model, PropertyInfo property, IProtoSerializer tail, out bool writeValue, bool nonPublic, bool allowInternal) { if (property == null) throw new ArgumentNullException("property"); writeValue = tail.ReturnsValue && (GetShadowSetter(model, property) != null || (property.CanWrite && Helpers.GetSetMethod(property, nonPublic, allowInternal) != null)); if (!property.CanRead || Helpers.GetGetMethod(property, nonPublic, allowInternal) == null) { throw new InvalidOperationException("Cannot serialize property without a get accessor"); } if (!writeValue && (!tail.RequiresOldValue || Helpers.IsValueType(tail.ExpectedType))) { // so we can't save the value, and the tail doesn't use it either... not helpful // or: can't write the value, so the struct value will be lost throw new InvalidOperationException("Cannot apply changes to property " + property.DeclaringType.FullName + "." + property.Name); } } static MethodInfo GetShadowSetter(TypeModel model, PropertyInfo property) { #if WINRT || COREFX MethodInfo method = Helpers.GetInstanceMethod(property.DeclaringType.GetTypeInfo(), "Set" + property.Name, new Type[] { property.PropertyType }); #else #if FEAT_IKVM Type reflectedType = property.DeclaringType; #else Type reflectedType = property.ReflectedType; #endif MethodInfo method = Helpers.GetInstanceMethod(reflectedType, "Set" + property.Name, new Type[] { property.PropertyType }); #endif if (method == null || !method.IsPublic || method.ReturnType != model.MapType(typeof(void))) return null; return method; } #if !FEAT_IKVM public override void Write(object value, ProtoWriter dest) { Helpers.DebugAssert(value != null); value = property.GetValue(value, null); if (value != null) Tail.Write(value, dest); } public override object Read(object value, ProtoReader source) { Helpers.DebugAssert(value != null); object oldVal = Tail.RequiresOldValue ? property.GetValue(value, null) : null; object newVal = Tail.Read(oldVal, source); if (readOptionsWriteValue && newVal != null) // if the tail returns a null, intepret that as *no assign* { if (shadowSetter == null) { property.SetValue(value, newVal, null); } else { shadowSetter.Invoke(value, new object[] { newVal }); } } return null; } #endif #if UNITY_STANDALONE || UNITY_ANDROID || UNITY_IOS || UNITY_WSA || SERVICE protected override void EmitWrite(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { ctx.LoadAddress(valueFrom, ExpectedType); ctx.LoadValue(property); ctx.WriteNullCheckedTail(property.PropertyType, Tail, null); } protected override void EmitRead(Compiler.CompilerContext ctx, Compiler.Local valueFrom) { SanityCheck(ctx.Model, property, Tail, out bool writeValue, ctx.NonPublic, ctx.AllowInternal(property)); if (Helpers.IsValueType(ExpectedType) && valueFrom == null) { throw new InvalidOperationException("Attempt to mutate struct on the head of the stack; changes would be lost"); } using (Compiler.Local loc = ctx.GetLocalWithValue(ExpectedType, valueFrom)) { if (Tail.RequiresOldValue) { ctx.LoadAddress(loc, ExpectedType); // stack is: old-addr ctx.LoadValue(property); // stack is: old-value } Type propertyType = property.PropertyType; ctx.ReadNullCheckedTail(propertyType, Tail, null); // stack is [new-value] if (writeValue) { using (Compiler.Local newVal = new Compiler.Local(ctx, property.PropertyType)) { ctx.StoreValue(newVal); // stack is empty Compiler.CodeLabel allDone = new Compiler.CodeLabel(); // <=== default structs if (!Helpers.IsValueType(propertyType)) { // if the tail returns a null, intepret that as *no assign* allDone = ctx.DefineLabel(); ctx.LoadValue(newVal); // stack is: new-value ctx.BranchIfFalse(@allDone, true); // stack is empty } // assign the value ctx.LoadAddress(loc, ExpectedType); // parent-addr ctx.LoadValue(newVal); // parent-obj|new-value if (shadowSetter == null) { ctx.StoreValue(property); // empty } else { ctx.EmitCall(shadowSetter); // empty } if (!Helpers.IsValueType(propertyType)) { ctx.MarkLabel(allDone); } } } else { // don't want return value; drop it if anything there // stack is [new-value] if (Tail.ReturnsValue) { ctx.DiscardValue(); } } } } #endif internal static bool CanWrite(TypeModel model, MemberInfo member) { if (member == null) throw new ArgumentNullException("member"); PropertyInfo prop = member as PropertyInfo; if (prop != null) return prop.CanWrite || GetShadowSetter(model, prop) != null; return member is FieldInfo; // fields are always writeable; anything else: JUST SAY NO! } } } #endif
43.017544
180
0.567292
[ "MIT" ]
a1475775412/GameDesigner
GameDesigner/Serialize/protobuf-net/Serializers/PropertyDecorator.cs
7,358
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; namespace RemoteUnitTestExecutor.Host { public static class Program { public static void Main(string[] args) { Type t = Type.GetType("RemoteUnitTestExecutor.Program, RemoteUnitTestExecutor"); var method = t.GetMethod("Main"); method.Invoke(null, new object[] { args }); } } }
27.058824
92
0.634783
[ "MIT" ]
MarcoRossignoli/CLRInstrumentationEngine
src/Tests/RemoteUnitTestExecutor.Host/Program.cs
462
C#
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; namespace Lucene.Net.Store { /// <summary> A memory-resident <see cref="IndexInput" /> implementation. /// /// </summary> public class RAMInputStream : IndexInput { internal static readonly int BUFFER_SIZE; private RAMFile file; private long length; private byte[] currentBuffer; private int currentBufferIndex; private int bufferPosition; private long bufferStart; private int bufferLength; public /*internal*/ RAMInputStream(RAMFile f) { file = f; length = file.length; if (length / BUFFER_SIZE >= System.Int32.MaxValue) { throw new System.IO.IOException("Too large RAMFile! " + length); } // make sure that we switch to the // first needed buffer lazily currentBufferIndex = - 1; currentBuffer = null; } protected override void Dispose(bool disposing) { // do nothing } public override long Length(IState state) { return length; } public override byte ReadByte(IState state) { if (bufferPosition >= bufferLength) { currentBufferIndex++; SwitchCurrentBuffer(true); } return currentBuffer[bufferPosition++]; } public override void ReadBytes(byte[] b, int offset, int len, IState state) { while (len > 0) { if (bufferPosition >= bufferLength) { currentBufferIndex++; SwitchCurrentBuffer(true); } int remainInBuffer = bufferLength - bufferPosition; int bytesToCopy = len < remainInBuffer?len:remainInBuffer; Array.Copy(currentBuffer, bufferPosition, b, offset, bytesToCopy); offset += bytesToCopy; len -= bytesToCopy; bufferPosition += bytesToCopy; } } private void SwitchCurrentBuffer(bool enforceEOF) { if (currentBufferIndex >= file.NumBuffers()) { // end of file reached, no more buffers left if (enforceEOF) throw new System.IO.IOException("Read past EOF"); else { // Force EOF if a read takes place at this position currentBufferIndex--; bufferPosition = BUFFER_SIZE; } } else { currentBuffer = file.GetBuffer(currentBufferIndex); bufferPosition = 0; bufferStart = (long) BUFFER_SIZE * (long) currentBufferIndex; long buflen = length - bufferStart; bufferLength = buflen > BUFFER_SIZE?BUFFER_SIZE:(int) buflen; } } public override long FilePointer(IState state) { return currentBufferIndex < 0 ? 0 : bufferStart + bufferPosition; } public override void Seek(long pos, IState state) { if (currentBuffer == null || pos < bufferStart || pos >= bufferStart + BUFFER_SIZE) { currentBufferIndex = (int) (pos / BUFFER_SIZE); SwitchCurrentBuffer(false); } bufferPosition = (int) (pos % BUFFER_SIZE); } static RAMInputStream() { BUFFER_SIZE = RAMOutputStream.BUFFER_SIZE; } } }
26.666667
86
0.678533
[ "Apache-2.0" ]
grisha-kotler/lucenenet
src/Lucene.Net/Store/RAMInputStream.cs
3,680
C#
using System; using System.IO; using System.Linq; using UnityEditor; using UnityEditor.Build; using UnityEditor.Build.Reporting; using UnityEngine; namespace Samples { /// <summary> /// Simple build processor that makes sure that any custom configuration that the user creates is /// correctly passed on to the provider implementation at runtime. /// /// Custom configuration instances that are stored in EditorBuildSettings are not copied to the target build /// as they are considered unreferenced assets. In order to get them to the runtime side of things, they need /// to be serialized to the build app and deserialized at runtime. Previously this would be a manual process /// requiring the implementor to manually serialize to some location that can then be read from to deserialize /// at runtime. With the new PlayerSettings Preloaded Assets API we can now just add our asset to the preloaded /// list and have it be instantiated at app launch. /// /// Note that the preloaded assets are only notified with Awake, so anything you want or need to do with the /// asset after launch needs to be handled there. /// /// More info on APIs used here: /// * &lt;a href="https://docs.unity3d.com/ScriptReference/EditorBuildSettings.html"&gt;EditorBuildSettings&lt;/a&gt; /// * &lt;a href="https://docs.unity3d.com/ScriptReference/PlayerSettings.GetPreloadedAssets.html&gt;PlayerSettings.GetPreloadedAssets&lt;/a&gt; /// * &lt;a href="https://docs.unity3d.com/ScriptReference/PlayerSettings.SetPreloadedAssets.html"&gt;PlayerSettings.SetPreloadedAssets&lt;/a&gt; /// </summary> public class SampleBuildProcessor : IPreprocessBuildWithReport, IPostprocessBuildWithReport { /// <summary>Override of <see cref="IPreprocessBuildWithReport"> and <see cref="IPostprocessBuildWithReport"></summary> public int callbackOrder { get { return 0; } } void CleanOldSettings() { UnityEngine.Object[] preloadedAssets = PlayerSettings.GetPreloadedAssets(); if (preloadedAssets == null) return; var oldSettings = from s in preloadedAssets where s != null && s.GetType() == typeof(SampleSettings) select s; if (oldSettings != null && oldSettings.Any()) { var assets = preloadedAssets.ToList(); foreach (var s in oldSettings) { assets.Remove(s); } PlayerSettings.SetPreloadedAssets(assets.ToArray()); } } /// <summary>Override of <see cref="IPreprocessBuildWithReport"></summary> /// <param name="report">Build report.</param> public void OnPreprocessBuild(BuildReport report) { // Always remember to cleanup preloaded assets after build to make sure we don't // dirty later builds with assets that may not be needed or are out of date. CleanOldSettings(); SampleSettings settings = null; EditorBuildSettings.TryGetConfigObject(SampleConstants.k_SettingsKey, out settings); if (settings == null) return; UnityEngine.Object[] preloadedAssets = PlayerSettings.GetPreloadedAssets(); if (!preloadedAssets.Contains(settings)) { var assets = preloadedAssets.ToList(); assets.Add(settings); PlayerSettings.SetPreloadedAssets(assets.ToArray()); } } /// <summary>Override of <see cref="IPostprocessBuildWithReport"></summary> /// <param name="report">Build report.</param> public void OnPostprocessBuild(BuildReport report) { // Always remember to cleanup preloaded assets after build to make sure we don't // dirty later builds with assets that may not be needed or are out of date. CleanOldSettings(); } } }
42.852632
149
0.644559
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
ArcticCloudStudios/Project-Armada
Project Armada/Library/PackageCache/com.unity.xr.management@3.0.3/Samples~/Editor/SampleBuildProcessor.cs
4,071
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Win32.SafeHandles; namespace System.Diagnostics { public static partial class Debug { private static readonly bool s_shouldWriteToStdErr = Environment.GetEnvironmentVariable("COMPlus_DebugWriteToStdErr") == "1"; private static void ShowAssertDialog(string stackTrace, string message, string detailMessage) { if (Debugger.IsAttached) { Debugger.Break(); } else { // In Core, we do not show a dialog. // Fail in order to avoid anyone catching an exception and masking // an assert failure. var ex = new DebugAssertException(message, detailMessage, stackTrace); Environment.FailFast(ex.Message, ex); } } private static void WriteCore(string message) { WriteToDebugger(message); if (s_shouldWriteToStdErr) { WriteToStderr(message); } } private static void WriteToDebugger(string message) { if (Debugger.IsLogging()) { Debugger.Log(0, null, message); } else { Interop.Sys.SysLog(Interop.Sys.SysLogPriority.LOG_USER | Interop.Sys.SysLogPriority.LOG_DEBUG, "%s", message); } } private static void WriteToStderr(string message) { // We don't want to write UTF-16 to a file like standard error. Ideally we would transcode this // to UTF8, but the downside of that is it pulls in a bunch of stuff into what is ideally // a path with minimal dependencies (as to prevent re-entrency), so we'll take the strategy // of just throwing away any non ASCII characters from the message and writing the rest const int BufferLength = 256; unsafe { byte* buf = stackalloc byte[BufferLength]; int bufCount; int i = 0; while (i < message.Length) { for (bufCount = 0; bufCount < BufferLength && i < message.Length; i++) { if (message[i] <= 0x7F) { buf[bufCount] = (byte)message[i]; bufCount++; } } int totalBytesWritten = 0; while (bufCount > 0) { int bytesWritten = Interop.Sys.Write(2 /* stderr */, buf + totalBytesWritten, bufCount); if (bytesWritten < 0) { // On error, simply stop writing the debug output. This could commonly happen if stderr // was piped to a program that ended before this program did, resulting in EPIPE errors. return; } bufCount -= bytesWritten; totalBytesWritten += bytesWritten; } } } } } }
36.135417
133
0.50418
[ "MIT" ]
Acidburn0zzz/coreclr
src/mscorlib/shared/System/Diagnostics/Debug.Unix.cs
3,469
C#
using AutoMapper; using CoachLancer.Services.Contracts; using CoachLancer.Web.ViewModels.Home; using System.Linq; using System.Web.Mvc; namespace CoachLancer.Web.Controllers { public class HomeController : Controller { private readonly ICoachService coachService; private readonly IMapper mapper; public HomeController(ICoachService coachService, IMapper mapper) { this.coachService = coachService; this.mapper = mapper; } public ActionResult Index() { return View(); } public ActionResult About() { ViewBag.Message = "Your application description page."; return View(); } public ActionResult Explore() { var coaches = this.coachService.GetLastRegisteredCoaches(10) .Select(c => this.mapper.Map<CoachThumbnailViewModel>(c)) .ToList(); return View(coaches); } } }
25.047619
74
0.576046
[ "MIT" ]
ikonomov17/CoachLancer
CoachLancer/CoachLancer.Web/Controllers/HomeController.cs
1,054
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("Reflection")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Reflection")] [assembly: AssemblyCopyright("Copyright © 2013")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("1cb00655-7a4b-4103-bd66-f2f3eb14e836")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.621622
85
0.725682
[ "MIT" ]
prime167/CSharpCodes
Code/Reflection/Properties/AssemblyInfo.cs
1,432
C#
//------------------------------------------------------------------------------ // <auto-generated> // Este código fue generado por herramienta. // // Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si // el código se vuelve a generar. // </auto-generated> //------------------------------------------------------------------------------ namespace WebApp2.Account { public partial class Login { /// <summary> /// RegisterHyperLink control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.HyperLink RegisterHyperLink; /// <summary> /// OpenAuthLogin control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::WebApp2.Account.OpenAuthProviders OpenAuthLogin; } }
31.027778
95
0.522829
[ "MIT" ]
mglezh/visual-studio-2012
WebApp2/WebApp2/Account/Login.aspx.designer.cs
1,123
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; using Microsoft.Extensions.Logging; namespace bellatrix.Pages { [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)] public class ErrorModel : PageModel { private readonly ILogger<ErrorModel> _logger; public ErrorModel(ILogger<ErrorModel> logger) { _logger = logger; } public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); public void OnGet() { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier; } } }
25.3125
88
0.681481
[ "Unlicense" ]
alesterre/Bellatrix
Pages/Error.cshtml.cs
810
C#
namespace Clase7v2.Models.TokenAuth { public class ExternalAuthenticateResultModel { public string AccessToken { get; set; } public string EncryptedAccessToken { get; set; } public int ExpireInSeconds { get; set; } public bool WaitingForActivation { get; set; } } }
22.428571
56
0.659236
[ "MIT" ]
REL1980/Clase7v2
aspnet-core/src/Clase7v2.Web.Core/Models/TokenAuth/ExternalAuthenticateResultModel.cs
316
C#
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Text; using BenchmarkDotNet.Attributes; using DotNetCross.Sorting; namespace DotNetCross.Sorting.Benchmarks { // https://github.com/KirillOsenkov/Benchmarks/blob/e9b3af701eb4bf98a598b866cc252349b50819e3/Benchmarks/Tests/SortDictionary.cs // https://gist.github.com/nietras/eb7bec7803e0e9c4e0e865a2e70ff254 [MemoryDiagnoser] public class SortDictionary { private readonly Dictionary<string, string> dictionary = new Dictionary<string, string> { { "DestinationSubPath", "ICSharpCode.Decompiler.dll" }, { "NuGetPackageId", "ICSharpCode.Decompiler" }, { "AssetType", "runtime" }, { "PackageVersion", "5.0.2.5153" }, { "PackageName", "ICSharpCode.Decompiler" }, { "NuGetPackageVersion", "5.0.2.5153" }, { "CopyLocal", "true" }, { "PathInPackage", "lib/netstandard2.0/ICSharpCode.Decompiler.dll" }, }; [Benchmark(Baseline = true)] public void OrderBy() { var result = dictionary.OrderBy(kvp => kvp.Key); foreach (var item in result) { } } private int Comparer((string, string) left, (string, string) right) { return StringComparer.OrdinalIgnoreCase.Compare(left.Item1, right.Item1); } [Benchmark] public void SortInPlaceMethodGroup() { var list = new List<(string key, string value)>(dictionary.Count); foreach (var kvp in dictionary) { list.Add((kvp.Key, kvp.Value)); } list.Sort(Comparer); foreach (var kvp in list) { } } [Benchmark] public void SortInPlaceLambda() { var list = new List<(string key, string value)>(dictionary.Count); foreach (var kvp in dictionary) { list.Add((kvp.Key, kvp.Value)); } list.Sort((l, r) => StringComparer.OrdinalIgnoreCase.Compare(l.key, r.key)); foreach (var kvp in list) { } } [Benchmark] public void IntroSortInPlaceLambda() { Span<(string key, string value)> array = new (string key, string value)[dictionary.Count]; int i = 0; foreach (var kvp in dictionary) { array[i] = (kvp.Key, kvp.Value); ++i; } // DotNetCross.Sorting preview :) array.IntroSort((l, r) => StringComparer.OrdinalIgnoreCase.Compare(l.key, r.key)); foreach (var kvp in array) { } } [Benchmark] public void IntroSortInPlaceStruct() { Span<(string key, string value)> array = new (string key, string value)[dictionary.Count]; int i = 0; foreach (var kvp in dictionary) { array[i] = (kvp.Key, kvp.Value); ++i; } // DotNetCross.Sorting preview :) array.IntroSort(new OrdinalComparer()); foreach (var kvp in array) { } } public readonly struct OrdinalComparer : IComparer<(string key, string value)> { public int Compare((string key, string value) x, (string key, string value) y) => string.Compare(x.key, y.key, StringComparison.OrdinalIgnoreCase); } } }
30.247934
131
0.540164
[ "MIT" ]
DotNetCross/Sorting
tests/DotNetCross.Sorting.Benchmarks/SortDictionary.cs
3,662
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Door : MonoBehaviour { public GameObject doorCollider; private GameObject player; private float widthOffset = 9f; private float heightOffset = 6f; // Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); } private void OnTriggerEnter2D(Collider2D other) { if (other.tag == "Player" && RoomController.instance.CouldLeaveCurrRoom()) { Room currRoom = CameraController.instance.currRoom; Vector3 roomCentre = currRoom.GetRoomCentre(); if (player.transform.position.x + 2f < roomCentre.x) { //Debug.Log("Player enter the left door"); // player.transform.position = new Vector2(player.transform.position.x - widthOffset, player.transform.position.y); player.transform.position = new Vector2(roomCentre.x - widthOffset, roomCentre.y); player.GetComponent<PlayerController>().LetFamiliarFlashToPlayerBeside(0); } else if (player.transform.position.x - 2f > roomCentre.x) { //Debug.Log("Player enter the right door"); // player.transform.position = new Vector2(player.transform.position.x + widthOffset, player.transform.position.y); player.transform.position = new Vector2(roomCentre.x + widthOffset, roomCentre.y); player.GetComponent<PlayerController>().LetFamiliarFlashToPlayerBeside(1); } else if (player.transform.position.y + 2f < roomCentre.y) { Debug.Log("Player enter the bottom door"); // player.transform.position = new Vector2(player.transform.position.x, player.transform.position.y - widthOffset); player.transform.position = new Vector2(roomCentre.x, roomCentre.y - heightOffset); player.GetComponent<PlayerController>().LetFamiliarFlashToPlayerBeside(2); } else if (player.transform.position.y - 2f > roomCentre.y) { Debug.Log("Player enter the top door"); // player.transform.position = new Vector2(player.transform.position.x, player.transform.position.y + widthOffset); player.transform.position = new Vector2(roomCentre.x, roomCentre.y + heightOffset); player.GetComponent<PlayerController>().LetFamiliarFlashToPlayerBeside(3); } } } }
46.482143
131
0.634268
[ "MIT" ]
omf2333/42019801GameProgramming
Assets/Scripts/Dungeon/Door.cs
2,603
C#
using System; using System.Diagnostics; using System.IO; using System.Linq; using System.Text.Json; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using MediatR; using Microsoft.Extensions.Logging; using Sidekick.Domain.Apis.GitHub; using Sidekick.Domain.Initialization.Notifications; using Sidekick.Extensions; using Sidekick.Infrastructure.Github.Models; using Sidekick.Localization.Update; namespace Sidekick.Infrastructure.Github.Queries { public class CheckForUpdateHandler : IQueryHandler<CheckForUpdate, bool> { private readonly IMediator mediator; private readonly ILogger<CheckForUpdateHandler> logger; private readonly IGithubClient githubClient; private readonly UpdateResources resources; public CheckForUpdateHandler( IMediator mediator, ILogger<CheckForUpdateHandler> logger, IGithubClient githubClient, UpdateResources resources) { this.mediator = mediator; this.logger = logger; this.githubClient = githubClient; this.resources = resources; } public async Task<bool> Handle(CheckForUpdate request, CancellationToken cancellationToken) { try { var release = await GetLatestRelease(); if (IsUpdateAvailable(release)) { await mediator.Publish(new InitializationProgressed(0) { Title = resources.Downloading(release.Tag), }); var path = await DownloadRelease(release); if (path == null) { await mediator.Publish(new InitializationProgressed(33) { Title = resources.Failed, }); await Task.Delay(1000); await mediator.Publish(new InitializationProgressed(66) { Title = resources.Failed, }); await Task.Delay(1000); await mediator.Publish(new InitializationProgressed(100) { Title = resources.Failed, }); await Task.Delay(1000); return false; } await mediator.Publish(new InitializationProgressed(100) { Title = resources.Downloading(release.Tag), }); await Task.Delay(1000); Process.Start(path); return true; } } catch (Exception e) { logger.LogWarning(e, "Update failed."); } return false; } /// <summary> /// Determines latest release on github. Pre-releases do not count as release, therefore we need to get the list of releases first, if no actual latest release can be found /// </summary> /// <returns></returns> private async Task<GithubRelease> GetLatestRelease() { // Get List of releases var listResponse = await githubClient.Client.GetAsync("/repos/Sidekick-Poe/Sidekick/releases"); if (listResponse.IsSuccessStatusCode) { var githubReleaseList = await JsonSerializer.DeserializeAsync<GithubRelease[]>(await listResponse.Content.ReadAsStreamAsync(), new JsonSerializerOptions { IgnoreNullValues = true, PropertyNameCaseInsensitive = true }); return githubReleaseList.FirstOrDefault(x => !x.Prerelease); } return null; } /// <summary> /// Determines if there is a newer version available /// </summary> /// <returns></returns> private bool IsUpdateAvailable(GithubRelease release) { if (release != null) { logger.LogInformation("[Updater] Found " + release.Tag + " as latest version on GitHub."); var latestVersion = new Version(Regex.Match(release.Tag, @"(\d+\.){2}\d+").ToString()); var currentVersion = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(x => x.FullName.Contains("Sidekick")).GetName().Version; var result = currentVersion.CompareTo(latestVersion); return result < 0; } else { logger.LogInformation("[Updater] No latest release found on GitHub."); } return false; } /// <summary> /// Downloads the latest release from github /// </summary> /// <returns></returns> private async Task<string> DownloadRelease(GithubRelease release) { if (release == null) return null; var downloadPath = SidekickPaths.GetDataFilePath("Sidekick-Update.exe"); if (File.Exists(downloadPath)) File.Delete(downloadPath); var downloadUrl = release.Assets.FirstOrDefault(x => x.Name == "Sidekick-Setup.exe")?.DownloadUrl; if (downloadUrl == null) return null; var response = await githubClient.Client.GetAsync(downloadUrl); using var downloadStream = await response.Content.ReadAsStreamAsync(); using var fileStream = new FileStream(downloadPath, FileMode.Create, FileAccess.Write, FileShare.None); await downloadStream.CopyToAsync(fileStream); return downloadPath; } } }
37.538961
234
0.561149
[ "MIT" ]
domialex/Sidekick
src/Sidekick.Infrastructure/Github/Commands/CheckForUpdateHandler.cs
5,781
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Runtime.Intrinsics; namespace System.Runtime.Intrinsics.X86 { /// <summary> /// This class provides access to Intel AVX2 hardware instructions via intrinsics /// </summary> [CLSCompliant(false)] public static class Avx2 { public static bool IsSupported { get { return false; } } /// <summary> /// __m256i _mm256_abs_epi8 (__m256i a) /// VPABSB ymm, ymm/m256 /// </summary> public static Vector256<byte> Abs(Vector256<sbyte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_abs_epi16 (__m256i a) /// VPABSW ymm, ymm/m256 /// </summary> public static Vector256<ushort> Abs(Vector256<short> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_abs_epi32 (__m256i a) /// VPABSD ymm, ymm/m256 /// </summary> public static Vector256<uint> Abs(Vector256<int> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi8 (__m256i a, __m256i b) /// VPADDB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Add(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi8 (__m256i a, __m256i b) /// VPADDB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Add(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi16 (__m256i a, __m256i b) /// VPADDW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Add(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi16 (__m256i a, __m256i b) /// VPADDW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Add(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi32 (__m256i a, __m256i b) /// VPADDD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Add(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi32 (__m256i a, __m256i b) /// VPADDD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Add(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi64 (__m256i a, __m256i b) /// VPADDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> Add(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_add_epi64 (__m256i a, __m256i b) /// VPADDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> Add(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_adds_epi8 (__m256i a, __m256i b) /// VPADDSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> AddSaturate(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_adds_epu8 (__m256i a, __m256i b) /// VPADDUSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> AddSaturate(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_adds_epi16 (__m256i a, __m256i b) /// VPADDSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> AddSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_adds_epu16 (__m256i a, __m256i b) /// VPADDUSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> AddSaturate(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_alignr_epi8 (__m256i a, __m256i b, const int count) /// VPALIGNR ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<sbyte> AlignRight(Vector256<sbyte> left, Vector256<sbyte> right, byte mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> And(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> And(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> And(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> And(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> And(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> And(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> And(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_and_si256 (__m256i a, __m256i b) /// VPAND ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> And(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> AndNot(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> AndNot(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> AndNot(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> AndNot(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> AndNot(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> AndNot(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> AndNot(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_andnot_si256 (__m256i a, __m256i b) /// VPANDN ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> AndNot(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_avg_epu8 (__m256i a, __m256i b) /// VPAVGB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Average(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_avg_epu16 (__m256i a, __m256i b) /// VPAVGW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Average(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_blend_epi32 (__m128i a, __m128i b, const int imm8) /// VPBLENDD xmm, xmm, xmm/m128, imm8 /// </summary> public static Vector128<int> Blend(Vector128<int> left, Vector128<int> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_blend_epi32 (__m128i a, __m128i b, const int imm8) /// VPBLENDD xmm, xmm, xmm/m128, imm8 /// </summary> public static Vector128<uint> Blend(Vector128<uint> left, Vector128<uint> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blend_epi16 (__m256i a, __m256i b, const int imm8) /// VPBLENDW ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<short> Blend(Vector256<short> left, Vector256<short> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blend_epi16 (__m256i a, __m256i b, const int imm8) /// VPBLENDW ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<ushort> Blend(Vector256<ushort> left, Vector256<ushort> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blend_epi32 (__m256i a, __m256i b, const int imm8) /// VPBLENDD ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<int> Blend(Vector256<int> left, Vector256<int> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blend_epi32 (__m256i a, __m256i b, const int imm8) /// VPBLENDD ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<uint> Blend(Vector256<uint> left, Vector256<uint> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blendv_epi8 (__m256i a, __m256i b, __m256i mask) /// PBLENDVB ymm, ymm, ymm/m256, ymm /// </summary> public static Vector256<sbyte> BlendVariable(Vector256<sbyte> left, Vector256<sbyte> right, Vector256<sbyte> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_blendv_epi8 (__m256i a, __m256i b, __m256i mask) /// PBLENDVB ymm, ymm, ymm/m256, ymm /// </summary> public static Vector256<byte> BlendVariable(Vector256<byte> left, Vector256<byte> right, Vector256<byte> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_broadcastb_epi8 (__m128i a) /// VPBROADCASTB xmm, xmm /// __m128i _mm_broadcastw_epi16 (__m128i a) /// VPBROADCASTW xmm, xmm /// __m128i _mm_broadcastd_epi32 (__m128i a) /// VPBROADCASTD xmm, xmm /// __m128i _mm_broadcastq_epi64 (__m128i a) /// VPBROADCASTQ xmm, xmm /// __m128 _mm_broadcastss_ps (__m128 a) /// VBROADCASTSS xmm, xmm /// __m128d _mm_broadcastsd_pd (__m128d a) /// VMOVDDUP xmm, xmm /// </summary> public static Vector128<T> BroadcastScalarToVector128<T>(Vector128<T> value) where T : struct { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastb_epi8 (__m128i a) /// VPBROADCASTB ymm, xmm /// __m256i _mm256_broadcastw_epi16 (__m128i a) /// VPBROADCASTW ymm, xmm /// __m256i _mm256_broadcastd_epi32 (__m128i a) /// VPBROADCASTD ymm, xmm /// __m256i _mm256_broadcastq_epi64 (__m128i a) /// VPBROADCASTQ ymm, xmm /// __m256 _mm256_broadcastss_ps (__m128 a) /// VBROADCASTSS ymm, xmm /// __m256d _mm256_broadcastsd_pd (__m128d a) /// VBROADCASTSD ymm, xmm /// </summary> public static Vector256<T> BroadcastScalarToVector256<T>(Vector128<T> value) where T : struct { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m8 /// </summary> public static unsafe Vector256<sbyte> BroadcastVector128ToVector256(sbyte* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m8 /// </summary> public static unsafe Vector256<byte> BroadcastVector128ToVector256(byte* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m16 /// </summary> public static unsafe Vector256<short> BroadcastVector128ToVector256(short* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m16 /// </summary> public static unsafe Vector256<ushort> BroadcastVector128ToVector256(ushort* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m32 /// </summary> public static unsafe Vector256<int> BroadcastVector128ToVector256(int* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m32 /// </summary> public static unsafe Vector256<uint> BroadcastVector128ToVector256(uint* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m64 /// </summary> public static unsafe Vector256<long> BroadcastVector128ToVector256(long* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_broadcastsi128_si256 (__m128i a) /// VBROADCASTI128 xmm, m64 /// </summary> public static unsafe Vector256<ulong> BroadcastVector128ToVector256(ulong* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi8 (__m256i a, __m256i b) /// VPCMPEQB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> CompareEqual(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi8 (__m256i a, __m256i b) /// VPCMPEQB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> CompareEqual(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi16 (__m256i a, __m256i b) /// VPCMPEQW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> CompareEqual(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi16 (__m256i a, __m256i b) /// VPCMPEQW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> CompareEqual(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi32 (__m256i a, __m256i b) /// VPCMPEQD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> CompareEqual(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi32 (__m256i a, __m256i b) /// VPCMPEQD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> CompareEqual(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi64 (__m256i a, __m256i b) /// VPCMPEQQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> CompareEqual(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpeq_epi64 (__m256i a, __m256i b) /// VPCMPEQQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> CompareEqual(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpgt_epi8 (__m256i a, __m256i b) /// VPCMPGTB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> CompareGreaterThan(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpgt_epi16 (__m256i a, __m256i b) /// VPCMPGTW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> CompareGreaterThan(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpgt_epi32 (__m256i a, __m256i b) /// VPCMPGTD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> CompareGreaterThan(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cmpgt_epi64 (__m256i a, __m256i b) /// VPCMPGTQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> CompareGreaterThan(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// double _mm256_cvtsd_f64 (__m256d a) /// HELPER: MOVSD /// </summary> public static double ConvertToDouble(Vector256<double> value) { throw new PlatformNotSupportedException(); } /// <summary> /// int _mm256_cvtsi256_si32 (__m256i a) /// MOVD reg/m32, xmm /// </summary> public static int ConvertToInt32(Vector256<int> value) { throw new PlatformNotSupportedException(); } /// <summary> /// int _mm256_cvtsi256_si32 (__m256i a) /// MOVD reg/m32, xmm /// </summary> public static uint ConvertToUInt32(Vector256<uint> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi8_epi16 (__m128i a) /// VPMOVSXBW ymm, xmm/m128 /// </summary> public static Vector256<short> ConvertToVector256Int16(Vector128<sbyte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu8_epi16 (__m128i a) /// VPMOVZXBW ymm, xmm/m128 /// </summary> public static Vector256<ushort> ConvertToVector256UInt16(Vector128<byte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi8_epi32 (__m128i a) /// VPMOVSXBD ymm, xmm/m128 /// </summary> public static Vector256<int> ConvertToVector256Int32(Vector128<sbyte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi16_epi32 (__m128i a) /// VPMOVSXWD ymm, xmm/m128 /// </summary> public static Vector256<int> ConvertToVector256Int32(Vector128<short> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu8_epi32 (__m128i a) /// VPMOVZXBD ymm, xmm/m128 /// </summary> public static Vector256<uint> ConvertToVector256UInt32(Vector128<byte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu16_epi32 (__m128i a) /// VPMOVZXWD ymm, xmm/m128 /// </summary> public static Vector256<uint> ConvertToVector256UInt32(Vector128<ushort> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi8_epi64 (__m128i a) /// VPMOVSXBQ ymm, xmm/m128 /// </summary> public static Vector256<long> ConvertToVector256Int64(Vector128<sbyte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi16_epi64 (__m128i a) /// VPMOVSXWQ ymm, xmm/m128 /// </summary> public static Vector256<long> ConvertToVector256Int64(Vector128<short> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepi32_epi64 (__m128i a) /// VPMOVSXDQ ymm, xmm/m128 /// </summary> public static Vector256<long> ConvertToVector256Int64(Vector128<int> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu8_epi64 (__m128i a) /// VPMOVZXBQ ymm, xmm/m128 /// </summary> public static Vector256<ulong> ConvertToVector256UInt64(Vector128<byte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu16_epi64 (__m128i a) /// VPMOVZXWQ ymm, xmm/m128 /// </summary> public static Vector256<ulong> ConvertToVector256UInt64(Vector128<ushort> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_cvtepu32_epi64 (__m128i a) /// VPMOVZXDQ ymm, xmm/m128 /// </summary> public static Vector256<ulong> ConvertToVector256UInt64(Vector128<uint> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<sbyte> ExtractVector128(Vector256<sbyte> value, byte index) { throw new PlatformNotSupportedException(); } // <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(sbyte* address, Vector256<sbyte> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<byte> ExtractVector128(Vector256<byte> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(byte* address, Vector256<byte> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<short> ExtractVector128(Vector256<short> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(short* address, Vector256<short> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<ushort> ExtractVector128(Vector256<ushort> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(ushort* address, Vector256<ushort> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<int> ExtractVector128(Vector256<int> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(int* address, Vector256<int> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<uint> ExtractVector128(Vector256<uint> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(uint* address, Vector256<uint> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<long> ExtractVector128(Vector256<long> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(long* address, Vector256<long> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 xmm, ymm, imm8 /// </summary> public static Vector128<ulong> ExtractVector128(Vector256<ulong> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_extracti128_si256 (__m256i a, const int imm8) /// VEXTRACTI128 m128, ymm, imm8 /// </summary> public static unsafe void ExtractVector128(ulong* address, Vector256<ulong> value, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i32gather_epi32 (int const* base_addr, __m128i vindex, const int scale) /// VPGATHERDD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<int> GatherVector128(int* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i32gather_epi32 (int const* base_addr, __m128i vindex, const int scale) /// VPGATHERDD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<uint> GatherVector128(uint* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERDQ xmm, vm32x, xmm /// </summary> public static unsafe Vector128<long> GatherVector128(long* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERDQ xmm, vm32x, xmm /// </summary> public static unsafe Vector128<ulong> GatherVector128(ulong* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm_i32gather_ps (float const* base_addr, __m128i vindex, const int scale) /// VGATHERDPS xmm, vm32x, xmm /// </summary> public static unsafe Vector128<float> GatherVector128(float* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128d _mm_i32gather_pd (double const* base_addr, __m128i vindex, const int scale) /// VGATHERDPD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<double> GatherVector128(double* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i64gather_epi32 (int const* base_addr, __m128i vindex, const int scale) /// VPGATHERQD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<int> GatherVector128(int* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i64gather_epi32 (int const* base_addr, __m128i vindex, const int scale) /// VPGATHERQD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<uint> GatherVector128(uint* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i64gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERQQ xmm, vm64x, xmm /// </summary> public static unsafe Vector128<long> GatherVector128(long* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_i64gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERQQ xmm, vm64x, xmm /// </summary> public static unsafe Vector128<ulong> GatherVector128(ulong* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm_i64gather_ps (float const* base_addr, __m128i vindex, const int scale) /// VGATHERQPS xmm, vm64x, xmm /// </summary> public static unsafe Vector128<float> GatherVector128(float* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128d _mm_i64gather_pd (double const* base_addr, __m128i vindex, const int scale) /// VGATHERQPD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<double> GatherVector128(double* baseAddress, Vector128<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i32gather_epi32 (int const* base_addr, __m256i vindex, const int scale) /// VPGATHERDD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<int> GatherVector256(int* baseAddress, Vector256<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i32gather_epi32 (int const* base_addr, __m256i vindex, const int scale) /// VPGATHERDD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<uint> GatherVector256(uint* baseAddress, Vector256<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERDQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<long> GatherVector256(long* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i32gather_epi64 (__int64 const* base_addr, __m128i vindex, const int scale) /// VPGATHERDQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<ulong> GatherVector256(ulong* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256 _mm256_i32gather_ps (float const* base_addr, __m256i vindex, const int scale) /// VGATHERDPS ymm, vm32y, ymm /// </summary> public static unsafe Vector256<float> GatherVector256(float* baseAddress, Vector256<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256d _mm256_i32gather_pd (double const* base_addr, __m128i vindex, const int scale) /// VGATHERDPD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<double> GatherVector256(double* baseAddress, Vector128<int> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_i64gather_epi32 (int const* base_addr, __m256i vindex, const int scale) /// VPGATHERQD ymm, vm64y, ymm /// </summary> public static unsafe Vector128<int> GatherVector128(int* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_i64gather_epi32 (int const* base_addr, __m256i vindex, const int scale) /// VPGATHERQD ymm, vm64y, ymm /// </summary> public static unsafe Vector128<uint> GatherVector128(uint* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i64gather_epi64 (__int64 const* base_addr, __m256i vindex, const int scale) /// VPGATHERQQ ymm, vm64y, ymm /// </summary> public static unsafe Vector256<long> GatherVector256(long* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_i64gather_epi64 (__int64 const* base_addr, __m256i vindex, const int scale) /// VPGATHERQQ ymm, vm64y, ymm /// </summary> public static unsafe Vector256<ulong> GatherVector256(ulong* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm256_i64gather_ps (float const* base_addr, __m256i vindex, const int scale) /// VGATHERQPS ymm, vm64y, ymm /// </summary> public static unsafe Vector128<float> GatherVector128(float* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256d _mm256_i64gather_pd (double const* base_addr, __m256i vindex, const int scale) /// VGATHERQPD ymm, vm64y, ymm /// </summary> public static unsafe Vector256<double> GatherVector256(double* baseAddress, Vector256<long> index, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i32gather_epi32 (__m128i src, int const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERDD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<int> GatherMaskVector128(Vector128<int> source, int* baseAddress, Vector128<int> index, Vector128<int> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i32gather_epi32 (__m128i src, int const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERDD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<uint> GatherMaskVector128(Vector128<uint> source, uint* baseAddress, Vector128<int> index, Vector128<uint> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i32gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERDQ xmm, vm32x, xmm /// </summary> public static unsafe Vector128<long> GatherMaskVector128(Vector128<long> source, long* baseAddress, Vector128<int> index, Vector128<long> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i32gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERDQ xmm, vm32x, xmm /// </summary> public static unsafe Vector128<ulong> GatherMaskVector128(Vector128<ulong> source, ulong* baseAddress, Vector128<int> index, Vector128<ulong> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm_mask_i32gather_ps (__m128 src, float const* base_addr, __m128i vindex, __m128 mask, const int scale) /// VGATHERDPS xmm, vm32x, xmm /// </summary> public static unsafe Vector128<float> GatherMaskVector128(Vector128<float> source, float* baseAddress, Vector128<int> index, Vector128<float> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128d _mm_mask_i32gather_pd (__m128d src, double const* base_addr, __m128i vindex, __m128d mask, const int scale) /// VGATHERDPD xmm, vm32x, xmm /// </summary> public static unsafe Vector128<double> GatherMaskVector128(Vector128<double> source, double* baseAddress, Vector128<int> index, Vector128<double> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i64gather_epi32 (__m128i src, int const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERQD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<int> GatherMaskVector128(Vector128<int> source, int* baseAddress, Vector128<long> index, Vector128<int> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i64gather_epi32 (__m128i src, int const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERQD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<uint> GatherMaskVector128(Vector128<uint> source, uint* baseAddress, Vector128<long> index, Vector128<uint> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i64gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERQQ xmm, vm64x, xmm /// </summary> public static unsafe Vector128<long> GatherMaskVector128(Vector128<long> source, long* baseAddress, Vector128<long> index, Vector128<long> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_mask_i64gather_epi64 (__m128i src, __int64 const* base_addr, __m128i vindex, __m128i mask, const int scale) /// VPGATHERQQ xmm, vm64x, xmm /// </summary> public static unsafe Vector128<ulong> GatherMaskVector128(Vector128<ulong> source, ulong* baseAddress, Vector128<long> index, Vector128<ulong> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm_mask_i64gather_ps (__m128 src, float const* base_addr, __m128i vindex, __m128 mask, const int scale) /// VPGATHERQPS xmm, vm64x, xmm /// </summary> public static unsafe Vector128<float> GatherMaskVector128(Vector128<float> source, float* baseAddress, Vector128<long> index, Vector128<float> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128d _mm_mask_i64gather_pd (__m128d src, double const* base_addr, __m128i vindex, __m128d mask, const int scale) /// VPGATHERQPD xmm, vm64x, xmm /// </summary> public static unsafe Vector128<double> GatherMaskVector128(Vector128<double> source, double* baseAddress, Vector128<long> index, Vector128<double> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i32gather_epi32 (__m256i src, int const* base_addr, __m256i vindex, __m256i mask, const int scale) /// VPGATHERDD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<int> GatherMaskVector256(Vector256<int> source, int* baseAddress, Vector256<int> index, Vector256<int> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i32gather_epi32 (__m256i src, int const* base_addr, __m256i vindex, __m256i mask, const int scale) /// VPGATHERDD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<uint> GatherMaskVector256(Vector256<uint> source, uint* baseAddress, Vector256<int> index, Vector256<uint> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i32gather_epi64 (__m256i src, __int64 const* base_addr, __m128i vindex, __m256i mask, const int scale) /// VPGATHERDQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<long> GatherMaskVector256(Vector256<long> source, long* baseAddress, Vector128<int> index, Vector256<long> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i32gather_epi64 (__m256i src, __int64 const* base_addr, __m128i vindex, __m256i mask, const int scale) /// VPGATHERDQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<ulong> GatherMaskVector256(Vector256<ulong> source, ulong* baseAddress, Vector128<int> index, Vector256<ulong> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256 _mm256_mask_i32gather_ps (__m256 src, float const* base_addr, __m256i vindex, __m256 mask, const int scale) /// VPGATHERDPS ymm, vm32y, ymm /// </summary> public static unsafe Vector256<float> GatherMaskVector256(Vector256<float> source, float* baseAddress, Vector256<int> index, Vector256<float> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256d _mm256_mask_i32gather_pd (__m256d src, double const* base_addr, __m128i vindex, __m256d mask, const int scale) /// VPGATHERDPD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<double> GatherMaskVector256(Vector256<double> source, double* baseAddress, Vector128<int> index, Vector256<double> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_mask_i64gather_epi32 (__m128i src, int const* base_addr, __m256i vindex, __m128i mask, const int scale) /// VPGATHERQD ymm, vm32y, ymm /// </summary> public static unsafe Vector128<int> GatherMaskVector128(Vector128<int> source, int* baseAddress, Vector256<long> index, Vector128<int> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm256_mask_i64gather_epi32 (__m128i src, int const* base_addr, __m256i vindex, __m128i mask, const int scale) /// VPGATHERQD ymm, vm32y, ymm /// </summary> public static unsafe Vector128<uint> GatherMaskVector128(Vector128<uint> source, uint* baseAddress, Vector256<long> index, Vector128<uint> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i64gather_epi64 (__m256i src, __int64 const* base_addr, __m256i vindex, __m256i mask, const int scale) /// VPGATHERQQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<long> GatherMaskVector256(Vector256<long> source, long* baseAddress, Vector256<long> index, Vector256<long> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mask_i64gather_epi64 (__m256i src, __int64 const* base_addr, __m256i vindex, __m256i mask, const int scale) /// VPGATHERQQ ymm, vm32y, ymm /// </summary> public static unsafe Vector256<ulong> GatherMaskVector256(Vector256<ulong> source, ulong* baseAddress, Vector256<long> index, Vector256<ulong> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128 _mm256_mask_i64gather_ps (__m128 src, float const* base_addr, __m256i vindex, __m128 mask, const int scale) /// VPGATHERQPS ymm, vm32y, ymm /// </summary> public static unsafe Vector128<float> GatherMaskVector128(Vector128<float> source, float* baseAddress, Vector256<long> index, Vector128<float> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256d _mm256_mask_i64gather_pd (__m256d src, double const* base_addr, __m256i vindex, __m256d mask, const int scale) /// VPGATHERQPD ymm, vm32y, ymm /// </summary> public static unsafe Vector256<double> GatherMaskVector256(Vector256<double> source, double* baseAddress, Vector256<long> index, Vector256<double> mask, byte scale) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hadd_epi16 (__m256i a, __m256i b) /// VPHADDW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> HorizontalAdd(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hadd_epi32 (__m256i a, __m256i b) /// VPHADDD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> HorizontalAdd(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hadds_epi16 (__m256i a, __m256i b) /// VPHADDSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> HorizontalAddSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hsub_epi16 (__m256i a, __m256i b) /// VPHSUBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> HorizontalSubtract(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hsub_epi32 (__m256i a, __m256i b) /// VPHSUBD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> HorizontalSubtract(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_hsubs_epi16 (__m256i a, __m256i b) /// VPHSUBSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> HorizontalSubtractSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<sbyte> InsertVector128(Vector256<sbyte> value, Vector128<sbyte> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xm128, imm8 /// </summary> public static unsafe Vector256<sbyte> InsertVector128(Vector256<sbyte> value, sbyte* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<byte> InsertVector128(Vector256<byte> value, Vector128<byte> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<byte> InsertVector128(Vector256<byte> value, byte* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<short> InsertVector128(Vector256<short> value, Vector128<short> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<short> InsertVector128(Vector256<short> value, short* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<ushort> InsertVector128(Vector256<ushort> value, Vector128<ushort> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<ushort> InsertVector128(Vector256<ushort> value, ushort* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<int> InsertVector128(Vector256<int> value, Vector128<int> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<int> InsertVector128(Vector256<int> value, int* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<uint> InsertVector128(Vector256<uint> value, Vector128<uint> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<uint> InsertVector128(Vector256<uint> value, uint* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<long> InsertVector128(Vector256<long> value, Vector128<long> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<long> InsertVector128(Vector256<long> value, long* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, xmm, imm8 /// </summary> public static Vector256<ulong> InsertVector128(Vector256<ulong> value, Vector128<ulong> data, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_inserti128_si256 (__m256i a, __m128i b, const int imm8) /// VINSERTI128 ymm, ymm, m128, imm8 /// </summary> public static unsafe Vector256<ulong> InsertVector128(Vector256<ulong> value, ulong* address, byte index) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<sbyte> LoadAlignedVector256NonTemporal(sbyte* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<byte> LoadAlignedVector256NonTemporal(byte* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<short> LoadAlignedVector256NonTemporal(short* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<ushort> LoadAlignedVector256NonTemporal(ushort* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<int> LoadAlignedVector256NonTemporal(int* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<uint> LoadAlignedVector256NonTemporal(uint* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<long> LoadAlignedVector256NonTemporal(long* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_stream_load_si256 (__m256i const* mem_addr) /// VMOVNTDQA ymm, m256 /// </summary> public static unsafe Vector256<ulong> LoadAlignedVector256NonTemporal(ulong* address) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_maskload_epi32 (int const* mem_addr, __m128i mask) /// VPMASKMOVD xmm, xmm, m128 /// </summary> public static unsafe Vector128<int> MaskLoad(int* address, Vector128<int> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_maskload_epi32 (int const* mem_addr, __m128i mask) /// VPMASKMOVD xmm, xmm, m128 /// </summary> public static unsafe Vector128<uint> MaskLoad(uint* address, Vector128<uint> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_maskload_epi64 (__int64 const* mem_addr, __m128i mask) /// VPMASKMOVQ xmm, xmm, m128 /// </summary> public static unsafe Vector128<long> MaskLoad(long* address, Vector128<long> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_maskload_epi64 (__int64 const* mem_addr, __m128i mask) /// VPMASKMOVQ xmm, xmm, m128 /// </summary> public static unsafe Vector128<ulong> MaskLoad(ulong* address, Vector128<ulong> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_maskload_epi32 (int const* mem_addr, __m256i mask) /// VPMASKMOVD ymm, ymm, m256 /// </summary> public static unsafe Vector256<int> MaskLoad(int* address, Vector256<int> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_maskload_epi32 (int const* mem_addr, __m256i mask) /// VPMASKMOVD ymm, ymm, m256 /// </summary> public static unsafe Vector256<uint> MaskLoad(uint* address, Vector256<uint> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_maskload_epi64 (__int64 const* mem_addr, __m256i mask) /// VPMASKMOVQ ymm, ymm, m256 /// </summary> public static unsafe Vector256<long> MaskLoad(long* address, Vector256<long> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_maskload_epi64 (__int64 const* mem_addr, __m256i mask) /// VPMASKMOVQ ymm, ymm, m256 /// </summary> public static unsafe Vector256<ulong> MaskLoad(ulong* address, Vector256<ulong> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm_maskstore_epi32 (int* mem_addr, __m128i mask, __m128i a) /// VPMASKMOVD m128, xmm, xmm /// </summary> public static unsafe void MaskStore(int* address, Vector128<int> mask, Vector128<int> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm_maskstore_epi32 (int* mem_addr, __m128i mask, __m128i a) /// VPMASKMOVD m128, xmm, xmm /// </summary> public static unsafe void MaskStore(uint* address, Vector128<uint> mask, Vector128<uint> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm_maskstore_epi64 (__int64* mem_addr, __m128i mask, __m128i a) /// VPMASKMOVQ m128, xmm, xmm /// </summary> public static unsafe void MaskStore(long* address, Vector128<long> mask, Vector128<long> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm_maskstore_epi64 (__int64* mem_addr, __m128i mask, __m128i a) /// VPMASKMOVQ m128, xmm, xmm /// </summary> public static unsafe void MaskStore(ulong* address, Vector128<ulong> mask, Vector128<ulong> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm256_maskstore_epi32 (int* mem_addr, __m256i mask, __m256i a) /// VPMASKMOVD m256, ymm, ymm /// </summary> public static unsafe void MaskStore(int* address, Vector256<int> mask, Vector256<int> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm256_maskstore_epi32 (int* mem_addr, __m256i mask, __m256i a) /// VPMASKMOVD m256, ymm, ymm /// </summary> public static unsafe void MaskStore(uint* address, Vector256<uint> mask, Vector256<uint> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm256_maskstore_epi64 (__int64* mem_addr, __m256i mask, __m256i a) /// VPMASKMOVQ m256, ymm, ymm /// </summary> public static unsafe void MaskStore(long* address, Vector256<long> mask, Vector256<long> source) { throw new PlatformNotSupportedException(); } /// <summary> /// void _mm256_maskstore_epi64 (__int64* mem_addr, __m256i mask, __m256i a) /// VPMASKMOVQ m256, ymm, ymm /// </summary> public static unsafe void MaskStore(ulong* address, Vector256<ulong> mask, Vector256<ulong> source) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_madd_epi16 (__m256i a, __m256i b) /// VPMADDWD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> MultiplyAddAdjacent(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_maddubs_epi16 (__m256i a, __m256i b) /// VPMADDUBSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> MultiplyAddAdjacent(Vector256<byte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epi8 (__m256i a, __m256i b) /// VPMAXSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Max(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epu8 (__m256i a, __m256i b) /// VPMAXUB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Max(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epi16 (__m256i a, __m256i b) /// VPMAXSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Max(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epu16 (__m256i a, __m256i b) /// VPMAXUW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Max(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epi32 (__m256i a, __m256i b) /// VPMAXSD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Max(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_max_epu32 (__m256i a, __m256i b) /// VPMAXUD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Max(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epi8 (__m256i a, __m256i b) /// VPMINSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Min(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epu8 (__m256i a, __m256i b) /// VPMINUB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Min(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epi16 (__m256i a, __m256i b) /// VPMINSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Min(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epu16 (__m256i a, __m256i b) /// VPMINUW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Min(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epi32 (__m256i a, __m256i b) /// VPMINSD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Min(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_min_epu32 (__m256i a, __m256i b) /// VPMINUD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Min(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// int _mm256_movemask_epi8 (__m256i a) /// VPMOVMSKB reg, ymm /// </summary> public static int MoveMask(Vector256<sbyte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// int _mm256_movemask_epi8 (__m256i a) /// VPMOVMSKB reg, ymm /// </summary> public static int MoveMask(Vector256<byte> value) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mpsadbw_epu8 (__m256i a, __m256i b, const int imm8) /// VMPSADBW ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<ushort> MultipleSumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right, byte mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mul_epi32 (__m256i a, __m256i b) /// VPMULDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> Multiply(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mul_epu32 (__m256i a, __m256i b) /// VPMULUDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> Multiply(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mulhi_epi16 (__m256i a, __m256i b) /// VPMULHW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> MultiplyHigh(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mulhi_epu16 (__m256i a, __m256i b) /// VPMULHUW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> MultiplyHigh(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mulhrs_epi16 (__m256i a, __m256i b) /// VPMULHRSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> MultiplyHighRoundScale(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mullo_epi16 (__m256i a, __m256i b) /// VPMULLW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> MultiplyLow(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_mullo_epi32 (__m256i a, __m256i b) /// VPMULLD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> MultiplyLow(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Or(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Or(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Or(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Or(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Or(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Or(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> Or(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_or_si256 (__m256i a, __m256i b) /// VPOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> Or(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_packs_epi16 (__m256i a, __m256i b) /// VPACKSSWB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> PackSignedSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_packs_epi32 (__m256i a, __m256i b) /// VPACKSSDW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> PackSignedSaturate(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_packus_epi16 (__m256i a, __m256i b) /// VPACKUSWB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> PackUnsignedSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_packus_epi32 (__m256i a, __m256i b) /// VPACKUSDW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> PackUnsignedSaturate(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<sbyte> Permute2x128(Vector256<sbyte> left, Vector256<sbyte> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<byte> Permute2x128(Vector256<byte> left, Vector256<byte> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<short> Permute2x128(Vector256<short> left, Vector256<short> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<ushort> Permute2x128(Vector256<ushort> left, Vector256<ushort> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<int> Permute2x128(Vector256<int> left, Vector256<int> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<uint> Permute2x128(Vector256<uint> left, Vector256<uint> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<long> Permute2x128(Vector256<long> left, Vector256<long> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute2x128_si256 (__m256i a, __m256i b, const int imm8) /// VPERM2I128 ymm, ymm, ymm/m256, imm8 /// </summary> public static Vector256<ulong> Permute2x128(Vector256<ulong> left, Vector256<ulong> right, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute4x64_epi64 (__m256i a, const int imm8) /// VPERMQ ymm, ymm/m256, imm8 /// </summary> public static Vector256<long> Permute4x64(Vector256<long> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permute4x64_epi64 (__m256i a, const int imm8) /// VPERMQ ymm, ymm/m256, imm8 /// </summary> public static Vector256<ulong> Permute4x64(Vector256<ulong> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256d _mm256_permute4x64_pd (__m256d a, const int imm8) /// VPERMPD ymm, ymm/m256, imm8 /// </summary> public static Vector256<double> Permute4x64(Vector256<double> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx) /// VPERMD ymm, ymm/m256, imm8 /// </summary> public static Vector256<int> PermuteVar8x32(Vector256<int> left, Vector256<int> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_permutevar8x32_epi32 (__m256i a, __m256i idx) /// VPERMD ymm, ymm/m256, imm8 /// </summary> public static Vector256<uint> PermuteVar8x32(Vector256<uint> left, Vector256<uint> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256 _mm256_permutevar8x32_ps (__m256 a, __m256i idx) /// VPERMPS ymm, ymm/m256, imm8 /// </summary> public static Vector256<float> PermuteVar8x32(Vector256<float> left, Vector256<float> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi16 (__m256i a, __m128i count) /// VPSLLW ymm, ymm, xmm/m128 /// </summary> public static Vector256<short> ShiftLeftLogical(Vector256<short> value, Vector128<short> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi16 (__m256i a, __m128i count) /// VPSLLW ymm, ymm, xmm/m128 /// </summary> public static Vector256<ushort> ShiftLeftLogical(Vector256<ushort> value, Vector128<ushort> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi32 (__m256i a, __m128i count) /// VPSLLD ymm, ymm, xmm/m128 /// </summary> public static Vector256<int> ShiftLeftLogical(Vector256<int> value, Vector128<int> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi32 (__m256i a, __m128i count) /// VPSLLD ymm, ymm, xmm/m128 /// </summary> public static Vector256<uint> ShiftLeftLogical(Vector256<uint> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi64 (__m256i a, __m128i count) /// VPSLLQ ymm, ymm, xmm/m128 /// </summary> public static Vector256<long> ShiftLeftLogical(Vector256<long> value, Vector128<long> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sll_epi64 (__m256i a, __m128i count) /// VPSLLQ ymm, ymm, xmm/m128 /// </summary> public static Vector256<ulong> ShiftLeftLogical(Vector256<ulong> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi16 (__m256i a, int imm8) /// VPSLLW ymm, ymm, imm8 /// </summary> public static Vector256<short> ShiftLeftLogical(Vector256<short> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi16 (__m256i a, int imm8) /// VPSLLW ymm, ymm, imm8 /// </summary> public static Vector256<ushort> ShiftLeftLogical(Vector256<ushort> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi32 (__m256i a, int imm8) /// VPSLLD ymm, ymm, imm8 /// </summary> public static Vector256<int> ShiftLeftLogical(Vector256<int> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi32 (__m256i a, int imm8) /// VPSLLD ymm, ymm, imm8 /// </summary> public static Vector256<uint> ShiftLeftLogical(Vector256<uint> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi64 (__m256i a, int imm8) /// VPSLLQ ymm, ymm, imm8 /// </summary> public static Vector256<long> ShiftLeftLogical(Vector256<long> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_slli_epi64 (__m256i a, int imm8) /// VPSLLQ ymm, ymm, imm8 /// </summary> public static Vector256<ulong> ShiftLeftLogical(Vector256<ulong> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<sbyte> ShiftLeftLogical128BitLane(Vector256<sbyte> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<byte> ShiftLeftLogical128BitLane(Vector256<byte> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<short> ShiftLeftLogical128BitLane(Vector256<short> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<ushort> ShiftLeftLogical128BitLane(Vector256<ushort> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<int> ShiftLeftLogical128BitLane(Vector256<int> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<uint> ShiftLeftLogical128BitLane(Vector256<uint> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<long> ShiftLeftLogical128BitLane(Vector256<long> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bslli_epi128 (__m256i a, const int imm8) /// VPSLLDQ ymm, ymm, imm8 /// </summary> public static Vector256<ulong> ShiftLeftLogical128BitLane(Vector256<ulong> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sllv_epi32 (__m256i a, __m256i count) /// VPSLLVD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> ShiftLeftLogicalVariable(Vector256<int> value, Vector256<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sllv_epi32 (__m256i a, __m256i count) /// VPSLLVD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> ShiftLeftLogicalVariable(Vector256<uint> value, Vector256<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sllv_epi64 (__m256i a, __m256i count) /// VPSLLVQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> ShiftLeftLogicalVariable(Vector256<long> value, Vector256<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sllv_epi64 (__m256i a, __m256i count) /// VPSLLVQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> ShiftLeftLogicalVariable(Vector256<ulong> value, Vector256<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_sllv_epi32 (__m128i a, __m128i count) /// VPSLLVD xmm, ymm, xmm/m128 /// </summary> public static Vector128<int> ShiftLeftLogicalVariable(Vector128<int> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_sllv_epi32 (__m128i a, __m128i count) /// VPSLLVD xmm, ymm, xmm/m128 /// </summary> public static Vector128<uint> ShiftLeftLogicalVariable(Vector128<uint> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_sllv_epi64 (__m128i a, __m128i count) /// VPSLLVQ xmm, ymm, xmm/m128 /// </summary> public static Vector128<long> ShiftLeftLogicalVariable(Vector128<long> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_sllv_epi64 (__m128i a, __m128i count) /// VPSLLVQ xmm, ymm, xmm/m128 /// </summary> public static Vector128<ulong> ShiftLeftLogicalVariable(Vector128<ulong> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// _mm256_sra_epi16 (__m256i a, __m128i count) /// VPSRAW ymm, ymm, xmm/m128 /// </summary> public static Vector256<short> ShiftRightArithmetic(Vector256<short> value, Vector128<short> count) { throw new PlatformNotSupportedException(); } /// <summary> /// _mm256_sra_epi32 (__m256i a, __m128i count) /// VPSRAD ymm, ymm, xmm/m128 /// </summary> public static Vector256<int> ShiftRightArithmetic(Vector256<int> value, Vector128<int> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srai_epi16 (__m256i a, int imm8) /// VPSRAW ymm, ymm, imm8 /// </summary> public static Vector256<short> ShiftRightArithmetic(Vector256<short> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srai_epi32 (__m256i a, int imm8) /// VPSRAD ymm, ymm, imm8 /// </summary> public static Vector256<int> ShiftRightArithmetic(Vector256<int> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srav_epi32 (__m256i a, __m256i count) /// VPSRAVD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> ShiftRightArithmeticVariable(Vector256<int> value, Vector256<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_srav_epi32 (__m128i a, __m128i count) /// VPSRAVD xmm, xmm, xmm/m128 /// </summary> public static Vector128<int> ShiftRightArithmeticVariable(Vector128<int> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi16 (__m256i a, __m128i count) /// VPSRLW ymm, ymm, xmm/m128 /// </summary> public static Vector256<short> ShiftRightLogical(Vector256<short> value, Vector128<short> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi16 (__m256i a, __m128i count) /// VPSRLW ymm, ymm, xmm/m128 /// </summary> public static Vector256<ushort> ShiftRightLogical(Vector256<ushort> value, Vector128<ushort> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi32 (__m256i a, __m128i count) /// VPSRLD ymm, ymm, xmm/m128 /// </summary> public static Vector256<int> ShiftRightLogical(Vector256<int> value, Vector128<int> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi32 (__m256i a, __m128i count) /// VPSRLD ymm, ymm, xmm/m128 /// </summary> public static Vector256<uint> ShiftRightLogical(Vector256<uint> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi64 (__m256i a, __m128i count) /// VPSRLQ ymm, ymm, xmm/m128 /// </summary> public static Vector256<long> ShiftRightLogical(Vector256<long> value, Vector128<long> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srl_epi64 (__m256i a, __m128i count) /// VPSRLQ ymm, ymm, xmm/m128 /// </summary> public static Vector256<ulong> ShiftRightLogical(Vector256<ulong> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi16 (__m256i a, int imm8) /// VPSRLW ymm, ymm, imm8 /// </summary> public static Vector256<short> ShiftRightLogical(Vector256<short> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi16 (__m256i a, int imm8) /// VPSRLW ymm, ymm, imm8 /// </summary> public static Vector256<ushort> ShiftRightLogical(Vector256<ushort> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi32 (__m256i a, int imm8) /// VPSRLD ymm, ymm, imm8 /// </summary> public static Vector256<int> ShiftRightLogical(Vector256<int> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi32 (__m256i a, int imm8) /// VPSRLD ymm, ymm, imm8 /// </summary> public static Vector256<uint> ShiftRightLogical(Vector256<uint> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi64 (__m256i a, int imm8) /// VPSRLQ ymm, ymm, imm8 /// </summary> public static Vector256<long> ShiftRightLogical(Vector256<long> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srli_epi64 (__m256i a, int imm8) /// VPSRLQ ymm, ymm, imm8 /// </summary> public static Vector256<ulong> ShiftRightLogical(Vector256<ulong> value, byte count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<sbyte> ShiftRightLogical128BitLane(Vector256<sbyte> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<byte> ShiftRightLogical128BitLane(Vector256<byte> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<short> ShiftRightLogical128BitLane(Vector256<short> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<ushort> ShiftRightLogical128BitLane(Vector256<ushort> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<int> ShiftRightLogical128BitLane(Vector256<int> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<uint> ShiftRightLogical128BitLane(Vector256<uint> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<long> ShiftRightLogical128BitLane(Vector256<long> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_bsrli_epi128 (__m256i a, const int imm8) /// VPSRLDQ ymm, ymm, imm8 /// </summary> public static Vector256<ulong> ShiftRightLogical128BitLane(Vector256<ulong> value, byte numBytes) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srlv_epi32 (__m256i a, __m256i count) /// VPSRLVD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> ShiftRightLogicalVariable(Vector256<int> value, Vector256<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srlv_epi32 (__m256i a, __m256i count) /// VPSRLVD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> ShiftRightLogicalVariable(Vector256<uint> value, Vector256<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srlv_epi64 (__m256i a, __m256i count) /// VPSRLVQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> ShiftRightLogicalVariable(Vector256<long> value, Vector256<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_srlv_epi64 (__m256i a, __m256i count) /// VPSRLVQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> ShiftRightLogicalVariable(Vector256<ulong> value, Vector256<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_srlv_epi32 (__m128i a, __m128i count) /// VPSRLVD xmm, xmm, xmm/m128 /// </summary> public static Vector128<int> ShiftRightLogicalVariable(Vector128<int> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_srlv_epi32 (__m128i a, __m128i count) /// VPSRLVD xmm, xmm, xmm/m128 /// </summary> public static Vector128<uint> ShiftRightLogicalVariable(Vector128<uint> value, Vector128<uint> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_srlv_epi64 (__m128i a, __m128i count) /// VPSRLVQ xmm, xmm, xmm/m128 /// </summary> public static Vector128<long> ShiftRightLogicalVariable(Vector128<long> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m128i _mm_srlv_epi64 (__m128i a, __m128i count) /// VPSRLVQ xmm, xmm, xmm/m128 /// </summary> public static Vector128<ulong> ShiftRightLogicalVariable(Vector128<ulong> value, Vector128<ulong> count) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shuffle_epi8 (__m256i a, __m256i b) /// VPSHUFB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Shuffle(Vector256<sbyte> value, Vector256<sbyte> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shuffle_epi8 (__m256i a, __m256i b) /// VPSHUFB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Shuffle(Vector256<byte> value, Vector256<byte> mask) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shuffle_epi32 (__m256i a, const int imm8) /// VPSHUFD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Shuffle(Vector256<int> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shuffle_epi32 (__m256i a, const int imm8) /// VPSHUFD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Shuffle(Vector256<uint> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shufflehi_epi16 (__m256i a, const int imm8) /// VPSHUFHW ymm, ymm/m256, imm8 /// </summary> public static Vector256<short> ShuffleHigh(Vector256<short> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shufflehi_epi16 (__m256i a, const int imm8) /// VPSHUFHW ymm, ymm/m256, imm8 /// </summary> public static Vector256<ushort> ShuffleHigh(Vector256<ushort> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shufflelo_epi16 (__m256i a, const int imm8) /// VPSHUFLW ymm, ymm/m256, imm8 /// </summary> public static Vector256<short> ShuffleLow(Vector256<short> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_shufflelo_epi16 (__m256i a, const int imm8) /// VPSHUFLW ymm, ymm/m256, imm8 /// </summary> public static Vector256<ushort> ShuffleLow(Vector256<ushort> value, byte control) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sign_epi8 (__m256i a, __m256i b) /// VPSIGNB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Sign(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sign_epi16 (__m256i a, __m256i b) /// VPSIGNW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Sign(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sign_epi32 (__m256i a, __m256i b) /// VPSIGND ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Sign(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi8 (__m256i a, __m256i b) /// VPSUBB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Subtract(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi8 (__m256i a, __m256i b) /// VPSUBB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Subtract(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi16 (__m256i a, __m256i b) /// VPSUBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Subtract(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi16 (__m256i a, __m256i b) /// VPSUBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Subtract(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi32 (__m256i a, __m256i b) /// VPSUBD ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Subtract(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi32 (__m256i a, __m256i b) /// VPSUBD ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Subtract(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi64 (__m256i a, __m256i b) /// VPSUBQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> Subtract(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sub_epi64 (__m256i a, __m256i b) /// VPSUBQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> Subtract(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_subs_epi8 (__m256i a, __m256i b) /// VPSUBSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> SubtractSaturate(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_subs_epi16 (__m256i a, __m256i b) /// VPSUBSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> SubtractSaturate(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_subs_epu8 (__m256i a, __m256i b) /// VPSUBUSB ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> SubtractSaturate(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_subs_epu16 (__m256i a, __m256i b) /// VPSUBUSW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> SubtractSaturate(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_sad_epu8 (__m256i a, __m256i b) /// VPSADBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> SumAbsoluteDifferences(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi8 (__m256i a, __m256i b) /// VPUNPCKHBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> UnpackHigh(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi8 (__m256i a, __m256i b) /// VPUNPCKHBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> UnpackHigh(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi16 (__m256i a, __m256i b) /// VPUNPCKHWD ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> UnpackHigh(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi16 (__m256i a, __m256i b) /// VPUNPCKHWD ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> UnpackHigh(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi32 (__m256i a, __m256i b) /// VPUNPCKHDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> UnpackHigh(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi32 (__m256i a, __m256i b) /// VPUNPCKHDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> UnpackHigh(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi64 (__m256i a, __m256i b) /// VPUNPCKHQDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> UnpackHigh(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpackhi_epi64 (__m256i a, __m256i b) /// VPUNPCKHQDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> UnpackHigh(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi8 (__m256i a, __m256i b) /// VPUNPCKLBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> UnpackLow(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi8 (__m256i a, __m256i b) /// VPUNPCKLBW ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> UnpackLow(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi16 (__m256i a, __m256i b) /// VPUNPCKLWD ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> UnpackLow(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi16 (__m256i a, __m256i b) /// VPUNPCKLWD ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> UnpackLow(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi32 (__m256i a, __m256i b) /// VPUNPCKLDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> UnpackLow(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi32 (__m256i a, __m256i b) /// VPUNPCKLDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> UnpackLow(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi64 (__m256i a, __m256i b) /// VPUNPCKLQDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> UnpackLow(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_unpacklo_epi64 (__m256i a, __m256i b) /// VPUNPCKLQDQ ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> UnpackLow(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<sbyte> Xor(Vector256<sbyte> left, Vector256<sbyte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<byte> Xor(Vector256<byte> left, Vector256<byte> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<short> Xor(Vector256<short> left, Vector256<short> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<ushort> Xor(Vector256<ushort> left, Vector256<ushort> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<int> Xor(Vector256<int> left, Vector256<int> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<uint> Xor(Vector256<uint> left, Vector256<uint> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<long> Xor(Vector256<long> left, Vector256<long> right) { throw new PlatformNotSupportedException(); } /// <summary> /// __m256i _mm256_xor_si256 (__m256i a, __m256i b) /// VPXOR ymm, ymm, ymm/m256 /// </summary> public static Vector256<ulong> Xor(Vector256<ulong> left, Vector256<ulong> right) { throw new PlatformNotSupportedException(); } } }
58.418006
219
0.646026
[ "MIT" ]
AaronRobinsonMSFT/coreclr
src/System.Private.CoreLib/src/System/Runtime/Intrinsics/X86/Avx2.PlatformNotSupported.cs
109,008
C#
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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. //----------------------------------------------------------------------------- //---------------------------------------------------------------------------- // Player Audio Profiles //---------------------------------------------------------------------------- datablock SFXProfile(DeathCrySound) { fileName = "data/FPSGameplay/sound/orc_death"; description = AudioClose3d; preload = true; }; datablock SFXProfile(PainCrySound) { fileName = "data/FPSGameplay/sound/orc_pain"; description = AudioClose3d; preload = true; }; //---------------------------------------------------------------------------- datablock SFXProfile(FootLightSoftSound) { filename = "data/FPSGameplay/sound/lgtStep_mono_01"; description = AudioClosest3d; preload = true; }; datablock SFXProfile(FootLightHardSound) { filename = "data/FPSGameplay/sound/hvystep_ mono_01"; description = AudioClose3d; preload = true; }; datablock SFXProfile(FootLightMetalSound) { filename = "data/FPSGameplay/sound/metalstep_mono_01"; description = AudioClose3d; preload = true; }; datablock SFXProfile(FootLightSnowSound) { filename = "data/FPSGameplay/sound/snowstep_mono_01"; description = AudioClosest3d; preload = true; }; datablock SFXProfile(FootLightShallowSplashSound) { filename = "data/FPSGameplay/sound/waterstep_mono_01"; description = AudioClose3d; preload = true; }; datablock SFXProfile(FootLightWadingSound) { filename = "data/FPSGameplay/sound/waterstep_mono_01"; description = AudioClose3d; preload = true; }; datablock SFXProfile(FootLightUnderwaterSound) { filename = "data/FPSGameplay/sound/waterstep_mono_01"; description = AudioClosest3d; preload = true; }; //---------------------------------------------------------------------------- // Splash //---------------------------------------------------------------------------- datablock ParticleData(PlayerSplashMist) { dragCoefficient = 2.0; gravityCoefficient = -0.05; inheritedVelFactor = 0.0; constantAcceleration = 0.0; lifetimeMS = 400; lifetimeVarianceMS = 100; useInvAlpha = false; spinRandomMin = -90.0; spinRandomMax = 500.0; textureName = "data/FPSGameplay/art/shapes/actors/common/splash"; colors[0] = "0.7 0.8 1.0 1.0"; colors[1] = "0.7 0.8 1.0 0.5"; colors[2] = "0.7 0.8 1.0 0.0"; sizes[0] = 0.5; sizes[1] = 0.5; sizes[2] = 0.8; times[0] = 0.0; times[1] = 0.5; times[2] = 1.0; }; datablock ParticleEmitterData(PlayerSplashMistEmitter) { ejectionPeriodMS = 5; periodVarianceMS = 0; ejectionVelocity = 3.0; velocityVariance = 2.0; ejectionOffset = 0.0; thetaMin = 85; thetaMax = 85; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; lifetimeMS = 250; particles = "PlayerSplashMist"; }; datablock ParticleData(PlayerBubbleParticle) { dragCoefficient = 0.0; gravityCoefficient = -0.50; inheritedVelFactor = 0.0; constantAcceleration = 0.0; lifetimeMS = 400; lifetimeVarianceMS = 100; useInvAlpha = false; textureName = "data/FPSGameplay/art/shapes/actors/common/splash"; colors[0] = "0.7 0.8 1.0 0.4"; colors[1] = "0.7 0.8 1.0 0.4"; colors[2] = "0.7 0.8 1.0 0.0"; sizes[0] = 0.1; sizes[1] = 0.3; sizes[2] = 0.3; times[0] = 0.0; times[1] = 0.5; times[2] = 1.0; }; datablock ParticleEmitterData(PlayerBubbleEmitter) { ejectionPeriodMS = 1; periodVarianceMS = 0; ejectionVelocity = 2.0; ejectionOffset = 0.5; velocityVariance = 0.5; thetaMin = 0; thetaMax = 80; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; particles = "PlayerBubbleParticle"; }; datablock ParticleData(PlayerFoamParticle) { dragCoefficient = 2.0; gravityCoefficient = -0.05; inheritedVelFactor = 0.1; constantAcceleration = 0.0; lifetimeMS = 600; lifetimeVarianceMS = 100; useInvAlpha = false; spinRandomMin = -90.0; spinRandomMax = 500.0; textureName = "data/FPSGameplay/art/particles/millsplash01"; colors[0] = "0.7 0.8 1.0 0.20"; colors[1] = "0.7 0.8 1.0 0.20"; colors[2] = "0.7 0.8 1.0 0.00"; sizes[0] = 0.2; sizes[1] = 0.4; sizes[2] = 1.6; times[0] = 0.0; times[1] = 0.5; times[2] = 1.0; }; datablock ParticleEmitterData(PlayerFoamEmitter) { ejectionPeriodMS = 10; periodVarianceMS = 0; ejectionVelocity = 3.0; velocityVariance = 1.0; ejectionOffset = 0.0; thetaMin = 85; thetaMax = 85; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; particles = "PlayerFoamParticle"; }; datablock ParticleData( PlayerFoamDropletsParticle ) { dragCoefficient = 1; gravityCoefficient = 0.2; inheritedVelFactor = 0.2; constantAcceleration = -0.0; lifetimeMS = 600; lifetimeVarianceMS = 0; textureName = "data/FPSGameplay/art/shapes/actors/common/splash"; colors[0] = "0.7 0.8 1.0 1.0"; colors[1] = "0.7 0.8 1.0 0.5"; colors[2] = "0.7 0.8 1.0 0.0"; sizes[0] = 0.8; sizes[1] = 0.3; sizes[2] = 0.0; times[0] = 0.0; times[1] = 0.5; times[2] = 1.0; }; datablock ParticleEmitterData( PlayerFoamDropletsEmitter ) { ejectionPeriodMS = 7; periodVarianceMS = 0; ejectionVelocity = 2; velocityVariance = 1.0; ejectionOffset = 0.0; thetaMin = 60; thetaMax = 80; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; orientParticles = true; particles = "PlayerFoamDropletsParticle"; }; datablock ParticleData( PlayerWakeParticle ) { textureName = "data/FPSGameplay/art/particles/wake"; dragCoefficient = "0.0"; gravityCoefficient = "0.0"; inheritedVelFactor = "0.0"; lifetimeMS = "2500"; lifetimeVarianceMS = "200"; windCoefficient = "0.0"; useInvAlpha = "1"; spinRandomMin = "30.0"; spinRandomMax = "30.0"; animateTexture = true; framesPerSec = 1; animTexTiling = "2 1"; animTexFrames = "0 1"; colors[0] = "1 1 1 0.1"; colors[1] = "1 1 1 0.7"; colors[2] = "1 1 1 0.3"; colors[3] = "0.5 0.5 0.5 0"; sizes[0] = "1.0"; sizes[1] = "2.0"; sizes[2] = "3.0"; sizes[3] = "3.5"; times[0] = "0.0"; times[1] = "0.25"; times[2] = "0.5"; times[3] = "1.0"; }; datablock ParticleEmitterData( PlayerWakeEmitter ) { ejectionPeriodMS = "200"; periodVarianceMS = "10"; ejectionVelocity = "0"; velocityVariance = "0"; ejectionOffset = "0"; thetaMin = "89"; thetaMax = "90"; phiReferenceVel = "0"; phiVariance = "1"; alignParticles = "1"; alignDirection = "0 0 1"; particles = "PlayerWakeParticle"; }; datablock ParticleData( PlayerSplashParticle ) { dragCoefficient = 1; gravityCoefficient = 0.2; inheritedVelFactor = 0.2; constantAcceleration = -0.0; lifetimeMS = 600; lifetimeVarianceMS = 0; colors[0] = "0.7 0.8 1.0 1.0"; colors[1] = "0.7 0.8 1.0 0.5"; colors[2] = "0.7 0.8 1.0 0.0"; sizes[0] = 0.5; sizes[1] = 0.5; sizes[2] = 0.5; times[0] = 0.0; times[1] = 0.5; times[2] = 1.0; }; datablock ParticleEmitterData( PlayerSplashEmitter ) { ejectionPeriodMS = 1; periodVarianceMS = 0; ejectionVelocity = 3; velocityVariance = 1.0; ejectionOffset = 0.0; thetaMin = 60; thetaMax = 80; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; orientParticles = true; lifetimeMS = 100; particles = "PlayerSplashParticle"; }; datablock SplashData(PlayerSplash) { numSegments = 15; ejectionFreq = 15; ejectionAngle = 40; ringLifetime = 0.5; lifetimeMS = 300; velocity = 4.0; startRadius = 0.0; acceleration = -3.0; texWrap = 5.0; texture = "data/FPSGameplay/art/particles/millsplash01"; emitter[0] = PlayerSplashEmitter; emitter[1] = PlayerSplashMistEmitter; colors[0] = "0.7 0.8 1.0 0.0"; colors[1] = "0.7 0.8 1.0 0.3"; colors[2] = "0.7 0.8 1.0 0.7"; colors[3] = "0.7 0.8 1.0 0.0"; times[0] = 0.0; times[1] = 0.4; times[2] = 0.8; times[3] = 1.0; }; //---------------------------------------------------------------------------- // Foot puffs //---------------------------------------------------------------------------- datablock ParticleData(LightPuff) { dragCoefficient = 2.0; gravityCoefficient = -0.01; inheritedVelFactor = 0.6; constantAcceleration = 0.0; lifetimeMS = 800; lifetimeVarianceMS = 100; useInvAlpha = true; spinRandomMin = -35.0; spinRandomMax = 35.0; colors[0] = "1.0 1.0 1.0 1.0"; colors[1] = "1.0 1.0 1.0 0.0"; sizes[0] = 0.1; sizes[1] = 0.8; times[0] = 0.3; times[1] = 1.0; times[2] = 1.0; textureName = "data/FPSGameplay/art/particles/dustParticle.png"; }; datablock ParticleEmitterData(LightPuffEmitter) { ejectionPeriodMS = 35; periodVarianceMS = 10; ejectionVelocity = 0.2; velocityVariance = 0.1; ejectionOffset = 0.0; thetaMin = 20; thetaMax = 60; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; useEmitterColors = true; particles = "LightPuff"; }; //---------------------------------------------------------------------------- // Liftoff dust //---------------------------------------------------------------------------- datablock ParticleData(LiftoffDust) { dragCoefficient = 1.0; gravityCoefficient = -0.01; inheritedVelFactor = 0.0; constantAcceleration = 0.0; lifetimeMS = 1000; lifetimeVarianceMS = 100; useInvAlpha = true; spinRandomMin = -90.0; spinRandomMax = 500.0; colors[0] = "1.0 1.0 1.0 1.0"; sizes[0] = 1.0; times[0] = 1.0; textureName = "data/FPSGameplay/art/particles/dustParticle"; }; datablock ParticleEmitterData(LiftoffDustEmitter) { ejectionPeriodMS = 5; periodVarianceMS = 0; ejectionVelocity = 2.0; velocityVariance = 0.0; ejectionOffset = 0.0; thetaMin = 90; thetaMax = 90; phiReferenceVel = 0; phiVariance = 360; overrideAdvance = false; useEmitterColors = true; particles = "LiftoffDust"; }; //---------------------------------------------------------------------------- datablock DecalData(PlayerFootprint) { size = 0.4; material = CommonPlayerFootprint; }; datablock DebrisData( PlayerDebris ) { explodeOnMaxBounce = false; elasticity = 0.15; friction = 0.5; lifetime = 4.0; lifetimeVariance = 0.0; minSpinSpeed = 40; maxSpinSpeed = 600; numBounces = 5; bounceVariance = 0; staticOnMaxBounce = true; gravModifier = 1.0; useRadiusMass = true; baseRadius = 1; velocity = 20.0; velocityVariance = 12.0; }; // ---------------------------------------------------------------------------- // This is our default player datablock that all others will derive from. // ---------------------------------------------------------------------------- datablock PlayerData(DefaultPlayerData) { renderFirstPerson = false; firstPersonShadows = true; computeCRC = false; // Third person shape shapeFile = "data/FPSGameplay/art/shapes/actors/Soldier/soldier_rigged.DAE"; cameraMaxDist = 3; allowImageStateAnimation = true; // First person arms imageAnimPrefixFP = "soldier"; shapeNameFP[0] = "data/FPSGameplay/art/shapes/actors/Soldier/FP/FP_SoldierArms.DAE"; cmdCategory = "Clients"; cameraDefaultFov = 55.0; cameraMinFov = 5.0; cameraMaxFov = 65.0; debrisShapeName = "data/FPSGameplay/art/shapes/actors/common/debris_player.dts"; debris = playerDebris; throwForce = 30; minLookAngle = "-1.4"; maxLookAngle = "0.9"; maxFreelookAngle = 3.0; mass = 120; drag = 1.3; maxdrag = 0.4; density = 1.1; maxDamage = 100; maxEnergy = 60; repairRate = 0.33; rechargeRate = 0.256; runForce = 4320; runEnergyDrain = 0; minRunEnergy = 0; maxForwardSpeed = 8; maxBackwardSpeed = 6; maxSideSpeed = 6; sprintForce = 4320; sprintEnergyDrain = 0; minSprintEnergy = 0; maxSprintForwardSpeed = 14; maxSprintBackwardSpeed = 8; maxSprintSideSpeed = 6; sprintStrafeScale = 0.25; sprintYawScale = 0.05; sprintPitchScale = 0.05; sprintCanJump = true; crouchForce = 405; maxCrouchForwardSpeed = 4.0; maxCrouchBackwardSpeed = 2.0; maxCrouchSideSpeed = 2.0; swimForce = 4320; maxUnderwaterForwardSpeed = 8.4; maxUnderwaterBackwardSpeed = 7.8; maxUnderwaterSideSpeed = 4.0; jumpForce = "747"; jumpEnergyDrain = 0; minJumpEnergy = 0; jumpDelay = "15"; airControl = 0.3; fallingSpeedThreshold = -6.0; landSequenceTime = 0.33; transitionToLand = false; recoverDelay = 0; recoverRunForceScale = 0; minImpactSpeed = 10; minLateralImpactSpeed = 20; speedDamageScale = 0.4; boundingBox = "0.65 0.75 1.85"; crouchBoundingBox = "0.65 0.75 1.3"; swimBoundingBox = "1 2 2"; pickupRadius = 1; // Damage location details boxHeadPercentage = 0.83; boxTorsoPercentage = 0.49; boxHeadLeftPercentage = 0.30; boxHeadRightPercentage = 0.60; boxHeadBackPercentage = 0.30; boxHeadFrontPercentage = 0.60; // Foot Prints decalOffset = 0.25; footPuffEmitter = "LightPuffEmitter"; footPuffNumParts = 10; footPuffRadius = "0.25"; dustEmitter = "LightPuffEmitter"; splash = PlayerSplash; splashVelocity = 4.0; splashAngle = 67.0; splashFreqMod = 300.0; splashVelEpsilon = 0.60; bubbleEmitTime = 0.4; splashEmitter[0] = PlayerWakeEmitter; splashEmitter[1] = PlayerFoamEmitter; splashEmitter[2] = PlayerBubbleEmitter; mediumSplashSoundVelocity = 10.0; hardSplashSoundVelocity = 20.0; exitSplashSoundVelocity = 5.0; // Controls over slope of runnable/jumpable surfaces runSurfaceAngle = 38; jumpSurfaceAngle = 80; maxStepHeight = 0.35; //two meters minJumpSpeed = 20; maxJumpSpeed = 30; horizMaxSpeed = 68; horizResistSpeed = 33; horizResistFactor = 0.35; upMaxSpeed = 80; upResistSpeed = 25; upResistFactor = 0.3; footstepSplashHeight = 0.35; //NOTE: some sounds commented out until wav's are available // Footstep Sounds FootSoftSound = FootLightSoftSound; FootHardSound = FootLightHardSound; FootMetalSound = FootLightMetalSound; FootSnowSound = FootLightSnowSound; FootShallowSound = FootLightShallowSplashSound; FootWadingSound = FootLightWadingSound; FootUnderwaterSound = FootLightUnderwaterSound; //FootBubblesSound = FootLightBubblesSound; //movingBubblesSound = ArmorMoveBubblesSound; //waterBreathSound = WaterBreathMaleSound; //impactSoftSound = ImpactLightSoftSound; //impactHardSound = ImpactLightHardSound; //impactMetalSound = ImpactLightMetalSound; //impactSnowSound = ImpactLightSnowSound; //impactWaterEasy = ImpactLightWaterEasySound; //impactWaterMedium = ImpactLightWaterMediumSound; //impactWaterHard = ImpactLightWaterHardSound; groundImpactMinSpeed = "45"; groundImpactShakeFreq = "4.0 4.0 4.0"; groundImpactShakeAmp = "1.0 1.0 1.0"; groundImpactShakeDuration = 0.8; groundImpactShakeFalloff = 10.0; //exitingWater = ExitingWaterLightSound; observeParameters = "0.5 4.5 4.5"; cameraMinDist = "0"; DecalData = "PlayerFootprint"; // Allowable Inventory Items mainWeapon = Ryder; maxInv[Lurker] = 1; maxInv[LurkerClip] = 20; maxInv[LurkerGrenadeLauncher] = 1; maxInv[LurkerGrenadeAmmo] = 20; maxInv[Ryder] = 1; maxInv[RyderClip] = 10; maxInv[ProxMine] = 5; maxInv[DeployableTurret] = 5; // available skins (see materials.cs in model folder) availableSkins = "base DarkBlue DarkGreen LightGreen Orange Red Teal Violet Yellow"; };
27.374815
89
0.569867
[ "MIT" ]
Ahe4d/Despacito3D
Templates/Modules/FPSGameplay/scripts/datablocks/player.cs
17,804
C#
//---------------------- // <auto-generated> // Generated using the NSwag toolchain v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0)) (http://NSwag.org) // </auto-generated> //---------------------- #pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended." #pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword." #pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?' #pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ... #pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..." #pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'" #pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant" #pragma warning disable 8603 // Disable "CS8603 Possible null reference return" namespace TestIt.Api.Models { using System = global::System; [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AttachmentModel { [Newtonsoft.Json.JsonProperty("fileId", Required = Newtonsoft.Json.Required.Always)] public string FileId { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)] public string Type { get; set; } [Newtonsoft.Json.JsonProperty("size", Required = Newtonsoft.Json.Required.Always)] public float Size { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AttachmentPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AttachmentPutModelAutoTestStepResultsModel { [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? Duration { get; set; } [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Outcome { get; set; } /// <summary> /// nested enumeration is allowed /// </summary> [Newtonsoft.Json.JsonProperty("stepResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.Obsolete] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> StepResults { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Parameters { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestAverageDurationModel { [Newtonsoft.Json.JsonProperty("passedAverageDuration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public double? PassedAverageDuration { get; set; } [Newtonsoft.Json.JsonProperty("failedAverageDuration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public double? FailedAverageDuration { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestIdModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestModel { [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("mustBeApproved", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? MustBeApproved { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("lastTestRunId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LastTestRunId { get; set; } [Newtonsoft.Json.JsonProperty("lastTestRunName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LastTestRunName { get; set; } [Newtonsoft.Json.JsonProperty("lastTestResultId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LastTestResultId { get; set; } /// <summary> /// Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped /// </summary> [Newtonsoft.Json.JsonProperty("lastTestResultOutcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LastTestResultOutcome { get; set; } [Newtonsoft.Json.JsonProperty("stabilityPercentage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? StabilityPercentage { get; set; } /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("externalId", Required = Newtonsoft.Json.Required.Always)] public string ExternalId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkPutModel> Links { get; set; } /// <summary> /// This property is used to link autotest with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("namespace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Namespace { get; set; } [Newtonsoft.Json.JsonProperty("classname", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Classname { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Steps { get; set; } [Newtonsoft.Json.JsonProperty("setup", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Setup { get; set; } [Newtonsoft.Json.JsonProperty("teardown", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Teardown { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("labels", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LabelShortModel> Labels { get; set; } [Newtonsoft.Json.JsonProperty("isFlaky", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsFlaky { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestModelV2GetModel { /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("externalId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string ExternalId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkModel> Links { get; set; } /// <summary> /// This property is used to link autotest with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("namespace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Namespace { get; set; } [Newtonsoft.Json.JsonProperty("classname", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Classname { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Steps { get; set; } [Newtonsoft.Json.JsonProperty("setup", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Setup { get; set; } [Newtonsoft.Json.JsonProperty("teardown", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Teardown { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("labels", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LabelShortModel> Labels { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestNamespaceModel { [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("classes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> Classes { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestPostModel { [Newtonsoft.Json.JsonProperty("workItemIdsForLinkWithAutoTest", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> WorkItemIdsForLinkWithAutoTest { get; set; } [Newtonsoft.Json.JsonProperty("shouldCreateWorkItem", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? ShouldCreateWorkItem { get; set; } /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("externalId", Required = Newtonsoft.Json.Required.Always)] public string ExternalId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkPostModel> Links { get; set; } /// <summary> /// This property is used to link autotest with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("namespace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Namespace { get; set; } [Newtonsoft.Json.JsonProperty("classname", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Classname { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Steps { get; set; } [Newtonsoft.Json.JsonProperty("setup", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Setup { get; set; } [Newtonsoft.Json.JsonProperty("teardown", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Teardown { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("labels", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LabelPostModel> Labels { get; set; } [Newtonsoft.Json.JsonProperty("isFlaky", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsFlaky { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestPutModel { /// <summary> /// Used for search autotest. If value equals Guid mask filled with zeros, search will be executed using ExternalId /// </summary> [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("workItemIdsForLinkWithAutoTest", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> WorkItemIdsForLinkWithAutoTest { get; set; } /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("externalId", Required = Newtonsoft.Json.Required.Always)] public string ExternalId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkPutModel> Links { get; set; } /// <summary> /// This property is used to link autotest with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("namespace", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Namespace { get; set; } [Newtonsoft.Json.JsonProperty("classname", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Classname { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Steps { get; set; } [Newtonsoft.Json.JsonProperty("setup", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Setup { get; set; } [Newtonsoft.Json.JsonProperty("teardown", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestStepModel> Teardown { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("labels", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LabelPostModel> Labels { get; set; } [Newtonsoft.Json.JsonProperty("isFlaky", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsFlaky { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestResultPostModel { [Newtonsoft.Json.JsonProperty("testRunId", Required = Newtonsoft.Json.Required.Always)] public System.Guid TestRunId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanGlobalId", Required = Newtonsoft.Json.Required.Always)] public long TestPlanGlobalId { get; set; } [Newtonsoft.Json.JsonProperty("configurationGlobalId", Required = Newtonsoft.Json.Required.Always)] public long ConfigurationGlobalId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkPostModel> Links { get; set; } [Newtonsoft.Json.JsonProperty("failureReasonNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> FailureReasonNames { get; set; } /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("autoTestExternalId", Required = Newtonsoft.Json.Required.Always)] public string AutoTestExternalId { get; set; } /// <summary> /// Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped /// </summary> [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Always)] public string Outcome { get; set; } [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Message { get; set; } [Newtonsoft.Json.JsonProperty("traces", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Traces { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? Duration { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Parameters { get; set; } [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Properties { get; set; } [Newtonsoft.Json.JsonProperty("stepResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> StepResults { get; set; } [Newtonsoft.Json.JsonProperty("setupResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> SetupResults { get; set; } [Newtonsoft.Json.JsonProperty("teardownResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> TeardownResults { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestResultsForTestRunModel { [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ConfigurationId { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkPostModel> Links { get; set; } [Newtonsoft.Json.JsonProperty("failureReasonNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> FailureReasonNames { get; set; } /// <summary> /// This property is used to set autotest identifier from client system /// </summary> [Newtonsoft.Json.JsonProperty("autoTestExternalId", Required = Newtonsoft.Json.Required.Always)] public string AutoTestExternalId { get; set; } /// <summary> /// Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped /// </summary> [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Always)] public string Outcome { get; set; } [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Message { get; set; } [Newtonsoft.Json.JsonProperty("traces", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Traces { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? Duration { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Parameters { get; set; } [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Properties { get; set; } [Newtonsoft.Json.JsonProperty("stepResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> StepResults { get; set; } [Newtonsoft.Json.JsonProperty("setupResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> SetupResults { get; set; } [Newtonsoft.Json.JsonProperty("teardownResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModelAutoTestStepResultsModel> TeardownResults { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class AutoTestStepModel { [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Always)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.Obsolete] public System.Collections.Generic.List<AutoTestStepModel> Steps { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfigurationModel { [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("isActive", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsActive { get; set; } [Newtonsoft.Json.JsonProperty("capabilities", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, string> Capabilities { get; } = new System.Collections.Generic.Dictionary<string, string>(); /// <summary> /// This property is used to link configuration with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("isDefault", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDefault { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfigurationPostModel { [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("isActive", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsActive { get; set; } [Newtonsoft.Json.JsonProperty("capabilities", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, string> Capabilities { get; } = new System.Collections.Generic.Dictionary<string, string>(); /// <summary> /// This property is used to link configuration with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("isDefault", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDefault { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ConfigurationPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("isActive", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsActive { get; set; } [Newtonsoft.Json.JsonProperty("capabilities", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, string> Capabilities { get; } = new System.Collections.Generic.Dictionary<string, string>(); /// <summary> /// This property is used to link configuration with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("isDefault", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDefault { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomAttributeModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("options", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<CustomAttributeOptionModel> Options { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public CustomAttributeTypesEnum Type { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("enabled", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? Enabled { get; set; } [Newtonsoft.Json.JsonProperty("required", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? Required { get; set; } [Newtonsoft.Json.JsonProperty("isGlobal", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsGlobal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomAttributeOptionModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("isDefault", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomAttributeOptionPostModel { [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("isDefault", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDefault { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomAttributePostModel { [Newtonsoft.Json.JsonProperty("options", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<CustomAttributeOptionPostModel> Options { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public CustomAttributeTypesEnum Type { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("enabled", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? Enabled { get; set; } [Newtonsoft.Json.JsonProperty("required", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? Required { get; set; } [Newtonsoft.Json.JsonProperty("isGlobal", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsGlobal { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class CustomAttributeTestPlanProjectRelationPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("enabled", Required = Newtonsoft.Json.Required.Always)] public bool Enabled { get; set; } [Newtonsoft.Json.JsonProperty("required", Required = Newtonsoft.Json.Required.Always)] public bool Required { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum CustomAttributeTypesEnum { [System.Runtime.Serialization.EnumMember(Value = @"string")] String = 0, [System.Runtime.Serialization.EnumMember(Value = @"datetime")] Datetime = 1, [System.Runtime.Serialization.EnumMember(Value = @"options")] Options = 2, [System.Runtime.Serialization.EnumMember(Value = @"user")] User = 3, [System.Runtime.Serialization.EnumMember(Value = @"multipleOptions")] MultipleOptions = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum ImageResizeOption { [System.Runtime.Serialization.EnumMember(Value = @"Crop")] Crop = 0, [System.Runtime.Serialization.EnumMember(Value = @"AddBackgroundStripes")] AddBackgroundStripes = 1, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IterationModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<ParameterShortModel> Parameters { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class IterationPutModel { [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<ParameterIterationModel> Parameters { get; } = new System.Collections.Generic.List<ParameterIterationModel>(); [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LabelPostModel { [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LabelShortModel { [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LinkModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] public string Url { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public LinkType? Type { get; set; } [Newtonsoft.Json.JsonProperty("hasInfo", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LinkPostModel { [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] public string Url { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public LinkType? Type { get; set; } [Newtonsoft.Json.JsonProperty("hasInfo", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class LinkPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("url", Required = Newtonsoft.Json.Required.Always)] public string Url { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public LinkType? Type { get; set; } [Newtonsoft.Json.JsonProperty("hasInfo", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasInfo { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum LinkType { [System.Runtime.Serialization.EnumMember(Value = @"Related")] Related = 0, [System.Runtime.Serialization.EnumMember(Value = @"BlockedBy")] BlockedBy = 1, [System.Runtime.Serialization.EnumMember(Value = @"Defect")] Defect = 2, [System.Runtime.Serialization.EnumMember(Value = @"Issue")] Issue = 3, [System.Runtime.Serialization.EnumMember(Value = @"Requirement")] Requirement = 4, [System.Runtime.Serialization.EnumMember(Value = @"Repository")] Repository = 5, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParameterIterationModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParameterModel { [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("parameterKeyId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParameterKeyId { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Always)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParameterPostModel { [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Always)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParameterPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Always)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ParameterShortModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("parameterKeyId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParameterKeyId { get; set; } [Newtonsoft.Json.JsonProperty("value", Required = Newtonsoft.Json.Required.Always)] public string Value { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProblemDetails { [Newtonsoft.Json.JsonProperty("type", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Type { get; set; } [Newtonsoft.Json.JsonProperty("title", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Title { get; set; } [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? Status { get; set; } [Newtonsoft.Json.JsonProperty("detail", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Detail { get; set; } [Newtonsoft.Json.JsonProperty("instance", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Instance { get; set; } private System.Collections.Generic.IDictionary<string, object> _additionalProperties = new System.Collections.Generic.Dictionary<string, object>(); [Newtonsoft.Json.JsonExtensionData] public System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get { return _additionalProperties; } set { _additionalProperties = value; } } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectExportQueryModel { [Newtonsoft.Json.JsonProperty("sectionIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> SectionIds { get; set; } [Newtonsoft.Json.JsonProperty("workItemIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> WorkItemIds { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectExportWithTestPlansPostModel { [Newtonsoft.Json.JsonProperty("testPlansIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> TestPlansIds { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectModel { [Newtonsoft.Json.JsonProperty("attributesScheme", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<CustomAttributeModel> AttributesScheme { get; set; } [Newtonsoft.Json.JsonProperty("testPlansAttributesScheme", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<CustomAttributeModel> TestPlansAttributesScheme { get; set; } [Newtonsoft.Json.JsonProperty("testCasesCount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? TestCasesCount { get; set; } [Newtonsoft.Json.JsonProperty("sharedStepsCount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? SharedStepsCount { get; set; } [Newtonsoft.Json.JsonProperty("checkListsCount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? CheckListsCount { get; set; } [Newtonsoft.Json.JsonProperty("autoTestsCount", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? AutoTestsCount { get; set; } /// <summary> /// Property is used to filter favourite projects /// </summary> [Newtonsoft.Json.JsonProperty("isFavorite", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsFavorite { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectPostModel { [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class ProjectPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionModel { [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionMoveModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("oldParentId", Required = Newtonsoft.Json.Required.Always)] public System.Guid OldParentId { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ParentId { get; set; } /// <summary> /// Used for section rank set /// </summary> [Newtonsoft.Json.JsonProperty("nextSectionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? NextSectionId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionPostModel { [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepPutModel> PreconditionSteps { get; set; } [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepPutModel> PostconditionSteps { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepPutModel> PreconditionSteps { get; set; } [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepPutModel> PostconditionSteps { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionRenameModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SectionWithStepsModel { [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepModel> PreconditionSteps { get; set; } [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepModel> PostconditionSteps { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class SharedStepModel { [Newtonsoft.Json.JsonProperty("versionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? VersionId { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.Obsolete] public System.Collections.Generic.List<StepModel> Steps { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StepModel { [Newtonsoft.Json.JsonProperty("workItem", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public SharedStepModel WorkItem { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Action { get; set; } [Newtonsoft.Json.JsonProperty("expected", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Expected { get; set; } [Newtonsoft.Json.JsonProperty("testData", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string TestData { get; set; } [Newtonsoft.Json.JsonProperty("comments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Comments { get; set; } [Newtonsoft.Json.JsonProperty("workItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class StepPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("action", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Action { get; set; } [Newtonsoft.Json.JsonProperty("expected", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Expected { get; set; } [Newtonsoft.Json.JsonProperty("testData", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string TestData { get; set; } [Newtonsoft.Json.JsonProperty("comments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Comments { get; set; } [Newtonsoft.Json.JsonProperty("workItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TagShortModel { [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPlanModel { [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public TestPlanStatusModel? Status { get; set; } /// <summary> /// Set when test plan is starter (status changed to: In Progress) /// </summary> [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } /// <summary> /// set when test plan status is completed (status changed to: Completed) /// </summary> [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } /// <summary> /// Used for search Test plan /// </summary> [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("lockedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? LockedDate { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("lockedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LockedById { get; set; } [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<TagShortModel> Tags { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("startDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartDate { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("endDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? EndDate { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("build", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Build { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("productName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string ProductName { get; set; } [Newtonsoft.Json.JsonProperty("hasAutomaticDurationTimer", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasAutomaticDurationTimer { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPlanPostModel { [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<TagShortModel> Tags { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("startDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartDate { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("endDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? EndDate { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("build", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Build { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("productName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string ProductName { get; set; } [Newtonsoft.Json.JsonProperty("hasAutomaticDurationTimer", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasAutomaticDurationTimer { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPlanPutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("lockedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LockedById { get; set; } [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<TagShortModel> Tags { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("startDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartDate { get; set; } /// <summary> /// Used for analytics /// </summary> [Newtonsoft.Json.JsonProperty("endDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? EndDate { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("build", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Build { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("productName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string ProductName { get; set; } [Newtonsoft.Json.JsonProperty("hasAutomaticDurationTimer", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? HasAutomaticDurationTimer { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum TestPlanStatusModel { [System.Runtime.Serialization.EnumMember(Value = @"New")] New = 0, [System.Runtime.Serialization.EnumMember(Value = @"InProgress")] InProgress = 1, [System.Runtime.Serialization.EnumMember(Value = @"Paused")] Paused = 2, [System.Runtime.Serialization.EnumMember(Value = @"Completed")] Completed = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPointByTestSuiteModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("testerId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TesterId { get; set; } [Newtonsoft.Json.JsonProperty("workItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemId { get; set; } [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ConfigurationId { get; set; } /// <summary> /// Applies one of these values: Blocked, NoResults, Failed, Passed /// </summary> [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Status { get; set; } [Newtonsoft.Json.JsonProperty("lastTestResultId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LastTestResultId { get; set; } [Newtonsoft.Json.JsonProperty("iterationId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? IterationId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPointSelector { [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ConfigurationId { get; set; } [Newtonsoft.Json.JsonProperty("workitemIds", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<System.Guid> WorkitemIds { get; } = new System.Collections.Generic.List<System.Guid>(); } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestPointShortModel { [Newtonsoft.Json.JsonProperty("testSuiteId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestSuiteId { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("testerId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TesterId { get; set; } [Newtonsoft.Json.JsonProperty("workItemId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemId { get; set; } [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ConfigurationId { get; set; } /// <summary> /// Applies one of these values: Blocked, NoResults, Failed, Passed /// </summary> [Newtonsoft.Json.JsonProperty("status", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Status { get; set; } [Newtonsoft.Json.JsonProperty("lastTestResultId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? LastTestResultId { get; set; } [Newtonsoft.Json.JsonProperty("iterationId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? IterationId { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestResultChronologyModel { [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Outcome { get; set; } [Newtonsoft.Json.JsonProperty("count", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? Count { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestResultHistoryReportModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } /// <summary> /// If test run was stopped, this property equals identifier of user who stopped it.Otherwise, the property equals identifier of user who created the test result /// </summary> [Newtonsoft.Json.JsonProperty("userId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? UserId { get; set; } [Newtonsoft.Json.JsonProperty("testRunId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestRunId { get; set; } [Newtonsoft.Json.JsonProperty("testRunName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string TestRunName { get; set; } [Newtonsoft.Json.JsonProperty("createdByUserName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string CreatedByUserName { get; set; } [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanGlobalId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? TestPlanGlobalId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string TestPlanName { get; set; } /// <summary> /// If test point related to the test result has configuration, this property will be equal to the test point configuration name. Otherwise, this property will be equal to the test result configuration name /// </summary> [Newtonsoft.Json.JsonProperty("configurationName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string ConfigurationName { get; set; } [Newtonsoft.Json.JsonProperty("isAutomated", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsAutomated { get; set; } /// <summary> /// If any test result related to the test run is linked with autotest and the run has an outcome, the outcome value equalsto the worst outcome of the last modified test result.Otherwise, the outcome equals to the outcome of first created test result in the test run /// </summary> [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Outcome { get; set; } /// <summary> /// If any test result related to the test run is linked with autotest, comment will have default valueOtherwise, the comment equals to the comment of first created test result in the test run /// </summary> [Newtonsoft.Json.JsonProperty("comment", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Comment { get; set; } /// <summary> /// If any test result related to the test run is linked with autotest, link will be equal to the links of last modified test result.Otherwise, the links equals to the links of first created test result in the test run /// </summary> [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkModel> Links { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? Duration { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } /// <summary> /// If any test result related to the test run is linked with autotest, attachments will be equal to the attachments of last modified test result.Otherwise, the attachments equals to the attachments of first created test result in the test run /// </summary> [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("workItemVersionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemVersionId { get; set; } [Newtonsoft.Json.JsonProperty("workItemVersionNumber", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? WorkItemVersionNumber { get; set; } [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } [Newtonsoft.Json.JsonProperty("failureClassIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> FailureClassIds { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestResultV2GetModel { [Newtonsoft.Json.JsonProperty("configuration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public ConfigurationModel Configuration { get; set; } [Newtonsoft.Json.JsonProperty("autoTest", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public AutoTestModelV2GetModel AutoTest { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ConfigurationId { get; set; } [Newtonsoft.Json.JsonProperty("workItemVersionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemVersionId { get; set; } [Newtonsoft.Json.JsonProperty("autoTestId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? AutoTestId { get; set; } [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Message { get; set; } [Newtonsoft.Json.JsonProperty("traces", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Traces { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("runByUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? RunByUserId { get; set; } [Newtonsoft.Json.JsonProperty("stoppedByUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? StoppedByUserId { get; set; } [Newtonsoft.Json.JsonProperty("testPointId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPointId { get; set; } [Newtonsoft.Json.JsonProperty("testPoint", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public TestPointShortModel TestPoint { get; set; } [Newtonsoft.Json.JsonProperty("testRunId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestRunId { get; set; } /// <summary> /// Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped /// </summary> [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Outcome { get; set; } [Newtonsoft.Json.JsonProperty("comment", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Comment { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkModel> Links { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Parameters { get; set; } [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Properties { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestResultV2ShortModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("configurationId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ConfigurationId { get; set; } [Newtonsoft.Json.JsonProperty("workItemVersionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? WorkItemVersionId { get; set; } [Newtonsoft.Json.JsonProperty("autoTestId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? AutoTestId { get; set; } [Newtonsoft.Json.JsonProperty("message", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Message { get; set; } [Newtonsoft.Json.JsonProperty("traces", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Traces { get; set; } [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("runByUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? RunByUserId { get; set; } [Newtonsoft.Json.JsonProperty("stoppedByUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? StoppedByUserId { get; set; } [Newtonsoft.Json.JsonProperty("testPointId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPointId { get; set; } [Newtonsoft.Json.JsonProperty("testPoint", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public TestPointShortModel TestPoint { get; set; } [Newtonsoft.Json.JsonProperty("testRunId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestRunId { get; set; } /// <summary> /// Property can contain one of these values: Passed, Failed, InProgress, Blocked, Skipped /// </summary> [Newtonsoft.Json.JsonProperty("outcome", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Outcome { get; set; } [Newtonsoft.Json.JsonProperty("comment", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Comment { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<LinkModel> Links { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("parameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Parameters { get; set; } [Newtonsoft.Json.JsonProperty("properties", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, string> Properties { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunFillByAutoTestsPostModel { /// <summary> /// This property is used to link test run with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("configurationIds", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<System.Guid> ConfigurationIds { get; } = new System.Collections.Generic.List<System.Guid>(); [Newtonsoft.Json.JsonProperty("autoTestExternalIds", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<string> AutoTestExternalIds { get; } = new System.Collections.Generic.List<string>(); [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunFillByConfigurationsPostModel { [Newtonsoft.Json.JsonProperty("testPointSelectors", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<TestPointSelector> TestPointSelectors { get; } = new System.Collections.Generic.List<TestPointSelector>(); /// <summary> /// This property is used to link test run with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } /// <summary> /// This property is used to link test run with test plan /// </summary> [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.Always)] public System.Guid TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunFillByWorkItemsPostModel { [Newtonsoft.Json.JsonProperty("configurationIds", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<System.Guid> ConfigurationIds { get; } = new System.Collections.Generic.List<System.Guid>(); [Newtonsoft.Json.JsonProperty("workitemIds", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<System.Guid> WorkitemIds { get; } = new System.Collections.Generic.List<System.Guid>(); /// <summary> /// This property is used to link test run with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } /// <summary> /// This property is used to link test run with test plan /// </summary> [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.Always)] public System.Guid TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunShortModel { [Newtonsoft.Json.JsonProperty("stateName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public TestRunStateTypeModel? StateName { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum TestRunStateTypeModel { [System.Runtime.Serialization.EnumMember(Value = @"NotStarted")] NotStarted = 0, [System.Runtime.Serialization.EnumMember(Value = @"InProgress")] InProgress = 1, [System.Runtime.Serialization.EnumMember(Value = @"Stopped")] Stopped = 2, [System.Runtime.Serialization.EnumMember(Value = @"Completed")] Completed = 3, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunV2GetModel { [Newtonsoft.Json.JsonProperty("startedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? StartedOn { get; set; } [Newtonsoft.Json.JsonProperty("completedOn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CompletedOn { get; set; } [Newtonsoft.Json.JsonProperty("stateName", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public TestRunStateTypeModel? StateName { get; set; } /// <summary> /// This property is used to link test run with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } /// <summary> /// This property is used to link test run with test plan /// </summary> [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("testResults", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<TestResultV2GetModel> TestResults { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("createdByUserName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string CreatedByUserName { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } /// <summary> /// Once launch source is specified it cannot be updated /// </summary> [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunV2PostShortModel { /// <summary> /// This property is to link test run with a project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestRunV2PutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)] public System.Guid Id { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } /// <summary> /// Once launch source is specified it cannot be updated /// </summary> [Newtonsoft.Json.JsonProperty("launchSource", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string LaunchSource { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestSuiteV2GetModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestSuiteV2PostModel { [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestSuiteV2PutModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestSuiteV2TreeModel { /// <summary> /// nested enumeration of children is allowed /// </summary> [Newtonsoft.Json.JsonProperty("children", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.Obsolete] public System.Collections.Generic.List<TestSuiteV2TreeModel> Children { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("parentId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ParentId { get; set; } [Newtonsoft.Json.JsonProperty("testPlanId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? TestPlanId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum WorkItemEntityTypes { [System.Runtime.Serialization.EnumMember(Value = @"TestCases")] TestCases = 0, [System.Runtime.Serialization.EnumMember(Value = @"CheckLists")] CheckLists = 1, [System.Runtime.Serialization.EnumMember(Value = @"SharedSteps")] SharedSteps = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemExtractionModel { [Newtonsoft.Json.JsonProperty("includeWorkItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> IncludeWorkItems { get; } [Newtonsoft.Json.JsonProperty("includeSections", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> IncludeSections { get; } [Newtonsoft.Json.JsonProperty("includeProjects", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> IncludeProjects { get; } [Newtonsoft.Json.JsonProperty("excludeWorkItems", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ExcludeWorkItems { get; } [Newtonsoft.Json.JsonProperty("excludeSections", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ExcludeSections { get; } [Newtonsoft.Json.JsonProperty("excludeProjects", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ExcludeProjects { get; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemFilterModel { [Newtonsoft.Json.JsonProperty("nameOrId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string NameOrId { get; set; } [Newtonsoft.Json.JsonProperty("includeIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> IncludeIds { get; set; } [Newtonsoft.Json.JsonProperty("excludeIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ExcludeIds { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Name { get; set; } [Newtonsoft.Json.JsonProperty("globalIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<long> GlobalIds { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> Attributes { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("projectIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ProjectIds { get; set; } [Newtonsoft.Json.JsonProperty("sectionIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> SectionIds { get; set; } [Newtonsoft.Json.JsonProperty("createdByIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> CreatedByIds { get; set; } [Newtonsoft.Json.JsonProperty("modifiedByIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> ModifiedByIds { get; set; } [Newtonsoft.Json.JsonProperty("states", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public System.Collections.Generic.List<WorkItemStates> States { get; set; } [Newtonsoft.Json.JsonProperty("priorities", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public System.Collections.Generic.List<WorkItemPriorityModel> Priorities { get; set; } [Newtonsoft.Json.JsonProperty("entityTypes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> EntityTypes { get; set; } [Newtonsoft.Json.JsonProperty("createdDateMinimal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDateMinimal { get; set; } [Newtonsoft.Json.JsonProperty("createdDateMaximal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDateMaximal { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDateMinimal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDateMinimal { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDateMaximal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDateMaximal { get; set; } [Newtonsoft.Json.JsonProperty("durationMinimal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? DurationMinimal { get; set; } [Newtonsoft.Json.JsonProperty("durationMaximal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? DurationMaximal { get; set; } [Newtonsoft.Json.JsonProperty("isAutomated", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsAutomated { get; set; } [Newtonsoft.Json.JsonProperty("tagNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> TagNames { get; set; } [Newtonsoft.Json.JsonProperty("autoTestIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<System.Guid> AutoTestIds { get; set; } [Newtonsoft.Json.JsonProperty("exceptWorkItemIds", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] [System.Obsolete] public System.Collections.Generic.List<System.Guid> ExceptWorkItemIds { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemIdModel { /// <summary> /// Used for search WorkItem. Internal identifier has a Guid data format. Global identifier has an integer data format /// </summary> [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Id { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemModel { /// <summary> /// used for versioning changes in workitem /// </summary> [Newtonsoft.Json.JsonProperty("versionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? VersionId { get; set; } /// <summary> /// used for getting a median duration of all autotests related to this workitem /// </summary> [Newtonsoft.Json.JsonProperty("medianDuration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? MedianDuration { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("entityTypeName", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemEntityTypes EntityTypeName { get; set; } [Newtonsoft.Json.JsonProperty("isAutomated", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsAutomated { get; set; } [Newtonsoft.Json.JsonProperty("autoTests", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestModel> AutoTests { get; set; } [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("sectionPreconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepModel> SectionPreconditionSteps { get; set; } [Newtonsoft.Json.JsonProperty("sectionPostconditionSteps", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<StepModel> SectionPostconditionSteps { get; set; } /// <summary> /// used for define chronology of workitem state in each version /// </summary> [Newtonsoft.Json.JsonProperty("versionNumber", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? VersionNumber { get; set; } [Newtonsoft.Json.JsonProperty("iterations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<IterationModel> Iterations { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("sectionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? SectionId { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("state", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemStates State { get; set; } [Newtonsoft.Json.JsonProperty("priority", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemPriorityModel Priority { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepModel> Steps { get; } = new System.Collections.Generic.List<StepModel>(); [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepModel> PreconditionSteps { get; } = new System.Collections.Generic.List<StepModel>(); [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepModel> PostconditionSteps { get; } = new System.Collections.Generic.List<StepModel>(); [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? Duration { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; } = new System.Collections.Generic.Dictionary<string, object>(); [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<TagShortModel> Tags { get; } = new System.Collections.Generic.List<TagShortModel>(); [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<LinkModel> Links { get; } = new System.Collections.Generic.List<LinkModel>(); [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemPostModel { [Newtonsoft.Json.JsonProperty("entityTypeName", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemEntityTypes EntityTypeName { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("state", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemStates State { get; set; } [Newtonsoft.Json.JsonProperty("priority", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemPriorityModel Priority { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> Steps { get; } = new System.Collections.Generic.List<StepPutModel>(); [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> PreconditionSteps { get; } = new System.Collections.Generic.List<StepPutModel>(); [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> PostconditionSteps { get; } = new System.Collections.Generic.List<StepPutModel>(); /// <summary> /// Must be 0 for shared steps and greater than 0 for the other types of work items /// </summary> [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.Always)] public int Duration { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; } = new System.Collections.Generic.Dictionary<string, object>(); [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<TagShortModel> Tags { get; } = new System.Collections.Generic.List<TagShortModel>(); [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AttachmentPutModel> Attachments { get; set; } [Newtonsoft.Json.JsonProperty("iterations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<IterationPutModel> Iterations { get; set; } [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<LinkPostModel> Links { get; } = new System.Collections.Generic.List<LinkPostModel>(); [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } /// <summary> /// This property is used to link workitem with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } [Newtonsoft.Json.JsonProperty("sectionId", Required = Newtonsoft.Json.Required.Always)] public System.Guid SectionId { get; set; } [Newtonsoft.Json.JsonProperty("autoTests", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestIdModel> AutoTests { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum WorkItemPriorityModel { [System.Runtime.Serialization.EnumMember(Value = @"Lowest")] Lowest = 0, [System.Runtime.Serialization.EnumMember(Value = @"Low")] Low = 1, [System.Runtime.Serialization.EnumMember(Value = @"Medium")] Medium = 2, [System.Runtime.Serialization.EnumMember(Value = @"High")] High = 3, [System.Runtime.Serialization.EnumMember(Value = @"Highest")] Highest = 4, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemPutModel { [Newtonsoft.Json.JsonProperty("attachments", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<AttachmentPutModel> Attachments { get; } = new System.Collections.Generic.List<AttachmentPutModel>(); [Newtonsoft.Json.JsonProperty("iterations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<IterationPutModel> Iterations { get; set; } [Newtonsoft.Json.JsonProperty("autoTests", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<AutoTestIdModel> AutoTests { get; set; } [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } [Newtonsoft.Json.JsonProperty("sectionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? SectionId { get; set; } [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Description { get; set; } [Newtonsoft.Json.JsonProperty("state", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemStates State { get; set; } [Newtonsoft.Json.JsonProperty("priority", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemPriorityModel Priority { get; set; } [Newtonsoft.Json.JsonProperty("steps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> Steps { get; } = new System.Collections.Generic.List<StepPutModel>(); [Newtonsoft.Json.JsonProperty("preconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> PreconditionSteps { get; } = new System.Collections.Generic.List<StepPutModel>(); [Newtonsoft.Json.JsonProperty("postconditionSteps", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<StepPutModel> PostconditionSteps { get; } = new System.Collections.Generic.List<StepPutModel>(); [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? Duration { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; } = new System.Collections.Generic.Dictionary<string, object>(); [Newtonsoft.Json.JsonProperty("tags", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<TagShortModel> Tags { get; } = new System.Collections.Generic.List<TagShortModel>(); [Newtonsoft.Json.JsonProperty("links", Required = Newtonsoft.Json.Required.Always)] public System.Collections.Generic.List<LinkPutModel> Links { get; } = new System.Collections.Generic.List<LinkPutModel>(); [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemSelectModel { [Newtonsoft.Json.JsonProperty("filter", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public WorkItemFilterModel Filter { get; set; } [Newtonsoft.Json.JsonProperty("extractionModel", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public WorkItemExtractionModel ExtractionModel { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemShortModel { [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? Id { get; set; } /// <summary> /// used for versioning changes in workitem /// </summary> [Newtonsoft.Json.JsonProperty("versionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? VersionId { get; set; } [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Always)] public string Name { get; set; } /// <summary> /// Property can have one of these values: CheckLists, SharedSteps, TestCases /// </summary> [Newtonsoft.Json.JsonProperty("entityTypeName", Required = Newtonsoft.Json.Required.Always)] public string EntityTypeName { get; set; } /// <summary> /// This property is used to link autotest with project /// </summary> [Newtonsoft.Json.JsonProperty("projectId", Required = Newtonsoft.Json.Required.Always)] public System.Guid ProjectId { get; set; } /// <summary> /// This property links workitem with section /// </summary> [Newtonsoft.Json.JsonProperty("sectionId", Required = Newtonsoft.Json.Required.Always)] public System.Guid SectionId { get; set; } [Newtonsoft.Json.JsonProperty("isAutomated", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsAutomated { get; set; } [Newtonsoft.Json.JsonProperty("globalId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long? GlobalId { get; set; } [Newtonsoft.Json.JsonProperty("duration", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? Duration { get; set; } [Newtonsoft.Json.JsonProperty("attributes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.Dictionary<string, object> Attributes { get; set; } [Newtonsoft.Json.JsonProperty("createdById", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? CreatedById { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } [Newtonsoft.Json.JsonProperty("createdDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? CreatedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } /// <summary> /// Property can have one of these values: NeedsWork, NotReady, Ready /// </summary> [Newtonsoft.Json.JsonProperty("state", Required = Newtonsoft.Json.Required.Always)] public string State { get; set; } [Newtonsoft.Json.JsonProperty("priority", Required = Newtonsoft.Json.Required.Always)] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public WorkItemPriorityModel Priority { get; set; } [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public bool? IsDeleted { get; set; } [Newtonsoft.Json.JsonProperty("tagNames", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<string> TagNames { get; set; } [Newtonsoft.Json.JsonProperty("iterations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Collections.Generic.List<IterationModel> Iterations { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public enum WorkItemStates { [System.Runtime.Serialization.EnumMember(Value = @"NeedsWork")] NeedsWork = 0, [System.Runtime.Serialization.EnumMember(Value = @"NotReady")] NotReady = 1, [System.Runtime.Serialization.EnumMember(Value = @"Ready")] Ready = 2, } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class WorkItemVersionModel { /// <summary> /// used for versioning changes in workitem /// </summary> [Newtonsoft.Json.JsonProperty("versionId", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? VersionId { get; set; } /// <summary> /// used for define chronology of workitem state in each version /// </summary> [Newtonsoft.Json.JsonProperty("versionNumber", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public int? VersionNumber { get; set; } [Newtonsoft.Json.JsonProperty("modifiedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.DateTime? ModifiedDate { get; set; } [Newtonsoft.Json.JsonProperty("modifiedById", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public System.Guid? ModifiedById { get; set; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FileParameter { public FileParameter(System.IO.Stream data) : this (data, null, null) { } public FileParameter(System.IO.Stream data, string fileName) : this (data, fileName, null) { } public FileParameter(System.IO.Stream data, string fileName, string contentType) { Data = data; FileName = fileName; ContentType = contentType; } public System.IO.Stream Data { get; private set; } public string FileName { get; private set; } public string ContentType { get; private set; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class FileResponse : System.IDisposable { private System.IDisposable _client; private System.IDisposable _response; public int StatusCode { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public System.IO.Stream Stream { get; private set; } public bool IsPartial { get { return StatusCode == 206; } } public FileResponse(int statusCode, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.IO.Stream stream, System.IDisposable client, System.IDisposable response) { StatusCode = statusCode; Headers = headers; Stream = stream; _client = client; _response = response; } public void Dispose() { Stream.Dispose(); if (_response != null) _response.Dispose(); if (_client != null) _client.Dispose(); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItAttachmentsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItAttachmentsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItAttachmentsException<TResult> : TestItAttachmentsException { public TResult Result { get; private set; } public TestItAttachmentsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItAutoTestsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItAutoTestsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItAutoTestsException<TResult> : TestItAutoTestsException { public TResult Result { get; private set; } public TestItAutoTestsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItConfigurationsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItConfigurationsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItConfigurationsException<TResult> : TestItConfigurationsException { public TResult Result { get; private set; } public TestItConfigurationsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItParametersException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItParametersException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItParametersException<TResult> : TestItParametersException { public TResult Result { get; private set; } public TestItParametersException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItProjectsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItProjectsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItProjectsException<TResult> : TestItProjectsException { public TResult Result { get; private set; } public TestItProjectsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItSectionsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItSectionsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItSectionsException<TResult> : TestItSectionsException { public TResult Result { get; private set; } public TestItSectionsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestPlansException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItTestPlansException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestPlansException<TResult> : TestItTestPlansException { public TResult Result { get; private set; } public TestItTestPlansException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestResultsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItTestResultsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestResultsException<TResult> : TestItTestResultsException { public TResult Result { get; private set; } public TestItTestResultsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestRunsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItTestRunsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestRunsException<TResult> : TestItTestRunsException { public TResult Result { get; private set; } public TestItTestRunsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestSuitesException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItTestSuitesException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItTestSuitesException<TResult> : TestItTestSuitesException { public TResult Result { get; private set; } public TestItTestSuitesException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItWorkItemsException : System.Exception { public int StatusCode { get; private set; } public string Response { get; private set; } public System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; } public TestItWorkItemsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException) : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) { StatusCode = statusCode; Response = response; Headers = headers; } public override string ToString() { return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); } } [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v12.0.0.0))")] public partial class TestItWorkItemsException<TResult> : TestItWorkItemsException { public TResult Result { get; private set; } public TestItWorkItemsException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException) : base(message, statusCode, response, headers, innerException) { Result = result; } } } #pragma warning restore 1591 #pragma warning restore 1573 #pragma warning restore 472 #pragma warning restore 114 #pragma warning restore 108 #pragma warning restore 3016 #pragma warning restore 8603
58.915298
274
0.71965
[ "Apache-2.0" ]
testit-tms/api-client-dotnet
src/TestIt.Api/Models.g.cs
182,932
C#
using System.IO; using BlazingArticle.Model; using Mediwatch.Shared.Models; using Microsoft.EntityFrameworkCore; namespace Server { public class DbContextMediwatch : DbContext { public DbContextMediwatch (DbContextOptions<DbContextMediwatch> options) : base(options) { } protected DbContextMediwatch() { } //entities public DbSet<compagny> compagnies { get; set; } public DbSet<formation> formations { get; set; } public DbSet<applicant_session> applicant_sessions { get; set; } public DbSet<tag> tags { get; set; } public DbSet<orderInfo> orderInfos {get; set;} public DbSet<BlazingArticleModel> articleModels {get; set;} public DbSet<JoinFormationTag> joinFormationTags {get; set;} protected override void OnConfiguring (DbContextOptionsBuilder options) { var folderName = "Data"; var PathSave = Path.Combine(Directory.GetCurrentDirectory(), folderName); var fullPath = Path.Combine(PathSave, "data.db"); options.UseSqlite("Data Source=" + fullPath); } } }
33.911765
85
0.653079
[ "CC0-1.0" ]
Mediwatch/BlazyWatch
Server/DbContextMediwatch.cs
1,153
C#
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // 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 Google.Api.Ads.AdManager.Lib; using Google.Api.Ads.AdManager.v202105; using System; using Google.Api.Ads.AdManager.Util.v202105; namespace Google.Api.Ads.AdManager.Examples.CSharp.v202105 { /// <summary> /// This code example updates custom field descriptions. To determine which /// custom fields exist, run GetAllCustomFields.cs. /// </summary> public class UpdateCustomFields : SampleBase { /// <summary> /// Returns a description about the code example. /// </summary> public override string Description { get { return "This code example updates custom field descriptions. To determine which " + "custom fields exist, run GetAllCustomFields.cs."; } } /// <summary> /// Main method, to run this code example as a standalone application. /// </summary> public static void Main() { UpdateCustomFields codeExample = new UpdateCustomFields(); Console.WriteLine(codeExample.Description); codeExample.Run(new AdManagerUser()); } /// <summary> /// Run the code example. /// </summary> public void Run(AdManagerUser user) { using (CustomFieldService customFieldService = user.GetService<CustomFieldService>()) { // Set the ID of the custom field to update. long customFieldId = long.Parse(_T("INSERT_CUSTOM_FIELD_ID_HERE")); try { // Get the custom field. StatementBuilder statementBuilder = new StatementBuilder() .Where("id = :id") .OrderBy("id ASC") .Limit(1) .AddValue("id", customFieldId); CustomFieldPage page = customFieldService.getCustomFieldsByStatement( statementBuilder.ToStatement()); CustomField customField = page.results[0]; customField.description = (customField.description == null ? "" : customField.description + " Updated"); // Update the custom field on the server. CustomField[] customFields = customFieldService.updateCustomFields( new CustomField[] { customField }); // Display results foreach (CustomField updatedCustomField in customFields) { Console.WriteLine( "Custom field with ID \"{0}\", name \"{1}\", and description " + "\"{2}\" was updated.", updatedCustomField.id, updatedCustomField.name, updatedCustomField.description); } } catch (Exception e) { Console.WriteLine("Failed to update custom fields. Exception says \"{0}\"", e.Message); } } } } }
37.085714
99
0.53621
[ "Apache-2.0" ]
googleads/googleads-dotnet-lib
examples/AdManager/CSharp/v202105/CustomFieldService/UpdateCustomFields.cs
3,894
C#
// File generated from our OpenAPI spec namespace Stripe.Identity { using Newtonsoft.Json; public class VerificationReportIdNumberError : StripeEntity<VerificationReportIdNumberError> { /// <summary> /// A short machine-readable string giving the reason for the verification failure. /// One of: <c>id_number_insufficient_document_data</c>, <c>id_number_mismatch</c>, or /// <c>id_number_unverified_other</c>. /// </summary> [JsonProperty("code")] public string Code { get; set; } /// <summary> /// A human-readable message giving the reason for the failure. These messages can be shown /// to your users. /// </summary> [JsonProperty("reason")] public string Reason { get; set; } } }
33.625
99
0.630731
[ "Apache-2.0" ]
GigiAkamala/stripe-dotnet
src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportIdNumberError.cs
807
C#
namespace SharpLocker.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SharpLocker.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap arrow { get { object obj = ResourceManager.GetObject("arrow", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap button { get { object obj = ResourceManager.GetObject("button", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap button1 { get { object obj = ResourceManager.GetObject("button1", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap button2 { get { object obj = ResourceManager.GetObject("button2", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap thumb_14400082930User { get { object obj = ResourceManager.GetObject("thumb_14400082930User", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap Untitled_1 { get { object obj = ResourceManager.GetObject("Untitled-1", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> internal static System.Drawing.Bitmap usericon { get { object obj = ResourceManager.GetObject("usericon", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } } }
41.471545
178
0.570868
[ "Apache-2.0" ]
TheNoobProgrammer22/fake-lock-screen-generator
Fake Password Screen/Properties/Resources.Designer.cs
5,101
C#
using System; using System.Linq; using System.Xml.Serialization; using System.Collections.Generic; namespace Tiled { /// <summary> /// Represents a polyline object (<see cref="TiledObject"/>). /// </summary> public class TiledPolyline : TiledBaseObject { /// <summary> /// A list of x,y coordinates in pixels. /// </summary> [XmlIgnore] public List<Tuple<int, int>> Points; /// <summary> /// The points in string format (<c>0,0 12,5 5,7 ...</c>). /// Gets and sets the points in string format (<c>0,0 12,5 5,7 ...</c>). /// For a traditional object, use <see cref="Points"/>. /// </summary> [XmlAttribute("points")] public string PointsString { get { return Points.Aggregate("", (s, tuple) => s.Length == 0 ? tuple.Item1 + "," + tuple.Item2 : s + " " + tuple.Item1 + "," + tuple.Item2); } set { Points = new List<Tuple<int, int>>(); var points = value.Split(' '); foreach (var point in points) { var comma = point.Split(','); Points.Add(new Tuple<int, int>(int.Parse(comma[0]), int.Parse(comma[1]))); } } } } }
29.571429
95
0.452036
[ "BSD-3-Clause" ]
napen123/Tiled.Net
Tiled.Net/TiledPolyline.cs
1,451
C#
namespace Servie { partial class frmAbout { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAbout)); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.cmdOk = new System.Windows.Forms.Button(); this.lblServie = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.lblNumRunning = new System.Windows.Forms.Label(); this.timerUpdate = new System.Windows.Forms.Timer(this.components); this.lnkLicense = new System.Windows.Forms.LinkLabel(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.lnkWebsite = new System.Windows.Forms.LinkLabel(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image"))); this.pictureBox1.Location = new System.Drawing.Point(0, 12); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(190, 190); this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // cmdOk // this.cmdOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.cmdOk.Location = new System.Drawing.Point(365, 179); this.cmdOk.Name = "cmdOk"; this.cmdOk.Size = new System.Drawing.Size(75, 23); this.cmdOk.TabIndex = 1; this.cmdOk.Text = "OK"; this.cmdOk.UseVisualStyleBackColor = true; this.cmdOk.Click += new System.EventHandler(this.cmdOk_Click); // // lblServie // this.lblServie.AutoSize = true; this.lblServie.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblServie.Location = new System.Drawing.Point(195, 13); this.lblServie.Name = "lblServie"; this.lblServie.Size = new System.Drawing.Size(77, 20); this.lblServie.TabIndex = 2; this.lblServie.Text = "lblServie"; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(196, 33); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(194, 13); this.label1.TabIndex = 3; this.label1.Text = "Copyright © Adrian O\'Grady 2010, 2011"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(196, 46); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(170, 13); this.label2.TabIndex = 4; this.label2.Text = "Icon contributed by David Hamblin"; // // lblNumRunning // this.lblNumRunning.AutoSize = true; this.lblNumRunning.Location = new System.Drawing.Point(196, 104); this.lblNumRunning.Name = "lblNumRunning"; this.lblNumRunning.Size = new System.Drawing.Size(79, 13); this.lblNumRunning.TabIndex = 5; this.lblNumRunning.Text = "lblNumRunning"; // // timerUpdate // this.timerUpdate.Interval = 2000; this.timerUpdate.Tick += new System.EventHandler(this.timerUpdate_Tick); // // lnkLicense // this.lnkLicense.AutoSize = true; this.lnkLicense.Location = new System.Drawing.Point(196, 72); this.lnkLicense.Name = "lnkLicense"; this.lnkLicense.Size = new System.Drawing.Size(142, 13); this.lnkLicense.TabIndex = 7; this.lnkLicense.TabStop = true; this.lnkLicense.Text = "Apache License, version 2.0"; this.lnkLicense.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkLicense_LinkClicked); // // groupBox1 // this.groupBox1.Location = new System.Drawing.Point(199, 88); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(241, 10); this.groupBox1.TabIndex = 8; this.groupBox1.TabStop = false; // // lnkWebsite // this.lnkWebsite.AutoSize = true; this.lnkWebsite.Location = new System.Drawing.Point(196, 59); this.lnkWebsite.Name = "lnkWebsite"; this.lnkWebsite.Size = new System.Drawing.Size(82, 13); this.lnkWebsite.TabIndex = 9; this.lnkWebsite.TabStop = true; this.lnkWebsite.Text = "Project Website"; this.lnkWebsite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.lnkWebsite_LinkClicked); // // frmAbout // this.AcceptButton = this.cmdOk; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(452, 213); this.Controls.Add(this.lnkWebsite); this.Controls.Add(this.groupBox1); this.Controls.Add(this.lnkLicense); this.Controls.Add(this.lblNumRunning); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.lblServie); this.Controls.Add(this.cmdOk); this.Controls.Add(this.pictureBox1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmAbout"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "About Servie"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmAbout_FormClosing); this.Load += new System.EventHandler(this.frmAbout_Load); this.VisibleChanged += new System.EventHandler(this.frmAbout_VisibleChanged); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Button cmdOk; private System.Windows.Forms.Label lblServie; private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label lblNumRunning; private System.Windows.Forms.Timer timerUpdate; private System.Windows.Forms.LinkLabel lnkLicense; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.LinkLabel lnkWebsite; } }
47.379121
167
0.580888
[ "Apache-2.0" ]
elpollouk/servie
Servie/frmAbout.Designer.cs
8,626
C#
using System; using NetRuntimeSystem = System; using System.Runtime.InteropServices; using System.ComponentModel; using System.Runtime.CompilerServices; using System.Reflection; using System.Collections.Generic; using System.Collections; using NetOffice; namespace NetOffice.ExcelApi { ///<summary> /// Interface IMenuItems /// SupportByVersion Excel, 9,10,11,12,14,15,16 ///</summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] [EntityTypeAttribute(EntityType.IsInterface)] public class IMenuItems : COMObject ,IEnumerable<object> { #pragma warning disable #region Type Information private static Type _type; [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public static Type LateBindingApiWrapperType { get { if (null == _type) _type = typeof(IMenuItems); return _type; } } #endregion #region Construction ///<param name="factory">current used factory core</param> ///<param name="parentObject">object there has created the proxy</param> ///<param name="comProxy">inner wrapped COM proxy</param> public IMenuItems(Core factory, COMObject parentObject, object comProxy) : base(factory, parentObject, comProxy) { } ///<param name="parentObject">object there has created the proxy</param> ///<param name="comProxy">inner wrapped COM proxy</param> [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems(COMObject parentObject, object comProxy) : base(parentObject, comProxy) { } ///<param name="factory">current used factory core</param> ///<param name="parentObject">object there has created the proxy</param> ///<param name="comProxy">inner wrapped COM proxy</param> ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems(Core factory, COMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(factory, parentObject, comProxy, comProxyType) { } ///<param name="parentObject">object there has created the proxy</param> ///<param name="comProxy">inner wrapped COM proxy</param> ///<param name="comProxyType">Type of inner wrapped COM proxy"</param> [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems(COMObject parentObject, object comProxy, NetRuntimeSystem.Type comProxyType) : base(parentObject, comProxy, comProxyType) { } ///<param name="replacedObject">object to replaced. replacedObject are not usable after this action</param> [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems(COMObject replacedObject) : base(replacedObject) { } [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems() : base() { } /// <param name="progId">registered ProgID</param> [EditorBrowsable(EditorBrowsableState.Never), Browsable(false)] public IMenuItems(string progId) : base(progId) { } #endregion #region Properties /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// Get /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.Application Application { get { object[] paramsArray = null; object returnItem = Invoker.PropertyGet(this, "Application", paramsArray); NetOffice.ExcelApi.Application newObject = Factory.CreateKnownObjectFromComProxy(this,returnItem,NetOffice.ExcelApi.Application.LateBindingApiWrapperType) as NetOffice.ExcelApi.Application; return newObject; } } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// Get /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.Enums.XlCreator Creator { get { object[] paramsArray = null; object returnItem = Invoker.PropertyGet(this, "Creator", paramsArray); int intReturnItem = NetRuntimeSystem.Convert.ToInt32(returnItem); return (NetOffice.ExcelApi.Enums.XlCreator)intReturnItem; } } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// Get /// Unknown COM Proxy /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public object Parent { get { object[] paramsArray = null; object returnItem = Invoker.PropertyGet(this, "Parent", paramsArray); COMObject newObject = Factory.CreateObjectFromComProxy(this,returnItem); return newObject; } } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// Get /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public Int32 Count { get { object[] paramsArray = null; object returnItem = Invoker.PropertyGet(this, "Count", paramsArray); return NetRuntimeSystem.Convert.ToInt32(returnItem); } } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// Get /// Unknown COM Proxy /// </summary> /// <param name="index">object Index</param> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] [NetRuntimeSystem.Runtime.CompilerServices.IndexerName("Item")] public object this[object index] { get { object[] paramsArray = Invoker.ValidateParamsArray(index); object returnItem = Invoker.PropertyGet(this, "_Default", paramsArray); COMObject newObject = Factory.CreateObjectFromComProxy(this,returnItem); return newObject; } } #endregion #region Methods /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> /// <param name="before">optional object Before</param> /// <param name="restore">optional object Restore</param> /// <param name="statusBar">optional object StatusBar</param> /// <param name="helpFile">optional object HelpFile</param> /// <param name="helpContextID">optional object HelpContextID</param> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey, object before, object restore, object statusBar, object helpFile, object helpContextID) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey, before, restore, statusBar, helpFile, helpContextID); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption) { object[] paramsArray = Invoker.ValidateParamsArray(caption); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> /// <param name="before">optional object Before</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey, object before) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey, before); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> /// <param name="before">optional object Before</param> /// <param name="restore">optional object Restore</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey, object before, object restore) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey, before, restore); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> /// <param name="before">optional object Before</param> /// <param name="restore">optional object Restore</param> /// <param name="statusBar">optional object StatusBar</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey, object before, object restore, object statusBar) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey, before, restore, statusBar); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="onAction">optional object OnAction</param> /// <param name="shortcutKey">optional object ShortcutKey</param> /// <param name="before">optional object Before</param> /// <param name="restore">optional object Restore</param> /// <param name="statusBar">optional object StatusBar</param> /// <param name="helpFile">optional object HelpFile</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.MenuItem Add(string caption, object onAction, object shortcutKey, object before, object restore, object statusBar, object helpFile) { object[] paramsArray = Invoker.ValidateParamsArray(caption, onAction, shortcutKey, before, restore, statusBar, helpFile); object returnItem = Invoker.MethodReturn(this, "Add", paramsArray); NetOffice.ExcelApi.MenuItem newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.MenuItem.LateBindingApiWrapperType) as NetOffice.ExcelApi.MenuItem; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="before">optional object Before</param> /// <param name="restore">optional object Restore</param> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.Menu AddMenu(string caption, object before, object restore) { object[] paramsArray = Invoker.ValidateParamsArray(caption, before, restore); object returnItem = Invoker.MethodReturn(this, "AddMenu", paramsArray); NetOffice.ExcelApi.Menu newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.Menu.LateBindingApiWrapperType) as NetOffice.ExcelApi.Menu; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.Menu AddMenu(string caption) { object[] paramsArray = Invoker.ValidateParamsArray(caption); object returnItem = Invoker.MethodReturn(this, "AddMenu", paramsArray); NetOffice.ExcelApi.Menu newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.Menu.LateBindingApiWrapperType) as NetOffice.ExcelApi.Menu; return newObject; } /// <summary> /// SupportByVersion Excel 9, 10, 11, 12, 14, 15, 16 /// /// </summary> /// <param name="caption">string Caption</param> /// <param name="before">optional object Before</param> [CustomMethodAttribute] [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public NetOffice.ExcelApi.Menu AddMenu(string caption, object before) { object[] paramsArray = Invoker.ValidateParamsArray(caption, before); object returnItem = Invoker.MethodReturn(this, "AddMenu", paramsArray); NetOffice.ExcelApi.Menu newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.ExcelApi.Menu.LateBindingApiWrapperType) as NetOffice.ExcelApi.Menu; return newObject; } #endregion #region IEnumerable<object> Member /// <summary> /// SupportByVersionAttribute Excel, 9,10,11,12,14,15,16 /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] public IEnumerator<object> GetEnumerator() { NetRuntimeSystem.Collections.IEnumerable innerEnumerator = (this as NetRuntimeSystem.Collections.IEnumerable); foreach (object item in innerEnumerator) yield return item; } #endregion #region IEnumerable Members /// <summary> /// SupportByVersionAttribute Excel, 9,10,11,12,14,15,16 /// </summary> [SupportByVersionAttribute("Excel", 9,10,11,12,14,15,16)] IEnumerator NetRuntimeSystem.Collections.IEnumerable.GetEnumerator() { return NetOffice.Utils.GetProxyEnumeratorAsProperty(this); } #endregion #pragma warning restore } }
40.152334
193
0.717844
[ "MIT" ]
Engineerumair/NetOffice
Source/Excel/Interfaces/IMenuItems.cs
16,344
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 securityhub-2018-10-26.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.SecurityHub.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.SecurityHub.Model.Internal.MarshallTransformations { /// <summary> /// AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails Marshaller /// </summary> public class AwsOpenSearchServiceDomainServiceSoftwareOptionsDetailsMarshaller : IRequestMarshaller<AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAutomatedUpdateDate()) { context.Writer.WritePropertyName("AutomatedUpdateDate"); context.Writer.Write(requestObject.AutomatedUpdateDate); } if(requestObject.IsSetCancellable()) { context.Writer.WritePropertyName("Cancellable"); context.Writer.Write(requestObject.Cancellable); } if(requestObject.IsSetCurrentVersion()) { context.Writer.WritePropertyName("CurrentVersion"); context.Writer.Write(requestObject.CurrentVersion); } if(requestObject.IsSetDescription()) { context.Writer.WritePropertyName("Description"); context.Writer.Write(requestObject.Description); } if(requestObject.IsSetNewVersion()) { context.Writer.WritePropertyName("NewVersion"); context.Writer.Write(requestObject.NewVersion); } if(requestObject.IsSetOptionalDeployment()) { context.Writer.WritePropertyName("OptionalDeployment"); context.Writer.Write(requestObject.OptionalDeployment); } if(requestObject.IsSetUpdateAvailable()) { context.Writer.WritePropertyName("UpdateAvailable"); context.Writer.Write(requestObject.UpdateAvailable); } if(requestObject.IsSetUpdateStatus()) { context.Writer.WritePropertyName("UpdateStatus"); context.Writer.Write(requestObject.UpdateStatus); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AwsOpenSearchServiceDomainServiceSoftwareOptionsDetailsMarshaller Instance = new AwsOpenSearchServiceDomainServiceSoftwareOptionsDetailsMarshaller(); } }
36.692308
184
0.659329
[ "Apache-2.0" ]
EbstaLimited/aws-sdk-net
sdk/src/Services/SecurityHub/Generated/Model/Internal/MarshallTransformations/AwsOpenSearchServiceDomainServiceSoftwareOptionsDetailsMarshaller.cs
3,816
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Wildlife.Models { [Table ("Sighting")] public class Sighting { [Key] public int SightingId { get; set; } public string date { get; set; } public int latitude { get; set; } public int longitude { get; set; } public int SpeciesId { get; set; } public virtual Species Species { get; set; } } }
25.863636
52
0.659051
[ "MIT" ]
nsanders9022/wildlife-tracker
src/Wildlife/Models/Sighting.cs
571
C#
namespace Fildo.Core.ViewModels { using Entities; using System.Collections.Generic; using System.Windows.Input; using System; using IPlatform; using Others; using Workers; using System.Collections.ObjectModel; using System.Threading.Tasks; using Resources; using MvvmCross.Core.ViewModels; public class InfoViewModel : BaseViewModel { public InfoViewModel(INetEase netEase, INetwork network, IPlayer player, IDialog dialog) : base(netEase, network, dialog) { } } }
21.555556
96
0.647766
[ "MIT" ]
yknx4/Fildo
Fildo.Core/ViewModels/InfoViewModel.cs
582
C#
// ----------------------------------------------------------------------- // <copyright file="HtmlResult.cs" company="SimpleBrowser"> // Copyright © 2010 - 2019, Nathan Ridley and the SimpleBrowser contributors. // See https://github.com/SimpleBrowserDotNet/SimpleBrowser/blob/master/readme.md // </copyright> // ----------------------------------------------------------------------- namespace SimpleBrowser { using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Xml.Linq; using SimpleBrowser.Elements; using SimpleBrowser.Query; /// <summary> /// This class is the standard return type for "find" operations performed on a <see cref="Browser" /> object. /// Rather than returning a collection of results, this class provides a more fluent mechanism for assessing the /// results, as it is more common that we're only interested in a single result, rather than any subsequent matches. /// A find result should never throw an exception and will never return null. Instead. check the Exists property /// of the result to find out if the requested element exists. If you prefer to use a traditional IEnumerable /// approach, simply iterate through the collection in the normal way. When doing this, the Exists property does not /// need to be checked as the enumerator will only return existing matched elements. /// </summary> public class HtmlResult : IEnumerable<HtmlResult> { /// <summary> /// The browser instance in which this result is found. /// </summary> private readonly Browser browser; /// <summary> /// The current element in the list of found HTML element results. /// </summary> private HtmlElement currentElement; /// <summary> /// The list of found HTML element results. /// </summary> private List<HtmlElement> resultList; /// <summary> /// The index of the current item in the list of found HTML results. /// </summary> private int resultListIndex; /// <summary> /// Initializes a new instance of the <see cref="HtmlResult"/> class. /// </summary> /// <param name="results">A collection of <see cref="HtmlElement"/></param> /// <param name="browser">The browser instance where the HTML results were found</param> internal HtmlResult(List<HtmlElement> results, Browser browser) { this.currentElement = results.Count > 0 ? results[0] : null; this.resultList = results; this.browser = browser; browser.Log("New HTML result set obtained, containing " + results.Count + " element(s)", LogMessageType.Internal); } /// <summary> /// Initializes a new instance of the <see cref="HtmlResult"/> class. /// </summary> /// <param name="result">A <see cref="HtmlElement"/></param> /// <param name="browser">The browser instance where the HTML results was found</param> internal HtmlResult(HtmlElement result, Browser browser) { this.currentElement = result; this.browser = browser; this.resultList = new List<HtmlElement>(new[] { result }); } /// <summary> /// Gets a reference to the underlying <see cref="XElement"/>. /// </summary> public XElement XElement { get { return this.currentElement.XElement; } } /// <summary> /// Gets the total number of elements that matched the query that generated this HtmlResult object /// </summary> public int TotalElementsFound { get { return this.resultList.Count; } } /// <summary> /// Gets a value indicating whether the HtmlResult object is pointing at an element to perform operations on. /// </summary> public bool Exists { get { return this.currentElement != null; } } /// <summary> /// Gets a value indicating whether the HtmlResult object is pointing at an element that is read only. /// </summary> public bool ReadOnly { get { this.AssertElementExists(); if (this.currentElement is InputElement) { return ((InputElement)this.currentElement).ReadOnly; } if (this.currentElement is TextAreaElement) { return ((TextAreaElement)this.currentElement).ReadOnly; } return false; } } /// <summary> /// Gets a value indicating whether the element contains a "disabled" attribute. Throws an exception if Exists is false. /// </summary> public bool Disabled { get { this.AssertElementExists(); if (this.currentElement is FormElementElement) { return ((FormElementElement)this.currentElement).Disabled; } return false; } } /// <summary> /// Gets or sets the value of the element. /// </summary> public string Value { get { this.AssertElementExists(); if (this.currentElement is FormElementElement) { return ((FormElementElement)this.currentElement).Value; } return this.currentElement.XElement.Value; } set { this.AssertElementExists(); this.browser.Log("Setting the value of " + HttpUtility.HtmlEncode(XElement.ToString()) + " to " + HttpUtility.HtmlEncode(value.ShortenTo(30, true)), LogMessageType.Internal); if (this.currentElement is FormElementElement) { ((FormElementElement)this.currentElement).Value = value; } } } /// <summary> /// Gets the decoded Value of the element. For example if the Value is <![CDATA[&copy;]]> 2011 the decoded Value will be © 2011. /// </summary> public string DecodedValue { get { return HttpUtility.HtmlDecode(this.Value); } } /// <summary> /// Gets or sets a value indicating whether the checked attribute is set for the current element. Throws an exception if /// exists is false or if the current element is anything other than a RADIO or CHECKBOX (INPUT) element. /// </summary> public bool Checked { get { this.AssertElementExists(); if (this.currentElement is SelectableInputElement) { return ((SelectableInputElement)this.currentElement).Selected; } return false; } set { this.AssertElementExists(); this.browser.Log("Setting the checked state of " + HttpUtility.HtmlEncode(this.XElement.ToString()) + " to " + (value ? "CHECKED" : "UNCHECKED"), LogMessageType.Internal); if (this.currentElement is SelectableInputElement) { ((SelectableInputElement)this.currentElement).Selected = value; } } } /// <summary> /// Gets the currently selected HTML element from the list of HTML results. /// </summary> internal HtmlElement CurrentElement { get { return this.currentElement; } } /// <summary> /// Returns a new result set derived from the current element, using jQuery selector syntax /// </summary> /// <param name="query">The jQuery selector query</param> /// <returns>The <see cref="HtmlResult"/> of the query</returns> public HtmlResult Select(string query) { this.AssertElementExists(); return new HtmlResult(XQuery.Execute("* " + query, this.browser.XDocument, this.currentElement.XElement).Select(this.browser.CreateHtmlElement).ToList(), this.browser); } /// <summary> /// Returns a new result set derived from the current set of elements, using jQuery selector syntax /// </summary> /// <param name="query">The jQuery selector query</param> /// <returns>The <see cref="HtmlResult"/> of the query</returns> public HtmlResult Refine(string query) { return new HtmlResult(XQuery.Execute(query, this.browser.XDocument, this.resultList.Select(h => h.XElement).ToArray()).Select(this.browser.CreateHtmlElement).ToList(), this.browser); } /// <summary> /// Attempts to move to the next element that matched the query that generated this HtmlResult object. No error /// will be thrown if there are no more matching elements, but <see cref="Exists" /> should be checked before /// attempting to perform any further operations. /// </summary> /// <returns>True if there was another element, or false if we're no longer pointing at an element</returns> public bool Next() { if (this.resultListIndex < this.resultList.Count - 1) { this.currentElement = this.resultList[++this.resultListIndex]; return true; } this.currentElement = null; return false; } [Obsolete("Use ClickAsync instead")] public ClickResult Click() { return ClickAsync().GetAwaiter().GetResult(); } /// <summary> /// Simulates a click on an element, which has differing effects depending on the element type. If the element /// is a BUTTON or INPUT TYPE=SUBMIT or INPUT TYPE=IMAGE element, the current form (if any) will be submitted, /// with the name/value of the clicked element being used in the submission values where relevant. If the /// element is a checkbox, the CHECKED value will be toggled on or off. If the element is a radio button, other /// radio buttons in the group will have their CHECKED attribute removed and the current element will have its /// CHECKED element set. /// NOTE: If the element IS an INPUT TYPE=IMAGE element, this method will "click" the image input as though the /// element had focus and the space bar or enter key was pressed to activate the element, performing the click. /// </summary> /// <returns>A <see cref="ClickResult"/> indicating the results of the click.</returns> public async Task<ClickResult> ClickAsync() { this.AssertElementExists(); this.browser.Log("Clicking element: " + HttpUtility.HtmlEncode(this.XElement.ToString()), LogMessageType.Internal); return await this.currentElement.ClickAsync(); } [Obsolete("Use async version instead")] public ClickResult Click(uint x, uint y) { return ClickAsync().GetAwaiter().GetResult(); } /// <summary> /// Simulates a click on an element at the specified coordinates, which has differing effects depending on the /// element type. If the element IS an INPUT TYPE=IMAGE element, this method will "click" the image input as /// though the element had been clicked with a pointing device (i.e., a mouse) at the specified coordinates. /// If the element does not support being clicked at specified coordinates (i.e., the element IS NOT an INPUT /// TYPE=IMAGE element), the element will be clicked as though the Click() method (without parameters) been called. /// </summary> /// <param name="x">The x-coordinate of the click location</param> /// <param name="y">The y-coordinate of the click location</param> /// <returns>A <see cref="ClickResult"/> indicating the results of the click.</returns> public async Task<ClickResult> ClickAsync(uint x, uint y) { this.AssertElementExists(); this.browser.Log("Clicking element: " + HttpUtility.HtmlEncode(this.XElement.ToString()), LogMessageType.Internal); return await this.currentElement.ClickAsync(x, y); } [Obsolete("Use SubmitFormAsync instead")] public bool SubmitForm(string url = null) { return SubmitFormAsync(url).GetAwaiter().GetResult(); } /// <summary> /// This method can be used on any element contained within a form, or the form element itself. The form will be /// serialized and submitted as close as possible to the way it would be in a normal browser request. In /// addition, any values currently in the ExtraFormValues property of the Browser object will be submitted as /// well. /// </summary> /// <param name="url">Optional. If specified, the form will be submitted to this URL instead.</param> /// <returns>True if the form was successfully submitted. Otherwise, false.</returns> public async Task<bool> SubmitFormAsync(string url = null) { this.AssertElementExists(); this.browser.Log("Submitting parent/ancestor form of: " + HttpUtility.HtmlEncode(this.XElement.ToString()), LogMessageType.Internal); return await this.currentElement.SubmitFormAsync(url); } [Obsolete("Use Async version instead")] public ClickResult DoAspNetLinkPostBack() { return DoAspNetLinkPostBackAsync().GetAwaiter().GetResult(); } /// <summary> /// This method is designed for use on Asp.Net WebForms sites where the anchor link being clicked only has a post back /// JavaScript function as its method of navigating to the next page. /// </summary> /// <returns>A <see cref="ClickResult"/> indicating the results of the click.</returns> public async Task<ClickResult> DoAspNetLinkPostBackAsync() { this.AssertElementExists(); this.browser.Log("Performing ASP.Net postback click for : " + HttpUtility.HtmlEncode(this.XElement.ToString()), LogMessageType.Internal); return await this.currentElement.DoAspNetLinkPostBackAsync(); } /// <summary> /// Return the value of the specified attribute. Throws an exception if Exists is false. /// </summary> /// <param name="name">The name of the attribute</param> /// <returns>Returns the string value of the requested attribute</returns> public string GetAttribute(string name) { this.AssertElementExists(); return this.currentElement.GetAttributeValue(name); } /// <summary> /// Gets the collection of HTML results. /// </summary> /// <returns>A collection of <see cref="HtmlResult"/></returns> public IEnumerator<HtmlResult> GetEnumerator() { foreach (var el in this.resultList) { yield return new HtmlResult(el, this.browser); } } /// <summary> /// Implements IEnumerator /// </summary> /// <returns>A collection of <see cref="HtmlResult"/></returns> IEnumerator IEnumerable.GetEnumerator() { return this.GetEnumerator(); } /// <summary> /// Validates that the element exists and is valid /// </summary> private void AssertElementExists() { if (this.currentElement == null) { throw new InvalidOperationException("The requested operation is not available when Exists is false"); } if (!this.currentElement.Valid) { throw new InvalidOperationException("The requested operation is not available. Navigating makes the existing HtmlResult objects invalid."); } } } }
42.133663
195
0.571261
[ "BSD-3-Clause" ]
mikaelliljedahl/SimpleBrowser
SimpleBrowser/HtmlResult.cs
17,026
C#
using System; using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { /// <summary> /// <para>表示 [GET] /payscore/partner/serviceorder 接口的请求。</para> /// </summary> public class GetPayScorePartnerServiceOrderByQueryIdRequest : GetPayScoreServiceOrderByQueryIdRequest { /// <summary> /// 获取或设置子商户号。 /// </summary> [Newtonsoft.Json.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore] public string SubMerchantId { get; set; } = string.Empty; } }
29.157895
105
0.666065
[ "MIT" ]
KimMeng2015/DotNetCore.SKIT.FlurlHttpClient.Wechat
src/SKIT.FlurlHttpClient.Wechat.TenpayV3/Models/PayScorePartnerServiceOrder/GetPayScorePartnerServiceOrderByQueryIdRequest.cs
592
C#
//// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. using System; namespace Azure.Storage.Sas { /// <summary> /// A <see cref="BlobSasQueryParameters"/> object represents the components /// that make up an Azure Storage Shared Access Signature's query /// parameters. You can construct a new instance using /// <see cref="BlobSasBuilder"/>. /// /// For more information, <see href="https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas"/>. /// </summary> public sealed class BlobSasQueryParameters : SasQueryParameters { /// <summary> /// Gets the Azure Active Directory object ID in GUID format. /// </summary> public string KeyObjectId => this.keyObjectId; /// <summary> /// Gets the Azure Active Directory tenant ID in GUID format /// </summary> public string KeyTenantId => this.keyTenantId; /// <summary> /// Gets the time at which the key becomes valid. /// </summary> public DateTimeOffset KeyStart => this.keyStart; /// <summary> /// Gets the time at which the key becomes expires. /// </summary> public DateTimeOffset KeyExpiry => this.keyExpiry; /// <summary> /// Gets the Storage service that accepts the key. /// </summary> public string KeyService => this.keyService; /// <summary> /// Gets the Storage service version that created the key. /// </summary> public string KeyVersion => this.keyVersion; /// <summary> /// Gets empty shared access signature query parameters. /// </summary> public static new BlobSasQueryParameters Empty => new BlobSasQueryParameters(); internal BlobSasQueryParameters() : base() { } /// <summary> /// Creates a new instance of the <see cref="BlobSasQueryParameters"/> /// type. /// /// Expects decoded values. /// </summary> internal BlobSasQueryParameters( string version, string services, string resourceTypes, SasProtocol protocol, DateTimeOffset startTime, DateTimeOffset expiryTime, IPRange ipRange, string identifier, string resource, string permissions, string signature, string keyOid = default, string keyTid = default, DateTimeOffset keyStart = default, DateTimeOffset keyExpiry = default, string keyService = default, string keyVersion = default) : base( version, services, resourceTypes, protocol, startTime, expiryTime, ipRange, identifier, resource, permissions, signature, keyOid, keyTid, keyStart, keyExpiry, keyService, keyVersion) { } /// <summary> /// Creates a new instance of the <see cref="BlobSasQueryParameters"/> /// type based on the supplied query parameters <paramref name="values"/>. /// All SAS-related query parameters will be removed from /// <paramref name="values"/>. /// </summary> /// <param name="values">URI query parameters</param> internal BlobSasQueryParameters(UriQueryParamsCollection values) : base(values, includeBlobParameters: true) { } /// <summary> /// Convert the SAS query parameters into a URL encoded query string. /// </summary> /// <returns> /// A URL encoded query string representing the SAS. /// </returns> public override string ToString() => this.Encode(includeBlobParameters: true); } }
33.119048
129
0.558351
[ "MIT" ]
AzureMentor/azure-sdk-for-net
sdk/storage/Azure.Storage.Blobs/src/Sas/BlobSasQueryParameters.cs
4,175
C#
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace Apache.Ignite.Linq.Impl { using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Text; using Remotion.Linq.Clauses; using Remotion.Linq.Clauses.Expressions; /// <summary> /// Alias dictionary. /// </summary> internal class AliasDictionary { /** */ private int _tableAliasIndex; /** */ private Dictionary<IQuerySource, string> _tableAliases = new Dictionary<IQuerySource, string>(); /** */ private int _fieldAliasIndex; /** */ private readonly Dictionary<Expression, string> _fieldAliases = new Dictionary<Expression, string>(); /** */ private readonly Stack<Dictionary<IQuerySource, string>> _stack = new Stack<Dictionary<IQuerySource, string>>(); /// <summary> /// Pushes current aliases to stack. /// </summary> /// <param name="copyAliases">Flag indicating that current aliases should be copied</param> public void Push(bool copyAliases) { _stack.Push(_tableAliases); _tableAliases = copyAliases ? _tableAliases.ToDictionary(p => p.Key, p => p.Value) : new Dictionary<IQuerySource, string>(); } /// <summary> /// Pops current aliases from stack. /// </summary> public void Pop() { _tableAliases = _stack.Pop(); } /// <summary> /// Gets the table alias. /// </summary> public string GetTableAlias(Expression expression) { Debug.Assert(expression != null); return GetTableAlias(ExpressionWalker.GetQuerySource(expression)); } /// <summary> /// Gets the table alias. /// </summary> public string GetTableAlias(IFromClause fromClause) { return GetTableAlias(ExpressionWalker.GetQuerySource(fromClause.FromExpression) ?? fromClause); } /// <summary> /// Gets the table alias. /// </summary> public string GetTableAlias(JoinClause joinClause) { return GetTableAlias(ExpressionWalker.GetQuerySource(joinClause.InnerSequence) ?? joinClause); } /// <summary> /// Gets the table alias. /// </summary> private string GetTableAlias(IQuerySource querySource) { Debug.Assert(querySource != null); string alias; if (!_tableAliases.TryGetValue(querySource, out alias)) { alias = "_T" + _tableAliasIndex++; _tableAliases[querySource] = alias; } return alias; } /// <summary> /// Gets the fields alias. /// </summary> public string GetFieldAlias(Expression expression) { Debug.Assert(expression != null); var referenceExpression = ExpressionWalker.GetQuerySourceReference(expression); return GetFieldAlias(referenceExpression); } /// <summary> /// Gets the fields alias. /// </summary> private string GetFieldAlias(QuerySourceReferenceExpression querySource) { Debug.Assert(querySource != null); string alias; if (!_fieldAliases.TryGetValue(querySource, out alias)) { alias = "F" + _fieldAliasIndex++; _fieldAliases[querySource] = alias; } return alias; } /// <summary> /// Appends as clause. /// </summary> public StringBuilder AppendAsClause(StringBuilder builder, IFromClause clause) { Debug.Assert(builder != null); Debug.Assert(clause != null); var queryable = ExpressionWalker.GetCacheQueryable(clause); var tableName = ExpressionWalker.GetTableNameWithSchema(queryable); builder.AppendFormat("{0} as {1}", tableName, GetTableAlias(clause)); return builder; } } }
30.576687
109
0.595506
[ "CC0-1.0" ]
10088/ignite
modules/platforms/dotnet/Apache.Ignite.Linq/Impl/AliasDictionary.cs
4,986
C#
// SecT113Field Decompiled was cancelled.
10.75
25
0.790698
[ "MIT" ]
smdx24/CPI-Source-Code
Org.BouncyCastle.Math.EC.Custom.Sec/SecT113Field.cs
43
C#
using System.Diagnostics.CodeAnalysis; using Tk.Extensions; namespace nomoretrolls.Config { [ExcludeFromCodeCoverage] internal class EnvVarConfigurationProvider : IConfigurationProvider { private const string EnvVarNamePrefix = "nomoretrolls"; public AppConfiguration GetAppConfiguration() { var result = CreateConfiguration(); var evs = System.Environment.GetEnvironmentVariables(); if (evs != null) { var xs = evs.OfType<System.Collections.DictionaryEntry>() .Select(ev => ((string)ev.Key, (string)ev.Value)) .Where(t => t.Item1.StartsWith(EnvVarNamePrefix)) .ToDictionary(t => t.Item1, t => t.Item2); result.Discord.DiscordClientId = xs.GetOrDefault($"{EnvVarNamePrefix}_Discord_DiscordClientId"); result.Discord.DiscordClientToken = xs.GetOrDefault($"{EnvVarNamePrefix}_Discord_DiscordClientToken"); result.MongoDb.Connection = xs.GetOrDefault($"{EnvVarNamePrefix}_MongoDb_Connection"); result.MongoDb.DatabaseName = xs.GetOrDefault($"{EnvVarNamePrefix}_MongoDb_DatabaseName"); } return result; } public IConfigurationProvider SetFilePath(string filePath) { throw new NotSupportedException(); } private static AppConfiguration CreateConfiguration() => new AppConfiguration() { Discord = new DiscordConfiguration() { }, MongoDb = new MongoDbConfiguration() { }, Telemetry = new TelemetryConfiguration() { LogMessageContent = false, } }; } }
35.296296
118
0.561385
[ "MIT" ]
tonycknight/nomoretrolls
src/nomoretrolls/Config/EnvVarConfigurationProvider.cs
1,908
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 iotanalytics-2017-11-27.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.IoTAnalytics.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.IoTAnalytics.Model.Internal.MarshallTransformations { /// <summary> /// DescribeLoggingOptions Request Marshaller /// </summary> public class DescribeLoggingOptionsRequestMarshaller : IMarshaller<IRequest, DescribeLoggingOptionsRequest> , 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((DescribeLoggingOptionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeLoggingOptionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.IoTAnalytics"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-11-27"; request.HttpMethod = "GET"; string uriResourcePath = "/logging"; request.ResourcePath = uriResourcePath; return request; } private static DescribeLoggingOptionsRequestMarshaller _instance = new DescribeLoggingOptionsRequestMarshaller(); internal static DescribeLoggingOptionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeLoggingOptionsRequestMarshaller Instance { get { return _instance; } } } }
33.858824
159
0.663308
[ "Apache-2.0" ]
Bio2hazard/aws-sdk-net
sdk/src/Services/IoTAnalytics/Generated/Model/Internal/MarshallTransformations/DescribeLoggingOptionsRequestMarshaller.cs
2,878
C#
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Mvc; namespace CustomRouteWebSite { public class LocaleAttribute : RouteConstraintAttribute { public LocaleAttribute(string locale) : base("locale", routeValue: locale, blockNonAttributedActions: true) { } } }
31.133333
111
0.708779
[ "Apache-2.0" ]
walkeeperY/ManagementSystem
test/WebSites/CustomRouteWebSite/LocaleAttribute.cs
469
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 networkmanager-2019-07-05.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.NetworkManager { ///<summary> /// Common exception for the NetworkManager service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonNetworkManagerException : AmazonServiceException { /// <summary> /// Construct instance of AmazonNetworkManagerException /// </summary> /// <param name="message"></param> public AmazonNetworkManagerException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonNetworkManagerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonNetworkManagerException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonNetworkManagerException /// </summary> /// <param name="innerException"></param> public AmazonNetworkManagerException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonNetworkManagerException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonNetworkManagerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonNetworkManagerException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonNetworkManagerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonNetworkManagerException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonNetworkManagerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
41.685714
179
0.641535
[ "Apache-2.0" ]
philasmar/aws-sdk-net
sdk/src/Services/NetworkManager/Generated/AmazonNetworkManagerException.cs
4,377
C#
using System; using System.Linq; using System.Collections; using System.Collections.Generic; namespace PeefyLeetCode.CountAndSay { public class Solution { public string CountAndSay(int n) { string s = ""; if (n <= 1) { return "1"; } else { s = CountAndSay(n - 1); if (s == "1") { return "11"; } var len = s.Length; var count = 0; var first = s[0]; var i = 0; var returnStr = ""; while (i < len) { if (first == s[i]) count += 1; else { returnStr += $"{count}{first}"; first = s[i]; count = 1; } i += 1; } returnStr += $"{count}{first}"; return returnStr; } } } }
24.913043
55
0.304538
[ "Apache-2.0" ]
Peefy/PeefyLeetCode
src/CSharp/1-100/38.CountAndSay.cs
1,146
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Linq; using JetBrains.Annotations; using osu.Framework.Audio.Sample; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.OpenGL.Textures; using osu.Framework.Graphics.Textures; using osu.Game.Audio; using osu.Game.Beatmaps.Formats; using osu.Game.Extensions; using osu.Game.IO; using osu.Game.Screens.Play; using osu.Game.Screens.Play.HUD; using osu.Game.Screens.Play.HUD.HitErrorMeters; using osuTK; using osuTK.Graphics; namespace osu.Game.Skinning { public class DefaultSkin : Skin { private readonly IStorageResourceProvider resources; public DefaultSkin(IStorageResourceProvider resources) : this(SkinInfo.Default, resources) { } [UsedImplicitly(ImplicitUseKindFlags.InstantiatedWithFixedConstructorSignature)] public DefaultSkin(SkinInfo skin, IStorageResourceProvider resources) : base(skin, resources) { this.resources = resources; Configuration = new DefaultSkinConfiguration(); } public override Texture GetTexture(string componentName, WrapMode wrapModeS, WrapMode wrapModeT) => null; public override ISample GetSample(ISampleInfo sampleInfo) { foreach (string lookup in sampleInfo.LookupNames) { var sample = resources.AudioManager.Samples.Get(lookup); if (sample != null) return sample; } return null; } public override Drawable GetDrawableComponent(ISkinComponent component) { if (base.GetDrawableComponent(component) is Drawable c) return c; switch (component) { case SkinnableTargetComponent target: switch (target.Target) { case SkinnableTarget.MainHUDComponents: var skinnableTargetWrapper = new SkinnableTargetComponentsContainer(container => { var score = container.OfType<DefaultScoreCounter>().FirstOrDefault(); var accuracy = container.OfType<DefaultAccuracyCounter>().FirstOrDefault(); var combo = container.OfType<DefaultComboCounter>().FirstOrDefault(); var ppCounter = container.OfType<PerformancePointsCounter>().FirstOrDefault(); if (score != null) { score.Anchor = Anchor.TopCentre; score.Origin = Anchor.TopCentre; // elements default to beneath the health bar const float vertical_offset = 30; const float horizontal_padding = 20; score.Position = new Vector2(0, vertical_offset); if (ppCounter != null) { ppCounter.Y = score.Position.Y + ppCounter.ScreenSpaceDeltaToParentSpace(score.ScreenSpaceDrawQuad.Size).Y - 4; ppCounter.Origin = Anchor.TopCentre; ppCounter.Anchor = Anchor.TopCentre; } if (accuracy != null) { accuracy.Position = new Vector2(-accuracy.ScreenSpaceDeltaToParentSpace(score.ScreenSpaceDrawQuad.Size).X / 2 - horizontal_padding, vertical_offset + 5); accuracy.Origin = Anchor.TopRight; accuracy.Anchor = Anchor.TopCentre; } if (combo != null) { combo.Position = new Vector2(accuracy.ScreenSpaceDeltaToParentSpace(score.ScreenSpaceDrawQuad.Size).X / 2 + horizontal_padding, vertical_offset + 5); combo.Anchor = Anchor.TopCentre; } var hitError = container.OfType<HitErrorMeter>().FirstOrDefault(); if (hitError != null) { hitError.Anchor = Anchor.CentreLeft; hitError.Origin = Anchor.CentreLeft; } var hitError2 = container.OfType<HitErrorMeter>().LastOrDefault(); if (hitError2 != null) { hitError2.Anchor = Anchor.CentreRight; hitError2.Scale = new Vector2(-1, 1); // origin flipped to match scale above. hitError2.Origin = Anchor.CentreLeft; } } }) { Children = new Drawable[] { new DefaultComboCounter(), new DefaultScoreCounter(), new DefaultAccuracyCounter(), new DefaultHealthDisplay(), new SongProgress(), new BarHitErrorMeter(), new BarHitErrorMeter(), new PerformancePointsCounter() } }; return skinnableTargetWrapper; } break; } return null; } public override IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup) { // todo: this code is pulled from LegacySkin and should not exist. // will likely change based on how databased storage of skin configuration goes. switch (lookup) { case GlobalSkinColours global: switch (global) { case GlobalSkinColours.ComboColours: return SkinUtils.As<TValue>(new Bindable<IReadOnlyList<Color4>>(Configuration.ComboColours)); } break; case SkinComboColourLookup comboColour: return SkinUtils.As<TValue>(new Bindable<Color4>(getComboColour(Configuration, comboColour.ColourIndex))); } return null; } private static Color4 getComboColour(IHasComboColours source, int colourIndex) => source.ComboColours[colourIndex % source.ComboColours.Count]; } }
44.092486
194
0.469848
[ "MIT" ]
GoldenMine0502/osu
osu.Game/Skinning/DefaultSkin.cs
7,458
C#
// // ManualDhtEngine.cs // // Authors: // Alan McGovern alan.mcgovern@gmail.com // // Copyright (C) 2019 Alan McGovern // // 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.Threading.Tasks; using MonoTorrent.Connections.Dht; using MonoTorrent.Dht; namespace MonoTorrent.Client { public class ManualDhtEngine : IDhtEngine { public TimeSpan AnnounceInterval { get; } public bool Disposed { get; private set; } public TimeSpan MinimumAnnounceInterval { get; } public DhtState State { get; private set; } public event EventHandler<PeersFoundEventArgs> PeersFound; public event EventHandler StateChanged; public void Add (IEnumerable<byte[]> nodes) { } public void Announce (InfoHash infohash, int port) { } public void Dispose () => Disposed = true; public void GetPeers (InfoHash infohash) { } public void RaisePeersFound (InfoHash infoHash, IList<PeerInfo> peers) => PeersFound?.Invoke (this, new PeersFoundEventArgs (infoHash, peers)); public void RaiseStateChanged (DhtState newState) { State = newState; StateChanged?.Invoke (this, EventArgs.Empty); } public Task<byte[]> SaveNodesAsync () => Task.FromResult (new byte[0]); public Task SetListenerAsync (IDhtListener listener) { return Task.CompletedTask; } public Task StartAsync () => StartAsync (null); public Task StartAsync (byte[] initialNodes) { RaiseStateChanged (DhtState.Ready); return Task.CompletedTask; } public Task StopAsync () { RaiseStateChanged (DhtState.NotReady); return Task.CompletedTask; } } }
29.73
84
0.661621
[ "MIT" ]
alexanderfedin/monotorrent
src/Tests/Tests.MonoTorrent.Client/Client/ManualDhtEngine.cs
2,975
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // <auto-generated/> #nullable disable using System; using System.Threading; using System.Threading.Tasks; using Azure; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.Network.Models; namespace Azure.ResourceManager.Network { /// <summary> The IpGroups service client. </summary> public partial class IpGroupsOperations { private readonly ClientDiagnostics _clientDiagnostics; private readonly HttpPipeline _pipeline; internal IpGroupsRestOperations RestClient { get; } /// <summary> Initializes a new instance of IpGroupsOperations for mocking. </summary> protected IpGroupsOperations() { } /// <summary> Initializes a new instance of IpGroupsOperations. </summary> /// <param name="clientDiagnostics"> The handler for diagnostic messaging in the client. </param> /// <param name="pipeline"> The HTTP pipeline for sending and receiving REST requests and responses. </param> /// <param name="subscriptionId"> The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. </param> /// <param name="endpoint"> server parameter. </param> internal IpGroupsOperations(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null) { RestClient = new IpGroupsRestOperations(clientDiagnostics, pipeline, subscriptionId, endpoint); _clientDiagnostics = clientDiagnostics; _pipeline = pipeline; } /// <summary> Gets the specified ipGroups. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual async Task<Response<IpGroup>> GetAsync(string resourceGroupName, string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.Get"); scope.Start(); try { return await RestClient.GetAsync(resourceGroupName, ipGroupsName, expand, cancellationToken).ConfigureAwait(false); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Gets the specified ipGroups. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="expand"> Expands resourceIds (of Firewalls/Network Security Groups etc.) back referenced by the IpGroups resource. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual Response<IpGroup> Get(string resourceGroupName, string ipGroupsName, string expand = null, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.Get"); scope.Start(); try { return RestClient.Get(resourceGroupName, ipGroupsName, expand, cancellationToken); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Updates tags of an IpGroups resource. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="parameters"> Parameters supplied to the update ipGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual async Task<Response<IpGroup>> UpdateGroupsAsync(string resourceGroupName, string ipGroupsName, TagsObject parameters, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.UpdateGroups"); scope.Start(); try { return await RestClient.UpdateGroupsAsync(resourceGroupName, ipGroupsName, parameters, cancellationToken).ConfigureAwait(false); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Updates tags of an IpGroups resource. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="parameters"> Parameters supplied to the update ipGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual Response<IpGroup> UpdateGroups(string resourceGroupName, string ipGroupsName, TagsObject parameters, CancellationToken cancellationToken = default) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.UpdateGroups"); scope.Start(); try { return RestClient.UpdateGroups(resourceGroupName, ipGroupsName, parameters, cancellationToken); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Gets all IpGroups in a resource group. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual AsyncPageable<IpGroup> ListByResourceGroupAsync(string resourceGroupName, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } async Task<Page<IpGroup>> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.ListByResourceGroup"); scope.Start(); try { var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } async Task<Page<IpGroup>> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.ListByResourceGroup"); scope.Start(); try { var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> Gets all IpGroups in a resource group. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual Pageable<IpGroup> ListByResourceGroup(string resourceGroupName, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } Page<IpGroup> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.ListByResourceGroup"); scope.Start(); try { var response = RestClient.ListByResourceGroup(resourceGroupName, cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } Page<IpGroup> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.ListByResourceGroup"); scope.Start(); try { var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> Gets all IpGroups in a subscription. </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual AsyncPageable<IpGroup> ListAsync(CancellationToken cancellationToken = default) { async Task<Page<IpGroup>> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.List"); scope.Start(); try { var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } async Task<Page<IpGroup>> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.List"); scope.Start(); try { var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> Gets all IpGroups in a subscription. </summary> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual Pageable<IpGroup> List(CancellationToken cancellationToken = default) { Page<IpGroup> FirstPageFunc(int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.List"); scope.Start(); try { var response = RestClient.List(cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } Page<IpGroup> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.List"); scope.Start(); try { var response = RestClient.ListNextPage(nextLink, cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { scope.Failed(e); throw; } } return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); } /// <summary> Creates or updates an ipGroups in a specified resource group. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="parameters"> Parameters supplied to the create or update IpGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual async Task<IpGroupsCreateOrUpdateOperation> StartCreateOrUpdateAsync(string resourceGroupName, string ipGroupsName, IpGroup parameters, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } if (ipGroupsName == null) { throw new ArgumentNullException(nameof(ipGroupsName)); } if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.StartCreateOrUpdate"); scope.Start(); try { var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, ipGroupsName, parameters, cancellationToken).ConfigureAwait(false); return new IpGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, ipGroupsName, parameters).Request, originalResponse); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Creates or updates an ipGroups in a specified resource group. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="parameters"> Parameters supplied to the create or update IpGroups operation. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual IpGroupsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string ipGroupsName, IpGroup parameters, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } if (ipGroupsName == null) { throw new ArgumentNullException(nameof(ipGroupsName)); } if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.StartCreateOrUpdate"); scope.Start(); try { var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, ipGroupsName, parameters, cancellationToken); return new IpGroupsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, ipGroupsName, parameters).Request, originalResponse); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Deletes the specified ipGroups. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual async Task<IpGroupsDeleteOperation> StartDeleteAsync(string resourceGroupName, string ipGroupsName, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } if (ipGroupsName == null) { throw new ArgumentNullException(nameof(ipGroupsName)); } using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.StartDelete"); scope.Start(); try { var originalResponse = await RestClient.DeleteAsync(resourceGroupName, ipGroupsName, cancellationToken).ConfigureAwait(false); return new IpGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, ipGroupsName).Request, originalResponse); } catch (Exception e) { scope.Failed(e); throw; } } /// <summary> Deletes the specified ipGroups. </summary> /// <param name="resourceGroupName"> The name of the resource group. </param> /// <param name="ipGroupsName"> The name of the ipGroups. </param> /// <param name="cancellationToken"> The cancellation token to use. </param> public virtual IpGroupsDeleteOperation StartDelete(string resourceGroupName, string ipGroupsName, CancellationToken cancellationToken = default) { if (resourceGroupName == null) { throw new ArgumentNullException(nameof(resourceGroupName)); } if (ipGroupsName == null) { throw new ArgumentNullException(nameof(ipGroupsName)); } using var scope = _clientDiagnostics.CreateScope("IpGroupsOperations.StartDelete"); scope.Start(); try { var originalResponse = RestClient.Delete(resourceGroupName, ipGroupsName, cancellationToken); return new IpGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, ipGroupsName).Request, originalResponse); } catch (Exception e) { scope.Failed(e); throw; } } } }
47.358722
205
0.597095
[ "MIT" ]
AzureDataBox/azure-sdk-for-net
sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroupsOperations.cs
19,275
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.Mvc; using Microsoft.VisualStudio.TestTools.UnitTesting; using BloomSales.Web.Store; using BloomSales.Web.Store.Controllers; namespace BloomSales.Web.Store.Tests.Controllers { [TestClass] public class HomeControllerTest { [TestMethod] public void Index() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Index() as ViewResult; // Assert Assert.IsNotNull(result); } [TestMethod] public void About() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); } [TestMethod] public void Contact() { // Arrange HomeController controller = new HomeController(); // Act ViewResult result = controller.Contact() as ViewResult; // Assert Assert.IsNotNull(result); } } }
23.8
90
0.57754
[ "MIT" ]
moriazat/BloomSales
Web/UnitTests/BloomSales.Web.Store.Tests/Controllers/HomeControllerTest.cs
1,311
C#
using VXDesign.Store.DevTools.Common.Core.Entities.NoteFolder; using VXDesign.Store.DevTools.Modules.SimpleNoteService.Server.Models.NoteFolder; namespace VXDesign.Store.DevTools.Modules.SimpleNoteService.Server.Extensions { internal static class NotePagingModelsExtensions { internal static NotePagingRequest ToEntity(this NotePagingRequestModel model, int folderId) { var entity = model.ToEntity(); entity.Filter.FolderId = folderId; return entity; } } }
35.266667
99
0.725898
[ "MIT" ]
GUSAR1T0/VXDS-DEV-TOOLS
DevTools/Modules/SimpleNoteService/Server/Extensions/NotePagingModelsExtensions.cs
529
C#
using System.Windows; using System.Data; using System.Data.SqlClient; namespace Trafika.Forme { public partial class frmDobavljac : Window { public SqlConnection konekcija = Konekcija.KreirajKonekciju(); public frmDobavljac() { InitializeComponent(); txtNazivFirme.Focus(); } public void btnSacuvaj_Click(object sender, RoutedEventArgs e) { try { konekcija.Open(); if (MainWindow.izmena) { DataRowView red = (DataRowView)MainWindow.pomocniRed; string update = @"update tblDobavljac Set NazivFirme = '" + txtNazivFirme.Text + "' Where DobavljacID = " + red["ID"]; SqlCommand cmd = new SqlCommand(update, konekcija); cmd.ExecuteNonQuery(); MainWindow.pomocniRed = null; this.Close(); } else { string insert = @"insert into tblDobavljac(NazivFirme) values ('" + txtNazivFirme.Text + "');"; SqlCommand cmd = new SqlCommand(insert, konekcija); cmd.ExecuteNonQuery(); this.Close(); // zatvori prozor } } catch(SqlException) { MessageBox.Show("Unos određenih vrednosti nije validan.", "Greška!", MessageBoxButton.OK, MessageBoxImage.Error); } finally { if (konekcija != null) konekcija.Close(); } } private void btnOtkazi_Click(object sender, RoutedEventArgs e) { this.Close(); } } }
31.431034
138
0.486561
[ "MIT" ]
Vukan-Markovic/Store
MainWindow/Forme/frmDobavljac.xaml.cs
1,827
C#
using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; using Nito.AsyncEx; using NUnit.Framework; using SJP.Schematic.Core; using SJP.Schematic.Core.Extensions; using SJP.Schematic.Tests.Utilities; namespace SJP.Schematic.Oracle.Tests.Integration { internal sealed partial class OracleRelationalDatabaseTableProviderTests : OracleTest { private IRelationalDatabaseTableProvider TableProvider => new OracleRelationalDatabaseTableProvider(Connection, IdentifierDefaults, IdentifierResolver); private AsyncLazy<List<IRelationalDatabaseTable>> _tables; private Task<List<IRelationalDatabaseTable>> GetAllTables() => _tables.Task; [OneTimeSetUp] public async Task Init() { _tables = new AsyncLazy<List<IRelationalDatabaseTable>>(() => TableProvider.GetAllTables().ToListAsync().AsTask()); await DbConnection.ExecuteAsync("create table db_test_table_1 ( title varchar2(200) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_1 ( test_column number )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_2 ( test_column number not null primary key )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_3 ( test_column number, constraint pk_test_table_3 primary key (test_column) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_4 ( first_name varchar2(50), middle_name varchar2(50), last_name varchar2(50), constraint pk_test_table_4 primary key (first_name, last_name, middle_name) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_5 ( test_column number not null unique )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_6 ( test_column number, constraint uk_test_table_6 unique (test_column) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_7 ( first_name varchar2(50), middle_name varchar2(50), last_name varchar2(50), constraint uk_test_table_7 unique (first_name, last_name, middle_name) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_8 (test_column number)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create index ix_test_table_8 on table_test_table_8 (test_column)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_9 ( first_name varchar2(50), middle_name varchar2(50), last_name varchar2(50) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create index ix_test_table_9 on table_test_table_9 (first_name, last_name, middle_name)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_13 ( first_name varchar2(50), middle_name varchar2(50), last_name varchar2(50) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create unique index ix_test_table_13 on table_test_table_13 (first_name, last_name, middle_name)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_14 ( test_column number not null, constraint ck_test_table_14 check (test_column > 1) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_15 ( first_name_parent varchar2(50), middle_name_parent varchar2(50), last_name_parent varchar2(50), constraint pk_test_table_15 primary key (first_name_parent), constraint uk_test_table_15 unique (last_name_parent, middle_name_parent) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_16 ( first_name_child varchar2(50), middle_name varchar2(50), last_name varchar2(50), constraint fk_test_table_16 foreign key (first_name_child) references table_test_table_15 (first_name_parent) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_17 ( first_name varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_17 foreign key (last_name_child, middle_name_child) references table_test_table_15 (last_name_parent, middle_name_parent) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_24 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_24 foreign key (first_name_child) references table_test_table_15 (first_name_parent) on delete cascade )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_25 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_25 foreign key (first_name_child) references table_test_table_15 (first_name_parent) on delete set null )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_27 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_27 foreign key (last_name_child, middle_name_child) references table_test_table_15 (last_name_parent, middle_name_parent) on delete cascade )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_28 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_28 foreign key (last_name_child, middle_name_child) references table_test_table_15 (last_name_parent, middle_name_parent) on delete set null )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_30 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_30 foreign key (first_name_child) references table_test_table_15 (first_name_parent) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("alter table table_test_table_30 disable constraint fk_test_table_30", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_31 ( first_name_child varchar2(50), middle_name_child varchar2(50), last_name_child varchar2(50), constraint fk_test_table_31 foreign key (last_name_child, middle_name_child) references table_test_table_15 (last_name_parent, middle_name_parent) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("alter table table_test_table_31 disable constraint fk_test_table_31", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create table table_test_table_32 ( test_column number not null, constraint ck_test_table_32 check (test_column > 1) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("alter table table_test_table_32 disable constraint ck_test_table_32", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_33 ( test_column number default 1 not null )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@"create table table_test_table_34 ( test_column_1 number, test_column_2 number, test_column_3 as (test_column_1 + test_column_2) )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table table_test_table_35 ( test_column number primary key )", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table trigger_test_table_1 (table_id number primary key not null)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("create table trigger_test_table_2 (table_id number primary key not null)", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_1 before insert on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_2 before update on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_3 before delete on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_4 after insert on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_5 after update on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_6 after delete on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync(@" create trigger trigger_test_table_1_trigger_7 after insert or update or delete on trigger_test_table_1 for each row begin null; end; ", CancellationToken.None).ConfigureAwait(false); } [OneTimeTearDown] public async Task CleanUp() { await DbConnection.ExecuteAsync("drop table db_test_table_1", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_1", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_2", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_3", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_4", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_5", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_6", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_7", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_8", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_9", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_13", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_14", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_16", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_17", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_24", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_25", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_27", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_28", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_30", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_31", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_15", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_32", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_33", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_34", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table table_test_table_35", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table trigger_test_table_1", CancellationToken.None).ConfigureAwait(false); await DbConnection.ExecuteAsync("drop table trigger_test_table_2", CancellationToken.None).ConfigureAwait(false); } private Task<IRelationalDatabaseTable> GetTableAsync(Identifier tableName) { if (tableName == null) throw new ArgumentNullException(nameof(tableName)); return GetTableAsyncCore(tableName); } private async Task<IRelationalDatabaseTable> GetTableAsyncCore(Identifier tableName) { using (await _lock.LockAsync().ConfigureAwait(false)) { if (!_tablesCache.TryGetValue(tableName, out var lazyTable)) { lazyTable = new AsyncLazy<IRelationalDatabaseTable>(() => TableProvider.GetTable(tableName).UnwrapSomeAsync()); _tablesCache[tableName] = lazyTable; } return await lazyTable.ConfigureAwait(false); } } private readonly AsyncLock _lock = new(); private readonly Dictionary<Identifier, AsyncLazy<IRelationalDatabaseTable>> _tablesCache = new(); [Test] public async Task GetTable_WhenTablePresent_ReturnsTable() { var tableIsSome = await TableProvider.GetTable("db_test_table_1").IsSome.ConfigureAwait(false); Assert.That(tableIsSome, Is.True); } [Test] public async Task GetTable_WhenTablePresent_ReturnsTableWithCorrectName() { const string tableName = "db_test_table_1"; const string expectedTableName = "DB_TEST_TABLE_1"; var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name.LocalName, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTablePresentGivenLocalNameOnly_ShouldBeQualifiedCorrectly() { var tableName = new Identifier("db_test_table_1"); var expectedTableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTablePresentGivenSchemaAndLocalNameOnly_ShouldBeQualifiedCorrectly() { var tableName = new Identifier(IdentifierDefaults.Schema, "db_test_table_1"); var expectedTableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTablePresentGivenDatabaseAndSchemaAndLocalNameOnly_ShouldBeQualifiedCorrectly() { var tableName = new Identifier(IdentifierDefaults.Database, IdentifierDefaults.Schema, "db_test_table_1"); var expectedTableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTablePresentGivenFullyQualifiedName_ShouldBeQualifiedCorrectly() { var tableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(tableName)); } [Test] public async Task GetTable_WhenTablePresentGivenFullyQualifiedNameWithDifferentServer_ShouldBeQualifiedCorrectly() { var tableName = new Identifier("A", IdentifierDefaults.Database, IdentifierDefaults.Schema, "db_test_table_1"); var expectedTableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTablePresentGivenFullyQualifiedNameWithDifferentServerAndDatabase_ShouldBeQualifiedCorrectly() { var tableName = new Identifier("A", "B", IdentifierDefaults.Schema, "db_test_table_1"); var expectedTableName = new Identifier(IdentifierDefaults.Server, IdentifierDefaults.Database, IdentifierDefaults.Schema, "DB_TEST_TABLE_1"); var table = await TableProvider.GetTable(tableName).UnwrapSomeAsync().ConfigureAwait(false); Assert.That(table.Name, Is.EqualTo(expectedTableName)); } [Test] public async Task GetTable_WhenTableMissing_ReturnsNone() { var tableIsNone = await TableProvider.GetTable("table_that_doesnt_exist").IsNone.ConfigureAwait(false); Assert.That(tableIsNone, Is.True); } [Test] public async Task GetAllTables_WhenEnumerated_ContainsTables() { var tables = await GetAllTables().ConfigureAwait(false); Assert.That(tables, Is.Not.Empty); } [Test] public async Task GetAllTables_WhenEnumerated_ContainsTestTable() { const string expectedTableName = "DB_TEST_TABLE_1"; var tables = await GetAllTables().ConfigureAwait(false); var containsTestTable = tables.Any(t => string.Equals(t.Name.LocalName, expectedTableName, StringComparison.Ordinal)); Assert.That(containsTestTable, Is.True); } } }
53.366755
191
0.731484
[ "MIT" ]
sjp/Schematic
src/SJP.Schematic.Oracle.Tests/Integration/OracleRelationalDatabaseTableProviderTests.cs
20,228
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Diagnostics.CodeAnalysis; using Microsoft.AspNetCore.Http; namespace Microsoft.AspNetCore.Antiforgery { /// <summary> /// Generates and validates antiforgery tokens. /// </summary> internal interface IAntiforgeryTokenGenerator { /// <summary> /// Generates a new random cookie token. /// </summary> /// <returns>An <see cref="AntiforgeryToken"/>.</returns> AntiforgeryToken GenerateCookieToken(); /// <summary> /// Generates a request token corresponding to <paramref name="cookieToken"/>. /// </summary> /// <param name="httpContext">The <see cref="HttpContext"/> associated with the current request.</param> /// <param name="cookieToken">A valid cookie token.</param> /// <returns>An <see cref="AntiforgeryToken"/>.</returns> AntiforgeryToken GenerateRequestToken( HttpContext httpContext, AntiforgeryToken cookieToken ); /// <summary> /// Attempts to validate a cookie token. /// </summary> /// <param name="cookieToken">A valid cookie token.</param> /// <returns><c>true</c> if the cookie token is valid, otherwise <c>false</c>.</returns> bool IsCookieTokenValid(AntiforgeryToken? cookieToken); /// <summary> /// Attempts to validate a cookie and request token set for the given <paramref name="httpContext"/>. /// </summary> /// <param name="httpContext">The <see cref="HttpContext"/> associated with the current request.</param> /// <param name="cookieToken">A cookie token.</param> /// <param name="requestToken">A request token.</param> /// <param name="message"> /// Will be set to the validation message if the tokens are invalid, otherwise <c>null</c>. /// </param> /// <returns><c>true</c> if the tokens are valid, otherwise <c>false</c>.</returns> bool TryValidateTokenSet( HttpContext httpContext, AntiforgeryToken cookieToken, AntiforgeryToken requestToken, [NotNullWhen(false)] out string? message ); } }
41.964286
112
0.626383
[ "Apache-2.0" ]
belav/aspnetcore
src/Antiforgery/src/Internal/IAntiforgeryTokenGenerator.cs
2,350
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.Collections.Generic; using System.Runtime.CompilerServices; using System.Diagnostics.CodeAnalysis; namespace System.Text.Json.Serialization { /// <summary> /// Passed to the <see cref="DefaultReferenceResolver._objectToReferenceIdMap"/> meant for serialization. /// It forces the dictionary to do a ReferenceEquals comparison when comparing the TKey object. /// </summary> internal sealed class ReferenceEqualsEqualityComparer<T> : IEqualityComparer<T> { public static ReferenceEqualsEqualityComparer<T> Comparer = new ReferenceEqualsEqualityComparer<T>(); bool IEqualityComparer<T>.Equals([AllowNull] T x, [AllowNull] T y) { return ReferenceEquals(x, y); } int IEqualityComparer<T>.GetHashCode(T obj) { return RuntimeHelpers.GetHashCode(obj!); } } }
36
109
0.708333
[ "MIT" ]
Partydonk/runtime
src/libraries/System.Text.Json/src/System/Text/Json/Serialization/ReferenceEqualsEqualityComparer.cs
1,082
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; namespace Microsoft.Extensions.Tools.Internal { /// <summary> /// This API supports infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public static class CliContext { /// <summary> /// dotnet -d|--diagnostics subcommand /// </summary> /// <returns></returns> public static bool IsGlobalVerbose() { bool.TryParse(Environment.GetEnvironmentVariable("DOTNET_CLI_CONTEXT_VERBOSE"), out bool globalVerbose); return globalVerbose; } } }
31.44
116
0.650127
[ "MIT" ]
48355746/AspNetCore
src/Tools/Shared/CommandLine/CliContext.cs
786
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 namespace DotNetNuke.UI.WebControls { using System; using System.Web.UI.WebControls; using DotNetNuke.Common.Utilities; using DotNetNuke.Entities.Portals; using DotNetNuke.Security; using DotNetNuke.Security.Permissions; using DotNetNuke.Services.Personalization; using DotNetNuke.UI.Modules; /// ----------------------------------------------------------------------------- /// Project : DotNetNuke /// Namespace: DotNetNuke.UI.WebControls /// Class : ActionLink /// ----------------------------------------------------------------------------- /// <summary> /// ActionLink provides a button for a single action. /// </summary> /// <remarks> /// ActionBase inherits from HyperLink. /// </remarks> /// ----------------------------------------------------------------------------- public class ActionLink : HyperLink { /// <summary> /// Initializes a new instance of the <see cref="ActionLink"/> class. /// </summary> public ActionLink() { this.RequireEditMode = false; this.Security = "Edit"; this.ControlKey = string.Empty; this.Title = string.Empty; } public string Title { get; set; } public string ControlKey { get; set; } public string KeyName { get; set; } public string KeyValue { get; set; } public string Security { get; set; } public bool RequireEditMode { get; set; } public IModuleControl ModuleControl { get; set; } /// ----------------------------------------------------------------------------- /// <summary> /// CreateChildControls builds the control tree. /// </summary> /// ----------------------------------------------------------------------------- protected override void CreateChildControls() { // Call base class method to ensure Control Tree is built base.CreateChildControls(); // Set Causes Validation and Enables ViewState to false this.EnableViewState = false; } /// ----------------------------------------------------------------------------- /// <summary> /// OnPreRender runs when just before the Render phase of the Page Lifecycle. /// </summary> /// ----------------------------------------------------------------------------- protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); if (this.Visible && this.IsVisible((SecurityAccessLevel)Enum.Parse(typeof(SecurityAccessLevel), this.Security))) { this.Text = this.Title; this.NavigateUrl = this.ControlKey != string.Empty ? this.ModuleControl.ModuleContext.EditUrl(this.KeyName, this.KeyValue, this.ControlKey) : this.ModuleControl.ModuleContext.EditUrl(this.Title); if (this.CssClass == string.Empty) { this.CssClass = "dnnPrimaryAction"; } } else { this.Visible = false; } } private bool IsVisible(SecurityAccessLevel security) { bool isVisible = false; if (ModulePermissionController.HasModuleAccess(security, Null.NullString, this.ModuleControl.ModuleContext.Configuration)) { if ((this.RequireEditMode != true || Personalization.GetUserMode() == PortalSettings.Mode.Edit) || (security == SecurityAccessLevel.Anonymous || security == SecurityAccessLevel.View)) { isVisible = true; } } return isVisible; } } }
36.720721
199
0.492395
[ "MIT" ]
Mariusz11711/DNN
DNN Platform/Library/UI/WebControls/ActionLink.cs
4,078
C#
/** * Copyright 2017-2021 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace Plexus.Interop.Broker.Internal { using Plexus.Interop.Metamodel; using Plexus.Interop.Protocol; using System.Collections.Generic; internal interface IRegistryService { IApplication GetApplication(string appId); IConsumedService GetConsumedService(string appId, IConsumedServiceReference reference); IConsumedMethod GetConsumedMethod(string appId, IConsumedMethodReference reference); IProvidedService GetProvidedService(IProvidedServiceReference reference); IProvidedMethod GetProvidedMethod(IProvidedMethodReference reference); IReadOnlyCollection<IProvidedMethod> GetMatchingProvidedMethods(IConsumedMethod consumedMethod); IReadOnlyCollection<IProvidedMethod> GetMatchingProvidedMethods(string appId, IConsumedMethodReference reference); IReadOnlyCollection<IProvidedMethod> GetMatchingProvidedMethods(IApplication application); IReadOnlyCollection<IProvidedMethod> GetMatchingProvidedMethods(string appId); bool IsApplicationDefined(string appId); IReadOnlyCollection<(IConsumedMethod Consumed, IProvidedMethod Provided)> GetMethodMatches( string appId, IConsumedServiceReference consumedServiceReference); IReadOnlyCollection<(IConsumedMethod Consumed, IProvidedMethod Provided)> GetMethodMatches(string appId); } }
39.538462
130
0.768482
[ "Apache-2.0" ]
deutschebank/Plexus-interop
desktop/src/Plexus.Interop.Broker.Core/Internal/IRegistryService.cs
2,058
C#
// ----------------------------------------------------------------------- // <copyright file="EnumExtension.cs" company="Îakaré Software'oka"> // Copyright (c) Îakaré Software'oka. // All rights reserved. // Licensed under the MIT license. // See LICENSE file in the project root for full license information. // </copyright> // ----------------------------------------------------------------------- namespace Kapi.Domain.Core.Extensions { using Kapi.Domain.Core.Exceptions; using Kapi.Domain.Core.Models; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; /// <summary> /// Classe de extensão para operações com enumeradores. /// </summary> public static class EnumExtension { /// <summary> /// Busca a descrição do Enumerador passado. /// </summary> /// <param name="value"> /// Enum a ter a descrição retornada. /// </param> /// <returns> /// Retorna a descrição do enumerador em formato texto. /// </returns> /// <exception cref="EnumDescriptionNotFoundException"> /// Descrição não encontrada. /// </exception> public static string Description(this Enum value) { object[] attributes = value ?.GetType() ?.GetField(value.ToString()) ?.GetCustomAttributes(typeof(DescriptionAttribute), false) ?? Array.Empty<Array>(); return attributes.Length > 0 && attributes.First() is DescriptionAttribute description ? description.Description : throw new EnumDescriptionNotFoundException(); } /// <summary> /// Retorna uma lista com os valores contidos no enumerador. /// </summary> /// <param name="value"> /// Enum a ser transformado em uma lista. /// </param> /// <returns> /// Lista dos itens do enumerador. /// </returns> public static IEnumerable<EnumModel> GetAllValuesAndDescriptions(this Enum value) { return Enum.GetValues(value.GetType()).Cast<Enum>().Select((e) => new EnumModel() { Value = e, Description = e.Description() }).ToList(); } } }
34.485714
89
0.526512
[ "MIT" ]
luca16s/CapybaraFinancePlanner
Kapi.Domain.Core/Extensions/EnumExtension.cs
2,432
C#
using System; using System.Collections.Generic; using Newtonsoft.Json; using TMDbLib.Objects.Changes; using TMDbLib.Objects.General; using TMDbLib.Objects.Movies; using TMDbLib.Objects.Reviews; using TMDbLib.Objects.Search; using TMDbLib.Utilities.Converters; namespace TMDbLib.Objects.TvShows { public class TvShow { [JsonProperty("account_states")] public AccountState AccountStates { get; set; } [JsonProperty("alternative_titles")] public ResultContainer<AlternativeTitle> AlternativeTitles { get; set; } [JsonProperty("backdrop_path")] public string BackdropPath { get; set; } [JsonProperty("changes")] public ChangesContainer Changes { get; set; } [JsonProperty("content_ratings")] public ResultContainer<ContentRating> ContentRatings { get; set; } [JsonProperty("created_by")] public List<CreatedBy> CreatedBy { get; set; } [JsonProperty("credits")] public Credits Credits { get; set; } [JsonProperty("aggregate_credits")] public Credits AggregateCredits { get; set; } [JsonProperty("episode_groups")] public ResultContainer<TvGroupCollection> EpisodeGroups { get; set; } [JsonProperty("episode_run_time")] public List<int> EpisodeRunTime { get; set; } [JsonProperty("external_ids")] public ExternalIdsTvShow ExternalIds { get; set; } [JsonProperty("first_air_date")] public DateTime? FirstAirDate { get; set; } [JsonProperty("genre_ids")] [JsonConverter(typeof(TmdbIntArrayAsObjectConverter)) /*#307*/] public List<int> GenreIds { get; set; } [JsonProperty("genres")] public List<Genre> Genres { get; set; } [JsonProperty("homepage")] public string Homepage { get; set; } [JsonProperty("id")] public int Id { get; set; } [JsonProperty("images")] public Images Images { get; set; } [JsonProperty("in_production")] public bool InProduction { get; set; } [JsonProperty("keywords")] public ResultContainer<Keyword> Keywords { get; set; } /// <summary> /// language ISO code ex. en /// </summary> [JsonProperty("languages")] public List<string> Languages { get; set; } [JsonProperty("last_air_date")] public DateTime? LastAirDate { get; set; } [JsonProperty("last_episode_to_air")] public TvEpisodeBase LastEpisodeToAir { get; set; } [JsonProperty("name")] public string Name { get; set; } [JsonProperty("next_episode_to_air")] public TvEpisodeBase NextEpisodeToAir { get; set; } [JsonProperty("networks")] public List<NetworkWithLogo> Networks { get; set; } [JsonProperty("number_of_episodes")] [JsonConverter(typeof(TmdbNullIntAsZero))] public int NumberOfEpisodes { get; set; } [JsonProperty("number_of_seasons")] [JsonConverter(typeof(TmdbNullIntAsZero))] public int NumberOfSeasons { get; set; } [JsonProperty("original_language")] public string OriginalLanguage { get; set; } [JsonProperty("original_name")] public string OriginalName { get; set; } /// <summary> /// Country ISO code ex. US /// </summary> [JsonProperty("origin_country")] public List<string> OriginCountry { get; set; } [JsonProperty("overview")] public string Overview { get; set; } [JsonProperty("popularity")] public double Popularity { get; set; } [JsonProperty("poster_path")] public string PosterPath { get; set; } [JsonProperty("production_companies")] public List<ProductionCompany> ProductionCompanies { get; set; } [JsonProperty("production_countries")] public List<ProductionCountry> ProductionCountries { get; set; } [JsonProperty("recommendations")] public ResultContainer<TvShow> Recommendations { get; set; } [JsonProperty("reviews")] public SearchContainer<ReviewBase> Reviews { get; set; } [JsonProperty("seasons")] public List<SearchTvSeason> Seasons { get; set; } [JsonProperty("similar")] public ResultContainer<TvShow> Similar { get; set; } [JsonProperty("spoken_languages")] public List<SpokenLanguage> SpokenLanguages { get; set; } [JsonProperty("status")] public string Status { get; set; } [JsonProperty("tagline")] public string Tagline { get; set; } [JsonProperty("translations")] public TranslationsContainer Translations { get; set; } [JsonProperty("type")] public string Type { get; set; } [JsonProperty("videos")] public ResultContainer<Video> Videos { get; set; } [JsonProperty("watch/providers")] public SingleResultContainer<Dictionary<string, WatchProviders>> WatchProviders { get; set; } [JsonProperty("vote_average")] public double VoteAverage { get; set; } [JsonProperty("vote_count")] public int VoteCount { get; set; } } }
31.005917
101
0.628626
[ "MIT" ]
Chronoscross/TMDbLib
TMDbLib/Objects/TvShows/TvShow.cs
5,242
C#
using System; namespace Adaptive.ReactiveTrader.Client.iOSTab { public class FormattedPrice { public FormattedPrice(string bigFigures, string pips, string tenthOfPip) { BigFigures = bigFigures; Pips = pips; TenthOfPip = tenthOfPip; } public string BigFigures { get; private set; } public string Pips { get; private set; } public string TenthOfPip { get; private set; } } }
20.05
74
0.718204
[ "Apache-2.0" ]
AdaptiveConsulting/ReactiveTrader
src/Adaptive.ReactiveTrader.Client.iOSTab/FormattedPrice.cs
403
C#
using System; using System.Text; using Android.Content; using Android.Runtime; using Android.Text; using Android.Util; using Steepshot.Core.Extensions; using Steepshot.Core.Models.Common; namespace Steepshot.CustomViews { public sealed class PostCustomTextView : ExpandableTextView { public PostCustomTextView(Context context) : this(context, null) { } public PostCustomTextView(Context context, IAttributeSet attrs) : this(context, attrs, 0) { } public PostCustomTextView(Context context, IAttributeSet attrs, int defStyleAttr) : base(context, attrs, defStyleAttr) { } protected PostCustomTextView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) { } public void UpdateText(Post post, string tagToExclude, string tagFormat, int maxLines, bool isExpanded) { var censorTitle = post.Title.CensorText(); var censorDescription = post.Description.CensorText(); var censorDescriptionHtml = Html.FromHtml(censorDescription); var censorDescriptionWithoutHtml = string.IsNullOrEmpty(post.Description) ? string.Empty : censorDescriptionHtml.ToString(); var titleWithTags = new StringBuilder(censorTitle); if (!string.IsNullOrEmpty(censorDescriptionWithoutHtml)) { titleWithTags.Append(Environment.NewLine + Environment.NewLine); titleWithTags.Append(censorDescriptionWithoutHtml); } foreach (var item in post.Tags) { if (item != tagToExclude) titleWithTags.AppendFormat(tagFormat, item.TagToRu()); } _text = titleWithTags.ToString(); _maxLines = maxLines; Expanded = isExpanded; } } }
33.068966
126
0.637122
[ "MIT" ]
Chainers/steepshot-mobile
Sources/Steepshot/Steepshot.Android/CustomViews/PostCustomTextView.cs
1,920
C#
using FakeItEasy; using Faker; using FluentAssertions; using NUnit.Framework; using System; using System.Collections.Generic; using System.Threading.Tasks; using Watchster.Application.Features.Commands; using Watchster.Application.Models; using Watchster.SendGrid.Models; using Watchster.SendGrid.Services; namespace Watchster.Application.UnitTests.Features.Commands { public class SendMovieRecommendationsViaEmailCommandTests { private readonly SendMovieRecommendationsViaEmailCommandHandler handler; private readonly ISendGridService sendGridService; private readonly string invalidEmail = ""; public SendMovieRecommendationsViaEmailCommandTests() { var fakeSendGridService = new Fake<ISendGridService>(); fakeSendGridService.CallsTo(sg => sg.SendMailAsync(A<MailInfo>.That.Matches(x => x.Receiver.Email == invalidEmail))) .Throws<ArgumentException>(); sendGridService = fakeSendGridService.FakedObject; handler = new SendMovieRecommendationsViaEmailCommandHandler(sendGridService); } [SetUp] public void SetUp() { Fake.ClearRecordedCalls(sendGridService); } [TearDown] public void TearDown() { Fake.ClearRecordedCalls(sendGridService); } [Test] public async Task Given_SendMovieRecommendationsViaEmailCommand_When_RecommendationsAreEmpty_Then_EmailIsNotSend() { //arrage var command = new SendMovieRecommendationsViaEmailCommand { Recommendations = new List<MovieRecommendation>(), ToEmailAddress = Internet.Email() }; //act var response = await handler.Handle(command, default); //assert response.Should().Be(false); } [Test] public async Task Given_SendMovieRecommendationsViaEmailCommand_When_ToEmailAddressIsInvalid_Then_EmailIsNotSend() { //arrage var command = new SendMovieRecommendationsViaEmailCommand { Recommendations = new List<MovieRecommendation>() { new MovieRecommendation(), new MovieRecommendation(), new MovieRecommendation(), new MovieRecommendation(), new MovieRecommendation() }, ToEmailAddress = invalidEmail }; //act var response = await handler.Handle(command, default); //assert response.Should().Be(false); } [Test] public async Task Given_SendMovieRecommendationsViaEmailCommand_When_Valid_Then_EmailIsSend() { //arrage var command = new SendMovieRecommendationsViaEmailCommand { Recommendations = new List<MovieRecommendation>() { new MovieRecommendation() }, ToEmailAddress = Internet.Email(), }; //act var response = await handler.Handle(command, default); //assert response.Should().Be(true); A.CallTo(() => sendGridService.SendMailAsync(A<MailInfo>._)).MustHaveHappenedOnceExactly(); } } }
32.367925
128
0.605363
[ "MIT" ]
iulianPeiu6/Watchster
WatchsterSolution/Watchster.Application.UnitTests/Features/Commands/SendMovieRecommendationsViaEmailCommandTests.cs
3,433
C#
using ImageWizard.Core.Settings; using ImageWizard.Core.Types; using ImageWizard.Services.Types; using ImageWizard.Settings; using System; using System.Collections.Generic; using System.Text; namespace ImageWizard.Core.ImageProcessing { /// <summary> /// ImageProcessingContext /// </summary> public class ProcessingPipelineContext { public ProcessingPipelineContext( ImageResult result, ClientHints clientHints, ImageWizardOptions imageWizardOptions, IEnumerable<string> acceptMimeTypes, IEnumerable<string> urlFilters) { Result = result; ClientHints = clientHints; ImageWizardOptions = imageWizardOptions; AcceptMimeTypes = acceptMimeTypes; UrlFilters = new Queue<string>(urlFilters); } /// <summary> /// OriginalImage /// </summary> public ImageResult Result { get; set; } /// <summary> /// AcceptMimeTypes /// </summary> public IEnumerable<string> AcceptMimeTypes { get; set; } /// <summary> /// ClientHints /// </summary> public ClientHints ClientHints { get; } /// <summary> /// ImageWizardOptions /// </summary> public ImageWizardOptions ImageWizardOptions { get; } /// <summary> /// UrlFilters /// </summary> public Queue<string> UrlFilters { get; } /// <summary> /// DisableCache /// </summary> public bool DisableCache { get; set; } } }
26.508197
64
0.581942
[ "MIT" ]
usercode/ImageWizard
src/ImageWizard.Core/ImageProcessing/ProcessingPipelineContext.cs
1,619
C#
#pragma checksum "C:\Users\josephj\Documents\git\puzzle-circle\pzov2\PuzzleOracle\PuzzleOracle\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "3189A92E734164EB76C879D91E65C6C7" //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace PuzzleOracle { partial class MainPage : global::Windows.UI.Xaml.Controls.Page { [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 14.0.0.0")] private bool _contentLoaded; /// <summary> /// InitializeComponent() /// </summary> [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Windows.UI.Xaml.Build.Tasks"," 14.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void InitializeComponent() { if (_contentLoaded) return; _contentLoaded = true; global::System.Uri resourceLocator = new global::System.Uri("ms-appx:///MainPage.xaml"); global::Windows.UI.Xaml.Application.LoadComponent(this, resourceLocator, global::Windows.UI.Xaml.Controls.Primitives.ComponentResourceLocation.Application); } } }
37.55
186
0.605193
[ "MIT" ]
rinworks/puzzle-circle
pzov2/PuzzleOracle/PuzzleOracle/obj/x86/Debug/MainPage.g.i.cs
1,504
C#
namespace RandomPixelImage { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pictureBox1 = new System.Windows.Forms.PictureBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // // pictureBox1 // this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(381, 327); this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBox1.TabIndex = 0; this.pictureBox1.TabStop = false; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(381, 327); this.Controls.Add(this.pictureBox1); this.Name = "Form1"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Random Pixel Image"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.PictureBox pictureBox1; } }
36.212121
107
0.582845
[ "MIT" ]
AungWinnHtut/POL
C#/AnalogClockProject/CSharp-Project-master/src/RandomPixelImage/Form1.Designer.cs
2,392
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.Media { public static class GetAssetEncryptionKey { /// <summary> /// Data needed to decrypt asset files encrypted with legacy storage encryption. /// API Version: 2020-05-01. /// </summary> public static Task<GetAssetEncryptionKeyResult> InvokeAsync(GetAssetEncryptionKeyArgs args, InvokeOptions? options = null) => Pulumi.Deployment.Instance.InvokeAsync<GetAssetEncryptionKeyResult>("azure-nextgen:media:getAssetEncryptionKey", args ?? new GetAssetEncryptionKeyArgs(), options.WithVersion()); } public sealed class GetAssetEncryptionKeyArgs : Pulumi.InvokeArgs { /// <summary> /// The Media Services account name. /// </summary> [Input("accountName", required: true)] public string AccountName { get; set; } = null!; /// <summary> /// The Asset name. /// </summary> [Input("assetName", required: true)] public string AssetName { get; set; } = null!; /// <summary> /// The name of the resource group within the Azure subscription. /// </summary> [Input("resourceGroupName", required: true)] public string ResourceGroupName { get; set; } = null!; public GetAssetEncryptionKeyArgs() { } } [OutputType] public sealed class GetAssetEncryptionKeyResult { /// <summary> /// Asset File encryption metadata. /// </summary> public readonly ImmutableArray<Outputs.AssetFileEncryptionMetadataResponseResult> AssetFileEncryptionMetadata; /// <summary> /// The Asset File storage encryption key. /// </summary> public readonly string? Key; [OutputConstructor] private GetAssetEncryptionKeyResult( ImmutableArray<Outputs.AssetFileEncryptionMetadataResponseResult> assetFileEncryptionMetadata, string? key) { AssetFileEncryptionMetadata = assetFileEncryptionMetadata; Key = key; } } }
33.180556
192
0.643365
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/Media/GetAssetEncryptionKey.cs
2,389
C#
using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using System.Threading.Tasks; using AET.Unity.SimplSharp; using AET.Unity.SimplSharp.HttpClient; using AET.Unity.SimplSharp.Timer; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace AET.Zigen.Sw42PlusV3.Tests { static class Test { static Test() { ErrorMessage.ErrorMessageHandler = new TestErrorMessageHandler(); } public static TestTimer Timer { get; } = new TestTimer() { ElapseImmediately = true }; public static TestMutex Mutex { get; } = new TestMutex(); public static Sw42Plus Sw42Plus { get { var sw42 = new Sw42Plus(new TestHttpClient()) {HostName = "http://Test" }; sw42.Initialize(); return sw42; } } public static T GetPropertyValue<T>(this object obj, string propName) { var prop = obj.GetType().GetProperty(propName); if (prop == null) Assert.Fail("Property '{0}' does not exist", propName); return (T)prop.GetValue(obj, null) ; } public static void SetPropertyValue<T>(this object obj, string propName, T value) { var prop = obj.GetType().GetProperty(propName); if(prop == null) Assert.Fail("Property '{0}' does not exist", propName); prop.SetValue(obj, value); } public static void InvokeMethod(this object obj, string methodName) { var method = obj.GetType().GetMethod(methodName); if (method == null) Assert.Fail("Method '{0}' does not exist", methodName); method.Invoke(obj, null); } } }
34.104167
91
0.6573
[ "Apache-2.0" ]
tony722/Zigen.SW42PlusMk3
AET.Zigen.SW42PlusV3/AET.Zigen.SW42PlusV3.Tests/Test.cs
1,639
C#
using System; using System.Collections.Generic; using System.Linq; namespace Automata { public abstract class BaseMachine { protected List<char> Alphabets { get; set; } protected List<string> States { get; set; } protected List<string> FinalStates { get; set; } protected List<Instruction> Instructions { get; set; } public BaseMachine() { Alphabets = new List<char>(); States = new List<string>(); FinalStates = new List<string>(); Instructions = new List<Instruction>(); } public Array GetAlphabets() { return Alphabets.ToArray(); } public Array GetStates() { return States.ToArray(); } public Array GetFinalStates() { return FinalStates.ToArray(); } public Array GetInstructions() { return Instructions.ToArray(); } public bool HasState(string stateName) { return States.Contains(stateName); } public bool AddAlphabet(char alphabet) { if (!Alphabets.Contains(alphabet)) { Alphabets.Add(alphabet); return true; } return false; } public bool RemoveAlphabet(char alphabet) { if (Alphabets.Contains(alphabet)) { RemoveInstructionsInvolvingAlphabet(alphabet); Alphabets.Remove(alphabet); return true; } return false; } public bool AddState(string stateName) { if (!States.Contains(stateName)) { States.Add(stateName); return true; } return false; } public bool RemoveState(string stateName) { if (States.Contains(stateName)) { RemoveObjectsInvolvingState(stateName); States.Remove(stateName); return true; } return false; } public bool AddFinalState(string stateName) { if (States.Contains(stateName) && !FinalStates.Contains(stateName)) { FinalStates.Add(stateName); return true; } return false; } public bool RemoveFinalState(string stateName) { if (FinalStates.Contains(stateName)) { FinalStates.Remove(stateName); return true; } return false; } public abstract bool AddInstruction(Instruction instruction); public bool RemoveInstruction(Instruction instruction) { if (States.Contains(instruction.CurrentState) && States.Contains(instruction.NextState) && Alphabets.Contains(instruction.Input)) { if (Instructions.Contains(instruction)) { Instructions.Remove(instruction); return true; } return false; } return false; } private void RemoveObjectsInvolvingState(string stateName) { List<Instruction> temp = new List<Instruction>(); // Remove related instructions foreach (Instruction instruction in Instructions) { if (instruction.CurrentState == stateName || instruction.NextState == stateName) { temp.Add(instruction); } } foreach (Instruction instruction in temp) { Instructions.Remove(instruction); } // Remove related final states if (FinalStates.Contains(stateName)) { FinalStates.Remove(stateName); } // Remove related initial state RemoveInitialStateInvolvingState(stateName); } protected abstract void RemoveInitialStateInvolvingState(string stateName); private void RemoveInstructionsInvolvingAlphabet(char alphabet) { List<Instruction> temp = new List<Instruction>(); // Remove related instructions foreach (Instruction instruction in Instructions) { if (instruction.Input == alphabet) { temp.Add(instruction); } } foreach (Instruction instruction in temp) { Instructions.Remove(instruction); } } public abstract bool VerifyString(string input); protected bool SubVerifyString(string input, string state) { if (input.Length == 0 && FinalStates.Contains(state)) { return true; } if (input.Length != 0) { var candidateInstructions = Instructions.Where(i => i.CurrentState == state && i.Input == input[0]); foreach (var instruction in candidateInstructions) { if (SubVerifyString(input.Substring(1, input.Length - 1), instruction.NextState)) { return true; } } } return false; } } }
20.80203
132
0.679356
[ "MIT" ]
m-ehsan/Automata-and-Grammar
src/Automata/Automata/BaseMachine.cs
4,100
C#
using System; using System.Collections.Generic; using System.Text; namespace MiningCore.Notifications.Messages { public class AdminNotification { public AdminNotification(string subject, string message) { Subject = subject; Message = message; } public string Subject { get; } public string Message { get; } } }
20.473684
64
0.627249
[ "MIT" ]
0xcitchx/miningcore
src/MiningCore/Notifications/Messages/AdminNotification.cs
389
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\Model\EntityType.cs.tt namespace Microsoft.Graph { using System; using System.Collections.Generic; using System.IO; using System.Runtime.Serialization; using Newtonsoft.Json; /// <summary> /// The type Conditional Access Policy. /// </summary> [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial class ConditionalAccessPolicy : Entity { ///<summary> /// The ConditionalAccessPolicy constructor ///</summary> public ConditionalAccessPolicy() { this.ODataType = "microsoft.graph.conditionalAccessPolicy"; } /// <summary> /// Gets or sets created date time. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)] public DateTimeOffset? CreatedDateTime { get; set; } /// <summary> /// Gets or sets modified date time. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "modifiedDateTime", Required = Newtonsoft.Json.Required.Default)] public DateTimeOffset? ModifiedDateTime { get; set; } /// <summary> /// Gets or sets display name. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)] public string DisplayName { get; set; } /// <summary> /// Gets or sets description. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "description", Required = Newtonsoft.Json.Required.Default)] public string Description { get; set; } /// <summary> /// Gets or sets state. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "state", Required = Newtonsoft.Json.Required.Default)] public ConditionalAccessPolicyState? State { get; set; } /// <summary> /// Gets or sets conditions. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "conditions", Required = Newtonsoft.Json.Required.Default)] public ConditionalAccessConditionSet Conditions { get; set; } /// <summary> /// Gets or sets grant controls. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "grantControls", Required = Newtonsoft.Json.Required.Default)] public ConditionalAccessGrantControls GrantControls { get; set; } /// <summary> /// Gets or sets session controls. /// </summary> [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sessionControls", Required = Newtonsoft.Json.Required.Default)] public ConditionalAccessSessionControls SessionControls { get; set; } } }
41.428571
153
0.627874
[ "MIT" ]
OfficeGlobal/msgraph-beta-sdk-dotnet
src/Microsoft.Graph/Models/Generated/ConditionalAccessPolicy.cs
3,480
C#
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; namespace GraphQL.Conversion { // https://github.com/JasperFx/baseline/tree/master/src/Baseline/Conversion public class Conversions { private readonly LightweightCache<Type, Func<string, object>> _convertors; private readonly IList<IConversionProvider> _providers = new List<IConversionProvider>(); public Conversions() { _convertors = new LightweightCache<Type, Func<string, object>>( type => { return providers().FirstValue(x => x.ConverterFor(type)); }); RegisterConversion(bool.Parse); RegisterConversion(byte.Parse); RegisterConversion(sbyte.Parse); RegisterConversion(x => { char c; char.TryParse(x, out c); return c; }); RegisterConversion(ParseDecimal); RegisterConversion(ParseDouble); RegisterConversion(ParseFloat); RegisterConversion(short.Parse); RegisterConversion(int.Parse); RegisterConversion(long.Parse); RegisterConversion(ushort.Parse); RegisterConversion(uint.Parse); RegisterConversion(ulong.Parse); RegisterConversion(DateTimeConverter.GetDateTime); RegisterConversion(DateTimeOffsetConverter.GetDateTimeOffset); RegisterConversion(Guid.Parse); RegisterConversion(x => { if (x == "EMPTY") return string.Empty; return x; }); } public static float ParseFloat(string value) { return System.Convert.ToSingle(value, NumberFormatInfo.InvariantInfo); } public static double ParseDouble(string value) { return System.Convert.ToDouble(value, NumberFormatInfo.InvariantInfo); } public static decimal ParseDecimal(string value) { return System.Convert.ToDecimal(value, NumberFormatInfo.InvariantInfo); } private IEnumerable<IConversionProvider> providers() { foreach (var provider in _providers) { yield return provider; } yield return new EnumerationConversion(); yield return new NullableConvertor(this); yield return new ArrayConversion(this); yield return new StringConverterProvider(); } public void RegisterConversionProvider<T>() where T : IConversionProvider, new() { _providers.Add(new T()); } public void RegisterConversion<T>(Func<string, T> convertor) { _convertors[typeof(T)] = x => convertor(x); } public Func<string, object> FindConverter(Type type) { return _convertors[type]; } public object Convert(Type type, string raw) { return _convertors[type](raw); } public bool Has(Type type) { return _convertors.Has(type) || providers().Any(x => x.ConverterFor(type) != null); } } }
31.102804
97
0.572416
[ "MIT" ]
hungpv1988/GraphQL-dotnet
src/GraphQL/Conversion/Conversions.cs
3,328
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class SpeedUp : MonoBehaviour { // Use this for initialization void Start () { } void OnTriggerEnter(Collider other) { if(other.CompareTag("Player")){ MoveCarForce playerMovement = other.GetComponent<MoveCarForce> (); if (playerMovement != null) { playerMovement.maxSpeed += 10f; Debug.Log ("Player's max speed is: " + playerMovement.maxSpeed); } Destroy (gameObject); } else if(other.CompareTag("Enemy")) { AICarControl enemyMovement = other.GetComponent<AICarControl> (); if (enemyMovement != null) { enemyMovement.maxSpeed += 10f; Debug.Log ("Enemy's max speed is: " + enemyMovement.maxSpeed); } Destroy (gameObject); } } // Update is called once per frame void Update () { } }
23.166667
69
0.683453
[ "MIT" ]
SpaceToastCoastToCoast/unity-racing-game
lesson-4/SpeedUp.cs
836
C#
using Com.ChinaPalmPay.Platform.RentCar.IMessaging; using Com.ChinaPalmPay.Platform.RentCar.Model; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Messaging; using System.Text; using System.Threading.Tasks; namespace Com.ChinaPalmPay.Platform.RentCar.MsmqMessaging { public class cupMsmq : RentCarQueue, ICupMsmq { private static readonly string queuePath = ConfigurationManager.AppSettings["CupQueuePath"]; private static int queueTimeout = 20; //**创建消息队列** public cupMsmq() : base(queuePath, queueTimeout) { // Set the queue to use Binary formatter for smaller foot print and performance queue.Formatter = new BinaryMessageFormatter(); } public void SendCup(Cup user) { base.transactionType = MessageQueueTransactionType.Single; base.Send(user); } public Cup ReceiveCup() { base.transactionType = MessageQueueTransactionType.Automatic; return (Cup)((Message)base.Receive()).Body; } public void SendRecharge(Recharge user) { base.transactionType = MessageQueueTransactionType.Single; base.Send(user); } public Recharge ReceiveRecharge() { base.transactionType = MessageQueueTransactionType.Automatic; return (Recharge)((Message)base.Receive()).Body; } public void SendOrderLog(OrderLog user) { base.transactionType = MessageQueueTransactionType.Single; base.Send(user); } public OrderLog ReceiveOrderLog() { base.transactionType = MessageQueueTransactionType.Automatic; return (OrderLog)((Message)base.Receive()).Body; } } }
30.786885
101
0.638445
[ "MIT" ]
gp15237125756/Blog
Com.ChinaPalmPay.Platform.RentCar/Com.ChinaPalmPay.Platform.RentCar.MsmqMessaging/cupMsmq.cs
1,892
C#
using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Threading; using static Microsoft.VisualStudio.TestTools.UnitTesting.Assert; namespace SuperSize.Test { [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { Thread.Sleep(5000); } [TestMethod] public void BadTest() { //Fail("unit tests need to be written"); } } }
19.956522
65
0.601307
[ "Apache-2.0" ]
thegreatrazz/SuperSize
SuperSize.Test/UnitTest1.cs
459
C#
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms. using System; using System.Runtime.Serialization; using WaveEngine.Common.Attributes; using WaveEngine.Common.Graphics; using WaveEngine.Common.Math; using WaveEngine.Components.Graphics3D; using WaveEngine.Framework; using WaveEngine.Framework.Graphics; using WaveEngine.Materials; namespace WaveEngine.ARMobile.Components { /// <summary> /// Class that changes the material ambient parameters based on the AR mobile light estimation /// </summary> [DataContract] public class ARLightEstimationMaterial : Behavior { /// <summary> /// The material component /// </summary> [RequiredComponent] protected MaterialComponent materialComponent; /// <summary> /// The AR service /// </summary> private ARMobileService arService; /// <summary> /// The material /// </summary> private Material material; /// <summary> /// The initial intensity of the environment channel /// </summary> private float initEnv; /// <summary> /// The initial intensity of the IBL channel /// </summary> private float initIBL; /// <summary> /// The initial color of the diffuse channel /// </summary> private Color initDiffuse; /// <summary> /// The initial color of the ambient channel /// </summary> private Color initAmbient; #region Properties /// <summary> /// Gets or sets a value indicating whether the material must be affected in the diffuse color /// </summary> [DataMember] [RenderProperty(Tooltip = "Indicates if the material must be affected in the diffuse color")] public bool UseDiffuse { get; set; } /// <summary> /// Gets or sets a value indicating whether the material must be affected in the ambient color /// </summary> [DataMember] [RenderProperty(Tooltip = "Indicates if the material must be affected in the ambient color")] public bool UseAmbient { get; set; } /// <summary> /// Gets or sets a value indicating whether the material must be affected in the environment /// </summary> [DataMember] [RenderProperty(Tooltip = "Indicates if the material must be affected in the environment")] public bool UseEnvironment { get; set; } /// <summary> /// Gets or sets a value indicating whether the material must be affected in the IBL intensity /// </summary> [DataMember] [RenderProperty(Tooltip = "Indicates if the material must be affected in the IBL intensity")] public bool UseIBL { get; set; } /// <summary> /// Gets or sets a value indicating whether the estimated light temperature will affect the material /// </summary> [DataMember] [RenderProperty(Tooltip = "Indicates if the estimated light temperature will affect the material")] public bool ApplyTemperature { get; set; } #endregion /// <inheritdoc /> protected override void DefaultValues() { base.DefaultValues(); this.UseDiffuse = true; } /// <inheritdoc /> protected override void Initialize() { base.Initialize(); this.material = this.materialComponent.Material; if (!ARMobileService.GetService(out this.arService)) { return; } if (this.material != null) { if (this.material is StandardMaterial) { var standard = this.material as StandardMaterial; this.initDiffuse = standard.DiffuseColor; this.initAmbient = standard.AmbientColor; this.initEnv = standard.EnvironmentAmount; this.initIBL = standard.IBLFactor; } else if (this.material is ForwardMaterial) { var forward = this.material as ForwardMaterial; this.initDiffuse = forward.DiffuseColor; this.initAmbient = forward.AmbientColor; } else if (this.material is EnvironmentMaterial) { var env = this.material as EnvironmentMaterial; this.initDiffuse = env.DiffuseColor; this.initAmbient = env.AmbientColor; this.initEnv = env.EnvironmentAmount; } } } /// <inheritdoc /> protected override void Update(TimeSpan gameTime) { if (this.material == null || this.arService?.LightEstimation == null) { return; } var lightEstimation = this.arService.LightEstimation; var lightIntensity = lightEstimation.AmbientIntensityFactor; var colorTemprerature = this.ApplyTemperature ? Color.FromTemperature(lightEstimation.Temperature) : Color.White; if (this.material is StandardMaterial) { var standard = this.material as StandardMaterial; lightIntensity = standard.LightingEnabled ? lightIntensity : 1; if (this.UseDiffuse) { standard.DiffuseColor = this.initDiffuse * colorTemprerature * lightIntensity; } if (this.UseAmbient) { standard.AmbientColor = this.initAmbient * colorTemprerature * lightIntensity; } if (this.UseEnvironment) { standard.EnvironmentAmount = this.initEnv * lightIntensity; } if (this.UseIBL) { standard.IBLFactor = this.initIBL * lightIntensity; } } else if (this.material is ForwardMaterial) { var forward = this.material as ForwardMaterial; lightIntensity = forward.LightingEnabled ? lightIntensity : 1; if (this.UseDiffuse) { forward.DiffuseColor = this.initDiffuse * colorTemprerature * lightIntensity; } if (this.UseAmbient) { forward.AmbientColor = this.initAmbient * colorTemprerature * lightIntensity; } } else if (this.material is EnvironmentMaterial) { var env = this.material as EnvironmentMaterial; lightIntensity = env.LightingEnabled ? lightIntensity : 1; if (this.UseDiffuse) { env.DiffuseColor = this.initDiffuse * colorTemprerature * lightIntensity; } if (this.UseAmbient) { env.AmbientColor = this.initAmbient * colorTemprerature * lightIntensity; } if (this.UseEnvironment) { env.EnvironmentAmount = this.initEnv * lightIntensity; } } } } }
33.3125
125
0.552667
[ "MIT" ]
WaveEngine/Extensions
WaveEngine.ARMobile/Shared/Components/ARLightEstimationMaterial.cs
7,465
C#
using System; using System.Linq; using DocumentsApi.V1.Boundary.Request; using DocumentsApi.V1.Boundary.Response; using DocumentsApi.V1.Boundary.Response.Exceptions; using DocumentsApi.V1.Domain; using DocumentsApi.V1.Factories; using DocumentsApi.V1.Gateways.Interfaces; using DocumentsApi.V1.UseCase.Interfaces; using DocumentsApi.V1.Validators; using Microsoft.Extensions.Logging; namespace DocumentsApi.V1.UseCase { public class CreateClaimUseCase : ICreateClaimUseCase { private IDocumentsGateway _documentsGateway; private readonly ILogger<CreateClaimUseCase> _logger; public CreateClaimUseCase(IDocumentsGateway documentsGateway, ILogger<CreateClaimUseCase> logger) { _documentsGateway = documentsGateway; _logger = logger; } public ClaimResponse Execute(ClaimRequest request) { var validation = new ClaimRequestValidator().Validate(request); if (!validation.IsValid) { _logger.LogError("VALIDATION: {0}", validation.Errors.First().ErrorMessage); throw new BadRequestException(validation); } var claim = BuildClaimRequest(request); var created = _documentsGateway.CreateClaim(claim); return created.ToResponse(); } private static Claim BuildClaimRequest(ClaimRequest request) { return new Claim { ApiCreatedBy = request.ApiCreatedBy, ServiceAreaCreatedBy = request.ServiceAreaCreatedBy, UserCreatedBy = request.UserCreatedBy, RetentionExpiresAt = request.RetentionExpiresAt, ValidUntil = request.ValidUntil, // TODO: Support creating claims for existing documents Document = new Document() }; } } }
33.350877
105
0.657023
[ "MIT" ]
LBHackney-IT/documents-api
DocumentsApi/V1/UseCase/CreateClaimUseCase.cs
1,901
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.Threading.Tasks; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.Diagnostics; using Roslynator.CSharp.CodeFixes; using Xunit; namespace Roslynator.CSharp.Analysis.Tests { public class RCS1068SimplifyLogicalNegationTests2 : AbstractCSharpFixVerifier { public override DiagnosticDescriptor Descriptor { get; } = DiagnosticDescriptors.SimplifyLogicalNegation; public override DiagnosticAnalyzer Analyzer { get; } = new InvocationExpressionAnalyzer(); public override CodeFixProvider FixProvider { get; } = new SimplifyLogicalNegationCodeFixProvider(); [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAny() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!items.Any(s => !s.Equals(s))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.All(s => s.Equals(s)); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAny2() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!(items.Any(s => (!s.Equals(s))))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.All(s => (s.Equals(s))); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAny3() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!items.Any<string>(s => !s.Equals(s))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.All<string>(s => s.Equals(s)); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAll() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!items.All(s => !s.Equals(s))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.Any(s => s.Equals(s)); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAll2() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!(items.All(s => (!s.Equals(s))))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.Any(s => (s.Equals(s))); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.SimplifyLogicalNegation)] public async Task Test_NotAll3() { await VerifyDiagnosticAndFixAsync(@" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = [|!items.All<string>(s => !s.Equals(s))|]; } } ", @" using System.Linq; using System.Collections.Generic; class C { void M() { bool f1 = false; bool f2 = false; var items = new List<string>(); f1 = items.Any<string>(s => s.Equals(s)); } } "); } } }
20.362869
160
0.5862
[ "Apache-2.0" ]
ADIX7/Roslynator
src/Tests/Analyzers.Tests/RCS1068SimplifyLogicalNegationTests2.cs
4,828
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace User { public interface IUserLogic { /// <summary> /// Add a new user to the database /// </summary> /// <param name="newuser"></param> void addNewUser(UserInfo newuser); /// <summary> /// Checks to see if the user logging in, is an exisiting user in the database /// </summary> /// <param name="loginUser"></param> /// <returns> returns true if exisiting user, false if they are not.</returns> bool validateUser(UserInfo loginUser); /// <summary> /// Gathers all of the users from the database. /// </summary> /// <returns></returns> public List<UserInfo> GetAllUsers(); /// <summary> /// Displays all user details /// </summary> public void showAllUsers(); /// <summary> /// searches for a user /// displays that user's details /// </summary> public void searchForUser(); } }
29.421053
86
0.567084
[ "MIT" ]
220328-uta-sh-net-ext/P0-Sean-Letts
Project0_Sean_Letts/User/IUserLogic.cs
1,120
C#
using Microsoft.Azure.Devices.Client; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace SimulatedDevice { class Simulator { struct Telemetry { [JsonProperty("temperature")] public double Temperature { get; set; } [JsonProperty("pressure")] public double Pressure { get; set; } [JsonProperty("ambientTemperature")] public double AmbientTemperature { get; set; } [JsonProperty("humidity")] public double Humidity { get; set; } [JsonProperty("measurementDate")] public DateTime MeasurementDate { get; set; } } private static DeviceClient deviceClient; private static Random random; static Simulator() { random = new Random(); } public Simulator(DeviceClient client) { deviceClient = client; } public async Task RunSimulation() { var telemetry = new Telemetry() { Temperature = 15.5, Pressure = 0.8, AmbientTemperature = 18.5, Humidity = 60, MeasurementDate = new DateTime() }; await Task.Run(async () => { while (true) { telemetry.Temperature += GetRandom(-0.2, 0.2); telemetry.Pressure += GetRandom(-0.05, 0.05); telemetry.AmbientTemperature += GetRandom(-0.05, 0.0); telemetry.Humidity += GetRandom(-0.2, 0.5); telemetry.MeasurementDate = DateTime.Now; var jsonMessageString = JsonConvert.SerializeObject(telemetry); Console.WriteLine(jsonMessageString); await deviceClient.SendEventAsync(new Message(Encoding.UTF8.GetBytes(jsonMessageString))); System.Threading.Thread.Sleep(1000); } }); } private double GetRandom(double min, double max) { return random.NextDouble() * (max - min) + min; } } }
29.185185
111
0.505922
[ "MIT" ]
jplck/serverless-iot-simulated-device
Simulator.cs
2,366
C#
/* _________________________________________________ (c) Hi-Integrity Systems 2012. All rights reserved. www.hisystems.com.au - Toby Wicks github.com/hisystems/Interpreter 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; namespace HiSystems.Interpreter { /// <summary> /// Accepts one argument of type Array containing objects of type Number. /// Usage: AVG(array) /// Example: Avg(Array(1, 2, 3)) /// </summary> public class Average : Function { public override string Name { get { return "AVG"; } } public override Literal Execute(IConstruct[] arguments) { base.EnsureArgumentCountIs(arguments, 1); return new Number(base.GetTransformedArgumentDecimalArray(arguments, argumentIndex:0).Average()); } } }
30.2
109
0.688742
[ "MIT" ]
fredericaltorres/JSonQueryRunTime
hisystems/Interpreter/Functions/Average.cs
1,512
C#
/* * Copyright 2014 Dominick Baier, Brock Allen * * 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.Security.Claims; using System.Threading.Tasks; using Thinktecture.IdentityModel; using Thinktecture.IdentityServer.Core.Connect; using Thinktecture.IdentityServer.Core.Services; namespace Thinktecture.IdentityServer.Tests.Connect.Setup { class TestGrantValidator : ICustomGrantValidator { public Task<ClaimsPrincipal> ValidateAsync(ValidatedTokenRequest request) { if (request.GrantType == "customGrant") { return Task.FromResult(Principal.Create("CustomGrant", new Claim("sub", "bob"))); }; return Task.FromResult<ClaimsPrincipal>(null); } } }
34.324324
97
0.714173
[ "Apache-2.0" ]
ybdev/Thinktecture.IdentityServer.v3
source/Tests/UnitTests/Connect/Setup/TestGrantValidator.cs
1,272
C#
using Prism; using Prism.Ioc; using Sample.ViewModels; using Sample.Views; using Xamarin.Forms; using Xamarin.Forms.Xaml; using Prism.DryIoc; [assembly: XamlCompilation(XamlCompilationOptions.Compile)] namespace Sample { public partial class App : PrismApplication { /* * The Xamarin Forms XAML Previewer in Visual Studio uses System.Activator.CreateInstance. * This imposes a limitation in which the App class must have a default constructor. * App(IPlatformInitializer initializer = null) cannot be handled by the Activator. */ public App() : this(null) { } public App(IPlatformInitializer initializer) : base(initializer) { } protected override async void OnInitialized() { InitializeComponent(); await NavigationService.NavigateAsync("NavigationPage/PrismTabbedPage"); } protected override void RegisterTypes(IContainerRegistry containerRegistry) { containerRegistry.RegisterForNavigation<NavigationPage>(); containerRegistry.RegisterForNavigation<MainPage>(); containerRegistry.RegisterForNavigation<PrismTabbedPage>(); } } }
32.078947
98
0.68991
[ "MIT" ]
winstongubantes/MatchaValidation
Matcha.Validation/Sample/Sample/Sample/App.xaml.cs
1,221
C#