public AbstractThingsFactory GetFactory(ThingsType thingsType)
        {
            switch (thingsType)
            {
            case ThingsType.Metal:
                return(new MetalFactory());

            case ThingsType.NonMetal:
                return(new NonMetalFactory());
            }
            throw new Exception("invalid thing type");
        }
Beispiel #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="deviceId">Device ID of the LINE Things-compatible device that was linked with LINE</param>
 /// <param name="type">Link or Unlink</param>
 public Things(string deviceId, ThingsType type)
 {
     DeviceId = deviceId;
     Type     = type;
 }