Search Results for

    Show / Hide Table of Contents

    Class InstanceDataComment

    Manage comments in instance datas.

    Inheritance
    System.Object
    InstanceDataComment
    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: Simplic.Framework.Extension
    Assembly: Simplic.Framework.Extension.dll
    Syntax
    public class InstanceDataComment

    Properties

    | Improve this Doc View Source

    Singleton

    Singleton access to InstanceDataComment

    Declaration
    public static InstanceDataComment Singleton { get; }
    Property Value
    Type Description
    InstanceDataComment

    Methods

    | Improve this Doc View Source

    AddGuidResolver(Guid, ICommentInstanceDataGuidResolver)

    Add a guid resolver to the lsit of resovlers for a given stack

    Declaration
    public void AddGuidResolver(Guid stackGuid, ICommentInstanceDataGuidResolver resolver)
    Parameters
    Type Name Description
    System.Guid stackGuid

    Unique stack guid

    ICommentInstanceDataGuidResolver resolver

    Resolver instance

    | Improve this Doc View Source

    Create(InstanceDataCommentModel)

    Crate new comment

    Declaration
    public InstanceDataCommentModel Create(InstanceDataCommentModel comment)
    Parameters
    Type Name Description
    InstanceDataCommentModel comment

    Instance of InstanceDataCommentModel

    Returns
    Type Description
    InstanceDataCommentModel
    | Improve this Doc View Source

    Delete(Guid)

    Deletes a comment

    Declaration
    public void Delete(Guid guid)
    Parameters
    Type Name Description
    System.Guid guid
    | Improve this Doc View Source

    Get(Guid, Guid)

    Get a list of all comments

    Declaration
    public IList<InstanceData_Comment_Entry> Get(Guid stackGuid, Guid instanceDataGuid)
    Parameters
    Type Name Description
    System.Guid stackGuid

    Guid of the stack

    System.Guid instanceDataGuid

    Instance data guid

    Returns
    Type Description
    System.Collections.Generic.IList<InstanceData_Comment_Entry>

    List of comments (InstanceData_Comment_Entry)

    | Improve this Doc View Source

    GetAdditionalInstanceDataGuids(Guid, Guid)

    Get additional guids for a given instance-data guid

    Declaration
    public IList<Guid> GetAdditionalInstanceDataGuids(Guid stackGuid, Guid instanceDataGuid)
    Parameters
    Type Name Description
    System.Guid stackGuid

    Stack guid

    System.Guid instanceDataGuid

    Instance data guid

    Returns
    Type Description
    System.Collections.Generic.IList<System.Guid>

    List of further instance data guids

    | Improve this Doc View Source

    GetCategories(Guid)

    Get a list of categories that belongs to a stack

    Declaration
    public IList<InstanceDataCommentCategory> GetCategories(Guid stackGuid)
    Parameters
    Type Name Description
    System.Guid stackGuid

    Unique stack guid

    Returns
    Type Description
    System.Collections.Generic.IList<InstanceDataCommentCategory>

    List of categories

    | Improve this Doc View Source

    GetCategory(Guid)

    Get a single category

    Declaration
    public InstanceDataCommentCategory GetCategory(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Unique category id

    Returns
    Type Description
    InstanceDataCommentCategory

    Instance of a category or null

    | Improve this Doc View Source

    GetVersions(Guid)

    Get all versions from a single comment, sorted by create date time desc

    Declaration
    public IList<InstanceData_Comment_Entry> GetVersions(Guid commentId)
    Parameters
    Type Name Description
    System.Guid commentId

    Id of the comments

    Returns
    Type Description
    System.Collections.Generic.IList<InstanceData_Comment_Entry>

    List of comments (InstanceData_Comment_Entry)

    | Improve this Doc View Source

    HasComments(Guid, Guid)

    Proofts wether an instancedata has comments

    Declaration
    public bool HasComments(Guid stackGuid, Guid instanceDataGuid)
    Parameters
    Type Name Description
    System.Guid stackGuid

    Id of the stack

    System.Guid instanceDataGuid

    Id of the instance data

    Returns
    Type Description
    System.Boolean

    True if an instance data has comments

    | Improve this Doc View Source

    IsCommentIdExisting(Guid)

    Proofs wether an comment id exists. If an empty guid is passed, the method will return false

    Declaration
    public bool IsCommentIdExisting(Guid commentId)
    Parameters
    Type Name Description
    System.Guid commentId

    Id of the comment to proof

    Returns
    Type Description
    System.Boolean

    True if an comment exists

    | Improve this Doc View Source

    RemoveCategory(Guid)

    Remove category from database

    Declaration
    public void RemoveCategory(Guid id)
    Parameters
    Type Name Description
    System.Guid id

    Category id

    | Improve this Doc View Source

    RemoveSticky(Guid)

    Unset comment as sticky

    Declaration
    public void RemoveSticky(Guid commentId)
    Parameters
    Type Name Description
    System.Guid commentId

    StickComment id

    | Improve this Doc View Source

    SetCategory(InstanceDataCommentCategory)

    Create or update a category

    Declaration
    public void SetCategory(InstanceDataCommentCategory category)
    Parameters
    Type Name Description
    InstanceDataCommentCategory category

    Category model

    | Improve this Doc View Source

    SetSticky(Guid)

    Set comment as sticky

    Declaration
    public void SetSticky(Guid commentId)
    Parameters
    Type Name Description
    System.Guid commentId

    StickComment id

    | Improve this Doc View Source

    Update(InstanceDataCommentModel)

    Create a new version of a comment

    Declaration
    public InstanceDataCommentModel Update(InstanceDataCommentModel comment)
    Parameters
    Type Name Description
    InstanceDataCommentModel comment

    Instance of InstanceDataCommentModel

    Returns
    Type Description
    InstanceDataCommentModel
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx