| library googleapis.plus.v1; |
| |
| import "dart:core" as core; |
| import "dart:collection" as collection_1; |
| import "dart:async" as async; |
| import "dart:convert" as convert; |
| |
| import "package:crypto/crypto.dart" as crypto; |
| import 'package:http/http.dart' as http; |
| import '../src/common_internal.dart' as common_internal; |
| import '../common/common.dart' as common; |
| |
| export '../common/common.dart' show ApiRequestError; |
| export '../common/common.dart' show DetailedApiRequestError; |
| |
| /** |
| * The Google+ API enables developers to build on top of the Google+ platform. |
| */ |
| class PlusApi { |
| /** Know your basic profile info and list of people in your circles. */ |
| static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login"; |
| |
| /** Know who you are on Google */ |
| static const PlusMeScope = "https://www.googleapis.com/auth/plus.me"; |
| |
| /** View your email address */ |
| static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"; |
| |
| /** View your basic profile info */ |
| static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo.profile"; |
| |
| |
| final common_internal.ApiRequester _requester; |
| |
| ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
| MomentsResourceApi get moments => new MomentsResourceApi(_requester); |
| PeopleResourceApi get people => new PeopleResourceApi(_requester); |
| |
| PlusApi(http.Client client) : |
| _requester = new common_internal.ApiRequester(client, "https://www.googleapis.com/", "plus/v1/"); |
| } |
| |
| |
| /** Not documented yet. */ |
| class ActivitiesResourceApi { |
| final common_internal.ApiRequester _requester; |
| |
| ActivitiesResourceApi(common_internal.ApiRequester client) : |
| _requester = client; |
| |
| /** |
| * Get an activity. |
| * |
| * Request parameters: |
| * |
| * [activityId] - The ID of the activity to get. |
| * |
| * Completes with a [Activity]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<Activity> get(core.String activityId) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (activityId == null) { |
| throw new core.ArgumentError("Parameter activityId is required."); |
| } |
| |
| |
| _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new Activity.fromJson(data)); |
| } |
| |
| /** |
| * List all of the activities in the specified collection for a particular |
| * user. |
| * |
| * Request parameters: |
| * |
| * [userId] - The ID of the user to get activities for. The special value "me" |
| * can be used to indicate the authenticated user. |
| * |
| * [collection] - The collection of activities to list. |
| * Possible string values are: |
| * - "public" : All public activities created by the specified user. |
| * |
| * [maxResults] - The maximum number of activities to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "100". |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. |
| * |
| * Completes with a [ActivityFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<ActivityFeed> list(core.String userId, core.String collection, {core.int maxResults, core.String pageToken}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (userId == null) { |
| throw new core.ArgumentError("Parameter userId is required."); |
| } |
| if (collection == null) { |
| throw new core.ArgumentError("Parameter collection is required."); |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| |
| |
| _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/activities/' + common_internal.Escaper.ecapeVariable('$collection'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new ActivityFeed.fromJson(data)); |
| } |
| |
| /** |
| * Search public activities. |
| * |
| * Request parameters: |
| * |
| * [query] - Full-text search query string. |
| * |
| * [language] - Specify the preferred language to search with. See search |
| * language codes for available values. |
| * |
| * [maxResults] - The maximum number of activities to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "20". |
| * |
| * [orderBy] - Specifies how to order search results. |
| * Possible string values are: |
| * - "best" : Sort activities by relevance to the user, most relevant first. |
| * - "recent" : Sort activities by published date, most recent first. |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. This token can be of |
| * any length. |
| * |
| * Completes with a [ActivityFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<ActivityFeed> search(core.String query, {core.String language, core.int maxResults, core.String orderBy, core.String pageToken}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (query == null) { |
| throw new core.ArgumentError("Parameter query is required."); |
| } |
| _queryParams["query"] = [query]; |
| if (language != null) { |
| _queryParams["language"] = [language]; |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (orderBy != null) { |
| _queryParams["orderBy"] = [orderBy]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| |
| |
| _url = 'activities'; |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new ActivityFeed.fromJson(data)); |
| } |
| |
| } |
| |
| |
| /** Not documented yet. */ |
| class CommentsResourceApi { |
| final common_internal.ApiRequester _requester; |
| |
| CommentsResourceApi(common_internal.ApiRequester client) : |
| _requester = client; |
| |
| /** |
| * Get a comment. |
| * |
| * Request parameters: |
| * |
| * [commentId] - The ID of the comment to get. |
| * |
| * Completes with a [Comment]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<Comment> get(core.String commentId) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (commentId == null) { |
| throw new core.ArgumentError("Parameter commentId is required."); |
| } |
| |
| |
| _url = 'comments/' + common_internal.Escaper.ecapeVariable('$commentId'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new Comment.fromJson(data)); |
| } |
| |
| /** |
| * List all of the comments for an activity. |
| * |
| * Request parameters: |
| * |
| * [activityId] - The ID of the activity to get comments for. |
| * |
| * [maxResults] - The maximum number of comments to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "0" and "500". |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. |
| * |
| * [sortOrder] - The order in which to sort the list of comments. |
| * Possible string values are: |
| * - "ascending" : Sort oldest comments first. |
| * - "descending" : Sort newest comments first. |
| * |
| * Completes with a [CommentFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, core.String pageToken, core.String sortOrder}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (activityId == null) { |
| throw new core.ArgumentError("Parameter activityId is required."); |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| if (sortOrder != null) { |
| _queryParams["sortOrder"] = [sortOrder]; |
| } |
| |
| |
| _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/comments'; |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new CommentFeed.fromJson(data)); |
| } |
| |
| } |
| |
| |
| /** Not documented yet. */ |
| class MomentsResourceApi { |
| final common_internal.ApiRequester _requester; |
| |
| MomentsResourceApi(common_internal.ApiRequester client) : |
| _requester = client; |
| |
| /** |
| * Record a moment representing a user's action such as making a purchase or |
| * commenting on a blog. |
| * |
| * [request] - The metadata request object. |
| * |
| * Request parameters: |
| * |
| * [userId] - The ID of the user to record actions for. The only valid values |
| * are "me" and the ID of the authenticated user. |
| * |
| * [collection] - The collection to which to write moments. |
| * Possible string values are: |
| * - "vault" : The default collection for writing new moments. |
| * |
| * [debug] - Return the moment as written. Should be used only for debugging. |
| * |
| * Completes with a [Moment]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<Moment> insert(Moment request, core.String userId, core.String collection, {core.bool debug}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (request != null) { |
| _body = convert.JSON.encode((request).toJson()); |
| } |
| if (userId == null) { |
| throw new core.ArgumentError("Parameter userId is required."); |
| } |
| if (collection == null) { |
| throw new core.ArgumentError("Parameter collection is required."); |
| } |
| if (debug != null) { |
| _queryParams["debug"] = ["${debug}"]; |
| } |
| |
| |
| _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/moments/' + common_internal.Escaper.ecapeVariable('$collection'); |
| |
| var _response = _requester.request(_url, |
| "POST", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new Moment.fromJson(data)); |
| } |
| |
| /** |
| * List all of the moments for a particular user. |
| * |
| * Request parameters: |
| * |
| * [userId] - The ID of the user to get moments for. The special value "me" |
| * can be used to indicate the authenticated user. |
| * |
| * [collection] - The collection of moments to list. |
| * Possible string values are: |
| * - "vault" : All moments created by the requesting application for the |
| * authenticated user. |
| * |
| * [maxResults] - The maximum number of moments to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "100". |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. |
| * |
| * [targetUrl] - Only moments containing this targetUrl will be returned. |
| * |
| * [type] - Only moments of this type will be returned. |
| * |
| * Completes with a [MomentsFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<MomentsFeed> list(core.String userId, core.String collection, {core.int maxResults, core.String pageToken, core.String targetUrl, core.String type}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (userId == null) { |
| throw new core.ArgumentError("Parameter userId is required."); |
| } |
| if (collection == null) { |
| throw new core.ArgumentError("Parameter collection is required."); |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| if (targetUrl != null) { |
| _queryParams["targetUrl"] = [targetUrl]; |
| } |
| if (type != null) { |
| _queryParams["type"] = [type]; |
| } |
| |
| |
| _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/moments/' + common_internal.Escaper.ecapeVariable('$collection'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new MomentsFeed.fromJson(data)); |
| } |
| |
| /** |
| * Delete a moment. |
| * |
| * Request parameters: |
| * |
| * [id] - The ID of the moment to delete. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future remove(core.String id) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (id == null) { |
| throw new core.ArgumentError("Parameter id is required."); |
| } |
| |
| _downloadOptions = null; |
| |
| _url = 'moments/' + common_internal.Escaper.ecapeVariable('$id'); |
| |
| var _response = _requester.request(_url, |
| "DELETE", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => null); |
| } |
| |
| } |
| |
| |
| /** Not documented yet. */ |
| class PeopleResourceApi { |
| final common_internal.ApiRequester _requester; |
| |
| PeopleResourceApi(common_internal.ApiRequester client) : |
| _requester = client; |
| |
| /** |
| * Get a person's profile. If your app uses scope |
| * https://www.googleapis.com/auth/plus.login, this method is guaranteed to |
| * return ageRange and language. |
| * |
| * Request parameters: |
| * |
| * [userId] - The ID of the person to get the profile for. The special value |
| * "me" can be used to indicate the authenticated user. |
| * |
| * Completes with a [Person]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<Person> get(core.String userId) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (userId == null) { |
| throw new core.ArgumentError("Parameter userId is required."); |
| } |
| |
| |
| _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new Person.fromJson(data)); |
| } |
| |
| /** |
| * List all of the people in the specified collection. |
| * |
| * Request parameters: |
| * |
| * [userId] - Get the collection of people for the person identified. Use "me" |
| * to indicate the authenticated user. |
| * |
| * [collection] - The collection of people to list. |
| * Possible string values are: |
| * - "connected" : The list of visible people in the authenticated user's |
| * circles who also use the requesting app. This list is limited to users who |
| * made their app activities visible to the authenticated user. |
| * - "visible" : The list of people who this user has added to one or more |
| * circles, limited to the circles visible to the requesting application. |
| * |
| * [maxResults] - The maximum number of people to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "100". |
| * |
| * [orderBy] - The order to return people in. |
| * Possible string values are: |
| * - "alphabetical" : Order the people by their display name. |
| * - "best" : Order people based on the relevence to the viewer. |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. |
| * |
| * Completes with a [PeopleFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<PeopleFeed> list(core.String userId, core.String collection, {core.int maxResults, core.String orderBy, core.String pageToken}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (userId == null) { |
| throw new core.ArgumentError("Parameter userId is required."); |
| } |
| if (collection == null) { |
| throw new core.ArgumentError("Parameter collection is required."); |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (orderBy != null) { |
| _queryParams["orderBy"] = [orderBy]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| |
| |
| _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/people/' + common_internal.Escaper.ecapeVariable('$collection'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new PeopleFeed.fromJson(data)); |
| } |
| |
| /** |
| * List all of the people in the specified collection for a particular |
| * activity. |
| * |
| * Request parameters: |
| * |
| * [activityId] - The ID of the activity to get the list of people for. |
| * |
| * [collection] - The collection of people to list. |
| * Possible string values are: |
| * - "plusoners" : List all people who have +1'd this activity. |
| * - "resharers" : List all people who have reshared this activity. |
| * |
| * [maxResults] - The maximum number of people to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "100". |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. |
| * |
| * Completes with a [PeopleFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<PeopleFeed> listByActivity(core.String activityId, core.String collection, {core.int maxResults, core.String pageToken}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (activityId == null) { |
| throw new core.ArgumentError("Parameter activityId is required."); |
| } |
| if (collection == null) { |
| throw new core.ArgumentError("Parameter collection is required."); |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| |
| |
| _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/people/' + common_internal.Escaper.ecapeVariable('$collection'); |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new PeopleFeed.fromJson(data)); |
| } |
| |
| /** |
| * Search all public profiles. |
| * |
| * Request parameters: |
| * |
| * [query] - Specify a query string for full text search of public text in all |
| * profiles. |
| * |
| * [language] - Specify the preferred language to search with. See search |
| * language codes for available values. |
| * |
| * [maxResults] - The maximum number of people to include in the response, |
| * which is used for paging. For any response, the actual number returned |
| * might be less than the specified maxResults. |
| * Value must be between "1" and "50". |
| * |
| * [pageToken] - The continuation token, which is used to page through large |
| * result sets. To get the next page of results, set this parameter to the |
| * value of "nextPageToken" from the previous response. This token can be of |
| * any length. |
| * |
| * Completes with a [PeopleFeed]. |
| * |
| * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| * error. |
| * |
| * If the used [http.Client] completes with an error when making a REST call, |
| * this method will complete with the same error. |
| */ |
| async.Future<PeopleFeed> search(core.String query, {core.String language, core.int maxResults, core.String pageToken}) { |
| var _url = null; |
| var _queryParams = new core.Map(); |
| var _uploadMedia = null; |
| var _uploadOptions = null; |
| var _downloadOptions = common.DownloadOptions.Metadata; |
| var _body = null; |
| |
| if (query == null) { |
| throw new core.ArgumentError("Parameter query is required."); |
| } |
| _queryParams["query"] = [query]; |
| if (language != null) { |
| _queryParams["language"] = [language]; |
| } |
| if (maxResults != null) { |
| _queryParams["maxResults"] = ["${maxResults}"]; |
| } |
| if (pageToken != null) { |
| _queryParams["pageToken"] = [pageToken]; |
| } |
| |
| |
| _url = 'people'; |
| |
| var _response = _requester.request(_url, |
| "GET", |
| body: _body, |
| queryParams: _queryParams, |
| uploadOptions: _uploadOptions, |
| uploadMedia: _uploadMedia, |
| downloadOptions: _downloadOptions); |
| return _response.then((data) => new PeopleFeed.fromJson(data)); |
| } |
| |
| } |
| |
| |
| |
| /** Not documented yet. */ |
| class Acl { |
| /** Description of the access granted, suitable for display. */ |
| core.String description; |
| |
| /** The list of access entries. */ |
| core.List<PlusAclentryResource> items; |
| |
| /** |
| * Identifies this resource as a collection of access controls. Value: |
| * "plus#acl". |
| */ |
| core.String kind; |
| |
| |
| Acl(); |
| |
| Acl.fromJson(core.Map _json) { |
| if (_json.containsKey("description")) { |
| description = _json["description"]; |
| } |
| if (_json.containsKey("items")) { |
| items = _json["items"].map((value) => new PlusAclentryResource.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (description != null) { |
| _json["description"] = description; |
| } |
| if (items != null) { |
| _json["items"] = items.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The image representation of the actor. */ |
| class ActivityActorImage { |
| /** |
| * The URL of the actor's profile photo. To resize the image and crop it to a |
| * square, append the query string ?sz=x, where x is the dimension in pixels |
| * of each side. |
| */ |
| core.String url; |
| |
| |
| ActivityActorImage(); |
| |
| ActivityActorImage.fromJson(core.Map _json) { |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** An object representation of the individual components of name. */ |
| class ActivityActorName { |
| /** The family name ("last name") of the actor. */ |
| core.String familyName; |
| |
| /** The given name ("first name") of the actor. */ |
| core.String givenName; |
| |
| |
| ActivityActorName(); |
| |
| ActivityActorName.fromJson(core.Map _json) { |
| if (_json.containsKey("familyName")) { |
| familyName = _json["familyName"]; |
| } |
| if (_json.containsKey("givenName")) { |
| givenName = _json["givenName"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (familyName != null) { |
| _json["familyName"] = familyName; |
| } |
| if (givenName != null) { |
| _json["givenName"] = givenName; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The person who performed this activity. */ |
| class ActivityActor { |
| /** The name of the actor, suitable for display. */ |
| core.String displayName; |
| |
| /** The ID of the actor's Person resource. */ |
| core.String id; |
| |
| /** The image representation of the actor. */ |
| ActivityActorImage image; |
| |
| /** An object representation of the individual components of name. */ |
| ActivityActorName name; |
| |
| /** The link to the actor's Google profile. */ |
| core.String url; |
| |
| |
| ActivityActor(); |
| |
| ActivityActor.fromJson(core.Map _json) { |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new ActivityActorImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("name")) { |
| name = new ActivityActorName.fromJson(_json["name"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (name != null) { |
| _json["name"] = (name).toJson(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The image representation of the original actor. */ |
| class ActivityObjectActorImage { |
| /** A URL that points to a thumbnail photo of the original actor. */ |
| core.String url; |
| |
| |
| ActivityObjectActorImage(); |
| |
| ActivityObjectActorImage.fromJson(core.Map _json) { |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** |
| * If this activity's object is itself another activity, such as when a person |
| * reshares an activity, this property specifies the original activity's actor. |
| */ |
| class ActivityObjectActor { |
| /** The original actor's name, which is suitable for display. */ |
| core.String displayName; |
| |
| /** ID of the original actor. */ |
| core.String id; |
| |
| /** The image representation of the original actor. */ |
| ActivityObjectActorImage image; |
| |
| /** A link to the original actor's Google profile. */ |
| core.String url; |
| |
| |
| ActivityObjectActor(); |
| |
| ActivityObjectActor.fromJson(core.Map _json) { |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new ActivityObjectActorImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** If the attachment is a video, the embeddable link. */ |
| class ActivityObjectAttachmentsEmbed { |
| /** Media type of the link. */ |
| core.String type; |
| |
| /** URL of the link. */ |
| core.String url; |
| |
| |
| ActivityObjectAttachmentsEmbed(); |
| |
| ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) { |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The full image URL for photo attachments. */ |
| class ActivityObjectAttachmentsFullImage { |
| /** The height, in pixels, of the linked resource. */ |
| core.int height; |
| |
| /** Media type of the link. */ |
| core.String type; |
| |
| /** URL of the image. */ |
| core.String url; |
| |
| /** The width, in pixels, of the linked resource. */ |
| core.int width; |
| |
| |
| ActivityObjectAttachmentsFullImage(); |
| |
| ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) { |
| if (_json.containsKey("height")) { |
| height = _json["height"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("width")) { |
| width = _json["width"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (height != null) { |
| _json["height"] = height; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (width != null) { |
| _json["width"] = width; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The preview image for photos or videos. */ |
| class ActivityObjectAttachmentsImage { |
| /** The height, in pixels, of the linked resource. */ |
| core.int height; |
| |
| /** Media type of the link. */ |
| core.String type; |
| |
| /** Image URL. */ |
| core.String url; |
| |
| /** The width, in pixels, of the linked resource. */ |
| core.int width; |
| |
| |
| ActivityObjectAttachmentsImage(); |
| |
| ActivityObjectAttachmentsImage.fromJson(core.Map _json) { |
| if (_json.containsKey("height")) { |
| height = _json["height"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("width")) { |
| width = _json["width"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (height != null) { |
| _json["height"] = height; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (width != null) { |
| _json["width"] = width; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Image resource. */ |
| class ActivityObjectAttachmentsThumbnailsImage { |
| /** The height, in pixels, of the linked resource. */ |
| core.int height; |
| |
| /** Media type of the link. */ |
| core.String type; |
| |
| /** Image url. */ |
| core.String url; |
| |
| /** The width, in pixels, of the linked resource. */ |
| core.int width; |
| |
| |
| ActivityObjectAttachmentsThumbnailsImage(); |
| |
| ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) { |
| if (_json.containsKey("height")) { |
| height = _json["height"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("width")) { |
| width = _json["width"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (height != null) { |
| _json["height"] = height; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (width != null) { |
| _json["width"] = width; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class ActivityObjectAttachmentsThumbnails { |
| /** Potential name of the thumbnail. */ |
| core.String description; |
| |
| /** Image resource. */ |
| ActivityObjectAttachmentsThumbnailsImage image; |
| |
| /** URL of the webpage containing the image. */ |
| core.String url; |
| |
| |
| ActivityObjectAttachmentsThumbnails(); |
| |
| ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) { |
| if (_json.containsKey("description")) { |
| description = _json["description"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (description != null) { |
| _json["description"] = description; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class ActivityObjectAttachments { |
| /** |
| * If the attachment is an article, this property contains a snippet of text |
| * from the article. It can also include descriptions for other types. |
| */ |
| core.String content; |
| |
| /** |
| * The title of the attachment, such as a photo caption or an article title. |
| */ |
| core.String displayName; |
| |
| /** If the attachment is a video, the embeddable link. */ |
| ActivityObjectAttachmentsEmbed embed; |
| |
| /** The full image URL for photo attachments. */ |
| ActivityObjectAttachmentsFullImage fullImage; |
| |
| /** The ID of the attachment. */ |
| core.String id; |
| |
| /** The preview image for photos or videos. */ |
| ActivityObjectAttachmentsImage image; |
| |
| /** |
| * The type of media object. Possible values include, but are not limited to, |
| * the following values: |
| * - "photo" - A photo. |
| * - "album" - A photo album. |
| * - "video" - A video. |
| * - "article" - An article, specified by a link. |
| */ |
| core.String objectType; |
| |
| /** |
| * If the attachment is an album, this property is a list of potential |
| * additional thumbnails from the album. |
| */ |
| core.List<ActivityObjectAttachmentsThumbnails> thumbnails; |
| |
| /** The link to the attachment, which should be of type text/html. */ |
| core.String url; |
| |
| |
| ActivityObjectAttachments(); |
| |
| ActivityObjectAttachments.fromJson(core.Map _json) { |
| if (_json.containsKey("content")) { |
| content = _json["content"]; |
| } |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("embed")) { |
| embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]); |
| } |
| if (_json.containsKey("fullImage")) { |
| fullImage = new ActivityObjectAttachmentsFullImage.fromJson(_json["fullImage"]); |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("objectType")) { |
| objectType = _json["objectType"]; |
| } |
| if (_json.containsKey("thumbnails")) { |
| thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachmentsThumbnails.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (content != null) { |
| _json["content"] = content; |
| } |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (embed != null) { |
| _json["embed"] = (embed).toJson(); |
| } |
| if (fullImage != null) { |
| _json["fullImage"] = (fullImage).toJson(); |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (objectType != null) { |
| _json["objectType"] = objectType; |
| } |
| if (thumbnails != null) { |
| _json["thumbnails"] = thumbnails.map((value) => (value).toJson()).toList(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** People who +1'd this activity. */ |
| class ActivityObjectPlusoners { |
| /** The URL for the collection of people who +1'd this activity. */ |
| core.String selfLink; |
| |
| /** Total number of people who +1'd this activity. */ |
| core.int totalItems; |
| |
| |
| ActivityObjectPlusoners(); |
| |
| ActivityObjectPlusoners.fromJson(core.Map _json) { |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("totalItems")) { |
| totalItems = _json["totalItems"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (totalItems != null) { |
| _json["totalItems"] = totalItems; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Comments in reply to this activity. */ |
| class ActivityObjectReplies { |
| /** The URL for the collection of comments in reply to this activity. */ |
| core.String selfLink; |
| |
| /** Total number of comments on this activity. */ |
| core.int totalItems; |
| |
| |
| ActivityObjectReplies(); |
| |
| ActivityObjectReplies.fromJson(core.Map _json) { |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("totalItems")) { |
| totalItems = _json["totalItems"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (totalItems != null) { |
| _json["totalItems"] = totalItems; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** People who reshared this activity. */ |
| class ActivityObjectResharers { |
| /** The URL for the collection of resharers. */ |
| core.String selfLink; |
| |
| /** Total number of people who reshared this activity. */ |
| core.int totalItems; |
| |
| |
| ActivityObjectResharers(); |
| |
| ActivityObjectResharers.fromJson(core.Map _json) { |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("totalItems")) { |
| totalItems = _json["totalItems"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (totalItems != null) { |
| _json["totalItems"] = totalItems; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The object of this activity. */ |
| class ActivityObject { |
| /** |
| * If this activity's object is itself another activity, such as when a person |
| * reshares an activity, this property specifies the original activity's |
| * actor. |
| */ |
| ActivityObjectActor actor; |
| |
| /** The media objects attached to this activity. */ |
| core.List<ActivityObjectAttachments> attachments; |
| |
| /** The HTML-formatted content, which is suitable for display. */ |
| core.String content; |
| |
| /** |
| * The ID of the object. When resharing an activity, this is the ID of the |
| * activity that is being reshared. |
| */ |
| core.String id; |
| |
| /** |
| * The type of the object. Possible values include, but are not limited to, |
| * the following values: |
| * - "note" - Textual content. |
| * - "activity" - A Google+ activity. |
| */ |
| core.String objectType; |
| |
| /** |
| * The content (text) as provided by the author, which is stored without any |
| * HTML formatting. When creating or updating an activity, this value must be |
| * supplied as plain text in the request. |
| */ |
| core.String originalContent; |
| |
| /** People who +1'd this activity. */ |
| ActivityObjectPlusoners plusoners; |
| |
| /** Comments in reply to this activity. */ |
| ActivityObjectReplies replies; |
| |
| /** People who reshared this activity. */ |
| ActivityObjectResharers resharers; |
| |
| /** The URL that points to the linked resource. */ |
| core.String url; |
| |
| |
| ActivityObject(); |
| |
| ActivityObject.fromJson(core.Map _json) { |
| if (_json.containsKey("actor")) { |
| actor = new ActivityObjectActor.fromJson(_json["actor"]); |
| } |
| if (_json.containsKey("attachments")) { |
| attachments = _json["attachments"].map((value) => new ActivityObjectAttachments.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("content")) { |
| content = _json["content"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("objectType")) { |
| objectType = _json["objectType"]; |
| } |
| if (_json.containsKey("originalContent")) { |
| originalContent = _json["originalContent"]; |
| } |
| if (_json.containsKey("plusoners")) { |
| plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]); |
| } |
| if (_json.containsKey("replies")) { |
| replies = new ActivityObjectReplies.fromJson(_json["replies"]); |
| } |
| if (_json.containsKey("resharers")) { |
| resharers = new ActivityObjectResharers.fromJson(_json["resharers"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (actor != null) { |
| _json["actor"] = (actor).toJson(); |
| } |
| if (attachments != null) { |
| _json["attachments"] = attachments.map((value) => (value).toJson()).toList(); |
| } |
| if (content != null) { |
| _json["content"] = content; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (objectType != null) { |
| _json["objectType"] = objectType; |
| } |
| if (originalContent != null) { |
| _json["originalContent"] = originalContent; |
| } |
| if (plusoners != null) { |
| _json["plusoners"] = (plusoners).toJson(); |
| } |
| if (replies != null) { |
| _json["replies"] = (replies).toJson(); |
| } |
| if (resharers != null) { |
| _json["resharers"] = (resharers).toJson(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The service provider that initially published this activity. */ |
| class ActivityProvider { |
| /** Name of the service provider. */ |
| core.String title; |
| |
| |
| ActivityProvider(); |
| |
| ActivityProvider.fromJson(core.Map _json) { |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (title != null) { |
| _json["title"] = title; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class Activity { |
| /** Identifies who has access to see this activity. */ |
| Acl access; |
| |
| /** The person who performed this activity. */ |
| ActivityActor actor; |
| |
| /** Street address where this activity occurred. */ |
| core.String address; |
| |
| /** |
| * Additional content added by the person who shared this activity, applicable |
| * only when resharing an activity. |
| */ |
| core.String annotation; |
| |
| /** |
| * If this activity is a crosspost from another system, this property |
| * specifies the ID of the original activity. |
| */ |
| core.String crosspostSource; |
| |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** |
| * Latitude and longitude where this activity occurred. Format is latitude |
| * followed by longitude, space separated. |
| */ |
| core.String geocode; |
| |
| /** The ID of this activity. */ |
| core.String id; |
| |
| /** Identifies this resource as an activity. Value: "plus#activity". */ |
| core.String kind; |
| |
| /** The location where this activity occurred. */ |
| Place location; |
| |
| /** The object of this activity. */ |
| ActivityObject object; |
| |
| /** ID of the place where this activity occurred. */ |
| core.String placeId; |
| |
| /** Name of the place where this activity occurred. */ |
| core.String placeName; |
| |
| /** The service provider that initially published this activity. */ |
| ActivityProvider provider; |
| |
| /** |
| * The time at which this activity was initially published. Formatted as an |
| * RFC 3339 timestamp. |
| */ |
| core.DateTime published; |
| |
| /** |
| * Radius, in meters, of the region where this activity occurred, centered at |
| * the latitude and longitude identified in geocode. |
| */ |
| core.String radius; |
| |
| /** Title of this activity. */ |
| core.String title; |
| |
| /** |
| * The time at which this activity was last updated. Formatted as an RFC 3339 |
| * timestamp. |
| */ |
| core.DateTime updated; |
| |
| /** The link to this activity. */ |
| core.String url; |
| |
| /** |
| * This activity's verb, which indicates the action that was performed. |
| * Possible values include, but are not limited to, the following values: |
| * - "post" - Publish content to the stream. |
| * - "share" - Reshare an activity. |
| */ |
| core.String verb; |
| |
| |
| Activity(); |
| |
| Activity.fromJson(core.Map _json) { |
| if (_json.containsKey("access")) { |
| access = new Acl.fromJson(_json["access"]); |
| } |
| if (_json.containsKey("actor")) { |
| actor = new ActivityActor.fromJson(_json["actor"]); |
| } |
| if (_json.containsKey("address")) { |
| address = _json["address"]; |
| } |
| if (_json.containsKey("annotation")) { |
| annotation = _json["annotation"]; |
| } |
| if (_json.containsKey("crosspostSource")) { |
| crosspostSource = _json["crosspostSource"]; |
| } |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("geocode")) { |
| geocode = _json["geocode"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("location")) { |
| location = new Place.fromJson(_json["location"]); |
| } |
| if (_json.containsKey("object")) { |
| object = new ActivityObject.fromJson(_json["object"]); |
| } |
| if (_json.containsKey("placeId")) { |
| placeId = _json["placeId"]; |
| } |
| if (_json.containsKey("placeName")) { |
| placeName = _json["placeName"]; |
| } |
| if (_json.containsKey("provider")) { |
| provider = new ActivityProvider.fromJson(_json["provider"]); |
| } |
| if (_json.containsKey("published")) { |
| published = core.DateTime.parse(_json["published"]); |
| } |
| if (_json.containsKey("radius")) { |
| radius = _json["radius"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("updated")) { |
| updated = core.DateTime.parse(_json["updated"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("verb")) { |
| verb = _json["verb"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (access != null) { |
| _json["access"] = (access).toJson(); |
| } |
| if (actor != null) { |
| _json["actor"] = (actor).toJson(); |
| } |
| if (address != null) { |
| _json["address"] = address; |
| } |
| if (annotation != null) { |
| _json["annotation"] = annotation; |
| } |
| if (crosspostSource != null) { |
| _json["crosspostSource"] = crosspostSource; |
| } |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (geocode != null) { |
| _json["geocode"] = geocode; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (location != null) { |
| _json["location"] = (location).toJson(); |
| } |
| if (object != null) { |
| _json["object"] = (object).toJson(); |
| } |
| if (placeId != null) { |
| _json["placeId"] = placeId; |
| } |
| if (placeName != null) { |
| _json["placeName"] = placeName; |
| } |
| if (provider != null) { |
| _json["provider"] = (provider).toJson(); |
| } |
| if (published != null) { |
| _json["published"] = (published).toIso8601String(); |
| } |
| if (radius != null) { |
| _json["radius"] = radius; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (updated != null) { |
| _json["updated"] = (updated).toIso8601String(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (verb != null) { |
| _json["verb"] = verb; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class ActivityFeed { |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** The ID of this collection of activities. Deprecated. */ |
| core.String id; |
| |
| /** The activities in this page of results. */ |
| core.List<Activity> items; |
| |
| /** |
| * Identifies this resource as a collection of activities. Value: |
| * "plus#activityFeed". |
| */ |
| core.String kind; |
| |
| /** Link to the next page of activities. */ |
| core.String nextLink; |
| |
| /** |
| * The continuation token, which is used to page through large result sets. |
| * Provide this value in a subsequent request to return the next page of |
| * results. |
| */ |
| core.String nextPageToken; |
| |
| /** Link to this activity resource. */ |
| core.String selfLink; |
| |
| /** |
| * The title of this collection of activities, which is a truncated portion of |
| * the content. |
| */ |
| core.String title; |
| |
| /** |
| * The time at which this collection of activities was last updated. Formatted |
| * as an RFC 3339 timestamp. |
| */ |
| core.DateTime updated; |
| |
| |
| ActivityFeed(); |
| |
| ActivityFeed.fromJson(core.Map _json) { |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("items")) { |
| items = _json["items"].map((value) => new Activity.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("nextLink")) { |
| nextLink = _json["nextLink"]; |
| } |
| if (_json.containsKey("nextPageToken")) { |
| nextPageToken = _json["nextPageToken"]; |
| } |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("updated")) { |
| updated = core.DateTime.parse(_json["updated"]); |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (items != null) { |
| _json["items"] = items.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (nextLink != null) { |
| _json["nextLink"] = nextLink; |
| } |
| if (nextPageToken != null) { |
| _json["nextPageToken"] = nextPageToken; |
| } |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (updated != null) { |
| _json["updated"] = (updated).toIso8601String(); |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The image representation of this actor. */ |
| class CommentActorImage { |
| /** |
| * The URL of the actor's profile photo. To resize the image and crop it to a |
| * square, append the query string ?sz=x, where x is the dimension in pixels |
| * of each side. |
| */ |
| core.String url; |
| |
| |
| CommentActorImage(); |
| |
| CommentActorImage.fromJson(core.Map _json) { |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The person who posted this comment. */ |
| class CommentActor { |
| /** The name of this actor, suitable for display. */ |
| core.String displayName; |
| |
| /** The ID of the actor. */ |
| core.String id; |
| |
| /** The image representation of this actor. */ |
| CommentActorImage image; |
| |
| /** A link to the Person resource for this actor. */ |
| core.String url; |
| |
| |
| CommentActor(); |
| |
| CommentActor.fromJson(core.Map _json) { |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new CommentActorImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class CommentInReplyTo { |
| /** The ID of the activity. */ |
| core.String id; |
| |
| /** The URL of the activity. */ |
| core.String url; |
| |
| |
| CommentInReplyTo(); |
| |
| CommentInReplyTo.fromJson(core.Map _json) { |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The object of this comment. */ |
| class CommentObject { |
| /** The HTML-formatted content, suitable for display. */ |
| core.String content; |
| |
| /** |
| * The object type of this comment. Possible values are: |
| * - "comment" - A comment in reply to an activity. |
| */ |
| core.String objectType; |
| |
| /** |
| * The content (text) as provided by the author, stored without any HTML |
| * formatting. When creating or updating a comment, this value must be |
| * supplied as plain text in the request. |
| */ |
| core.String originalContent; |
| |
| |
| CommentObject(); |
| |
| CommentObject.fromJson(core.Map _json) { |
| if (_json.containsKey("content")) { |
| content = _json["content"]; |
| } |
| if (_json.containsKey("objectType")) { |
| objectType = _json["objectType"]; |
| } |
| if (_json.containsKey("originalContent")) { |
| originalContent = _json["originalContent"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (content != null) { |
| _json["content"] = content; |
| } |
| if (objectType != null) { |
| _json["objectType"] = objectType; |
| } |
| if (originalContent != null) { |
| _json["originalContent"] = originalContent; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** People who +1'd this comment. */ |
| class CommentPlusoners { |
| /** Total number of people who +1'd this comment. */ |
| core.int totalItems; |
| |
| |
| CommentPlusoners(); |
| |
| CommentPlusoners.fromJson(core.Map _json) { |
| if (_json.containsKey("totalItems")) { |
| totalItems = _json["totalItems"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (totalItems != null) { |
| _json["totalItems"] = totalItems; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class Comment { |
| /** The person who posted this comment. */ |
| CommentActor actor; |
| |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** The ID of this comment. */ |
| core.String id; |
| |
| /** The activity this comment replied to. */ |
| core.List<CommentInReplyTo> inReplyTo; |
| |
| /** Identifies this resource as a comment. Value: "plus#comment". */ |
| core.String kind; |
| |
| /** The object of this comment. */ |
| CommentObject object; |
| |
| /** People who +1'd this comment. */ |
| CommentPlusoners plusoners; |
| |
| /** |
| * The time at which this comment was initially published. Formatted as an RFC |
| * 3339 timestamp. |
| */ |
| core.DateTime published; |
| |
| /** Link to this comment resource. */ |
| core.String selfLink; |
| |
| /** |
| * The time at which this comment was last updated. Formatted as an RFC 3339 |
| * timestamp. |
| */ |
| core.DateTime updated; |
| |
| /** |
| * This comment's verb, indicating what action was performed. Possible values |
| * are: |
| * - "post" - Publish content to the stream. |
| */ |
| core.String verb; |
| |
| |
| Comment(); |
| |
| Comment.fromJson(core.Map _json) { |
| if (_json.containsKey("actor")) { |
| actor = new CommentActor.fromJson(_json["actor"]); |
| } |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("inReplyTo")) { |
| inReplyTo = _json["inReplyTo"].map((value) => new CommentInReplyTo.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("object")) { |
| object = new CommentObject.fromJson(_json["object"]); |
| } |
| if (_json.containsKey("plusoners")) { |
| plusoners = new CommentPlusoners.fromJson(_json["plusoners"]); |
| } |
| if (_json.containsKey("published")) { |
| published = core.DateTime.parse(_json["published"]); |
| } |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("updated")) { |
| updated = core.DateTime.parse(_json["updated"]); |
| } |
| if (_json.containsKey("verb")) { |
| verb = _json["verb"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (actor != null) { |
| _json["actor"] = (actor).toJson(); |
| } |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (inReplyTo != null) { |
| _json["inReplyTo"] = inReplyTo.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (object != null) { |
| _json["object"] = (object).toJson(); |
| } |
| if (plusoners != null) { |
| _json["plusoners"] = (plusoners).toJson(); |
| } |
| if (published != null) { |
| _json["published"] = (published).toIso8601String(); |
| } |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (updated != null) { |
| _json["updated"] = (updated).toIso8601String(); |
| } |
| if (verb != null) { |
| _json["verb"] = verb; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class CommentFeed { |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** The ID of this collection of comments. */ |
| core.String id; |
| |
| /** The comments in this page of results. */ |
| core.List<Comment> items; |
| |
| /** |
| * Identifies this resource as a collection of comments. Value: |
| * "plus#commentFeed". |
| */ |
| core.String kind; |
| |
| /** Link to the next page of activities. */ |
| core.String nextLink; |
| |
| /** |
| * The continuation token, which is used to page through large result sets. |
| * Provide this value in a subsequent request to return the next page of |
| * results. |
| */ |
| core.String nextPageToken; |
| |
| /** The title of this collection of comments. */ |
| core.String title; |
| |
| /** |
| * The time at which this collection of comments was last updated. Formatted |
| * as an RFC 3339 timestamp. |
| */ |
| core.DateTime updated; |
| |
| |
| CommentFeed(); |
| |
| CommentFeed.fromJson(core.Map _json) { |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("items")) { |
| items = _json["items"].map((value) => new Comment.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("nextLink")) { |
| nextLink = _json["nextLink"]; |
| } |
| if (_json.containsKey("nextPageToken")) { |
| nextPageToken = _json["nextPageToken"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("updated")) { |
| updated = core.DateTime.parse(_json["updated"]); |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (items != null) { |
| _json["items"] = items.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (nextLink != null) { |
| _json["nextLink"] = nextLink; |
| } |
| if (nextPageToken != null) { |
| _json["nextPageToken"] = nextPageToken; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (updated != null) { |
| _json["updated"] = (updated).toIso8601String(); |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class ItemScope { |
| /** The subject matter of the content. */ |
| ItemScope about; |
| |
| /** An additional name for a Person, can be used for a middle name. */ |
| core.List<core.String> additionalName; |
| |
| /** Postal address. */ |
| ItemScope address; |
| |
| /** Address country. */ |
| core.String addressCountry; |
| |
| /** Address locality. */ |
| core.String addressLocality; |
| |
| /** Address region. */ |
| core.String addressRegion; |
| |
| /** The encoding. */ |
| core.List<ItemScope> associatedMedia; |
| |
| /** Number of attendees. */ |
| core.int attendeeCount; |
| |
| /** A person attending the event. */ |
| core.List<ItemScope> attendees; |
| |
| /** From http://schema.org/MusicRecording, the audio file. */ |
| ItemScope audio; |
| |
| /** |
| * The person or persons who created this result. In the example of restaurant |
| * reviews, this might be the reviewer's name. |
| */ |
| core.List<ItemScope> author; |
| |
| /** |
| * Best possible rating value that a result might obtain. This property |
| * defines the upper bound for the ratingValue. For example, you might have a |
| * 5 star rating scale, you would provide 5 as the value for this property. |
| */ |
| core.String bestRating; |
| |
| /** Date of birth. */ |
| core.String birthDate; |
| |
| /** |
| * From http://schema.org/MusicRecording, the artist that performed this |
| * recording. |
| */ |
| ItemScope byArtist; |
| |
| /** The caption for this object. */ |
| core.String caption; |
| |
| /** File size in (mega/kilo) bytes. */ |
| core.String contentSize; |
| |
| /** |
| * Actual bytes of the media object, for example the image file or video file. |
| */ |
| core.String contentUrl; |
| |
| /** A list of contributors to this result. */ |
| core.List<ItemScope> contributor; |
| |
| /** |
| * The date the result was created such as the date that a review was first |
| * created. |
| */ |
| core.String dateCreated; |
| |
| /** |
| * The date the result was last modified such as the date that a review was |
| * last edited. |
| */ |
| core.String dateModified; |
| |
| /** |
| * The initial date that the result was published. For example, a user writes |
| * a comment on a blog, which has a result.dateCreated of when they submit it. |
| * If the blog users comment moderation, the result.datePublished value would |
| * match the date when the owner approved the message. |
| */ |
| core.String datePublished; |
| |
| /** The string that describes the content of the result. */ |
| core.String description; |
| |
| /** |
| * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 |
| * date format. |
| */ |
| core.String duration; |
| |
| /** |
| * A URL pointing to a player for a specific video. In general, this is the |
| * information in the src element of an embed tag and should not be the same |
| * as the content of the loc tag. |
| */ |
| core.String embedUrl; |
| |
| /** The end date and time of the event (in ISO 8601 date format). */ |
| core.String endDate; |
| |
| /** |
| * Family name. This property can be used with givenName instead of the name |
| * property. |
| */ |
| core.String familyName; |
| |
| /** Gender of the person. */ |
| core.String gender; |
| |
| /** Geo coordinates. */ |
| ItemScope geo; |
| |
| /** |
| * Given name. This property can be used with familyName instead of the name |
| * property. |
| */ |
| core.String givenName; |
| |
| /** The height of the media object. */ |
| core.String height; |
| |
| /** |
| * An identifier for the object. Your app can choose how to identify objects. |
| * The object.id is required if you are writing an action that does not have a |
| * corresponding web page or object.url property. |
| */ |
| core.String id; |
| |
| /** |
| * A URL to the image that represents this result. For example, if a user |
| * writes a review of a restaurant and attaches a photo of their meal, you |
| * might use that photo as the result.image. |
| */ |
| core.String image; |
| |
| /** From http://schema.org/MusicRecording, which album a song is in. */ |
| ItemScope inAlbum; |
| |
| /** Identifies this resource as an itemScope. */ |
| core.String kind; |
| |
| /** Latitude. */ |
| core.double latitude; |
| |
| /** The location of the event or organization. */ |
| ItemScope location; |
| |
| /** Longitude. */ |
| core.double longitude; |
| |
| /** |
| * The name of the result. In the example of a restaurant review, this might |
| * be the summary the user gave their review such as "Great ambiance, but |
| * overpriced." |
| */ |
| core.String name; |
| |
| /** |
| * Property of http://schema.org/TVEpisode indicating which series the episode |
| * belongs to. |
| */ |
| ItemScope partOfTVSeries; |
| |
| /** |
| * The main performer or performers of the event-for example, a presenter, |
| * musician, or actor. |
| */ |
| core.List<ItemScope> performers; |
| |
| /** Player type that is required. For example: Flash or Silverlight. */ |
| core.String playerType; |
| |
| /** Post office box number. */ |
| core.String postOfficeBoxNumber; |
| |
| /** Postal code. */ |
| core.String postalCode; |
| |
| /** Rating value. */ |
| core.String ratingValue; |
| |
| /** Review rating. */ |
| ItemScope reviewRating; |
| |
| /** The start date and time of the event (in ISO 8601 date format). */ |
| core.String startDate; |
| |
| /** Street address. */ |
| core.String streetAddress; |
| |
| /** |
| * The text that is the result of the app activity. For example, if a user |
| * leaves a review of a restaurant, this might be the text of the review. |
| */ |
| core.String text; |
| |
| /** Thumbnail image for an image or video. */ |
| ItemScope thumbnail; |
| |
| /** A URL to a thumbnail image that represents this result. */ |
| core.String thumbnailUrl; |
| |
| /** |
| * The exchange traded instrument associated with a Corporation object. The |
| * tickerSymbol is expressed as an exchange and an instrument name separated |
| * by a space character. For the exchange component of the tickerSymbol |
| * attribute, we recommend using the controlled vocabulary of Market |
| * Identifier Codes (MIC) specified in ISO15022. |
| */ |
| core.String tickerSymbol; |
| |
| /** |
| * The schema.org URL that best describes the referenced object and matches |
| * the type of moment. |
| */ |
| core.String type; |
| |
| /** |
| * The URL that points to the result object. For example, a permalink directly |
| * to a restaurant reviewer's comment. |
| */ |
| core.String url; |
| |
| /** The width of the media object. */ |
| core.String width; |
| |
| /** |
| * Worst possible rating value that a result might obtain. This property |
| * defines the lower bound for the ratingValue. |
| */ |
| core.String worstRating; |
| |
| |
| ItemScope(); |
| |
| ItemScope.fromJson(core.Map _json) { |
| if (_json.containsKey("about")) { |
| about = new ItemScope.fromJson(_json["about"]); |
| } |
| if (_json.containsKey("additionalName")) { |
| additionalName = _json["additionalName"]; |
| } |
| if (_json.containsKey("address")) { |
| address = new ItemScope.fromJson(_json["address"]); |
| } |
| if (_json.containsKey("addressCountry")) { |
| addressCountry = _json["addressCountry"]; |
| } |
| if (_json.containsKey("addressLocality")) { |
| addressLocality = _json["addressLocality"]; |
| } |
| if (_json.containsKey("addressRegion")) { |
| addressRegion = _json["addressRegion"]; |
| } |
| if (_json.containsKey("associated_media")) { |
| associatedMedia = _json["associated_media"].map((value) => new ItemScope.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("attendeeCount")) { |
| attendeeCount = _json["attendeeCount"]; |
| } |
| if (_json.containsKey("attendees")) { |
| attendees = _json["attendees"].map((value) => new ItemScope.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("audio")) { |
| audio = new ItemScope.fromJson(_json["audio"]); |
| } |
| if (_json.containsKey("author")) { |
| author = _json["author"].map((value) => new ItemScope.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("bestRating")) { |
| bestRating = _json["bestRating"]; |
| } |
| if (_json.containsKey("birthDate")) { |
| birthDate = _json["birthDate"]; |
| } |
| if (_json.containsKey("byArtist")) { |
| byArtist = new ItemScope.fromJson(_json["byArtist"]); |
| } |
| if (_json.containsKey("caption")) { |
| caption = _json["caption"]; |
| } |
| if (_json.containsKey("contentSize")) { |
| contentSize = _json["contentSize"]; |
| } |
| if (_json.containsKey("contentUrl")) { |
| contentUrl = _json["contentUrl"]; |
| } |
| if (_json.containsKey("contributor")) { |
| contributor = _json["contributor"].map((value) => new ItemScope.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("dateCreated")) { |
| dateCreated = _json["dateCreated"]; |
| } |
| if (_json.containsKey("dateModified")) { |
| dateModified = _json["dateModified"]; |
| } |
| if (_json.containsKey("datePublished")) { |
| datePublished = _json["datePublished"]; |
| } |
| if (_json.containsKey("description")) { |
| description = _json["description"]; |
| } |
| if (_json.containsKey("duration")) { |
| duration = _json["duration"]; |
| } |
| if (_json.containsKey("embedUrl")) { |
| embedUrl = _json["embedUrl"]; |
| } |
| if (_json.containsKey("endDate")) { |
| endDate = _json["endDate"]; |
| } |
| if (_json.containsKey("familyName")) { |
| familyName = _json["familyName"]; |
| } |
| if (_json.containsKey("gender")) { |
| gender = _json["gender"]; |
| } |
| if (_json.containsKey("geo")) { |
| geo = new ItemScope.fromJson(_json["geo"]); |
| } |
| if (_json.containsKey("givenName")) { |
| givenName = _json["givenName"]; |
| } |
| if (_json.containsKey("height")) { |
| height = _json["height"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = _json["image"]; |
| } |
| if (_json.containsKey("inAlbum")) { |
| inAlbum = new ItemScope.fromJson(_json["inAlbum"]); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("latitude")) { |
| latitude = _json["latitude"]; |
| } |
| if (_json.containsKey("location")) { |
| location = new ItemScope.fromJson(_json["location"]); |
| } |
| if (_json.containsKey("longitude")) { |
| longitude = _json["longitude"]; |
| } |
| if (_json.containsKey("name")) { |
| name = _json["name"]; |
| } |
| if (_json.containsKey("partOfTVSeries")) { |
| partOfTVSeries = new ItemScope.fromJson(_json["partOfTVSeries"]); |
| } |
| if (_json.containsKey("performers")) { |
| performers = _json["performers"].map((value) => new ItemScope.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("playerType")) { |
| playerType = _json["playerType"]; |
| } |
| if (_json.containsKey("postOfficeBoxNumber")) { |
| postOfficeBoxNumber = _json["postOfficeBoxNumber"]; |
| } |
| if (_json.containsKey("postalCode")) { |
| postalCode = _json["postalCode"]; |
| } |
| if (_json.containsKey("ratingValue")) { |
| ratingValue = _json["ratingValue"]; |
| } |
| if (_json.containsKey("reviewRating")) { |
| reviewRating = new ItemScope.fromJson(_json["reviewRating"]); |
| } |
| if (_json.containsKey("startDate")) { |
| startDate = _json["startDate"]; |
| } |
| if (_json.containsKey("streetAddress")) { |
| streetAddress = _json["streetAddress"]; |
| } |
| if (_json.containsKey("text")) { |
| text = _json["text"]; |
| } |
| if (_json.containsKey("thumbnail")) { |
| thumbnail = new ItemScope.fromJson(_json["thumbnail"]); |
| } |
| if (_json.containsKey("thumbnailUrl")) { |
| thumbnailUrl = _json["thumbnailUrl"]; |
| } |
| if (_json.containsKey("tickerSymbol")) { |
| tickerSymbol = _json["tickerSymbol"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("width")) { |
| width = _json["width"]; |
| } |
| if (_json.containsKey("worstRating")) { |
| worstRating = _json["worstRating"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (about != null) { |
| _json["about"] = (about).toJson(); |
| } |
| if (additionalName != null) { |
| _json["additionalName"] = additionalName; |
| } |
| if (address != null) { |
| _json["address"] = (address).toJson(); |
| } |
| if (addressCountry != null) { |
| _json["addressCountry"] = addressCountry; |
| } |
| if (addressLocality != null) { |
| _json["addressLocality"] = addressLocality; |
| } |
| if (addressRegion != null) { |
| _json["addressRegion"] = addressRegion; |
| } |
| if (associatedMedia != null) { |
| _json["associated_media"] = associatedMedia.map((value) => (value).toJson()).toList(); |
| } |
| if (attendeeCount != null) { |
| _json["attendeeCount"] = attendeeCount; |
| } |
| if (attendees != null) { |
| _json["attendees"] = attendees.map((value) => (value).toJson()).toList(); |
| } |
| if (audio != null) { |
| _json["audio"] = (audio).toJson(); |
| } |
| if (author != null) { |
| _json["author"] = author.map((value) => (value).toJson()).toList(); |
| } |
| if (bestRating != null) { |
| _json["bestRating"] = bestRating; |
| } |
| if (birthDate != null) { |
| _json["birthDate"] = birthDate; |
| } |
| if (byArtist != null) { |
| _json["byArtist"] = (byArtist).toJson(); |
| } |
| if (caption != null) { |
| _json["caption"] = caption; |
| } |
| if (contentSize != null) { |
| _json["contentSize"] = contentSize; |
| } |
| if (contentUrl != null) { |
| _json["contentUrl"] = contentUrl; |
| } |
| if (contributor != null) { |
| _json["contributor"] = contributor.map((value) => (value).toJson()).toList(); |
| } |
| if (dateCreated != null) { |
| _json["dateCreated"] = dateCreated; |
| } |
| if (dateModified != null) { |
| _json["dateModified"] = dateModified; |
| } |
| if (datePublished != null) { |
| _json["datePublished"] = datePublished; |
| } |
| if (description != null) { |
| _json["description"] = description; |
| } |
| if (duration != null) { |
| _json["duration"] = duration; |
| } |
| if (embedUrl != null) { |
| _json["embedUrl"] = embedUrl; |
| } |
| if (endDate != null) { |
| _json["endDate"] = endDate; |
| } |
| if (familyName != null) { |
| _json["familyName"] = familyName; |
| } |
| if (gender != null) { |
| _json["gender"] = gender; |
| } |
| if (geo != null) { |
| _json["geo"] = (geo).toJson(); |
| } |
| if (givenName != null) { |
| _json["givenName"] = givenName; |
| } |
| if (height != null) { |
| _json["height"] = height; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = image; |
| } |
| if (inAlbum != null) { |
| _json["inAlbum"] = (inAlbum).toJson(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (latitude != null) { |
| _json["latitude"] = latitude; |
| } |
| if (location != null) { |
| _json["location"] = (location).toJson(); |
| } |
| if (longitude != null) { |
| _json["longitude"] = longitude; |
| } |
| if (name != null) { |
| _json["name"] = name; |
| } |
| if (partOfTVSeries != null) { |
| _json["partOfTVSeries"] = (partOfTVSeries).toJson(); |
| } |
| if (performers != null) { |
| _json["performers"] = performers.map((value) => (value).toJson()).toList(); |
| } |
| if (playerType != null) { |
| _json["playerType"] = playerType; |
| } |
| if (postOfficeBoxNumber != null) { |
| _json["postOfficeBoxNumber"] = postOfficeBoxNumber; |
| } |
| if (postalCode != null) { |
| _json["postalCode"] = postalCode; |
| } |
| if (ratingValue != null) { |
| _json["ratingValue"] = ratingValue; |
| } |
| if (reviewRating != null) { |
| _json["reviewRating"] = (reviewRating).toJson(); |
| } |
| if (startDate != null) { |
| _json["startDate"] = startDate; |
| } |
| if (streetAddress != null) { |
| _json["streetAddress"] = streetAddress; |
| } |
| if (text != null) { |
| _json["text"] = text; |
| } |
| if (thumbnail != null) { |
| _json["thumbnail"] = (thumbnail).toJson(); |
| } |
| if (thumbnailUrl != null) { |
| _json["thumbnailUrl"] = thumbnailUrl; |
| } |
| if (tickerSymbol != null) { |
| _json["tickerSymbol"] = tickerSymbol; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (width != null) { |
| _json["width"] = width; |
| } |
| if (worstRating != null) { |
| _json["worstRating"] = worstRating; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class Moment { |
| /** The moment ID. */ |
| core.String id; |
| |
| /** Identifies this resource as a moment. */ |
| core.String kind; |
| |
| /** |
| * The object on which the action was performed. Specifying this is equivalent |
| * with specifying "target". Note that responses from the server will use the |
| * "target" field instead for backward-compatibility with older clients. |
| */ |
| ItemScope object; |
| |
| /** |
| * The object generated by performing the action on the object. For example, a |
| * user writes a review of a restaurant, the object is the restaurant and the |
| * result is the review. |
| */ |
| ItemScope result; |
| |
| /** Time stamp of when the action occurred in RFC3339 format. */ |
| core.DateTime startDate; |
| |
| /** The object on which the action was performed. */ |
| ItemScope target; |
| |
| /** |
| * The schema.org type for the type of moment to write. For example, |
| * http://schema.org/AddAction. Note that responses from the server will use |
| * the Google schema type instead for backward-compatibility with older |
| * clients. For example, http://schemas.google.com/AddActivity. |
| */ |
| core.String type; |
| |
| |
| Moment(); |
| |
| Moment.fromJson(core.Map _json) { |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("object")) { |
| object = new ItemScope.fromJson(_json["object"]); |
| } |
| if (_json.containsKey("result")) { |
| result = new ItemScope.fromJson(_json["result"]); |
| } |
| if (_json.containsKey("startDate")) { |
| startDate = core.DateTime.parse(_json["startDate"]); |
| } |
| if (_json.containsKey("target")) { |
| target = new ItemScope.fromJson(_json["target"]); |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (object != null) { |
| _json["object"] = (object).toJson(); |
| } |
| if (result != null) { |
| _json["result"] = (result).toJson(); |
| } |
| if (startDate != null) { |
| _json["startDate"] = (startDate).toIso8601String(); |
| } |
| if (target != null) { |
| _json["target"] = (target).toJson(); |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class MomentsFeed { |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** The moments in this page of results. */ |
| core.List<Moment> items; |
| |
| /** |
| * Identifies this resource as a collection of moments. Value: |
| * "plus#momentsFeed". |
| */ |
| core.String kind; |
| |
| /** Link to the next page of moments. */ |
| core.String nextLink; |
| |
| /** |
| * The continuation token, which is used to page through large result sets. |
| * Provide this value in a subsequent request to return the next page of |
| * results. |
| */ |
| core.String nextPageToken; |
| |
| /** Link to this page of moments. */ |
| core.String selfLink; |
| |
| /** The title of this collection of moments. */ |
| core.String title; |
| |
| /** |
| * The RFC 339 timestamp for when this collection of moments was last updated. |
| */ |
| core.DateTime updated; |
| |
| |
| MomentsFeed(); |
| |
| MomentsFeed.fromJson(core.Map _json) { |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("items")) { |
| items = _json["items"].map((value) => new Moment.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("nextLink")) { |
| nextLink = _json["nextLink"]; |
| } |
| if (_json.containsKey("nextPageToken")) { |
| nextPageToken = _json["nextPageToken"]; |
| } |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("updated")) { |
| updated = core.DateTime.parse(_json["updated"]); |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (items != null) { |
| _json["items"] = items.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (nextLink != null) { |
| _json["nextLink"] = nextLink; |
| } |
| if (nextPageToken != null) { |
| _json["nextPageToken"] = nextPageToken; |
| } |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (updated != null) { |
| _json["updated"] = (updated).toIso8601String(); |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PeopleFeed { |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** |
| * The people in this page of results. Each item includes the id, displayName, |
| * image, and url for the person. To retrieve additional profile data, see the |
| * people.get method. |
| */ |
| core.List<Person> items; |
| |
| /** |
| * Identifies this resource as a collection of people. Value: |
| * "plus#peopleFeed". |
| */ |
| core.String kind; |
| |
| /** |
| * The continuation token, which is used to page through large result sets. |
| * Provide this value in a subsequent request to return the next page of |
| * results. |
| */ |
| core.String nextPageToken; |
| |
| /** Link to this resource. */ |
| core.String selfLink; |
| |
| /** The title of this collection of people. */ |
| core.String title; |
| |
| /** |
| * The total number of people available in this list. The number of people in |
| * a response might be smaller due to paging. This might not be set for all |
| * collections. |
| */ |
| core.int totalItems; |
| |
| |
| PeopleFeed(); |
| |
| PeopleFeed.fromJson(core.Map _json) { |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("items")) { |
| items = _json["items"].map((value) => new Person.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("nextPageToken")) { |
| nextPageToken = _json["nextPageToken"]; |
| } |
| if (_json.containsKey("selfLink")) { |
| selfLink = _json["selfLink"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("totalItems")) { |
| totalItems = _json["totalItems"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (items != null) { |
| _json["items"] = items.map((value) => (value).toJson()).toList(); |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (nextPageToken != null) { |
| _json["nextPageToken"] = nextPageToken; |
| } |
| if (selfLink != null) { |
| _json["selfLink"] = selfLink; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (totalItems != null) { |
| _json["totalItems"] = totalItems; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** |
| * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 |
| * or older. Age is determined from the user's birthday using Western age |
| * reckoning. |
| */ |
| class PersonAgeRange { |
| /** |
| * The age range's upper bound, if any. Possible values include, but are not |
| * limited to, the following: |
| * - "17" - for age 17 |
| * - "20" - for age 20 |
| */ |
| core.int max; |
| |
| /** |
| * The age range's lower bound, if any. Possible values include, but are not |
| * limited to, the following: |
| * - "21" - for age 21 |
| * - "18" - for age 18 |
| */ |
| core.int min; |
| |
| |
| PersonAgeRange(); |
| |
| PersonAgeRange.fromJson(core.Map _json) { |
| if (_json.containsKey("max")) { |
| max = _json["max"]; |
| } |
| if (_json.containsKey("min")) { |
| min = _json["min"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (max != null) { |
| _json["max"] = max; |
| } |
| if (min != null) { |
| _json["min"] = min; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Extra information about the cover photo. */ |
| class PersonCoverCoverInfo { |
| /** |
| * The difference between the left position of the cover image and the actual |
| * displayed cover image. Only valid for banner layout. |
| */ |
| core.int leftImageOffset; |
| |
| /** |
| * The difference between the top position of the cover image and the actual |
| * displayed cover image. Only valid for banner layout. |
| */ |
| core.int topImageOffset; |
| |
| |
| PersonCoverCoverInfo(); |
| |
| PersonCoverCoverInfo.fromJson(core.Map _json) { |
| if (_json.containsKey("leftImageOffset")) { |
| leftImageOffset = _json["leftImageOffset"]; |
| } |
| if (_json.containsKey("topImageOffset")) { |
| topImageOffset = _json["topImageOffset"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (leftImageOffset != null) { |
| _json["leftImageOffset"] = leftImageOffset; |
| } |
| if (topImageOffset != null) { |
| _json["topImageOffset"] = topImageOffset; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The person's primary cover image. */ |
| class PersonCoverCoverPhoto { |
| /** The height of the image. */ |
| core.int height; |
| |
| /** The URL of the image. */ |
| core.String url; |
| |
| /** The width of the image. */ |
| core.int width; |
| |
| |
| PersonCoverCoverPhoto(); |
| |
| PersonCoverCoverPhoto.fromJson(core.Map _json) { |
| if (_json.containsKey("height")) { |
| height = _json["height"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("width")) { |
| width = _json["width"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (height != null) { |
| _json["height"] = height; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (width != null) { |
| _json["width"] = width; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The cover photo content. */ |
| class PersonCover { |
| /** Extra information about the cover photo. */ |
| PersonCoverCoverInfo coverInfo; |
| |
| /** The person's primary cover image. */ |
| PersonCoverCoverPhoto coverPhoto; |
| |
| /** |
| * The layout of the cover art. Possible values include, but are not limited |
| * to, the following values: |
| * - "banner" - One large image banner. |
| */ |
| core.String layout; |
| |
| |
| PersonCover(); |
| |
| PersonCover.fromJson(core.Map _json) { |
| if (_json.containsKey("coverInfo")) { |
| coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]); |
| } |
| if (_json.containsKey("coverPhoto")) { |
| coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]); |
| } |
| if (_json.containsKey("layout")) { |
| layout = _json["layout"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (coverInfo != null) { |
| _json["coverInfo"] = (coverInfo).toJson(); |
| } |
| if (coverPhoto != null) { |
| _json["coverPhoto"] = (coverPhoto).toJson(); |
| } |
| if (layout != null) { |
| _json["layout"] = layout; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PersonEmails { |
| /** |
| * The type of address. Possible values include, but are not limited to, the |
| * following values: |
| * - "account" - Google account email address. |
| * - "home" - Home email address. |
| * - "work" - Work email address. |
| * - "other" - Other. |
| */ |
| core.String type; |
| |
| /** The email address. */ |
| core.String value; |
| |
| |
| PersonEmails(); |
| |
| PersonEmails.fromJson(core.Map _json) { |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("value")) { |
| value = _json["value"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (value != null) { |
| _json["value"] = value; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The representation of the person's profile photo. */ |
| class PersonImage { |
| /** Whether the person's profile photo is the default one */ |
| core.bool isDefault; |
| |
| /** |
| * The URL of the person's profile photo. To resize the image and crop it to a |
| * square, append the query string ?sz=x, where x is the dimension in pixels |
| * of each side. |
| */ |
| core.String url; |
| |
| |
| PersonImage(); |
| |
| PersonImage.fromJson(core.Map _json) { |
| if (_json.containsKey("isDefault")) { |
| isDefault = _json["isDefault"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (isDefault != null) { |
| _json["isDefault"] = isDefault; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** |
| * An object representation of the individual components of a person's name. |
| */ |
| class PersonName { |
| /** The family name (last name) of this person. */ |
| core.String familyName; |
| |
| /** The full name of this person, including middle names, suffixes, etc. */ |
| core.String formatted; |
| |
| /** The given name (first name) of this person. */ |
| core.String givenName; |
| |
| /** The honorific prefixes (such as "Dr." or "Mrs.") for this person. */ |
| core.String honorificPrefix; |
| |
| /** The honorific suffixes (such as "Jr.") for this person. */ |
| core.String honorificSuffix; |
| |
| /** The middle name of this person. */ |
| core.String middleName; |
| |
| |
| PersonName(); |
| |
| PersonName.fromJson(core.Map _json) { |
| if (_json.containsKey("familyName")) { |
| familyName = _json["familyName"]; |
| } |
| if (_json.containsKey("formatted")) { |
| formatted = _json["formatted"]; |
| } |
| if (_json.containsKey("givenName")) { |
| givenName = _json["givenName"]; |
| } |
| if (_json.containsKey("honorificPrefix")) { |
| honorificPrefix = _json["honorificPrefix"]; |
| } |
| if (_json.containsKey("honorificSuffix")) { |
| honorificSuffix = _json["honorificSuffix"]; |
| } |
| if (_json.containsKey("middleName")) { |
| middleName = _json["middleName"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (familyName != null) { |
| _json["familyName"] = familyName; |
| } |
| if (formatted != null) { |
| _json["formatted"] = formatted; |
| } |
| if (givenName != null) { |
| _json["givenName"] = givenName; |
| } |
| if (honorificPrefix != null) { |
| _json["honorificPrefix"] = honorificPrefix; |
| } |
| if (honorificSuffix != null) { |
| _json["honorificSuffix"] = honorificSuffix; |
| } |
| if (middleName != null) { |
| _json["middleName"] = middleName; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PersonOrganizations { |
| /** The department within the organization. Deprecated. */ |
| core.String department; |
| |
| /** |
| * A short description of the person's role in this organization. Deprecated. |
| */ |
| core.String description; |
| |
| /** The date that the person left this organization. */ |
| core.String endDate; |
| |
| /** The location of this organization. Deprecated. */ |
| core.String location; |
| |
| /** The name of the organization. */ |
| core.String name; |
| |
| /** |
| * If "true", indicates this organization is the person's primary one, which |
| * is typically interpreted as the current one. |
| */ |
| core.bool primary; |
| |
| /** The date that the person joined this organization. */ |
| core.String startDate; |
| |
| /** The person's job title or role within the organization. */ |
| core.String title; |
| |
| /** |
| * The type of organization. Possible values include, but are not limited to, |
| * the following values: |
| * - "work" - Work. |
| * - "school" - School. |
| */ |
| core.String type; |
| |
| |
| PersonOrganizations(); |
| |
| PersonOrganizations.fromJson(core.Map _json) { |
| if (_json.containsKey("department")) { |
| department = _json["department"]; |
| } |
| if (_json.containsKey("description")) { |
| description = _json["description"]; |
| } |
| if (_json.containsKey("endDate")) { |
| endDate = _json["endDate"]; |
| } |
| if (_json.containsKey("location")) { |
| location = _json["location"]; |
| } |
| if (_json.containsKey("name")) { |
| name = _json["name"]; |
| } |
| if (_json.containsKey("primary")) { |
| primary = _json["primary"]; |
| } |
| if (_json.containsKey("startDate")) { |
| startDate = _json["startDate"]; |
| } |
| if (_json.containsKey("title")) { |
| title = _json["title"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (department != null) { |
| _json["department"] = department; |
| } |
| if (description != null) { |
| _json["description"] = description; |
| } |
| if (endDate != null) { |
| _json["endDate"] = endDate; |
| } |
| if (location != null) { |
| _json["location"] = location; |
| } |
| if (name != null) { |
| _json["name"] = name; |
| } |
| if (primary != null) { |
| _json["primary"] = primary; |
| } |
| if (startDate != null) { |
| _json["startDate"] = startDate; |
| } |
| if (title != null) { |
| _json["title"] = title; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PersonPlacesLived { |
| /** If "true", this place of residence is this person's primary residence. */ |
| core.bool primary; |
| |
| /** |
| * A place where this person has lived. For example: "Seattle, WA", "Near |
| * Toronto". |
| */ |
| core.String value; |
| |
| |
| PersonPlacesLived(); |
| |
| PersonPlacesLived.fromJson(core.Map _json) { |
| if (_json.containsKey("primary")) { |
| primary = _json["primary"]; |
| } |
| if (_json.containsKey("value")) { |
| value = _json["value"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (primary != null) { |
| _json["primary"] = primary; |
| } |
| if (value != null) { |
| _json["value"] = value; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PersonUrls { |
| /** The label of the URL. */ |
| core.String label; |
| |
| /** |
| * The type of URL. Possible values include, but are not limited to, the |
| * following values: |
| * - "otherProfile" - URL for another profile. |
| * - "contributor" - URL to a site for which this person is a contributor. |
| * - "website" - URL for this Google+ Page's primary website. |
| * - "other" - Other URL. |
| */ |
| core.String type; |
| |
| /** The URL value. */ |
| core.String value; |
| |
| |
| PersonUrls(); |
| |
| PersonUrls.fromJson(core.Map _json) { |
| if (_json.containsKey("label")) { |
| label = _json["label"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| if (_json.containsKey("value")) { |
| value = _json["value"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (label != null) { |
| _json["label"] = label; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| if (value != null) { |
| _json["value"] = value; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class Person { |
| /** A short biography for this person. */ |
| core.String aboutMe; |
| |
| /** |
| * The age range of the person. Valid ranges are 17 or younger, 18 to 20, and |
| * 21 or older. Age is determined from the user's birthday using Western age |
| * reckoning. |
| */ |
| PersonAgeRange ageRange; |
| |
| /** The person's date of birth, represented as YYYY-MM-DD. */ |
| core.String birthday; |
| |
| /** The "bragging rights" line of this person. */ |
| core.String braggingRights; |
| |
| /** |
| * For followers who are visible, the number of people who have added this |
| * person or page to a circle. |
| */ |
| core.int circledByCount; |
| |
| /** The cover photo content. */ |
| PersonCover cover; |
| |
| /** (this field is not currently used) */ |
| core.String currentLocation; |
| |
| /** The name of this person, which is suitable for display. */ |
| core.String displayName; |
| |
| /** |
| * The hosted domain name for the user's Google Apps account. For instance, |
| * example.com. The plus.profile.emails.read or email scope is needed to get |
| * this domain name. |
| */ |
| core.String domain; |
| |
| /** |
| * A list of email addresses that this person has, including their Google |
| * account email address, and the public verified email addresses on their |
| * Google+ profile. The plus.profile.emails.read scope is needed to retrieve |
| * these email addresses, or the email scope can be used to retrieve just the |
| * Google account email address. |
| */ |
| core.List<PersonEmails> emails; |
| |
| /** ETag of this response for caching purposes. */ |
| core.String etag; |
| |
| /** |
| * The person's gender. Possible values include, but are not limited to, the |
| * following values: |
| * - "male" - Male gender. |
| * - "female" - Female gender. |
| * - "other" - Other. |
| */ |
| core.String gender; |
| |
| /** The ID of this person. */ |
| core.String id; |
| |
| /** The representation of the person's profile photo. */ |
| PersonImage image; |
| |
| /** Whether this user has signed up for Google+. */ |
| core.bool isPlusUser; |
| |
| /** Identifies this resource as a person. Value: "plus#person". */ |
| core.String kind; |
| |
| /** The user's preferred language for rendering. */ |
| core.String language; |
| |
| /** |
| * An object representation of the individual components of a person's name. |
| */ |
| PersonName name; |
| |
| /** The nickname of this person. */ |
| core.String nickname; |
| |
| /** |
| * Type of person within Google+. Possible values include, but are not limited |
| * to, the following values: |
| * - "person" - represents an actual person. |
| * - "page" - represents a page. |
| */ |
| core.String objectType; |
| |
| /** The occupation of this person. */ |
| core.String occupation; |
| |
| /** |
| * A list of current or past organizations with which this person is |
| * associated. |
| */ |
| core.List<PersonOrganizations> organizations; |
| |
| /** A list of places where this person has lived. */ |
| core.List<PersonPlacesLived> placesLived; |
| |
| /** If a Google+ Page, the number of people who have +1'd this page. */ |
| core.int plusOneCount; |
| |
| /** |
| * The person's relationship status. Possible values include, but are not |
| * limited to, the following values: |
| * - "single" - Person is single. |
| * - "in_a_relationship" - Person is in a relationship. |
| * - "engaged" - Person is engaged. |
| * - "married" - Person is married. |
| * - "its_complicated" - The relationship is complicated. |
| * - "open_relationship" - Person is in an open relationship. |
| * - "widowed" - Person is widowed. |
| * - "in_domestic_partnership" - Person is in a domestic partnership. |
| * - "in_civil_union" - Person is in a civil union. |
| */ |
| core.String relationshipStatus; |
| |
| /** The person's skills. */ |
| core.String skills; |
| |
| /** The brief description (tagline) of this person. */ |
| core.String tagline; |
| |
| /** The URL of this person's profile. */ |
| core.String url; |
| |
| /** A list of URLs for this person. */ |
| core.List<PersonUrls> urls; |
| |
| /** Whether the person or Google+ Page has been verified. */ |
| core.bool verified; |
| |
| |
| Person(); |
| |
| Person.fromJson(core.Map _json) { |
| if (_json.containsKey("aboutMe")) { |
| aboutMe = _json["aboutMe"]; |
| } |
| if (_json.containsKey("ageRange")) { |
| ageRange = new PersonAgeRange.fromJson(_json["ageRange"]); |
| } |
| if (_json.containsKey("birthday")) { |
| birthday = _json["birthday"]; |
| } |
| if (_json.containsKey("braggingRights")) { |
| braggingRights = _json["braggingRights"]; |
| } |
| if (_json.containsKey("circledByCount")) { |
| circledByCount = _json["circledByCount"]; |
| } |
| if (_json.containsKey("cover")) { |
| cover = new PersonCover.fromJson(_json["cover"]); |
| } |
| if (_json.containsKey("currentLocation")) { |
| currentLocation = _json["currentLocation"]; |
| } |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("domain")) { |
| domain = _json["domain"]; |
| } |
| if (_json.containsKey("emails")) { |
| emails = _json["emails"].map((value) => new PersonEmails.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("etag")) { |
| etag = _json["etag"]; |
| } |
| if (_json.containsKey("gender")) { |
| gender = _json["gender"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("image")) { |
| image = new PersonImage.fromJson(_json["image"]); |
| } |
| if (_json.containsKey("isPlusUser")) { |
| isPlusUser = _json["isPlusUser"]; |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("language")) { |
| language = _json["language"]; |
| } |
| if (_json.containsKey("name")) { |
| name = new PersonName.fromJson(_json["name"]); |
| } |
| if (_json.containsKey("nickname")) { |
| nickname = _json["nickname"]; |
| } |
| if (_json.containsKey("objectType")) { |
| objectType = _json["objectType"]; |
| } |
| if (_json.containsKey("occupation")) { |
| occupation = _json["occupation"]; |
| } |
| if (_json.containsKey("organizations")) { |
| organizations = _json["organizations"].map((value) => new PersonOrganizations.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("placesLived")) { |
| placesLived = _json["placesLived"].map((value) => new PersonPlacesLived.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("plusOneCount")) { |
| plusOneCount = _json["plusOneCount"]; |
| } |
| if (_json.containsKey("relationshipStatus")) { |
| relationshipStatus = _json["relationshipStatus"]; |
| } |
| if (_json.containsKey("skills")) { |
| skills = _json["skills"]; |
| } |
| if (_json.containsKey("tagline")) { |
| tagline = _json["tagline"]; |
| } |
| if (_json.containsKey("url")) { |
| url = _json["url"]; |
| } |
| if (_json.containsKey("urls")) { |
| urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList(); |
| } |
| if (_json.containsKey("verified")) { |
| verified = _json["verified"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (aboutMe != null) { |
| _json["aboutMe"] = aboutMe; |
| } |
| if (ageRange != null) { |
| _json["ageRange"] = (ageRange).toJson(); |
| } |
| if (birthday != null) { |
| _json["birthday"] = birthday; |
| } |
| if (braggingRights != null) { |
| _json["braggingRights"] = braggingRights; |
| } |
| if (circledByCount != null) { |
| _json["circledByCount"] = circledByCount; |
| } |
| if (cover != null) { |
| _json["cover"] = (cover).toJson(); |
| } |
| if (currentLocation != null) { |
| _json["currentLocation"] = currentLocation; |
| } |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (domain != null) { |
| _json["domain"] = domain; |
| } |
| if (emails != null) { |
| _json["emails"] = emails.map((value) => (value).toJson()).toList(); |
| } |
| if (etag != null) { |
| _json["etag"] = etag; |
| } |
| if (gender != null) { |
| _json["gender"] = gender; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (image != null) { |
| _json["image"] = (image).toJson(); |
| } |
| if (isPlusUser != null) { |
| _json["isPlusUser"] = isPlusUser; |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (language != null) { |
| _json["language"] = language; |
| } |
| if (name != null) { |
| _json["name"] = (name).toJson(); |
| } |
| if (nickname != null) { |
| _json["nickname"] = nickname; |
| } |
| if (objectType != null) { |
| _json["objectType"] = objectType; |
| } |
| if (occupation != null) { |
| _json["occupation"] = occupation; |
| } |
| if (organizations != null) { |
| _json["organizations"] = organizations.map((value) => (value).toJson()).toList(); |
| } |
| if (placesLived != null) { |
| _json["placesLived"] = placesLived.map((value) => (value).toJson()).toList(); |
| } |
| if (plusOneCount != null) { |
| _json["plusOneCount"] = plusOneCount; |
| } |
| if (relationshipStatus != null) { |
| _json["relationshipStatus"] = relationshipStatus; |
| } |
| if (skills != null) { |
| _json["skills"] = skills; |
| } |
| if (tagline != null) { |
| _json["tagline"] = tagline; |
| } |
| if (url != null) { |
| _json["url"] = url; |
| } |
| if (urls != null) { |
| _json["urls"] = urls.map((value) => (value).toJson()).toList(); |
| } |
| if (verified != null) { |
| _json["verified"] = verified; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The physical address of the place. */ |
| class PlaceAddress { |
| /** The formatted address for display. */ |
| core.String formatted; |
| |
| |
| PlaceAddress(); |
| |
| PlaceAddress.fromJson(core.Map _json) { |
| if (_json.containsKey("formatted")) { |
| formatted = _json["formatted"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (formatted != null) { |
| _json["formatted"] = formatted; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** The position of the place. */ |
| class PlacePosition { |
| /** The latitude of this position. */ |
| core.double latitude; |
| |
| /** The longitude of this position. */ |
| core.double longitude; |
| |
| |
| PlacePosition(); |
| |
| PlacePosition.fromJson(core.Map _json) { |
| if (_json.containsKey("latitude")) { |
| latitude = _json["latitude"]; |
| } |
| if (_json.containsKey("longitude")) { |
| longitude = _json["longitude"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (latitude != null) { |
| _json["latitude"] = latitude; |
| } |
| if (longitude != null) { |
| _json["longitude"] = longitude; |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class Place { |
| /** The physical address of the place. */ |
| PlaceAddress address; |
| |
| /** The display name of the place. */ |
| core.String displayName; |
| |
| /** The id of the place. */ |
| core.String id; |
| |
| /** Identifies this resource as a place. Value: "plus#place". */ |
| core.String kind; |
| |
| /** The position of the place. */ |
| PlacePosition position; |
| |
| |
| Place(); |
| |
| Place.fromJson(core.Map _json) { |
| if (_json.containsKey("address")) { |
| address = new PlaceAddress.fromJson(_json["address"]); |
| } |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("kind")) { |
| kind = _json["kind"]; |
| } |
| if (_json.containsKey("position")) { |
| position = new PlacePosition.fromJson(_json["position"]); |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (address != null) { |
| _json["address"] = (address).toJson(); |
| } |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (kind != null) { |
| _json["kind"] = kind; |
| } |
| if (position != null) { |
| _json["position"] = (position).toJson(); |
| } |
| return _json; |
| } |
| } |
| |
| |
| /** Not documented yet. */ |
| class PlusAclentryResource { |
| /** A descriptive name for this entry. Suitable for display. */ |
| core.String displayName; |
| |
| /** |
| * The ID of the entry. For entries of type "person" or "circle", this is the |
| * ID of the resource. For other types, this property is not set. |
| */ |
| core.String id; |
| |
| /** |
| * The type of entry describing to whom access is granted. Possible values |
| * are: |
| * - "person" - Access to an individual. |
| * - "circle" - Access to members of a circle. |
| * - "myCircles" - Access to members of all the person's circles. |
| * - "extendedCircles" - Access to members of all the person's circles, plus |
| * all of the people in their circles. |
| * - "domain" - Access to members of the person's Google Apps domain. |
| * - "public" - Access to anyone on the web. |
| */ |
| core.String type; |
| |
| |
| PlusAclentryResource(); |
| |
| PlusAclentryResource.fromJson(core.Map _json) { |
| if (_json.containsKey("displayName")) { |
| displayName = _json["displayName"]; |
| } |
| if (_json.containsKey("id")) { |
| id = _json["id"]; |
| } |
| if (_json.containsKey("type")) { |
| type = _json["type"]; |
| } |
| } |
| |
| core.Map toJson() { |
| var _json = new core.Map(); |
| if (displayName != null) { |
| _json["displayName"] = displayName; |
| } |
| if (id != null) { |
| _json["id"] = id; |
| } |
| if (type != null) { |
| _json["type"] = type; |
| } |
| return _json; |
| } |
| } |
| |
| |