Exemple #1
0
        public static AuctionEvent From(string message)
        {
            if (!message.Contains(":") || !message.Contains(";"))
            {
                return(new AuctionEvent(AuctionEventType.Unknown, new Dictionary <string, string>()));
            }

            Dictionary <string, string> fields    = GetFields(message);
            AuctionEventType            eventType = GetEventType(fields);

            return(new AuctionEvent(eventType, fields));
        }
Exemple #2
0
 private AuctionEvent(AuctionEventType type, Dictionary <string, string> fields)
 {
     Type    = type;
     _fields = fields;
 }