Skip to content

Commit

Permalink
FIX:// fix for the ErrorCode field in ApiErrorModel class
Browse files Browse the repository at this point in the history
  • Loading branch information
piftaba committed Jun 9, 2022
1 parent 44d6adc commit 0f9ff43
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions library/models/ApiErrorModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ class ApiErrorModel
{
public $ErrorCode;
public $Title;
public $Description;
public $ErrorCode;
public $Description;
public $HappenedAt;
public $AuthData;
public $EndPoint;
Expand All @@ -30,8 +29,7 @@ function __construct()
{
$this->ErrorCode = "";
$this->Title = "";
$this->Description = "";
$this->ErrorCode = "";
$this->Description = "";
$this->HappenedAt = "";
$this->AuthData = "";
$this->EndPoint = "";
Expand All @@ -43,8 +41,7 @@ public function fromJson($json)
if (!empty($json)) {
$this->ErrorCode = $json['ErrorCode'];
$this->Title = $json['Title'];
$this->Description = $json['Description'];
$this->ErrorCode = $json['ErrorCode'];
$this->Description = $json['Description'];
$this->HappenedAt = $json['HappenedAt'];
$this->AuthData = $json['AuthData'];
$this->EndPoint = $json['EndPoint'];
Expand Down

0 comments on commit 0f9ff43

Please sign in to comment.