Beispiel #1
0
        public bool Equals(DestinySeasonPreviewDefinition input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Description == input.Description ||
                     (Description != null && Description.Equals(input.Description))
                     ) &&
                 (
                     LinkPath == input.LinkPath ||
                     (LinkPath != null && LinkPath.Equals(input.LinkPath))
                 ) &&
                 (
                     VideoLink == input.VideoLink ||
                     (VideoLink != null && VideoLink.Equals(input.VideoLink))
                 ) &&
                 (
                     Images == input.Images ||
                     (Images != null && Images.SequenceEqual(input.Images))
                 ));
        }
Beispiel #2
0
        void AddLink(BehaviourNode from, BehaviourNode to)
        {
            LinkPath p = new LinkPath();

            p.from = from;
            p.to   = to;
            links.Add(p);
        }
Beispiel #3
0
        public new static HttpResource From(string value, bool strict = true)
        {
            var parts = value.Split(QuerySeparator);

            if (parts.Length == 1)
            {
                return(new HttpResource(LinkPath.From(parts[0], _pathSeparators), HttpQuery.Empty));
            }
            else
            {
                var path  = LinkPath.From(parts[0], _pathSeparators);
                var query = HttpQuery.From(parts[1], strict);

                if (query != null)
                {
                    return(new HttpResource(path, query));
                }
            }

            ExpectNot(strict, "Failed to parse resource: " + value);

            return(null);
        }
Beispiel #4
0
 _createShortcut(LinkPath, _options);
Beispiel #5
0
        public static HttpResource From(LinkPath path, string query, bool strict = true)
        {
            var parsedQuery = HttpQuery.From(query, strict);

            return(parsedQuery == null ? null : new HttpResource(path, parsedQuery));
        }
Beispiel #6
0
        //
        // Factory
        //

        public static HttpResource From(LinkPath path, HttpQuery query)
        {
            return(new HttpResource(path, query));
        }
Beispiel #7
0
 private HttpResource(LinkPath path, HttpQuery query)
 {
     Path  = path;
     Query = query;
 }
Beispiel #8
0
 public static HttpResource From(LinkPath path)
 {
     return(From(path, HttpQuery.Empty));
 }
Beispiel #9
0
 public static HttpResource From(string path, string query, bool strict = true)
 {
     return(From(LinkPath.From(path, _pathSeparators), query));
 }
Beispiel #10
0
 public static HttpResource From(string path, HttpQuery query)
 {
     return(new HttpResource(LinkPath.From(path, _pathSeparators), query));
 }