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.
41 lines
1.1 KiB
41 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace BatCharging.Model
|
|
{
|
|
public class Upgrade : ASDU
|
|
{
|
|
public byte Version1 { get; set; }
|
|
public byte Version2 { get; set; }
|
|
public byte Version3 { get; set; }
|
|
|
|
public UInt32 Size { get; set; }
|
|
public string Filename { get; set; }
|
|
public string MD5 { get; set; }
|
|
|
|
public byte Period { get; set; }
|
|
public byte MaxReSendTimes { get; set; }
|
|
|
|
public Upgrade(byte version1, byte version2, byte version3, UInt32 size, string filename, string md5,
|
|
byte period, byte maxReSendTimes)
|
|
{
|
|
this.Version1 = version1;
|
|
this.Version2 = version2;
|
|
this.Version3 = version3;
|
|
|
|
this.Size = size;
|
|
this.Filename = filename;
|
|
this.MD5 = md5;
|
|
this.Period = period;
|
|
this.MaxReSendTimes = maxReSendTimes;
|
|
|
|
this.FrameTypeNo = 45;
|
|
//this.SetReason(3);
|
|
this.MsgBodyCount = 1;
|
|
//this.RecordType = 33;
|
|
}
|
|
|
|
|
|
}
|
|
} |