-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added some missing classes for vk example
- Loading branch information
Showing
8 changed files
with
187 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
examples/vk-dlang-sdk/source/vksdk/objects/users/CropPhoto.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module vksdk.objects.users.CropPhoto; | ||
|
||
import vibe.data.json; | ||
|
||
/** | ||
* CropPhoto object | ||
*/ | ||
class CropPhoto { | ||
|
||
@name("photo") | ||
private Photo photo; | ||
|
||
@name("crop") | ||
private Json crop; | ||
|
||
@name("rect") | ||
private Json rect; | ||
|
||
Photo getPhoto() { | ||
return photo; | ||
} | ||
|
||
Json getCrop() { | ||
return crop; | ||
} | ||
|
||
Json getRect() { | ||
return rect; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
examples/vk-dlang-sdk/source/vksdk/objects/users/LastSeen.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module vksdk.objects.users.LastSeen; | ||
|
||
import vibe.data.json; | ||
|
||
/** | ||
* LastSeen object | ||
*/ | ||
class LastSeen { | ||
/** | ||
* Last visit date (in Unix time) | ||
*/ | ||
@name("time") | ||
private int time; | ||
|
||
/** | ||
* Type of the platform that used for the last authorization | ||
*/ | ||
@name("platform") | ||
private int platform; | ||
|
||
int getTime() { | ||
return time; | ||
} | ||
|
||
int getPlatform() { | ||
return platform; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
examples/vk-dlang-sdk/source/vksdk/objects/users/Occupation.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module vksdk.objects.users.Occupation; | ||
|
||
/** | ||
* Occupation object | ||
*/ | ||
class Occupation { | ||
/** | ||
* Type of occupation | ||
*/ | ||
@name("type") | ||
private string type; | ||
|
||
/** | ||
* ID of school, university, company group | ||
*/ | ||
@name("id") | ||
private int id; | ||
|
||
/** | ||
* Name of occupation | ||
*/ | ||
@name("name") | ||
private string name; | ||
|
||
string getType() { | ||
return type; | ||
} | ||
|
||
int getId() { | ||
return id; | ||
} | ||
|
||
string getName() { | ||
return name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
examples/vk-dlang-sdk/source/vksdk/objects/users/UserMin.d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
module vksdk.objects.users.UserMin; | ||
|
||
import vibe.data.json; | ||
|
||
/** | ||
* UserMin object | ||
*/ | ||
class UserMin { | ||
/** | ||
* User ID | ||
*/ | ||
@name("id") | ||
private int id; | ||
|
||
/** | ||
* User first name | ||
*/ | ||
@name("first_name") | ||
private string firstName; | ||
|
||
/** | ||
* User last name | ||
*/ | ||
@name("last_name") | ||
private string lastName; | ||
|
||
/** | ||
* Returns if a profile is deleted or blocked | ||
*/ | ||
@name("deactivated") | ||
private string deactivated; | ||
|
||
/** | ||
* Returns if a profile is hidden. | ||
*/ | ||
@name("hidden") | ||
private int hidden; | ||
|
||
int getId() { | ||
return id; | ||
} | ||
|
||
string getFirstName() { | ||
return firstName; | ||
} | ||
|
||
string getLastName() { | ||
return lastName; | ||
} | ||
|
||
string getDeactivated() { | ||
return deactivated; | ||
} | ||
|
||
int getHidden() { | ||
return hidden; | ||
} | ||
} |