Exemplo n.º 1
0
 /// <inheritdoc/>
 protected override bool EqualsIntl(IStatusChannel data)
 {
     return(data is StatusChannel2 other &&
            this.PrimaryGNSSReceiverCharacters == other.PrimaryGNSSReceiverCharacters &&
            this.PrimaryGNSSReceiverPackets == other.PrimaryGNSSReceiverPackets &&
            this.PrimaryGNSSReceiverCharactersNotUnderstood == other.PrimaryGNSSReceiverCharactersNotUnderstood &&
            this.PrimaryGNSSReceiverPacketsNotUsed == other.PrimaryGNSSReceiverPacketsNotUsed);
 }
Exemplo n.º 2
0
 /// <inheritdoc/>
 protected override bool EqualsIntl(IStatusChannel data)
 {
     return(data is StatusChannel0 other &&
            this.FullTime == other.FullTime &&
            this.NumberOfSatellites == other.NumberOfSatellites &&
            this.PositionMode == other.PositionMode &&
            this.VelocityMode == other.VelocityMode &&
            this.OrientationMode == other.OrientationMode);
 }
Exemplo n.º 3
0
 /// <summary>
 /// A pure implementation of value equality that avoids the routine checks in
 /// <see cref="Equals(object)"/> and <see cref="Equals(IStatusChannel)"/>.
 /// To override the default equals method, override this method instead.
 /// </summary>
 /// <param name="pkt"></param>
 /// <returns>
 /// <see langword="true"/> if the specified object is equal to this current object; otherwise
 /// <see langword="false"/>.
 /// </returns>
 protected abstract bool EqualsIntl(IStatusChannel pkt);
Exemplo n.º 4
0
 /// <inheritdoc/>
 public bool Equals(IStatusChannel rhs)
 {
     return(rhs != null &&
            this.StatusChannelByte == rhs.StatusChannelByte &&
            EqualsIntl(rhs));
 }
Exemplo n.º 5
0
 public static void Unmarshal(this IStatusChannel statusChannel, byte[] buffer, ref int offset)
 {
     statusChannel.Unmarshal(buffer, offset);
     offset += NcomPacketA.StatusChannelLength;
 }