示例#1
0
        //     [Authorize(Policy = "RegisteredDataUser")]
        public IActionResult Get()
        {
            return(Ok(_masterForm.Get("lists", 0, 0)));


            //   return BadRequest("No data results available");
        }
示例#2
0
文件: Peer.cs 项目: skyiah/skychain
        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();
        }
示例#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))));
        }
示例#5
0
        public int Get()
        {
            int x = dataSource.Get();

            if (x == 0)
            {
                throw new System.Exception();
            }
            return(x);
        }
示例#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);
        }
示例#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);
        }
示例#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);
            }
        }
示例#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);
 }
示例#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();
示例#12
0
 public void ShowStartView()
 {
     Show(_audioDramaListPresenter.GetView());
     _audioDramaListPresenter.SetModel(_source.Get());
 }
示例#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");
 }
示例#14
0
 public static AssemblyName Get <T>(this ISource <AssemblyName, AssemblyName> @this) => @this.Get(typeof(T).GetTypeInfo()
                                                                                                  .Assembly
                                                                                                  .GetName());
示例#15
0
 public object Get() => _source.Get();
示例#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();
示例#18
0
 public static T Get <T>(this ISource <Type, object> @this) => (T)@this.Get(typeof(T));