예제 #1
0
 public Endpoint(string _id, string _name, string _desc, EPLevel _level, int _vol)
 {
     id    = _id;
     name  = _name;
     desc  = _desc;
     level = _level;
     vol   = _vol;
 }
예제 #2
0
            public Endpoint(string str)
            {
                var s = str.Split(':');

                if (s.Length != 5)
                {
                    throw new ArgumentException();
                }

                id    = s[0];
                name  = s[1];
                desc  = s[2];
                level = (EPLevel)int.Parse(s[3]);
                vol   = int.Parse(s[4]);
            }