@@ -144,6 +144,143 @@ await EncodeCredentialAsync(
144144 ) ;
145145 }
146146
147+ [ DataContract ( Name = "listRequest_request" ) ]
148+ public class ListRequest
149+ {
150+ [ JsonConstructorAttribute ]
151+ protected ListRequest ( ) { }
152+
153+ public ListRequest (
154+ string ? acsSystemId = default ,
155+ float ? limit = default ,
156+ List < string > ? acsSystemIds = default ,
157+ List < string > ? acsEncoderIds = default
158+ )
159+ {
160+ AcsSystemId = acsSystemId ;
161+ Limit = limit ;
162+ AcsSystemIds = acsSystemIds ;
163+ AcsEncoderIds = acsEncoderIds ;
164+ }
165+
166+ [ DataMember ( Name = "acs_system_id" , IsRequired = false , EmitDefaultValue = false ) ]
167+ public string ? AcsSystemId { get ; set ; }
168+
169+ [ DataMember ( Name = "limit" , IsRequired = false , EmitDefaultValue = false ) ]
170+ public float ? Limit { get ; set ; }
171+
172+ [ DataMember ( Name = "acs_system_ids" , IsRequired = false , EmitDefaultValue = false ) ]
173+ public List < string > ? AcsSystemIds { get ; set ; }
174+
175+ [ DataMember ( Name = "acs_encoder_ids" , IsRequired = false , EmitDefaultValue = false ) ]
176+ public List < string > ? AcsEncoderIds { get ; set ; }
177+
178+ public override string ToString ( )
179+ {
180+ JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
181+
182+ StringWriter stringWriter = new StringWriter (
183+ new StringBuilder ( 256 ) ,
184+ System . Globalization . CultureInfo . InvariantCulture
185+ ) ;
186+ using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
187+ {
188+ jsonTextWriter . IndentChar = ' ' ;
189+ jsonTextWriter . Indentation = 2 ;
190+ jsonTextWriter . Formatting = Formatting . Indented ;
191+ jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
192+ }
193+
194+ return stringWriter . ToString ( ) ;
195+ }
196+ }
197+
198+ [ DataContract ( Name = "listResponse_response" ) ]
199+ public class ListResponse
200+ {
201+ [ JsonConstructorAttribute ]
202+ protected ListResponse ( ) { }
203+
204+ public ListResponse ( List < AcsEncoder > acsEncoders = default )
205+ {
206+ AcsEncoders = acsEncoders ;
207+ }
208+
209+ [ DataMember ( Name = "acs_encoders" , IsRequired = false , EmitDefaultValue = false ) ]
210+ public List < AcsEncoder > AcsEncoders { get ; set ; }
211+
212+ public override string ToString ( )
213+ {
214+ JsonSerializer jsonSerializer = JsonSerializer . CreateDefault ( null ) ;
215+
216+ StringWriter stringWriter = new StringWriter (
217+ new StringBuilder ( 256 ) ,
218+ System . Globalization . CultureInfo . InvariantCulture
219+ ) ;
220+ using ( JsonTextWriter jsonTextWriter = new JsonTextWriter ( stringWriter ) )
221+ {
222+ jsonTextWriter . IndentChar = ' ' ;
223+ jsonTextWriter . Indentation = 2 ;
224+ jsonTextWriter . Formatting = Formatting . Indented ;
225+ jsonSerializer . Serialize ( jsonTextWriter , this , null ) ;
226+ }
227+
228+ return stringWriter . ToString ( ) ;
229+ }
230+ }
231+
232+ public List < AcsEncoder > List ( ListRequest request )
233+ {
234+ var requestOptions = new RequestOptions ( ) ;
235+ requestOptions . Data = request ;
236+ return _seam . Post < ListResponse > ( "/acs/encoders/list" , requestOptions ) . Data . AcsEncoders ;
237+ }
238+
239+ public List < AcsEncoder > List (
240+ string ? acsSystemId = default ,
241+ float ? limit = default ,
242+ List < string > ? acsSystemIds = default ,
243+ List < string > ? acsEncoderIds = default
244+ )
245+ {
246+ return List (
247+ new ListRequest (
248+ acsSystemId : acsSystemId ,
249+ limit : limit ,
250+ acsSystemIds : acsSystemIds ,
251+ acsEncoderIds : acsEncoderIds
252+ )
253+ ) ;
254+ }
255+
256+ public async Task < List < AcsEncoder > > ListAsync ( ListRequest request )
257+ {
258+ var requestOptions = new RequestOptions ( ) ;
259+ requestOptions . Data = request ;
260+ return ( await _seam . PostAsync < ListResponse > ( "/acs/encoders/list" , requestOptions ) )
261+ . Data
262+ . AcsEncoders ;
263+ }
264+
265+ public async Task < List < AcsEncoder > > ListAsync (
266+ string ? acsSystemId = default ,
267+ float ? limit = default ,
268+ List < string > ? acsSystemIds = default ,
269+ List < string > ? acsEncoderIds = default
270+ )
271+ {
272+ return (
273+ await ListAsync (
274+ new ListRequest (
275+ acsSystemId : acsSystemId ,
276+ limit : limit ,
277+ acsSystemIds : acsSystemIds ,
278+ acsEncoderIds : acsEncoderIds
279+ )
280+ )
281+ ) ;
282+ }
283+
147284 [ DataContract ( Name = "scanCredentialRequest_request" ) ]
148285 public class ScanCredentialRequest
149286 {
0 commit comments