增加RCU上离线功能,能耗双通道

This commit is contained in:
2026-01-15 17:32:26 +08:00
parent b746a1da1a
commit 10bf712006
148 changed files with 8075 additions and 290 deletions

View File

@@ -29,20 +29,24 @@ namespace BLWData.Entity {
"KAkSDwoHQWRkcmVzcxgDIAEoCRIOCgZTdGF0dXMYBCABKAUSEgoKQnJpZ2h0",
"bmVzcxgFIAEoBRITCgtDdXJyZW50VGVtcBgGIAEoBRITCgtTZXR0aW5nVGVt",
"cBgHIAEoBRIQCghGYW5TcGVlZBgIIAEoBRIMCgRNb2RlGAkgASgFEg0KBVZh",
"bHZlGAogASgFIuICChFFbmVyZ3lDb25zdW1wdGlvbhIRCglIb3RlbENvZGUY",
"ASABKAMSEgoKSG9zdE51bWJlchgCIAEoCRILCgNNYWMYAyABKAkSEAoIRW5k",
"UG9pbnQYBCABKAkSDwoHVmVyc2lvbhgFIAEoCRISCgpJc1Rha2VDYXJkGAYg",
"ASgIEgkKAVYYByABKAESCQoBQRgIIAEoARIJCgFQGAkgASgBEhoKEkVuZXJn",
"eV9Db25zdW1wdGlvbhgKIAEoARIeChZTdW1fRW5lcmd5X0NvbnN1bXB0aW9u",
"GAsgASgBEhIKCkNyZWF0ZVRpbWUYDCABKAMSEgoKUm9vbU51bWJlchgNIAEo",
"CRIRCglDYXJib25WSVAYDiABKAUSFAoMSWRlbnRpdHlJbmZvGA8gASgFEjQK",
"EERldmljZVN0YXR1c0xpc3QYECADKAsyGi5CTFdEYXRhLkVudGl0eS5EZXZp",
"Y2VEYXRhYgZwcm90bzM="));
"bHZlGAogASgFIoABChZTaW5nbGVQb3dlckNoYW5uZWxEYXRhEg8KB2FkZHJl",
"c3MYASABKAkSDgoGZGlhbnlhGAIgASgBEg8KB2RpYW5saXUYAyABKAESDgoG",
"Z29uZ2x2GAQgASgBEg8KB25lbmdoYW8YBSABKAESEwoLem9uZ25lbmdoYW8Y",
"BiABKAEihAMKEUVuZXJneUNvbnN1bXB0aW9uEhEKCUhvdGVsQ29kZRgBIAEo",
"AxISCgpIb3N0TnVtYmVyGAIgASgJEgsKA01hYxgDIAEoCRIQCghFbmRQb2lu",
"dBgEIAEoCRIPCgdWZXJzaW9uGAUgASgJEhIKCklzVGFrZUNhcmQYBiABKAgS",
"QAoQUG93ZXJDaGFubmVsTGlzdBgHIAMoCzImLkJMV0RhdGEuRW50aXR5LlNp",
"bmdsZVBvd2VyQ2hhbm5lbERhdGESEgoKQ3JlYXRlVGltZRgIIAEoAxISCgpS",
"b29tTnVtYmVyGAkgASgJEhEKCUNhcmJvblZJUBgKIAEoBRIUCgxJZGVudGl0",
"eUluZm8YCyABKAUSNAoQRGV2aWNlU3RhdHVzTGlzdBgMIAMoCzIaLkJMV0Rh",
"dGEuRW50aXR5LkRldmljZURhdGESEQoJQ2FyZEV2ZW50GA0gASgFEhQKDElz",
"SW5zZXJ0Q2FyZBgOIAEoBRISCgpQTVNfU3RhdHVzGA8gASgJYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.DeviceData), global::BLWData.Entity.DeviceData.Parser, new[]{ "HostID", "DeviceType", "Address", "Status", "Brightness", "CurrentTemp", "SettingTemp", "FanSpeed", "Mode", "Valve" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.EnergyConsumption), global::BLWData.Entity.EnergyConsumption.Parser, new[]{ "HotelCode", "HostNumber", "Mac", "EndPoint", "Version", "IsTakeCard", "V", "A", "P", "EnergyConsumption_", "SumEnergyConsumption", "CreateTime", "RoomNumber", "CarbonVIP", "IdentityInfo", "DeviceStatusList" }, null, null, null, null)
new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.SinglePowerChannelData), global::BLWData.Entity.SinglePowerChannelData.Parser, new[]{ "Address", "Dianya", "Dianliu", "Gonglv", "Nenghao", "Zongnenghao" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::BLWData.Entity.EnergyConsumption), global::BLWData.Entity.EnergyConsumption.Parser, new[]{ "HotelCode", "HostNumber", "Mac", "EndPoint", "Version", "IsTakeCard", "PowerChannelList", "CreateTime", "RoomNumber", "CarbonVIP", "IdentityInfo", "DeviceStatusList", "CardEvent", "IsInsertCard", "PMSStatus" }, null, null, null, null)
}));
}
#endregion
@@ -580,6 +584,392 @@ namespace BLWData.Entity {
}
/// <summary>
///定义单个电力通道数据
/// </summary>
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
public sealed partial class SinglePowerChannelData : pb::IMessage<SinglePowerChannelData>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<SinglePowerChannelData> _parser = new pb::MessageParser<SinglePowerChannelData>(() => new SinglePowerChannelData());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<SinglePowerChannelData> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SinglePowerChannelData() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SinglePowerChannelData(SinglePowerChannelData other) : this() {
address_ = other.address_;
dianya_ = other.dianya_;
dianliu_ = other.dianliu_;
gonglv_ = other.gonglv_;
nenghao_ = other.nenghao_;
zongnenghao_ = other.zongnenghao_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SinglePowerChannelData Clone() {
return new SinglePowerChannelData(this);
}
/// <summary>Field number for the "address" field.</summary>
public const int AddressFieldNumber = 1;
private string address_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Address {
get { return address_; }
set {
address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "dianya" field.</summary>
public const int DianyaFieldNumber = 2;
private double dianya_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Dianya {
get { return dianya_; }
set {
dianya_ = value;
}
}
/// <summary>Field number for the "dianliu" field.</summary>
public const int DianliuFieldNumber = 3;
private double dianliu_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Dianliu {
get { return dianliu_; }
set {
dianliu_ = value;
}
}
/// <summary>Field number for the "gonglv" field.</summary>
public const int GonglvFieldNumber = 4;
private double gonglv_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Gonglv {
get { return gonglv_; }
set {
gonglv_ = value;
}
}
/// <summary>Field number for the "nenghao" field.</summary>
public const int NenghaoFieldNumber = 5;
private double nenghao_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Nenghao {
get { return nenghao_; }
set {
nenghao_ = value;
}
}
/// <summary>Field number for the "zongnenghao" field.</summary>
public const int ZongnenghaoFieldNumber = 6;
private double zongnenghao_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Zongnenghao {
get { return zongnenghao_; }
set {
zongnenghao_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SinglePowerChannelData);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SinglePowerChannelData other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Address != other.Address) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Dianya, other.Dianya)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Dianliu, other.Dianliu)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Gonglv, other.Gonglv)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Nenghao, other.Nenghao)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Zongnenghao, other.Zongnenghao)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Address.Length != 0) hash ^= Address.GetHashCode();
if (Dianya != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Dianya);
if (Dianliu != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Dianliu);
if (Gonglv != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Gonglv);
if (Nenghao != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Nenghao);
if (Zongnenghao != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Zongnenghao);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Address.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Address);
}
if (Dianya != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Dianya);
}
if (Dianliu != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Dianliu);
}
if (Gonglv != 0D) {
output.WriteRawTag(33);
output.WriteDouble(Gonglv);
}
if (Nenghao != 0D) {
output.WriteRawTag(41);
output.WriteDouble(Nenghao);
}
if (Zongnenghao != 0D) {
output.WriteRawTag(49);
output.WriteDouble(Zongnenghao);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Address.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Address);
}
if (Dianya != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Dianya);
}
if (Dianliu != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Dianliu);
}
if (Gonglv != 0D) {
output.WriteRawTag(33);
output.WriteDouble(Gonglv);
}
if (Nenghao != 0D) {
output.WriteRawTag(41);
output.WriteDouble(Nenghao);
}
if (Zongnenghao != 0D) {
output.WriteRawTag(49);
output.WriteDouble(Zongnenghao);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Address.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
}
if (Dianya != 0D) {
size += 1 + 8;
}
if (Dianliu != 0D) {
size += 1 + 8;
}
if (Gonglv != 0D) {
size += 1 + 8;
}
if (Nenghao != 0D) {
size += 1 + 8;
}
if (Zongnenghao != 0D) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SinglePowerChannelData other) {
if (other == null) {
return;
}
if (other.Address.Length != 0) {
Address = other.Address;
}
if (other.Dianya != 0D) {
Dianya = other.Dianya;
}
if (other.Dianliu != 0D) {
Dianliu = other.Dianliu;
}
if (other.Gonglv != 0D) {
Gonglv = other.Gonglv;
}
if (other.Nenghao != 0D) {
Nenghao = other.Nenghao;
}
if (other.Zongnenghao != 0D) {
Zongnenghao = other.Zongnenghao;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Address = input.ReadString();
break;
}
case 17: {
Dianya = input.ReadDouble();
break;
}
case 25: {
Dianliu = input.ReadDouble();
break;
}
case 33: {
Gonglv = input.ReadDouble();
break;
}
case 41: {
Nenghao = input.ReadDouble();
break;
}
case 49: {
Zongnenghao = input.ReadDouble();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
if ((tag & 7) == 4) {
// Abort on any end group tag.
return;
}
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Address = input.ReadString();
break;
}
case 17: {
Dianya = input.ReadDouble();
break;
}
case 25: {
Dianliu = input.ReadDouble();
break;
}
case 33: {
Gonglv = input.ReadDouble();
break;
}
case 41: {
Nenghao = input.ReadDouble();
break;
}
case 49: {
Zongnenghao = input.ReadDouble();
break;
}
}
}
}
#endif
}
/// <summary>
/// 定义一个Person消息类型
/// </summary>
@@ -598,7 +988,7 @@ namespace BLWData.Entity {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[1]; }
get { return global::BLWData.Entity.EnergyConsumptionReflection.Descriptor.MessageTypes[2]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -624,16 +1014,15 @@ namespace BLWData.Entity {
endPoint_ = other.endPoint_;
version_ = other.version_;
isTakeCard_ = other.isTakeCard_;
v_ = other.v_;
a_ = other.a_;
p_ = other.p_;
energyConsumption_ = other.energyConsumption_;
sumEnergyConsumption_ = other.sumEnergyConsumption_;
powerChannelList_ = other.powerChannelList_.Clone();
createTime_ = other.createTime_;
roomNumber_ = other.roomNumber_;
carbonVIP_ = other.carbonVIP_;
identityInfo_ = other.identityInfo_;
deviceStatusList_ = other.deviceStatusList_.Clone();
cardEvent_ = other.cardEvent_;
isInsertCard_ = other.isInsertCard_;
pMSStatus_ = other.pMSStatus_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -715,68 +1104,19 @@ namespace BLWData.Entity {
}
}
/// <summary>Field number for the "V" field.</summary>
public const int VFieldNumber = 7;
private double v_;
/// <summary>Field number for the "PowerChannelList" field.</summary>
public const int PowerChannelListFieldNumber = 7;
private static readonly pb::FieldCodec<global::BLWData.Entity.SinglePowerChannelData> _repeated_powerChannelList_codec
= pb::FieldCodec.ForMessage(58, global::BLWData.Entity.SinglePowerChannelData.Parser);
private readonly pbc::RepeatedField<global::BLWData.Entity.SinglePowerChannelData> powerChannelList_ = new pbc::RepeatedField<global::BLWData.Entity.SinglePowerChannelData>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double V {
get { return v_; }
set {
v_ = value;
}
}
/// <summary>Field number for the "A" field.</summary>
public const int AFieldNumber = 8;
private double a_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double A {
get { return a_; }
set {
a_ = value;
}
}
/// <summary>Field number for the "P" field.</summary>
public const int PFieldNumber = 9;
private double p_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double P {
get { return p_; }
set {
p_ = value;
}
}
/// <summary>Field number for the "Energy_Consumption" field.</summary>
public const int EnergyConsumption_FieldNumber = 10;
private double energyConsumption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double EnergyConsumption_ {
get { return energyConsumption_; }
set {
energyConsumption_ = value;
}
}
/// <summary>Field number for the "Sum_Energy_Consumption" field.</summary>
public const int SumEnergyConsumptionFieldNumber = 11;
private double sumEnergyConsumption_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double SumEnergyConsumption {
get { return sumEnergyConsumption_; }
set {
sumEnergyConsumption_ = value;
}
public pbc::RepeatedField<global::BLWData.Entity.SinglePowerChannelData> PowerChannelList {
get { return powerChannelList_; }
}
/// <summary>Field number for the "CreateTime" field.</summary>
public const int CreateTimeFieldNumber = 12;
public const int CreateTimeFieldNumber = 8;
private long createTime_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -788,7 +1128,7 @@ namespace BLWData.Entity {
}
/// <summary>Field number for the "RoomNumber" field.</summary>
public const int RoomNumberFieldNumber = 13;
public const int RoomNumberFieldNumber = 9;
private string roomNumber_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -800,7 +1140,7 @@ namespace BLWData.Entity {
}
/// <summary>Field number for the "CarbonVIP" field.</summary>
public const int CarbonVIPFieldNumber = 14;
public const int CarbonVIPFieldNumber = 10;
private int carbonVIP_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -812,7 +1152,7 @@ namespace BLWData.Entity {
}
/// <summary>Field number for the "IdentityInfo" field.</summary>
public const int IdentityInfoFieldNumber = 15;
public const int IdentityInfoFieldNumber = 11;
private int identityInfo_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -824,9 +1164,9 @@ namespace BLWData.Entity {
}
/// <summary>Field number for the "DeviceStatusList" field.</summary>
public const int DeviceStatusListFieldNumber = 16;
public const int DeviceStatusListFieldNumber = 12;
private static readonly pb::FieldCodec<global::BLWData.Entity.DeviceData> _repeated_deviceStatusList_codec
= pb::FieldCodec.ForMessage(130, global::BLWData.Entity.DeviceData.Parser);
= pb::FieldCodec.ForMessage(98, global::BLWData.Entity.DeviceData.Parser);
private readonly pbc::RepeatedField<global::BLWData.Entity.DeviceData> deviceStatusList_ = new pbc::RepeatedField<global::BLWData.Entity.DeviceData>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -834,6 +1174,42 @@ namespace BLWData.Entity {
get { return deviceStatusList_; }
}
/// <summary>Field number for the "CardEvent" field.</summary>
public const int CardEventFieldNumber = 13;
private int cardEvent_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CardEvent {
get { return cardEvent_; }
set {
cardEvent_ = value;
}
}
/// <summary>Field number for the "IsInsertCard" field.</summary>
public const int IsInsertCardFieldNumber = 14;
private int isInsertCard_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int IsInsertCard {
get { return isInsertCard_; }
set {
isInsertCard_ = value;
}
}
/// <summary>Field number for the "PMS_Status" field.</summary>
public const int PMSStatusFieldNumber = 15;
private string pMSStatus_ = "";
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PMSStatus {
get { return pMSStatus_; }
set {
pMSStatus_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -855,16 +1231,15 @@ namespace BLWData.Entity {
if (EndPoint != other.EndPoint) return false;
if (Version != other.Version) return false;
if (IsTakeCard != other.IsTakeCard) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(V, other.V)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(A, other.A)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(P, other.P)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EnergyConsumption_, other.EnergyConsumption_)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SumEnergyConsumption, other.SumEnergyConsumption)) return false;
if(!powerChannelList_.Equals(other.powerChannelList_)) return false;
if (CreateTime != other.CreateTime) return false;
if (RoomNumber != other.RoomNumber) return false;
if (CarbonVIP != other.CarbonVIP) return false;
if (IdentityInfo != other.IdentityInfo) return false;
if(!deviceStatusList_.Equals(other.deviceStatusList_)) return false;
if (CardEvent != other.CardEvent) return false;
if (IsInsertCard != other.IsInsertCard) return false;
if (PMSStatus != other.PMSStatus) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -878,16 +1253,15 @@ namespace BLWData.Entity {
if (EndPoint.Length != 0) hash ^= EndPoint.GetHashCode();
if (Version.Length != 0) hash ^= Version.GetHashCode();
if (IsTakeCard != false) hash ^= IsTakeCard.GetHashCode();
if (V != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(V);
if (A != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(A);
if (P != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(P);
if (EnergyConsumption_ != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EnergyConsumption_);
if (SumEnergyConsumption != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SumEnergyConsumption);
hash ^= powerChannelList_.GetHashCode();
if (CreateTime != 0L) hash ^= CreateTime.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (CarbonVIP != 0) hash ^= CarbonVIP.GetHashCode();
if (IdentityInfo != 0) hash ^= IdentityInfo.GetHashCode();
hash ^= deviceStatusList_.GetHashCode();
if (CardEvent != 0) hash ^= CardEvent.GetHashCode();
if (IsInsertCard != 0) hash ^= IsInsertCard.GetHashCode();
if (PMSStatus.Length != 0) hash ^= PMSStatus.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -930,43 +1304,36 @@ namespace BLWData.Entity {
output.WriteRawTag(48);
output.WriteBool(IsTakeCard);
}
if (V != 0D) {
output.WriteRawTag(57);
output.WriteDouble(V);
}
if (A != 0D) {
output.WriteRawTag(65);
output.WriteDouble(A);
}
if (P != 0D) {
output.WriteRawTag(73);
output.WriteDouble(P);
}
if (EnergyConsumption_ != 0D) {
output.WriteRawTag(81);
output.WriteDouble(EnergyConsumption_);
}
if (SumEnergyConsumption != 0D) {
output.WriteRawTag(89);
output.WriteDouble(SumEnergyConsumption);
}
powerChannelList_.WriteTo(output, _repeated_powerChannelList_codec);
if (CreateTime != 0L) {
output.WriteRawTag(96);
output.WriteRawTag(64);
output.WriteInt64(CreateTime);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(106);
output.WriteRawTag(74);
output.WriteString(RoomNumber);
}
if (CarbonVIP != 0) {
output.WriteRawTag(112);
output.WriteRawTag(80);
output.WriteInt32(CarbonVIP);
}
if (IdentityInfo != 0) {
output.WriteRawTag(120);
output.WriteRawTag(88);
output.WriteInt32(IdentityInfo);
}
deviceStatusList_.WriteTo(output, _repeated_deviceStatusList_codec);
if (CardEvent != 0) {
output.WriteRawTag(104);
output.WriteInt32(CardEvent);
}
if (IsInsertCard != 0) {
output.WriteRawTag(112);
output.WriteInt32(IsInsertCard);
}
if (PMSStatus.Length != 0) {
output.WriteRawTag(122);
output.WriteString(PMSStatus);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -1001,43 +1368,36 @@ namespace BLWData.Entity {
output.WriteRawTag(48);
output.WriteBool(IsTakeCard);
}
if (V != 0D) {
output.WriteRawTag(57);
output.WriteDouble(V);
}
if (A != 0D) {
output.WriteRawTag(65);
output.WriteDouble(A);
}
if (P != 0D) {
output.WriteRawTag(73);
output.WriteDouble(P);
}
if (EnergyConsumption_ != 0D) {
output.WriteRawTag(81);
output.WriteDouble(EnergyConsumption_);
}
if (SumEnergyConsumption != 0D) {
output.WriteRawTag(89);
output.WriteDouble(SumEnergyConsumption);
}
powerChannelList_.WriteTo(ref output, _repeated_powerChannelList_codec);
if (CreateTime != 0L) {
output.WriteRawTag(96);
output.WriteRawTag(64);
output.WriteInt64(CreateTime);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(106);
output.WriteRawTag(74);
output.WriteString(RoomNumber);
}
if (CarbonVIP != 0) {
output.WriteRawTag(112);
output.WriteRawTag(80);
output.WriteInt32(CarbonVIP);
}
if (IdentityInfo != 0) {
output.WriteRawTag(120);
output.WriteRawTag(88);
output.WriteInt32(IdentityInfo);
}
deviceStatusList_.WriteTo(ref output, _repeated_deviceStatusList_codec);
if (CardEvent != 0) {
output.WriteRawTag(104);
output.WriteInt32(CardEvent);
}
if (IsInsertCard != 0) {
output.WriteRawTag(112);
output.WriteInt32(IsInsertCard);
}
if (PMSStatus.Length != 0) {
output.WriteRawTag(122);
output.WriteString(PMSStatus);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -1066,21 +1426,7 @@ namespace BLWData.Entity {
if (IsTakeCard != false) {
size += 1 + 1;
}
if (V != 0D) {
size += 1 + 8;
}
if (A != 0D) {
size += 1 + 8;
}
if (P != 0D) {
size += 1 + 8;
}
if (EnergyConsumption_ != 0D) {
size += 1 + 8;
}
if (SumEnergyConsumption != 0D) {
size += 1 + 8;
}
size += powerChannelList_.CalculateSize(_repeated_powerChannelList_codec);
if (CreateTime != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(CreateTime);
}
@@ -1094,6 +1440,15 @@ namespace BLWData.Entity {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IdentityInfo);
}
size += deviceStatusList_.CalculateSize(_repeated_deviceStatusList_codec);
if (CardEvent != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CardEvent);
}
if (IsInsertCard != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(IsInsertCard);
}
if (PMSStatus.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(PMSStatus);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -1124,21 +1479,7 @@ namespace BLWData.Entity {
if (other.IsTakeCard != false) {
IsTakeCard = other.IsTakeCard;
}
if (other.V != 0D) {
V = other.V;
}
if (other.A != 0D) {
A = other.A;
}
if (other.P != 0D) {
P = other.P;
}
if (other.EnergyConsumption_ != 0D) {
EnergyConsumption_ = other.EnergyConsumption_;
}
if (other.SumEnergyConsumption != 0D) {
SumEnergyConsumption = other.SumEnergyConsumption;
}
powerChannelList_.Add(other.powerChannelList_);
if (other.CreateTime != 0L) {
CreateTime = other.CreateTime;
}
@@ -1152,6 +1493,15 @@ namespace BLWData.Entity {
IdentityInfo = other.IdentityInfo;
}
deviceStatusList_.Add(other.deviceStatusList_);
if (other.CardEvent != 0) {
CardEvent = other.CardEvent;
}
if (other.IsInsertCard != 0) {
IsInsertCard = other.IsInsertCard;
}
if (other.PMSStatus.Length != 0) {
PMSStatus = other.PMSStatus;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -1195,46 +1545,42 @@ namespace BLWData.Entity {
IsTakeCard = input.ReadBool();
break;
}
case 57: {
V = input.ReadDouble();
case 58: {
powerChannelList_.AddEntriesFrom(input, _repeated_powerChannelList_codec);
break;
}
case 65: {
A = input.ReadDouble();
break;
}
case 73: {
P = input.ReadDouble();
break;
}
case 81: {
EnergyConsumption_ = input.ReadDouble();
break;
}
case 89: {
SumEnergyConsumption = input.ReadDouble();
break;
}
case 96: {
case 64: {
CreateTime = input.ReadInt64();
break;
}
case 106: {
case 74: {
RoomNumber = input.ReadString();
break;
}
case 112: {
case 80: {
CarbonVIP = input.ReadInt32();
break;
}
case 120: {
case 88: {
IdentityInfo = input.ReadInt32();
break;
}
case 130: {
case 98: {
deviceStatusList_.AddEntriesFrom(input, _repeated_deviceStatusList_codec);
break;
}
case 104: {
CardEvent = input.ReadInt32();
break;
}
case 112: {
IsInsertCard = input.ReadInt32();
break;
}
case 122: {
PMSStatus = input.ReadString();
break;
}
}
}
#endif
@@ -1278,46 +1624,42 @@ namespace BLWData.Entity {
IsTakeCard = input.ReadBool();
break;
}
case 57: {
V = input.ReadDouble();
case 58: {
powerChannelList_.AddEntriesFrom(ref input, _repeated_powerChannelList_codec);
break;
}
case 65: {
A = input.ReadDouble();
break;
}
case 73: {
P = input.ReadDouble();
break;
}
case 81: {
EnergyConsumption_ = input.ReadDouble();
break;
}
case 89: {
SumEnergyConsumption = input.ReadDouble();
break;
}
case 96: {
case 64: {
CreateTime = input.ReadInt64();
break;
}
case 106: {
case 74: {
RoomNumber = input.ReadString();
break;
}
case 112: {
case 80: {
CarbonVIP = input.ReadInt32();
break;
}
case 120: {
case 88: {
IdentityInfo = input.ReadInt32();
break;
}
case 130: {
case 98: {
deviceStatusList_.AddEntriesFrom(ref input, _repeated_deviceStatusList_codec);
break;
}
case 104: {
CardEvent = input.ReadInt32();
break;
}
case 112: {
IsInsertCard = input.ReadInt32();
break;
}
case 122: {
PMSStatus = input.ReadString();
break;
}
}
}
}