Search Results for

    Show / Hide Table of Contents

    Class JsonEnvironmentResult

    Represents an instance of Environment that is used during json (de-)serialization.

    Inheritance
    System.Object
    JsonEnvironmentResult
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: TimeCockpit.Data.JsonConverters
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class JsonEnvironmentResult

    Constructors

    JsonEnvironmentResult()

    Declaration
    public JsonEnvironmentResult()

    Properties

    CurrentUser

    Gets or sets the current user of the DataContext.

    Declaration
    public EntityObject CurrentUser { get; set; }
    Property Value
    Type Description
    EntityObject

    Error

    Gets or sets the error.

    Declaration
    public JsonErrorMessage Error { get; set; }
    Property Value
    Type Description
    JsonErrorMessage

    The error.

    GlobalSettings

    Gets or sets the current global settings of the DataContext.

    Declaration
    public EntityObject GlobalSettings { get; set; }
    Property Value
    Type Description
    EntityObject

    NamedSets

    Gets or sets a collection of named sets.

    Declaration
    public IDictionary<string, NamedSet> NamedSets { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, NamedSet>

    Methods

    ReadEnvironmentResult(JsonReader, Model, Environment)

    Reads an instance of EntityObject that is serialized in Json

    Declaration
    public static JsonEnvironmentResult ReadEnvironmentResult(JsonReader reader, Model model, Environment environment)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonReader reader

    The reader that is used to read the Json string.

    Model model

    The model used to deserialize entity objects.

    Environment environment

    The current environment.

    Returns
    Type Description
    JsonEnvironmentResult

    an instance of EntityObject

    ReadNamedSets(JsonReader, Model, Environment)

    Reads the a named set

    Declaration
    public static Dictionary<string, NamedSet> ReadNamedSets(JsonReader reader, Model model, Environment environment)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonReader reader

    the reader to read from.

    Model model

    the model to use for reading.

    Environment environment

    the environment used for reading.

    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, NamedSet>

    Returns a new dictionary containing the named sets.

    Write(JsonWriter, JsonEnvironmentResult, Model)

    Writes the json.

    Declaration
    public static void Write(JsonWriter writer, JsonEnvironmentResult environmentResult, Model model)
    Parameters
    Type Name Description
    Newtonsoft.Json.JsonWriter writer

    The writer.

    JsonEnvironmentResult environmentResult

    The result of a REST query.

    Model model

    the model used for writing.

    In This Article
    Back to top Copyright © 2025 software architects gmbh