Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
- using DotNetty.Transport.Channels;
- using JT808.DotNetty.Metadata;
- using System;
- using System.Collections.Generic;
- using System.Text;
-
- namespace JT808.DotNetty.Test
- {
- public class JT808DefaultChannelId : IChannelId
- {
- private static readonly JT808AtomicCounter jT808AtomicCounter = new JT808AtomicCounter();
-
- private string Id {
- get
- {
- return Guid.NewGuid().ToString("N");
- }
- }
-
- public string AsLongText()
- {
- return Id;
- }
-
- public string AsShortText()
- {
- return Id;
- }
-
- public int CompareTo(IChannelId other)
- {
- if(other.AsShortText()== Id)
- {
- return 1;
- }
- return 0;
- }
- }
- }
|