Exemplo n.º 1
0
        //     [Authorize(Policy = "RegisteredDataUser")]
        public IActionResult Get()
        {
            return(Ok(_masterForm.Get("lists", 0, 0)));


            //   return BadRequest("No data results available");
        }
Exemplo n.º 2
0
        public sealed override void Read(ISource s, short msk = 0xff)
        {
            base.Read(s, msk);

            s.Get(nameof(id), ref id);
            s.Get(nameof(weburl), ref weburl);
            s.Get(nameof(secret), ref secret);
        }
        private void AudioDramaListViewOnIsFavoriteClicked(object sender, Guid id)
        {
            var audioDrama = _audioDramaSource.Get().Single(x => x.AudioDramaDto.Id == id);

            audioDrama.AudioDramaUserData.IsFavorite = !audioDrama.AudioDramaUserData.IsFavorite;

            UpdateViewWithMatchingAudioDramas();
        }
Exemplo n.º 4
0
        public static IPackage GetLatest(this ISource source, PackageDependency dependency)
        {
            var highest = source.HighestVersionMatching(dependency);

            // do a Get for the EXACT version that we found
            return(source.Get(new PackageDependency(string.Format("{0} = {1}", dependency.PackageId, highest))));
        }
Exemplo n.º 5
0
        public int Get()
        {
            int x = dataSource.Get();

            if (x == 0)
            {
                throw new System.Exception();
            }
            return(x);
        }
Exemplo n.º 6
0
        public IEnumerable <AudioDrama> GetMatchingAudioDramas()
        {
            var audioDramas                  = _source.Get();
            var interpreterSelected          = _interpreterFilter.Filter(audioDramas);
            var filtered                     = _filter.Filter(interpreterSelected);
            var filteredAndSearched          = _searcher.Search(filtered, _searchText);
            var filteredAndSearchedAndSorted = _sorter.Sort(filteredAndSearched);

            return(filteredAndSearchedAndSorted);
        }
Exemplo n.º 7
0
        public void Read(ISource s, short msk = 0xff)
        {
            s.Get(nameof(seq), ref seq);
            s.Get(nameof(acct), ref acct);
            s.Get(nameof(name), ref name);
            s.Get(nameof(amt), ref amt);
            s.Get(nameof(bal), ref bal);

            s.Get(nameof(cs), ref cs);
            s.Get(nameof(blockcs), ref blockcs);
            s.Get(nameof(stamp), ref stamp);
        }
Exemplo n.º 8
0
        public static void SqlParam(this IDatum dat, ISource src, DbContext ps)
        {
            var typ  = dat.Type;
            var name = dat.Name;

            if (typ == typeof(int))
            {
                int v = 0;
                src.Get(name, ref v);

                ps.Put(name, v);
            }
        }
Exemplo n.º 9
0
 public void Read(ISource s, byte proj = 0x0f)
 {
     s.Get(nameof(shard), ref shard);
     s.Get(nameof(descr), ref descr);
     s.Get(nameof(logging), ref logging);
     s.Get(nameof(cipher), ref cipher);
     s.Get(nameof(certpasswd), ref certpasswd);
     s.Get(nameof(@ref), ref @ref);
 }
Exemplo n.º 10
0
 public virtual void Read(ISource s, short msk = 0xff)
 {
     if ((msk & BORN) == BORN)
     {
         s.Get(nameof(typ), ref typ);
         s.Get(nameof(created), ref created);
         s.Get(nameof(creator), ref creator);
     }
     s.Get(nameof(state), ref state);
     s.Get(nameof(name), ref name);
     s.Get(nameof(tip), ref tip);
     if ((msk & LATER) == LATER)
     {
         s.Get(nameof(adapted), ref adapted);
         s.Get(nameof(adapter), ref adapter);
     }
 }
 /// <summary>
 /// Convenience method for objects that implement several <see cref="ISource{T}"/> to get its member-based contents
 /// specifically.
 /// </summary>
 /// <param name="this">The implementing source.</param>
 /// <returns>MemberInfo.</returns>
 public static MemberInfo GetMember(this ISource <MemberInfo> @this) => @this.Get();
Exemplo n.º 12
0
 public void ShowStartView()
 {
     Show(_audioDramaListPresenter.GetView());
     _audioDramaListPresenter.SetModel(_source.Get());
 }
Exemplo n.º 13
0
 public void Get()
 {
     source.Get(new PackageDependency("NUnit")).IdAndVersion().ShouldEqual("NUnit-2.0");
     source.Get(new PackageDependency("NUnit < 2.0")).IdAndVersion().ShouldEqual("NUnit-1.0.1");
     source.Get(new PackageDependency("NUnit 1.0")).IdAndVersion().ShouldEqual("NUnit-1.0");
 }
Exemplo n.º 14
0
 public static AssemblyName Get <T>(this ISource <AssemblyName, AssemblyName> @this) => @this.Get(typeof(T).GetTypeInfo()
                                                                                                  .Assembly
                                                                                                  .GetName());
Exemplo n.º 15
0
 public object Get() => _source.Get();
Exemplo n.º 16
0
 public static AssemblyName Get(this ISource <AssemblyName, AssemblyName> @this) =>
 @this.Get <ISource <object, object> >();
 /// <summary>
 /// Convenience method for objects that implement several <see cref="ISource{T}"/> to get its type-based contents
 /// specifically.
 /// </summary>
 /// <param name="this">The implementing source.</param>
 /// <returns>TypeInfo.</returns>
 public static TypeInfo GetType(this ISource <TypeInfo> @this) => @this.Get();
Exemplo n.º 18
0
 public static T Get <T>(this ISource <Type, object> @this) => (T)@this.Get(typeof(T));