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