forked from yanw/App_win_iot_V2.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
716 B
26 lines
716 B
using IOTContainer.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace IOTContainer.Model
|
|
{
|
|
public class MQTTMessageModel
|
|
{
|
|
public MQTTMessageModel(string clientid,string type="app-online")
|
|
{
|
|
this.type = type;
|
|
this.timestamp = DateTime.Now.GetMilliTimeStamp().ToString();
|
|
this.data = new MQTTDataModel() { clientid = clientid };
|
|
}
|
|
public string type { get; set; }
|
|
public string timestamp { get; set; }
|
|
public MQTTDataModel data { get; set; }
|
|
}
|
|
public class MQTTDataModel
|
|
{
|
|
public string clientid { get; set; }
|
|
}
|
|
}
|
|
|