Ejemplo n.º 1
0
 public ListScenes(ILifxIdentity identity)
     : base(identity, "scenes")
 {
 }
Ejemplo n.º 2
0
 public ActivateScene(ILifxIdentity identity)
     : base(identity, "scenes/{0}/activate", HttpMethod.Put)
 {
 }
Ejemplo n.º 3
0
 public SetState(ILifxIdentity identity)
     : base(identity, "lights/{0}/state", HttpMethod.Put)
 {
 }
Ejemplo n.º 4
0
 protected ApiMethod(ILifxIdentity identity, string resource, HttpMethod method)
 {
     this.Identity = identity;
     this.Resource = resource;
     this.Method   = method;
 }
Ejemplo n.º 5
0
 public ValidateColor(ILifxIdentity identity)
     : base(identity, "color?string={0}")
 {
 }
Ejemplo n.º 6
0
 public TogglePower(ILifxIdentity identity)
     : base(identity, "lights/{0}/toggle", HttpMethod.Post)
 {
 }
Ejemplo n.º 7
0
 public ListLights(ILifxIdentity identity)
     : base(identity, "lights/{0}")
 {
 }
Ejemplo n.º 8
0
 public Cycle(ILifxIdentity identity)
     : base(identity, "lights/{0}/cycle", HttpMethod.Post)
 {
 }
Ejemplo n.º 9
0
		protected ApiMethod(ILifxIdentity identity, string resource, HttpMethod method)
		{
			this.Identity = identity;
			this.Resource = resource;
			this.Method = method;
		}