|
8 | 8 | * App\Skin |
9 | 9 | * |
10 | 10 | * @property integer $id |
11 | | - * @property integer $timestamp |
12 | | - * @property string $profileId |
13 | | - * @property string $profileName |
14 | | - * @property string $skinUrl |
15 | | - * @property string $capeUrl |
16 | | - * @property boolean $slimModel |
| 11 | + * @property string $profile_id |
| 12 | + * @property string $profile_name |
| 13 | + * @property string $skin_url |
| 14 | + * @property string $cape_url |
| 15 | + * @property boolean $slim_model |
17 | 16 | * @property mixed $signature |
| 17 | + * @property integer $timestamp |
18 | 18 | * @property \Carbon\Carbon $created_at |
19 | 19 | * @property \Carbon\Carbon $updated_at |
20 | 20 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereId($value) |
21 | | - * @method static \Illuminate\Database\Query\Builder|\App\Skin whereTimestamp($value) |
22 | 21 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereProfileId($value) |
23 | 22 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereProfileName($value) |
24 | 23 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereSkinUrl($value) |
25 | 24 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereCapeUrl($value) |
26 | 25 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereSlimModel($value) |
27 | 26 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereSignature($value) |
| 27 | + * @method static \Illuminate\Database\Query\Builder|\App\Skin whereTimestamp($value) |
28 | 28 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereCreatedAt($value) |
29 | 29 | * @method static \Illuminate\Database\Query\Builder|\App\Skin whereUpdatedAt($value) |
30 | 30 | * @mixin \Eloquent |
31 | 31 | */ |
32 | 32 | class Skin extends Model { |
33 | 33 |
|
34 | | - /** |
35 | | - * The database table used by the model. |
36 | | - * |
37 | | - * @var string |
38 | | - */ |
39 | 34 | protected $table = 'skins'; |
40 | 35 |
|
41 | 36 | public function getEncodedData() { |
42 | 37 | $data = array(); |
43 | 38 | $data['timestamp'] = $this->timestamp; |
44 | | - $data['profileId'] = str_replace("-", "", $this->profileId); |
45 | | - $data['profileName'] = $this->profileName; |
| 39 | + $data['profileId'] = str_replace("-", "", $this->profile_id); |
| 40 | + $data['profileName'] = $this->profile_name; |
46 | 41 | $data['signatureRequired'] = true; |
47 | 42 |
|
48 | 43 | $textures = array(); |
49 | | - $textures['SKIN'] = ["url" => $this->skinUrl]; |
| 44 | + $textures['SKIN'] = ["url" => $this->skin_url]; |
50 | 45 |
|
51 | | - if ($this->slimModel) { |
| 46 | + if ($this->slim_model) { |
52 | 47 | $textures['SKIN']["metadata"] = ["model" => "slim"]; |
53 | 48 | } |
54 | 49 |
|
55 | | - if ($this->capeUrl) { |
56 | | - $textures['CAPE'] = ["url" => $this->capeUrl]; |
| 50 | + if ($this->cape_url) { |
| 51 | + $textures['CAPE'] = ["url" => $this->cape_url]; |
57 | 52 | } |
58 | 53 |
|
59 | 54 | $data['textures'] = $textures; |
|
0 commit comments