Exemplo n.º 1
0
        public static DomReadOnlyJsonApiVersion Create(IGetJsonApiVersion getJsonApiVersion)
        {
            Contract.Requires(getJsonApiVersion != null && getJsonApiVersion.JsonApiVersion != null);

            var jsonApiVersion = getJsonApiVersion.JsonApiVersion;

            var domReadOnlyJsonApiVersion = new DomReadOnlyJsonApiVersion(jsonApiVersion);

            return(domReadOnlyJsonApiVersion);
        }
        // PUBLIC METHODS ///////////////////////////////////////////////////
        #region Getter Extension Methods
        public static bool HasJsonApi(this IGetJsonApiVersion getJsonApi)
        {
            Contract.Requires(getJsonApi != null);

            return(getJsonApi.JsonApiVersion != null);
        }