22
33declare (strict_types=1 );
44
5- namespace Flexolabs \RedditClient \Api ;
5+ namespace Sigwin \RedditClient \Api ;
66
7- use Flexolabs \RedditClient \ApiException ;
8- use Flexolabs \RedditClient \Configuration ;
9- use Flexolabs \RedditClient \HeaderSelector ;
10- use Flexolabs \RedditClient \ObjectSerializer ;
117use GuzzleHttp \Client ;
128use GuzzleHttp \ClientInterface ;
139use GuzzleHttp \Exception \RequestException ;
1410use GuzzleHttp \Psr7 \MultipartStream ;
1511use GuzzleHttp \Psr7 \Request ;
1612use GuzzleHttp \RequestOptions ;
13+ use Sigwin \RedditClient \ApiException ;
14+ use Sigwin \RedditClient \Configuration ;
15+ use Sigwin \RedditClient \HeaderSelector ;
16+ use Sigwin \RedditClient \ObjectSerializer ;
1717
1818/**
1919 * UserApi Class Doc Comment.
@@ -99,10 +99,10 @@ public function getConfig(): Configuration
9999 * @param string $before before (optional)
100100 * @param int $limit limit (optional, default to 25)
101101 *
102- * @throws \Flexolabs \RedditClient\ApiException on non-2xx response
102+ * @throws \Sigwin \RedditClient\ApiException on non-2xx response
103103 * @throws \InvalidArgumentException
104104 */
105- public function getSaved ($ username , $ after = null , $ before = null , $ limit = 25 ): \Flexolabs \RedditClient \Model \ListingEnvelope
105+ public function getSaved ($ username , $ after = null , $ before = null , $ limit = 25 ): \Sigwin \RedditClient \Model \ListingEnvelope
106106 {
107107 list ($ response ) = $ this ->getSavedWithHttpInfo ($ username , $ after , $ before , $ limit );
108108
@@ -119,10 +119,10 @@ public function getSaved($username, $after = null, $before = null, $limit = 25):
119119 * @param string $before (optional)
120120 * @param int $limit (optional, default to 25)
121121 *
122- * @throws \Flexolabs \RedditClient\ApiException on non-2xx response
122+ * @throws \Sigwin \RedditClient\ApiException on non-2xx response
123123 * @throws \InvalidArgumentException
124124 *
125- * @return array of \Flexolabs \RedditClient\Model\ListingEnvelope, HTTP status code, HTTP response headers (array of strings)
125+ * @return array of \Sigwin \RedditClient\Model\ListingEnvelope, HTTP status code, HTTP response headers (array of strings)
126126 */
127127 public function getSavedWithHttpInfo ($ username , $ after = null , $ before = null , $ limit = 25 ): array
128128 {
@@ -145,20 +145,20 @@ public function getSavedWithHttpInfo($username, $after = null, $before = null, $
145145 $ responseBody = $ response ->getBody ();
146146 switch ($ statusCode ) {
147147 case 200 :
148- if ('\Flexolabs \RedditClient\Model\ListingEnvelope ' === '\SplFileObject ' ) {
148+ if ('\Sigwin \RedditClient\Model\ListingEnvelope ' === '\SplFileObject ' ) {
149149 $ content = $ responseBody ; //stream goes to serializer
150150 } else {
151151 $ content = (string ) $ responseBody ;
152152 }
153153
154154 return [
155- ObjectSerializer::deserialize ($ content , '\Flexolabs \RedditClient\Model\ListingEnvelope ' , []),
155+ ObjectSerializer::deserialize ($ content , '\Sigwin \RedditClient\Model\ListingEnvelope ' , []),
156156 $ response ->getStatusCode (),
157157 $ response ->getHeaders (),
158158 ];
159159 }
160160
161- $ returnType = '\Flexolabs \RedditClient\Model\ListingEnvelope ' ;
161+ $ returnType = '\Sigwin \RedditClient\Model\ListingEnvelope ' ;
162162 $ responseBody = $ response ->getBody ();
163163 if ($ returnType === '\SplFileObject ' ) {
164164 $ content = $ responseBody ; //stream goes to serializer
@@ -176,7 +176,7 @@ public function getSavedWithHttpInfo($username, $after = null, $before = null, $
176176 case 200 :
177177 $ data = ObjectSerializer::deserialize (
178178 $ e ->getResponseBody (),
179- '\Flexolabs \RedditClient\Model\ListingEnvelope ' ,
179+ '\Sigwin \RedditClient\Model\ListingEnvelope ' ,
180180 $ e ->getResponseHeaders ()
181181 );
182182 $ e ->setResponseObject ($ data );
@@ -222,7 +222,7 @@ static function ($response) {
222222 */
223223 public function getSavedAsyncWithHttpInfo ($ username , $ after = null , $ before = null , $ limit = 25 ): \GuzzleHttp \Promise \PromiseInterface
224224 {
225- $ returnType = '\Flexolabs \RedditClient\Model\ListingEnvelope ' ;
225+ $ returnType = '\Sigwin \RedditClient\Model\ListingEnvelope ' ;
226226 $ request = $ this ->getSavedRequest ($ username , $ after , $ before , $ limit );
227227
228228 return $ this ->client
@@ -379,10 +379,10 @@ public function getSavedRequest($username, $after = null, $before = null, $limit
379379 * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
380380 * URL: https://oauth.reddit.com/api/v1
381381 *
382- * @throws \Flexolabs \RedditClient\ApiException on non-2xx response
382+ * @throws \Sigwin \RedditClient\ApiException on non-2xx response
383383 * @throws \InvalidArgumentException
384384 */
385- public function me (): \Flexolabs \RedditClient \Model \Me
385+ public function me (): \Sigwin \RedditClient \Model \Me
386386 {
387387 list ($ response ) = $ this ->meWithHttpInfo ();
388388
@@ -397,10 +397,10 @@ public function me(): \Flexolabs\RedditClient\Model\Me
397397 * This oepration contains host(s) defined in the OpenAP spec. Use 'hostIndex' to select the host.
398398 * URL: https://oauth.reddit.com/api/v1
399399 *
400- * @throws \Flexolabs \RedditClient\ApiException on non-2xx response
400+ * @throws \Sigwin \RedditClient\ApiException on non-2xx response
401401 * @throws \InvalidArgumentException
402402 *
403- * @return array of \Flexolabs \RedditClient\Model\Me, HTTP status code, HTTP response headers (array of strings)
403+ * @return array of \Sigwin \RedditClient\Model\Me, HTTP status code, HTTP response headers (array of strings)
404404 */
405405 public function meWithHttpInfo (): array
406406 {
@@ -423,20 +423,20 @@ public function meWithHttpInfo(): array
423423 $ responseBody = $ response ->getBody ();
424424 switch ($ statusCode ) {
425425 case 200 :
426- if ('\Flexolabs \RedditClient\Model\Me ' === '\SplFileObject ' ) {
426+ if ('\Sigwin \RedditClient\Model\Me ' === '\SplFileObject ' ) {
427427 $ content = $ responseBody ; //stream goes to serializer
428428 } else {
429429 $ content = (string ) $ responseBody ;
430430 }
431431
432432 return [
433- ObjectSerializer::deserialize ($ content , '\Flexolabs \RedditClient\Model\Me ' , []),
433+ ObjectSerializer::deserialize ($ content , '\Sigwin \RedditClient\Model\Me ' , []),
434434 $ response ->getStatusCode (),
435435 $ response ->getHeaders (),
436436 ];
437437 }
438438
439- $ returnType = '\Flexolabs \RedditClient\Model\Me ' ;
439+ $ returnType = '\Sigwin \RedditClient\Model\Me ' ;
440440 $ responseBody = $ response ->getBody ();
441441 if ($ returnType === '\SplFileObject ' ) {
442442 $ content = $ responseBody ; //stream goes to serializer
@@ -454,7 +454,7 @@ public function meWithHttpInfo(): array
454454 case 200 :
455455 $ data = ObjectSerializer::deserialize (
456456 $ e ->getResponseBody (),
457- '\Flexolabs \RedditClient\Model\Me ' ,
457+ '\Sigwin \RedditClient\Model\Me ' ,
458458 $ e ->getResponseHeaders ()
459459 );
460460 $ e ->setResponseObject ($ data );
@@ -496,7 +496,7 @@ static function ($response) {
496496 */
497497 public function meAsyncWithHttpInfo (): \GuzzleHttp \Promise \PromiseInterface
498498 {
499- $ returnType = '\Flexolabs \RedditClient\Model\Me ' ;
499+ $ returnType = '\Sigwin \RedditClient\Model\Me ' ;
500500 $ request = $ this ->meRequest ();
501501
502502 return $ this ->client
0 commit comments