-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more data to publish state (#52)
- Loading branch information
Showing
12 changed files
with
129 additions
and
13 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace MQTTnetApp.Pages.Publish; | ||
|
||
public enum PayloadInputFormat | ||
{ | ||
PlainText, | ||
|
||
Base64String, | ||
|
||
FilePath | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,34 @@ | ||
using System.Collections.Generic; | ||
using MQTTnet.Protocol; | ||
using MQTTnetApp.Services.State.Model; | ||
|
||
namespace MQTTnetApp.Pages.Publish.State; | ||
|
||
public sealed class PublishState | ||
{ | ||
public string? ContentType { get; set; } | ||
|
||
public uint MessageExpiryInterval { get; set; } | ||
|
||
public string? Name { get; set; } | ||
|
||
public string? Payload { get; set; } | ||
|
||
public MqttPayloadFormatIndicator PayloadFormatIndicator { get; set; } | ||
|
||
public PayloadInputFormat PayloadInputFormat { get; set; } | ||
|
||
public MqttQualityOfServiceLevel QualityOfServiceLevel { get; set; } | ||
|
||
public string? ResponseTopic { get; set; } | ||
|
||
public bool Retain { get; set; } | ||
|
||
public uint SubscriptionIdentifier { get; set; } | ||
|
||
public string? Topic { get; set; } | ||
|
||
public ushort TopicAlias { get; set; } | ||
|
||
public List<UserProperty> UserProperties { get; set; } = new(); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace MQTTnetApp.Services.State.Model; | ||
|
||
public sealed class UserProperty | ||
{ | ||
public string? Name { get; set; } | ||
|
||
public string? Value { get; set; } | ||
} |