BMLTiOSLibChangeNode

public class BMLTiOSLibChangeNode : NSObject

This is a special class that represents change objects.

Public Properties

Public Calculated Properties

  • Declaration

    Swift

    public var changeDate: Date! { get }

    Return Value

    The date the change was made.

  • Declaration

    Swift

    public var changeMaker: String { get }

    Return Value

    The name of the administrator that made the change.

  • id

    Declaration

    Swift

    public var id: Int { get }

    Return Value

    The ID of the change.

  • Declaration

    Swift

    public var serviceBody: BMLTiOSLibHierarchicalServiceBodyNode! { get }

    Return Value

    The Service body to which the changed meeting belongs.

  • Declaration

    Swift

    public var meetingCurrentlyExists: Bool { get }

    Return Value

    True, if the meeting currently exists.

  • Declaration

    Swift

    public var details: String { get }

    Return Value

    The listed change details.

  • Declaration

    Swift

    public var meeting_id: Int { get }

    Return Value

    The listed change meeting ID.

  • Declaration

    Swift

    public var meetingWasCreated: Bool { get }

    Return Value

    True, if the meeting was created by this change.

  • Declaration

    Swift

    public var meetingWasDeleted: Bool { get }

    Return Value

    True, if the meeting was deleted by this change.

  • Each Dictionary entry is described by the field key. The content is a 2-element String Array, with 0 being the “before” value and 1 being the “after” value

    Declaration

    Swift

    public var meetingWasChanged: [String : [String]]! { get }

    Return Value

    a Dictionary of changes made, with “before” and “after” values for each changed field.

  • Declaration

    Swift

    override public var description: String { get }

    Return Value

    A String, with the change as a textual description.

Public Initializer

  • Default initializer

    Declaration

    Swift

    public init(_ inDictionary: [String : AnyObject?], inHandler: BMLTiOSLib)

    Parameters

    inDictionary

    This is a Dictionary object with the raw JSON response object.

    inHandler

    This is the “owning” BMLTiOSLib object for this change.

Public Methods

  • Reverts a meeting to the “before” state of this change, but does not save the changes.

    The “before” meeting must also be editable, the user needs to be currently logged in with edit privileges on the meeting.

    Declaration

    Swift

    public func revertMeetingToBeforeThisChange() -> Bool

    Return Value

    True, if the reversion was allowed.

  • Reverts a meeting to the “before” state of this change, and saves it on the server.

    If this is a deleted meeting, the meeting will be restored, which the server does by finding the last delete change for that meeting, and restores it. It is possible that the restored meeting may be different from the one before this change, but doing it this way makes sure the last meeting state is preserved.

    The “before” meeting must also be editable, the user needs to be currently logged in with edit privileges on the meeting.

    Declaration

    Swift

    public func saveMeetingToBeforeThisChange() -> Bool

    Return Value

    True, if the reversion was allowed.