@@ -26,7 +26,7 @@ pub(super) struct StaticLedEffectInput {
26
26
pub duration : Option < i32 > ,
27
27
#[ graphql( description = "Name of the effect." ) ]
28
28
pub name : Option < String > ,
29
- #[ graphql( description = "Hue/color (min 0.0 , max 360.0 )" ) ]
29
+ #[ graphql( description = "Hue/color (min 0, max 360)" ) ]
30
30
pub hue : i32 ,
31
31
#[ graphql( description = "Saturation (min 0.0, max 1.0)" ) ]
32
32
pub saturation : f64 ,
@@ -44,7 +44,7 @@ pub(super) struct BreathingLedEffectInput {
44
44
pub duration : Option < i32 > ,
45
45
#[ graphql( description = "Name of the effect." ) ]
46
46
pub name : Option < String > ,
47
- #[ graphql( description = "Hue/color (min 0.0 , max 360.0 )" ) ]
47
+ #[ graphql( description = "Hue/color (min 0, max 360)" ) ]
48
48
pub hue : i32 ,
49
49
#[ graphql( description = "Saturation (min 0.0, max 1.0)" ) ]
50
50
pub saturation : f64 ,
@@ -88,7 +88,7 @@ pub(super) struct BlinkLedEffectInput {
88
88
pub duration : Option < i32 > ,
89
89
#[ graphql( description = "Name of the effect." ) ]
90
90
pub name : Option < String > ,
91
- #[ graphql( description = "Hue/color (min 0.0 , max 360.0 )" ) ]
91
+ #[ graphql( description = "Hue/color (min 0, max 360)" ) ]
92
92
pub hue : i32 ,
93
93
#[ graphql( description = "Saturation (min 0.0, max 1.0)" ) ]
94
94
pub saturation : f64 ,
@@ -101,14 +101,14 @@ pub(super) struct BlinkLedEffectInput {
101
101
#[ derive( GraphQLInputObject , Debug ) ]
102
102
pub ( super ) struct CandleLedEffectInput {
103
103
#[ graphql(
104
- description = "If specified, must not be empty, and applies the effect only on these controller addresses."
104
+ description = "If specified, must not be empty, and applies the effect only on these controller addresses."
105
105
) ]
106
106
pub controllers : Option < Vec < String > > ,
107
107
#[ graphql( description = "Duration of effect, in milliseconds, if specified." ) ]
108
108
pub duration : Option < i32 > ,
109
109
#[ graphql( description = "Name of the effect." ) ]
110
110
pub name : Option < String > ,
111
- #[ graphql( description = "Hue/color (min 0.0 , max 360.0 )" ) ]
111
+ #[ graphql( description = "Hue/color (min 0, max 360)" ) ]
112
112
pub hue : i32 ,
113
113
#[ graphql( description = "Saturation (min 0.0, max 1.0)" ) ]
114
114
pub saturation : f64 ,
@@ -122,6 +122,26 @@ pub(super) struct CandleLedEffectInput {
122
122
pub interval : Option < i32 > ,
123
123
}
124
124
125
+ #[ derive( GraphQLInputObject , Debug ) ]
126
+ pub ( super ) struct BounceLedEffectInput {
127
+ #[ graphql(
128
+ description = "If specified, must not be empty, and applies the effect only on these controller addresses."
129
+ ) ]
130
+ pub controllers : Option < Vec < String > > ,
131
+ #[ graphql( description = "Duration of effect, in milliseconds, if specified." ) ]
132
+ pub duration : Option < i32 > ,
133
+ #[ graphql( description = "Name of the effect." ) ]
134
+ pub name : Option < String > ,
135
+ #[ graphql( description = "Hue colors to bounce (each min 0, max 360)" ) ]
136
+ pub hues : Vec < i32 > ,
137
+ #[ graphql( description = "To Saturation (min 0.0, max 1.0)" ) ]
138
+ pub saturation : f64 ,
139
+ #[ graphql( description = "To value (min 0.0, max 1.0)" ) ]
140
+ pub value : f64 ,
141
+ #[ graphql( description = "Step ratio, percentage of change from one color to the other. (min 0.0=stay in from, max 1.0=stay in to)" ) ]
142
+ pub step : f64
143
+ }
144
+
125
145
#[ derive( GraphQLInputObject , Debug ) ]
126
146
pub ( super ) struct StaticRumbleEffectInput {
127
147
#[ graphql(
0 commit comments