-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Hofmann <oss@hoffe.org>
- Loading branch information
Showing
7 changed files
with
145 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
| ||
/// <summary> | ||
/// Represents the state of a data operation. | ||
/// </summary> | ||
public enum OperationState | ||
{ | ||
/// <summary> | ||
/// Represents no operation state. | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// Represents the start of a data operation. | ||
/// </summary> | ||
Started, | ||
|
||
/// <summary> | ||
/// Represents the completion of a data operation. | ||
/// </summary> | ||
Completed | ||
} | ||
|
||
/// <summary> | ||
/// Represents a data operation. | ||
/// </summary> | ||
public class DataOperation | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="DataOperation"/> class with the specified state. | ||
/// </summary> | ||
/// <param name="state">The state of the data operation.</param> | ||
public DataOperation(OperationState state = OperationState.None) | ||
{ | ||
State = state; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the state of the data operation. | ||
/// </summary> | ||
public OperationState State { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using openHAB.Core.Model; | ||
|
||
/// <summary> | ||
/// Represents a navigation between two OpenHAB widgets. | ||
/// </summary> | ||
public class WigetNavigation | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="WigetNavigation"/> class. | ||
/// </summary> | ||
/// <param name="originWidget">The origin widget.</param> | ||
/// <param name="targetWidget">The target widget.</param> | ||
public WigetNavigation(OpenHABWidget originWidget, OpenHABWidget targetWidget) | ||
{ | ||
OriginWidget = originWidget; | ||
TargetWidget = targetWidget; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the origin widget. | ||
/// </summary> | ||
public OpenHABWidget OriginWidget { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the target widget. | ||
/// </summary> | ||
public OpenHABWidget TargetWidget { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters