text
stringlengths
2
1.04M
meta
dict
CsvView loves to welcome your contributions. There are several ways to help out: * Create a ticket in GitHub, if you have found a bug * Write testcases for open bug tickets * Write patches for open bug/feature tickets, preferably with testcases included * Contribute to the [documentation](https://github.com/josegonzalez/cakephp-csvview/tree/gh-pages) There are a few guidelines that we need contributors to follow so that we have a chance of keeping on top of things. ## Getting Started * Make sure you have a [GitHub account](https://github.com/signup/free) * Submit a ticket for your issue, assuming one does not already exist. * Clearly describe the issue including steps to reproduce when it is a bug. * Make sure you fill in the earliest version that you know has the issue. * Fork the repository on GitHub. ## Making Changes * Create a topic branch from where you want to base your work. * This is usually the develop branch * To quickly create a topic branch based on master; `git branch master/my_contribution master` then checkout the new branch with `git checkout master/my_contribution`. Better avoid working directly on the `master` branch, to avoid conflicts if you pull in updates from origin. * Make commits of logical units. * Check for unnecessary whitespace with `git diff --check` before committing. * Use descriptive commit messages and reference the #ticket number * Core testcases should continue to pass. You can run tests locally or enable [travis-ci](https://travis-ci.org/) for your fork, so all tests and codesniffs will be executed. * Your work should apply the CakePHP coding standards. ## Which branch to base the work * Bugfix branches will be based on develop branch. * New features that are backwards compatible will be based on develop branch * New features or other non-BC changes will go in the next major release branch. ## Submitting Changes * Push your changes to a topic branch in your fork of the repository. * Submit a pull request to the repository with the correct target branch. ## Testcases and codesniffer CsvView tests requires [PHPUnit](http://www.phpunit.de/manual/current/en/installation.html) 3.5 or higher. To run the testcases locally use the following command: ./lib/Cake/Console/cake test CsvView AllCsvView To run the sniffs for CakePHP coding standards phpcs -p --extensions=php --standard=CakePHP ./app/Plugin/CsvView Check the [cakephp-codesniffer](https://github.com/cakephp/cakephp-codesniffer) repository to setup the CakePHP standard. The README contains installation info for the sniff and phpcs. # Additional Resources * [CakePHP coding standards](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html) * [Bug tracker](https://github.com/josegonzalez/cakephp-csvview/issues) * [General GitHub documentation](https://help.github.com/) * [GitHub pull request documentation](https://help.github.com/send-pull-requests/) * #cakephp IRC channel on freenode.org
{ "content_hash": "2fad68f91eef8c398d90381da4163e36", "timestamp": "", "source": "github", "line_count": 67, "max_line_length": 105, "avg_line_length": 44.71641791044776, "alnum_prop": 0.7740320427236315, "repo_name": "digomes/newlogistic", "id": "947defbb71035f99f559c461b1a4e4df080673e8", "size": "3017", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/Plugin/CsvView/CONTRIBUTING.md", "mode": "33261", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "930" }, { "name": "Batchfile", "bytes": "3794" }, { "name": "CSS", "bytes": "84946" }, { "name": "HTML", "bytes": "140968" }, { "name": "JavaScript", "bytes": "949553" }, { "name": "PHP", "bytes": "9243953" }, { "name": "Shell", "bytes": "5517" } ], "symlink_target": "" }
module Gestpay class Iframe FALLBACK_URL = { :test => 'https://testecomm.sella.it/pagam/pagam.aspx', :production => 'https://ecomm.sella.it/pagam/pagam.aspx' } PAYMENT_3D_URL = { :test => 'https://testecomm.sella.it/pagam/pagam3d.aspx', :production => 'https://ecomm.sella.it/pagam/pagam3d.aspx' } def self.fallback_url FALLBACK_URL[Gestpay.config.environment] end def self.payment_3d_url PAYMENT_3D_URL[Gestpay.config.environment] end end end
{ "content_hash": "fea3ee7df605fadaedb14eda44f98812", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 69, "avg_line_length": 22.25, "alnum_prop": 0.6198501872659176, "repo_name": "masterkain/gestpay", "id": "135e4595d0d964db0df7a531d7beac2b3ccf05bf", "size": "534", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "lib/gestpay/iframe.rb", "mode": "33188", "license": "mit", "language": [ { "name": "Ruby", "bytes": "19561" } ], "symlink_target": "" }
Thanks for reporting an issue. Sticky-kit is actually pretty complicated and handles a lot of sticky scenarios. If the issue isn't immediately obvious when written in text then you must include a minimal case example of the problem on <http://jsfiddle.net/> or something similar to help save us some time. If you're opening a pull request, remember Sticky-kit is written in [CoffeeScript](http://coffeescript.org/), so you should be applying your patch to the CoffeeScript file and not the JavaScript files. Don't worry about building/minifying the JS files, I'm glad to do it for you. In any case, you can see how it's done in the [Makefile](https://github.com/leafo/sticky-kit/blob/master/Makefile). Thanks
{ "content_hash": "88abb337a48d60368e4cc5116cf45f68", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 78, "avg_line_length": 54.69230769230769, "alnum_prop": 0.7834036568213784, "repo_name": "diversen/coscms", "id": "827eb3de93d1bac8b3ce39a305ea89de0f932c39", "size": "742", "binary": false, "copies": "18", "ref": "refs/heads/master", "path": "htdocs/bower_components/sticky-kit/CONTRIBUTING.md", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "514" }, { "name": "PHP", "bytes": "11675" } ], "symlink_target": "" }
ACCEPTED #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "2f14525e1330029a0a092e94978a28da", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.307692307692308, "alnum_prop": 0.6940298507462687, "repo_name": "mdoering/backbone", "id": "985a14016178f4e36b6e72cb9ceed7b4271d25a3", "size": "193", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Liliopsida/Asparagales/Xanthorrhoeaceae/Xanthorrhoea/Xanthorrhoea caespitosa/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
Created for Politecnico of Milan - 3rd year <br> My first java application. My first "big" project XD <br> I know, it's horrible, i was young ;) ## Requirement - **Java 8 or above** (because i updated library and dependencies) - **DB4O** (this project is dead, but i included in this repository the original jar to compile this software, because there no db4o jar's on Maven repositories) ## News - *04/05/2015* - **Dinosaur Island** BETA1 public release [DOWNLOAD](https://github.com/Ks89/Dinosaur-Island/releases/download/v.BETA1/Dinosaur_Island.zip) ## Usage There are two different modes: Local (you can play, but alone) and Server (multi-player). <br><br> ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/1-home.png) <br> ##### Local -Start the Client and play! <br> ##### Server -Start the Server before the Clients. Read the instructions in the released zip. <br> ## Functionalities - Add a user and create a new species of dinosaur. Finally, you can play! ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/2-user.png) ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/3-create-speces.png) ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/4-dino.png) - Your dinosaurs can grow (level up) to increse HP and the movement. ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/5-dino-crescita.png) ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/6-dino-cresciuto.png) - Your dinosaurs can lay an egg to multiply. ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/7-dino-nascita.png) ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/8-dino-nato.png) - You can control a team of dinosaurs. ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/9-scelgi-dino.png) - Every movement decreases HP of your dinosaurs. If the HP drops below zero, your dinosaur will die. ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/10-dino-morto.png) ## Installation 1. Get the sources; 2. Create an Eclipse Project with Java 8 or above; 3. Install Maven Plugin for Eclipse (in Eclipse EE Luna isn't necessary); 4. Execute "eclipse:eclipse" in Run Configuration with Maven; 5. Add db4o-7.4.86.12797.jar with “Add JARs…” to the “Java Build Path” Libraries: ![alt tag](http://www.stefanocappa.it/publicfiles/Github_repositories_images/DinosaurIsland/11-scelta-db4o.png) ## License Copyright 2011-2015 Stefano Cappa (for Politecnico di Milano) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
{ "content_hash": "565b97896d1d639916fb660bab553aa3", "timestamp": "", "source": "github", "line_count": 79, "max_line_length": 161, "avg_line_length": 41.69620253164557, "alnum_prop": 0.7707953855494839, "repo_name": "Ks89/Dinosaur-Island", "id": "369f396f9c02b19217b44a62f72bc524667eadca", "size": "3322", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "358158" } ], "symlink_target": "" }
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var reducer = require('./reducer-0072fe54.js'); require('redux'); require('immer'); require('./Debug-c9078a39.js'); require('flatted'); var ai = require('./ai-c49ece0d.js'); require('./initialize-61b003a4.js'); var client = require('./client-f70782f6.js'); var React = _interopDefault(require('react')); var PropTypes = _interopDefault(require('prop-types')); var Cookies = _interopDefault(require('react-cookies')); require('./base-bdd9c13b.js'); var socketio = require('./socketio-825c2e6f.js'); require('./master-02f7a99e.js'); require('socket.io-client'); /** * Client * * boardgame.io React client. * * @param {...object} game - The return value of `Game`. * @param {...object} numPlayers - The number of players. * @param {...object} board - The React component for the game. * @param {...object} loading - (optional) The React component for the loading state. * @param {...object} multiplayer - Set to a falsy value or a transportFactory, e.g., SocketIO() * @param {...object} debug - Enables the Debug UI. * @param {...object} enhancer - Optional enhancer to send to the Redux store * * Returns: * A React component that wraps board and provides an * API through props for it to interact with the framework * and dispatch actions such as MAKE_MOVE, GAME_EVENT, RESET, * UNDO and REDO. */ function Client(opts) { var _class, _temp; var game = opts.game, numPlayers = opts.numPlayers, loading = opts.loading, board = opts.board, multiplayer = opts.multiplayer, enhancer = opts.enhancer, debug = opts.debug; // Component that is displayed before the client has synced // with the game master. if (loading === undefined) { var Loading = function Loading() { return React.createElement("div", { className: "bgio-loading" }, "connecting..."); }; loading = Loading; } /* * WrappedBoard * * The main React component that wraps the passed in * board component and adds the API to its props. */ return _temp = _class = /*#__PURE__*/ function (_React$Component) { reducer._inherits(WrappedBoard, _React$Component); function WrappedBoard(props) { var _this; reducer._classCallCheck(this, WrappedBoard); _this = reducer._possibleConstructorReturn(this, reducer._getPrototypeOf(WrappedBoard).call(this, props)); if (debug === undefined) { debug = props.debug; } _this.client = client.Client({ game: game, debug: debug, numPlayers: numPlayers, multiplayer: multiplayer, gameID: props.gameID, playerID: props.playerID, credentials: props.credentials, enhancer: enhancer }); return _this; } reducer._createClass(WrappedBoard, [{ key: "componentDidMount", value: function componentDidMount() { var _this2 = this; this.unsubscribe = this.client.subscribe(function () { return _this2.forceUpdate(); }); this.client.start(); } }, { key: "componentWillUnmount", value: function componentWillUnmount() { this.client.stop(); this.unsubscribe(); } }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps) { if (this.props.gameID != prevProps.gameID) { this.client.updateGameID(this.props.gameID); } if (this.props.playerID != prevProps.playerID) { this.client.updatePlayerID(this.props.playerID); } if (this.props.credentials != prevProps.credentials) { this.client.updateCredentials(this.props.credentials); } } }, { key: "render", value: function render() { var state = this.client.getState(); if (state === null) { return React.createElement(loading); } var _board = null; if (board) { _board = React.createElement(board, reducer._objectSpread2({}, state, {}, this.props, { isMultiplayer: !!multiplayer, moves: this.client.moves, events: this.client.events, gameID: this.client.gameID, playerID: this.client.playerID, reset: this.client.reset, undo: this.client.undo, redo: this.client.redo, gameMetadata: this.client.gameMetadata })); } return React.createElement("div", { className: "bgio-client" }, _board); } }]); return WrappedBoard; }(React.Component), reducer._defineProperty(_class, "propTypes", { // The ID of a game to connect to. // Only relevant in multiplayer. gameID: PropTypes.string, // The ID of the player associated with this client. // Only relevant in multiplayer. playerID: PropTypes.string, // This client's authentication credentials. // Only relevant in multiplayer. credentials: PropTypes.string, // Enable / disable the Debug UI. debug: PropTypes.any }), reducer._defineProperty(_class, "defaultProps", { gameID: 'default', playerID: null, credentials: null, debug: true }), _temp; } /* * Copyright 2018 The boardgame.io Authors * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ var _LobbyConnectionImpl = /*#__PURE__*/ function () { function _LobbyConnectionImpl(_ref) { var server = _ref.server, gameComponents = _ref.gameComponents, playerName = _ref.playerName, playerCredentials = _ref.playerCredentials; reducer._classCallCheck(this, _LobbyConnectionImpl); this.gameComponents = gameComponents; this.playerName = playerName || 'Visitor'; this.playerCredentials = playerCredentials; this.server = server; this.rooms = []; } reducer._createClass(_LobbyConnectionImpl, [{ key: "_baseUrl", value: function _baseUrl() { return "".concat(this.server || '', "/games"); } }, { key: "refresh", value: async function refresh() { try { this.rooms.length = 0; var resp = await fetch(this._baseUrl()); if (resp.status !== 200) { throw new Error('HTTP status ' + resp.status); } var json = await resp.json(); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = json[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var gameName = _step.value; if (!this._getGameComponents(gameName)) continue; var gameResp = await fetch(this._baseUrl() + '/' + gameName); var gameJson = await gameResp.json(); var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = gameJson.rooms[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var inst = _step2.value; inst.gameName = gameName; } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) { _iterator2["return"](); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } this.rooms = this.rooms.concat(gameJson.rooms); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator["return"] != null) { _iterator["return"](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } } catch (error) { throw new Error('failed to retrieve list of games (' + error + ')'); } } }, { key: "_getGameInstance", value: function _getGameInstance(gameID) { var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = this.rooms[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var inst = _step3.value; if (inst['gameID'] === gameID) return inst; } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) { _iterator3["return"](); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } } }, { key: "_getGameComponents", value: function _getGameComponents(gameName) { var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = this.gameComponents[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var comp = _step4.value; if (comp.game.name === gameName) return comp; } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4["return"] != null) { _iterator4["return"](); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } } }, { key: "_findPlayer", value: function _findPlayer(playerName) { var _iteratorNormalCompletion5 = true; var _didIteratorError5 = false; var _iteratorError5 = undefined; try { for (var _iterator5 = this.rooms[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { var inst = _step5.value; if (inst.players.some(function (player) { return player.name === playerName; })) return inst; } } catch (err) { _didIteratorError5 = true; _iteratorError5 = err; } finally { try { if (!_iteratorNormalCompletion5 && _iterator5["return"] != null) { _iterator5["return"](); } } finally { if (_didIteratorError5) { throw _iteratorError5; } } } } }, { key: "join", value: async function join(gameName, gameID, playerID) { try { var inst = this._findPlayer(this.playerName); if (inst) { throw new Error('player has already joined ' + inst.gameID); } inst = this._getGameInstance(gameID); if (!inst) { throw new Error('game instance ' + gameID + ' not found'); } var resp = await fetch(this._baseUrl() + '/' + gameName + '/' + gameID + '/join', { method: 'POST', body: JSON.stringify({ playerID: playerID, playerName: this.playerName }), headers: { 'Content-Type': 'application/json' } }); if (resp.status !== 200) throw new Error('HTTP status ' + resp.status); var json = await resp.json(); inst.players[Number.parseInt(playerID)].name = this.playerName; this.playerCredentials = json.playerCredentials; } catch (error) { throw new Error('failed to join room ' + gameID + ' (' + error + ')'); } } }, { key: "leave", value: async function leave(gameName, gameID) { try { var inst = this._getGameInstance(gameID); if (!inst) throw new Error('game instance not found'); var _iteratorNormalCompletion6 = true; var _didIteratorError6 = false; var _iteratorError6 = undefined; try { for (var _iterator6 = inst.players[Symbol.iterator](), _step6; !(_iteratorNormalCompletion6 = (_step6 = _iterator6.next()).done); _iteratorNormalCompletion6 = true) { var player = _step6.value; if (player.name === this.playerName) { var resp = await fetch(this._baseUrl() + '/' + gameName + '/' + gameID + '/leave', { method: 'POST', body: JSON.stringify({ playerID: player.id, credentials: this.playerCredentials }), headers: { 'Content-Type': 'application/json' } }); if (resp.status !== 200) { throw new Error('HTTP status ' + resp.status); } delete player.name; delete this.playerCredentials; return; } } } catch (err) { _didIteratorError6 = true; _iteratorError6 = err; } finally { try { if (!_iteratorNormalCompletion6 && _iterator6["return"] != null) { _iterator6["return"](); } } finally { if (_didIteratorError6) { throw _iteratorError6; } } } throw new Error('player not found in room'); } catch (error) { throw new Error('failed to leave room ' + gameID + ' (' + error + ')'); } } }, { key: "disconnect", value: async function disconnect() { var inst = this._findPlayer(this.playerName); if (inst) { await this.leave(inst.gameName, inst.gameID); } this.rooms = []; this.playerName = 'Visitor'; } }, { key: "create", value: async function create(gameName, numPlayers) { try { var comp = this._getGameComponents(gameName); if (!comp) throw new Error('game not found'); if (numPlayers < comp.game.minPlayers || numPlayers > comp.game.maxPlayers) throw new Error('invalid number of players ' + numPlayers); var resp = await fetch(this._baseUrl() + '/' + gameName + '/create', { method: 'POST', body: JSON.stringify({ numPlayers: numPlayers }), headers: { 'Content-Type': 'application/json' } }); if (resp.status !== 200) throw new Error('HTTP status ' + resp.status); } catch (error) { throw new Error('failed to create room for ' + gameName + ' (' + error + ')'); } } }]); return _LobbyConnectionImpl; }(); /** * LobbyConnection * * Lobby model. * * @param {string} server - '<host>:<port>' of the server. * @param {Array} gameComponents - A map of Board and Game objects for the supported games. * @param {string} playerName - The name of the player. * @param {string} playerCredentials - The credentials currently used by the player, if any. * * Returns: * A JS object that synchronizes the list of running game instances with the server and provides an API to create/join/start instances. */ function LobbyConnection(opts) { return new _LobbyConnectionImpl(opts); } var LobbyLoginForm = /*#__PURE__*/ function (_React$Component) { reducer._inherits(LobbyLoginForm, _React$Component); function LobbyLoginForm() { var _getPrototypeOf2; var _this; reducer._classCallCheck(this, LobbyLoginForm); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = reducer._possibleConstructorReturn(this, (_getPrototypeOf2 = reducer._getPrototypeOf(LobbyLoginForm)).call.apply(_getPrototypeOf2, [this].concat(args))); reducer._defineProperty(reducer._assertThisInitialized(_this), "state", { playerName: _this.props.playerName, nameErrorMsg: '' }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onClickEnter", function () { if (_this.state.playerName === '') return; _this.props.onEnter(_this.state.playerName); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onKeyPress", function (event) { if (event.key === 'Enter') { _this.onClickEnter(); } }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onChangePlayerName", function (event) { var name = event.target.value.trim(); _this.setState({ playerName: name, nameErrorMsg: name.length > 0 ? '' : 'empty player name' }); }); return _this; } reducer._createClass(LobbyLoginForm, [{ key: "render", value: function render() { return React.createElement("div", null, React.createElement("p", { className: "phase-title" }, "Choose a player name:"), React.createElement("input", { type: "text", value: this.state.playerName, onChange: this.onChangePlayerName, onKeyPress: this.onKeyPress }), React.createElement("span", { className: "buttons" }, React.createElement("button", { className: "buttons", onClick: this.onClickEnter }, "Enter")), React.createElement("br", null), React.createElement("span", { className: "error-msg" }, this.state.nameErrorMsg, React.createElement("br", null))); } }]); return LobbyLoginForm; }(React.Component); reducer._defineProperty(LobbyLoginForm, "propTypes", { playerName: PropTypes.string, onEnter: PropTypes.func.isRequired }); reducer._defineProperty(LobbyLoginForm, "defaultProps", { playerName: '' }); var LobbyRoomInstance = /*#__PURE__*/ function (_React$Component) { reducer._inherits(LobbyRoomInstance, _React$Component); function LobbyRoomInstance() { var _getPrototypeOf2; var _this; reducer._classCallCheck(this, LobbyRoomInstance); for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } _this = reducer._possibleConstructorReturn(this, (_getPrototypeOf2 = reducer._getPrototypeOf(LobbyRoomInstance)).call.apply(_getPrototypeOf2, [this].concat(args))); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createSeat", function (player) { return player.name || '[free]'; }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createButtonJoin", function (inst, seatId) { return React.createElement("button", { key: 'button-join-' + inst.gameID, onClick: function onClick() { return _this.props.onClickJoin(inst.gameName, inst.gameID, '' + seatId); } }, "Join"); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createButtonLeave", function (inst) { return React.createElement("button", { key: 'button-leave-' + inst.gameID, onClick: function onClick() { return _this.props.onClickLeave(inst.gameName, inst.gameID); } }, "Leave"); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createButtonPlay", function (inst, seatId) { return React.createElement("button", { key: 'button-play-' + inst.gameID, onClick: function onClick() { return _this.props.onClickPlay(inst.gameName, { gameID: inst.gameID, playerID: '' + seatId, numPlayers: inst.players.length }); } }, "Play"); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createButtonSpectate", function (inst) { return React.createElement("button", { key: 'button-spectate-' + inst.gameID, onClick: function onClick() { return _this.props.onClickPlay(inst.gameName, { gameID: inst.gameID, numPlayers: inst.players.length }); } }, "Spectate"); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createInstanceButtons", function (inst) { var playerSeat = inst.players.find(function (player) { return player.name === _this.props.playerName; }); var freeSeat = inst.players.find(function (player) { return !player.name; }); if (playerSeat && freeSeat) { // already seated: waiting for game to start return _this._createButtonLeave(inst); } if (freeSeat) { // at least 1 seat is available return _this._createButtonJoin(inst, freeSeat.id); } // room is full if (playerSeat) { return React.createElement("div", null, [_this._createButtonPlay(inst, playerSeat.id), _this._createButtonLeave(inst)]); } // allow spectating return _this._createButtonSpectate(inst); }); return _this; } reducer._createClass(LobbyRoomInstance, [{ key: "render", value: function render() { var room = this.props.room; var status = 'OPEN'; if (!room.players.find(function (player) { return !player.name; })) { status = 'RUNNING'; } return React.createElement("tr", { key: 'line-' + room.gameID }, React.createElement("td", { key: 'cell-name-' + room.gameID }, room.gameName), React.createElement("td", { key: 'cell-status-' + room.gameID }, status), React.createElement("td", { key: 'cell-seats-' + room.gameID }, room.players.map(this._createSeat).join(', ')), React.createElement("td", { key: 'cell-buttons-' + room.gameID }, this._createInstanceButtons(room))); } }]); return LobbyRoomInstance; }(React.Component); reducer._defineProperty(LobbyRoomInstance, "propTypes", { room: PropTypes.shape({ gameName: PropTypes.string.isRequired, gameID: PropTypes.string.isRequired, players: PropTypes.array.isRequired }), playerName: PropTypes.string.isRequired, onClickJoin: PropTypes.func.isRequired, onClickLeave: PropTypes.func.isRequired, onClickPlay: PropTypes.func.isRequired }); var LobbyCreateRoomForm = /*#__PURE__*/ function (_React$Component) { reducer._inherits(LobbyCreateRoomForm, _React$Component); function LobbyCreateRoomForm(props) { var _this; reducer._classCallCheck(this, LobbyCreateRoomForm); _this = reducer._possibleConstructorReturn(this, reducer._getPrototypeOf(LobbyCreateRoomForm).call(this, props)); /* fix min and max number of players */ reducer._defineProperty(reducer._assertThisInitialized(_this), "state", { selectedGame: 0, numPlayers: 2 }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createGameNameOption", function (game, idx) { return React.createElement("option", { key: 'name-option-' + idx, value: idx }, game.game.name); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createNumPlayersOption", function (idx) { return React.createElement("option", { key: 'num-option-' + idx, value: idx }, idx); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createNumPlayersRange", function (game) { return reducer._toConsumableArray(new Array(game.maxPlayers + 1).keys()).slice(game.minPlayers); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onChangeNumPlayers", function (event) { _this.setState({ numPlayers: Number.parseInt(event.target.value) }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onChangeSelectedGame", function (event) { var idx = Number.parseInt(event.target.value); _this.setState({ selectedGame: idx, numPlayers: _this.props.games[idx].game.minPlayers }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "onClickCreate", function () { _this.props.createGame(_this.props.games[_this.state.selectedGame].game.name, _this.state.numPlayers); }); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = props.games[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var game = _step.value; var game_details = game.game; if (!game_details.minPlayers) { game_details.minPlayers = 1; } if (!game_details.maxPlayers) { game_details.maxPlayers = 4; } console.assert(game_details.maxPlayers >= game_details.minPlayers); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator["return"] != null) { _iterator["return"](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } _this.state = { selectedGame: 0, numPlayers: props.games[0].game.minPlayers }; return _this; } reducer._createClass(LobbyCreateRoomForm, [{ key: "render", value: function render() { var _this2 = this; return React.createElement("div", null, React.createElement("select", { value: this.state.selectedGame, onChange: function onChange(evt) { return _this2.onChangeSelectedGame(evt); } }, this.props.games.map(this._createGameNameOption)), React.createElement("span", null, "Players:"), React.createElement("select", { value: this.state.numPlayers, onChange: this.onChangeNumPlayers }, this._createNumPlayersRange(this.props.games[this.state.selectedGame].game).map(this._createNumPlayersOption)), React.createElement("span", { className: "buttons" }, React.createElement("button", { onClick: this.onClickCreate }, "Create"))); } }]); return LobbyCreateRoomForm; }(React.Component); reducer._defineProperty(LobbyCreateRoomForm, "propTypes", { games: PropTypes.array.isRequired, createGame: PropTypes.func.isRequired }); var LobbyPhases = { ENTER: 'enter', PLAY: 'play', LIST: 'list' }; /** * Lobby * * React lobby component. * * @param {Array} gameComponents - An array of Board and Game objects for the supported games. * @param {string} lobbyServer - Address of the lobby server (for example 'localhost:8000'). * If not set, defaults to the server that served the page. * @param {string} gameServer - Address of the game server (for example 'localhost:8001'). * If not set, defaults to the server that served the page. * @param {function} clientFactory - Function that is used to create the game clients. * @param {number} refreshInterval - Interval between server updates (default: 2000ms). * @param {bool} debug - Enable debug information (default: false). * * Returns: * A React component that provides a UI to create, list, join, leave, play or spectate game instances. */ var Lobby = /*#__PURE__*/ function (_React$Component) { reducer._inherits(Lobby, _React$Component); function Lobby(_props) { var _this; reducer._classCallCheck(this, Lobby); _this = reducer._possibleConstructorReturn(this, reducer._getPrototypeOf(Lobby).call(this, _props)); reducer._defineProperty(reducer._assertThisInitialized(_this), "state", { phase: LobbyPhases.ENTER, playerName: 'Visitor', runningGame: null, errorMsg: '', credentialStore: {} }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createConnection", function (props) { var name = _this.state.playerName; _this.connection = LobbyConnection({ server: props.lobbyServer, gameComponents: props.gameComponents, playerName: name, playerCredentials: _this.state.credentialStore[name] }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_updateCredentials", function (playerName, credentials) { _this.setState(function (prevState) { // clone store or componentDidUpdate will not be triggered var store = Object.assign({}, prevState.credentialStore); store[[playerName]] = credentials; return { credentialStore: store }; }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_updateConnection", async function () { await _this.connection.refresh(); _this.forceUpdate(); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_enterLobby", function (playerName) { _this.setState({ playerName: playerName, phase: LobbyPhases.LIST }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_exitLobby", async function () { await _this.connection.disconnect(); _this.setState({ phase: LobbyPhases.ENTER, errorMsg: '' }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_createRoom", async function (gameName, numPlayers) { try { await _this.connection.create(gameName, numPlayers); await _this.connection.refresh(); // rerender _this.setState({}); } catch (error) { _this.setState({ errorMsg: error.message }); } }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_joinRoom", async function (gameName, gameID, playerID) { try { await _this.connection.join(gameName, gameID, playerID); await _this.connection.refresh(); _this._updateCredentials(_this.connection.playerName, _this.connection.playerCredentials); } catch (error) { _this.setState({ errorMsg: error.message }); } }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_leaveRoom", async function (gameName, gameID) { try { await _this.connection.leave(gameName, gameID); await _this.connection.refresh(); _this._updateCredentials(_this.connection.playerName, _this.connection.playerCredentials); } catch (error) { _this.setState({ errorMsg: error.message }); } }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_startGame", function (gameName, gameOpts) { var gameCode = _this.connection._getGameComponents(gameName); if (!gameCode) { _this.setState({ errorMsg: 'game ' + gameName + ' not supported' }); return; } var multiplayer = undefined; if (gameOpts.numPlayers > 1) { if (_this.props.gameServer) { multiplayer = socketio.SocketIO({ server: _this.props.gameServer }); } else { multiplayer = socketio.SocketIO(); } } if (gameOpts.numPlayers == 1) { var maxPlayers = gameCode.game.maxPlayers; var bots = {}; for (var i = 1; i < maxPlayers; i++) { bots[i + ''] = ai.MCTSBot; } multiplayer = socketio.Local({ bots: bots }); } var app = _this.props.clientFactory({ game: gameCode.game, board: gameCode.board, debug: _this.props.debug, multiplayer: multiplayer }); var game = { app: app, gameID: gameOpts.gameID, playerID: gameOpts.numPlayers > 1 ? gameOpts.playerID : '0', credentials: _this.connection.playerCredentials }; _this.setState({ phase: LobbyPhases.PLAY, runningGame: game }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_exitRoom", function () { _this.setState({ phase: LobbyPhases.LIST, runningGame: null }); }); reducer._defineProperty(reducer._assertThisInitialized(_this), "_getPhaseVisibility", function (phase) { return _this.state.phase !== phase ? 'hidden' : 'phase'; }); reducer._defineProperty(reducer._assertThisInitialized(_this), "renderRooms", function (rooms, playerName) { return rooms.map(function (room) { var gameID = room.gameID, gameName = room.gameName, players = room.players; return React.createElement(LobbyRoomInstance, { key: 'instance-' + gameID, room: { gameID: gameID, gameName: gameName, players: Object.values(players) }, playerName: playerName, onClickJoin: _this._joinRoom, onClickLeave: _this._leaveRoom, onClickPlay: _this._startGame }); }); }); _this._createConnection(_this.props); setInterval(_this._updateConnection, _this.props.refreshInterval); return _this; } reducer._createClass(Lobby, [{ key: "componentDidMount", value: function componentDidMount() { var cookie = Cookies.load('lobbyState') || {}; if (cookie.phase && cookie.phase === LobbyPhases.PLAY) { cookie.phase = LobbyPhases.LIST; } this.setState({ phase: cookie.phase || LobbyPhases.ENTER, playerName: cookie.playerName || 'Visitor', credentialStore: cookie.credentialStore || {} }); } }, { key: "componentDidUpdate", value: function componentDidUpdate(prevProps, prevState) { var name = this.state.playerName; var creds = this.state.credentialStore[name]; if (prevState.phase !== this.state.phase || prevState.credentialStore[name] !== creds || prevState.playerName !== name) { this._createConnection(this.props); this._updateConnection(); var cookie = { phase: this.state.phase, playerName: name, credentialStore: this.state.credentialStore }; Cookies.save('lobbyState', cookie, { path: '/' }); } } }, { key: "render", value: function render() { var _this$props = this.props, gameComponents = _this$props.gameComponents, renderer = _this$props.renderer; var _this$state = this.state, errorMsg = _this$state.errorMsg, playerName = _this$state.playerName, phase = _this$state.phase, runningGame = _this$state.runningGame; if (renderer) { return renderer({ errorMsg: errorMsg, gameComponents: gameComponents, rooms: this.connection.rooms, phase: phase, playerName: playerName, runningGame: runningGame, handleEnterLobby: this._enterLobby, handleExitLobby: this._exitLobby, handleCreateRoom: this._createRoom, handleJoinRoom: this._joinRoom, handleLeaveRoom: this._leaveRoom, handleExitRoom: this._exitRoom, handleRefreshRooms: this._updateConnection, handleStartGame: this._startGame }); } return React.createElement("div", { id: "lobby-view", style: { padding: 50 } }, React.createElement("div", { className: this._getPhaseVisibility(LobbyPhases.ENTER) }, React.createElement(LobbyLoginForm, { key: playerName, playerName: playerName, onEnter: this._enterLobby })), React.createElement("div", { className: this._getPhaseVisibility(LobbyPhases.LIST) }, React.createElement("p", null, "Welcome, ", playerName), React.createElement("div", { className: "phase-title", id: "game-creation" }, React.createElement("span", null, "Create a room:"), React.createElement(LobbyCreateRoomForm, { games: gameComponents, createGame: this._createRoom })), React.createElement("p", { className: "phase-title" }, "Join a room:"), React.createElement("div", { id: "instances" }, React.createElement("table", null, React.createElement("tbody", null, this.renderRooms(this.connection.rooms, playerName))), React.createElement("span", { className: "error-msg" }, errorMsg, React.createElement("br", null))), React.createElement("p", { className: "phase-title" }, "Rooms that become empty are automatically deleted.")), React.createElement("div", { className: this._getPhaseVisibility(LobbyPhases.PLAY) }, runningGame && React.createElement(runningGame.app, { gameID: runningGame.gameID, playerID: runningGame.playerID, credentials: runningGame.credentials }), React.createElement("div", { className: "buttons", id: "game-exit" }, React.createElement("button", { onClick: this._exitRoom }, "Exit game"))), React.createElement("div", { className: "buttons", id: "lobby-exit" }, React.createElement("button", { onClick: this._exitLobby }, "Exit lobby"))); } }]); return Lobby; }(React.Component); reducer._defineProperty(Lobby, "propTypes", { gameComponents: PropTypes.array.isRequired, lobbyServer: PropTypes.string, gameServer: PropTypes.string, debug: PropTypes.bool, clientFactory: PropTypes.func, refreshInterval: PropTypes.number }); reducer._defineProperty(Lobby, "defaultProps", { debug: false, clientFactory: Client, refreshInterval: 2000 }); exports.Client = Client; exports.Lobby = Lobby;
{ "content_hash": "70e8f3d6ee885bcb0b825393710dfa4a", "timestamp": "", "source": "github", "line_count": 1202, "max_line_length": 182, "avg_line_length": 31.795341098169718, "alnum_prop": 0.5978858129677116, "repo_name": "cdnjs/cdnjs", "id": "2587fa5d51f491488cab7ea60d8e1a1636254433", "size": "38218", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ajax/libs/boardgame-io/0.39.5/cjs/react.js", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
require 'google/protobuf' require 'google/api/annotations_pb' require 'google/api/client_pb' require 'google/api/field_behavior_pb' require 'google/api/resource_pb' require 'google/monitoring/v3/uptime_pb' require 'google/protobuf/empty_pb' require 'google/protobuf/field_mask_pb' Google::Protobuf::DescriptorPool.generated_pool.build do add_file("google/monitoring/v3/uptime_service.proto", :syntax => :proto3) do add_message "google.monitoring.v3.ListUptimeCheckConfigsRequest" do optional :parent, :string, 1 optional :page_size, :int32, 3 optional :page_token, :string, 4 end add_message "google.monitoring.v3.ListUptimeCheckConfigsResponse" do repeated :uptime_check_configs, :message, 1, "google.monitoring.v3.UptimeCheckConfig" optional :next_page_token, :string, 2 optional :total_size, :int32, 3 end add_message "google.monitoring.v3.GetUptimeCheckConfigRequest" do optional :name, :string, 1 end add_message "google.monitoring.v3.CreateUptimeCheckConfigRequest" do optional :parent, :string, 1 optional :uptime_check_config, :message, 2, "google.monitoring.v3.UptimeCheckConfig" end add_message "google.monitoring.v3.UpdateUptimeCheckConfigRequest" do optional :update_mask, :message, 2, "google.protobuf.FieldMask" optional :uptime_check_config, :message, 3, "google.monitoring.v3.UptimeCheckConfig" end add_message "google.monitoring.v3.DeleteUptimeCheckConfigRequest" do optional :name, :string, 1 end add_message "google.monitoring.v3.ListUptimeCheckIpsRequest" do optional :page_size, :int32, 2 optional :page_token, :string, 3 end add_message "google.monitoring.v3.ListUptimeCheckIpsResponse" do repeated :uptime_check_ips, :message, 1, "google.monitoring.v3.UptimeCheckIp" optional :next_page_token, :string, 2 end end end module Google module Cloud module Monitoring module V3 ListUptimeCheckConfigsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckConfigsRequest").msgclass ListUptimeCheckConfigsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckConfigsResponse").msgclass GetUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.GetUptimeCheckConfigRequest").msgclass CreateUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.CreateUptimeCheckConfigRequest").msgclass UpdateUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.UpdateUptimeCheckConfigRequest").msgclass DeleteUptimeCheckConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.DeleteUptimeCheckConfigRequest").msgclass ListUptimeCheckIpsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckIpsRequest").msgclass ListUptimeCheckIpsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.monitoring.v3.ListUptimeCheckIpsResponse").msgclass end end end end
{ "content_hash": "a9a928b2ce0a13e772c31723f9735242", "timestamp": "", "source": "github", "line_count": 63, "max_line_length": 161, "avg_line_length": 51.93650793650794, "alnum_prop": 0.7606968215158925, "repo_name": "googleapis/google-cloud-ruby", "id": "18f60826ae03caeb06d618560b0938f4e2d2315c", "size": "3384", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "google-cloud-monitoring-v3/lib/google/monitoring/v3/uptime_service_pb.rb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "23930" }, { "name": "CSS", "bytes": "1422" }, { "name": "DIGITAL Command Language", "bytes": "2216" }, { "name": "Go", "bytes": "1321" }, { "name": "HTML", "bytes": "66414" }, { "name": "JavaScript", "bytes": "1862" }, { "name": "Ruby", "bytes": "103945852" }, { "name": "Shell", "bytes": "19653" } ], "symlink_target": "" }
import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import fnmatch import numpy import pytest import pickle from lasio import las, read, exceptions test_dir = os.path.dirname(__file__) egfn = lambda fn: os.path.join(os.path.dirname(__file__), "examples", fn) stegfn = lambda vers, fn: os.path.join(os.path.dirname(__file__), "examples", vers, fn) def test_pickle_default_wb(): las = read(egfn("sample.las")) with open("binary_serialization", "wb") as fw: pickle.dump(las, fw) with open("binary_serialization", "rb") as fr: las = pickle.load(fr) os.remove("binary_serialization")
{ "content_hash": "916e58cbe9a351a60ce23a13e26cced8", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 87, "avg_line_length": 24.846153846153847, "alnum_prop": 0.6687306501547987, "repo_name": "kinverarity1/las-reader", "id": "286916289c723200a1aeff0ce1b27684673a25b1", "size": "646", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "tests/test_serialization.py", "mode": "33188", "license": "mit", "language": [ { "name": "Jupyter Notebook", "bytes": "666403" }, { "name": "Lasso", "bytes": "4852765" }, { "name": "Python", "bytes": "82570" } ], "symlink_target": "" }
<component name="libraryTable"> <library name="firebase-common-9.0.2"> <CLASSES> <root url="jar://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.google.firebase/firebase-common/9.0.2/jars/classes.jar!/" /> <root url="file://$PROJECT_DIR$/app/build/intermediates/exploded-aar/com.google.firebase/firebase-common/9.0.2/res" /> </CLASSES> <JAVADOC /> <SOURCES /> </library> </component>
{ "content_hash": "1364226624c010ef152440081ffa0117", "timestamp": "", "source": "github", "line_count": 10, "max_line_length": 138, "avg_line_length": 42.3, "alnum_prop": 0.6784869976359338, "repo_name": "vince16/CopperMobileProjects", "id": "c50865db101a5171a01f7967ca72dca767abdb1d", "size": "423", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "MyZomato/.idea/libraries/firebase_common_9_0_2.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "89822" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_45) on Sun Mar 27 18:44:33 IDT 2016 --> <title>DublinCoreFactory</title> <meta name="date" content="2016-03-27"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="DublinCoreFactory"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":9,"i6":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/exlibris/core/sdk/formatting/DublinCoreFactory.html" target="_top">Frames</a></li> <li><a href="DublinCoreFactory.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.exlibris.core.sdk.formatting</div> <h2 title="Class DublinCoreFactory" class="title">Class DublinCoreFactory</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.exlibris.core.sdk.formatting.DublinCoreFactory</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="typeNameLabel">DublinCoreFactory</span> extends java.lang.Object</pre> <div class="block">Factory class for a Dublin Core object</div> <dl> <dt><span class="simpleTagLabel">Author:</span></dt> <dd>GuyP</dd> </dl> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#DC_PREFIX">DC_PREFIX</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#DC_ROOT">DC_ROOT</a></span></code>&nbsp;</td> </tr> <tr class="altColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#DCTERM_PREFIX">DCTERM_PREFIX</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#RECORD">RECORD</a></span></code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#createDocument--">createDocument</a></span>()</code>&nbsp;</td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#createDocument-java.util.Map-">createDocument</a></span>(java.util.Map&nbsp;map)</code>&nbsp;</td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#createDocument-java.lang.String-">createDocument</a></span>(java.lang.String&nbsp;xml)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#createDocumentwMultiFields-java.util.Map-">createDocumentwMultiFields</a></span>(java.util.Map&lt;java.lang.String,java.util.List&lt;java.lang.String&gt;&gt;&nbsp;map)</code>&nbsp;</td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>static <a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html" title="class in com.exlibris.core.sdk.formatting">DublinCoreFactory</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#getInstance--">getInstance</a></span>()</code>&nbsp;</td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>static void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#main-java.lang.String:A-">main</a></span>(java.lang.String[]&nbsp;args)</code>&nbsp;</td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html#normalizeRoot-java.lang.String-">normalizeRoot</a></span>(java.lang.String&nbsp;xml)</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="DC_ROOT"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DC_ROOT</h4> <pre>public static final&nbsp;java.lang.String DC_ROOT</pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#com.exlibris.core.sdk.formatting.DublinCoreFactory.DC_ROOT">Constant Field Values</a></dd> </dl> </li> </ul> <a name="RECORD"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>RECORD</h4> <pre>public static final&nbsp;java.lang.String RECORD</pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#com.exlibris.core.sdk.formatting.DublinCoreFactory.RECORD">Constant Field Values</a></dd> </dl> </li> </ul> <a name="DC_PREFIX"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>DC_PREFIX</h4> <pre>public static final&nbsp;java.lang.String DC_PREFIX</pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#com.exlibris.core.sdk.formatting.DublinCoreFactory.DC_PREFIX">Constant Field Values</a></dd> </dl> </li> </ul> <a name="DCTERM_PREFIX"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>DCTERM_PREFIX</h4> <pre>public static final&nbsp;java.lang.String DCTERM_PREFIX</pre> <dl> <dt><span class="seeLabel">See Also:</span></dt> <dd><a href="../../../../../constant-values.html#com.exlibris.core.sdk.formatting.DublinCoreFactory.DCTERM_PREFIX">Constant Field Values</a></dd> </dl> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getInstance--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getInstance</h4> <pre>public static&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCoreFactory.html" title="class in com.exlibris.core.sdk.formatting">DublinCoreFactory</a>&nbsp;getInstance()</pre> </li> </ul> <a name="createDocumentwMultiFields-java.util.Map-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createDocumentwMultiFields</h4> <pre>public&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a>&nbsp;createDocumentwMultiFields(java.util.Map&lt;java.lang.String,java.util.List&lt;java.lang.String&gt;&gt;&nbsp;map)</pre> </li> </ul> <a name="createDocument-java.util.Map-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createDocument</h4> <pre>public&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a>&nbsp;createDocument(java.util.Map&nbsp;map)</pre> </li> </ul> <a name="createDocument--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createDocument</h4> <pre>public&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a>&nbsp;createDocument()</pre> </li> </ul> <a name="createDocument-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>createDocument</h4> <pre>public&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a>&nbsp;createDocument(java.lang.String&nbsp;xml) throws org.dom4j.DocumentException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>org.dom4j.DocumentException</code></dd> </dl> </li> </ul> <a name="normalizeRoot-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>normalizeRoot</h4> <pre>public&nbsp;<a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting">DublinCore</a>&nbsp;normalizeRoot(java.lang.String&nbsp;xml) throws org.dom4j.DocumentException</pre> <dl> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code>org.dom4j.DocumentException</code></dd> </dl> </li> </ul> <a name="main-java.lang.String:A-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>main</h4> <pre>public static&nbsp;void&nbsp;main(java.lang.String[]&nbsp;args)</pre> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../index-all.html">Index</a></li> <li><a href="../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../../com/exlibris/core/sdk/formatting/DublinCore.html" title="class in com.exlibris.core.sdk.formatting"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li>Next&nbsp;Class</li> </ul> <ul class="navList"> <li><a href="../../../../../index.html?com/exlibris/core/sdk/formatting/DublinCoreFactory.html" target="_top">Frames</a></li> <li><a href="DublinCoreFactory.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li>Constr&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
{ "content_hash": "124c9ef0c7c818065e08a2fa9dc3b0b5", "timestamp": "", "source": "github", "line_count": 419, "max_line_length": 524, "avg_line_length": 39.89976133651551, "alnum_prop": 0.6506759181720302, "repo_name": "ExLibrisGroup/Rosetta.dps-sdk-projects", "id": "03fec1e186e6f883cff949b488fd5324dc49eed6", "size": "16718", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "5.0.1/javadoc/com/exlibris/core/sdk/formatting/DublinCoreFactory.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Java", "bytes": "4697410" }, { "name": "Shell", "bytes": "297" } ], "symlink_target": "" }
.class public abstract Landroid/print/IPrintJobStateChangeListener$Stub; .super Landroid/os/Binder; .source "IPrintJobStateChangeListener.java" # interfaces .implements Landroid/print/IPrintJobStateChangeListener; # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Landroid/print/IPrintJobStateChangeListener; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x409 name = "Stub" .end annotation .annotation system Ldalvik/annotation/MemberClasses; value = { Landroid/print/IPrintJobStateChangeListener$Stub$Proxy; } .end annotation # static fields .field private static final DESCRIPTOR:Ljava/lang/String; = "android.print.IPrintJobStateChangeListener" .field static final TRANSACTION_onPrintJobStateChanged:I = 0x1 # direct methods .method public constructor <init>()V .registers 2 .prologue .line 18 invoke-direct {p0}, Landroid/os/Binder;-><init>()V .line 20 const-string/jumbo v0, "android.print.IPrintJobStateChangeListener" invoke-virtual {p0, p0, v0}, Landroid/print/IPrintJobStateChangeListener$Stub;->attachInterface(Landroid/os/IInterface;Ljava/lang/String;)V .line 18 return-void .end method .method public static asInterface(Landroid/os/IBinder;)Landroid/print/IPrintJobStateChangeListener; .registers 3 .param p0, "obj" # Landroid/os/IBinder; .prologue const/4 v1, 0x0 .line 28 if-nez p0, :cond_4 .line 29 return-object v1 .line 31 :cond_4 const-string/jumbo v1, "android.print.IPrintJobStateChangeListener" invoke-interface {p0, v1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface; move-result-object v0 .line 32 .local v0, "iin":Landroid/os/IInterface; if-eqz v0, :cond_14 instance-of v1, v0, Landroid/print/IPrintJobStateChangeListener; if-eqz v1, :cond_14 .line 33 check-cast v0, Landroid/print/IPrintJobStateChangeListener; .end local v0 # "iin":Landroid/os/IInterface; return-object v0 .line 35 .restart local v0 # "iin":Landroid/os/IInterface; :cond_14 new-instance v1, Landroid/print/IPrintJobStateChangeListener$Stub$Proxy; invoke-direct {v1, p0}, Landroid/print/IPrintJobStateChangeListener$Stub$Proxy;-><init>(Landroid/os/IBinder;)V return-object v1 .end method # virtual methods .method public asBinder()Landroid/os/IBinder; .registers 1 .prologue .line 39 return-object p0 .end method .method public onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z .registers 8 .param p1, "code" # I .param p2, "data" # Landroid/os/Parcel; .param p3, "reply" # Landroid/os/Parcel; .param p4, "flags" # I .annotation system Ldalvik/annotation/Throws; value = { Landroid/os/RemoteException; } .end annotation .prologue const/4 v2, 0x1 .line 43 sparse-switch p1, :sswitch_data_2a .line 64 invoke-super {p0, p1, p2, p3, p4}, Landroid/os/Binder;->onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z move-result v1 return v1 .line 47 :sswitch_9 const-string/jumbo v1, "android.print.IPrintJobStateChangeListener" invoke-virtual {p3, v1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V .line 48 return v2 .line 52 :sswitch_10 const-string/jumbo v1, "android.print.IPrintJobStateChangeListener" invoke-virtual {p2, v1}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V .line 54 invoke-virtual {p2}, Landroid/os/Parcel;->readInt()I move-result v1 if-eqz v1, :cond_28 .line 55 sget-object v1, Landroid/print/PrintJobId;->CREATOR:Landroid/os/Parcelable$Creator; invoke-interface {v1, p2}, Landroid/os/Parcelable$Creator;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object; move-result-object v0 check-cast v0, Landroid/print/PrintJobId; .line 60 :goto_24 invoke-virtual {p0, v0}, Landroid/print/IPrintJobStateChangeListener$Stub;->onPrintJobStateChanged(Landroid/print/PrintJobId;)V .line 61 return v2 .line 58 :cond_28 const/4 v0, 0x0 .local v0, "_arg0":Landroid/print/PrintJobId; goto :goto_24 .line 43 :sswitch_data_2a .sparse-switch 0x1 -> :sswitch_10 0x5f4e5446 -> :sswitch_9 .end sparse-switch .end method
{ "content_hash": "bebf07b09aa0698d02510622dfdb2a61", "timestamp": "", "source": "github", "line_count": 180, "max_line_length": 143, "avg_line_length": 24.65, "alnum_prop": 0.6991210277214334, "repo_name": "ddki/my_study_project", "id": "fdb61f839af19cc369b3b79c926f27052d6ee3d0", "size": "4437", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "client/android/demos/ODEX/test/framework/android/print/IPrintJobStateChangeListener$Stub.smali", "mode": "33188", "license": "mit", "language": [ { "name": "AspectJ", "bytes": "3520" }, { "name": "Batchfile", "bytes": "10160" }, { "name": "C", "bytes": "43156" }, { "name": "C++", "bytes": "16295" }, { "name": "CSS", "bytes": "54735" }, { "name": "Dockerfile", "bytes": "538" }, { "name": "Elixir", "bytes": "7538" }, { "name": "GAP", "bytes": "133251" }, { "name": "Go", "bytes": "23393" }, { "name": "HTML", "bytes": "183017" }, { "name": "Haskell", "bytes": "18024" }, { "name": "Java", "bytes": "3890824" }, { "name": "JavaScript", "bytes": "1150724" }, { "name": "Lex", "bytes": "22606" }, { "name": "Makefile", "bytes": "1772" }, { "name": "Objective-C", "bytes": "9224" }, { "name": "PHP", "bytes": "31" }, { "name": "Python", "bytes": "2968992" }, { "name": "Ragel", "bytes": "16770" }, { "name": "Ruby", "bytes": "95237" }, { "name": "Scala", "bytes": "23930" }, { "name": "Shell", "bytes": "47348" }, { "name": "Smali", "bytes": "71959175" }, { "name": "Swift", "bytes": "211292" }, { "name": "XSLT", "bytes": "104965" } ], "symlink_target": "" }
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>DT_PointCamera | demofile</title> <meta name="description" content="Documentation for demofile"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main.css"> </head> <body> <header> <div class="tsd-page-toolbar"> <div class="container"> <div class="table-wrap"> <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base=".."> <div class="field"> <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label> <input id="tsd-search-field" type="text" /> </div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li> </ul> <a href="../index.html" class="title">demofile</a> </div> <div class="table-cell" id="tsd-widgets"> <div id="tsd-filter"> <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a> <div class="tsd-filter-group"> <div class="tsd-select" id="tsd-filter-visibility"> <span class="tsd-select-label">All</span> <ul class="tsd-select-list"> <li data-value="public">Public</li> <li data-value="protected">Public/Protected</li> <li data-value="private" class="selected">All</li> </ul> </div> <input type="checkbox" id="tsd-filter-inherited" checked /> <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label> <input type="checkbox" id="tsd-filter-externals" checked /> <label class="tsd-widget" for="tsd-filter-externals">Externals</label> <input type="checkbox" id="tsd-filter-only-exported" /> <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label> </div> </div> <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a> </div> </div> </div> </div> <div class="tsd-page-title"> <div class="container"> <ul class="tsd-breadcrumb"> <li> <a href="../globals.html">Globals</a> </li> <li> <a href="../modules/_sendtabletypes_.html">&quot;sendtabletypes&quot;</a> </li> <li> <a href="_sendtabletypes_.dt_pointcamera.html">DT_PointCamera</a> </li> </ul> <h1>Interface DT_PointCamera</h1> </div> </div> </header> <div class="container container-main"> <div class="row"> <div class="col-8 col-content"> <section class="tsd-panel tsd-hierarchy"> <h3>Hierarchy</h3> <ul class="tsd-hierarchy"> <li> <span class="target">DT_PointCamera</span> </li> </ul> </section> <section class="tsd-panel-group tsd-index-group"> <h2>Index</h2> <section class="tsd-panel tsd-index-panel"> <div class="tsd-index-content"> <section class="tsd-index-section "> <h3>Properties</h3> <ul class="tsd-index-list"> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_fov" class="tsd-kind-icon">m_<wbr>FOV</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_fogcolor" class="tsd-kind-icon">m_<wbr><wbr>Fog<wbr>Color</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_resolution" class="tsd-kind-icon">m_<wbr><wbr>Resolution</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_bactive" class="tsd-kind-icon">m_<wbr>b<wbr>Active</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_bfogenable" class="tsd-kind-icon">m_<wbr>b<wbr>Fog<wbr>Enable</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_busescreenaspectratio" class="tsd-kind-icon">m_<wbr>b<wbr>Use<wbr>Screen<wbr>Aspect<wbr>Ratio</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_flfogend" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>End</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_flfogmaxdensity" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Max<wbr>Density</a></li> <li class="tsd-kind-property tsd-parent-kind-interface"><a href="_sendtabletypes_.dt_pointcamera.html#m_flfogstart" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Start</a></li> </ul> </section> </div> </section> </section> <section class="tsd-panel-group tsd-member-group "> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_fov" class="tsd-anchor"></a> <h3>m_<wbr>FOV</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>FOV<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1447">src/sendtabletypes.ts:1447</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_fogcolor" class="tsd-anchor"></a> <h3>m_<wbr><wbr>Fog<wbr>Color</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr><wbr>Fog<wbr>Color<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1450">src/sendtabletypes.ts:1450</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_resolution" class="tsd-anchor"></a> <h3>m_<wbr><wbr>Resolution</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr><wbr>Resolution<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1448">src/sendtabletypes.ts:1448</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_bactive" class="tsd-anchor"></a> <h3>m_<wbr>b<wbr>Active</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>b<wbr>Active<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1454">src/sendtabletypes.ts:1454</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_bfogenable" class="tsd-anchor"></a> <h3>m_<wbr>b<wbr>Fog<wbr>Enable</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>b<wbr>Fog<wbr>Enable<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1449">src/sendtabletypes.ts:1449</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_busescreenaspectratio" class="tsd-anchor"></a> <h3>m_<wbr>b<wbr>Use<wbr>Screen<wbr>Aspect<wbr>Ratio</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>b<wbr>Use<wbr>Screen<wbr>Aspect<wbr>Ratio<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1455">src/sendtabletypes.ts:1455</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_flfogend" class="tsd-anchor"></a> <h3>m_<wbr>fl<wbr>Fog<wbr>End</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>End<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1452">src/sendtabletypes.ts:1452</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_flfogmaxdensity" class="tsd-anchor"></a> <h3>m_<wbr>fl<wbr>Fog<wbr>Max<wbr>Density</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Max<wbr>Density<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1453">src/sendtabletypes.ts:1453</a></li> </ul> </aside> </section> <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"> <a name="m_flfogstart" class="tsd-anchor"></a> <h3>m_<wbr>fl<wbr>Fog<wbr>Start</h3> <div class="tsd-signature tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Start<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div> <aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/saul/demofile/blob/5327326/src/sendtabletypes.ts#L1451">src/sendtabletypes.ts:1451</a></li> </ul> </aside> </section> </section> </div> <div class="col-4 col-menu menu-sticky-wrap menu-highlight"> <nav class="tsd-navigation primary"> <ul> <li class="globals "> <a href="../globals.html"><em>Globals</em></a> </li> <li class="current tsd-kind-module"> <a href="../modules/_sendtabletypes_.html">&quot;sendtabletypes&quot;</a> </li> </ul> </nav> <nav class="tsd-navigation secondary menu-sticky"> <ul class="before-current"> </ul> <ul class="current"> <li class="current tsd-kind-interface tsd-parent-kind-module"> <a href="_sendtabletypes_.dt_pointcamera.html" class="tsd-kind-icon">DT_<wbr><wbr>Point<wbr>Camera</a> <ul> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_fov" class="tsd-kind-icon">m_<wbr>FOV</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_fogcolor" class="tsd-kind-icon">m_<wbr><wbr>Fog<wbr>Color</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_resolution" class="tsd-kind-icon">m_<wbr><wbr>Resolution</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_bactive" class="tsd-kind-icon">m_<wbr>b<wbr>Active</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_bfogenable" class="tsd-kind-icon">m_<wbr>b<wbr>Fog<wbr>Enable</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_busescreenaspectratio" class="tsd-kind-icon">m_<wbr>b<wbr>Use<wbr>Screen<wbr>Aspect<wbr>Ratio</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_flfogend" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>End</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_flfogmaxdensity" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Max<wbr>Density</a> </li> <li class=" tsd-kind-property tsd-parent-kind-interface"> <a href="_sendtabletypes_.dt_pointcamera.html#m_flfogstart" class="tsd-kind-icon">m_<wbr>fl<wbr>Fog<wbr>Start</a> </li> </ul> </li> </ul> <ul class="after-current"> </ul> </nav> </div> </div> </div> <footer class="with-border-bottom"> <div class="container"> <h2>Legend</h2> <div class="tsd-legend-group"> <ul class="tsd-legend"> <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li> <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li> <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li> <li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li> <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li> <li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li> <li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li> <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li> <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li> </ul> <ul class="tsd-legend"> <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li> </ul> </div> </div> </footer> <div class="container tsd-generator"> <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p> </div> <div class="overlay"></div> <script src="../assets/js/main.js"></script> </body> </html>
{ "content_hash": "c848061b2445dfd4a26e42b02a6bc636", "timestamp": "", "source": "github", "line_count": 282, "max_line_length": 214, "avg_line_length": 50.90780141843972, "alnum_prop": 0.6505990526609083, "repo_name": "saul/demofile", "id": "1bce02af9d75c33074bbe963f3f64129ec3d3dce", "size": "14356", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/interfaces/_sendtabletypes_.dt_pointcamera.html", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "2579" }, { "name": "JavaScript", "bytes": "5880001" }, { "name": "Shell", "bytes": "735" }, { "name": "TypeScript", "bytes": "1675150" } ], "symlink_target": "" }
package Test::Builder::Tester::Color; use strict; require Test::Builder::Tester; =head1 NAME Test::Builder::Tester::Color - turn on colour in Test::Builder::Tester =head1 SYNOPSIS When running a test script perl -MTest::Builder::Tester::Color test.t =head1 DESCRIPTION Importing this module causes the subroutine color in Test::Builder::Tester to be called with a true value causing colour highlighting to be turned on in debug output. The sole purpose of this module is to enable colour highlighting from the command line. =cut sub import { Test::Builder::Tester::color(1); } =head1 AUTHOR Copyright Mark Fowler E<lt>mark@twoshortplanks.comE<gt> 2002. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 BUGS This module will have no effect unless Term::ANSIColor is installed. =head1 SEE ALSO L<Test::Builder::Tester>, L<Term::ANSIColor> =cut 1;
{ "content_hash": "649dc78867c800ceb6e1bda18a4e7e71", "timestamp": "", "source": "github", "line_count": 50, "max_line_length": 74, "avg_line_length": 19.9, "alnum_prop": 0.714572864321608, "repo_name": "garethflowers/git-portable", "id": "466e53f76b486703b12777dbed5ecd2d956189ee", "size": "995", "binary": false, "copies": "4", "ref": "refs/heads/main", "path": "GitPortable/App/Git/lib/perl5/5.8.8/Test/Builder/Tester/Color.pm", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "285086" }, { "name": "C++", "bytes": "167320" }, { "name": "CSS", "bytes": "11267" }, { "name": "Emacs Lisp", "bytes": "31037" }, { "name": "HTML", "bytes": "5922" }, { "name": "JavaScript", "bytes": "79680" }, { "name": "M4", "bytes": "199557" }, { "name": "Makefile", "bytes": "2631" }, { "name": "NewLisp", "bytes": "38266" }, { "name": "Perl", "bytes": "5354732" }, { "name": "PowerShell", "bytes": "1030" }, { "name": "Prolog", "bytes": "20380" }, { "name": "Raku", "bytes": "1006206" }, { "name": "Ruby", "bytes": "29786" }, { "name": "Shell", "bytes": "200054" }, { "name": "Smalltalk", "bytes": "26489" }, { "name": "SystemVerilog", "bytes": "28628" }, { "name": "Tcl", "bytes": "2319998" }, { "name": "Vim Script", "bytes": "698763" }, { "name": "XSLT", "bytes": "52262" } ], "symlink_target": "" }
using NPOI.XWPF.UserModel; using System.IO; namespace NPOI_HWPF_and_XWPF { class Program { static void Main(string[] args) { // Create a new document from scratch XWPFDocument doc = new XWPFDocument(); XWPFTable table = doc.CreateTable(3, 3); table.GetRow(1).GetCell(1).SetText("EXAMPLE OF TABLE"); XWPFTableCell c1 = table.GetRow(0).GetCell(0); XWPFParagraph p1 = c1.AddParagraph(); //don't use doc.CreateParagraph XWPFRun r1 = p1.CreateRun(); r1.SetText("This is test table contents"); r1.SetBold(true); r1.FontFamily = "Courier"; r1.SetUnderline(UnderlinePatterns.DotDotDash); r1.SetTextPosition(100); c1.SetColor("FF0000"); table.GetRow(2).GetCell(2).SetText("only text"); FileStream out1 = new FileStream("Format Table in Document.docx", FileMode.Create); doc.Write(out1); out1.Close(); } } }
{ "content_hash": "923af8cb0cf78ea7e6ba379dcfeb8826", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 95, "avg_line_length": 29.52777777777778, "alnum_prop": 0.561618062088429, "repo_name": "asposewords/Aspose_Words_NET", "id": "1cd6742abb8a962a7ea83df896a0e58457328ca6", "size": "1065", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Plugins/NPOI/Aspose.Words Vs NPOI HWPF and XWPF/Format Table in Document/NPOI HWPF and XWPF/Program.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "89531" }, { "name": "C#", "bytes": "2223563" }, { "name": "CSS", "bytes": "18620" }, { "name": "HTML", "bytes": "42170" }, { "name": "JavaScript", "bytes": "179162" }, { "name": "PHP", "bytes": "4795" }, { "name": "XSLT", "bytes": "801" } ], "symlink_target": "" }
using Signum.Engine.Files; using Signum.Engine.Authorization; using Signum.Engine.Basics; using Signum.Engine.DynamicQuery; using Signum.Engine.Maps; using Signum.Engine.Operations; using Signum.Engine.Processes; using Signum.Entities.Files; using Signum.Entities.Processes; using Signum.Utilities; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Reflection; using Signum.Entities.Printing; using Signum.Entities; using System.IO; using Signum.Engine.Scheduler; using Signum.Entities.Basics; namespace Signum.Engine.Printing { public static class PrintingLogic { public static int DeleteFilesAfter = 24 * 60; //Minutes public static Action<PrintLineEntity> Print = e => throw new NotImplementedException("PrintingLogic.Print is not defined"); [AutoExpressionField] public static IQueryable<PrintLineEntity> Lines(this PrintPackageEntity e) => As.Expression(() => Database.Query<PrintLineEntity>().Where(a => a.Package.Is(e))); public static FileTypeSymbol? TestFileType; public static void Start(SchemaBuilder sb, FileTypeSymbol? testFileType = null) { if (sb.NotDefined(MethodInfo.GetCurrentMethod())) { TestFileType = testFileType; sb.Include<PrintLineEntity>() .WithQuery(() => p => new { Entity = p, p.CreationDate, p.File, p.State, p.Package, p.PrintedOn, p.Referred, }); sb.Include<PrintPackageEntity>() .WithQuery(() => e => new { Entity = e, e.Id, e.Name }); ProcessLogic.AssertStarted(sb); ProcessLogic.Register(PrintPackageProcess.PrintPackage, new PrintPackageAlgorithm()); PermissionAuthLogic.RegisterPermissions(PrintPermission.ViewPrintPanel); PrintLineGraph.Register(); SimpleTaskLogic.Register(PrintTask.RemoveOldFiles, (ScheduledTaskContext ctx) => { var lines = Database.Query<PrintLineEntity>().Where(a => a.State == PrintLineState.Printed).Where(b => b.CreationDate <= DateTime.Now.AddMinutes(-DeleteFilesAfter)); foreach (var line in lines) { try { using (var tr = new Transaction()) { line.File.DeleteFileOnCommit(); line.State = PrintLineState.PrintedAndDeleted; using (OperationLogic.AllowSave<PackageLineEntity>()) line.Save(); tr.Commit(); } } catch (Exception e) { e.LogException(); } } return null; }); } } public class PrintPackageAlgorithm : IProcessAlgorithm { public void Execute(ExecutingProcess executingProcess) { PrintPackageEntity package = (PrintPackageEntity)executingProcess.Data!; executingProcess.ForEachLine(package.Lines().Where(a => a.State != PrintLineState.Printed), line => { PrintLineGraph.Print(line); }); } } public static PrintLineEntity CreateLine(Entity referred, FileTypeSymbol fileType, string fileName, byte[] content) { return CreateLine(referred, new FilePathEmbedded(fileType, fileName, content)); } public static PrintLineEntity CreateLine(Entity referred, FilePathEmbedded file) { return new PrintLineEntity { Referred = referred.ToLite(), State = PrintLineState.ReadyToPrint, File = file, }.Save(); } public static ProcessEntity? CreateProcess(FileTypeSymbol? fileType = null) { using (var tr = new Transaction()) { var query = Database.Query<PrintLineEntity>() .Where(a => a.State == PrintLineState.ReadyToPrint); if (fileType != null) query = query.Where(a => a.File.FileType == fileType); if (query.Count() == 0) return null; var package = new PrintPackageEntity() { Name = fileType?.ToString() + " (" + query.Count() + ")" }.Save(); query.UnsafeUpdate() .Set(a => a.Package, a => package.ToLite()) .Set(a => a.State, a => PrintLineState.Enqueued) .Execute(); var result = ProcessLogic.Create(PrintPackageProcess.PrintPackage, package).Save(); return tr.Commit(result); } } public static List<PrintStat> GetReadyToPrintStats() { return Database.Query<PrintLineEntity>() .Where(a => a.State == PrintLineState.ReadyToPrint) .GroupBy(a => a.File.FileType) .Select(gr => new PrintStat(gr.Key,gr.Count())) .ToList(); } public static void CancelPrinting(Entity entity, FileTypeSymbol fileType) { var list = ReadyToPrint(entity, fileType).ToList(); list.ForEach(a => { a.State = PrintLineState.Cancelled; a.File.DeleteFileOnCommit(); }); list.SaveList(); } public static FileContent SavePrintLine(this FileContent file, Entity entity, FileTypeSymbol fileTypeForPrinting) { CancelPrinting(entity, fileTypeForPrinting); CreateLine(entity, fileTypeForPrinting, Path.GetFileName(file.FileName)!, file.Bytes); return file; } public static IQueryable<PrintLineEntity> ReadyToPrint(Entity entity, FileTypeSymbol fileType) { return Database.Query<PrintLineEntity>().Where(a => a.Referred.Is(entity) && a.File.FileType == fileType && a.State == PrintLineState.ReadyToPrint); } } public class PrintStat { public FileTypeSymbol fileType; public int count; public PrintStat(FileTypeSymbol fileType, int count) { this.fileType = fileType; this.count = count; } } public class PrintLineGraph : Graph<PrintLineEntity, PrintLineState> { public static void Register() { GetState = e => e.State; new Construct(PrintLineOperation.CreateTest) { ToStates = { PrintLineState.NewTest }, Construct = (args) => new PrintLineEntity { State = PrintLineState.NewTest, TestFileType = PrintingLogic.TestFileType!, } }.Register(); new Execute(PrintLineOperation.SaveTest) { CanBeNew = true, CanBeModified = true, FromStates = { PrintLineState.NewTest }, ToStates = { PrintLineState.ReadyToPrint }, Execute = (e, _) => { e.State = PrintLineState.ReadyToPrint; } }.Register(); new Execute(PrintLineOperation.Print) { FromStates = {PrintLineState.ReadyToPrint}, ToStates = {PrintLineState.Printed, PrintLineState.Error}, Execute = (e, _) => { Print(e); } }.Register(); new Execute(PrintLineOperation.Retry) { FromStates = {PrintLineState.Error, PrintLineState.Cancelled}, ToStates = {PrintLineState.ReadyToPrint }, Execute = (e, _) => { e.State = PrintLineState.ReadyToPrint; e.Package = null; } }.Register(); new Execute(PrintLineOperation.Cancel) { FromStates = { PrintLineState.ReadyToPrint, PrintLineState.Error }, ToStates = { PrintLineState.Cancelled }, Execute = (e, _) => { e.State = PrintLineState.Cancelled; e.Package = null; e.PrintedOn = null; e.File.DeleteFileOnCommit(); } }.Register(); } public static void Print(PrintLineEntity line) { using (OperationLogic.AllowSave<PrintLineEntity>()) { try { PrintingLogic.Print?.Invoke(line); line.State = PrintLineState.Printed; line.PrintedOn = TimeZoneManager.Now; line.Save(); } catch (Exception ex) { if (Transaction.InTestTransaction) //Transaction.IsTestTransaction throw; var exLog = ex.LogException().ToLite(); try { using (Transaction tr = Transaction.ForceNew()) { line.State = PrintLineState.Error; line.Save(); tr.Commit(); } } catch { } throw; } } } } }
{ "content_hash": "ac5bf249128a0a3cc34e9e88f33294e3", "timestamp": "", "source": "github", "line_count": 294, "max_line_length": 185, "avg_line_length": 35.88095238095238, "alnum_prop": 0.4786235662148071, "repo_name": "AlejandroCano/extensions", "id": "6371fcedfd0486a185d81bd5c82015971e8509c7", "size": "10549", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "Signum.Engine.Extensions/Printing/PrintLogic.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "2985100" }, { "name": "CSS", "bytes": "29513" }, { "name": "TypeScript", "bytes": "2097256" } ], "symlink_target": "" }
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>spatial-solr-sandbox</groupId> <artifactId>spatial-solr-sandbox</artifactId> <version>0.3-SNAPSHOT</version> <packaging>pom</packaging> <properties> <!-- this magic system property is honored by many plugins: http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding --> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- TODO do we really buy anything by putting these here instead of in maven-compiler-plugin ? --> <maven.compile.source>1.7</maven.compile.source> <maven.compile.target>1.7</maven.compile.target> <maven.compile.optimize>true</maven.compile.optimize> <maven.compile.deprecation>true</maven.compile.deprecation> <wicket.version>1.4.21</wicket.version> <jetty.version>8.1.2.v20120308</jetty.version> <slf4j.version>1.7.6</slf4j.version> <lucene.version>4.8.0</lucene.version> <jts.version>1.13</jts.version> </properties> <dependencyManagement> <dependencies> <!-- v4.10 is what Lucene uses; good to keep in sync --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.10</version> </dependency> </dependencies> </dependencyManagement> <!-- inherited by all modules --> <dependencies> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j.version}</version> </dependency> <!-- TESTING --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>${slf4j.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <finalName>${project.artifactId}-${project.version}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>${maven.compile.source}</source> <target>${maven.compile.target}</target> <optimize>${maven.compile.optimize}</optimize> <showDeprecation>${maven.compile.deprecation}</showDeprecation> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.9</version> <configuration> <!-- This is a small project that should have no problem with tests running in the maven JVM. This also conveniently means system properties pass through. --> <forkMode>never</forkMode> </configuration> </plugin> </plugins> </build> <reporting> <!-- TODO support maven 3 (& 2?)--> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>2.5</version> <configuration> <linkXRef>true</linkXRef> <minimumTokens>100</minimumTokens> <targetJdk>1.6</targetJdk> <!-- <excludes> <exclude>**/*Bean.java</exclude> <exclude>**/generated/*.java</exclude> </excludes> <excludeRoots> <excludeRoot>target/generated-sources/stubs</excludeRoot> </excludeRoots> --> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>2.3.2</version> <configuration> <!--<findbugsXmlOutput>true</findbugsXmlOutput> deprecated--> <findbugsXmlWithMessages>true</findbugsXmlWithMessages> <xmlOutput>true</xmlOutput> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <version>2.7.2</version> </plugin> <plugin> <inherited>true</inherited> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8</version> <configuration> <maxmemory>1024m</maxmemory> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.8</version> <configuration> <downloadSources>true</downloadSources> </configuration> </plugin> </plugins> </reporting> <!-- note: repositories default: releases=true, snapshots=false --> <profiles> <profile> <id>updateLucene</id> <activation> <activeByDefault>true</activeByDefault> </activation> <repositories> <!-- for Lucene --> <repository> <id>org.apache.snapshots</id> <name>Apache Snapshot Repository</name> <url>http://repository.apache.org/snapshots</url> <layout>default</layout> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> <version>2.5</version> <!-- NOTE 2.6 breaks the layout --> <configuration> <downloadSources>true</downloadSources> <additionalProjectnatures> <projectnature>qwickie.qwickieNature</projectnature> </additionalProjectnatures> <additionalBuildcommands> <buildcommand>qwickie.qwickieBuilder</buildcommand> </additionalBuildcommands> </configuration> </plugin> </plugins> </build> </profile> </profiles> <modules> <module>LSE</module> <module>spatial-demo</module> </modules> </project>
{ "content_hash": "fea7619082c520644bc0ef7fd2800bb3", "timestamp": "", "source": "github", "line_count": 212, "max_line_length": 201, "avg_line_length": 31.15566037735849, "alnum_prop": 0.6062074186222559, "repo_name": "ryantxu/spatial-solr-sandbox", "id": "16f8acdbfe35f8bf64b283b6c8bdc63e96c6771d", "size": "6605", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pom.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "8562" }, { "name": "Java", "bytes": "75969" } ], "symlink_target": "" }
from rest_framework import test from . import fixtures class TenantQuotasTest(test.APITransactionTestCase): def setUp(self): super(TenantQuotasTest, self).setUp() self.fixture = fixtures.OpenStackFixture() self.tenant = self.fixture.tenant self.project = self.fixture.project self.customer = self.fixture.customer def test_quotas_for_tenant_are_created_for_project_and_customer(self): self.assertEqual(self.project.quotas.get(name='vpc_cpu_count').usage, 0) self.assertEqual(self.project.quotas.get(name='vpc_ram_size').usage, 0) self.assertEqual(self.project.quotas.get(name='vpc_storage_size').usage, 0) self.assertEqual(self.project.quotas.get(name='vpc_floating_ip_count').usage, 0) self.assertEqual(self.customer.quotas.get(name='vpc_cpu_count').usage, 0) self.assertEqual(self.customer.quotas.get(name='vpc_ram_size').usage, 0) self.assertEqual(self.customer.quotas.get(name='vpc_storage_size').usage, 0) self.assertEqual(self.customer.quotas.get(name='vpc_floating_ip_count').usage, 0) def test_quotas_for_tenant_are_increased_for_project_and_customer(self): self.tenant.set_quota_usage('vcpu', 1) self.tenant.set_quota_usage('ram', 1024) self.tenant.set_quota_usage('storage', 102400) self.tenant.set_quota_usage('floating_ip_count', 2) self.assertEqual(self.project.quotas.get(name='vpc_cpu_count').usage, 1) self.assertEqual(self.project.quotas.get(name='vpc_ram_size').usage, 1024) self.assertEqual(self.project.quotas.get(name='vpc_storage_size').usage, 102400) self.assertEqual(self.project.quotas.get(name='vpc_floating_ip_count').usage, 2) self.assertEqual(self.customer.quotas.get(name='vpc_cpu_count').usage, 1) self.assertEqual(self.customer.quotas.get(name='vpc_ram_size').usage, 1024) self.assertEqual(self.customer.quotas.get(name='vpc_storage_size').usage, 102400) self.assertEqual(self.customer.quotas.get(name='vpc_floating_ip_count').usage, 2)
{ "content_hash": "dde4ce968a19f1ba49ee90c6c9edbbc6", "timestamp": "", "source": "github", "line_count": 40, "max_line_length": 89, "avg_line_length": 52.25, "alnum_prop": 0.6990430622009569, "repo_name": "opennode/nodeconductor-openstack", "id": "3ec8b1887ad4a9941a29b6f603c43395a86477e0", "size": "2090", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "src/waldur_openstack/openstack/tests/test_quotas.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "792426" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://www.netbeans.org/ns/project/1"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/3"> <name>ClassiCubeSelfUpdater</name> <source-roots> <root id="src.dir"/> </source-roots> <test-roots> <root id="test.src.dir"/> </test-roots> </data> </configuration> </project>
{ "content_hash": "e46cbbc2a741c314cbb1c8cb5c03f365", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 64, "avg_line_length": 34.266666666666666, "alnum_prop": 0.5447470817120622, "repo_name": "fragmer/ClassiCubeLauncher", "id": "2f46a0f61919f688527f8cdc13a91268b35162d7", "size": "514", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ClassiCubeSelfUpdater/nbproject/project.xml", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Java", "bytes": "462083" }, { "name": "Python", "bytes": "828" } ], "symlink_target": "" }
package main import ( "fmt" "log" "net/http" "github.com/ant0ine/go-json-rest/rest" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/postgres" _ "github.com/lib/pq" "github.com/mattes/migrate/migrate" "github.com/spf13/viper" ) import _ "github.com/mattes/migrate/driver/postgres" func main() { readConfig() applyMigrations() i := Impl{} i.connectToDb() i.startChat() } func readConfig() { viper.SetEnvPrefix("chat") viper.SetDefault("database_url", "postgres:///chat_development?sslmode=disable") viper.SetDefault("bind_address", "localhost:8080") viper.AutomaticEnv() viper.BindEnv("database_url") viper.BindEnv("bind_address") } func applyMigrations() { allErrors, ok := migrate.UpSync(viper.GetString("database_url"), "./migrations") fmt.Println("Database: ", viper.GetString("database_url")) if !ok { fmt.Println("Migratinos failed") fmt.Println("driver: ", viper.GetString("database_url")) fmt.Println("Errors: ", allErrors) } } func (i *Impl) connectToDb() { var err error i.DB, err = gorm.Open("postgres", viper.GetString("database_url")) if err != nil { log.Fatalf("Got error when connect database, the error is '%v'", err) } i.DB.LogMode(true) } func (i *Impl) startChat() { api := rest.NewApi() api.Use(rest.DefaultDevStack...) router, err := rest.MakeRouter( rest.Get("/", APIIndex), rest.Get("/users/:user_id.json", i.APIUserShow), rest.Get("/users/:user_id/dialogs.json", i.APIDialogIndex), rest.Get("/users/:user_id/dialogs/:dialog_id/messages.json", i.APIMessageIndex), rest.Get("/users/:user_id/dialogs/:dialog_id.json", i.APIDialogShow), rest.Post("/users/:user_id/dialogs.json", i.APIDialogCreate), rest.Post("/users/:user_id/dialogs/:dialog_id/messages.json", i.APIMessageCreate), ) if err != nil { log.Fatal(err) } api.SetApp(router) fmt.Println("address: ", viper.GetString("bind_address")) log.Fatal(http.ListenAndServe(viper.GetString("bind_address"), api.MakeHandler())) }
{ "content_hash": "691c9b8b209eb8e8f34b7ff123ac689f", "timestamp": "", "source": "github", "line_count": 71, "max_line_length": 84, "avg_line_length": 27.859154929577464, "alnum_prop": 0.6971688574317493, "repo_name": "arrowcircle/chat", "id": "6eaee6fd5376013e8bead040ba34cedd20741836", "size": "1978", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "main.go", "mode": "33188", "license": "mit", "language": [ { "name": "Go", "bytes": "12248" }, { "name": "Makefile", "bytes": "760" }, { "name": "Ruby", "bytes": "496" } ], "symlink_target": "" }
package main import "fmt" import "os" type point struct { x, y int } func main() { // Go offers several printing “verbs” designed to format // general Go values. For example, this prints an instance // of our point struct. p := point{1, 2} fmt.Printf("%v\n", p) // If the value is a struct, the %+v variant will include // the struct’s field names. fmt.Printf("%+v\n", p) // The %#v variant prints a Go syntax representation of // the value, i.e. the source code snippet that would // produce that value. fmt.Printf("%#v\n", p) // To print the type of a value, use %T. fmt.Printf("%T\n", p) // Formatting booleans is straight-forward. fmt.Printf("%t\n", true) // There are many options for formatting integers. Use %d // for standard, base-10 formatting. fmt.Printf("%d\n", 123) // This prints a binary representation. fmt.Printf("%b\n", 14) // This prints the character corresponding to the given integer. fmt.Printf("%c\n", 33) // %x provides hex encoding. fmt.Printf("%x\n", 456) // There are also several formatting options for floats. For // basic decimal formatting use %f. fmt.Printf("%f\n", 78.9) // %e and %E format the float in (slightly different versions // of) scientific notation. fmt.Printf("%e\n", 123400000.0) fmt.Printf("%E\n", 123400000.0) // For basic string printing use %s. fmt.Printf("%s\n", "\"string\"") // To double-quote strings as in Go source, use %q. fmt.Printf("%q\n", "\"string\"") // As with integers as seen earlier, %x renders the string // in base-16, with two output characters per byte of input. fmt.Printf("%x\n", "hex this") // To print a representation of a pointer, use %p. fmt.Printf("%p\n", &p) // When formatting numbers you will often want to control // the width and precision of the resulting figure. To // specify the width of an integer, use a number after // the % in the verb. By default the result will be // right-justified and padded with spaces. fmt.Printf("|%6d|%6d|\n", 12, 345) // You can also specify the width of printed floats, though // usually you’ll also want to restrict the decimal precision // at the same time with the width.precision syntax. fmt.Printf("|%6.2f|%6.2f|\n", 1.2, 3.45) // To left-justify, use the - flag. fmt.Printf("|%-6.2f|%-6.2f|\n", 1.2, 3.45) // You may also want to control width when formatting // strings, especially to ensure that they align in // table-like output. For basic right-justified width. fmt.Printf("|%6s|%6s|\n", "foo", "b") // To left-justify use the - flag as with numbers. fmt.Printf("|%-6s|%-6s|\n", "foo", "b") // So far we’ve seen Printf, which prints the formatted // string to os.Stdout. Sprintf formats and returns a // string without printing it anywhere. s := fmt.Sprintf("a %s", "string") fmt.Println(s) // You can format+print to io.Writers other than os.Stdout // using Fprintf. fmt.Fprintf(os.Stderr, "an %s\n", "error") }
{ "content_hash": "e9f3238f33fe411ef201f71336824e2e", "timestamp": "", "source": "github", "line_count": 99, "max_line_length": 65, "avg_line_length": 29.656565656565657, "alnum_prop": 0.6699591280653951, "repo_name": "taysom/va", "id": "ab6f5f092a90808edb8800243c21985677310090", "size": "2946", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/tour/gobyexample/format.go", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Awk", "bytes": "339" }, { "name": "C", "bytes": "331" }, { "name": "C++", "bytes": "10421" }, { "name": "CSS", "bytes": "6601" }, { "name": "Go", "bytes": "653336" }, { "name": "HTML", "bytes": "28694" }, { "name": "JavaScript", "bytes": "178942" }, { "name": "Makefile", "bytes": "107" } ], "symlink_target": "" }
<?php namespace App\Home\Controllers; /** * Home controller * * PHP version 7.0 */ use \Core\View; use Gregwar\Captcha\CaptchaBuilder; use Nette\Mail\Message; use Nette\Mail\SmtpMailer; class User extends \Core\Controller { public function buildCaptcha(){ ob_clean(); $builder = new CaptchaBuilder; $builder->build(); $_SESSION['phrase'] = $builder->getPhrase(); header("Cache-Control: no-cache, must-revalidate"); header('Content-type: image/jpeg'); $builder->output(); } public function test(){ if($_SESSION['phrase']==$_POST['code']){ echo 1; } else { echo 0; } } public function mail($data){ $mail = new Message; $mail->setFrom('John <sshinetao@qq.com>') ->addTo('sshinetao@qq.com') ->addTo('sshinetao@qq.com') ->setSubject('Order Confirmation') ->setBody($data); $mailer = new SmtpMailer([ 'host' => 'smtp.qq.com', 'username' => 'sshinetao@qq.com', 'password' => 'jgclsprublfyfhac' ]); $mailer->send($mail); } function login(){ $this->render('Index/login'); } function register(){ $this->render('Index/register'); } function dologin(){ $account = new \App\Home\Models\User(); if(!isset($_POST)){ $this->failure( '请输入用户名和密码'); } $datas =$account->select("account", "*", [ "AND" => [ "username" => $_POST['username'], "password" => md5($_POST['password']) ] ]); if(count($datas)>0){ $_SESSION['username']=$datas[0]['username']; $this->success( '登陆成功!','?'); }else{ $this->failure( '用户名或密码错误'); } } function logout(){ session_unset(); session_destroy(); $_SESSION = array(); if(count($_SESSION)==0){ $this->success( '注销成功!','?'); }else{ $this->failure( '注销失败,请稍后再试','?'); } } }
{ "content_hash": "423dfbc9b3a509327f623b802c5d307b", "timestamp": "", "source": "github", "line_count": 99, "max_line_length": 59, "avg_line_length": 21.68686868686869, "alnum_prop": 0.48206800186306475, "repo_name": "sshinetao/mvc", "id": "831e6344ac732b1e20a91de0abbcd3fd6eaccf45", "size": "2221", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "App/Home/Controllers/User.php", "mode": "33188", "license": "mit", "language": [ { "name": "ApacheConf", "bytes": "253" }, { "name": "CSS", "bytes": "1405" }, { "name": "HTML", "bytes": "18196" }, { "name": "JavaScript", "bytes": "3370" }, { "name": "PHP", "bytes": "33238" } ], "symlink_target": "" }
ARG UBUNTU_VERSION=18.04 FROM ubuntu:${UBUNTU_VERSION} as base RUN apt-get update && apt-get install -y curl # See http://bugs.python.org/issue19846 ENV LANG C.UTF-8 RUN apt-get update && apt-get install -y \ python3 \ python3-pip RUN python3 -m pip --no-cache-dir install --upgrade \ pip \ setuptools # Some TF tools expect a "python" binary RUN ln -s $(which python3) /usr/local/bin/python # Options: # tensorflow # tensorflow-gpu # tf-nightly # tf-nightly-gpu # Set --build-arg TF_PACKAGE_VERSION=1.11.0rc0 to install a specific version. # Installs the latest version by default. ARG TF_PACKAGE=tensorflow ARG TF_PACKAGE_VERSION= RUN python3 -m pip install --no-cache-dir ${TF_PACKAGE}${TF_PACKAGE_VERSION:+==${TF_PACKAGE_VERSION}} COPY bashrc /etc/bash.bashrc RUN chmod a+rwx /etc/bash.bashrc
{ "content_hash": "a8e4a9b5c7eff50856f055e146c5e993", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 101, "avg_line_length": 25.12121212121212, "alnum_prop": 0.7117008443908324, "repo_name": "davidzchen/tensorflow", "id": "e83592c5fd2408c5189903c2781bf1573392eb82", "size": "1722", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "tensorflow/tools/dockerfiles/dockerfiles/cpu.Dockerfile", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Assembly", "bytes": "32240" }, { "name": "Batchfile", "bytes": "55269" }, { "name": "C", "bytes": "887514" }, { "name": "C#", "bytes": "8562" }, { "name": "C++", "bytes": "81865221" }, { "name": "CMake", "bytes": "6500" }, { "name": "Dockerfile", "bytes": "112853" }, { "name": "Go", "bytes": "1867241" }, { "name": "HTML", "bytes": "4686483" }, { "name": "Java", "bytes": "971474" }, { "name": "Jupyter Notebook", "bytes": "549437" }, { "name": "LLVM", "bytes": "6536" }, { "name": "MLIR", "bytes": "1921657" }, { "name": "Makefile", "bytes": "65901" }, { "name": "Objective-C", "bytes": "116558" }, { "name": "Objective-C++", "bytes": "316967" }, { "name": "PHP", "bytes": "4236" }, { "name": "Pascal", "bytes": "318" }, { "name": "Pawn", "bytes": "19963" }, { "name": "Perl", "bytes": "7536" }, { "name": "Python", "bytes": "37285698" }, { "name": "RobotFramework", "bytes": "1779" }, { "name": "Roff", "bytes": "2705" }, { "name": "Ruby", "bytes": "7464" }, { "name": "SWIG", "bytes": "8992" }, { "name": "Shell", "bytes": "700629" }, { "name": "Smarty", "bytes": "35540" }, { "name": "Starlark", "bytes": "3604653" }, { "name": "Swift", "bytes": "62814" }, { "name": "Vim Snippet", "bytes": "58" } ], "symlink_target": "" }
ACCEPTED #### According to NUB Generator [implicit canonical] #### Published in null #### Original name null ### Remarks null
{ "content_hash": "e433e215298340cb6a2b59184c5491ef", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 34, "avg_line_length": 9.923076923076923, "alnum_prop": 0.6976744186046512, "repo_name": "mdoering/backbone", "id": "123163481b0156a32f23ed0e5af05ed28e13acf1", "size": "172", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Lamiales/Plantaginaceae/Penstemon/Penstemon cynanthus/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package com.linkedin.gradle.python.plugin.testutils; import org.junit.rules.TemporaryFolder; import java.io.File; import java.nio.file.Files; public class PythonTemporaryFolder extends TemporaryFolder { public PythonTemporaryFolder(File parentFolder) { super(parentFolder); } @Override public void delete() { if (getRoot() != null) { deleteRecursiveIfExists(getRoot()); } } public static boolean deleteRecursiveIfExists(File item) { if (!item.exists()) { return true; } if (!Files.isSymbolicLink(item.toPath()) && item.isDirectory()) { File[] subitems = item.listFiles(); assert subitems != null; for (File subitem : subitems) { if (!deleteRecursiveIfExists(subitem)) { return false; } } } return item.delete(); } }
{ "content_hash": "31a77a8b808e2410b9f3e23677e8296c", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 73, "avg_line_length": 25.37837837837838, "alnum_prop": 0.5750798722044729, "repo_name": "sixninetynine/pygradle", "id": "7c8660b65664a5b7285bf7ca72d7a9a1dc976741", "size": "1536", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pygradle-plugin/src/integTest/groovy/com/linkedin/gradle/python/plugin/testutils/PythonTemporaryFolder.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Go", "bytes": "216" }, { "name": "Groovy", "bytes": "242974" }, { "name": "Java", "bytes": "219226" }, { "name": "Python", "bytes": "16278" }, { "name": "Shell", "bytes": "203" } ], "symlink_target": "" }
import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './content-styles'; function _Content({ classes, data, }) { return ( <article className={classes.wrap}> <h1 className={classes.title}> {data.title} </h1> <div className={classes.meta}> <span className={classes.author}> <span className={classes.sign} /> {data.author} </span> <span className={classes.date}> <span className={classes.sign} /> {data.date} </span> </div> <div className={classes.content} dangerouslySetInnerHTML={{ __html: data.html }} /> </article> ); } _Content.propTypes = { classes: PropTypes.object.isRequired, data: PropTypes.object.isRequired, }; export const Content = withStyles(styles)(_Content);
{ "content_hash": "33bbe55f99ca178a9ab94c55aeb3682a", "timestamp": "", "source": "github", "line_count": 35, "max_line_length": 89, "avg_line_length": 25.65714285714286, "alnum_prop": 0.6135857461024499, "repo_name": "NaNuNoo/Matcha", "id": "d50c2d71d821197e0ff572712ef79bd33189411a", "size": "898", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/view/content/content.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "JavaScript", "bytes": "42318" }, { "name": "Shell", "bytes": "424" } ], "symlink_target": "" }
class superclass(object): def test1(self): print "superclass" class childclass(superclass): def test1(self): print "child" def test2(self): super(childclass, self).test1() def test3(self): self.test1() super(childclass, self).test1() x = childclass() x.test1() x.test2() x.test3()
{ "content_hash": "ae1dc338501b86616b30a1e6cb6040e8", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 39, "avg_line_length": 13.384615384615385, "alnum_prop": 0.5890804597701149, "repo_name": "chrivers/pyjaco", "id": "506e4dce8bd919c837cef288933da087709a0730", "size": "348", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "tests/class/oo_simple_super.py", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "118838" }, { "name": "Python", "bytes": "182689" }, { "name": "Shell", "bytes": "864" } ], "symlink_target": "" }
SYNONYM #### According to Integrated Taxonomic Information System #### Published in null #### Original name null ### Remarks null
{ "content_hash": "b1e2c67631d6481d669f02bf91317c2b", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.7218045112781954, "repo_name": "mdoering/backbone", "id": "dc6ee631c436c06c8be45c2817296e84961774b0", "size": "187", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Marchantiophyta/Jungermanniopsida/Jungermanniales/Lepidoziaceae/Kurzia/Kurzia setacea/ Syn. Lepidozia setacea/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package org.zstack.sdk; import org.zstack.sdk.ZBoxInventory; public class AddZBoxResult { public ZBoxInventory inventory; public void setInventory(ZBoxInventory inventory) { this.inventory = inventory; } public ZBoxInventory getInventory() { return this.inventory; } }
{ "content_hash": "6321ef0f757829cbc40d5d6398969c43", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 55, "avg_line_length": 22, "alnum_prop": 0.7077922077922078, "repo_name": "AlanJager/zstack", "id": "236be65f25df15c2e6af44dbde6450d351653940", "size": "308", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "sdk/src/main/java/org/zstack/sdk/AddZBoxResult.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "4616" }, { "name": "AspectJ", "bytes": "74681" }, { "name": "Batchfile", "bytes": "2932" }, { "name": "Groovy", "bytes": "6776667" }, { "name": "Java", "bytes": "26341557" }, { "name": "Python", "bytes": "1062162" }, { "name": "Shell", "bytes": "176428" } ], "symlink_target": "" }
#include "tensorflow/compiler/mlir/lite/experimental/tac/common/targets.h" #include "tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h" #include "tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.h" #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" #include "tensorflow/compiler/mlir/lite/utils/arithmetic_count_util.h" namespace mlir { namespace TFL { namespace tac { namespace { // CPU constexpr float kCPUArithmeticUnitCost = 1.0; // This basically assumes pure load/store. This is just fake data. constexpr float kCPUCopyUnitCost = 0.5; // Default values. constexpr float kCPUDefaultFixedValuedCost = 10000.0; // Quantized inference cost efficiency. // For CPU, quantized inference is ~3x faster than the float alternative, this // is just an estimation. constexpr float kQuantizedInferenceEfficiency = 0.3; inline float InferenceTypeEfficiency(InferenceType inference_type) { if (inference_type == QUANTIZED_INT8 || inference_type == QUANTIZED_UINT8) { return kQuantizedInferenceEfficiency; } return 1.0; } // CPU hardware class which handles CPU capabilities in TFLite. // This is used by TAC to get op supported/ op cost estimates on CPU. class CpuHardware : public TargetHardware { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(CpuHardware) // String Identifier for CPU hardware. static constexpr char kId[] = "CPU"; double GetHardwareSwitchingCost(const TargetHardware* from, size_t buffer_size) const override { auto from_type = from->GetTypeId(); auto to_type = GetTypeId(); if (from_type == to_type) return 0.0f; // TODO(renjieliu): Implement a better version for different hardware cases. return buffer_size * kCrossHardwareTransferPerByteCost / 8.0 + kCrossHardwareTransferFixedCost; } mlir::RewritePatternSet GetTransformations( MLIRContext* context) const override { return {context}; } mlir::TypeID GetTypeId() const override { return mlir::TypeID::get<CpuHardware>(); } bool IsOpSupported(mlir::Operation* op) const override { // All ops in TFL dialect are supported on CPU. if (op->getDialect() == nullptr) return false; if (op->getDialect()->getNamespace() != "tfl") return false; return true; } }; constexpr char CpuHardware::kId[]; // Define kId. std::unique_ptr<TargetHardware> CreateCpuHardware() { return std::make_unique<CpuHardware>(); } TargetHardwareRegistration<CpuHardware> cpu_hardware("Target device for CPU", CreateCpuHardware); #define TAC_REGISTER_CPU_OP(Op, Create) \ TargetHardwareOpRegistration<CpuHardware, Op> Op##_CpuHardware_hardware( \ Create); // Operation costs on CPU // Currently used for these ops: // tfl.conv_2d / tfl.depthwise_conv_2d / tfl.fully_connected class CpuConvOp : public TargetHardwareOperation { double GetOpCost(mlir::Operation* op) const override { float cost = 0.0; int64_t arithmetic_count; if (ArithmeticCountUtilHelper::GetArithmeticCountForConvAndFullyconnectedOp( op, &arithmetic_count)) { cost = arithmetic_count * kCPUArithmeticUnitCost; } else { cost = kCPUDefaultFixedValuedCost; } return cost * InferenceTypeEfficiency(GetInferenceType(op)); } bool IsOpSupported(mlir::Operation* op) const override { return true; } }; std::unique_ptr<TargetHardwareOperation> CreateConvOp() { return std::make_unique<CpuConvOp>(); } // Currently used for these ops: // tfl.Add / tfl.mul class CpuArithmeticOp : public TargetHardwareOperation { double GetOpCost(mlir::Operation* op) const override { float cost = 0.0; int64_t count; if (ArithmeticCountUtilHelper::GetFirstOutputCount(op, &count)) { cost = kCPUArithmeticUnitCost * count; } else { cost = kCPUDefaultFixedValuedCost; } return cost * InferenceTypeEfficiency(GetInferenceType(op)); } bool IsOpSupported(mlir::Operation* op) const override { return true; } }; std::unique_ptr<TargetHardwareOperation> CreateArithmeticOp() { return std::make_unique<CpuArithmeticOp>(); } // Currently used for these ops: // tfl.concatenation / tfl.reshape / tfl.pack class CpuConcatOp : public TargetHardwareOperation { double GetOpCost(mlir::Operation* op) const override { float cost = 0.0; int64_t count; if (ArithmeticCountUtilHelper::GetInputTensorTotalSize(op, &count)) { cost = kCPUCopyUnitCost * count; } else { cost = kCPUDefaultFixedValuedCost; } return cost * InferenceTypeEfficiency(GetInferenceType(op)); } bool IsOpSupported(mlir::Operation* op) const override { return true; } }; std::unique_ptr<TargetHardwareOperation> CreateConcatOp() { return std::make_unique<CpuConcatOp>(); } TAC_REGISTER_CPU_OP(Conv2DOp, CreateConvOp); TAC_REGISTER_CPU_OP(DepthwiseConv2DOp, CreateConvOp); TAC_REGISTER_CPU_OP(FullyConnectedOp, CreateConvOp); TAC_REGISTER_CPU_OP(AddOp, CreateArithmeticOp); TAC_REGISTER_CPU_OP(MulOp, CreateArithmeticOp); TAC_REGISTER_CPU_OP(ConcatenationOp, CreateConcatOp); TAC_REGISTER_CPU_OP(ReshapeOp, CreateConcatOp); TAC_REGISTER_CPU_OP(PackOp, CreateConcatOp); #undef TAC_REGISTER_CPU_OP } // namespace } // namespace tac } // namespace TFL } // namespace mlir
{ "content_hash": "1dd66b73fe4a2f477c91817d726e3ab7", "timestamp": "", "source": "github", "line_count": 160, "max_line_length": 85, "avg_line_length": 33.4, "alnum_prop": 0.719124251497006, "repo_name": "karllessard/tensorflow", "id": "a4f09f98bc7c2319e6f6344126bd5209c77f7632", "size": "6012", "binary": false, "copies": "11", "ref": "refs/heads/master", "path": "tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "36962" }, { "name": "C", "bytes": "1366182" }, { "name": "C#", "bytes": "13584" }, { "name": "C++", "bytes": "124800442" }, { "name": "CMake", "bytes": "183072" }, { "name": "Cython", "bytes": "5003" }, { "name": "Dockerfile", "bytes": "416070" }, { "name": "Go", "bytes": "2104698" }, { "name": "HTML", "bytes": "4686483" }, { "name": "Java", "bytes": "1074438" }, { "name": "Jupyter Notebook", "bytes": "792868" }, { "name": "LLVM", "bytes": "6536" }, { "name": "MLIR", "bytes": "11176792" }, { "name": "Makefile", "bytes": "2760" }, { "name": "Objective-C", "bytes": "169288" }, { "name": "Objective-C++", "bytes": "294187" }, { "name": "Pawn", "bytes": "5552" }, { "name": "Perl", "bytes": "7536" }, { "name": "Python", "bytes": "42620525" }, { "name": "Roff", "bytes": "5034" }, { "name": "Ruby", "bytes": "9199" }, { "name": "Shell", "bytes": "620121" }, { "name": "Smarty", "bytes": "89545" }, { "name": "SourcePawn", "bytes": "14607" }, { "name": "Starlark", "bytes": "7545879" }, { "name": "Swift", "bytes": "78435" }, { "name": "Vim Snippet", "bytes": "58" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center"> <ProgressBar android:id="@+id/progress_bar" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <WebView android:id="@+id/web_content" android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone"/> </RelativeLayout>
{ "content_hash": "1d96ed7dd104f632625d64ada7ab62f8", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 62, "avg_line_length": 30.105263157894736, "alnum_prop": 0.6590909090909091, "repo_name": "Hultron/LifeHelper", "id": "28f49ce4ab39bfa75b3d8ede50bffd290fb250b8", "size": "572", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/res/layout/activity_news_content.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "243384" } ], "symlink_target": "" }
package codeAegon; import java.util.*; /** * * @author k nityan suman * */ class HashMapsDemo { // TODO class showcasing the use of hashmap data structure public static void main(String[] args) { // declare a string to string hashmap HashMap<String, String> myMap = new HashMap<>(); myMap.put("Hi!", "Hey!"); // add key-value pair to the hash map myMap.put("Hello!", "Hola!"); System.out.println("Key = Hi! and Value = " + myMap.get("Hi!")); // obtain values based on key System.out.println("Key = Hello! and Value = " + myMap.get("Hello!")); // each key is associated with only one value myMap.put("Hi!", "Bye!"); // only one Hi keys is present and the values is changed to the latest one i.e., Bye! System.out.println("Key = Hi! and Value = " + myMap.get("Hi!")); System.out.println("Entire Hashmap => " + myMap); // get the entire hashmap // check if a key is present System.out.println("Is key = Bye! present ? (y/n) " + myMap.containsKey("Bye!")); // check if a key is present System.out.println("Is key = Hello! present ? (y/n) " + myMap.containsKey("Hello!")); } }
{ "content_hash": "c34232c7b8b60270a685fa82236875ad", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 118, "avg_line_length": 35.8235294117647, "alnum_prop": 0.5894909688013136, "repo_name": "nityansuman/LearningJava", "id": "a78102ec6fae2f267b018ac2ec7b54c5c61f1f1e", "size": "1218", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "code_puzzle/HashMapsDemo.java", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "339" }, { "name": "Java", "bytes": "92555" } ], "symlink_target": "" }
SSL Keys ======== The keys in this folder are _strictly_ for debugging/development purposes.
{ "content_hash": "fca800a853d2a10ad197779eac73d722", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 74, "avg_line_length": 23.5, "alnum_prop": 0.723404255319149, "repo_name": "bennett000/js-seed-full-stack", "id": "a54956b7c54d4a8697e7302578668b2207e1e085", "size": "94", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "etc/ssl/README.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "8811" }, { "name": "HTML", "bytes": "10136" }, { "name": "JavaScript", "bytes": "125040" } ], "symlink_target": "" }
using System.Text; namespace Baker.Text { internal sealed class JsContinueNode : JsAstNode { public int NestLevel { get; set; } public string Label { get; set; } public JsContext LabelContext { get; set; } public JsContinueNode(JsContext context, JsParser parser) : base(context, parser) { } public override void Accept(IJsVisitor visitor) { if (visitor != null) { visitor.Visit(this); } } } }
{ "content_hash": "363b85c28d67e09c442bcd6b9d56777a", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 65, "avg_line_length": 21, "alnum_prop": 0.5347985347985348, "repo_name": "Kelindar/misakai-baker", "id": "0b571d4d1680a7f2b6f0bd72c5ab7f51e89d94bc", "size": "1163", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Baker.Runtime/Text/Minifiers/JavaScript/JsContinueNode.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C#", "bytes": "2228663" }, { "name": "CSS", "bytes": "910916" }, { "name": "HTML", "bytes": "7553" }, { "name": "JavaScript", "bytes": "702147" }, { "name": "Shell", "bytes": "204" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; using System.Xml; using System.Xml.Linq; namespace MiniMVC { /// <summary> /// Various helper functions to deal with XML / XHTML / HTML /// </summary> public static class X { /// <summary> /// Shortcut to build a <see cref="XAttribute"/> /// </summary> /// <param name="name"></param> /// <param name="value"></param> /// <returns></returns> public static XAttribute A(string name, string value) { return new XAttribute(XName.Get(name), value); } /// <summary> /// Shortcut to build a <see cref="XElement"/> /// </summary> /// <param name="name"></param> /// <param name="content"></param> /// <returns></returns> public static XElement E(string name, params object[] content) { return new XElement(XName.Get(name), content); } public static XNode T(string text) { return new XText(text); } /// <summary> /// Parses raw xml /// </summary> /// <param name="xml"></param> /// <returns></returns> public static XNode[] Raw(string xml) { var x = "<x>" + xml + "</x>"; var xdoc = XDocument.Parse(x, LoadOptions.PreserveWhitespace); return xdoc.Document.Root.Nodes().ToArray(); } public static XElement Alter(this XElement e, Func<bool> pred, Action<XElement> alter) { if (pred()) alter(e); return e; } /// <summary> /// XHTML 1.0 Transitional doctype /// </summary> public static readonly XDocumentType XHTML1_0_Transitional_Doctype = new XDocumentType("html", "-//W3C//DTD XHTML 1.0 Transitional//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd", null); /// <summary> /// XHTML 1.0 Strict doctype /// </summary> public static readonly XDocumentType XHTML1_0_Strict_Doctype = new XDocumentType("html", "-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd", null); /// <summary> /// HTML 5 doctype /// </summary> public static readonly XDocumentType HTML5_Doctype = new XDocumentType("html", null, null, null); /// <summary> /// Non-breaking space /// </summary> public static readonly string nbsp = "\u00A0"; /// <summary> /// Right angle quotation mark /// </summary> public static readonly string raquo = "\u00BB"; /// <summary> /// Left angle quotation mark /// </summary> public static readonly string laquo = "\u00AB"; /// <summary> /// Single right-pointing angle quotation mark /// </summary> public static readonly string rsaquo = "\u203A"; /// <summary> /// Single left-pointing angle quotation mark /// </summary> public static readonly string lsaquo = "\u2039"; /// <summary> /// Copyright character entity /// </summary> public static readonly string copy = "\u00A9"; /// <summary> /// Ampersand /// </summary> public static readonly string amp = "\u0026"; /// <summary> /// Less than /// </summary> public static readonly string lt = "\u003C"; /// <summary> /// Greater than /// </summary> public static readonly string gt = "\u003E"; /// <summary> /// XHTML namespace (http://www.w3.org/1999/xhtml) /// </summary> public static readonly XNamespace XHTML_Namespace = XNamespace.Get("http://www.w3.org/1999/xhtml"); private static readonly HashSet<string> emptyElems = new HashSet<string> { "area", "base", "basefont", "br", "col", "command", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr" }; public static bool IsEmptyElement(string elementName) { return emptyElems.Contains(elementName); } public static bool IsEmptyElement(this XElement element) { return IsEmptyElement(element.Name.LocalName); } public static XNode FixEmptyElements(this XNode n) { var e = n as XElement; if (e != null) { var isEmptyElem = e.IsEmptyElement(); if (isEmptyElem && !e.IsEmpty) return new XElement(e.Name, e.Attributes()); var children = e.Nodes().Select(FixEmptyElements); if (!isEmptyElem && e.IsEmpty) return new XElement(e.Name, e.Attributes(), new XText(""), children); return new XElement(e.Name, e.Attributes(), children); } return n; } public static XNode ApplyNamespace(this XNode n, XNamespace ns) { var e = n as XElement; if (e != null) { var name = ns + e.Name.LocalName; var children = e.Nodes().Select(x => x.ApplyNamespace(ns)); return new XElement(name, e.Attributes(), children); } return n; } public static XNode MakeHTMLCompatible(this XNode n) { var xhtml = ApplyNamespace(n, XHTML_Namespace); return FixEmptyElements(xhtml); } public static XDocument MakeHTML5Doc(this XElement root) { return new XDocument(HTML5_Doctype, MakeHTMLCompatible(root)); } public static XmlWriter CreateXmlWriter(Stream output) { var settings = new XmlWriterSettings { OmitXmlDeclaration = true, ConformanceLevel = ConformanceLevel.Fragment, NewLineHandling = NewLineHandling.None, Encoding = new UTF8Encoding(false), }; return XmlWriter.Create(output, settings); } public static void WriteToStream(this XNode n, Stream output) { if (n == null) return; using (var xmlwriter = CreateXmlWriter(output)) n.FixEmptyElements().WriteTo(xmlwriter); } public static void WriteToResponse(this XNode n) { var ctx = HttpContext.Current; if (ctx == null) throw new Exception("No current HttpContext"); n.WriteToStream(ctx.Response.OutputStream); } public static void WriteToStream(this IEnumerable<XNode> nodes, Stream output) { if (nodes == null) return; var root = X.E("x", nodes).FixEmptyElements() as XElement; using (var xmlwriter = CreateXmlWriter(output)) { foreach (var n in root.Nodes()) n.WriteTo(xmlwriter); } } public static string WriteToString(this IEnumerable<XNode> nodes) { if (nodes == null) return ""; using (var ms = new MemoryStream()) { nodes.WriteToStream(ms); return Encoding.UTF8.GetString(ms.ToArray()); } } public static void WriteToResponse(this IEnumerable<XNode> nodes) { var ctx = HttpContext.Current; if (ctx == null) throw new Exception("No current HttpContext"); nodes.WriteToStream(ctx.Response.OutputStream); } public static void WriteToResponse(this IEnumerable<XElement> elements) { elements.Select(x => (XNode) x).WriteToResponse(); } public static bool IsNullOrWhiteSpace(string value) { if (value != null) { for (int i = 0; i < value.Length; i++) { if (!char.IsWhiteSpace(value[i])) { return false; } } } return true; } public static bool IsWhiteSpace(this XNode n) { var t = n as XText; return t != null && IsNullOrWhiteSpace(t.Value); } public static IEnumerable<XNode> Trim(this IEnumerable<XNode> nodes) { return nodes.SkipWhile(IsWhiteSpace) .Reverse() .SkipWhile(IsWhiteSpace) .Reverse(); } public static string SpacesToNbsp(string s) { if (s == null) return null; return s.Replace(' ', (char)0xa0); } public static XElement Javascript(string content) { var cdata = new XCData("*/" + content + "/*"); var begin = new XText("/*"); var end = new XText("*/"); return E("script", A("type", "text/javascript"), begin, cdata, end); } public static XElement Javascript(XCData content) { return Javascript(content.Value); } public static IEnumerable<XElement> SelectOption(IEnumerable<XElement> options, string value) { return options.Select(e => { var valueAtt = e.Attribute("value"); if (valueAtt == null) return e; if (valueAtt.Value != value) return e; var newOption = new XElement(e); newOption.Add(X.A("selected", "selected")); return newOption; }); } public static XElement UnselectOption(XElement option) { return option.RemoveAttr("selected"); } public static XElement RemoveChildNodes(this XElement element) { var e = new XElement(element); e.RemoveNodes(); return e; } public static XElement RemoveAttr(this XElement element) { var e = new XElement(element); e.RemoveAttributes(); return e; } public static XElement RemoveAttr(this XElement element, string attribute) { var e = element.RemoveAttr(); var attr = element.Attributes().Where(a => a.Name.LocalName != attribute).ToArray(); e.Add(attr); return e; } public static string AttributeValue(this XElement element, string attr) { var a = element.Attribute(attr); if (a == null) return null; return a.Value; } public static IEnumerable<string> SelectedValues(this IEnumerable<XElement> elements) { return elements.Where(e => e.Attribute("selected") != null).Select(x => x.AttributeValue("value")); } public static string SelectedValue(this IEnumerable<XElement> elements) { return elements.SelectedValues().FirstOrDefault(); } public static string SelectedText(this IEnumerable<XElement> elements) { return elements.Where(e => e.Attribute("selected") != null).Select(x => x.Value).FirstOrDefault(); } public static T Match<T>(this XNode node, Func<XCData, T> cdata, Func<XComment, T> comment, Func<XText, T> text, Func<XProcessingInstruction, T> instruction, Func<XElement, T> element) { var ncdata = node as XCData; if (ncdata != null) return cdata(ncdata); var ncomment = node as XComment; if (ncomment != null) return comment(ncomment); var ntext = node as XText; if (ntext != null) return text(ntext); var ninstruction = node as XProcessingInstruction; if (ninstruction != null) return instruction(ninstruction); var nelement = node as XElement; if (nelement != null) return element(nelement); throw new Exception("Unknown node type " + node.GetType()); } public static readonly IEnumerable<XElement> NoElements = Enumerable.Empty<XElement>(); public static readonly IEnumerable<XNode> NoNodes = Enumerable.Empty<XNode>(); } }
{ "content_hash": "8d45f260bbd6ce3252c038846b7ffc19", "timestamp": "", "source": "github", "line_count": 335, "max_line_length": 239, "avg_line_length": 37.48955223880597, "alnum_prop": 0.5319691058205271, "repo_name": "mausch/MiniMVC", "id": "04a01e62372dfaa248cc3ed2ee11e323989ab4aa", "size": "12561", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "MiniMVC/X.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Boo", "bytes": "2837" }, { "name": "C#", "bytes": "30643" }, { "name": "Shell", "bytes": "66" }, { "name": "Visual Basic", "bytes": "1220" } ], "symlink_target": "" }
package com.thinkbiganalytics.spark.dataprofiler.output; import java.io.Serializable; /** * Class to represent a row in profile statistics output<br> * Format of output:<br> * * ColumnName, MetricType, MetricValue */ @SuppressWarnings({"unused", "serial"}) public class OutputRow implements Serializable { private String columnName; private String metricType; private String metricValue; /** * No-argument constructor */ public OutputRow() { columnName = null; metricType = null; metricValue = null; } /** * Three-argument constructor to create a new row * * @param columnName name of column * @param metricType metric type * @param metricValue metric value */ public OutputRow(String columnName, String metricType, String metricValue) { this.columnName = columnName; this.metricType = metricType; this.metricValue = metricValue; } /** * Get the column name * * @return column name */ public String getColumnName() { return columnName; } /** * Set the column name * * @param columnName column name */ public void setColumnName(String columnName) { this.columnName = columnName; } /** * Get the metric type * * @return metric type */ public String getMetricType() { return metricType; } /** * Set the metric type * * @param metricType metric type */ public void setMetricType(String metricType) { this.metricType = metricType; } /** * Get the metric value * * @return metric value */ public String getMetricValue() { return metricValue; } /** * Set the metric value * * @param metricValue metric value */ public void setMetricValue(String metricValue) { this.metricValue = metricValue; } /** * Set values for the row * * @param columnName name of column * @param metricType metric type * @param metricValue metric value */ public void setValues(String columnName, String metricType, String metricValue) { this.columnName = columnName; this.metricType = metricType; this.metricValue = metricValue; } /** * Print verbose description of row to console */ @Override public String toString() { return "OutputRow [columnName=" + columnName + ", metricType=" + metricType + ", metricValue=" + metricValue + "]"; } }
{ "content_hash": "fa18988c4e6a1fecac4b8d862a34cdbf", "timestamp": "", "source": "github", "line_count": 117, "max_line_length": 116, "avg_line_length": 22.316239316239315, "alnum_prop": 0.5997702029873612, "repo_name": "claudiu-stanciu/kylo", "id": "fe27c279fee5d4db6af8c503c3cfa679749f3465", "size": "3277", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "integrations/spark/spark-job-profiler/spark-job-profiler-api/src/main/java/com/thinkbiganalytics/spark/dataprofiler/output/OutputRow.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "5006" }, { "name": "CSS", "bytes": "265273" }, { "name": "FreeMarker", "bytes": "785" }, { "name": "HTML", "bytes": "764976" }, { "name": "Java", "bytes": "10148636" }, { "name": "JavaScript", "bytes": "3529132" }, { "name": "PLpgSQL", "bytes": "31537" }, { "name": "SQLPL", "bytes": "11241" }, { "name": "Scala", "bytes": "32595" }, { "name": "Shell", "bytes": "102225" }, { "name": "TypeScript", "bytes": "543195" } ], "symlink_target": "" }
#include "Game.h" #include <iostream> #include <stdio.h> #include <string> #include <vector> #include <iostream> #include <fstream> #include <algorithm> #include <stdlib.h> #include <ctime> #include <SDL_ttf.h> #include "Content.h" #include "FPSController.h" #include "RiftController.h" #include "XBoxController.h" #include "Steerable3DController.h" #include "Utils.h" using namespace BGE; BGE::Game * Game::instance = NULL; glm::vec3 BGE::RotateVector(glm::vec3 v, glm::quat q) { glm::quat qinv = glm::inverse(q); glm::quat w = glm::quat(0, v.x, v.y, v.z); w = q * w * qinv; return glm::vec3(w.x, w.y, w.z); } Game::Game(void) { running = false; console = true; fullscreen = true; hud = true; width = 800; height = 600; riftEnabled = false; // Rift width = 1280; height = 800; mainwindow = NULL; instance = this; srand(time(0)); elapsed = 10000.0f; lastPrintPosition = glm::vec2(0,0); fontSize = 14; fps = 0; worldMode = world_modes::from_self; camera = make_shared<Camera>(); soundSystem = make_shared<SoundSystem>(); soundSystem->Initialise(); Attach(camera); } Game::~Game(void) { } shared_ptr<Ground> Game::GetGround() { return ground; } bool Game::Initialise() { // Set up a console for debugging if (console) { AllocConsole(); int fd = _open_osfhandle( (long)GetStdHandle( STD_OUTPUT_HANDLE ), 0); FILE * fp = _fdopen( fd, "w" ); *stdout = *fp; setvbuf( stdout, NULL, _IONBF, 0 ); } if(SDL_Init(SDL_INIT_EVERYTHING) < 0) { return false; } /* Turn on double buffering with a 24bit Z buffer. * You may need to change this to 16 or 32 for your system */ SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); Uint32 flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | (fullscreen ? SDL_WINDOW_FULLSCREEN : 0); /* Create our window centered at 512x512 resolution */ mainwindow = SDL_CreateWindow("", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, flags); maincontext = SDL_GL_CreateContext(mainwindow); /* This makes our buffer swap syncronized with the monitor's vertical refresh */ SDL_GL_SetSwapInterval(1); keyState = SDL_GetKeyboardState(NULL); GLenum err = glewInit(); if (GLEW_OK != err) { char msg[2048]; sprintf(msg, "%s", glewGetErrorString(err)); std::cerr << "Error:" << glewGetErrorString(err); return false; } if (! GLEW_VERSION_2_0) { throw BGE::Exception("OpenGL Shaders not supported. Upgrade your graphics card drivers"); } glViewport(0, 0, width, height); // Enable depth test glEnable(GL_DEPTH_TEST); // Accept fragment if it closer to the camera than the former one glDepthFunc(GL_LESS); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); SDL_GL_SetSwapInterval(1); if (TTF_Init() < 0) { throw BGE::Exception("Could not init TTF"); } font = TTF_OpenFont("Content/arial.ttf",fontSize); // Open a font & set the font size if (riftEnabled) { shared_ptr<RiftController> riftController = make_shared<RiftController>(); riftController->position = glm::vec3(0, 10, 10); this->riftController = riftController; camera->Attach(riftController); } else { shared_ptr<GameComponent> controller = make_shared<FPSController>(); controller->position = glm::vec3(0, 10, 10); camera->Attach(controller); } LineDrawer::Instance()->Initialise(); running = true; initialised = true; return GameComponent::Initialise(); } void Game::PrintText(string message, glm::vec2 position) { messages.push_back(PrintMessage(message, position)); } void Game::PrintVector(string message, glm::vec3 v) { stringstream ss; ss << message << v.x << " " << v.y << " " << v.z; PrintText(ss.str()); } void Game::PrintFloat(string message, float f) { stringstream ss; ss << message << f; PrintText(ss.str()); } void Game::PrintText(string message) { messages.push_back(PrintMessage(message, lastPrintPosition)); lastPrintPosition.y += 20; } bool Game::Run() { if(Initialise() == false) { return false; } long last = SDL_GetTicks(); while(running) { long now = SDL_GetTicks(); float ellapsed = ((float) (now - last)) / 1000.0f; Update(ellapsed); PreDraw(); Draw(); PostDraw(); last = now; } Cleanup(); return 0; } void Game::SetGround(shared_ptr<Ground> ground) { children.remove(this->ground); this->ground = ground; Attach(ground); } void Game::Update(float timeDelta) { // Check for messages fps = 1.0f / timeDelta; PrintText("FPS: " + to_string((long long) fps)); soundSystem->Update(); static bool lastPressed = false; if (keyState[SDL_SCANCODE_I]) { if (! lastPressed) { hud = ! hud; } lastPressed = true; } else { lastPressed = false; } SDL_Event event; if (SDL_PollEvent(&event)) { // Check for the quit message if (event.type == SDL_QUIT) { // Quit the program Cleanup(); exit(0); } } if (keyState[SDL_SCANCODE_ESCAPE]) { Cleanup(); exit(0); } //PrintText(riftMessage); GameComponent::Update(timeDelta); } void Game::PreDraw() { glClearColor(0.0f, 0.0f, 0.0f, 0.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); } void Game::PostDraw() { // Printing has to be done last, so we batch up the print messages if (hud) { vector<PrintMessage>::iterator it = messages.begin(); while (it != messages.end()) { Print(it->message, it->position); it ++; } } messages.clear(); lastPrintPosition.y = 0; SDL_GL_SwapWindow(mainwindow); } void Game::Cleanup () { GameComponent::Cleanup(); SDL_GL_DeleteContext(maincontext); SDL_DestroyWindow(mainwindow); SDL_Quit(); } Game * Game::Instance() { return instance; } const Uint8 * Game::GetKeyState() { return keyState; } SDL_Window * Game::GetMainWindow() { return mainwindow; } void Game::Draw() { PrintText("Press I to toggle info"); if (riftEnabled) { glEnable(GL_DEPTH_TEST); //glDisable(GL_CULL_FACE); riftController->BindRenderBuffer(); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); const int fboWidth = riftController->GetRenderBufferWidth(); const int fboHeight = riftController->GetRenderBufferHeight(); const int halfWidth = fboWidth/2; const OVR::HMDInfo& hmd = riftController->GetHMD(); // Compute Aspect Ratio. Stereo mode cuts width in half. float aspectRatio = float(hmd.HResolution * 0.5f) / float(hmd.VResolution); // Compute Vertical FOV based on distance. float halfScreenDistance = (hmd.VScreenSize / 2); float yfov = 2.0f * glm::atan<float>(halfScreenDistance/hmd.EyeToScreenDistance); // Post-projection viewport coordinates range from (-1.0, 1.0), with the // center of the left viewport falling at (1/4) of horizontal screen size. // We need to shift this projection center to match with the lens center. // We compute this shift in physical units (meters) to correct // for different screen sizes and then rescale to viewport coordinates. float viewCenterValue = hmd.HScreenSize * 0.25f; float eyeProjectionShift = viewCenterValue - hmd.LensSeparationDistance * 0.5f; float projectionCenterOffset = 4.0f * eyeProjectionShift / hmd.HScreenSize; // Projection matrix for the "center eye", which the left/right matrices are based on. OVR::Matrix4f projCenter = OVR::Matrix4f::PerspectiveRH(yfov, aspectRatio, 0.3f, 1000.0f); OVR::Matrix4f projLeft = OVR::Matrix4f::Translation(projectionCenterOffset, 0, 0) * projCenter; OVR::Matrix4f projRight = OVR::Matrix4f::Translation(-projectionCenterOffset, 0, 0) * projCenter; glm::mat4 cameraCentreView = camera->view; // View transformation translation in world units. float halfIPD = hmd.InterpupillaryDistance * 0.5f; OVR::Matrix4f viewLeft = OVR::Matrix4f::Translation(halfIPD, 0, 0) * GLToOVRMat4(camera->view); OVR::Matrix4f viewRight= OVR::Matrix4f::Translation(-halfIPD, 0, 0) * GLToOVRMat4(camera->view); glViewport(0 ,0,(GLsizei)halfWidth, (GLsizei)fboHeight); glScissor (0 ,0,(GLsizei)halfWidth, (GLsizei)fboHeight); camera->view = OVRToGLMat4(viewLeft); camera->projection = OVRToGLMat4(projLeft); // Draw all my children LineDrawer::Instance()->Draw(); GameComponent::Draw(); glViewport(halfWidth,0,(GLsizei)halfWidth, (GLsizei)fboHeight); glScissor (halfWidth,0,(GLsizei)halfWidth, (GLsizei)fboHeight); camera->view = OVRToGLMat4(viewRight); camera->projection = OVRToGLMat4(projRight); // Draw all my children LineDrawer::Instance()->Draw(); GameComponent::Draw(); riftController->UnBindRenderBuffer(); glDisable(GL_LIGHTING); glDisable(GL_DEPTH_TEST); riftController->PresentFbo(); camera->view = cameraCentreView; } else { glViewport(0, 0, width, height); LineDrawer::Instance()->Draw(); GameComponent::Draw(); } } int Game::GetWidth() { return width; } int Game::GetHeight() { return height; } void Game::Print(string message, glm::vec2 position) { std::vector<glm::vec2> vertices; std::vector<glm::vec2> uvs; SDL_Color foregroundColor = { 255, 255, 255 }; SDL_Color backgroundColor = { 0, 0, 0 }; SDL_Rect TextLocation; GLuint texture; GLint colors; GLenum texture_format; SDL_Surface * surface = TTF_RenderText_Blended(font, message.c_str(), foregroundColor); colors = surface->format->BytesPerPixel; if (colors == 4) { if (surface->format->Rmask == 0x000000ff) { texture_format = GL_RGBA; } else { texture_format = GL_BGRA; } } else if (colors == 3) { if (surface->format->Rmask == 0x000000ff) { texture_format = GL_RGB; } else { texture_format = GL_BGR; } } else { printf("warning: the image is not truecolor.. this will probably break\n"); } float x, y; float width = surface->w; float height = surface->h; x = position.x; y = (this->height - height) - position.y; vertices.push_back(glm::vec2(x + width,y)); vertices.push_back(glm::vec2(x,y + height)); vertices.push_back(glm::vec2(x,y)); vertices.push_back(glm::vec2(x + width,y + height)); vertices.push_back(glm::vec2(x,y + height)); vertices.push_back(glm::vec2(x + width,y)); uvs.push_back(glm::vec2(1, 1)); uvs.push_back(glm::vec2(0, 0)); uvs.push_back(glm::vec2(0, 1)); uvs.push_back(glm::vec2(1, 0)); uvs.push_back(glm::vec2(0, 0)); uvs.push_back(glm::vec2(1, 1)); GLuint programID = Content::LoadShaderPair("TextShader"); glUseProgram(programID); // Set our "myTextureSampler" sampler to user Texture Unit 0 GLuint textureSampler = glGetUniformLocation(programID, "myTextureSampler"); // glGenTextures(1, &texture); glBindTexture(GL_TEXTURE_2D, texture); glTexImage2D(GL_TEXTURE_2D, 0, colors, surface->w, surface->h, 0, texture_format, GL_UNSIGNED_BYTE, surface->pixels); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); GLuint sizeID = glGetUniformLocation(programID, "screen_size"); glUniform2f(sizeID, this->width, this->height); // Bind our texture in Texture Unit 0 glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, texture); // Set our "myTextureSampler" sampler to user Texture Unit 0 glUniform1i(textureSampler, 0); GLuint vertexbuffer; glGenBuffers(1, &vertexbuffer); glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer); glBufferData(GL_ARRAY_BUFFER, vertices.size() * sizeof(glm::vec2), &vertices[0], GL_STATIC_DRAW); GLuint uvbuffer; glGenBuffers(1, &uvbuffer); glBindBuffer(GL_ARRAY_BUFFER, uvbuffer); glBufferData(GL_ARRAY_BUFFER, uvs.size() * sizeof(glm::vec2), &uvs[0], GL_STATIC_DRAW); glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, vertexbuffer); glVertexAttribPointer( 0, // attribute 2, // size GL_FLOAT, // type GL_FALSE, // normalized? 0, // stride (void*)0 // array buffer offset ); // 1st attribute buffer : normals glEnableVertexAttribArray(1); glBindBuffer(GL_ARRAY_BUFFER, uvbuffer); glVertexAttribPointer( 1, // attribute 2, // size GL_FLOAT, // type GL_TRUE, // normalized? 0, // stride (void*)0 // array buffer offset ); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // Draw call glDrawArrays(GL_TRIANGLES, 0, vertices.size() ); glDisable(GL_BLEND); glDisableVertexAttribArray(0); glDisableVertexAttribArray(1); glDeleteTextures(1, &texture); glDeleteBuffers(1, &vertexbuffer); glDeleteBuffers(1, &uvbuffer); SDL_FreeSurface(surface); }
{ "content_hash": "3c7b947eeba2c02f88adcf6474c8453c", "timestamp": "", "source": "github", "line_count": 515, "max_line_length": 118, "avg_line_length": 25.01359223300971, "alnum_prop": 0.6706256792423537, "repo_name": "ymko13/GE1", "id": "ce47defe1cb020294da9a715d94e7f6fbdbbf2c7", "size": "12882", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "BGE/Game.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "Awk", "bytes": "3962" }, { "name": "C", "bytes": "11338805" }, { "name": "C++", "bytes": "5715799" }, { "name": "D", "bytes": "4568427" }, { "name": "Lua", "bytes": "9439" }, { "name": "Objective-C", "bytes": "90386" }, { "name": "Python", "bytes": "171467" }, { "name": "Shell", "bytes": "537094" } ], "symlink_target": "" }
/*jslint node: true, nomen: false, sloppy: true, vars: true, indent: 4, todo: true */ if (global.GENTLY_HIJACK) { require = GENTLY_HIJACK.hijack(require); } var https = require('https'), _ = require('underscore'), qs = require('qs'), StatusPageBase = require('./statuspage-base'), logger = require('../logger'); // Array of valid API elements that can be used for POST requests var ELEMENTS_POST = [ 'incidents', 'subscribers' ]; // Array of valid API elements that can be used for GET requests var ELEMENTS_GET = [ 'pages', 'components', 'incidents', 'incidents/unresolved', 'incidents/scheduled', 'subscribers' ]; // var ELEMENTS_DELETE = [ // 'incidents', // 'subscribers' // ] var isValidOperation = function (method, element) { // Validate Request method and element. var validity = false; switch (method) { case 'GET': validity = element && _(ELEMENTS_GET).include(element.toLowerCase()); break; case 'POST': validity = element && _(ELEMENTS_POST).include(element.toLowerCase()); break; // TODO: Not implemented // case 'PATCH': // validity = method && _(ELEMENTS_PATCH).include(method.toLowerCase()); // break; // case 'PUT': // validity = method && _(ELEMENTS_PUT).include(method.toLowerCase()); // break; // case 'DELETE': // validity = method && _(ELEMENTS_DELETE).include(method.toLowerCase()); // break; } logger.log('debug', 'Validity(' + method + ', ' + element + '): ' + validity); return validity; }; var isWriteOperation = function (httpVerb) { return httpVerb === 'POST' || httpVerb === 'PATCH' || httpVerb === 'PUT'; }; var requestHeaders = function (httpVerb, data, statuspage) { var headers = { 'User-Agent': statuspage.useragent, 'Authorization': statuspage.apikey }; if (isWriteOperation(httpVerb)) { headers['Content-Type'] = 'application/x-www-form-urlencoded'; headers['Content-Length'] = Buffer.byteLength(data); } return headers; }; var makeUrl = function (pageId, element) { // Combine page ID and element to form request URI // TODO: This function will need to be updated to support // additional elements and operations var url = '/v1/pages/' + pageId; if (element === 'pages') { url += '.json'; } else { url += '/' + element + '.json'; } return url; }; var StatusPageRequest = function (statuspage) { StatusPageBase.call(this); this.statuspage = statuspage; logger.debugLevel = statuspage.debuglevel; // Register handlers with base // TODO: This has been replaced with callbacks, but could fairly easily // be re-implemented if needed // this.registerHandlers(handlers); }; StatusPageRequest.prototype = Object.create(StatusPageBase.prototype); StatusPageRequest.prototype.chunkedResponse = function (res, callback) { var self = this, data = '', result = {}; res.on('data', function (chunk) { data += chunk.toString('utf8'); }); res.on('end', function () { // Package response data var json = { data: {}, response: { statusCode: res.statusCode, statusMessage: res.statusMessage, headers: res.headers } }; try { logger.log('debug', ['Raw Response data: ', data]); json.data = JSON.parse(data); // Error parsing JSON response if (json.error) { result.status = 'error'; result.error = json; self.emit('error', json); } // Status OK, so return success if (res.statusCode === 200 || res.statusCode === 201) { result.status = 'success'; result.error = null; result.data = json.data; // Something went wrong } else { var message = 'Unexpected response: ' + json.response.statusCode + ' ' + json.response.statusMessage; result.status = 'failure'; result.error = message; } self.emit('success', json); } catch (e) { result.status = 'error'; result.error = e; self.emit('error', e); } if (typeof callback === 'function') { callback(result); } else { return result; } }); }; StatusPageRequest.prototype.sendRequest = function (method, element, args, callback) { var self = this, statuspage = this.statuspage; args = args || {}; if (isValidOperation(method, element)) { // Prepare data to be sent to API var host = statuspage.host, port = statuspage.port, url = makeUrl(statuspage.pageid, element), httpVerb = method, data = qs.stringify(args, {arrayFormat: 'brackets'}), options = { host: host, port: port, path: url, method: httpVerb, headers: requestHeaders(httpVerb, data, statuspage) }; logger.log('debug', ['Query String: ', data]); logger.log('debug', ['Request options: ', options]); // Send API request var req = https.request(options, function (res) { self.chunkedResponse(res, callback); }); req.on('error', function (error) { self.emit('error', error); }); if (isWriteOperation(httpVerb)) { req.write(data, 'utf8'); } req.end(); } else { // Emit warning var warningMessage = 'Request is not supported. ' + method + ': ' + element; this.on('warning', function () { logger.log('warn', warningMessage); }); this.emit('warning', warningMessage); } }; // Export module.exports = StatusPageRequest;
{ "content_hash": "9588fa77324ecca9b5e8788c851fff45", "timestamp": "", "source": "github", "line_count": 196, "max_line_length": 86, "avg_line_length": 31.096938775510203, "alnum_prop": 0.549630844954881, "repo_name": "dyninc/statuspage-api", "id": "cb9a58e1d97856109235e940005f2bea92f20de6", "size": "6095", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "lib/statuspage/statuspage-request.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "20936" }, { "name": "Makefile", "bytes": "846" } ], "symlink_target": "" }
package com.blazebit.persistence.view.processor; import javax.lang.model.type.TypeKind; import javax.lang.model.type.TypeVariable; /** * @author Christian Beikov * @since 1.6.8 */ public class JavaTypeVariable { private final String name; private final boolean isExtends; private final JavaType bound; public JavaTypeVariable(TypeVariable typeVariable) { this.name = typeVariable.toString(); this.isExtends = typeVariable.getLowerBound().getKind() == TypeKind.NULL; if (isExtends) { this.bound = new JavaType(typeVariable.getUpperBound()); } else { this.bound = new JavaType(typeVariable.getLowerBound()); } } public String getName() { return name; } public void append(ImportContext importContext, StringBuilder sb) { sb.append(name); if (isExtends) { sb.append(" extends "); } else { sb.append(" super "); } bound.append(importContext, sb); } }
{ "content_hash": "45dd8f16776e67a9d46e43732a1fffd0", "timestamp": "", "source": "github", "line_count": 41, "max_line_length": 81, "avg_line_length": 25.121951219512194, "alnum_prop": 0.625242718446602, "repo_name": "Blazebit/blaze-persistence", "id": "06c10c25a03bac14e390e55bb4a0137ed6cee344", "size": "1630", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "entity-view/processor/src/main/java/com/blazebit/persistence/view/processor/JavaTypeVariable.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "44368" }, { "name": "Batchfile", "bytes": "727" }, { "name": "CSS", "bytes": "85149" }, { "name": "FreeMarker", "bytes": "16964" }, { "name": "HTML", "bytes": "8988" }, { "name": "Java", "bytes": "20068561" }, { "name": "JavaScript", "bytes": "7022" }, { "name": "Shell", "bytes": "12643" } ], "symlink_target": "" }
This project contains language-agnostic test files for the [JSONata querying/transformation language](http://jsonata.org/). In general, one directory in `data` corresponds to one test case or one block of related test directories. Directories are grouped according to functional area. A typical test case contains three files: 1. `expression.jsonata`, containing a JSONata expression to be compiled. 2. `input.json`, containing the input to the compiled expression. 3. `output.json`, containing the expected output. * `input.json` and `output.json` may instead contain the string "undefined", indicating that `undefined` should be used as input/expected as output respectively. * `bindings.json` may also be present. This object contains variable names and values to be bound into the JSONata expression before evaluation. * If `output.json` is missing, JSONata should throw an exception at **evaluation time**. * If `input.json` is also missing, JSONata should throw an exception at **expression compilation time**. ## Example `expression.jsonata`: ```jsonata Account.Order[0].OrderID ``` `input.json`: ```json { "Account": { "Account Name": "My Account", "Order": [ { "OrderID": "order103" }, { "OrderID": "order104" } ] } } ``` `output.json`: ```json "order103" ```
{ "content_hash": "185f208259708226d8b325cfbb6767f2", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 202, "avg_line_length": 30.34090909090909, "alnum_prop": 0.7123595505617978, "repo_name": "s100/jsonata-test", "id": "d9b86b2b5d279a087fec96963a21f8feba74b224", "size": "1351", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "5554" } ], "symlink_target": "" }
package org.locationtech.geowave.core.index.text; import org.locationtech.geowave.core.index.StringUtils; import org.locationtech.geowave.core.index.persist.Persistable; public class EnumSearch implements Persistable { private String searchTerm; public EnumSearch() {} public EnumSearch(final String searchTerm) { this.searchTerm = searchTerm; } public String getSearchTerm() { return searchTerm; } @Override public byte[] toBinary() { return StringUtils.stringToBinary(searchTerm); } @Override public void fromBinary(final byte[] bytes) { searchTerm = StringUtils.stringFromBinary(bytes); } }
{ "content_hash": "7ed6ac09d23a49c7e502f7dab0de67b9", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 63, "avg_line_length": 21.433333333333334, "alnum_prop": 0.744945567651633, "repo_name": "ngageoint/geowave", "id": "2f92d97d61daaa1c5411a72ab3172dd4cb6b364e", "size": "1078", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "core/index/src/main/java/org/locationtech/geowave/core/index/text/EnumSearch.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C++", "bytes": "5073" }, { "name": "CMake", "bytes": "2032" }, { "name": "FreeMarker", "bytes": "2879" }, { "name": "Gnuplot", "bytes": "57750" }, { "name": "Groovy", "bytes": "1323" }, { "name": "HTML", "bytes": "1903" }, { "name": "Java", "bytes": "7103026" }, { "name": "Protocol Buffer", "bytes": "1525" }, { "name": "Puppet", "bytes": "4039" }, { "name": "Scala", "bytes": "26507" }, { "name": "Scheme", "bytes": "20491" }, { "name": "Shell", "bytes": "68381" } ], "symlink_target": "" }
from pmg.models import Bill, BillVersion, File, db, BillType import json import re bills = json.load(open("data/bills-with-files.json")) bill_pages = json.load(open("data/bill-pages.json")) nids = json.load(open("data/nid_url.json")) pages_by_nid = {p["nid"]: p for p in bill_pages} nids_by_url = {n["url"]: n for n in nids} nids = {n["nid"]: n for n in nids} DESC_RE = re.compile('s:\d+:"description";s:\d+:"([^"]*)";') def get_description(s): # u'a:11:{s:11:"description";s:31:"Division of Revenue Act 10-2014";s:3:"fid";s:5:"51280";s:5:"width";i:0;s:6:"height";i:0;s:8:"duration";i:0;s:12:"audio_format";s:0:"";s:17:"audio_sample_rate";i:0;s:18:"audio_channel_mode";s:0:"";s:13:"audio_bitrate";i:0;s:18:"audio_bitrate_mode";s:0:"";s:4:"tags";a:0:{}}' match = DESC_RE.search(s) if match: return match.group(1) def get_file_info(url): url = url.replace("http://www.pmg.org.za/", "") if url.startswith("node/"): nid = nids[url[5:]]["nid"] else: nid = nids_by_url.get(url) if nid: nid = nid["nid"] else: nid = { u"bill/20060425-south-african-institute-for-drug-free-sport-amendment-act-25-2006": "44724", }[url] page = pages_by_nid[nid] files = page["files"] f = files[0] f["description"] = get_description(f["field_file_bill_data"]) if f["filepath"].startswith("files/"): f["filepath"] = f["filepath"][6:] return f added = 0 missing = 0 already_enacted = 0 already_exists = 0 def commit(): # db.session.commit() print("added %d" % added) print("missing %d" % missing) print("already_enacted %d" % already_enacted) print("already_exists %d" % already_exists) # now load files into db not_found = [] for bill in bills: year = bill["year"] number = bill["number"] title = bill["name"] bill_type = bill["bill_type"] bill_obj = ( Bill.query.filter(Bill.year == year, Bill.number == number) .join(BillType) .filter(BillType.name == bill_type) .first() ) if not bill_obj: print("Missing: %s %s -- %s" % (year, number, title)) missing += 1 continue print("%s %s %s -- %s" % (bill_obj.id, year, number, title)) # already have enacted? if any(v.enacted for v in bill_obj.versions): already_enacted += 1 print("Already have enacted, skipping") continue for version in (e for e in bill["entries"] if e["type"] == "act"): # find the file details info = get_file_info(version["url"]) print("Version info: %s" % version) print("File info: %s" % info) # is there already a matching version? existing = [ bv for bv in bill_obj.versions if bv.file.file_path == info["filepath"] ] if existing: existing[0].enacted = True already_exists += 1 print("Already have matching file, skipping") continue # does the file exist? file = File.query.filter(File.file_path == info["filepath"]).first() if not file: raise ValueError("File %s doesn't exist" % info["filepath"]) if not file.title: file.title = info["description"] date = version["date"] # if no date, use the date it was signed if not date or date == "None": events = [e for e in bill_obj.events if e.type == "bill-signed"] events.sort(key=lambda e: e.date, reverse=True) date = events[0].date bill_version = BillVersion() bill_version.date = date bill_version.title = version["title"] bill_version.file = file bill_version.enacted = True bill_version.bill = bill_obj added += 1 db.session.add(bill_version) db.session.flush() if added % 10 == 0: commit() commit()
{ "content_hash": "7eb187f8cf2ffb4dd3fea174fa289388", "timestamp": "", "source": "github", "line_count": 133, "max_line_length": 312, "avg_line_length": 29.68421052631579, "alnum_prop": 0.565096251266464, "repo_name": "Code4SA/pmg-cms-2", "id": "f764b0013221edfda983d5fe585e4856417043f2", "size": "3967", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "bin/import-enacted-bills.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "204619" }, { "name": "HTML", "bytes": "361071" }, { "name": "JavaScript", "bytes": "109536" }, { "name": "Mako", "bytes": "412" }, { "name": "Python", "bytes": "469838" } ], "symlink_target": "" }
@interface InterfaceController : WKInterfaceController @end
{ "content_hash": "f52dcea0d2a24b213a1c3f8b2e26ff5f", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 54, "avg_line_length": 20.333333333333332, "alnum_prop": 0.8524590163934426, "repo_name": "phatblat/AssetCraziness", "id": "137e65ae632f3335c1276c12175fb64bedc11789", "size": "292", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "AssetCraziness WatchKit Extension/InterfaceController.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "7675" } ], "symlink_target": "" }
package com.amazonaws.services.simpleemail.model.transform; import java.util.Map; import java.util.Map.Entry; import javax.xml.stream.events.XMLEvent; import com.amazonaws.services.simpleemail.model.*; import com.amazonaws.transform.Unmarshaller; import com.amazonaws.transform.MapEntry; import com.amazonaws.transform.StaxUnmarshallerContext; import com.amazonaws.transform.SimpleTypeStaxUnmarshallers.*; /** * ListVerifiedEmailAddressesResult StAX Unmarshaller */ public class ListVerifiedEmailAddressesResultStaxUnmarshaller implements Unmarshaller<ListVerifiedEmailAddressesResult, StaxUnmarshallerContext> { public ListVerifiedEmailAddressesResult unmarshall( StaxUnmarshallerContext context) throws Exception { ListVerifiedEmailAddressesResult listVerifiedEmailAddressesResult = new ListVerifiedEmailAddressesResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 2; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return listVerifiedEmailAddressesResult; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("VerifiedEmailAddresses/member", targetDepth)) { listVerifiedEmailAddressesResult .getVerifiedEmailAddresses().add( StringStaxUnmarshaller.getInstance() .unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return listVerifiedEmailAddressesResult; } } } } private static ListVerifiedEmailAddressesResultStaxUnmarshaller instance; public static ListVerifiedEmailAddressesResultStaxUnmarshaller getInstance() { if (instance == null) instance = new ListVerifiedEmailAddressesResultStaxUnmarshaller(); return instance; } }
{ "content_hash": "f666e0d92db6fb3a531ee32d017d2b6b", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 115, "avg_line_length": 36.064516129032256, "alnum_prop": 0.6610017889087657, "repo_name": "trasa/aws-sdk-java", "id": "0e500b1d7e81194049ff2213698ff7fe18928ee0", "size": "2820", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/model/transform/ListVerifiedEmailAddressesResultStaxUnmarshaller.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "100011199" }, { "name": "Scilab", "bytes": "2354" } ], "symlink_target": "" }
package com.azure.resourcemanager.mixedreality.implementation; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.mixedreality.fluent.RemoteRenderingAccountsClient; import com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner; import com.azure.resourcemanager.mixedreality.fluent.models.RemoteRenderingAccountInner; import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest; import com.azure.resourcemanager.mixedreality.models.AccountKeys; import com.azure.resourcemanager.mixedreality.models.RemoteRenderingAccount; import com.azure.resourcemanager.mixedreality.models.RemoteRenderingAccounts; import com.fasterxml.jackson.annotation.JsonIgnore; public final class RemoteRenderingAccountsImpl implements RemoteRenderingAccounts { @JsonIgnore private final ClientLogger logger = new ClientLogger(RemoteRenderingAccountsImpl.class); private final RemoteRenderingAccountsClient innerClient; private final com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager; public RemoteRenderingAccountsImpl( RemoteRenderingAccountsClient innerClient, com.azure.resourcemanager.mixedreality.MixedRealityManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } public PagedIterable<RemoteRenderingAccount> list() { PagedIterable<RemoteRenderingAccountInner> inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new RemoteRenderingAccountImpl(inner1, this.manager())); } public PagedIterable<RemoteRenderingAccount> list(Context context) { PagedIterable<RemoteRenderingAccountInner> inner = this.serviceClient().list(context); return Utils.mapPage(inner, inner1 -> new RemoteRenderingAccountImpl(inner1, this.manager())); } public PagedIterable<RemoteRenderingAccount> listByResourceGroup(String resourceGroupName) { PagedIterable<RemoteRenderingAccountInner> inner = this.serviceClient().listByResourceGroup(resourceGroupName); return Utils.mapPage(inner, inner1 -> new RemoteRenderingAccountImpl(inner1, this.manager())); } public PagedIterable<RemoteRenderingAccount> listByResourceGroup(String resourceGroupName, Context context) { PagedIterable<RemoteRenderingAccountInner> inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); return Utils.mapPage(inner, inner1 -> new RemoteRenderingAccountImpl(inner1, this.manager())); } public void deleteByResourceGroup(String resourceGroupName, String accountName) { this.serviceClient().delete(resourceGroupName, accountName); } public Response<Void> deleteWithResponse(String resourceGroupName, String accountName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, context); } public RemoteRenderingAccount getByResourceGroup(String resourceGroupName, String accountName) { RemoteRenderingAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); if (inner != null) { return new RemoteRenderingAccountImpl(inner, this.manager()); } else { return null; } } public Response<RemoteRenderingAccount> getByResourceGroupWithResponse( String resourceGroupName, String accountName, Context context) { Response<RemoteRenderingAccountInner> inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new RemoteRenderingAccountImpl(inner.getValue(), this.manager())); } else { return null; } } public AccountKeys listKeys(String resourceGroupName, String accountName) { AccountKeysInner inner = this.serviceClient().listKeys(resourceGroupName, accountName); if (inner != null) { return new AccountKeysImpl(inner, this.manager()); } else { return null; } } public Response<AccountKeys> listKeysWithResponse(String resourceGroupName, String accountName, Context context) { Response<AccountKeysInner> inner = this.serviceClient().listKeysWithResponse(resourceGroupName, accountName, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new AccountKeysImpl(inner.getValue(), this.manager())); } else { return null; } } public AccountKeys regenerateKeys( String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate) { AccountKeysInner inner = this.serviceClient().regenerateKeys(resourceGroupName, accountName, regenerate); if (inner != null) { return new AccountKeysImpl(inner, this.manager()); } else { return null; } } public Response<AccountKeys> regenerateKeysWithResponse( String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate, Context context) { Response<AccountKeysInner> inner = this.serviceClient().regenerateKeysWithResponse(resourceGroupName, accountName, regenerate, context); if (inner != null) { return new SimpleResponse<>( inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), new AccountKeysImpl(inner.getValue(), this.manager())); } else { return null; } } public RemoteRenderingAccount getById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.getValueFromIdByName(id, "remoteRenderingAccounts"); if (accountName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'remoteRenderingAccounts'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } public Response<RemoteRenderingAccount> getByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.getValueFromIdByName(id, "remoteRenderingAccounts"); if (accountName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'remoteRenderingAccounts'.", id))); } return this.getByResourceGroupWithResponse(resourceGroupName, accountName, context); } public void deleteById(String id) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.getValueFromIdByName(id, "remoteRenderingAccounts"); if (accountName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'remoteRenderingAccounts'.", id))); } this.deleteWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); } public Response<Void> deleteByIdWithResponse(String id, Context context) { String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); } String accountName = Utils.getValueFromIdByName(id, "remoteRenderingAccounts"); if (accountName == null) { throw logger .logExceptionAsError( new IllegalArgumentException( String .format( "The resource ID '%s' is not valid. Missing path segment 'remoteRenderingAccounts'.", id))); } return this.deleteWithResponse(resourceGroupName, accountName, context); } private RemoteRenderingAccountsClient serviceClient() { return this.innerClient; } private com.azure.resourcemanager.mixedreality.MixedRealityManager manager() { return this.serviceManager; } public RemoteRenderingAccountImpl define(String name) { return new RemoteRenderingAccountImpl(name, this.manager()); } }
{ "content_hash": "c8cebc9fbcf39f50b9b2f6450bfa57a0", "timestamp": "", "source": "github", "line_count": 231, "max_line_length": 119, "avg_line_length": 45.79220779220779, "alnum_prop": 0.6464359992437134, "repo_name": "Azure/azure-sdk-for-java", "id": "069e366d0673e97997ca28538f894a4db03111f3", "size": "10735", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/RemoteRenderingAccountsImpl.java", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "8762" }, { "name": "Bicep", "bytes": "15055" }, { "name": "CSS", "bytes": "7676" }, { "name": "Dockerfile", "bytes": "2028" }, { "name": "Groovy", "bytes": "3237482" }, { "name": "HTML", "bytes": "42090" }, { "name": "Java", "bytes": "432409546" }, { "name": "JavaScript", "bytes": "36557" }, { "name": "Jupyter Notebook", "bytes": "95868" }, { "name": "PowerShell", "bytes": "737517" }, { "name": "Python", "bytes": "240542" }, { "name": "Scala", "bytes": "1143898" }, { "name": "Shell", "bytes": "18488" }, { "name": "XSLT", "bytes": "755" } ], "symlink_target": "" }
from unittest import TestCase, mock from nose.plugins.attrib import attr from shiftschema.schema import Schema from shiftschema.result import Result from shiftschema.property import SimpleProperty from shiftschema.property import EntityProperty from shiftschema.property import CollectionProperty from shiftschema.exceptions import PropertyExists, InvalidValidator from shiftschema.translator import Translator from shiftschema import validators from shiftschema import filters from tests import helpers from pprint import pprint as pp @attr('schema') class SchemaTest(TestCase): def test_create_schema(self): """ Creating a schema """ schema = Schema() self.assertIsInstance(schema, Schema) def test_can_check_property_existence(self): """ Checking property existence on schema """ schema = Schema() schema.properties['simple_property'] = 'property processor' schema.entities['entity_property'] = 'entity processor' schema.collections['collection_property'] = 'collection processor' self.assertTrue(schema.has_property('simple_property')) self.assertTrue(schema.has_property('entity_property')) self.assertTrue(schema.has_property('collection_property')) def test_access_properties_through_overloading(self): """ Overload access to schema properties """ schema = Schema() schema.add_property('first_name') schema.add_entity('spouse') schema.add_collection('addresses') self.assertIsInstance(schema.first_name, SimpleProperty) self.assertIsInstance(schema.spouse, EntityProperty) self.assertIsInstance(schema.addresses, CollectionProperty) with self.assertRaises(AttributeError): self.assertIsInstance(schema.nothinghere, EntityProperty) def test_add_state_validator(self): """ Adding entity state validator to schema """ validator = helpers.ValidatorValid() schema = Schema() schema.add_state_validator(validator) self.assertTrue(validator in schema.state) def test_raise_on_adding_bad_state_validator(self): """ Raise when adding state validator of bad type to schema """ schema = Schema() with self.assertRaises(InvalidValidator): schema.add_state_validator(dict()) def test_add_simple_property(self): """ Adding simple property to schema """ schema = Schema() schema.add_property('simple') self.assertIn('simple', schema.properties) def test_raise_on_adding_existing_simple_property(self): """ Raise on adding simple property with existing name to schema""" schema = Schema() schema.add_property('simple') with self.assertRaises(PropertyExists): schema.add_property('simple') def test_add_entity_property(self): """ Adding linked entity property to schema """ schema = Schema() schema.add_entity('entity') self.assertIn('entity', schema.entities) def test_raise_on_adding_existing_entity_property(self): """ Raise on adding entity property with existing name to schema """ schema = Schema() schema.add_entity('entity') with self.assertRaises(PropertyExists): schema.add_entity('entity') def test_add_collection_property(self): """ Adding collection property to schema""" schema = Schema() schema.add_collection('collection_prop') self.assertIn('collection_prop', schema.collections) def test_raise_on_adding_existing_collection_property(self): """ Raise on adding collection property with existing name to schema """ schema = Schema() schema.add_collection('collection_prop') with self.assertRaises(PropertyExists): schema.add_collection('collection_prop') def test_model_getter_on_dict(self): """ Using model-getter for dictionary-models """ model = dict(someproperty='some value') schema = Schema() self.assertEqual('some value', schema.get(model, 'someproperty')) def test_model_getter_on_dict_returns_none_for_missing_keys(self): """ BUGFIX: do not explode on fetching value for missing dict key """ model = dict(someproperty='some value') schema = Schema() self.assertIsNone(schema.get(model, 'me-is-missing')) def test_model_getter_method(self): """ Model getter calls getter on model if present """ class Model: def get_someproperty(self): return 'SOME VALUE' model = Model() schema = Schema() self.assertEqual('SOME VALUE', schema.get(model, 'someproperty')) def test_model_getter_attribute(self): """ Model getter falls back to attribute fetch if no getter on model""" class Model: someproperty = 'some value' model = Model() schema = Schema() self.assertEqual('some value', schema.get(model, 'someproperty')) def test_model_setter_on_dict(self): """ Using model setter for dictionary-models""" model = dict() schema = Schema() schema.set(model, 'someproperty', 'SOME VALUE') self.assertEqual('SOME VALUE', model['someproperty']) def test_model_setter_method(self): """ Model setter uses setter on model if present """ class Model: def set_somevalue(self, value): self.somevalue = value model = Model() schema = Schema() schema.set(model, 'someproperty', 'some value') self.assertEqual('some value', model.__dict__['someproperty']) def test_model_setter_attribute(self): """ Model setter fallback to attribute set if no setter on model """ class Model: pass model = Model() schema = Schema() schema.set(model, 'someproperty', 'SOME VALUE') self.assertEqual('SOME VALUE', model.someproperty) def test_create_by_subclassing(self): """ Creating schema in subclass """ class MySchema(Schema): def schema(self): self.add_property('property') self.add_entity('entity') schema = MySchema() self.assertTrue(schema.has_property('property')) self.assertTrue(schema.has_property('entity')) def test_filter(self): """ Filtering with schema """ schema = helpers.PersonSpec() person = helpers.Person( first_name=' Willy ', last_name=' Wonka ', salutation=' mr ', birth_year='I was born in 1964' ) schema.filter(person) self.assertEqual('Willy', person.first_name) self.assertEqual('Wonka', person.last_name) self.assertEqual('mr', person.salutation) self.assertEqual(1964, person.birth_year) def test_skip_all_filters_if_value_is_none(self): """ Skip filtering if value is none """ schema = helpers.PersonSpec() person = helpers.Person() schema.filter(person) self.assertIsNone(person.first_name) self.assertIsNone(person.last_name) def test_filtering_simple_properties_with_context(self): """ Filtering simple properties with context (default)""" custom_context = 'I AM CUSTOM CONTEXT' class TestFilter(filters.AbstractFilter): def filter(self, value, model=None, context=None): if context == custom_context: return 'CUSTOM CONTEXT' else: return 'NO CUSTOM CONTEXT' class TestSchema(Schema): def schema(self): self.add_property('prop') self.prop.add_filter(TestFilter()) model = dict(prop='some value') schema = TestSchema() schema.filter(model, context=custom_context) self.assertEquals('CUSTOM CONTEXT', model['prop']) def test_validate_state(self): """ Validating entity state """ model = helpers.Person() schema = Schema() schema.add_state_validator(helpers.ValidatorInvalid()) result = schema.validate(model) self.assertIsInstance(result, Result) self.assertFalse(result) def test_validate_simple_properties(self): """ Validating simple properties """ schema = helpers.PersonSpec() person = helpers.Person( first_name='Some really really long name', last_name='And a really really long last name', salutation='BAD!', ) result = schema.validate(person) self.assertFalse(result) self.assertTrue('first_name' in result.errors) self.assertTrue('last_name' in result.errors) self.assertTrue('salutation' in result.errors) def test_require_simple_properties_via_required_validator(self): """ Validate simple properties required via validator""" from shiftschema.validators import Required schema = Schema() schema.add_property('property') schema.property.add_validator(Required()) result = schema.validate(dict()) self.assertFalse(result) def test_validate_entity_property(self): """ Validated linked entity properties with nested schemas """ model = helpers.Person() model.spouse = helpers.Person(first_name='W', last_name='X') schema = Schema() schema.add_entity('spouse') schema.spouse.schema = helpers.PersonSpec() result = schema.validate(model) self.assertFalse(result) self.assertTrue('first_name' in result.errors['spouse']['schema']) self.assertTrue('last_name' in result.errors['spouse']['schema']) def test_entity_props_can_have_both_direct_and_schema_errors(self): """REGRESSION: Both direct and schema errors at the same time """ person = helpers.Person() person.spouse = helpers.Person() schema = helpers.PersonSpec() schema.add_entity('spouse') schema.spouse.add_validator(helpers.ValidatorInvalid()) schema.spouse.schema = helpers.PersonSpec() schema.spouse.schema.salutation.add_validator(validators.Required()) result = schema.validate(person) self.assertTrue(len(result.errors['spouse']['direct'])) self.assertIn('salutation', result.errors['spouse']['schema']) def test_require_linked_entities_with_validator_attached_directly(self): """ Require linked entities with validator attached directly """ class Person: def __init__(self): self.spouse = None schema = Schema() schema.add_entity('spouse').add_validator(validators.Required()) result = schema.validate(Person()) self.assertFalse(result) self.assertIn('spouse', result.get_messages()) def test_can_filter_out_collections_directly(self): """ Filter out collection properties with filters attached directly """ address1 = helpers.Address( address=' 2 Hollin Croft ', city=' Barnsley ', country=' UK ', postcode=' S75 3TF ', ) address2 = helpers.Address( address='Newspaper House, 40 Churchgate', city=' Bolton ', country=' UK ', ) address3 = helpers.Address( address=' 446 Meadow Drive ', city=' Billings, MT ', country='US', postcode=' 59101 ', ) person = helpers.Person( first_name='Matthew', last_name='Rankin', salutation='mr', email='matrankin@gmail.com', birth_year='1964', ) person.addresses.append(address1) person.addresses.append(address2) person.addresses.append(address3) schema = helpers.PersonSpecAggregate() schema.filter(person) self.assertEquals(2, len(person.addresses)) for address in person.addresses: if address.country == 'US': self.fail('US address was not filtered out') def test_filter_collection_items_with_schemas(self): """ Filtering collection items with schema """ address1 = helpers.Address( address=' 2 Hollin Croft ', city=' Barnsley ', country=' UK ', postcode=' S75 3TF ', ) person = helpers.Person( first_name='Matthew', last_name='Rankin', salutation='mr', email='matrankin@gmail.com', birth_year='1964', ) person.addresses.append(address1) schema = helpers.PersonSpecCollectionAggregate() schema.filter(person) self.assertEquals('2 Hollin Croft', person.addresses[0].address) self.assertEquals('Barnsley', person.addresses[0].city) self.assertEquals('UK', person.addresses[0].country) self.assertEquals('S75 3TF', person.addresses[0].postcode) def test_can_validate_collections_directly(self): """ Validating collection with validators attached directly """ person = helpers.Person( first_name='Matthew', last_name='Rankin', salutation='mr', email='matrankin@gmail.com', birth_year='1964', ) schema = helpers.PersonSpecCollectionAggregate() result = schema.validate(person) self.assertFalse(result) self.assertIn('addresses', result.errors) def test_validate_collection_items_with_schemas(self): """ Validating collection items with schema """ # valid address1 = helpers.Address( address=' 2 Hollin Croft ', city=' Barnsley ', country=' UK ', postcode=' S75 3TF ', ) # postcode required address2 = helpers.Address( address='Newspaper House, 40 Churchgate', city=' Bolton ', country=' UK ', ) # filtered out address3 = helpers.Address( address=' 446 Meadow Drive ', city=' Billings, MT ', country='US', postcode=' 59101 ', ) # address required address4 = helpers.Address( city=' Barnsley ', country=' UK ', postcode=' S75 3TF ', ) person = helpers.Person( first_name='Matthew', last_name='Rankin', salutation='mr', email='matrankin@gmail.com', birth_year='1964', ) # person.addresses.append(address1) person.addresses.append(address2) person.addresses.append(address3) person.addresses.append(address4) schema = helpers.PersonSpecCollectionAggregate() result = schema.validate(person) self.assertFalse(result) collection = result.errors['addresses']['collection'] self.assertIsInstance(collection[1], Result) self.assertFalse(collection[1]) self.assertIn('postcode', collection[1].errors) self.assertIsInstance(collection[3], Result) self.assertFalse(collection[3]) self.assertIn('address', collection[3].errors) def test_skip_validating_collection_with_schema_if_collection_empty(self): """ Skip validating collection with schema if it's empty or None """ person = helpers.Person( first_name='Matthew', last_name='Rankin', salutation='mr', email='matrankin@gmail.com', birth_year='1964', ) person.addresses = None # override default schema = helpers.PersonSpecCollectionAggregate() schema.addresses.validators = [] # skip required validator result = schema.validate(person) self.assertTrue(result) def test_validate_and_filter(self): """ Process: validation and filtering as single operation""" person = helpers.Person(first_name=' W ') person.spouse = helpers.Person(first_name=' X ') schema = helpers.PersonSpecAggregate() result = schema.process(person) self.assertEqual('W', person.first_name) self.assertEqual('X', person.spouse.first_name) self.assertTrue('first_name' in result.errors) # too short self.assertTrue('first_name' in result.errors['spouse']['schema']) def test_results_injected_with_translations(self): """ Schema-generated results are injected with translation settings """ schema = Schema() result = schema.validate(mock.Mock()) self.assertEqual('en', result.locale) self.assertIsInstance(result.translator, Translator) Schema.locale = 'ru' Schema.translator.add_location('/tmp') schema = Schema() result = schema.validate(mock.Mock()) self.assertEqual('ru', result.locale) self.assertIsInstance(result.translator, Translator) self.assertTrue('/tmp' in result.translator.dirs)
{ "content_hash": "302599f37304f03be8b665203bb9423a", "timestamp": "", "source": "github", "line_count": 480, "max_line_length": 80, "avg_line_length": 35.99583333333333, "alnum_prop": 0.6130339159624957, "repo_name": "projectshift/shift-schema", "id": "0ac3822af1625151c5abca20738a83b89b47c883", "size": "17278", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/schema_tests.py", "mode": "33188", "license": "mit", "language": [ { "name": "Python", "bytes": "177832" }, { "name": "Shell", "bytes": "393" } ], "symlink_target": "" }
"""Distributed supervision suite. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import click from treadmill import cli def init(): """Return top level command handler.""" @click.group(cls=cli.make_commands(__name__)) def run(): """Cross-cell supervision tools.""" cli.init_logger('daemon.json') return run
{ "content_hash": "6e1a1103586390dcd662defccca3c925", "timestamp": "", "source": "github", "line_count": 22, "max_line_length": 49, "avg_line_length": 20.545454545454547, "alnum_prop": 0.672566371681416, "repo_name": "Morgan-Stanley/treadmill", "id": "91a76b32d7ad0d92981c8c8178fee44bcce62e51", "size": "452", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "lib/python/treadmill/cli/supervise/__init__.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "PowerShell", "bytes": "3750" }, { "name": "Python", "bytes": "3372983" }, { "name": "Ruby", "bytes": "3712" }, { "name": "Shell", "bytes": "51646" } ], "symlink_target": "" }
/* * RPiAlgorithmBaseClass.h * * Created on: 22-Oct-2015 * Author: sanjaydixit */ #include "AdbCommon.h" #ifndef RPIALGORITHMBASECLASS_H_ #define RPIALGORITHMBASECLASS_H_ namespace RPiAdbClientApp { namespace RPiAdbClientAlgorithm { class RPiAlgorithmBaseClass { public: RPiAlgorithmBaseClass(); virtual ~RPiAlgorithmBaseClass(); //Pure virtual functions that need to be implemented virtual void initAlgorithm() = 0; virtual int executeAlgorithm(UINT8* data, UINT32 size) = 0; virtual void resetAlgorithm(UINT8 code) = 0; virtual void updateAlgorithm(UINT8* data, UINT32 size) = 0; }; } } #endif /* RPIALGORITHMBASECLASS_H_ */
{ "content_hash": "0fd1d5fce876dedfd4079a788729e6eb", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 60, "avg_line_length": 19.818181818181817, "alnum_prop": 0.7446483180428135, "repo_name": "sanjaydixitb/HomeSurveillance", "id": "173f5e9ac956f1e01ae06f688b34681473b34844", "size": "654", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "RaspberryPiAdbClient/include/RPiAlgorithmBaseClass.h", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "16806" }, { "name": "Java", "bytes": "39331" } ], "symlink_target": "" }
![Icon](https://raw.githubusercontent.com/Licshee/Dutiful.Fody/master/Timeline.png) ### This is an add-in for [Fody](https://github.com/Fody/Fody/) Enables chaining/cascading for your instance methods (AKA Fluent API). ## The nuget package [![NuGet Status](http://img.shields.io/nuget/v/Dutiful.Fody.svg?style=flat)](https://www.nuget.org/packages/Dutiful.Fody/) https://nuget.org/packages/Dutiful.Fody/ PM> Install-Package Dutiful.Fody ## What it does ### Your Code public class Program { public int Main(string[] args) { /* do your thing */ } } ### What's get compiled public class Program { public int Main(string[] args) { /* do your thing */ } public Program MainDutiful(string[] args) { Main(args); return this; } } ## How about Task? You have to explicitly specify your the name pattern you want for synchronized wrappers first: <Dutiful SyncNameFormat="Sync"/> ### Then Your Code public class Program { public async Task GetTask() { /* do your thing */ } } ### ... is compiled to... public class Program { public async Task GetTask() { /* do your thing */ } public void GetTaskSync() { AsyncContext.Run(GetTask); } public void GetTaskSyncDutiful() { GetTaskSync(); return this; } } **This feature is based on AsyncContext of [AsyncEx](https://github.com/StephenCleary/AsyncEx), required assemblies are not installed automatically, you may want to install the [nuget package](https://www.nuget.org/packages/Nito.AsyncEx) by yourself.** **Currently only methods can cast to `Func<Task>` are supported.** ## How it selects methods * Only public, protected and protected internal methods will get Dutiful wrappers. * Instance methods will get processed, static methods and constructors will not. * Interfaces, enums are ignored, structs are ignored by default. * If generating wrapper for a method can cause ambiguity, then it skips. * Methods original declared on System.Object are ignored by default. * Methods returning same type as what they belong to are ignored. * Accessors of properties and events are ignored. ## Configuration ### Change nameing pattern If you want methods of structs also get their Dutiful form, do this: <Dutiful TargetLevel="Struct"/> To change the default suffix for generated methods, you do this: <Dutiful NameFormat="Fluent"/> If you want prefix, you do this: <Dutiful NameFormat="Do*Fluently"/> or this: <Dutiful NameFormat="Do{0}Fluently"/> ### Stop Words `<TBD>` ## Icon <a href="https://thenounproject.com/term/timeline/214157/" target="_blank">Timeline</a> designed by <a href="https://thenounproject.com/olsjoe" target="_blank">Joel Olson</a> from The Noun Project
{ "content_hash": "10b3ab34300f16ce3f7abe9b21ae2b95", "timestamp": "", "source": "github", "line_count": 114, "max_line_length": 254, "avg_line_length": 25.57894736842105, "alnum_prop": 0.6680384087791496, "repo_name": "Licshee/Dutiful.Fody", "id": "ce94f6812e89145931890ce3956c34a2c42374f2", "size": "2916", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "38373" }, { "name": "PowerShell", "bytes": "3581" } ], "symlink_target": "" }
<!DOCTYPE HTML> <html lang="de"> <head> <!-- Generated by javadoc (18) --> <title>Source code</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="source: package: com.restfb.types, class: Page, class: PageRestaurantSpecialties"> <meta name="generator" content="javadoc/SourceToHTMLConverter"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> </head> <body class="source-page"> <main role="main"> <div class="source-container"> <pre><span class="source-line-no">001</span><span id="line-1">// Generated by delombok at Tue Sep 27 22:25:18 CEST 2022</span> <span class="source-line-no">002</span><span id="line-2"></span> <span class="source-line-no">023</span><span id="line-23">package com.restfb.types;</span> <span class="source-line-no">024</span><span id="line-24"></span> <span class="source-line-no">025</span><span id="line-25">import static java.util.Collections.unmodifiableList;</span> <span class="source-line-no">026</span><span id="line-26">import java.util.*;</span> <span class="source-line-no">027</span><span id="line-27">import com.restfb.Facebook;</span> <span class="source-line-no">028</span><span id="line-28">import com.restfb.JsonMapper;</span> <span class="source-line-no">029</span><span id="line-29">import com.restfb.JsonMapper.JsonMappingCompleted;</span> <span class="source-line-no">030</span><span id="line-30">import com.restfb.annotation.GraphAPI;</span> <span class="source-line-no">031</span><span id="line-31">import com.restfb.json.Json;</span> <span class="source-line-no">032</span><span id="line-32">import com.restfb.json.JsonObject;</span> <span class="source-line-no">033</span><span id="line-33">import com.restfb.json.JsonValue;</span> <span class="source-line-no">034</span><span id="line-34">import com.restfb.types.ads.Business;</span> <span class="source-line-no">035</span><span id="line-35">import com.restfb.types.features.HasProfilePicture;</span> <span class="source-line-no">036</span><span id="line-36">import com.restfb.types.instagram.IgUser;</span> <span class="source-line-no">037</span><span id="line-37"></span> <span class="source-line-no">038</span><span id="line-38">/**</span> <span class="source-line-no">039</span><span id="line-39"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page/"&gt;Page Graph API type&lt;/a&gt;.</span> <span class="source-line-no">040</span><span id="line-40"> * </span> <span class="source-line-no">041</span><span id="line-41"> * @author &lt;a href="http://restfb.com"&gt;Mark Allen&lt;/a&gt;</span> <span class="source-line-no">042</span><span id="line-42"> * @since 1.5</span> <span class="source-line-no">043</span><span id="line-43"> */</span> <span class="source-line-no">044</span><span id="line-44">public class Page extends CategorizedFacebookType implements HasProfilePicture {</span> <span class="source-line-no">045</span><span id="line-45"> @Facebook("picture")</span> <span class="source-line-no">046</span><span id="line-46"> private transient String rawPicture;</span> <span class="source-line-no">047</span><span id="line-47"> /**</span> <span class="source-line-no">048</span><span id="line-48"> * The pages's profile picture, if provided.</span> <span class="source-line-no">049</span><span id="line-49"> * </span> <span class="source-line-no">050</span><span id="line-50"> * To force Facebook to fill the &lt;code&gt;picture&lt;/code&gt; field you have to fetch the page with the</span> <span class="source-line-no">051</span><span id="line-51"> * &lt;code&gt;fields=picture&lt;/code&gt; parameter, otherwise the picture is &lt;code&gt;null&lt;/code&gt;.</span> <span class="source-line-no">052</span><span id="line-52"> * </span> <span class="source-line-no">053</span><span id="line-53"> */</span> <span class="source-line-no">054</span><span id="line-54"> private ProfilePictureSource picture;</span> <span class="source-line-no">055</span><span id="line-55"> @Facebook("admin_notes")</span> <span class="source-line-no">056</span><span id="line-56"> private List&lt;PageAdminNote&gt; adminNotes = new ArrayList&lt;&gt;();</span> <span class="source-line-no">057</span><span id="line-57"> /**</span> <span class="source-line-no">058</span><span id="line-58"> * Affiliation of this person. Applicable to Pages representing people</span> <span class="source-line-no">059</span><span id="line-59"> * </span> <span class="source-line-no">060</span><span id="line-60"> * @since 1.10.0</span> <span class="source-line-no">061</span><span id="line-61"> */</span> <span class="source-line-no">062</span><span id="line-62"> @Facebook</span> <span class="source-line-no">063</span><span id="line-63"> private String affiliation;</span> <span class="source-line-no">064</span><span id="line-64"> /**</span> <span class="source-line-no">065</span><span id="line-65"> * App ID for app-owned Pages and app Pages.</span> <span class="source-line-no">066</span><span id="line-66"> */</span> <span class="source-line-no">067</span><span id="line-67"> @Facebook("app_id")</span> <span class="source-line-no">068</span><span id="line-68"> private String appId;</span> <span class="source-line-no">069</span><span id="line-69"> /**</span> <span class="source-line-no">070</span><span id="line-70"> * Artists the band likes. Applicable to Bands</span> <span class="source-line-no">071</span><span id="line-71"> * </span> <span class="source-line-no">072</span><span id="line-72"> * @since 1.10.0</span> <span class="source-line-no">073</span><span id="line-73"> */</span> <span class="source-line-no">074</span><span id="line-74"> @Facebook("artists_we_like")</span> <span class="source-line-no">075</span><span id="line-75"> private String artistsWeLike;</span> <span class="source-line-no">076</span><span id="line-76"> /**</span> <span class="source-line-no">077</span><span id="line-77"> * relevance score of an asset.</span> <span class="source-line-no">078</span><span id="line-78"> */</span> <span class="source-line-no">079</span><span id="line-79"> @Facebook("asset_score")</span> <span class="source-line-no">080</span><span id="line-80"> private Double assetScore;</span> <span class="source-line-no">081</span><span id="line-81"> /**</span> <span class="source-line-no">082</span><span id="line-82"> * Dress code of the business. Applicable to Restaurants or Nightlife. Can be one of Casual, Dressy or Unspecified</span> <span class="source-line-no">083</span><span id="line-83"> * </span> <span class="source-line-no">084</span><span id="line-84"> * @since 1.10.0</span> <span class="source-line-no">085</span><span id="line-85"> */</span> <span class="source-line-no">086</span><span id="line-86"> @Facebook</span> <span class="source-line-no">087</span><span id="line-87"> private String attire;</span> <span class="source-line-no">088</span><span id="line-88"> /**</span> <span class="source-line-no">089</span><span id="line-89"> * The awards information of the film. Applicable to Films</span> <span class="source-line-no">090</span><span id="line-90"> * </span> <span class="source-line-no">091</span><span id="line-91"> * @since 1.10.0</span> <span class="source-line-no">092</span><span id="line-92"> */</span> <span class="source-line-no">093</span><span id="line-93"> @Facebook</span> <span class="source-line-no">094</span><span id="line-94"> private String awards;</span> <span class="source-line-no">095</span><span id="line-95"> /**</span> <span class="source-line-no">096</span><span id="line-96"> * Band interests. Applicable to Bands</span> <span class="source-line-no">097</span><span id="line-97"> * </span> <span class="source-line-no">098</span><span id="line-98"> * @since 1.10.0</span> <span class="source-line-no">099</span><span id="line-99"> */</span> <span class="source-line-no">100</span><span id="line-100"> @Facebook("band_interests")</span> <span class="source-line-no">101</span><span id="line-101"> private String bandInterests;</span> <span class="source-line-no">102</span><span id="line-102"> /**</span> <span class="source-line-no">103</span><span id="line-103"> * Members of the band. Applicable to Bands</span> <span class="source-line-no">104</span><span id="line-104"> * </span> <span class="source-line-no">105</span><span id="line-105"> * @since 1.10.0</span> <span class="source-line-no">106</span><span id="line-106"> */</span> <span class="source-line-no">107</span><span id="line-107"> @Facebook("band_members")</span> <span class="source-line-no">108</span><span id="line-108"> private String bandMembers;</span> <span class="source-line-no">109</span><span id="line-109"> /**</span> <span class="source-line-no">110</span><span id="line-110"> * The best available Page on Facebook for the concept represented by this Page. The best available Page takes into</span> <span class="source-line-no">111</span><span id="line-111"> * account authenticity and the number of likes</span> <span class="source-line-no">112</span><span id="line-112"> * </span> <span class="source-line-no">113</span><span id="line-113"> * @since 1.10.0</span> <span class="source-line-no">114</span><span id="line-114"> */</span> <span class="source-line-no">115</span><span id="line-115"> @Facebook("best_page")</span> <span class="source-line-no">116</span><span id="line-116"> private Page bestPage;</span> <span class="source-line-no">117</span><span id="line-117"> /**</span> <span class="source-line-no">118</span><span id="line-118"> * The mailing or contact address for this page. This field will be blank if the contact address is the same as the</span> <span class="source-line-no">119</span><span id="line-119"> * physical address</span> <span class="source-line-no">120</span><span id="line-120"> * </span> <span class="source-line-no">121</span><span id="line-121"> * @since 1.10.0</span> <span class="source-line-no">122</span><span id="line-122"> */</span> <span class="source-line-no">123</span><span id="line-123"> @Facebook("contact_address")</span> <span class="source-line-no">124</span><span id="line-124"> private MailingAddress contactAddress;</span> <span class="source-line-no">125</span><span id="line-125"> /**</span> <span class="source-line-no">126</span><span id="line-126"> * If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.</span> <span class="source-line-no">127</span><span id="line-127"> */</span> <span class="source-line-no">128</span><span id="line-128"> @Facebook("country_page_likes")</span> <span class="source-line-no">129</span><span id="line-129"> private Integer countryPageLikes;</span> <span class="source-line-no">130</span><span id="line-130"> /**</span> <span class="source-line-no">131</span><span id="line-131"> * The Page's category. e.g. Product/Service, Computers/Technology</span> <span class="source-line-no">132</span><span id="line-132"> */</span> <span class="source-line-no">133</span><span id="line-133"> @Facebook</span> <span class="source-line-no">134</span><span id="line-134"> private String category;</span> <span class="source-line-no">135</span><span id="line-135"> /**</span> <span class="source-line-no">136</span><span id="line-136"> * Biography of the band. Applicable to Bands</span> <span class="source-line-no">137</span><span id="line-137"> * </span> <span class="source-line-no">138</span><span id="line-138"> * @since 1.10.0</span> <span class="source-line-no">139</span><span id="line-139"> */</span> <span class="source-line-no">140</span><span id="line-140"> @Facebook</span> <span class="source-line-no">141</span><span id="line-141"> private String bio;</span> <span class="source-line-no">142</span><span id="line-142"> /**</span> <span class="source-line-no">143</span><span id="line-143"> * Birthday of this person. Applicable to Pages representing people</span> <span class="source-line-no">144</span><span id="line-144"> * </span> <span class="source-line-no">145</span><span id="line-145"> * @since 1.10.0</span> <span class="source-line-no">146</span><span id="line-146"> */</span> <span class="source-line-no">147</span><span id="line-147"> @Facebook</span> <span class="source-line-no">148</span><span id="line-148"> private String birthday;</span> <span class="source-line-no">149</span><span id="line-149"> /**</span> <span class="source-line-no">150</span><span id="line-150"> * Year vehicle was built. Applicable to Vehicles</span> <span class="source-line-no">151</span><span id="line-151"> * </span> <span class="source-line-no">152</span><span id="line-152"> * @since 1.10.0</span> <span class="source-line-no">153</span><span id="line-153"> */</span> <span class="source-line-no">154</span><span id="line-154"> @Facebook</span> <span class="source-line-no">155</span><span id="line-155"> private String built;</span> <span class="source-line-no">156</span><span id="line-156"> /**</span> <span class="source-line-no">157</span><span id="line-157"> * The Business associated with this Page.</span> <span class="source-line-no">158</span><span id="line-158"> */</span> <span class="source-line-no">159</span><span id="line-159"> @Facebook</span> <span class="source-line-no">160</span><span id="line-160"> private Business business;</span> <span class="source-line-no">161</span><span id="line-161"> /**</span> <span class="source-line-no">162</span><span id="line-162"> * Culinary team of the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">163</span><span id="line-163"> * </span> <span class="source-line-no">164</span><span id="line-164"> * @since 1.10.0</span> <span class="source-line-no">165</span><span id="line-165"> */</span> <span class="source-line-no">166</span><span id="line-166"> @Facebook("culinary_team")</span> <span class="source-line-no">167</span><span id="line-167"> private String culinaryTeam;</span> <span class="source-line-no">168</span><span id="line-168"> /**</span> <span class="source-line-no">169</span><span id="line-169"> * Current location of the Page.</span> <span class="source-line-no">170</span><span id="line-170"> * </span> <span class="source-line-no">171</span><span id="line-171"> * @since 1.10.0</span> <span class="source-line-no">172</span><span id="line-172"> */</span> <span class="source-line-no">173</span><span id="line-173"> @Facebook("current_location")</span> <span class="source-line-no">174</span><span id="line-174"> private String currentLocation;</span> <span class="source-line-no">175</span><span id="line-175"> /**</span> <span class="source-line-no">176</span><span id="line-176"> * Features of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">177</span><span id="line-177"> * </span> <span class="source-line-no">178</span><span id="line-178"> * @since 1.10.0</span> <span class="source-line-no">179</span><span id="line-179"> */</span> <span class="source-line-no">180</span><span id="line-180"> @Facebook</span> <span class="source-line-no">181</span><span id="line-181"> private String features;</span> <span class="source-line-no">182</span><span id="line-182"> /**</span> <span class="source-line-no">183</span><span id="line-183"> * The name of the Page with country codes appended for Global Brand Pages. Only visible to the Page admin</span> <span class="source-line-no">184</span><span id="line-184"> * </span> <span class="source-line-no">185</span><span id="line-185"> * @since 1.10.0</span> <span class="source-line-no">186</span><span id="line-186"> */</span> <span class="source-line-no">187</span><span id="line-187"> @Facebook("global_brand_page_name")</span> <span class="source-line-no">188</span><span id="line-188"> private String globalBrandPageName;</span> <span class="source-line-no">189</span><span id="line-189"> /**</span> <span class="source-line-no">190</span><span id="line-190"> * This brand's global Root ID.</span> <span class="source-line-no">191</span><span id="line-191"> */</span> <span class="source-line-no">192</span><span id="line-192"> @Facebook("global_brand_root_id")</span> <span class="source-line-no">193</span><span id="line-193"> private String globalBrandRootId;</span> <span class="source-line-no">194</span><span id="line-194"> /**</span> <span class="source-line-no">195</span><span id="line-195"> * This brand's global (parent) Page.</span> <span class="source-line-no">196</span><span id="line-196"> * </span> <span class="source-line-no">197</span><span id="line-197"> * @since 1.10.0</span> <span class="source-line-no">198</span><span id="line-198"> */</span> <span class="source-line-no">199</span><span id="line-199"> @Facebook("global_brand_parent_page")</span> <span class="source-line-no">200</span><span id="line-200"> private Page globalBrandParentPage;</span> <span class="source-line-no">201</span><span id="line-201"> /**</span> <span class="source-line-no">202</span><span id="line-202"> * Indicates whether this Page has added the app making the query in a Page tab.</span> <span class="source-line-no">203</span><span id="line-203"> * </span> <span class="source-line-no">204</span><span id="line-204"> * @since 1.10.0</span> <span class="source-line-no">205</span><span id="line-205"> */</span> <span class="source-line-no">206</span><span id="line-206"> @Facebook("has_added_app")</span> <span class="source-line-no">207</span><span id="line-207"> private Boolean hasAddedApp;</span> <span class="source-line-no">208</span><span id="line-208"> /**</span> <span class="source-line-no">209</span><span id="line-209"> * has whatsapp number</span> <span class="source-line-no">210</span><span id="line-210"> */</span> <span class="source-line-no">211</span><span id="line-211"> @Facebook("has_whatsapp_number")</span> <span class="source-line-no">212</span><span id="line-212"> private Boolean hasWhatsappNumber;</span> <span class="source-line-no">213</span><span id="line-213"> /**</span> <span class="source-line-no">214</span><span id="line-214"> * Indicates whether WhatsApp number connected to this page is a WhatsApp business number</span> <span class="source-line-no">215</span><span id="line-215"> */</span> <span class="source-line-no">216</span><span id="line-216"> @Facebook("has_whatsapp_business_number")</span> <span class="source-line-no">217</span><span id="line-217"> private Boolean hasWhatsappBusinessNumber;</span> <span class="source-line-no">218</span><span id="line-218"> /**</span> <span class="source-line-no">219</span><span id="line-219"> * Hometown of the band. Applicable to Bands</span> <span class="source-line-no">220</span><span id="line-220"> * </span> <span class="source-line-no">221</span><span id="line-221"> * @since 1.10.0</span> <span class="source-line-no">222</span><span id="line-222"> */</span> <span class="source-line-no">223</span><span id="line-223"> @Facebook</span> <span class="source-line-no">224</span><span id="line-224"> private String hometown;</span> <span class="source-line-no">225</span><span id="line-225"> @Facebook("hours")</span> <span class="source-line-no">226</span><span id="line-226"> private List&lt;JsonObject&gt; rawHours = new ArrayList&lt;&gt;();</span> <span class="source-line-no">227</span><span id="line-227"> @Facebook("hours")</span> <span class="source-line-no">228</span><span id="line-228"> private Map&lt;String, String&gt; rawHoursMap = new HashMap&lt;&gt;();</span> <span class="source-line-no">229</span><span id="line-229"> /**</span> <span class="source-line-no">230</span><span id="line-230"> * Opening hours</span> <span class="source-line-no">231</span><span id="line-231"> *</span> <span class="source-line-no">232</span><span id="line-232"> * @since 1.10.1</span> <span class="source-line-no">233</span><span id="line-233"> */</span> <span class="source-line-no">234</span><span id="line-234"> private Hours hours;</span> <span class="source-line-no">235</span><span id="line-235"> /**</span> <span class="source-line-no">236</span><span id="line-236"> * Legal information about the Page publishers.</span> <span class="source-line-no">237</span><span id="line-237"> * </span> <span class="source-line-no">238</span><span id="line-238"> * @since 1.10.0</span> <span class="source-line-no">239</span><span id="line-239"> */</span> <span class="source-line-no">240</span><span id="line-240"> @Facebook</span> <span class="source-line-no">241</span><span id="line-241"> private String impressum;</span> <span class="source-line-no">242</span><span id="line-242"> /**</span> <span class="source-line-no">243</span><span id="line-243"> * Influences on the band. Applicable to Bands</span> <span class="source-line-no">244</span><span id="line-244"> * </span> <span class="source-line-no">245</span><span id="line-245"> * @since 1.10.0</span> <span class="source-line-no">246</span><span id="line-246"> */</span> <span class="source-line-no">247</span><span id="line-247"> @Facebook</span> <span class="source-line-no">248</span><span id="line-248"> private String influences;</span> <span class="source-line-no">249</span><span id="line-249"> /**</span> <span class="source-line-no">250</span><span id="line-250"> * Whether the business corresponding to this Page is permanently closed.</span> <span class="source-line-no">251</span><span id="line-251"> * </span> <span class="source-line-no">252</span><span id="line-252"> * @since 1.10.0</span> <span class="source-line-no">253</span><span id="line-253"> */</span> <span class="source-line-no">254</span><span id="line-254"> @Facebook("is_permanently_closed")</span> <span class="source-line-no">255</span><span id="line-255"> private Boolean isPermanentlyClosed;</span> <span class="source-line-no">256</span><span id="line-256"> private List&lt;PageLabel&gt; labels = new ArrayList&lt;&gt;();</span> <span class="source-line-no">257</span><span id="line-257"> /**</span> <span class="source-line-no">258</span><span id="line-258"> * owner business of this object</span> <span class="source-line-no">259</span><span id="line-259"> */</span> <span class="source-line-no">260</span><span id="line-260"> @Facebook("owner_business")</span> <span class="source-line-no">261</span><span id="line-261"> private Business ownerBusiness;</span> <span class="source-line-no">262</span><span id="line-262"> /**</span> <span class="source-line-no">263</span><span id="line-263"> * Overall page rating based on rating survey from users on a scale of 1-5. This value is normalized and is not</span> <span class="source-line-no">264</span><span id="line-264"> * guaranteed to be a strict average of user ratings. If there are 0 or a small number of ratings, this field will not</span> <span class="source-line-no">265</span><span id="line-265"> * be returned.</span> <span class="source-line-no">266</span><span id="line-266"> */</span> <span class="source-line-no">267</span><span id="line-267"> @Facebook("overall_star_rating")</span> <span class="source-line-no">268</span><span id="line-268"> private Double overallStarRating;</span> <span class="source-line-no">269</span><span id="line-269"> /**</span> <span class="source-line-no">270</span><span id="line-270"> * Number of ratings for the page (limited to ratings that are publicly accessible</span> <span class="source-line-no">271</span><span id="line-271"> */</span> <span class="source-line-no">272</span><span id="line-272"> @Facebook("rating_count")</span> <span class="source-line-no">273</span><span id="line-273"> private Integer ratingCount;</span> <span class="source-line-no">274</span><span id="line-274"> /**</span> <span class="source-line-no">275</span><span id="line-275"> * Messenger page scope id associated with page and a user using account_linking_token</span> <span class="source-line-no">276</span><span id="line-276"> */</span> <span class="source-line-no">277</span><span id="line-277"> @Facebook</span> <span class="source-line-no">278</span><span id="line-278"> private String recipient;</span> <span class="source-line-no">279</span><span id="line-279"> @Facebook("labels")</span> <span class="source-line-no">280</span><span id="line-280"> private transient String rawLabels;</span> <span class="source-line-no">281</span><span id="line-281"> /**</span> <span class="source-line-no">282</span><span id="line-282"> * Personal information. Applicable to Pages representing People</span> <span class="source-line-no">283</span><span id="line-283"> * </span> <span class="source-line-no">284</span><span id="line-284"> * @since 1.10.0</span> <span class="source-line-no">285</span><span id="line-285"> */</span> <span class="source-line-no">286</span><span id="line-286"> @Facebook("personal_info")</span> <span class="source-line-no">287</span><span id="line-287"> private String personalInfo;</span> <span class="source-line-no">288</span><span id="line-288"> /**</span> <span class="source-line-no">289</span><span id="line-289"> * Payment options accepted by the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">290</span><span id="line-290"> * </span> <span class="source-line-no">291</span><span id="line-291"> * @since 1.10.0</span> <span class="source-line-no">292</span><span id="line-292"> */</span> <span class="source-line-no">293</span><span id="line-293"> @Facebook("payment_options")</span> <span class="source-line-no">294</span><span id="line-294"> private PagePaymentOptions paymentOptions;</span> <span class="source-line-no">295</span><span id="line-295"> /**</span> <span class="source-line-no">296</span><span id="line-296"> * Personal interests. Applicable to Pages representing People</span> <span class="source-line-no">297</span><span id="line-297"> * </span> <span class="source-line-no">298</span><span id="line-298"> * @since 1.10.0</span> <span class="source-line-no">299</span><span id="line-299"> */</span> <span class="source-line-no">300</span><span id="line-300"> @Facebook("personal_interests")</span> <span class="source-line-no">301</span><span id="line-301"> private String personalInterests;</span> <span class="source-line-no">302</span><span id="line-302"> /**</span> <span class="source-line-no">303</span><span id="line-303"> * Pharmacy safety information. Applicable to Pharmaceutical companies</span> <span class="source-line-no">304</span><span id="line-304"> * </span> <span class="source-line-no">305</span><span id="line-305"> * @since 1.10.0</span> <span class="source-line-no">306</span><span id="line-306"> */</span> <span class="source-line-no">307</span><span id="line-307"> @Facebook("pharma_safety_info")</span> <span class="source-line-no">308</span><span id="line-308"> private String pharmaSafetyInfo;</span> <span class="source-line-no">309</span><span id="line-309"> /**</span> <span class="source-line-no">310</span><span id="line-310"> * For places, the category of the place.</span> <span class="source-line-no">311</span><span id="line-311"> */</span> <span class="source-line-no">312</span><span id="line-312"> @Facebook("place_type")</span> <span class="source-line-no">313</span><span id="line-313"> private String placeType;</span> <span class="source-line-no">314</span><span id="line-314"> /**</span> <span class="source-line-no">315</span><span id="line-315"> * The plot outline of the film. Applicable to Films</span> <span class="source-line-no">316</span><span id="line-316"> * </span> <span class="source-line-no">317</span><span id="line-317"> * @since 1.10.0</span> <span class="source-line-no">318</span><span id="line-318"> */</span> <span class="source-line-no">319</span><span id="line-319"> @Facebook("plot_outline")</span> <span class="source-line-no">320</span><span id="line-320"> private String plotOutline;</span> <span class="source-line-no">321</span><span id="line-321"> /**</span> <span class="source-line-no">322</span><span id="line-322"> * Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$</span> <span class="source-line-no">323</span><span id="line-323"> * (30-50), $$$$ (50+) or Unspecified</span> <span class="source-line-no">324</span><span id="line-324"> * </span> <span class="source-line-no">325</span><span id="line-325"> * @since 1.10.0</span> <span class="source-line-no">326</span><span id="line-326"> */</span> <span class="source-line-no">327</span><span id="line-327"> @Facebook("price_range")</span> <span class="source-line-no">328</span><span id="line-328"> private String priceRange;</span> <span class="source-line-no">329</span><span id="line-329"> /**</span> <span class="source-line-no">330</span><span id="line-330"> * The productor of the film. Applicable to Films</span> <span class="source-line-no">331</span><span id="line-331"> * </span> <span class="source-line-no">332</span><span id="line-332"> * @since 1.10.0</span> <span class="source-line-no">333</span><span id="line-333"> */</span> <span class="source-line-no">334</span><span id="line-334"> @Facebook("produced_by")</span> <span class="source-line-no">335</span><span id="line-335"> private String producedBy;</span> <span class="source-line-no">336</span><span id="line-336"> /**</span> <span class="source-line-no">337</span><span id="line-337"> * Reason why a post isn't eligible for boosting. Only visible to Page Admins</span> <span class="source-line-no">338</span><span id="line-338"> * </span> <span class="source-line-no">339</span><span id="line-339"> * @since 1.10.0</span> <span class="source-line-no">340</span><span id="line-340"> */</span> <span class="source-line-no">341</span><span id="line-341"> @Facebook("promotion_eligible")</span> <span class="source-line-no">342</span><span id="line-342"> private Boolean promotionEligible;</span> <span class="source-line-no">343</span><span id="line-343"> /**</span> <span class="source-line-no">344</span><span id="line-344"> * Reason, for which boosted posts are not eligible. Only visible to a page admin</span> <span class="source-line-no">345</span><span id="line-345"> * </span> <span class="source-line-no">346</span><span id="line-346"> * @since 1.10.0</span> <span class="source-line-no">347</span><span id="line-347"> */</span> <span class="source-line-no">348</span><span id="line-348"> @Facebook("promotion_ineligible_reason")</span> <span class="source-line-no">349</span><span id="line-349"> private String promotionIneligibleReason;</span> <span class="source-line-no">350</span><span id="line-350"> /**</span> <span class="source-line-no">351</span><span id="line-351"> * Public transit to the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">352</span><span id="line-352"> * </span> <span class="source-line-no">353</span><span id="line-353"> * @since 1.10.0</span> <span class="source-line-no">354</span><span id="line-354"> */</span> <span class="source-line-no">355</span><span id="line-355"> @Facebook("public_transit")</span> <span class="source-line-no">356</span><span id="line-356"> private String publicTransit;</span> <span class="source-line-no">357</span><span id="line-357"> /**</span> <span class="source-line-no">358</span><span id="line-358"> * Record label of the band. Applicable to Bands</span> <span class="source-line-no">359</span><span id="line-359"> * </span> <span class="source-line-no">360</span><span id="line-360"> * @since 1.10.0</span> <span class="source-line-no">361</span><span id="line-361"> */</span> <span class="source-line-no">362</span><span id="line-362"> @Facebook("record_label")</span> <span class="source-line-no">363</span><span id="line-363"> private String recordLabel;</span> <span class="source-line-no">364</span><span id="line-364"> /**</span> <span class="source-line-no">365</span><span id="line-365"> * The film's release date. Applicable to Films</span> <span class="source-line-no">366</span><span id="line-366"> * </span> <span class="source-line-no">367</span><span id="line-367"> * @since 1.10.0</span> <span class="source-line-no">368</span><span id="line-368"> */</span> <span class="source-line-no">369</span><span id="line-369"> @Facebook("release_date")</span> <span class="source-line-no">370</span><span id="line-370"> private String releaseDate;</span> <span class="source-line-no">371</span><span id="line-371"> /**</span> <span class="source-line-no">372</span><span id="line-372"> * Services the restaurant provides. Applicable to Restaurants</span> <span class="source-line-no">373</span><span id="line-373"> * </span> <span class="source-line-no">374</span><span id="line-374"> * @since 1.10.0</span> <span class="source-line-no">375</span><span id="line-375"> */</span> <span class="source-line-no">376</span><span id="line-376"> @Facebook("restaurant_services")</span> <span class="source-line-no">377</span><span id="line-377"> private PageRestaurantServices restaurantServices;</span> <span class="source-line-no">378</span><span id="line-378"> /**</span> <span class="source-line-no">379</span><span id="line-379"> * The restaurant's specialties. Applicable to Restaurants</span> <span class="source-line-no">380</span><span id="line-380"> * </span> <span class="source-line-no">381</span><span id="line-381"> * @since 1.10.0</span> <span class="source-line-no">382</span><span id="line-382"> */</span> <span class="source-line-no">383</span><span id="line-383"> @Facebook("restaurant_specialties")</span> <span class="source-line-no">384</span><span id="line-384"> private PageRestaurantSpecialties restaurantSpecialties;</span> <span class="source-line-no">385</span><span id="line-385"> /**</span> <span class="source-line-no">386</span><span id="line-386"> * Unique store code for this location Page</span> <span class="source-line-no">387</span><span id="line-387"> */</span> <span class="source-line-no">388</span><span id="line-388"> @Facebook("store_code")</span> <span class="source-line-no">389</span><span id="line-389"> private String storeCode;</span> <span class="source-line-no">390</span><span id="line-390"> /**</span> <span class="source-line-no">391</span><span id="line-391"> * Location Page's store location descriptor</span> <span class="source-line-no">392</span><span id="line-392"> */</span> <span class="source-line-no">393</span><span id="line-393"> @Facebook("store_location_descriptor")</span> <span class="source-line-no">394</span><span id="line-394"> @GraphAPI(since = "2.5")</span> <span class="source-line-no">395</span><span id="line-395"> private String storeLocationDescriptor;</span> <span class="source-line-no">396</span><span id="line-396"> /**</span> <span class="source-line-no">397</span><span id="line-397"> * The genre of the film. Applicable to Films</span> <span class="source-line-no">398</span><span id="line-398"> * </span> <span class="source-line-no">399</span><span id="line-399"> * @since 1.10.0</span> <span class="source-line-no">400</span><span id="line-400"> */</span> <span class="source-line-no">401</span><span id="line-401"> @Facebook</span> <span class="source-line-no">402</span><span id="line-402"> private String genre;</span> <span class="source-line-no">403</span><span id="line-403"> /**</span> <span class="source-line-no">404</span><span id="line-404"> * MPG of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">405</span><span id="line-405"> * </span> <span class="source-line-no">406</span><span id="line-406"> * @since 1.10.0</span> <span class="source-line-no">407</span><span id="line-407"> */</span> <span class="source-line-no">408</span><span id="line-408"> @Facebook</span> <span class="source-line-no">409</span><span id="line-409"> private String mpg;</span> <span class="source-line-no">410</span><span id="line-410"> /**</span> <span class="source-line-no">411</span><span id="line-411"> * The TV network for the TV show. Applicable to TV Shows</span> <span class="source-line-no">412</span><span id="line-412"> * </span> <span class="source-line-no">413</span><span id="line-413"> * @since 1.10.0</span> <span class="source-line-no">414</span><span id="line-414"> */</span> <span class="source-line-no">415</span><span id="line-415"> @Facebook</span> <span class="source-line-no">416</span><span id="line-416"> private String network;</span> <span class="source-line-no">417</span><span id="line-417"> /**</span> <span class="source-line-no">418</span><span id="line-418"> * The number of people who have liked the Page, since the last login. Only visible to a page admin</span> <span class="source-line-no">419</span><span id="line-419"> * </span> <span class="source-line-no">420</span><span id="line-420"> * @since 1.10.0</span> <span class="source-line-no">421</span><span id="line-421"> */</span> <span class="source-line-no">422</span><span id="line-422"> @Facebook("new_like_count")</span> <span class="source-line-no">423</span><span id="line-423"> private Long newLikeCount;</span> <span class="source-line-no">424</span><span id="line-424"> /**</span> <span class="source-line-no">425</span><span id="line-425"> * Offer eligibility status. Only visible to a page admin</span> <span class="source-line-no">426</span><span id="line-426"> * </span> <span class="source-line-no">427</span><span id="line-427"> * @since 1.10.0</span> <span class="source-line-no">428</span><span id="line-428"> */</span> <span class="source-line-no">429</span><span id="line-429"> @Facebook("offer_eligible")</span> <span class="source-line-no">430</span><span id="line-430"> private Boolean offerEligible;</span> <span class="source-line-no">431</span><span id="line-431"> /**</span> <span class="source-line-no">432</span><span id="line-432"> * The air schedule of the TV show. Applicable to TV Shows</span> <span class="source-line-no">433</span><span id="line-433"> * </span> <span class="source-line-no">434</span><span id="line-434"> * @since 1.10.0</span> <span class="source-line-no">435</span><span id="line-435"> */</span> <span class="source-line-no">436</span><span id="line-436"> @Facebook</span> <span class="source-line-no">437</span><span id="line-437"> private String schedule;</span> <span class="source-line-no">438</span><span id="line-438"> /**</span> <span class="source-line-no">439</span><span id="line-439"> * The screenwriter of the film. Applicable to Films</span> <span class="source-line-no">440</span><span id="line-440"> * </span> <span class="source-line-no">441</span><span id="line-441"> * @since 1.10.0</span> <span class="source-line-no">442</span><span id="line-442"> */</span> <span class="source-line-no">443</span><span id="line-443"> @Facebook("screenplay_by")</span> <span class="source-line-no">444</span><span id="line-444"> private String screenplayBy;</span> <span class="source-line-no">445</span><span id="line-445"> /**</span> <span class="source-line-no">446</span><span id="line-446"> * The season information of the TV Show. Applicable to TV Shows</span> <span class="source-line-no">447</span><span id="line-447"> * </span> <span class="source-line-no">448</span><span id="line-448"> * @since 1.10.0</span> <span class="source-line-no">449</span><span id="line-449"> */</span> <span class="source-line-no">450</span><span id="line-450"> @Facebook</span> <span class="source-line-no">451</span><span id="line-451"> private String season;</span> <span class="source-line-no">452</span><span id="line-452"> /**</span> <span class="source-line-no">453</span><span id="line-453"> * The page address, if any, in a simple single line format.</span> <span class="source-line-no">454</span><span id="line-454"> */</span> <span class="source-line-no">455</span><span id="line-455"> @Facebook("single_line_address")</span> <span class="source-line-no">456</span><span id="line-456"> private String singleLineAddress;</span> <span class="source-line-no">457</span><span id="line-457"> /**</span> <span class="source-line-no">458</span><span id="line-458"> * The cast of the film. Applicable to Films</span> <span class="source-line-no">459</span><span id="line-459"> * </span> <span class="source-line-no">460</span><span id="line-460"> * @since 1.10.0</span> <span class="source-line-no">461</span><span id="line-461"> */</span> <span class="source-line-no">462</span><span id="line-462"> @Facebook</span> <span class="source-line-no">463</span><span id="line-463"> private String starring;</span> <span class="source-line-no">464</span><span id="line-464"> /**</span> <span class="source-line-no">465</span><span id="line-465"> * Information about when the entity represented by the Page was started</span> <span class="source-line-no">466</span><span id="line-466"> * </span> <span class="source-line-no">467</span><span id="line-467"> * @since 1.10.0</span> <span class="source-line-no">468</span><span id="line-468"> */</span> <span class="source-line-no">469</span><span id="line-469"> @Facebook("start_info")</span> <span class="source-line-no">470</span><span id="line-470"> private PageStartInfo startInfo;</span> <span class="source-line-no">471</span><span id="line-471"> /**</span> <span class="source-line-no">472</span><span id="line-472"> * Unique store number for this location Page.</span> <span class="source-line-no">473</span><span id="line-473"> * </span> <span class="source-line-no">474</span><span id="line-474"> * @since 1.10.0</span> <span class="source-line-no">475</span><span id="line-475"> */</span> <span class="source-line-no">476</span><span id="line-476"> @Facebook("store_number")</span> <span class="source-line-no">477</span><span id="line-477"> private String storeNumber;</span> <span class="source-line-no">478</span><span id="line-478"> /**</span> <span class="source-line-no">479</span><span id="line-479"> * The studio for the film production. Applicable to Films</span> <span class="source-line-no">480</span><span id="line-480"> * </span> <span class="source-line-no">481</span><span id="line-481"> * @since 1.10.0</span> <span class="source-line-no">482</span><span id="line-482"> */</span> <span class="source-line-no">483</span><span id="line-483"> @Facebook</span> <span class="source-line-no">484</span><span id="line-484"> private String studio;</span> <span class="source-line-no">485</span><span id="line-485"> /**</span> <span class="source-line-no">486</span><span id="line-486"> * The social sentence and like count information for this Page. This is the same info used for the like button</span> <span class="source-line-no">487</span><span id="line-487"> * </span> <span class="source-line-no">488</span><span id="line-488"> * @since 1.10.0</span> <span class="source-line-no">489</span><span id="line-489"> */</span> <span class="source-line-no">490</span><span id="line-490"> @Facebook</span> <span class="source-line-no">491</span><span id="line-491"> private Engagement engagement;</span> <span class="source-line-no">492</span><span id="line-492"> /**</span> <span class="source-line-no">493</span><span id="line-493"> * Unread message count for the Page. Only visible to a page admin</span> <span class="source-line-no">494</span><span id="line-494"> * </span> <span class="source-line-no">495</span><span id="line-495"> * @since 1.10.0</span> <span class="source-line-no">496</span><span id="line-496"> */</span> <span class="source-line-no">497</span><span id="line-497"> @Facebook("unread_message_count")</span> <span class="source-line-no">498</span><span id="line-498"> private Long unreadMessageCount;</span> <span class="source-line-no">499</span><span id="line-499"> /**</span> <span class="source-line-no">500</span><span id="line-500"> * Number of unread notifications. Only visible to a page admin</span> <span class="source-line-no">501</span><span id="line-501"> * </span> <span class="source-line-no">502</span><span id="line-502"> * @since 1.10.0</span> <span class="source-line-no">503</span><span id="line-503"> */</span> <span class="source-line-no">504</span><span id="line-504"> @Facebook("unread_notif_count")</span> <span class="source-line-no">505</span><span id="line-505"> private Long unreadNotifCount;</span> <span class="source-line-no">506</span><span id="line-506"> /**</span> <span class="source-line-no">507</span><span id="line-507"> * Unseen message count for the Page. Only visible to a page admin</span> <span class="source-line-no">508</span><span id="line-508"> * </span> <span class="source-line-no">509</span><span id="line-509"> * @since 1.10.0</span> <span class="source-line-no">510</span><span id="line-510"> */</span> <span class="source-line-no">511</span><span id="line-511"> @Facebook("unseen_message_count")</span> <span class="source-line-no">512</span><span id="line-512"> private Long unseenMessageCount;</span> <span class="source-line-no">513</span><span id="line-513"> /**</span> <span class="source-line-no">514</span><span id="line-514"> * Members of this org. Applicable to Pages representing Team Orgs</span> <span class="source-line-no">515</span><span id="line-515"> * </span> <span class="source-line-no">516</span><span id="line-516"> * @since 1.10.0</span> <span class="source-line-no">517</span><span id="line-517"> */</span> <span class="source-line-no">518</span><span id="line-518"> @Facebook</span> <span class="source-line-no">519</span><span id="line-519"> private String members;</span> <span class="source-line-no">520</span><span id="line-520"> /**</span> <span class="source-line-no">521</span><span id="line-521"> * The number of visits to this Page's location. If the Page setting Show map, check-ins and star ratings on the Page</span> <span class="source-line-no">522</span><span id="line-522"> * (under Page Settings &gt; Page Info &gt; Address) is disabled, then this value will also be disabled</span> <span class="source-line-no">523</span><span id="line-523"> * </span> <span class="source-line-no">524</span><span id="line-524"> * @since 1.10.0</span> <span class="source-line-no">525</span><span id="line-525"> */</span> <span class="source-line-no">526</span><span id="line-526"> @Facebook("were_here_count")</span> <span class="source-line-no">527</span><span id="line-527"> private Long wereHereCount;</span> <span class="source-line-no">528</span><span id="line-528"> /**</span> <span class="source-line-no">529</span><span id="line-529"> * Video Featured by the Page. Only visible to the Page admin</span> <span class="source-line-no">530</span><span id="line-530"> * </span> <span class="source-line-no">531</span><span id="line-531"> * @since 1.10.0</span> <span class="source-line-no">532</span><span id="line-532"> */</span> <span class="source-line-no">533</span><span id="line-533"> @Facebook("featured_video")</span> <span class="source-line-no">534</span><span id="line-534"> private Video featuredVideo;</span> <span class="source-line-no">535</span><span id="line-535"> /**</span> <span class="source-line-no">536</span><span id="line-536"> * Showing whether this Page is verified and in what color e.g. blue verified, gray verified or not verified</span> <span class="source-line-no">537</span><span id="line-537"> */</span> <span class="source-line-no">538</span><span id="line-538"> @Facebook("verification_status")</span> <span class="source-line-no">539</span><span id="line-539"> private String verificationStatus;</span> <span class="source-line-no">540</span><span id="line-540"> /**</span> <span class="source-line-no">541</span><span id="line-541"> * Voip info</span> <span class="source-line-no">542</span><span id="line-542"> * </span> <span class="source-line-no">543</span><span id="line-543"> * @since 1.10.0</span> <span class="source-line-no">544</span><span id="line-544"> */</span> <span class="source-line-no">545</span><span id="line-545"> @Facebook("voip_info")</span> <span class="source-line-no">546</span><span id="line-546"> private VoipInfo voipInfo;</span> <span class="source-line-no">547</span><span id="line-547"> /**</span> <span class="source-line-no">548</span><span id="line-548"> * The writer of the TV show. Applicable to TV Shows</span> <span class="source-line-no">549</span><span id="line-549"> * </span> <span class="source-line-no">550</span><span id="line-550"> * @since 1.10.0</span> <span class="source-line-no">551</span><span id="line-551"> */</span> <span class="source-line-no">552</span><span id="line-552"> @Facebook("written_by")</span> <span class="source-line-no">553</span><span id="line-553"> private String writtenBy;</span> <span class="source-line-no">554</span><span id="line-554"> /**</span> <span class="source-line-no">555</span><span id="line-555"> * whatsapp number</span> <span class="source-line-no">556</span><span id="line-556"> */</span> <span class="source-line-no">557</span><span id="line-557"> @Facebook("whatsapp_number")</span> <span class="source-line-no">558</span><span id="line-558"> private String whatsappNumber;</span> <span class="source-line-no">559</span><span id="line-559"> /**</span> <span class="source-line-no">560</span><span id="line-560"> * The page's link.</span> <span class="source-line-no">561</span><span id="line-561"> * </span> <span class="source-line-no">562</span><span id="line-562"> */</span> <span class="source-line-no">563</span><span id="line-563"> @Facebook</span> <span class="source-line-no">564</span><span id="line-564"> private String link;</span> <span class="source-line-no">565</span><span id="line-565"> /**</span> <span class="source-line-no">566</span><span id="line-566"> * The page's username. The alias of the Page. For example, for www.facebook.com/platform the username is 'platform'</span> <span class="source-line-no">567</span><span id="line-567"> * </span> <span class="source-line-no">568</span><span id="line-568"> */</span> <span class="source-line-no">569</span><span id="line-569"> @Facebook</span> <span class="source-line-no">570</span><span id="line-570"> private String username;</span> <span class="source-line-no">571</span><span id="line-571"> /**</span> <span class="source-line-no">572</span><span id="line-572"> * When the page was founded.</span> <span class="source-line-no">573</span><span id="line-573"> * </span> <span class="source-line-no">574</span><span id="line-574"> */</span> <span class="source-line-no">575</span><span id="line-575"> @Facebook</span> <span class="source-line-no">576</span><span id="line-576"> private String founded;</span> <span class="source-line-no">577</span><span id="line-577"> /**</span> <span class="source-line-no">578</span><span id="line-578"> * Overview of the page's company.</span> <span class="source-line-no">579</span><span id="line-579"> * </span> <span class="source-line-no">580</span><span id="line-580"> */</span> <span class="source-line-no">581</span><span id="line-581"> @Facebook("company_overview")</span> <span class="source-line-no">582</span><span id="line-582"> private String companyOverview;</span> <span class="source-line-no">583</span><span id="line-583"> /**</span> <span class="source-line-no">584</span><span id="line-584"> * The company mission. Applicable to Companies</span> <span class="source-line-no">585</span><span id="line-585"> * </span> <span class="source-line-no">586</span><span id="line-586"> */</span> <span class="source-line-no">587</span><span id="line-587"> @Facebook</span> <span class="source-line-no">588</span><span id="line-588"> private String mission;</span> <span class="source-line-no">589</span><span id="line-589"> /**</span> <span class="source-line-no">590</span><span id="line-590"> * The page's products.</span> <span class="source-line-no">591</span><span id="line-591"> * </span> <span class="source-line-no">592</span><span id="line-592"> */</span> <span class="source-line-no">593</span><span id="line-593"> @Facebook</span> <span class="source-line-no">594</span><span id="line-594"> private String products;</span> <span class="source-line-no">595</span><span id="line-595"> @Facebook("page_token")</span> <span class="source-line-no">596</span><span id="line-596"> private String pageToken;</span> <span class="source-line-no">597</span><span id="line-597"> /**</span> <span class="source-line-no">598</span><span id="line-598"> * Parent Page of this Page.</span> <span class="source-line-no">599</span><span id="line-599"> *</span> <span class="source-line-no">600</span><span id="line-600"> * If the Page is part of a Global Root Structure and you have permission to the Global Root,</span> <span class="source-line-no">601</span><span id="line-601"> * the Global Root Parent Page is returned. If you do not have Global Root permission,</span> <span class="source-line-no">602</span><span id="line-602"> * the Market Page for your current region is returned as the Parent Page.</span> <span class="source-line-no">603</span><span id="line-603"> *</span> <span class="source-line-no">604</span><span id="line-604"> * If your Page is not part of a Global Root Structure, the Parent Page is returned.</span> <span class="source-line-no">605</span><span id="line-605"> */</span> <span class="source-line-no">606</span><span id="line-606"> @Facebook("parent_page")</span> <span class="source-line-no">607</span><span id="line-607"> private Page parentPage;</span> <span class="source-line-no">608</span><span id="line-608"> /**</span> <span class="source-line-no">609</span><span id="line-609"> * Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page.</span> <span class="source-line-no">610</span><span id="line-610"> * </span> <span class="source-line-no">611</span><span id="line-611"> */</span> <span class="source-line-no">612</span><span id="line-612"> @Facebook("leadgen_tos_accepted")</span> <span class="source-line-no">613</span><span id="line-613"> private Boolean leadgenTosAccepted;</span> <span class="source-line-no">614</span><span id="line-614"> /**</span> <span class="source-line-no">615</span><span id="line-615"> * The number of likes the page has.</span> <span class="source-line-no">616</span><span id="line-616"> *</span> <span class="source-line-no">617</span><span id="line-617"> * Since Graph 2.6 you should use {@link Page#fanCount} instead</span> <span class="source-line-no">618</span><span id="line-618"> *</span> <span class="source-line-no">619</span><span id="line-619"> * @since 1.6.5</span> <span class="source-line-no">620</span><span id="line-620"> */</span> <span class="source-line-no">621</span><span id="line-621"> @Facebook("likes")</span> <span class="source-line-no">622</span><span id="line-622"> @GraphAPI(until = "2.5")</span> <span class="source-line-no">623</span><span id="line-623"> private Long likesCount;</span> <span class="source-line-no">624</span><span id="line-624"> /**</span> <span class="source-line-no">625</span><span id="line-625"> * The Pages that this Page Likes.</span> <span class="source-line-no">626</span><span id="line-626"> */</span> <span class="source-line-no">627</span><span id="line-627"> @Facebook</span> <span class="source-line-no">628</span><span id="line-628"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">629</span><span id="line-629"> private Likes likes;</span> <span class="source-line-no">630</span><span id="line-630"> /**</span> <span class="source-line-no">631</span><span id="line-631"> * The number of likes the page has.</span> <span class="source-line-no">632</span><span id="line-632"> */</span> <span class="source-line-no">633</span><span id="line-633"> @Facebook("fan_count")</span> <span class="source-line-no">634</span><span id="line-634"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">635</span><span id="line-635"> private Long fanCount;</span> <span class="source-line-no">636</span><span id="line-636"> /**</span> <span class="source-line-no">637</span><span id="line-637"> * Indicates whether this location is always open.</span> <span class="source-line-no">638</span><span id="line-638"> */</span> <span class="source-line-no">639</span><span id="line-639"> @Facebook("is_always_open")</span> <span class="source-line-no">640</span><span id="line-640"> private Boolean isAlwaysOpen;</span> <span class="source-line-no">641</span><span id="line-641"> /**</span> <span class="source-line-no">642</span><span id="line-642"> * Indicates whether location is part of a chain</span> <span class="source-line-no">643</span><span id="line-643"> */</span> <span class="source-line-no">644</span><span id="line-644"> @Facebook("is_chain")</span> <span class="source-line-no">645</span><span id="line-645"> private Boolean isChain;</span> <span class="source-line-no">646</span><span id="line-646"> /**</span> <span class="source-line-no">647</span><span id="line-647"> * Is this a community page?</span> <span class="source-line-no">648</span><span id="line-648"> * </span> <span class="source-line-no">649</span><span id="line-649"> */</span> <span class="source-line-no">650</span><span id="line-650"> @Facebook("is_community_page")</span> <span class="source-line-no">651</span><span id="line-651"> private Boolean isCommunityPage;</span> <span class="source-line-no">652</span><span id="line-652"> /**</span> <span class="source-line-no">653</span><span id="line-653"> * Indicates whether the page is eligible for the branded content tool</span> <span class="source-line-no">654</span><span id="line-654"> */</span> <span class="source-line-no">655</span><span id="line-655"> @Facebook("is_eligible_for_branded_content")</span> <span class="source-line-no">656</span><span id="line-656"> private Boolean isEligibleForBrandedContent;</span> <span class="source-line-no">657</span><span id="line-657"> /**</span> <span class="source-line-no">658</span><span id="line-658"> * Indicates whether the page is a Messenger Platform Bot with Get Started button enabled</span> <span class="source-line-no">659</span><span id="line-659"> */</span> <span class="source-line-no">660</span><span id="line-660"> @Facebook("is_messenger_bot_get_started_enabled")</span> <span class="source-line-no">661</span><span id="line-661"> private Boolean isMessengerBotGetStartedEnabled;</span> <span class="source-line-no">662</span><span id="line-662"> /**</span> <span class="source-line-no">663</span><span id="line-663"> * Indicates whether the page is a Messenger Platform Bot</span> <span class="source-line-no">664</span><span id="line-664"> */</span> <span class="source-line-no">665</span><span id="line-665"> @Facebook("is_messenger_platform_bot")</span> <span class="source-line-no">666</span><span id="line-666"> private Boolean isMessengerPlatformBot;</span> <span class="source-line-no">667</span><span id="line-667"> /**</span> <span class="source-line-no">668</span><span id="line-668"> * Indicates whether page is owned</span> <span class="source-line-no">669</span><span id="line-669"> */</span> <span class="source-line-no">670</span><span id="line-670"> @Facebook("is_owned")</span> <span class="source-line-no">671</span><span id="line-671"> private Boolean isOwned;</span> <span class="source-line-no">672</span><span id="line-672"> /**</span> <span class="source-line-no">673</span><span id="line-673"> * A description of this page.</span> <span class="source-line-no">674</span><span id="line-674"> * </span> <span class="source-line-no">675</span><span id="line-675"> */</span> <span class="source-line-no">676</span><span id="line-676"> @Facebook</span> <span class="source-line-no">677</span><span id="line-677"> private String description;</span> <span class="source-line-no">678</span><span id="line-678"> /**</span> <span class="source-line-no">679</span><span id="line-679"> * The description of the Page in raw HTML.</span> <span class="source-line-no">680</span><span id="line-680"> * </span> <span class="source-line-no">681</span><span id="line-681"> * @since 1.10.0</span> <span class="source-line-no">682</span><span id="line-682"> */</span> <span class="source-line-no">683</span><span id="line-683"> @Facebook("description_html")</span> <span class="source-line-no">684</span><span id="line-684"> private String descriptionHtml;</span> <span class="source-line-no">685</span><span id="line-685"> /**</span> <span class="source-line-no">686</span><span id="line-686"> * The total number of users who have checked in to the Page.</span> <span class="source-line-no">687</span><span id="line-687"> * </span> <span class="source-line-no">688</span><span id="line-688"> */</span> <span class="source-line-no">689</span><span id="line-689"> @Facebook</span> <span class="source-line-no">690</span><span id="line-690"> private Integer checkins;</span> <span class="source-line-no">691</span><span id="line-691"> /**</span> <span class="source-line-no">692</span><span id="line-692"> * The phone number (not always normalized for country code) for the Page.</span> <span class="source-line-no">693</span><span id="line-693"> * </span> <span class="source-line-no">694</span><span id="line-694"> */</span> <span class="source-line-no">695</span><span id="line-695"> @Facebook</span> <span class="source-line-no">696</span><span id="line-696"> private String phone;</span> <span class="source-line-no">697</span><span id="line-697"> /**</span> <span class="source-line-no">698</span><span id="line-698"> * Parking information. Applicable to Businesses and Places</span> <span class="source-line-no">699</span><span id="line-699"> */</span> <span class="source-line-no">700</span><span id="line-700"> @Facebook</span> <span class="source-line-no">701</span><span id="line-701"> private PageParking parking;</span> <span class="source-line-no">702</span><span id="line-702"> /**</span> <span class="source-line-no">703</span><span id="line-703"> * An admin {@code access_token} for this page.</span> <span class="source-line-no">704</span><span id="line-704"> * &lt;p&gt;</span> <span class="source-line-no">705</span><span id="line-705"> * The current user must be an administrator of this page; only returned if specifically requested via the fields URL</span> <span class="source-line-no">706</span><span id="line-706"> * parameter, e.g. {@code facebookClient.fetchObject("123", Page.class, Parameter.with("fields","access_token"))}</span> <span class="source-line-no">707</span><span id="line-707"> * </span> <span class="source-line-no">708</span><span id="line-708"> * @since 1.6.5</span> <span class="source-line-no">709</span><span id="line-709"> */</span> <span class="source-line-no">710</span><span id="line-710"> @Facebook("access_token")</span> <span class="source-line-no">711</span><span id="line-711"> private String accessToken;</span> <span class="source-line-no">712</span><span id="line-712"> /**</span> <span class="source-line-no">713</span><span id="line-713"> * General information about this page.</span> <span class="source-line-no">714</span><span id="line-714"> * </span> <span class="source-line-no">715</span><span id="line-715"> * @since 1.6.10</span> <span class="source-line-no">716</span><span id="line-716"> */</span> <span class="source-line-no">717</span><span id="line-717"> @Facebook</span> <span class="source-line-no">718</span><span id="line-718"> private String about;</span> <span class="source-line-no">719</span><span id="line-719"> /**</span> <span class="source-line-no">720</span><span id="line-720"> * The number of people that are talking about this page (last seven days).</span> <span class="source-line-no">721</span><span id="line-721"> * </span> <span class="source-line-no">722</span><span id="line-722"> * @since 1.6.10</span> <span class="source-line-no">723</span><span id="line-723"> */</span> <span class="source-line-no">724</span><span id="line-724"> @Facebook("talking_about_count")</span> <span class="source-line-no">725</span><span id="line-725"> private Long talkingAboutCount;</span> <span class="source-line-no">726</span><span id="line-726"> /**</span> <span class="source-line-no">727</span><span id="line-727"> * Whether this page has checkin functionality enabled.</span> <span class="source-line-no">728</span><span id="line-728"> */</span> <span class="source-line-no">729</span><span id="line-729"> @Facebook("can_checkin")</span> <span class="source-line-no">730</span><span id="line-730"> private Boolean canCheckin;</span> <span class="source-line-no">731</span><span id="line-731"> /**</span> <span class="source-line-no">732</span><span id="line-732"> * Indicates whether the current session user can post on this page.</span> <span class="source-line-no">733</span><span id="line-733"> * </span> <span class="source-line-no">734</span><span id="line-734"> * @since 1.6.10</span> <span class="source-line-no">735</span><span id="line-735"> */</span> <span class="source-line-no">736</span><span id="line-736"> @Facebook("can_post")</span> <span class="source-line-no">737</span><span id="line-737"> private Boolean canPost;</span> <span class="source-line-no">738</span><span id="line-738"> /**</span> <span class="source-line-no">739</span><span id="line-739"> * Indicates whether the page is published and visible to non-admins.</span> <span class="source-line-no">740</span><span id="line-740"> * </span> <span class="source-line-no">741</span><span id="line-741"> * @since 1.6.10</span> <span class="source-line-no">742</span><span id="line-742"> */</span> <span class="source-line-no">743</span><span id="line-743"> @Facebook("is_published")</span> <span class="source-line-no">744</span><span id="line-744"> private Boolean isPublished;</span> <span class="source-line-no">745</span><span id="line-745"> /**</span> <span class="source-line-no">746</span><span id="line-746"> * Indicates whether the Page is unclaimed.</span> <span class="source-line-no">747</span><span id="line-747"> * </span> <span class="source-line-no">748</span><span id="line-748"> * @since 1.7.0</span> <span class="source-line-no">749</span><span id="line-749"> */</span> <span class="source-line-no">750</span><span id="line-750"> @Facebook("is_unclaimed")</span> <span class="source-line-no">751</span><span id="line-751"> private Boolean isUnclaimed;</span> <span class="source-line-no">752</span><span id="line-752"> /**</span> <span class="source-line-no">753</span><span id="line-753"> * Indicates whether the application is subscribed for real time updates from this page</span> <span class="source-line-no">754</span><span id="line-754"> */</span> <span class="source-line-no">755</span><span id="line-755"> @Facebook("is_webhooks_subscribed")</span> <span class="source-line-no">756</span><span id="line-756"> @GraphAPI(since = "2.7")</span> <span class="source-line-no">757</span><span id="line-757"> private Boolean isWebhooksSubscribed;</span> <span class="source-line-no">758</span><span id="line-758"> /**</span> <span class="source-line-no">759</span><span id="line-759"> * The director of the film. Applicable to Films.</span> <span class="source-line-no">760</span><span id="line-760"> * </span> <span class="source-line-no">761</span><span id="line-761"> * @since 1.7.0</span> <span class="source-line-no">762</span><span id="line-762"> */</span> <span class="source-line-no">763</span><span id="line-763"> @Facebook("directed_by")</span> <span class="source-line-no">764</span><span id="line-764"> private String directedBy;</span> <span class="source-line-no">765</span><span id="line-765"> /**</span> <span class="source-line-no">766</span><span id="line-766"> * Subtext about the Page being viewed.</span> <span class="source-line-no">767</span><span id="line-767"> */</span> <span class="source-line-no">768</span><span id="line-768"> @Facebook("display_subtext")</span> <span class="source-line-no">769</span><span id="line-769"> private String displaySubtext;</span> <span class="source-line-no">770</span><span id="line-770"> /**</span> <span class="source-line-no">771</span><span id="line-771"> * Page estimated message response time displayed to user</span> <span class="source-line-no">772</span><span id="line-772"> */</span> <span class="source-line-no">773</span><span id="line-773"> @Facebook("displayed_message_response_time")</span> <span class="source-line-no">774</span><span id="line-774"> private String displayedMessageResponseTime;</span> <span class="source-line-no">775</span><span id="line-775"> /**</span> <span class="source-line-no">776</span><span id="line-776"> * General manager of the business. Applicable to Restaurants or Nightlife.</span> <span class="source-line-no">777</span><span id="line-777"> * </span> <span class="source-line-no">778</span><span id="line-778"> * @since 1.7.0</span> <span class="source-line-no">779</span><span id="line-779"> */</span> <span class="source-line-no">780</span><span id="line-780"> @Facebook("general_manager")</span> <span class="source-line-no">781</span><span id="line-781"> private String generalManager;</span> <span class="source-line-no">782</span><span id="line-782"> /**</span> <span class="source-line-no">783</span><span id="line-783"> * The general information for a page.</span> <span class="source-line-no">784</span><span id="line-784"> * </span> <span class="source-line-no">785</span><span id="line-785"> * @since 1.6.12</span> <span class="source-line-no">786</span><span id="line-786"> */</span> <span class="source-line-no">787</span><span id="line-787"> @Facebook("general_info")</span> <span class="source-line-no">788</span><span id="line-788"> private String generalInfo;</span> <span class="source-line-no">789</span><span id="line-789"> /**</span> <span class="source-line-no">790</span><span id="line-790"> * The location of the place this page represents.</span> <span class="source-line-no">791</span><span id="line-791"> * </span> <span class="source-line-no">792</span><span id="line-792"> */</span> <span class="source-line-no">793</span><span id="line-793"> @Facebook</span> <span class="source-line-no">794</span><span id="line-794"> private Location location;</span> <span class="source-line-no">795</span><span id="line-795"> /**</span> <span class="source-line-no">796</span><span id="line-796"> * The instant workflow merchant id associated with the Page</span> <span class="source-line-no">797</span><span id="line-797"> */</span> <span class="source-line-no">798</span><span id="line-798"> @Facebook("merchant_id")</span> <span class="source-line-no">799</span><span id="line-799"> private String merchantId;</span> <span class="source-line-no">800</span><span id="line-800"> /**</span> <span class="source-line-no">801</span><span id="line-801"> * The cover photo.</span> <span class="source-line-no">802</span><span id="line-802"> * </span> <span class="source-line-no">803</span><span id="line-803"> * @since 1.6.10</span> <span class="source-line-no">804</span><span id="line-804"> */</span> <span class="source-line-no">805</span><span id="line-805"> @Facebook</span> <span class="source-line-no">806</span><span id="line-806"> private Cover cover;</span> <span class="source-line-no">807</span><span id="line-807"> /**</span> <span class="source-line-no">808</span><span id="line-808"> * The website URL</span> <span class="source-line-no">809</span><span id="line-809"> * </span> <span class="source-line-no">810</span><span id="line-810"> * @since 1.6.15</span> <span class="source-line-no">811</span><span id="line-811"> */</span> <span class="source-line-no">812</span><span id="line-812"> @Facebook</span> <span class="source-line-no">813</span><span id="line-813"> private String website;</span> <span class="source-line-no">814</span><span id="line-814"> /**</span> <span class="source-line-no">815</span><span id="line-815"> * The name of a Location Page that provides additional location information for that Page beside its name.</span> <span class="source-line-no">816</span><span id="line-816"> * </span> <span class="source-line-no">817</span><span id="line-817"> * @since 1.7.0</span> <span class="source-line-no">818</span><span id="line-818"> */</span> <span class="source-line-no">819</span><span id="line-819"> @Facebook("name_with_location_descriptor")</span> <span class="source-line-no">820</span><span id="line-820"> private String nameWithLocationDescriptor;</span> <span class="source-line-no">821</span><span id="line-821"> /**</span> <span class="source-line-no">822</span><span id="line-822"> * Booking agent of the band. Applicable to Bands.</span> <span class="source-line-no">823</span><span id="line-823"> * </span> <span class="source-line-no">824</span><span id="line-824"> * @since 1.7.0</span> <span class="source-line-no">825</span><span id="line-825"> */</span> <span class="source-line-no">826</span><span id="line-826"> @Facebook("booking_agent")</span> <span class="source-line-no">827</span><span id="line-827"> private String bookingAgent;</span> <span class="source-line-no">828</span><span id="line-828"> /**</span> <span class="source-line-no">829</span><span id="line-829"> * Press contact information of the band. Applicable to Bands.</span> <span class="source-line-no">830</span><span id="line-830"> * </span> <span class="source-line-no">831</span><span id="line-831"> * @since 1.7.0</span> <span class="source-line-no">832</span><span id="line-832"> */</span> <span class="source-line-no">833</span><span id="line-833"> @Facebook("press_contact")</span> <span class="source-line-no">834</span><span id="line-834"> private String pressContact;</span> <span class="source-line-no">835</span><span id="line-835"> /**</span> <span class="source-line-no">836</span><span id="line-836"> * Instagram account connected to page via page settings</span> <span class="source-line-no">837</span><span id="line-837"> */</span> <span class="source-line-no">838</span><span id="line-838"> @Facebook("connected_instagram_account")</span> <span class="source-line-no">839</span><span id="line-839"> private IgUser connectedInstagramAccount;</span> <span class="source-line-no">840</span><span id="line-840"> /**</span> <span class="source-line-no">841</span><span id="line-841"> * Instagram account linked to page during Instagram business conversion flow</span> <span class="source-line-no">842</span><span id="line-842"> */</span> <span class="source-line-no">843</span><span id="line-843"> @Facebook("instagram_business_account")</span> <span class="source-line-no">844</span><span id="line-844"> private IgUser instagramBusinessAccount;</span> <span class="source-line-no">845</span><span id="line-845"> @Facebook("instagram_accounts")</span> <span class="source-line-no">846</span><span id="line-846"> private List&lt;InstagramUser&gt; instagramAccounts = new ArrayList&lt;&gt;();</span> <span class="source-line-no">847</span><span id="line-847"> /**</span> <span class="source-line-no">848</span><span id="line-848"> * Indicates the current Instant Articles review status for this page</span> <span class="source-line-no">849</span><span id="line-849"> */</span> <span class="source-line-no">850</span><span id="line-850"> @Facebook("instant_articles_review_status")</span> <span class="source-line-no">851</span><span id="line-851"> private String instantArticlesReviewStatus;</span> <span class="source-line-no">852</span><span id="line-852"> /**</span> <span class="source-line-no">853</span><span id="line-853"> * last used time of this object by the current viewer</span> <span class="source-line-no">854</span><span id="line-854"> */</span> <span class="source-line-no">855</span><span id="line-855"> @Facebook("last_used_time")</span> <span class="source-line-no">856</span><span id="line-856"> private Date lastUsedTime;</span> <span class="source-line-no">857</span><span id="line-857"> @Facebook("category_list")</span> <span class="source-line-no">858</span><span id="line-858"> private List&lt;Category&gt; categoryList = new ArrayList&lt;&gt;();</span> <span class="source-line-no">859</span><span id="line-859"> @Facebook</span> <span class="source-line-no">860</span><span id="line-860"> private List&lt;String&gt; emails = new ArrayList&lt;&gt;();</span> <span class="source-line-no">861</span><span id="line-861"> @Facebook("food_styles")</span> <span class="source-line-no">862</span><span id="line-862"> private List&lt;String&gt; foodStyles = new ArrayList&lt;&gt;();</span> <span class="source-line-no">863</span><span id="line-863"> @Facebook("screennames")</span> <span class="source-line-no">864</span><span id="line-864"> private List&lt;ScreenName&gt; screenNames = new ArrayList&lt;&gt;();</span> <span class="source-line-no">865</span><span id="line-865"> /**</span> <span class="source-line-no">866</span><span id="line-866"> * Page is utilising the new page experiece or not</span> <span class="source-line-no">867</span><span id="line-867"> */</span> <span class="source-line-no">868</span><span id="line-868"> @Facebook("has_transitioned_to_new_page_experience")</span> <span class="source-line-no">869</span><span id="line-869"> private Boolean hasTransitionedToNewPageExperience;</span> <span class="source-line-no">870</span><span id="line-870"> private static final long serialVersionUID = 2L;</span> <span class="source-line-no">871</span><span id="line-871"></span> <span class="source-line-no">872</span><span id="line-872"></span> <span class="source-line-no">873</span><span id="line-873"> public static class ScreenName extends AbstractFacebookType {</span> <span class="source-line-no">874</span><span id="line-874"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">875</span><span id="line-875"> @Facebook("service_name")</span> <span class="source-line-no">876</span><span id="line-876"> private String serviceName;</span> <span class="source-line-no">877</span><span id="line-877"> @Facebook</span> <span class="source-line-no">878</span><span id="line-878"> private String value;</span> <span class="source-line-no">879</span><span id="line-879"></span> <span class="source-line-no">880</span><span id="line-880"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">881</span><span id="line-881"> public String getServiceName() {</span> <span class="source-line-no">882</span><span id="line-882"> return this.serviceName;</span> <span class="source-line-no">883</span><span id="line-883"> }</span> <span class="source-line-no">884</span><span id="line-884"></span> <span class="source-line-no">885</span><span id="line-885"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">886</span><span id="line-886"> public void setServiceName(final String serviceName) {</span> <span class="source-line-no">887</span><span id="line-887"> this.serviceName = serviceName;</span> <span class="source-line-no">888</span><span id="line-888"> }</span> <span class="source-line-no">889</span><span id="line-889"></span> <span class="source-line-no">890</span><span id="line-890"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">891</span><span id="line-891"> public String getValue() {</span> <span class="source-line-no">892</span><span id="line-892"> return this.value;</span> <span class="source-line-no">893</span><span id="line-893"> }</span> <span class="source-line-no">894</span><span id="line-894"></span> <span class="source-line-no">895</span><span id="line-895"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">896</span><span id="line-896"> public void setValue(final String value) {</span> <span class="source-line-no">897</span><span id="line-897"> this.value = value;</span> <span class="source-line-no">898</span><span id="line-898"> }</span> <span class="source-line-no">899</span><span id="line-899"> }</span> <span class="source-line-no">900</span><span id="line-900"></span> <span class="source-line-no">901</span><span id="line-901"></span> <span class="source-line-no">902</span><span id="line-902"> /**</span> <span class="source-line-no">903</span><span id="line-903"> * Represents the &lt;a href="http://developers.facebook.com/docs/reference/api/page"&gt;Cover Graph API type&lt;/a&gt;.</span> <span class="source-line-no">904</span><span id="line-904"> * </span> <span class="source-line-no">905</span><span id="line-905"> * @author &lt;a href="http://restfb.com"&gt;Mark Allen&lt;/a&gt;</span> <span class="source-line-no">906</span><span id="line-906"> * @since 1.6.10</span> <span class="source-line-no">907</span><span id="line-907"> */</span> <span class="source-line-no">908</span><span id="line-908"> public static class Cover extends AbstractFacebookType {</span> <span class="source-line-no">909</span><span id="line-909"> /**</span> <span class="source-line-no">910</span><span id="line-910"> * The ID of the photo.</span> <span class="source-line-no">911</span><span id="line-911"> * </span> <span class="source-line-no">912</span><span id="line-912"> */</span> <span class="source-line-no">913</span><span id="line-913"> @Facebook("cover_id")</span> <span class="source-line-no">914</span><span id="line-914"> private String coverId;</span> <span class="source-line-no">915</span><span id="line-915"> /**</span> <span class="source-line-no">916</span><span id="line-916"> * The URL for the cover photo.</span> <span class="source-line-no">917</span><span id="line-917"> * </span> <span class="source-line-no">918</span><span id="line-918"> */</span> <span class="source-line-no">919</span><span id="line-919"> @Facebook</span> <span class="source-line-no">920</span><span id="line-920"> private String source;</span> <span class="source-line-no">921</span><span id="line-921"> /**</span> <span class="source-line-no">922</span><span id="line-922"> * The percentage offset from top [0-100].</span> <span class="source-line-no">923</span><span id="line-923"> * </span> <span class="source-line-no">924</span><span id="line-924"> */</span> <span class="source-line-no">925</span><span id="line-925"> @Facebook("offset_y")</span> <span class="source-line-no">926</span><span id="line-926"> private Integer offsetY;</span> <span class="source-line-no">927</span><span id="line-927"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">928</span><span id="line-928"></span> <span class="source-line-no">929</span><span id="line-929"> /**</span> <span class="source-line-no">930</span><span id="line-930"> * The ID of the photo.</span> <span class="source-line-no">931</span><span id="line-931"> * </span> <span class="source-line-no">932</span><span id="line-932"> * @return The ID of the photo.</span> <span class="source-line-no">933</span><span id="line-933"> */</span> <span class="source-line-no">934</span><span id="line-934"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">935</span><span id="line-935"> public String getCoverId() {</span> <span class="source-line-no">936</span><span id="line-936"> return this.coverId;</span> <span class="source-line-no">937</span><span id="line-937"> }</span> <span class="source-line-no">938</span><span id="line-938"></span> <span class="source-line-no">939</span><span id="line-939"> /**</span> <span class="source-line-no">940</span><span id="line-940"> * The ID of the photo.</span> <span class="source-line-no">941</span><span id="line-941"> * </span> <span class="source-line-no">942</span><span id="line-942"> */</span> <span class="source-line-no">943</span><span id="line-943"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">944</span><span id="line-944"> public void setCoverId(final String coverId) {</span> <span class="source-line-no">945</span><span id="line-945"> this.coverId = coverId;</span> <span class="source-line-no">946</span><span id="line-946"> }</span> <span class="source-line-no">947</span><span id="line-947"></span> <span class="source-line-no">948</span><span id="line-948"> /**</span> <span class="source-line-no">949</span><span id="line-949"> * The URL for the cover photo.</span> <span class="source-line-no">950</span><span id="line-950"> * </span> <span class="source-line-no">951</span><span id="line-951"> * @return The URL for the cover photo.</span> <span class="source-line-no">952</span><span id="line-952"> */</span> <span class="source-line-no">953</span><span id="line-953"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">954</span><span id="line-954"> public String getSource() {</span> <span class="source-line-no">955</span><span id="line-955"> return this.source;</span> <span class="source-line-no">956</span><span id="line-956"> }</span> <span class="source-line-no">957</span><span id="line-957"></span> <span class="source-line-no">958</span><span id="line-958"> /**</span> <span class="source-line-no">959</span><span id="line-959"> * The URL for the cover photo.</span> <span class="source-line-no">960</span><span id="line-960"> * </span> <span class="source-line-no">961</span><span id="line-961"> */</span> <span class="source-line-no">962</span><span id="line-962"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">963</span><span id="line-963"> public void setSource(final String source) {</span> <span class="source-line-no">964</span><span id="line-964"> this.source = source;</span> <span class="source-line-no">965</span><span id="line-965"> }</span> <span class="source-line-no">966</span><span id="line-966"></span> <span class="source-line-no">967</span><span id="line-967"> /**</span> <span class="source-line-no">968</span><span id="line-968"> * The percentage offset from top [0-100].</span> <span class="source-line-no">969</span><span id="line-969"> * </span> <span class="source-line-no">970</span><span id="line-970"> * @return The percentage offset from top [0-100].</span> <span class="source-line-no">971</span><span id="line-971"> */</span> <span class="source-line-no">972</span><span id="line-972"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">973</span><span id="line-973"> public Integer getOffsetY() {</span> <span class="source-line-no">974</span><span id="line-974"> return this.offsetY;</span> <span class="source-line-no">975</span><span id="line-975"> }</span> <span class="source-line-no">976</span><span id="line-976"></span> <span class="source-line-no">977</span><span id="line-977"> /**</span> <span class="source-line-no">978</span><span id="line-978"> * The percentage offset from top [0-100].</span> <span class="source-line-no">979</span><span id="line-979"> * </span> <span class="source-line-no">980</span><span id="line-980"> */</span> <span class="source-line-no">981</span><span id="line-981"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">982</span><span id="line-982"> public void setOffsetY(final Integer offsetY) {</span> <span class="source-line-no">983</span><span id="line-983"> this.offsetY = offsetY;</span> <span class="source-line-no">984</span><span id="line-984"> }</span> <span class="source-line-no">985</span><span id="line-985"> }</span> <span class="source-line-no">986</span><span id="line-986"></span> <span class="source-line-no">987</span><span id="line-987"></span> <span class="source-line-no">988</span><span id="line-988"> public static class MailingAddress extends AbstractFacebookType {</span> <span class="source-line-no">989</span><span id="line-989"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">990</span><span id="line-990"> /**</span> <span class="source-line-no">991</span><span id="line-991"> * The mailing address ID.</span> <span class="source-line-no">992</span><span id="line-992"> */</span> <span class="source-line-no">993</span><span id="line-993"> @Facebook</span> <span class="source-line-no">994</span><span id="line-994"> private String id;</span> <span class="source-line-no">995</span><span id="line-995"> /**</span> <span class="source-line-no">996</span><span id="line-996"> * Address city name.</span> <span class="source-line-no">997</span><span id="line-997"> */</span> <span class="source-line-no">998</span><span id="line-998"> @Facebook</span> <span class="source-line-no">999</span><span id="line-999"> private String city;</span> <span class="source-line-no">1000</span><span id="line-1000"> /**</span> <span class="source-line-no">1001</span><span id="line-1001"> * Page representing the address city.</span> <span class="source-line-no">1002</span><span id="line-1002"> */</span> <span class="source-line-no">1003</span><span id="line-1003"> @Facebook("city_page")</span> <span class="source-line-no">1004</span><span id="line-1004"> private Page cityPage;</span> <span class="source-line-no">1005</span><span id="line-1005"> /**</span> <span class="source-line-no">1006</span><span id="line-1006"> * Country of the address.</span> <span class="source-line-no">1007</span><span id="line-1007"> */</span> <span class="source-line-no">1008</span><span id="line-1008"> @Facebook</span> <span class="source-line-no">1009</span><span id="line-1009"> private String country;</span> <span class="source-line-no">1010</span><span id="line-1010"> /**</span> <span class="source-line-no">1011</span><span id="line-1011"> * Street address.</span> <span class="source-line-no">1012</span><span id="line-1012"> */</span> <span class="source-line-no">1013</span><span id="line-1013"> @Facebook</span> <span class="source-line-no">1014</span><span id="line-1014"> private String street1;</span> <span class="source-line-no">1015</span><span id="line-1015"> /**</span> <span class="source-line-no">1016</span><span id="line-1016"> * Second part of the street address - apt, suite, etc.</span> <span class="source-line-no">1017</span><span id="line-1017"> */</span> <span class="source-line-no">1018</span><span id="line-1018"> @Facebook</span> <span class="source-line-no">1019</span><span id="line-1019"> private String street2;</span> <span class="source-line-no">1020</span><span id="line-1020"> /**</span> <span class="source-line-no">1021</span><span id="line-1021"> * Region or state of the address.</span> <span class="source-line-no">1022</span><span id="line-1022"> */</span> <span class="source-line-no">1023</span><span id="line-1023"> @Facebook</span> <span class="source-line-no">1024</span><span id="line-1024"> private String region;</span> <span class="source-line-no">1025</span><span id="line-1025"> /**</span> <span class="source-line-no">1026</span><span id="line-1026"> * Postal code of the address.</span> <span class="source-line-no">1027</span><span id="line-1027"> */</span> <span class="source-line-no">1028</span><span id="line-1028"> @Facebook("postal_code")</span> <span class="source-line-no">1029</span><span id="line-1029"> private String postalCode;</span> <span class="source-line-no">1030</span><span id="line-1030"></span> <span class="source-line-no">1031</span><span id="line-1031"> /**</span> <span class="source-line-no">1032</span><span id="line-1032"> * The mailing address ID.</span> <span class="source-line-no">1033</span><span id="line-1033"> */</span> <span class="source-line-no">1034</span><span id="line-1034"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1035</span><span id="line-1035"> public String getId() {</span> <span class="source-line-no">1036</span><span id="line-1036"> return this.id;</span> <span class="source-line-no">1037</span><span id="line-1037"> }</span> <span class="source-line-no">1038</span><span id="line-1038"></span> <span class="source-line-no">1039</span><span id="line-1039"> /**</span> <span class="source-line-no">1040</span><span id="line-1040"> * The mailing address ID.</span> <span class="source-line-no">1041</span><span id="line-1041"> */</span> <span class="source-line-no">1042</span><span id="line-1042"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1043</span><span id="line-1043"> public void setId(final String id) {</span> <span class="source-line-no">1044</span><span id="line-1044"> this.id = id;</span> <span class="source-line-no">1045</span><span id="line-1045"> }</span> <span class="source-line-no">1046</span><span id="line-1046"></span> <span class="source-line-no">1047</span><span id="line-1047"> /**</span> <span class="source-line-no">1048</span><span id="line-1048"> * Address city name.</span> <span class="source-line-no">1049</span><span id="line-1049"> */</span> <span class="source-line-no">1050</span><span id="line-1050"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1051</span><span id="line-1051"> public String getCity() {</span> <span class="source-line-no">1052</span><span id="line-1052"> return this.city;</span> <span class="source-line-no">1053</span><span id="line-1053"> }</span> <span class="source-line-no">1054</span><span id="line-1054"></span> <span class="source-line-no">1055</span><span id="line-1055"> /**</span> <span class="source-line-no">1056</span><span id="line-1056"> * Address city name.</span> <span class="source-line-no">1057</span><span id="line-1057"> */</span> <span class="source-line-no">1058</span><span id="line-1058"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1059</span><span id="line-1059"> public void setCity(final String city) {</span> <span class="source-line-no">1060</span><span id="line-1060"> this.city = city;</span> <span class="source-line-no">1061</span><span id="line-1061"> }</span> <span class="source-line-no">1062</span><span id="line-1062"></span> <span class="source-line-no">1063</span><span id="line-1063"> /**</span> <span class="source-line-no">1064</span><span id="line-1064"> * Page representing the address city.</span> <span class="source-line-no">1065</span><span id="line-1065"> */</span> <span class="source-line-no">1066</span><span id="line-1066"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1067</span><span id="line-1067"> public Page getCityPage() {</span> <span class="source-line-no">1068</span><span id="line-1068"> return this.cityPage;</span> <span class="source-line-no">1069</span><span id="line-1069"> }</span> <span class="source-line-no">1070</span><span id="line-1070"></span> <span class="source-line-no">1071</span><span id="line-1071"> /**</span> <span class="source-line-no">1072</span><span id="line-1072"> * Page representing the address city.</span> <span class="source-line-no">1073</span><span id="line-1073"> */</span> <span class="source-line-no">1074</span><span id="line-1074"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1075</span><span id="line-1075"> public void setCityPage(final Page cityPage) {</span> <span class="source-line-no">1076</span><span id="line-1076"> this.cityPage = cityPage;</span> <span class="source-line-no">1077</span><span id="line-1077"> }</span> <span class="source-line-no">1078</span><span id="line-1078"></span> <span class="source-line-no">1079</span><span id="line-1079"> /**</span> <span class="source-line-no">1080</span><span id="line-1080"> * Country of the address.</span> <span class="source-line-no">1081</span><span id="line-1081"> */</span> <span class="source-line-no">1082</span><span id="line-1082"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1083</span><span id="line-1083"> public String getCountry() {</span> <span class="source-line-no">1084</span><span id="line-1084"> return this.country;</span> <span class="source-line-no">1085</span><span id="line-1085"> }</span> <span class="source-line-no">1086</span><span id="line-1086"></span> <span class="source-line-no">1087</span><span id="line-1087"> /**</span> <span class="source-line-no">1088</span><span id="line-1088"> * Country of the address.</span> <span class="source-line-no">1089</span><span id="line-1089"> */</span> <span class="source-line-no">1090</span><span id="line-1090"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1091</span><span id="line-1091"> public void setCountry(final String country) {</span> <span class="source-line-no">1092</span><span id="line-1092"> this.country = country;</span> <span class="source-line-no">1093</span><span id="line-1093"> }</span> <span class="source-line-no">1094</span><span id="line-1094"></span> <span class="source-line-no">1095</span><span id="line-1095"> /**</span> <span class="source-line-no">1096</span><span id="line-1096"> * Street address.</span> <span class="source-line-no">1097</span><span id="line-1097"> */</span> <span class="source-line-no">1098</span><span id="line-1098"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1099</span><span id="line-1099"> public String getStreet1() {</span> <span class="source-line-no">1100</span><span id="line-1100"> return this.street1;</span> <span class="source-line-no">1101</span><span id="line-1101"> }</span> <span class="source-line-no">1102</span><span id="line-1102"></span> <span class="source-line-no">1103</span><span id="line-1103"> /**</span> <span class="source-line-no">1104</span><span id="line-1104"> * Street address.</span> <span class="source-line-no">1105</span><span id="line-1105"> */</span> <span class="source-line-no">1106</span><span id="line-1106"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1107</span><span id="line-1107"> public void setStreet1(final String street1) {</span> <span class="source-line-no">1108</span><span id="line-1108"> this.street1 = street1;</span> <span class="source-line-no">1109</span><span id="line-1109"> }</span> <span class="source-line-no">1110</span><span id="line-1110"></span> <span class="source-line-no">1111</span><span id="line-1111"> /**</span> <span class="source-line-no">1112</span><span id="line-1112"> * Second part of the street address - apt, suite, etc.</span> <span class="source-line-no">1113</span><span id="line-1113"> */</span> <span class="source-line-no">1114</span><span id="line-1114"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1115</span><span id="line-1115"> public String getStreet2() {</span> <span class="source-line-no">1116</span><span id="line-1116"> return this.street2;</span> <span class="source-line-no">1117</span><span id="line-1117"> }</span> <span class="source-line-no">1118</span><span id="line-1118"></span> <span class="source-line-no">1119</span><span id="line-1119"> /**</span> <span class="source-line-no">1120</span><span id="line-1120"> * Second part of the street address - apt, suite, etc.</span> <span class="source-line-no">1121</span><span id="line-1121"> */</span> <span class="source-line-no">1122</span><span id="line-1122"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1123</span><span id="line-1123"> public void setStreet2(final String street2) {</span> <span class="source-line-no">1124</span><span id="line-1124"> this.street2 = street2;</span> <span class="source-line-no">1125</span><span id="line-1125"> }</span> <span class="source-line-no">1126</span><span id="line-1126"></span> <span class="source-line-no">1127</span><span id="line-1127"> /**</span> <span class="source-line-no">1128</span><span id="line-1128"> * Region or state of the address.</span> <span class="source-line-no">1129</span><span id="line-1129"> */</span> <span class="source-line-no">1130</span><span id="line-1130"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1131</span><span id="line-1131"> public String getRegion() {</span> <span class="source-line-no">1132</span><span id="line-1132"> return this.region;</span> <span class="source-line-no">1133</span><span id="line-1133"> }</span> <span class="source-line-no">1134</span><span id="line-1134"></span> <span class="source-line-no">1135</span><span id="line-1135"> /**</span> <span class="source-line-no">1136</span><span id="line-1136"> * Region or state of the address.</span> <span class="source-line-no">1137</span><span id="line-1137"> */</span> <span class="source-line-no">1138</span><span id="line-1138"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1139</span><span id="line-1139"> public void setRegion(final String region) {</span> <span class="source-line-no">1140</span><span id="line-1140"> this.region = region;</span> <span class="source-line-no">1141</span><span id="line-1141"> }</span> <span class="source-line-no">1142</span><span id="line-1142"></span> <span class="source-line-no">1143</span><span id="line-1143"> /**</span> <span class="source-line-no">1144</span><span id="line-1144"> * Postal code of the address.</span> <span class="source-line-no">1145</span><span id="line-1145"> */</span> <span class="source-line-no">1146</span><span id="line-1146"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1147</span><span id="line-1147"> public String getPostalCode() {</span> <span class="source-line-no">1148</span><span id="line-1148"> return this.postalCode;</span> <span class="source-line-no">1149</span><span id="line-1149"> }</span> <span class="source-line-no">1150</span><span id="line-1150"></span> <span class="source-line-no">1151</span><span id="line-1151"> /**</span> <span class="source-line-no">1152</span><span id="line-1152"> * Postal code of the address.</span> <span class="source-line-no">1153</span><span id="line-1153"> */</span> <span class="source-line-no">1154</span><span id="line-1154"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1155</span><span id="line-1155"> public void setPostalCode(final String postalCode) {</span> <span class="source-line-no">1156</span><span id="line-1156"> this.postalCode = postalCode;</span> <span class="source-line-no">1157</span><span id="line-1157"> }</span> <span class="source-line-no">1158</span><span id="line-1158"> }</span> <span class="source-line-no">1159</span><span id="line-1159"></span> <span class="source-line-no">1160</span><span id="line-1160"></span> <span class="source-line-no">1161</span><span id="line-1161"> /**</span> <span class="source-line-no">1162</span><span id="line-1162"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/engagement/"&gt;Page Engagement Graph</span> <span class="source-line-no">1163</span><span id="line-1163"> * API type&lt;/a&gt;.</span> <span class="source-line-no">1164</span><span id="line-1164"> * </span> <span class="source-line-no">1165</span><span id="line-1165"> * The social sentence and like count used to render the like plugin</span> <span class="source-line-no">1166</span><span id="line-1166"> * </span> <span class="source-line-no">1167</span><span id="line-1167"> * @since 1.10.0</span> <span class="source-line-no">1168</span><span id="line-1168"> */</span> <span class="source-line-no">1169</span><span id="line-1169"> public static class Engagement extends AbstractFacebookType {</span> <span class="source-line-no">1170</span><span id="line-1170"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1171</span><span id="line-1171"> /**</span> <span class="source-line-no">1172</span><span id="line-1172"> * Number of people who like this.</span> <span class="source-line-no">1173</span><span id="line-1173"> * </span> <span class="source-line-no">1174</span><span id="line-1174"> */</span> <span class="source-line-no">1175</span><span id="line-1175"> @Facebook</span> <span class="source-line-no">1176</span><span id="line-1176"> private Long count;</span> <span class="source-line-no">1177</span><span id="line-1177"> /**</span> <span class="source-line-no">1178</span><span id="line-1178"> * Abbreviated string representation of count.</span> <span class="source-line-no">1179</span><span id="line-1179"> * </span> <span class="source-line-no">1180</span><span id="line-1180"> */</span> <span class="source-line-no">1181</span><span id="line-1181"> @Facebook("count_string")</span> <span class="source-line-no">1182</span><span id="line-1182"> private String countString;</span> <span class="source-line-no">1183</span><span id="line-1183"> /**</span> <span class="source-line-no">1184</span><span id="line-1184"> * Abbreviated string representation of count if the viewer likes the object.</span> <span class="source-line-no">1185</span><span id="line-1185"> * </span> <span class="source-line-no">1186</span><span id="line-1186"> */</span> <span class="source-line-no">1187</span><span id="line-1187"> @Facebook("count_string_with_like")</span> <span class="source-line-no">1188</span><span id="line-1188"> private String countStringWithLike;</span> <span class="source-line-no">1189</span><span id="line-1189"> /**</span> <span class="source-line-no">1190</span><span id="line-1190"> * Abbreviated string representation of count if the viewer does not like the object.</span> <span class="source-line-no">1191</span><span id="line-1191"> * </span> <span class="source-line-no">1192</span><span id="line-1192"> */</span> <span class="source-line-no">1193</span><span id="line-1193"> @Facebook("count_string_without_like")</span> <span class="source-line-no">1194</span><span id="line-1194"> private String countStringWithoutLike;</span> <span class="source-line-no">1195</span><span id="line-1195"> /**</span> <span class="source-line-no">1196</span><span id="line-1196"> * Text that the like button would currently display.</span> <span class="source-line-no">1197</span><span id="line-1197"> * </span> <span class="source-line-no">1198</span><span id="line-1198"> */</span> <span class="source-line-no">1199</span><span id="line-1199"> @Facebook("social_sentence")</span> <span class="source-line-no">1200</span><span id="line-1200"> private String socialSentence;</span> <span class="source-line-no">1201</span><span id="line-1201"> /**</span> <span class="source-line-no">1202</span><span id="line-1202"> * Text that the like button would display if the viewer likes the object.</span> <span class="source-line-no">1203</span><span id="line-1203"> * </span> <span class="source-line-no">1204</span><span id="line-1204"> */</span> <span class="source-line-no">1205</span><span id="line-1205"> @Facebook("social_sentence_with_like")</span> <span class="source-line-no">1206</span><span id="line-1206"> private String socialSentenceWithLike;</span> <span class="source-line-no">1207</span><span id="line-1207"> /**</span> <span class="source-line-no">1208</span><span id="line-1208"> * Text that the like button would display if the viewer does not like the object.</span> <span class="source-line-no">1209</span><span id="line-1209"> * </span> <span class="source-line-no">1210</span><span id="line-1210"> */</span> <span class="source-line-no">1211</span><span id="line-1211"> @Facebook("social_sentence_without_like")</span> <span class="source-line-no">1212</span><span id="line-1212"> private String socialSentenceWithoutLike;</span> <span class="source-line-no">1213</span><span id="line-1213"></span> <span class="source-line-no">1214</span><span id="line-1214"> /**</span> <span class="source-line-no">1215</span><span id="line-1215"> * Number of people who like this.</span> <span class="source-line-no">1216</span><span id="line-1216"> * </span> <span class="source-line-no">1217</span><span id="line-1217"> * @return Number of people who like this</span> <span class="source-line-no">1218</span><span id="line-1218"> */</span> <span class="source-line-no">1219</span><span id="line-1219"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1220</span><span id="line-1220"> public Long getCount() {</span> <span class="source-line-no">1221</span><span id="line-1221"> return this.count;</span> <span class="source-line-no">1222</span><span id="line-1222"> }</span> <span class="source-line-no">1223</span><span id="line-1223"></span> <span class="source-line-no">1224</span><span id="line-1224"> /**</span> <span class="source-line-no">1225</span><span id="line-1225"> * Number of people who like this.</span> <span class="source-line-no">1226</span><span id="line-1226"> * </span> <span class="source-line-no">1227</span><span id="line-1227"> */</span> <span class="source-line-no">1228</span><span id="line-1228"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1229</span><span id="line-1229"> public void setCount(final Long count) {</span> <span class="source-line-no">1230</span><span id="line-1230"> this.count = count;</span> <span class="source-line-no">1231</span><span id="line-1231"> }</span> <span class="source-line-no">1232</span><span id="line-1232"></span> <span class="source-line-no">1233</span><span id="line-1233"> /**</span> <span class="source-line-no">1234</span><span id="line-1234"> * Abbreviated string representation of count.</span> <span class="source-line-no">1235</span><span id="line-1235"> * </span> <span class="source-line-no">1236</span><span id="line-1236"> * @return Abbreviated string representation of count</span> <span class="source-line-no">1237</span><span id="line-1237"> */</span> <span class="source-line-no">1238</span><span id="line-1238"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1239</span><span id="line-1239"> public String getCountString() {</span> <span class="source-line-no">1240</span><span id="line-1240"> return this.countString;</span> <span class="source-line-no">1241</span><span id="line-1241"> }</span> <span class="source-line-no">1242</span><span id="line-1242"></span> <span class="source-line-no">1243</span><span id="line-1243"> /**</span> <span class="source-line-no">1244</span><span id="line-1244"> * Abbreviated string representation of count.</span> <span class="source-line-no">1245</span><span id="line-1245"> * </span> <span class="source-line-no">1246</span><span id="line-1246"> */</span> <span class="source-line-no">1247</span><span id="line-1247"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1248</span><span id="line-1248"> public void setCountString(final String countString) {</span> <span class="source-line-no">1249</span><span id="line-1249"> this.countString = countString;</span> <span class="source-line-no">1250</span><span id="line-1250"> }</span> <span class="source-line-no">1251</span><span id="line-1251"></span> <span class="source-line-no">1252</span><span id="line-1252"> /**</span> <span class="source-line-no">1253</span><span id="line-1253"> * Abbreviated string representation of count if the viewer likes the object.</span> <span class="source-line-no">1254</span><span id="line-1254"> * </span> <span class="source-line-no">1255</span><span id="line-1255"> * @return Abbreviated string representation of count if the viewer likes the object</span> <span class="source-line-no">1256</span><span id="line-1256"> */</span> <span class="source-line-no">1257</span><span id="line-1257"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1258</span><span id="line-1258"> public String getCountStringWithLike() {</span> <span class="source-line-no">1259</span><span id="line-1259"> return this.countStringWithLike;</span> <span class="source-line-no">1260</span><span id="line-1260"> }</span> <span class="source-line-no">1261</span><span id="line-1261"></span> <span class="source-line-no">1262</span><span id="line-1262"> /**</span> <span class="source-line-no">1263</span><span id="line-1263"> * Abbreviated string representation of count if the viewer likes the object.</span> <span class="source-line-no">1264</span><span id="line-1264"> * </span> <span class="source-line-no">1265</span><span id="line-1265"> */</span> <span class="source-line-no">1266</span><span id="line-1266"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1267</span><span id="line-1267"> public void setCountStringWithLike(final String countStringWithLike) {</span> <span class="source-line-no">1268</span><span id="line-1268"> this.countStringWithLike = countStringWithLike;</span> <span class="source-line-no">1269</span><span id="line-1269"> }</span> <span class="source-line-no">1270</span><span id="line-1270"></span> <span class="source-line-no">1271</span><span id="line-1271"> /**</span> <span class="source-line-no">1272</span><span id="line-1272"> * Abbreviated string representation of count if the viewer does not like the object.</span> <span class="source-line-no">1273</span><span id="line-1273"> * </span> <span class="source-line-no">1274</span><span id="line-1274"> * @return Abbreviated string representation of count if the viewer does not like the object</span> <span class="source-line-no">1275</span><span id="line-1275"> */</span> <span class="source-line-no">1276</span><span id="line-1276"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1277</span><span id="line-1277"> public String getCountStringWithoutLike() {</span> <span class="source-line-no">1278</span><span id="line-1278"> return this.countStringWithoutLike;</span> <span class="source-line-no">1279</span><span id="line-1279"> }</span> <span class="source-line-no">1280</span><span id="line-1280"></span> <span class="source-line-no">1281</span><span id="line-1281"> /**</span> <span class="source-line-no">1282</span><span id="line-1282"> * Abbreviated string representation of count if the viewer does not like the object.</span> <span class="source-line-no">1283</span><span id="line-1283"> * </span> <span class="source-line-no">1284</span><span id="line-1284"> */</span> <span class="source-line-no">1285</span><span id="line-1285"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1286</span><span id="line-1286"> public void setCountStringWithoutLike(final String countStringWithoutLike) {</span> <span class="source-line-no">1287</span><span id="line-1287"> this.countStringWithoutLike = countStringWithoutLike;</span> <span class="source-line-no">1288</span><span id="line-1288"> }</span> <span class="source-line-no">1289</span><span id="line-1289"></span> <span class="source-line-no">1290</span><span id="line-1290"> /**</span> <span class="source-line-no">1291</span><span id="line-1291"> * Text that the like button would currently display.</span> <span class="source-line-no">1292</span><span id="line-1292"> * </span> <span class="source-line-no">1293</span><span id="line-1293"> * @return Text that the like button would currently display</span> <span class="source-line-no">1294</span><span id="line-1294"> */</span> <span class="source-line-no">1295</span><span id="line-1295"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1296</span><span id="line-1296"> public String getSocialSentence() {</span> <span class="source-line-no">1297</span><span id="line-1297"> return this.socialSentence;</span> <span class="source-line-no">1298</span><span id="line-1298"> }</span> <span class="source-line-no">1299</span><span id="line-1299"></span> <span class="source-line-no">1300</span><span id="line-1300"> /**</span> <span class="source-line-no">1301</span><span id="line-1301"> * Text that the like button would currently display.</span> <span class="source-line-no">1302</span><span id="line-1302"> * </span> <span class="source-line-no">1303</span><span id="line-1303"> */</span> <span class="source-line-no">1304</span><span id="line-1304"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1305</span><span id="line-1305"> public void setSocialSentence(final String socialSentence) {</span> <span class="source-line-no">1306</span><span id="line-1306"> this.socialSentence = socialSentence;</span> <span class="source-line-no">1307</span><span id="line-1307"> }</span> <span class="source-line-no">1308</span><span id="line-1308"></span> <span class="source-line-no">1309</span><span id="line-1309"> /**</span> <span class="source-line-no">1310</span><span id="line-1310"> * Text that the like button would display if the viewer likes the object.</span> <span class="source-line-no">1311</span><span id="line-1311"> * </span> <span class="source-line-no">1312</span><span id="line-1312"> * @return Text that the like button would display if the viewer likes the object</span> <span class="source-line-no">1313</span><span id="line-1313"> */</span> <span class="source-line-no">1314</span><span id="line-1314"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1315</span><span id="line-1315"> public String getSocialSentenceWithLike() {</span> <span class="source-line-no">1316</span><span id="line-1316"> return this.socialSentenceWithLike;</span> <span class="source-line-no">1317</span><span id="line-1317"> }</span> <span class="source-line-no">1318</span><span id="line-1318"></span> <span class="source-line-no">1319</span><span id="line-1319"> /**</span> <span class="source-line-no">1320</span><span id="line-1320"> * Text that the like button would display if the viewer likes the object.</span> <span class="source-line-no">1321</span><span id="line-1321"> * </span> <span class="source-line-no">1322</span><span id="line-1322"> */</span> <span class="source-line-no">1323</span><span id="line-1323"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1324</span><span id="line-1324"> public void setSocialSentenceWithLike(final String socialSentenceWithLike) {</span> <span class="source-line-no">1325</span><span id="line-1325"> this.socialSentenceWithLike = socialSentenceWithLike;</span> <span class="source-line-no">1326</span><span id="line-1326"> }</span> <span class="source-line-no">1327</span><span id="line-1327"></span> <span class="source-line-no">1328</span><span id="line-1328"> /**</span> <span class="source-line-no">1329</span><span id="line-1329"> * Text that the like button would display if the viewer does not like the object.</span> <span class="source-line-no">1330</span><span id="line-1330"> * </span> <span class="source-line-no">1331</span><span id="line-1331"> * @return Text that the like button would display if the viewer does not like the object</span> <span class="source-line-no">1332</span><span id="line-1332"> */</span> <span class="source-line-no">1333</span><span id="line-1333"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1334</span><span id="line-1334"> public String getSocialSentenceWithoutLike() {</span> <span class="source-line-no">1335</span><span id="line-1335"> return this.socialSentenceWithoutLike;</span> <span class="source-line-no">1336</span><span id="line-1336"> }</span> <span class="source-line-no">1337</span><span id="line-1337"></span> <span class="source-line-no">1338</span><span id="line-1338"> /**</span> <span class="source-line-no">1339</span><span id="line-1339"> * Text that the like button would display if the viewer does not like the object.</span> <span class="source-line-no">1340</span><span id="line-1340"> * </span> <span class="source-line-no">1341</span><span id="line-1341"> */</span> <span class="source-line-no">1342</span><span id="line-1342"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1343</span><span id="line-1343"> public void setSocialSentenceWithoutLike(final String socialSentenceWithoutLike) {</span> <span class="source-line-no">1344</span><span id="line-1344"> this.socialSentenceWithoutLike = socialSentenceWithoutLike;</span> <span class="source-line-no">1345</span><span id="line-1345"> }</span> <span class="source-line-no">1346</span><span id="line-1346"> }</span> <span class="source-line-no">1347</span><span id="line-1347"></span> <span class="source-line-no">1348</span><span id="line-1348"></span> <span class="source-line-no">1349</span><span id="line-1349"> /**</span> <span class="source-line-no">1350</span><span id="line-1350"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/voip-info/"&gt;VOIP Info Graph API</span> <span class="source-line-no">1351</span><span id="line-1351"> * type&lt;/a&gt;.</span> <span class="source-line-no">1352</span><span id="line-1352"> * </span> <span class="source-line-no">1353</span><span id="line-1353"> * @since 1.10.0</span> <span class="source-line-no">1354</span><span id="line-1354"> */</span> <span class="source-line-no">1355</span><span id="line-1355"> public static class VoipInfo extends AbstractFacebookType {</span> <span class="source-line-no">1356</span><span id="line-1356"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1357</span><span id="line-1357"> @Facebook("has_permission")</span> <span class="source-line-no">1358</span><span id="line-1358"> private Boolean hasPermission;</span> <span class="source-line-no">1359</span><span id="line-1359"> @Facebook("has_mobile_app")</span> <span class="source-line-no">1360</span><span id="line-1360"> private Boolean hasMobileApp;</span> <span class="source-line-no">1361</span><span id="line-1361"> @Facebook("is_pushable")</span> <span class="source-line-no">1362</span><span id="line-1362"> private Boolean isPushable;</span> <span class="source-line-no">1363</span><span id="line-1363"> @Facebook("is_callable")</span> <span class="source-line-no">1364</span><span id="line-1364"> private Boolean isCallable;</span> <span class="source-line-no">1365</span><span id="line-1365"> @Facebook("is_callable_webrtc")</span> <span class="source-line-no">1366</span><span id="line-1366"> private Boolean isCallableWebrtc;</span> <span class="source-line-no">1367</span><span id="line-1367"> @Facebook("reason_code")</span> <span class="source-line-no">1368</span><span id="line-1368"> private Long reasonCode;</span> <span class="source-line-no">1369</span><span id="line-1369"> @Facebook("reason_description")</span> <span class="source-line-no">1370</span><span id="line-1370"> private String reasonDescription;</span> <span class="source-line-no">1371</span><span id="line-1371"></span> <span class="source-line-no">1372</span><span id="line-1372"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1373</span><span id="line-1373"> public Boolean getHasPermission() {</span> <span class="source-line-no">1374</span><span id="line-1374"> return this.hasPermission;</span> <span class="source-line-no">1375</span><span id="line-1375"> }</span> <span class="source-line-no">1376</span><span id="line-1376"></span> <span class="source-line-no">1377</span><span id="line-1377"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1378</span><span id="line-1378"> public void setHasPermission(final Boolean hasPermission) {</span> <span class="source-line-no">1379</span><span id="line-1379"> this.hasPermission = hasPermission;</span> <span class="source-line-no">1380</span><span id="line-1380"> }</span> <span class="source-line-no">1381</span><span id="line-1381"></span> <span class="source-line-no">1382</span><span id="line-1382"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1383</span><span id="line-1383"> public Boolean getHasMobileApp() {</span> <span class="source-line-no">1384</span><span id="line-1384"> return this.hasMobileApp;</span> <span class="source-line-no">1385</span><span id="line-1385"> }</span> <span class="source-line-no">1386</span><span id="line-1386"></span> <span class="source-line-no">1387</span><span id="line-1387"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1388</span><span id="line-1388"> public void setHasMobileApp(final Boolean hasMobileApp) {</span> <span class="source-line-no">1389</span><span id="line-1389"> this.hasMobileApp = hasMobileApp;</span> <span class="source-line-no">1390</span><span id="line-1390"> }</span> <span class="source-line-no">1391</span><span id="line-1391"></span> <span class="source-line-no">1392</span><span id="line-1392"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1393</span><span id="line-1393"> public Boolean getIsPushable() {</span> <span class="source-line-no">1394</span><span id="line-1394"> return this.isPushable;</span> <span class="source-line-no">1395</span><span id="line-1395"> }</span> <span class="source-line-no">1396</span><span id="line-1396"></span> <span class="source-line-no">1397</span><span id="line-1397"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1398</span><span id="line-1398"> public void setIsPushable(final Boolean isPushable) {</span> <span class="source-line-no">1399</span><span id="line-1399"> this.isPushable = isPushable;</span> <span class="source-line-no">1400</span><span id="line-1400"> }</span> <span class="source-line-no">1401</span><span id="line-1401"></span> <span class="source-line-no">1402</span><span id="line-1402"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1403</span><span id="line-1403"> public Boolean getIsCallable() {</span> <span class="source-line-no">1404</span><span id="line-1404"> return this.isCallable;</span> <span class="source-line-no">1405</span><span id="line-1405"> }</span> <span class="source-line-no">1406</span><span id="line-1406"></span> <span class="source-line-no">1407</span><span id="line-1407"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1408</span><span id="line-1408"> public void setIsCallable(final Boolean isCallable) {</span> <span class="source-line-no">1409</span><span id="line-1409"> this.isCallable = isCallable;</span> <span class="source-line-no">1410</span><span id="line-1410"> }</span> <span class="source-line-no">1411</span><span id="line-1411"></span> <span class="source-line-no">1412</span><span id="line-1412"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1413</span><span id="line-1413"> public Boolean getIsCallableWebrtc() {</span> <span class="source-line-no">1414</span><span id="line-1414"> return this.isCallableWebrtc;</span> <span class="source-line-no">1415</span><span id="line-1415"> }</span> <span class="source-line-no">1416</span><span id="line-1416"></span> <span class="source-line-no">1417</span><span id="line-1417"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1418</span><span id="line-1418"> public void setIsCallableWebrtc(final Boolean isCallableWebrtc) {</span> <span class="source-line-no">1419</span><span id="line-1419"> this.isCallableWebrtc = isCallableWebrtc;</span> <span class="source-line-no">1420</span><span id="line-1420"> }</span> <span class="source-line-no">1421</span><span id="line-1421"></span> <span class="source-line-no">1422</span><span id="line-1422"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1423</span><span id="line-1423"> public Long getReasonCode() {</span> <span class="source-line-no">1424</span><span id="line-1424"> return this.reasonCode;</span> <span class="source-line-no">1425</span><span id="line-1425"> }</span> <span class="source-line-no">1426</span><span id="line-1426"></span> <span class="source-line-no">1427</span><span id="line-1427"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1428</span><span id="line-1428"> public void setReasonCode(final Long reasonCode) {</span> <span class="source-line-no">1429</span><span id="line-1429"> this.reasonCode = reasonCode;</span> <span class="source-line-no">1430</span><span id="line-1430"> }</span> <span class="source-line-no">1431</span><span id="line-1431"></span> <span class="source-line-no">1432</span><span id="line-1432"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1433</span><span id="line-1433"> public String getReasonDescription() {</span> <span class="source-line-no">1434</span><span id="line-1434"> return this.reasonDescription;</span> <span class="source-line-no">1435</span><span id="line-1435"> }</span> <span class="source-line-no">1436</span><span id="line-1436"></span> <span class="source-line-no">1437</span><span id="line-1437"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1438</span><span id="line-1438"> public void setReasonDescription(final String reasonDescription) {</span> <span class="source-line-no">1439</span><span id="line-1439"> this.reasonDescription = reasonDescription;</span> <span class="source-line-no">1440</span><span id="line-1440"> }</span> <span class="source-line-no">1441</span><span id="line-1441"> }</span> <span class="source-line-no">1442</span><span id="line-1442"></span> <span class="source-line-no">1443</span><span id="line-1443"></span> <span class="source-line-no">1444</span><span id="line-1444"> /**</span> <span class="source-line-no">1445</span><span id="line-1445"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page-start-info/"&gt;Page Start Info</span> <span class="source-line-no">1446</span><span id="line-1446"> * Graph API type&lt;/a&gt;.</span> <span class="source-line-no">1447</span><span id="line-1447"> * </span> <span class="source-line-no">1448</span><span id="line-1448"> * @since 1.10.0</span> <span class="source-line-no">1449</span><span id="line-1449"> */</span> <span class="source-line-no">1450</span><span id="line-1450"> public static class PageStartInfo extends AbstractFacebookType {</span> <span class="source-line-no">1451</span><span id="line-1451"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1452</span><span id="line-1452"> @Facebook</span> <span class="source-line-no">1453</span><span id="line-1453"> private String type;</span> <span class="source-line-no">1454</span><span id="line-1454"> @Facebook</span> <span class="source-line-no">1455</span><span id="line-1455"> private PageStartDate date;</span> <span class="source-line-no">1456</span><span id="line-1456"></span> <span class="source-line-no">1457</span><span id="line-1457"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1458</span><span id="line-1458"> public String getType() {</span> <span class="source-line-no">1459</span><span id="line-1459"> return this.type;</span> <span class="source-line-no">1460</span><span id="line-1460"> }</span> <span class="source-line-no">1461</span><span id="line-1461"></span> <span class="source-line-no">1462</span><span id="line-1462"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1463</span><span id="line-1463"> public void setType(final String type) {</span> <span class="source-line-no">1464</span><span id="line-1464"> this.type = type;</span> <span class="source-line-no">1465</span><span id="line-1465"> }</span> <span class="source-line-no">1466</span><span id="line-1466"></span> <span class="source-line-no">1467</span><span id="line-1467"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1468</span><span id="line-1468"> public PageStartDate getDate() {</span> <span class="source-line-no">1469</span><span id="line-1469"> return this.date;</span> <span class="source-line-no">1470</span><span id="line-1470"> }</span> <span class="source-line-no">1471</span><span id="line-1471"></span> <span class="source-line-no">1472</span><span id="line-1472"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1473</span><span id="line-1473"> public void setDate(final PageStartDate date) {</span> <span class="source-line-no">1474</span><span id="line-1474"> this.date = date;</span> <span class="source-line-no">1475</span><span id="line-1475"> }</span> <span class="source-line-no">1476</span><span id="line-1476"> }</span> <span class="source-line-no">1477</span><span id="line-1477"></span> <span class="source-line-no">1478</span><span id="line-1478"></span> <span class="source-line-no">1479</span><span id="line-1479"> public static class PageStartDate extends AbstractFacebookType {</span> <span class="source-line-no">1480</span><span id="line-1480"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1481</span><span id="line-1481"> @Facebook</span> <span class="source-line-no">1482</span><span id="line-1482"> private Integer year;</span> <span class="source-line-no">1483</span><span id="line-1483"> @Facebook</span> <span class="source-line-no">1484</span><span id="line-1484"> private Integer month;</span> <span class="source-line-no">1485</span><span id="line-1485"> @Facebook</span> <span class="source-line-no">1486</span><span id="line-1486"> private Integer day;</span> <span class="source-line-no">1487</span><span id="line-1487"></span> <span class="source-line-no">1488</span><span id="line-1488"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1489</span><span id="line-1489"> public Integer getYear() {</span> <span class="source-line-no">1490</span><span id="line-1490"> return this.year;</span> <span class="source-line-no">1491</span><span id="line-1491"> }</span> <span class="source-line-no">1492</span><span id="line-1492"></span> <span class="source-line-no">1493</span><span id="line-1493"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1494</span><span id="line-1494"> public void setYear(final Integer year) {</span> <span class="source-line-no">1495</span><span id="line-1495"> this.year = year;</span> <span class="source-line-no">1496</span><span id="line-1496"> }</span> <span class="source-line-no">1497</span><span id="line-1497"></span> <span class="source-line-no">1498</span><span id="line-1498"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1499</span><span id="line-1499"> public Integer getMonth() {</span> <span class="source-line-no">1500</span><span id="line-1500"> return this.month;</span> <span class="source-line-no">1501</span><span id="line-1501"> }</span> <span class="source-line-no">1502</span><span id="line-1502"></span> <span class="source-line-no">1503</span><span id="line-1503"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1504</span><span id="line-1504"> public void setMonth(final Integer month) {</span> <span class="source-line-no">1505</span><span id="line-1505"> this.month = month;</span> <span class="source-line-no">1506</span><span id="line-1506"> }</span> <span class="source-line-no">1507</span><span id="line-1507"></span> <span class="source-line-no">1508</span><span id="line-1508"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1509</span><span id="line-1509"> public Integer getDay() {</span> <span class="source-line-no">1510</span><span id="line-1510"> return this.day;</span> <span class="source-line-no">1511</span><span id="line-1511"> }</span> <span class="source-line-no">1512</span><span id="line-1512"></span> <span class="source-line-no">1513</span><span id="line-1513"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1514</span><span id="line-1514"> public void setDay(final Integer day) {</span> <span class="source-line-no">1515</span><span id="line-1515"> this.day = day;</span> <span class="source-line-no">1516</span><span id="line-1516"> }</span> <span class="source-line-no">1517</span><span id="line-1517"> }</span> <span class="source-line-no">1518</span><span id="line-1518"></span> <span class="source-line-no">1519</span><span id="line-1519"></span> <span class="source-line-no">1520</span><span id="line-1520"> /**</span> <span class="source-line-no">1521</span><span id="line-1521"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page-payment-options/"&gt;Page</span> <span class="source-line-no">1522</span><span id="line-1522"> * Payment Options Graph API type&lt;/a&gt;.</span> <span class="source-line-no">1523</span><span id="line-1523"> * </span> <span class="source-line-no">1524</span><span id="line-1524"> * @since 1.10.0</span> <span class="source-line-no">1525</span><span id="line-1525"> */</span> <span class="source-line-no">1526</span><span id="line-1526"> public static class PagePaymentOptions extends AbstractFacebookType {</span> <span class="source-line-no">1527</span><span id="line-1527"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1528</span><span id="line-1528"> /**</span> <span class="source-line-no">1529</span><span id="line-1529"> * Whether the business accepts American Express as a payment option.</span> <span class="source-line-no">1530</span><span id="line-1530"> */</span> <span class="source-line-no">1531</span><span id="line-1531"> @Facebook</span> <span class="source-line-no">1532</span><span id="line-1532"> private Boolean amex;</span> <span class="source-line-no">1533</span><span id="line-1533"> /**</span> <span class="source-line-no">1534</span><span id="line-1534"> * Whether the business accepts cash only as a payment option.</span> <span class="source-line-no">1535</span><span id="line-1535"> */</span> <span class="source-line-no">1536</span><span id="line-1536"> @Facebook("cash_only")</span> <span class="source-line-no">1537</span><span id="line-1537"> private Boolean cashOnly;</span> <span class="source-line-no">1538</span><span id="line-1538"> /**</span> <span class="source-line-no">1539</span><span id="line-1539"> * Whether the business accepts Discover as a payment option.</span> <span class="source-line-no">1540</span><span id="line-1540"> */</span> <span class="source-line-no">1541</span><span id="line-1541"> @Facebook</span> <span class="source-line-no">1542</span><span id="line-1542"> private Boolean discover;</span> <span class="source-line-no">1543</span><span id="line-1543"> /**</span> <span class="source-line-no">1544</span><span id="line-1544"> * Whether the business accepts MasterCard as a payment option.</span> <span class="source-line-no">1545</span><span id="line-1545"> */</span> <span class="source-line-no">1546</span><span id="line-1546"> @Facebook</span> <span class="source-line-no">1547</span><span id="line-1547"> private Boolean mastercard;</span> <span class="source-line-no">1548</span><span id="line-1548"> /**</span> <span class="source-line-no">1549</span><span id="line-1549"> * Whether the business accepts Visa as a payment option.</span> <span class="source-line-no">1550</span><span id="line-1550"> */</span> <span class="source-line-no">1551</span><span id="line-1551"> @Facebook</span> <span class="source-line-no">1552</span><span id="line-1552"> private Boolean visa;</span> <span class="source-line-no">1553</span><span id="line-1553"></span> <span class="source-line-no">1554</span><span id="line-1554"> /**</span> <span class="source-line-no">1555</span><span id="line-1555"> * Whether the business accepts American Express as a payment option.</span> <span class="source-line-no">1556</span><span id="line-1556"> */</span> <span class="source-line-no">1557</span><span id="line-1557"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1558</span><span id="line-1558"> public Boolean getAmex() {</span> <span class="source-line-no">1559</span><span id="line-1559"> return this.amex;</span> <span class="source-line-no">1560</span><span id="line-1560"> }</span> <span class="source-line-no">1561</span><span id="line-1561"></span> <span class="source-line-no">1562</span><span id="line-1562"> /**</span> <span class="source-line-no">1563</span><span id="line-1563"> * Whether the business accepts American Express as a payment option.</span> <span class="source-line-no">1564</span><span id="line-1564"> */</span> <span class="source-line-no">1565</span><span id="line-1565"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1566</span><span id="line-1566"> public void setAmex(final Boolean amex) {</span> <span class="source-line-no">1567</span><span id="line-1567"> this.amex = amex;</span> <span class="source-line-no">1568</span><span id="line-1568"> }</span> <span class="source-line-no">1569</span><span id="line-1569"></span> <span class="source-line-no">1570</span><span id="line-1570"> /**</span> <span class="source-line-no">1571</span><span id="line-1571"> * Whether the business accepts cash only as a payment option.</span> <span class="source-line-no">1572</span><span id="line-1572"> */</span> <span class="source-line-no">1573</span><span id="line-1573"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1574</span><span id="line-1574"> public Boolean getCashOnly() {</span> <span class="source-line-no">1575</span><span id="line-1575"> return this.cashOnly;</span> <span class="source-line-no">1576</span><span id="line-1576"> }</span> <span class="source-line-no">1577</span><span id="line-1577"></span> <span class="source-line-no">1578</span><span id="line-1578"> /**</span> <span class="source-line-no">1579</span><span id="line-1579"> * Whether the business accepts cash only as a payment option.</span> <span class="source-line-no">1580</span><span id="line-1580"> */</span> <span class="source-line-no">1581</span><span id="line-1581"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1582</span><span id="line-1582"> public void setCashOnly(final Boolean cashOnly) {</span> <span class="source-line-no">1583</span><span id="line-1583"> this.cashOnly = cashOnly;</span> <span class="source-line-no">1584</span><span id="line-1584"> }</span> <span class="source-line-no">1585</span><span id="line-1585"></span> <span class="source-line-no">1586</span><span id="line-1586"> /**</span> <span class="source-line-no">1587</span><span id="line-1587"> * Whether the business accepts Discover as a payment option.</span> <span class="source-line-no">1588</span><span id="line-1588"> */</span> <span class="source-line-no">1589</span><span id="line-1589"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1590</span><span id="line-1590"> public Boolean getDiscover() {</span> <span class="source-line-no">1591</span><span id="line-1591"> return this.discover;</span> <span class="source-line-no">1592</span><span id="line-1592"> }</span> <span class="source-line-no">1593</span><span id="line-1593"></span> <span class="source-line-no">1594</span><span id="line-1594"> /**</span> <span class="source-line-no">1595</span><span id="line-1595"> * Whether the business accepts Discover as a payment option.</span> <span class="source-line-no">1596</span><span id="line-1596"> */</span> <span class="source-line-no">1597</span><span id="line-1597"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1598</span><span id="line-1598"> public void setDiscover(final Boolean discover) {</span> <span class="source-line-no">1599</span><span id="line-1599"> this.discover = discover;</span> <span class="source-line-no">1600</span><span id="line-1600"> }</span> <span class="source-line-no">1601</span><span id="line-1601"></span> <span class="source-line-no">1602</span><span id="line-1602"> /**</span> <span class="source-line-no">1603</span><span id="line-1603"> * Whether the business accepts MasterCard as a payment option.</span> <span class="source-line-no">1604</span><span id="line-1604"> */</span> <span class="source-line-no">1605</span><span id="line-1605"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1606</span><span id="line-1606"> public Boolean getMastercard() {</span> <span class="source-line-no">1607</span><span id="line-1607"> return this.mastercard;</span> <span class="source-line-no">1608</span><span id="line-1608"> }</span> <span class="source-line-no">1609</span><span id="line-1609"></span> <span class="source-line-no">1610</span><span id="line-1610"> /**</span> <span class="source-line-no">1611</span><span id="line-1611"> * Whether the business accepts MasterCard as a payment option.</span> <span class="source-line-no">1612</span><span id="line-1612"> */</span> <span class="source-line-no">1613</span><span id="line-1613"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1614</span><span id="line-1614"> public void setMastercard(final Boolean mastercard) {</span> <span class="source-line-no">1615</span><span id="line-1615"> this.mastercard = mastercard;</span> <span class="source-line-no">1616</span><span id="line-1616"> }</span> <span class="source-line-no">1617</span><span id="line-1617"></span> <span class="source-line-no">1618</span><span id="line-1618"> /**</span> <span class="source-line-no">1619</span><span id="line-1619"> * Whether the business accepts Visa as a payment option.</span> <span class="source-line-no">1620</span><span id="line-1620"> */</span> <span class="source-line-no">1621</span><span id="line-1621"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1622</span><span id="line-1622"> public Boolean getVisa() {</span> <span class="source-line-no">1623</span><span id="line-1623"> return this.visa;</span> <span class="source-line-no">1624</span><span id="line-1624"> }</span> <span class="source-line-no">1625</span><span id="line-1625"></span> <span class="source-line-no">1626</span><span id="line-1626"> /**</span> <span class="source-line-no">1627</span><span id="line-1627"> * Whether the business accepts Visa as a payment option.</span> <span class="source-line-no">1628</span><span id="line-1628"> */</span> <span class="source-line-no">1629</span><span id="line-1629"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1630</span><span id="line-1630"> public void setVisa(final Boolean visa) {</span> <span class="source-line-no">1631</span><span id="line-1631"> this.visa = visa;</span> <span class="source-line-no">1632</span><span id="line-1632"> }</span> <span class="source-line-no">1633</span><span id="line-1633"> }</span> <span class="source-line-no">1634</span><span id="line-1634"></span> <span class="source-line-no">1635</span><span id="line-1635"></span> <span class="source-line-no">1636</span><span id="line-1636"> /**</span> <span class="source-line-no">1637</span><span id="line-1637"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page-restaurant-services/"&gt;Page</span> <span class="source-line-no">1638</span><span id="line-1638"> * Restaurant Services Graph API type&lt;/a&gt;.</span> <span class="source-line-no">1639</span><span id="line-1639"> * </span> <span class="source-line-no">1640</span><span id="line-1640"> * @since 1.10.0</span> <span class="source-line-no">1641</span><span id="line-1641"> */</span> <span class="source-line-no">1642</span><span id="line-1642"> public static class PageRestaurantServices extends AbstractFacebookType {</span> <span class="source-line-no">1643</span><span id="line-1643"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1644</span><span id="line-1644"> @Facebook</span> <span class="source-line-no">1645</span><span id="line-1645"> private Boolean catering;</span> <span class="source-line-no">1646</span><span id="line-1646"> @Facebook</span> <span class="source-line-no">1647</span><span id="line-1647"> private Boolean delivery;</span> <span class="source-line-no">1648</span><span id="line-1648"> @Facebook</span> <span class="source-line-no">1649</span><span id="line-1649"> private Boolean groups;</span> <span class="source-line-no">1650</span><span id="line-1650"> @Facebook</span> <span class="source-line-no">1651</span><span id="line-1651"> private Boolean kids;</span> <span class="source-line-no">1652</span><span id="line-1652"> @Facebook</span> <span class="source-line-no">1653</span><span id="line-1653"> private Boolean outdoor;</span> <span class="source-line-no">1654</span><span id="line-1654"> @Facebook</span> <span class="source-line-no">1655</span><span id="line-1655"> private Boolean reserve;</span> <span class="source-line-no">1656</span><span id="line-1656"> @Facebook</span> <span class="source-line-no">1657</span><span id="line-1657"> private Boolean takeout;</span> <span class="source-line-no">1658</span><span id="line-1658"> @Facebook</span> <span class="source-line-no">1659</span><span id="line-1659"> private Boolean waiter;</span> <span class="source-line-no">1660</span><span id="line-1660"> @Facebook</span> <span class="source-line-no">1661</span><span id="line-1661"> private Boolean walkins;</span> <span class="source-line-no">1662</span><span id="line-1662"></span> <span class="source-line-no">1663</span><span id="line-1663"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1664</span><span id="line-1664"> public Boolean getCatering() {</span> <span class="source-line-no">1665</span><span id="line-1665"> return this.catering;</span> <span class="source-line-no">1666</span><span id="line-1666"> }</span> <span class="source-line-no">1667</span><span id="line-1667"></span> <span class="source-line-no">1668</span><span id="line-1668"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1669</span><span id="line-1669"> public void setCatering(final Boolean catering) {</span> <span class="source-line-no">1670</span><span id="line-1670"> this.catering = catering;</span> <span class="source-line-no">1671</span><span id="line-1671"> }</span> <span class="source-line-no">1672</span><span id="line-1672"></span> <span class="source-line-no">1673</span><span id="line-1673"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1674</span><span id="line-1674"> public Boolean getDelivery() {</span> <span class="source-line-no">1675</span><span id="line-1675"> return this.delivery;</span> <span class="source-line-no">1676</span><span id="line-1676"> }</span> <span class="source-line-no">1677</span><span id="line-1677"></span> <span class="source-line-no">1678</span><span id="line-1678"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1679</span><span id="line-1679"> public void setDelivery(final Boolean delivery) {</span> <span class="source-line-no">1680</span><span id="line-1680"> this.delivery = delivery;</span> <span class="source-line-no">1681</span><span id="line-1681"> }</span> <span class="source-line-no">1682</span><span id="line-1682"></span> <span class="source-line-no">1683</span><span id="line-1683"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1684</span><span id="line-1684"> public Boolean getGroups() {</span> <span class="source-line-no">1685</span><span id="line-1685"> return this.groups;</span> <span class="source-line-no">1686</span><span id="line-1686"> }</span> <span class="source-line-no">1687</span><span id="line-1687"></span> <span class="source-line-no">1688</span><span id="line-1688"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1689</span><span id="line-1689"> public void setGroups(final Boolean groups) {</span> <span class="source-line-no">1690</span><span id="line-1690"> this.groups = groups;</span> <span class="source-line-no">1691</span><span id="line-1691"> }</span> <span class="source-line-no">1692</span><span id="line-1692"></span> <span class="source-line-no">1693</span><span id="line-1693"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1694</span><span id="line-1694"> public Boolean getKids() {</span> <span class="source-line-no">1695</span><span id="line-1695"> return this.kids;</span> <span class="source-line-no">1696</span><span id="line-1696"> }</span> <span class="source-line-no">1697</span><span id="line-1697"></span> <span class="source-line-no">1698</span><span id="line-1698"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1699</span><span id="line-1699"> public void setKids(final Boolean kids) {</span> <span class="source-line-no">1700</span><span id="line-1700"> this.kids = kids;</span> <span class="source-line-no">1701</span><span id="line-1701"> }</span> <span class="source-line-no">1702</span><span id="line-1702"></span> <span class="source-line-no">1703</span><span id="line-1703"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1704</span><span id="line-1704"> public Boolean getOutdoor() {</span> <span class="source-line-no">1705</span><span id="line-1705"> return this.outdoor;</span> <span class="source-line-no">1706</span><span id="line-1706"> }</span> <span class="source-line-no">1707</span><span id="line-1707"></span> <span class="source-line-no">1708</span><span id="line-1708"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1709</span><span id="line-1709"> public void setOutdoor(final Boolean outdoor) {</span> <span class="source-line-no">1710</span><span id="line-1710"> this.outdoor = outdoor;</span> <span class="source-line-no">1711</span><span id="line-1711"> }</span> <span class="source-line-no">1712</span><span id="line-1712"></span> <span class="source-line-no">1713</span><span id="line-1713"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1714</span><span id="line-1714"> public Boolean getReserve() {</span> <span class="source-line-no">1715</span><span id="line-1715"> return this.reserve;</span> <span class="source-line-no">1716</span><span id="line-1716"> }</span> <span class="source-line-no">1717</span><span id="line-1717"></span> <span class="source-line-no">1718</span><span id="line-1718"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1719</span><span id="line-1719"> public void setReserve(final Boolean reserve) {</span> <span class="source-line-no">1720</span><span id="line-1720"> this.reserve = reserve;</span> <span class="source-line-no">1721</span><span id="line-1721"> }</span> <span class="source-line-no">1722</span><span id="line-1722"></span> <span class="source-line-no">1723</span><span id="line-1723"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1724</span><span id="line-1724"> public Boolean getTakeout() {</span> <span class="source-line-no">1725</span><span id="line-1725"> return this.takeout;</span> <span class="source-line-no">1726</span><span id="line-1726"> }</span> <span class="source-line-no">1727</span><span id="line-1727"></span> <span class="source-line-no">1728</span><span id="line-1728"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1729</span><span id="line-1729"> public void setTakeout(final Boolean takeout) {</span> <span class="source-line-no">1730</span><span id="line-1730"> this.takeout = takeout;</span> <span class="source-line-no">1731</span><span id="line-1731"> }</span> <span class="source-line-no">1732</span><span id="line-1732"></span> <span class="source-line-no">1733</span><span id="line-1733"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1734</span><span id="line-1734"> public Boolean getWaiter() {</span> <span class="source-line-no">1735</span><span id="line-1735"> return this.waiter;</span> <span class="source-line-no">1736</span><span id="line-1736"> }</span> <span class="source-line-no">1737</span><span id="line-1737"></span> <span class="source-line-no">1738</span><span id="line-1738"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1739</span><span id="line-1739"> public void setWaiter(final Boolean waiter) {</span> <span class="source-line-no">1740</span><span id="line-1740"> this.waiter = waiter;</span> <span class="source-line-no">1741</span><span id="line-1741"> }</span> <span class="source-line-no">1742</span><span id="line-1742"></span> <span class="source-line-no">1743</span><span id="line-1743"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1744</span><span id="line-1744"> public Boolean getWalkins() {</span> <span class="source-line-no">1745</span><span id="line-1745"> return this.walkins;</span> <span class="source-line-no">1746</span><span id="line-1746"> }</span> <span class="source-line-no">1747</span><span id="line-1747"></span> <span class="source-line-no">1748</span><span id="line-1748"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1749</span><span id="line-1749"> public void setWalkins(final Boolean walkins) {</span> <span class="source-line-no">1750</span><span id="line-1750"> this.walkins = walkins;</span> <span class="source-line-no">1751</span><span id="line-1751"> }</span> <span class="source-line-no">1752</span><span id="line-1752"> }</span> <span class="source-line-no">1753</span><span id="line-1753"></span> <span class="source-line-no">1754</span><span id="line-1754"></span> <span class="source-line-no">1755</span><span id="line-1755"> /**</span> <span class="source-line-no">1756</span><span id="line-1756"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page-restaurant-specialties/"&gt;Page</span> <span class="source-line-no">1757</span><span id="line-1757"> * Restaurant Specialties Graph API type&lt;/a&gt;.</span> <span class="source-line-no">1758</span><span id="line-1758"> * </span> <span class="source-line-no">1759</span><span id="line-1759"> * @since 1.10.0</span> <span class="source-line-no">1760</span><span id="line-1760"> */</span> <span class="source-line-no">1761</span><span id="line-1761"> public static class PageRestaurantSpecialties extends AbstractFacebookType {</span> <span class="source-line-no">1762</span><span id="line-1762"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1763</span><span id="line-1763"> @Facebook</span> <span class="source-line-no">1764</span><span id="line-1764"> private Boolean breakfast;</span> <span class="source-line-no">1765</span><span id="line-1765"> @Facebook</span> <span class="source-line-no">1766</span><span id="line-1766"> private Boolean coffee;</span> <span class="source-line-no">1767</span><span id="line-1767"> @Facebook</span> <span class="source-line-no">1768</span><span id="line-1768"> private Boolean dinner;</span> <span class="source-line-no">1769</span><span id="line-1769"> @Facebook</span> <span class="source-line-no">1770</span><span id="line-1770"> private Boolean drinks;</span> <span class="source-line-no">1771</span><span id="line-1771"> @Facebook</span> <span class="source-line-no">1772</span><span id="line-1772"> private Boolean lunch;</span> <span class="source-line-no">1773</span><span id="line-1773"></span> <span class="source-line-no">1774</span><span id="line-1774"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1775</span><span id="line-1775"> public Boolean getBreakfast() {</span> <span class="source-line-no">1776</span><span id="line-1776"> return this.breakfast;</span> <span class="source-line-no">1777</span><span id="line-1777"> }</span> <span class="source-line-no">1778</span><span id="line-1778"></span> <span class="source-line-no">1779</span><span id="line-1779"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1780</span><span id="line-1780"> public void setBreakfast(final Boolean breakfast) {</span> <span class="source-line-no">1781</span><span id="line-1781"> this.breakfast = breakfast;</span> <span class="source-line-no">1782</span><span id="line-1782"> }</span> <span class="source-line-no">1783</span><span id="line-1783"></span> <span class="source-line-no">1784</span><span id="line-1784"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1785</span><span id="line-1785"> public Boolean getCoffee() {</span> <span class="source-line-no">1786</span><span id="line-1786"> return this.coffee;</span> <span class="source-line-no">1787</span><span id="line-1787"> }</span> <span class="source-line-no">1788</span><span id="line-1788"></span> <span class="source-line-no">1789</span><span id="line-1789"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1790</span><span id="line-1790"> public void setCoffee(final Boolean coffee) {</span> <span class="source-line-no">1791</span><span id="line-1791"> this.coffee = coffee;</span> <span class="source-line-no">1792</span><span id="line-1792"> }</span> <span class="source-line-no">1793</span><span id="line-1793"></span> <span class="source-line-no">1794</span><span id="line-1794"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1795</span><span id="line-1795"> public Boolean getDinner() {</span> <span class="source-line-no">1796</span><span id="line-1796"> return this.dinner;</span> <span class="source-line-no">1797</span><span id="line-1797"> }</span> <span class="source-line-no">1798</span><span id="line-1798"></span> <span class="source-line-no">1799</span><span id="line-1799"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1800</span><span id="line-1800"> public void setDinner(final Boolean dinner) {</span> <span class="source-line-no">1801</span><span id="line-1801"> this.dinner = dinner;</span> <span class="source-line-no">1802</span><span id="line-1802"> }</span> <span class="source-line-no">1803</span><span id="line-1803"></span> <span class="source-line-no">1804</span><span id="line-1804"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1805</span><span id="line-1805"> public Boolean getDrinks() {</span> <span class="source-line-no">1806</span><span id="line-1806"> return this.drinks;</span> <span class="source-line-no">1807</span><span id="line-1807"> }</span> <span class="source-line-no">1808</span><span id="line-1808"></span> <span class="source-line-no">1809</span><span id="line-1809"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1810</span><span id="line-1810"> public void setDrinks(final Boolean drinks) {</span> <span class="source-line-no">1811</span><span id="line-1811"> this.drinks = drinks;</span> <span class="source-line-no">1812</span><span id="line-1812"> }</span> <span class="source-line-no">1813</span><span id="line-1813"></span> <span class="source-line-no">1814</span><span id="line-1814"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1815</span><span id="line-1815"> public Boolean getLunch() {</span> <span class="source-line-no">1816</span><span id="line-1816"> return this.lunch;</span> <span class="source-line-no">1817</span><span id="line-1817"> }</span> <span class="source-line-no">1818</span><span id="line-1818"></span> <span class="source-line-no">1819</span><span id="line-1819"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1820</span><span id="line-1820"> public void setLunch(final Boolean lunch) {</span> <span class="source-line-no">1821</span><span id="line-1821"> this.lunch = lunch;</span> <span class="source-line-no">1822</span><span id="line-1822"> }</span> <span class="source-line-no">1823</span><span id="line-1823"> }</span> <span class="source-line-no">1824</span><span id="line-1824"></span> <span class="source-line-no">1825</span><span id="line-1825"></span> <span class="source-line-no">1826</span><span id="line-1826"> /**</span> <span class="source-line-no">1827</span><span id="line-1827"> * Parking options for a Page. Useful for Facebook Pages that have a business with parking.</span> <span class="source-line-no">1828</span><span id="line-1828"> */</span> <span class="source-line-no">1829</span><span id="line-1829"> public static class PageParking extends AbstractFacebookType {</span> <span class="source-line-no">1830</span><span id="line-1830"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1831</span><span id="line-1831"> /**</span> <span class="source-line-no">1832</span><span id="line-1832"> * Whether lot parking is available</span> <span class="source-line-no">1833</span><span id="line-1833"> */</span> <span class="source-line-no">1834</span><span id="line-1834"> @Facebook</span> <span class="source-line-no">1835</span><span id="line-1835"> private Boolean lot;</span> <span class="source-line-no">1836</span><span id="line-1836"> /**</span> <span class="source-line-no">1837</span><span id="line-1837"> * Whether street parking is available</span> <span class="source-line-no">1838</span><span id="line-1838"> */</span> <span class="source-line-no">1839</span><span id="line-1839"> @Facebook</span> <span class="source-line-no">1840</span><span id="line-1840"> private Boolean street;</span> <span class="source-line-no">1841</span><span id="line-1841"> /**</span> <span class="source-line-no">1842</span><span id="line-1842"> * Whether valet parking is available</span> <span class="source-line-no">1843</span><span id="line-1843"> */</span> <span class="source-line-no">1844</span><span id="line-1844"> @Facebook</span> <span class="source-line-no">1845</span><span id="line-1845"> private Boolean valet;</span> <span class="source-line-no">1846</span><span id="line-1846"></span> <span class="source-line-no">1847</span><span id="line-1847"> /**</span> <span class="source-line-no">1848</span><span id="line-1848"> * Whether lot parking is available</span> <span class="source-line-no">1849</span><span id="line-1849"> */</span> <span class="source-line-no">1850</span><span id="line-1850"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1851</span><span id="line-1851"> public Boolean getLot() {</span> <span class="source-line-no">1852</span><span id="line-1852"> return this.lot;</span> <span class="source-line-no">1853</span><span id="line-1853"> }</span> <span class="source-line-no">1854</span><span id="line-1854"></span> <span class="source-line-no">1855</span><span id="line-1855"> /**</span> <span class="source-line-no">1856</span><span id="line-1856"> * Whether lot parking is available</span> <span class="source-line-no">1857</span><span id="line-1857"> */</span> <span class="source-line-no">1858</span><span id="line-1858"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1859</span><span id="line-1859"> public void setLot(final Boolean lot) {</span> <span class="source-line-no">1860</span><span id="line-1860"> this.lot = lot;</span> <span class="source-line-no">1861</span><span id="line-1861"> }</span> <span class="source-line-no">1862</span><span id="line-1862"></span> <span class="source-line-no">1863</span><span id="line-1863"> /**</span> <span class="source-line-no">1864</span><span id="line-1864"> * Whether street parking is available</span> <span class="source-line-no">1865</span><span id="line-1865"> */</span> <span class="source-line-no">1866</span><span id="line-1866"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1867</span><span id="line-1867"> public Boolean getStreet() {</span> <span class="source-line-no">1868</span><span id="line-1868"> return this.street;</span> <span class="source-line-no">1869</span><span id="line-1869"> }</span> <span class="source-line-no">1870</span><span id="line-1870"></span> <span class="source-line-no">1871</span><span id="line-1871"> /**</span> <span class="source-line-no">1872</span><span id="line-1872"> * Whether street parking is available</span> <span class="source-line-no">1873</span><span id="line-1873"> */</span> <span class="source-line-no">1874</span><span id="line-1874"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1875</span><span id="line-1875"> public void setStreet(final Boolean street) {</span> <span class="source-line-no">1876</span><span id="line-1876"> this.street = street;</span> <span class="source-line-no">1877</span><span id="line-1877"> }</span> <span class="source-line-no">1878</span><span id="line-1878"></span> <span class="source-line-no">1879</span><span id="line-1879"> /**</span> <span class="source-line-no">1880</span><span id="line-1880"> * Whether valet parking is available</span> <span class="source-line-no">1881</span><span id="line-1881"> */</span> <span class="source-line-no">1882</span><span id="line-1882"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1883</span><span id="line-1883"> public Boolean getValet() {</span> <span class="source-line-no">1884</span><span id="line-1884"> return this.valet;</span> <span class="source-line-no">1885</span><span id="line-1885"> }</span> <span class="source-line-no">1886</span><span id="line-1886"></span> <span class="source-line-no">1887</span><span id="line-1887"> /**</span> <span class="source-line-no">1888</span><span id="line-1888"> * Whether valet parking is available</span> <span class="source-line-no">1889</span><span id="line-1889"> */</span> <span class="source-line-no">1890</span><span id="line-1890"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1891</span><span id="line-1891"> public void setValet(final Boolean valet) {</span> <span class="source-line-no">1892</span><span id="line-1892"> this.valet = valet;</span> <span class="source-line-no">1893</span><span id="line-1893"> }</span> <span class="source-line-no">1894</span><span id="line-1894"> }</span> <span class="source-line-no">1895</span><span id="line-1895"></span> <span class="source-line-no">1896</span><span id="line-1896"></span> <span class="source-line-no">1897</span><span id="line-1897"> /**</span> <span class="source-line-no">1898</span><span id="line-1898"> * Represents the &lt;a href="https://developers.facebook.com/docs/graph-api/reference/page-settings/"&gt;Page Settings</span> <span class="source-line-no">1899</span><span id="line-1899"> * Graph API type&lt;/a&gt;.</span> <span class="source-line-no">1900</span><span id="line-1900"> * </span> <span class="source-line-no">1901</span><span id="line-1901"> * @since 1.10.0</span> <span class="source-line-no">1902</span><span id="line-1902"> */</span> <span class="source-line-no">1903</span><span id="line-1903"> public static class Settings extends AbstractFacebookType {</span> <span class="source-line-no">1904</span><span id="line-1904"> private static final long serialVersionUID = 1L;</span> <span class="source-line-no">1905</span><span id="line-1905"> @Facebook</span> <span class="source-line-no">1906</span><span id="line-1906"> private String setting;</span> <span class="source-line-no">1907</span><span id="line-1907"> @Facebook</span> <span class="source-line-no">1908</span><span id="line-1908"> private String value;</span> <span class="source-line-no">1909</span><span id="line-1909"></span> <span class="source-line-no">1910</span><span id="line-1910"> /**</span> <span class="source-line-no">1911</span><span id="line-1911"> * convert the value field in a boolean and return it.</span> <span class="source-line-no">1912</span><span id="line-1912"> * </span> <span class="source-line-no">1913</span><span id="line-1913"> * Every value that's not the String "true" (case is ignored) is &lt;code&gt;false&lt;/code&gt;!</span> <span class="source-line-no">1914</span><span id="line-1914"> * </span> <span class="source-line-no">1915</span><span id="line-1915"> * @return the value field as boolean.</span> <span class="source-line-no">1916</span><span id="line-1916"> */</span> <span class="source-line-no">1917</span><span id="line-1917"> public boolean getValueAsBoolean() {</span> <span class="source-line-no">1918</span><span id="line-1918"> return Boolean.parseBoolean(value);</span> <span class="source-line-no">1919</span><span id="line-1919"> }</span> <span class="source-line-no">1920</span><span id="line-1920"></span> <span class="source-line-no">1921</span><span id="line-1921"> /**</span> <span class="source-line-no">1922</span><span id="line-1922"> * Takes the value and converts it into a json object if possible.</span> <span class="source-line-no">1923</span><span id="line-1923"> * </span> <span class="source-line-no">1924</span><span id="line-1924"> * May throw a JsonException</span> <span class="source-line-no">1925</span><span id="line-1925"> * </span> <span class="source-line-no">1926</span><span id="line-1926"> * @return</span> <span class="source-line-no">1927</span><span id="line-1927"> */</span> <span class="source-line-no">1928</span><span id="line-1928"> public JsonObject getValueAsJsonObject() {</span> <span class="source-line-no">1929</span><span id="line-1929"> return Json.parse(value).asObject();</span> <span class="source-line-no">1930</span><span id="line-1930"> }</span> <span class="source-line-no">1931</span><span id="line-1931"></span> <span class="source-line-no">1932</span><span id="line-1932"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1933</span><span id="line-1933"> public String getSetting() {</span> <span class="source-line-no">1934</span><span id="line-1934"> return this.setting;</span> <span class="source-line-no">1935</span><span id="line-1935"> }</span> <span class="source-line-no">1936</span><span id="line-1936"></span> <span class="source-line-no">1937</span><span id="line-1937"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1938</span><span id="line-1938"> public void setSetting(final String setting) {</span> <span class="source-line-no">1939</span><span id="line-1939"> this.setting = setting;</span> <span class="source-line-no">1940</span><span id="line-1940"> }</span> <span class="source-line-no">1941</span><span id="line-1941"></span> <span class="source-line-no">1942</span><span id="line-1942"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1943</span><span id="line-1943"> public String getValue() {</span> <span class="source-line-no">1944</span><span id="line-1944"> return this.value;</span> <span class="source-line-no">1945</span><span id="line-1945"> }</span> <span class="source-line-no">1946</span><span id="line-1946"></span> <span class="source-line-no">1947</span><span id="line-1947"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">1948</span><span id="line-1948"> public void setValue(final String value) {</span> <span class="source-line-no">1949</span><span id="line-1949"> this.value = value;</span> <span class="source-line-no">1950</span><span id="line-1950"> }</span> <span class="source-line-no">1951</span><span id="line-1951"> }</span> <span class="source-line-no">1952</span><span id="line-1952"></span> <span class="source-line-no">1953</span><span id="line-1953"> /**</span> <span class="source-line-no">1954</span><span id="line-1954"> * External accounts. Applicable to Pages representing people</span> <span class="source-line-no">1955</span><span id="line-1955"> *</span> <span class="source-line-no">1956</span><span id="line-1956"> * @return the list of screen names</span> <span class="source-line-no">1957</span><span id="line-1957"> */</span> <span class="source-line-no">1958</span><span id="line-1958"> public List&lt;ScreenName&gt; getScreenNames() {</span> <span class="source-line-no">1959</span><span id="line-1959"> return unmodifiableList(screenNames);</span> <span class="source-line-no">1960</span><span id="line-1960"> }</span> <span class="source-line-no">1961</span><span id="line-1961"></span> <span class="source-line-no">1962</span><span id="line-1962"> public boolean addScreenName(ScreenName screenName) {</span> <span class="source-line-no">1963</span><span id="line-1963"> return screenNames.add(screenName);</span> <span class="source-line-no">1964</span><span id="line-1964"> }</span> <span class="source-line-no">1965</span><span id="line-1965"></span> <span class="source-line-no">1966</span><span id="line-1966"> public boolean removeScreenName(ScreenName screenName) {</span> <span class="source-line-no">1967</span><span id="line-1967"> return screenNames.remove(screenName);</span> <span class="source-line-no">1968</span><span id="line-1968"> }</span> <span class="source-line-no">1969</span><span id="line-1969"></span> <span class="source-line-no">1970</span><span id="line-1970"> /**</span> <span class="source-line-no">1971</span><span id="line-1971"> * the sub category list</span> <span class="source-line-no">1972</span><span id="line-1972"> * </span> <span class="source-line-no">1973</span><span id="line-1973"> * @return the sub category list</span> <span class="source-line-no">1974</span><span id="line-1974"> * @since 1.6.15</span> <span class="source-line-no">1975</span><span id="line-1975"> */</span> <span class="source-line-no">1976</span><span id="line-1976"> public List&lt;Category&gt; getCategoryList() {</span> <span class="source-line-no">1977</span><span id="line-1977"> return unmodifiableList(categoryList);</span> <span class="source-line-no">1978</span><span id="line-1978"> }</span> <span class="source-line-no">1979</span><span id="line-1979"></span> <span class="source-line-no">1980</span><span id="line-1980"> public boolean addCategory(Category category) {</span> <span class="source-line-no">1981</span><span id="line-1981"> return categoryList.add(category);</span> <span class="source-line-no">1982</span><span id="line-1982"> }</span> <span class="source-line-no">1983</span><span id="line-1983"></span> <span class="source-line-no">1984</span><span id="line-1984"> public boolean removeCategory(Category category) {</span> <span class="source-line-no">1985</span><span id="line-1985"> return categoryList.remove(category);</span> <span class="source-line-no">1986</span><span id="line-1986"> }</span> <span class="source-line-no">1987</span><span id="line-1987"></span> <span class="source-line-no">1988</span><span id="line-1988"> /**</span> <span class="source-line-no">1989</span><span id="line-1989"> * The emails listed in the About section of a Page.</span> <span class="source-line-no">1990</span><span id="line-1990"> * </span> <span class="source-line-no">1991</span><span id="line-1991"> * @return The emails listed in the About section of a Page</span> <span class="source-line-no">1992</span><span id="line-1992"> * @since 1.10.0</span> <span class="source-line-no">1993</span><span id="line-1993"> */</span> <span class="source-line-no">1994</span><span id="line-1994"> public List&lt;String&gt; getEmails() {</span> <span class="source-line-no">1995</span><span id="line-1995"> return unmodifiableList(emails);</span> <span class="source-line-no">1996</span><span id="line-1996"> }</span> <span class="source-line-no">1997</span><span id="line-1997"></span> <span class="source-line-no">1998</span><span id="line-1998"> public boolean addEmail(String email) {</span> <span class="source-line-no">1999</span><span id="line-1999"> return emails.add(email);</span> <span class="source-line-no">2000</span><span id="line-2000"> }</span> <span class="source-line-no">2001</span><span id="line-2001"></span> <span class="source-line-no">2002</span><span id="line-2002"> public boolean removeEmail(String email) {</span> <span class="source-line-no">2003</span><span id="line-2003"> return emails.remove(email);</span> <span class="source-line-no">2004</span><span id="line-2004"> }</span> <span class="source-line-no">2005</span><span id="line-2005"></span> <span class="source-line-no">2006</span><span id="line-2006"> /**</span> <span class="source-line-no">2007</span><span id="line-2007"> * The restaurant's food styles. Applicable to Restaurants</span> <span class="source-line-no">2008</span><span id="line-2008"> * </span> <span class="source-line-no">2009</span><span id="line-2009"> * @return The restaurant's food styles</span> <span class="source-line-no">2010</span><span id="line-2010"> * @since 1.10.0</span> <span class="source-line-no">2011</span><span id="line-2011"> */</span> <span class="source-line-no">2012</span><span id="line-2012"> public List&lt;String&gt; getFoodStyles() {</span> <span class="source-line-no">2013</span><span id="line-2013"> return unmodifiableList(foodStyles);</span> <span class="source-line-no">2014</span><span id="line-2014"> }</span> <span class="source-line-no">2015</span><span id="line-2015"></span> <span class="source-line-no">2016</span><span id="line-2016"> public boolean addFoodStyle(String foodStyle) {</span> <span class="source-line-no">2017</span><span id="line-2017"> return foodStyles.add(foodStyle);</span> <span class="source-line-no">2018</span><span id="line-2018"> }</span> <span class="source-line-no">2019</span><span id="line-2019"></span> <span class="source-line-no">2020</span><span id="line-2020"> public boolean removeFoodStyle(String foodStyle) {</span> <span class="source-line-no">2021</span><span id="line-2021"> return foodStyles.remove(foodStyle);</span> <span class="source-line-no">2022</span><span id="line-2022"> }</span> <span class="source-line-no">2023</span><span id="line-2023"></span> <span class="source-line-no">2024</span><span id="line-2024"> /**</span> <span class="source-line-no">2025</span><span id="line-2025"> * Notes of this page</span> <span class="source-line-no">2026</span><span id="line-2026"> *</span> <span class="source-line-no">2027</span><span id="line-2027"> * @return Notes of this page</span> <span class="source-line-no">2028</span><span id="line-2028"> */</span> <span class="source-line-no">2029</span><span id="line-2029"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">2030</span><span id="line-2030"> public List&lt;PageAdminNote&gt; getAdminNotes() {</span> <span class="source-line-no">2031</span><span id="line-2031"> return unmodifiableList(adminNotes);</span> <span class="source-line-no">2032</span><span id="line-2032"> }</span> <span class="source-line-no">2033</span><span id="line-2033"></span> <span class="source-line-no">2034</span><span id="line-2034"> public boolean addAdminNote(PageAdminNote adminNote) {</span> <span class="source-line-no">2035</span><span id="line-2035"> return adminNotes.add(adminNote);</span> <span class="source-line-no">2036</span><span id="line-2036"> }</span> <span class="source-line-no">2037</span><span id="line-2037"></span> <span class="source-line-no">2038</span><span id="line-2038"> public boolean removeAdminNote(PageAdminNote adminNote) {</span> <span class="source-line-no">2039</span><span id="line-2039"> return adminNotes.remove(adminNote);</span> <span class="source-line-no">2040</span><span id="line-2040"> }</span> <span class="source-line-no">2041</span><span id="line-2041"></span> <span class="source-line-no">2042</span><span id="line-2042"> /**</span> <span class="source-line-no">2043</span><span id="line-2043"> * Page labels of this page</span> <span class="source-line-no">2044</span><span id="line-2044"> *</span> <span class="source-line-no">2045</span><span id="line-2045"> * @return labels of this page</span> <span class="source-line-no">2046</span><span id="line-2046"> */</span> <span class="source-line-no">2047</span><span id="line-2047"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">2048</span><span id="line-2048"> public List&lt;PageLabel&gt; getLabels() {</span> <span class="source-line-no">2049</span><span id="line-2049"> return unmodifiableList(labels);</span> <span class="source-line-no">2050</span><span id="line-2050"> }</span> <span class="source-line-no">2051</span><span id="line-2051"></span> <span class="source-line-no">2052</span><span id="line-2052"> public boolean addLabel(PageLabel label) {</span> <span class="source-line-no">2053</span><span id="line-2053"> return labels.add(label);</span> <span class="source-line-no">2054</span><span id="line-2054"> }</span> <span class="source-line-no">2055</span><span id="line-2055"></span> <span class="source-line-no">2056</span><span id="line-2056"> public boolean removeLabels(PageLabel label) {</span> <span class="source-line-no">2057</span><span id="line-2057"> return labels.remove(label);</span> <span class="source-line-no">2058</span><span id="line-2058"> }</span> <span class="source-line-no">2059</span><span id="line-2059"></span> <span class="source-line-no">2060</span><span id="line-2060"> /**</span> <span class="source-line-no">2061</span><span id="line-2061"> * Linked Instagram accounts for this Page</span> <span class="source-line-no">2062</span><span id="line-2062"> */</span> <span class="source-line-no">2063</span><span id="line-2063"> public List&lt;InstagramUser&gt; getInstagramAccounts() {</span> <span class="source-line-no">2064</span><span id="line-2064"> return unmodifiableList(instagramAccounts);</span> <span class="source-line-no">2065</span><span id="line-2065"> }</span> <span class="source-line-no">2066</span><span id="line-2066"></span> <span class="source-line-no">2067</span><span id="line-2067"> public boolean addInstagramAccount(InstagramUser igUser) {</span> <span class="source-line-no">2068</span><span id="line-2068"> return instagramAccounts.add(igUser);</span> <span class="source-line-no">2069</span><span id="line-2069"> }</span> <span class="source-line-no">2070</span><span id="line-2070"></span> <span class="source-line-no">2071</span><span id="line-2071"> public boolean removeInstagramAccount(InstagramUser igUser) {</span> <span class="source-line-no">2072</span><span id="line-2072"> return instagramAccounts.remove(igUser);</span> <span class="source-line-no">2073</span><span id="line-2073"> }</span> <span class="source-line-no">2074</span><span id="line-2074"></span> <span class="source-line-no">2075</span><span id="line-2075"> @JsonMappingCompleted</span> <span class="source-line-no">2076</span><span id="line-2076"> protected void convertLabels(JsonMapper jsonMapper) {</span> <span class="source-line-no">2077</span><span id="line-2077"> JsonObject rawLabels = null;</span> <span class="source-line-no">2078</span><span id="line-2078"> if (this.rawLabels != null) {</span> <span class="source-line-no">2079</span><span id="line-2079"> JsonValue jsonValue = Json.parse(this.rawLabels);</span> <span class="source-line-no">2080</span><span id="line-2080"> if (jsonValue.isObject()) {</span> <span class="source-line-no">2081</span><span id="line-2081"> rawLabels = jsonValue.asObject();</span> <span class="source-line-no">2082</span><span id="line-2082"> }</span> <span class="source-line-no">2083</span><span id="line-2083"> }</span> <span class="source-line-no">2084</span><span id="line-2084"> if (rawLabels != null &amp;&amp; rawLabels.isObject()) {</span> <span class="source-line-no">2085</span><span id="line-2085"> String innerLabelsString = rawLabels.get("data").toString();</span> <span class="source-line-no">2086</span><span id="line-2086"> labels = jsonMapper.toJavaList(innerLabelsString, PageLabel.class);</span> <span class="source-line-no">2087</span><span id="line-2087"> }</span> <span class="source-line-no">2088</span><span id="line-2088"> }</span> <span class="source-line-no">2089</span><span id="line-2089"></span> <span class="source-line-no">2090</span><span id="line-2090"> @JsonMappingCompleted</span> <span class="source-line-no">2091</span><span id="line-2091"> protected void fillProfilePicture(JsonMapper jsonMapper) {</span> <span class="source-line-no">2092</span><span id="line-2092"> picture = convertPicture(jsonMapper, rawPicture);</span> <span class="source-line-no">2093</span><span id="line-2093"> }</span> <span class="source-line-no">2094</span><span id="line-2094"></span> <span class="source-line-no">2095</span><span id="line-2095"> @JsonMappingCompleted</span> <span class="source-line-no">2096</span><span id="line-2096"> protected void graphApi26LikesFallback() {</span> <span class="source-line-no">2097</span><span id="line-2097"> if (getFanCount() != null &amp;&amp; getLikesCount() == null) {</span> <span class="source-line-no">2098</span><span id="line-2098"> likesCount = fanCount;</span> <span class="source-line-no">2099</span><span id="line-2099"> }</span> <span class="source-line-no">2100</span><span id="line-2100"> if (getFanCount() == null &amp;&amp; getLikesCount() != null) {</span> <span class="source-line-no">2101</span><span id="line-2101"> fanCount = likesCount;</span> <span class="source-line-no">2102</span><span id="line-2102"> }</span> <span class="source-line-no">2103</span><span id="line-2103"> }</span> <span class="source-line-no">2104</span><span id="line-2104"></span> <span class="source-line-no">2105</span><span id="line-2105"> @JsonMappingCompleted</span> <span class="source-line-no">2106</span><span id="line-2106"> protected void convertHours() {</span> <span class="source-line-no">2107</span><span id="line-2107"> if (rawHours != null &amp;&amp; !rawHours.isEmpty()) {</span> <span class="source-line-no">2108</span><span id="line-2108"> Hours hoursObj = new Hours();</span> <span class="source-line-no">2109</span><span id="line-2109"> for (JsonObject entry : rawHours) {</span> <span class="source-line-no">2110</span><span id="line-2110"> hoursObj.addHour(entry.getString("key", ""), entry.getString("value", ""));</span> <span class="source-line-no">2111</span><span id="line-2111"> }</span> <span class="source-line-no">2112</span><span id="line-2112"> hours = hoursObj;</span> <span class="source-line-no">2113</span><span id="line-2113"> }</span> <span class="source-line-no">2114</span><span id="line-2114"> if (rawHoursMap != null &amp;&amp; !rawHoursMap.isEmpty()) {</span> <span class="source-line-no">2115</span><span id="line-2115"> Hours hoursObj = new Hours();</span> <span class="source-line-no">2116</span><span id="line-2116"> for (Map.Entry&lt;String, String&gt; entry : rawHoursMap.entrySet()) {</span> <span class="source-line-no">2117</span><span id="line-2117"> hoursObj.addHour(entry.getKey(), entry.getValue());</span> <span class="source-line-no">2118</span><span id="line-2118"> }</span> <span class="source-line-no">2119</span><span id="line-2119"> hours = hoursObj;</span> <span class="source-line-no">2120</span><span id="line-2120"> }</span> <span class="source-line-no">2121</span><span id="line-2121"> }</span> <span class="source-line-no">2122</span><span id="line-2122"></span> <span class="source-line-no">2123</span><span id="line-2123"> /**</span> <span class="source-line-no">2124</span><span id="line-2124"> * The pages's profile picture, if provided.</span> <span class="source-line-no">2125</span><span id="line-2125"> * </span> <span class="source-line-no">2126</span><span id="line-2126"> * To force Facebook to fill the &lt;code&gt;picture&lt;/code&gt; field you have to fetch the page with the</span> <span class="source-line-no">2127</span><span id="line-2127"> * &lt;code&gt;fields=picture&lt;/code&gt; parameter, otherwise the picture is &lt;code&gt;null&lt;/code&gt;.</span> <span class="source-line-no">2128</span><span id="line-2128"> * </span> <span class="source-line-no">2129</span><span id="line-2129"> * @return the page's profile picture as ProfilePictureSource object</span> <span class="source-line-no">2130</span><span id="line-2130"> */</span> <span class="source-line-no">2131</span><span id="line-2131"> @Override</span> <span class="source-line-no">2132</span><span id="line-2132"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2133</span><span id="line-2133"> public ProfilePictureSource getPicture() {</span> <span class="source-line-no">2134</span><span id="line-2134"> return this.picture;</span> <span class="source-line-no">2135</span><span id="line-2135"> }</span> <span class="source-line-no">2136</span><span id="line-2136"></span> <span class="source-line-no">2137</span><span id="line-2137"> /**</span> <span class="source-line-no">2138</span><span id="line-2138"> * The pages's profile picture, if provided.</span> <span class="source-line-no">2139</span><span id="line-2139"> * </span> <span class="source-line-no">2140</span><span id="line-2140"> * To force Facebook to fill the &lt;code&gt;picture&lt;/code&gt; field you have to fetch the page with the</span> <span class="source-line-no">2141</span><span id="line-2141"> * &lt;code&gt;fields=picture&lt;/code&gt; parameter, otherwise the picture is &lt;code&gt;null&lt;/code&gt;.</span> <span class="source-line-no">2142</span><span id="line-2142"> * </span> <span class="source-line-no">2143</span><span id="line-2143"> */</span> <span class="source-line-no">2144</span><span id="line-2144"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2145</span><span id="line-2145"> public void setPicture(final ProfilePictureSource picture) {</span> <span class="source-line-no">2146</span><span id="line-2146"> this.picture = picture;</span> <span class="source-line-no">2147</span><span id="line-2147"> }</span> <span class="source-line-no">2148</span><span id="line-2148"></span> <span class="source-line-no">2149</span><span id="line-2149"> /**</span> <span class="source-line-no">2150</span><span id="line-2150"> * Affiliation of this person. Applicable to Pages representing people</span> <span class="source-line-no">2151</span><span id="line-2151"> * </span> <span class="source-line-no">2152</span><span id="line-2152"> * @since 1.10.0</span> <span class="source-line-no">2153</span><span id="line-2153"> * @return affiliation of this person</span> <span class="source-line-no">2154</span><span id="line-2154"> */</span> <span class="source-line-no">2155</span><span id="line-2155"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2156</span><span id="line-2156"> public String getAffiliation() {</span> <span class="source-line-no">2157</span><span id="line-2157"> return this.affiliation;</span> <span class="source-line-no">2158</span><span id="line-2158"> }</span> <span class="source-line-no">2159</span><span id="line-2159"></span> <span class="source-line-no">2160</span><span id="line-2160"> /**</span> <span class="source-line-no">2161</span><span id="line-2161"> * Affiliation of this person. Applicable to Pages representing people</span> <span class="source-line-no">2162</span><span id="line-2162"> * </span> <span class="source-line-no">2163</span><span id="line-2163"> * @since 1.10.0</span> <span class="source-line-no">2164</span><span id="line-2164"> */</span> <span class="source-line-no">2165</span><span id="line-2165"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2166</span><span id="line-2166"> public void setAffiliation(final String affiliation) {</span> <span class="source-line-no">2167</span><span id="line-2167"> this.affiliation = affiliation;</span> <span class="source-line-no">2168</span><span id="line-2168"> }</span> <span class="source-line-no">2169</span><span id="line-2169"></span> <span class="source-line-no">2170</span><span id="line-2170"> /**</span> <span class="source-line-no">2171</span><span id="line-2171"> * App ID for app-owned Pages and app Pages.</span> <span class="source-line-no">2172</span><span id="line-2172"> *</span> <span class="source-line-no">2173</span><span id="line-2173"> * @return App ID for app-owned Pages and app Pages</span> <span class="source-line-no">2174</span><span id="line-2174"> */</span> <span class="source-line-no">2175</span><span id="line-2175"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2176</span><span id="line-2176"> public String getAppId() {</span> <span class="source-line-no">2177</span><span id="line-2177"> return this.appId;</span> <span class="source-line-no">2178</span><span id="line-2178"> }</span> <span class="source-line-no">2179</span><span id="line-2179"></span> <span class="source-line-no">2180</span><span id="line-2180"> /**</span> <span class="source-line-no">2181</span><span id="line-2181"> * App ID for app-owned Pages and app Pages.</span> <span class="source-line-no">2182</span><span id="line-2182"> */</span> <span class="source-line-no">2183</span><span id="line-2183"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2184</span><span id="line-2184"> public void setAppId(final String appId) {</span> <span class="source-line-no">2185</span><span id="line-2185"> this.appId = appId;</span> <span class="source-line-no">2186</span><span id="line-2186"> }</span> <span class="source-line-no">2187</span><span id="line-2187"></span> <span class="source-line-no">2188</span><span id="line-2188"> /**</span> <span class="source-line-no">2189</span><span id="line-2189"> * Artists the band likes. Applicable to Bands</span> <span class="source-line-no">2190</span><span id="line-2190"> * </span> <span class="source-line-no">2191</span><span id="line-2191"> * @since 1.10.0</span> <span class="source-line-no">2192</span><span id="line-2192"> * @return artists the band likes</span> <span class="source-line-no">2193</span><span id="line-2193"> */</span> <span class="source-line-no">2194</span><span id="line-2194"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2195</span><span id="line-2195"> public String getArtistsWeLike() {</span> <span class="source-line-no">2196</span><span id="line-2196"> return this.artistsWeLike;</span> <span class="source-line-no">2197</span><span id="line-2197"> }</span> <span class="source-line-no">2198</span><span id="line-2198"></span> <span class="source-line-no">2199</span><span id="line-2199"> /**</span> <span class="source-line-no">2200</span><span id="line-2200"> * Artists the band likes. Applicable to Bands</span> <span class="source-line-no">2201</span><span id="line-2201"> * </span> <span class="source-line-no">2202</span><span id="line-2202"> * @since 1.10.0</span> <span class="source-line-no">2203</span><span id="line-2203"> */</span> <span class="source-line-no">2204</span><span id="line-2204"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2205</span><span id="line-2205"> public void setArtistsWeLike(final String artistsWeLike) {</span> <span class="source-line-no">2206</span><span id="line-2206"> this.artistsWeLike = artistsWeLike;</span> <span class="source-line-no">2207</span><span id="line-2207"> }</span> <span class="source-line-no">2208</span><span id="line-2208"></span> <span class="source-line-no">2209</span><span id="line-2209"> /**</span> <span class="source-line-no">2210</span><span id="line-2210"> * relevance score of an asset.</span> <span class="source-line-no">2211</span><span id="line-2211"> *</span> <span class="source-line-no">2212</span><span id="line-2212"> * @return relevance score of an asset</span> <span class="source-line-no">2213</span><span id="line-2213"> */</span> <span class="source-line-no">2214</span><span id="line-2214"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2215</span><span id="line-2215"> public Double getAssetScore() {</span> <span class="source-line-no">2216</span><span id="line-2216"> return this.assetScore;</span> <span class="source-line-no">2217</span><span id="line-2217"> }</span> <span class="source-line-no">2218</span><span id="line-2218"></span> <span class="source-line-no">2219</span><span id="line-2219"> /**</span> <span class="source-line-no">2220</span><span id="line-2220"> * relevance score of an asset.</span> <span class="source-line-no">2221</span><span id="line-2221"> */</span> <span class="source-line-no">2222</span><span id="line-2222"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2223</span><span id="line-2223"> public void setAssetScore(final Double assetScore) {</span> <span class="source-line-no">2224</span><span id="line-2224"> this.assetScore = assetScore;</span> <span class="source-line-no">2225</span><span id="line-2225"> }</span> <span class="source-line-no">2226</span><span id="line-2226"></span> <span class="source-line-no">2227</span><span id="line-2227"> /**</span> <span class="source-line-no">2228</span><span id="line-2228"> * Dress code of the business. Applicable to Restaurants or Nightlife. Can be one of Casual, Dressy or Unspecified</span> <span class="source-line-no">2229</span><span id="line-2229"> * </span> <span class="source-line-no">2230</span><span id="line-2230"> * @since 1.10.0</span> <span class="source-line-no">2231</span><span id="line-2231"> * @return dress code of the business</span> <span class="source-line-no">2232</span><span id="line-2232"> */</span> <span class="source-line-no">2233</span><span id="line-2233"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2234</span><span id="line-2234"> public String getAttire() {</span> <span class="source-line-no">2235</span><span id="line-2235"> return this.attire;</span> <span class="source-line-no">2236</span><span id="line-2236"> }</span> <span class="source-line-no">2237</span><span id="line-2237"></span> <span class="source-line-no">2238</span><span id="line-2238"> /**</span> <span class="source-line-no">2239</span><span id="line-2239"> * Dress code of the business. Applicable to Restaurants or Nightlife. Can be one of Casual, Dressy or Unspecified</span> <span class="source-line-no">2240</span><span id="line-2240"> * </span> <span class="source-line-no">2241</span><span id="line-2241"> * @since 1.10.0</span> <span class="source-line-no">2242</span><span id="line-2242"> */</span> <span class="source-line-no">2243</span><span id="line-2243"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2244</span><span id="line-2244"> public void setAttire(final String attire) {</span> <span class="source-line-no">2245</span><span id="line-2245"> this.attire = attire;</span> <span class="source-line-no">2246</span><span id="line-2246"> }</span> <span class="source-line-no">2247</span><span id="line-2247"></span> <span class="source-line-no">2248</span><span id="line-2248"> /**</span> <span class="source-line-no">2249</span><span id="line-2249"> * The awards information of the film. Applicable to Films</span> <span class="source-line-no">2250</span><span id="line-2250"> * </span> <span class="source-line-no">2251</span><span id="line-2251"> * @since 1.10.0</span> <span class="source-line-no">2252</span><span id="line-2252"> * @return the awards information of the film</span> <span class="source-line-no">2253</span><span id="line-2253"> */</span> <span class="source-line-no">2254</span><span id="line-2254"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2255</span><span id="line-2255"> public String getAwards() {</span> <span class="source-line-no">2256</span><span id="line-2256"> return this.awards;</span> <span class="source-line-no">2257</span><span id="line-2257"> }</span> <span class="source-line-no">2258</span><span id="line-2258"></span> <span class="source-line-no">2259</span><span id="line-2259"> /**</span> <span class="source-line-no">2260</span><span id="line-2260"> * The awards information of the film. Applicable to Films</span> <span class="source-line-no">2261</span><span id="line-2261"> * </span> <span class="source-line-no">2262</span><span id="line-2262"> * @since 1.10.0</span> <span class="source-line-no">2263</span><span id="line-2263"> */</span> <span class="source-line-no">2264</span><span id="line-2264"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2265</span><span id="line-2265"> public void setAwards(final String awards) {</span> <span class="source-line-no">2266</span><span id="line-2266"> this.awards = awards;</span> <span class="source-line-no">2267</span><span id="line-2267"> }</span> <span class="source-line-no">2268</span><span id="line-2268"></span> <span class="source-line-no">2269</span><span id="line-2269"> /**</span> <span class="source-line-no">2270</span><span id="line-2270"> * Band interests. Applicable to Bands</span> <span class="source-line-no">2271</span><span id="line-2271"> * </span> <span class="source-line-no">2272</span><span id="line-2272"> * @since 1.10.0</span> <span class="source-line-no">2273</span><span id="line-2273"> * @return band interests</span> <span class="source-line-no">2274</span><span id="line-2274"> */</span> <span class="source-line-no">2275</span><span id="line-2275"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2276</span><span id="line-2276"> public String getBandInterests() {</span> <span class="source-line-no">2277</span><span id="line-2277"> return this.bandInterests;</span> <span class="source-line-no">2278</span><span id="line-2278"> }</span> <span class="source-line-no">2279</span><span id="line-2279"></span> <span class="source-line-no">2280</span><span id="line-2280"> /**</span> <span class="source-line-no">2281</span><span id="line-2281"> * Band interests. Applicable to Bands</span> <span class="source-line-no">2282</span><span id="line-2282"> * </span> <span class="source-line-no">2283</span><span id="line-2283"> * @since 1.10.0</span> <span class="source-line-no">2284</span><span id="line-2284"> */</span> <span class="source-line-no">2285</span><span id="line-2285"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2286</span><span id="line-2286"> public void setBandInterests(final String bandInterests) {</span> <span class="source-line-no">2287</span><span id="line-2287"> this.bandInterests = bandInterests;</span> <span class="source-line-no">2288</span><span id="line-2288"> }</span> <span class="source-line-no">2289</span><span id="line-2289"></span> <span class="source-line-no">2290</span><span id="line-2290"> /**</span> <span class="source-line-no">2291</span><span id="line-2291"> * Members of the band. Applicable to Bands</span> <span class="source-line-no">2292</span><span id="line-2292"> * </span> <span class="source-line-no">2293</span><span id="line-2293"> * @since 1.10.0</span> <span class="source-line-no">2294</span><span id="line-2294"> * @return members of the band</span> <span class="source-line-no">2295</span><span id="line-2295"> */</span> <span class="source-line-no">2296</span><span id="line-2296"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2297</span><span id="line-2297"> public String getBandMembers() {</span> <span class="source-line-no">2298</span><span id="line-2298"> return this.bandMembers;</span> <span class="source-line-no">2299</span><span id="line-2299"> }</span> <span class="source-line-no">2300</span><span id="line-2300"></span> <span class="source-line-no">2301</span><span id="line-2301"> /**</span> <span class="source-line-no">2302</span><span id="line-2302"> * Members of the band. Applicable to Bands</span> <span class="source-line-no">2303</span><span id="line-2303"> * </span> <span class="source-line-no">2304</span><span id="line-2304"> * @since 1.10.0</span> <span class="source-line-no">2305</span><span id="line-2305"> */</span> <span class="source-line-no">2306</span><span id="line-2306"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2307</span><span id="line-2307"> public void setBandMembers(final String bandMembers) {</span> <span class="source-line-no">2308</span><span id="line-2308"> this.bandMembers = bandMembers;</span> <span class="source-line-no">2309</span><span id="line-2309"> }</span> <span class="source-line-no">2310</span><span id="line-2310"></span> <span class="source-line-no">2311</span><span id="line-2311"> /**</span> <span class="source-line-no">2312</span><span id="line-2312"> * The best available Page on Facebook for the concept represented by this Page. The best available Page takes into</span> <span class="source-line-no">2313</span><span id="line-2313"> * account authenticity and the number of likes</span> <span class="source-line-no">2314</span><span id="line-2314"> * </span> <span class="source-line-no">2315</span><span id="line-2315"> * @since 1.10.0</span> <span class="source-line-no">2316</span><span id="line-2316"> * @return The best available Page on Facebook for the concept represented by this Page</span> <span class="source-line-no">2317</span><span id="line-2317"> */</span> <span class="source-line-no">2318</span><span id="line-2318"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2319</span><span id="line-2319"> public Page getBestPage() {</span> <span class="source-line-no">2320</span><span id="line-2320"> return this.bestPage;</span> <span class="source-line-no">2321</span><span id="line-2321"> }</span> <span class="source-line-no">2322</span><span id="line-2322"></span> <span class="source-line-no">2323</span><span id="line-2323"> /**</span> <span class="source-line-no">2324</span><span id="line-2324"> * The best available Page on Facebook for the concept represented by this Page. The best available Page takes into</span> <span class="source-line-no">2325</span><span id="line-2325"> * account authenticity and the number of likes</span> <span class="source-line-no">2326</span><span id="line-2326"> * </span> <span class="source-line-no">2327</span><span id="line-2327"> * @since 1.10.0</span> <span class="source-line-no">2328</span><span id="line-2328"> */</span> <span class="source-line-no">2329</span><span id="line-2329"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2330</span><span id="line-2330"> public void setBestPage(final Page bestPage) {</span> <span class="source-line-no">2331</span><span id="line-2331"> this.bestPage = bestPage;</span> <span class="source-line-no">2332</span><span id="line-2332"> }</span> <span class="source-line-no">2333</span><span id="line-2333"></span> <span class="source-line-no">2334</span><span id="line-2334"> /**</span> <span class="source-line-no">2335</span><span id="line-2335"> * The mailing or contact address for this page. This field will be blank if the contact address is the same as the</span> <span class="source-line-no">2336</span><span id="line-2336"> * physical address</span> <span class="source-line-no">2337</span><span id="line-2337"> * </span> <span class="source-line-no">2338</span><span id="line-2338"> * @since 1.10.0</span> <span class="source-line-no">2339</span><span id="line-2339"> * @return The mailing or contact address for this page</span> <span class="source-line-no">2340</span><span id="line-2340"> */</span> <span class="source-line-no">2341</span><span id="line-2341"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2342</span><span id="line-2342"> public MailingAddress getContactAddress() {</span> <span class="source-line-no">2343</span><span id="line-2343"> return this.contactAddress;</span> <span class="source-line-no">2344</span><span id="line-2344"> }</span> <span class="source-line-no">2345</span><span id="line-2345"></span> <span class="source-line-no">2346</span><span id="line-2346"> /**</span> <span class="source-line-no">2347</span><span id="line-2347"> * The mailing or contact address for this page. This field will be blank if the contact address is the same as the</span> <span class="source-line-no">2348</span><span id="line-2348"> * physical address</span> <span class="source-line-no">2349</span><span id="line-2349"> * </span> <span class="source-line-no">2350</span><span id="line-2350"> * @since 1.10.0</span> <span class="source-line-no">2351</span><span id="line-2351"> */</span> <span class="source-line-no">2352</span><span id="line-2352"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2353</span><span id="line-2353"> public void setContactAddress(final MailingAddress contactAddress) {</span> <span class="source-line-no">2354</span><span id="line-2354"> this.contactAddress = contactAddress;</span> <span class="source-line-no">2355</span><span id="line-2355"> }</span> <span class="source-line-no">2356</span><span id="line-2356"></span> <span class="source-line-no">2357</span><span id="line-2357"> /**</span> <span class="source-line-no">2358</span><span id="line-2358"> * If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.</span> <span class="source-line-no">2359</span><span id="line-2359"> *</span> <span class="source-line-no">2360</span><span id="line-2360"> * @return If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.</span> <span class="source-line-no">2361</span><span id="line-2361"> */</span> <span class="source-line-no">2362</span><span id="line-2362"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2363</span><span id="line-2363"> public Integer getCountryPageLikes() {</span> <span class="source-line-no">2364</span><span id="line-2364"> return this.countryPageLikes;</span> <span class="source-line-no">2365</span><span id="line-2365"> }</span> <span class="source-line-no">2366</span><span id="line-2366"></span> <span class="source-line-no">2367</span><span id="line-2367"> /**</span> <span class="source-line-no">2368</span><span id="line-2368"> * If this is a Page in a Global Pages hierarchy, the number of people who are being directed to this Page.</span> <span class="source-line-no">2369</span><span id="line-2369"> */</span> <span class="source-line-no">2370</span><span id="line-2370"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2371</span><span id="line-2371"> public void setCountryPageLikes(final Integer countryPageLikes) {</span> <span class="source-line-no">2372</span><span id="line-2372"> this.countryPageLikes = countryPageLikes;</span> <span class="source-line-no">2373</span><span id="line-2373"> }</span> <span class="source-line-no">2374</span><span id="line-2374"></span> <span class="source-line-no">2375</span><span id="line-2375"> /**</span> <span class="source-line-no">2376</span><span id="line-2376"> * The Page's category. e.g. Product/Service, Computers/Technology</span> <span class="source-line-no">2377</span><span id="line-2377"> *</span> <span class="source-line-no">2378</span><span id="line-2378"> * @return The Page's category. e.g. Product/Service, Computers/Technology</span> <span class="source-line-no">2379</span><span id="line-2379"> */</span> <span class="source-line-no">2380</span><span id="line-2380"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2381</span><span id="line-2381"> public String getCategory() {</span> <span class="source-line-no">2382</span><span id="line-2382"> return this.category;</span> <span class="source-line-no">2383</span><span id="line-2383"> }</span> <span class="source-line-no">2384</span><span id="line-2384"></span> <span class="source-line-no">2385</span><span id="line-2385"> /**</span> <span class="source-line-no">2386</span><span id="line-2386"> * The Page's category. e.g. Product/Service, Computers/Technology</span> <span class="source-line-no">2387</span><span id="line-2387"> */</span> <span class="source-line-no">2388</span><span id="line-2388"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2389</span><span id="line-2389"> public void setCategory(final String category) {</span> <span class="source-line-no">2390</span><span id="line-2390"> this.category = category;</span> <span class="source-line-no">2391</span><span id="line-2391"> }</span> <span class="source-line-no">2392</span><span id="line-2392"></span> <span class="source-line-no">2393</span><span id="line-2393"> /**</span> <span class="source-line-no">2394</span><span id="line-2394"> * Biography of the band. Applicable to Bands</span> <span class="source-line-no">2395</span><span id="line-2395"> * </span> <span class="source-line-no">2396</span><span id="line-2396"> * @since 1.10.0</span> <span class="source-line-no">2397</span><span id="line-2397"> * @return Biography of the band</span> <span class="source-line-no">2398</span><span id="line-2398"> */</span> <span class="source-line-no">2399</span><span id="line-2399"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2400</span><span id="line-2400"> public String getBio() {</span> <span class="source-line-no">2401</span><span id="line-2401"> return this.bio;</span> <span class="source-line-no">2402</span><span id="line-2402"> }</span> <span class="source-line-no">2403</span><span id="line-2403"></span> <span class="source-line-no">2404</span><span id="line-2404"> /**</span> <span class="source-line-no">2405</span><span id="line-2405"> * Biography of the band. Applicable to Bands</span> <span class="source-line-no">2406</span><span id="line-2406"> * </span> <span class="source-line-no">2407</span><span id="line-2407"> * @since 1.10.0</span> <span class="source-line-no">2408</span><span id="line-2408"> */</span> <span class="source-line-no">2409</span><span id="line-2409"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2410</span><span id="line-2410"> public void setBio(final String bio) {</span> <span class="source-line-no">2411</span><span id="line-2411"> this.bio = bio;</span> <span class="source-line-no">2412</span><span id="line-2412"> }</span> <span class="source-line-no">2413</span><span id="line-2413"></span> <span class="source-line-no">2414</span><span id="line-2414"> /**</span> <span class="source-line-no">2415</span><span id="line-2415"> * Birthday of this person. Applicable to Pages representing people</span> <span class="source-line-no">2416</span><span id="line-2416"> * </span> <span class="source-line-no">2417</span><span id="line-2417"> * @since 1.10.0</span> <span class="source-line-no">2418</span><span id="line-2418"> * @return birthday of this person</span> <span class="source-line-no">2419</span><span id="line-2419"> */</span> <span class="source-line-no">2420</span><span id="line-2420"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2421</span><span id="line-2421"> public String getBirthday() {</span> <span class="source-line-no">2422</span><span id="line-2422"> return this.birthday;</span> <span class="source-line-no">2423</span><span id="line-2423"> }</span> <span class="source-line-no">2424</span><span id="line-2424"></span> <span class="source-line-no">2425</span><span id="line-2425"> /**</span> <span class="source-line-no">2426</span><span id="line-2426"> * Birthday of this person. Applicable to Pages representing people</span> <span class="source-line-no">2427</span><span id="line-2427"> * </span> <span class="source-line-no">2428</span><span id="line-2428"> * @since 1.10.0</span> <span class="source-line-no">2429</span><span id="line-2429"> */</span> <span class="source-line-no">2430</span><span id="line-2430"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2431</span><span id="line-2431"> public void setBirthday(final String birthday) {</span> <span class="source-line-no">2432</span><span id="line-2432"> this.birthday = birthday;</span> <span class="source-line-no">2433</span><span id="line-2433"> }</span> <span class="source-line-no">2434</span><span id="line-2434"></span> <span class="source-line-no">2435</span><span id="line-2435"> /**</span> <span class="source-line-no">2436</span><span id="line-2436"> * Year vehicle was built. Applicable to Vehicles</span> <span class="source-line-no">2437</span><span id="line-2437"> * </span> <span class="source-line-no">2438</span><span id="line-2438"> * @since 1.10.0</span> <span class="source-line-no">2439</span><span id="line-2439"> * @return Year vehicle was built</span> <span class="source-line-no">2440</span><span id="line-2440"> */</span> <span class="source-line-no">2441</span><span id="line-2441"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2442</span><span id="line-2442"> public String getBuilt() {</span> <span class="source-line-no">2443</span><span id="line-2443"> return this.built;</span> <span class="source-line-no">2444</span><span id="line-2444"> }</span> <span class="source-line-no">2445</span><span id="line-2445"></span> <span class="source-line-no">2446</span><span id="line-2446"> /**</span> <span class="source-line-no">2447</span><span id="line-2447"> * Year vehicle was built. Applicable to Vehicles</span> <span class="source-line-no">2448</span><span id="line-2448"> * </span> <span class="source-line-no">2449</span><span id="line-2449"> * @since 1.10.0</span> <span class="source-line-no">2450</span><span id="line-2450"> */</span> <span class="source-line-no">2451</span><span id="line-2451"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2452</span><span id="line-2452"> public void setBuilt(final String built) {</span> <span class="source-line-no">2453</span><span id="line-2453"> this.built = built;</span> <span class="source-line-no">2454</span><span id="line-2454"> }</span> <span class="source-line-no">2455</span><span id="line-2455"></span> <span class="source-line-no">2456</span><span id="line-2456"> /**</span> <span class="source-line-no">2457</span><span id="line-2457"> * The Business associated with this Page.</span> <span class="source-line-no">2458</span><span id="line-2458"> */</span> <span class="source-line-no">2459</span><span id="line-2459"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2460</span><span id="line-2460"> public Business getBusiness() {</span> <span class="source-line-no">2461</span><span id="line-2461"> return this.business;</span> <span class="source-line-no">2462</span><span id="line-2462"> }</span> <span class="source-line-no">2463</span><span id="line-2463"></span> <span class="source-line-no">2464</span><span id="line-2464"> /**</span> <span class="source-line-no">2465</span><span id="line-2465"> * The Business associated with this Page.</span> <span class="source-line-no">2466</span><span id="line-2466"> */</span> <span class="source-line-no">2467</span><span id="line-2467"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2468</span><span id="line-2468"> public void setBusiness(final Business business) {</span> <span class="source-line-no">2469</span><span id="line-2469"> this.business = business;</span> <span class="source-line-no">2470</span><span id="line-2470"> }</span> <span class="source-line-no">2471</span><span id="line-2471"></span> <span class="source-line-no">2472</span><span id="line-2472"> /**</span> <span class="source-line-no">2473</span><span id="line-2473"> * Culinary team of the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">2474</span><span id="line-2474"> * </span> <span class="source-line-no">2475</span><span id="line-2475"> * @since 1.10.0</span> <span class="source-line-no">2476</span><span id="line-2476"> * @return culinary team of the business</span> <span class="source-line-no">2477</span><span id="line-2477"> */</span> <span class="source-line-no">2478</span><span id="line-2478"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2479</span><span id="line-2479"> public String getCulinaryTeam() {</span> <span class="source-line-no">2480</span><span id="line-2480"> return this.culinaryTeam;</span> <span class="source-line-no">2481</span><span id="line-2481"> }</span> <span class="source-line-no">2482</span><span id="line-2482"></span> <span class="source-line-no">2483</span><span id="line-2483"> /**</span> <span class="source-line-no">2484</span><span id="line-2484"> * Culinary team of the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">2485</span><span id="line-2485"> * </span> <span class="source-line-no">2486</span><span id="line-2486"> * @since 1.10.0</span> <span class="source-line-no">2487</span><span id="line-2487"> */</span> <span class="source-line-no">2488</span><span id="line-2488"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2489</span><span id="line-2489"> public void setCulinaryTeam(final String culinaryTeam) {</span> <span class="source-line-no">2490</span><span id="line-2490"> this.culinaryTeam = culinaryTeam;</span> <span class="source-line-no">2491</span><span id="line-2491"> }</span> <span class="source-line-no">2492</span><span id="line-2492"></span> <span class="source-line-no">2493</span><span id="line-2493"> /**</span> <span class="source-line-no">2494</span><span id="line-2494"> * Current location of the Page.</span> <span class="source-line-no">2495</span><span id="line-2495"> * </span> <span class="source-line-no">2496</span><span id="line-2496"> * @since 1.10.0</span> <span class="source-line-no">2497</span><span id="line-2497"> * @return current location of the Page</span> <span class="source-line-no">2498</span><span id="line-2498"> */</span> <span class="source-line-no">2499</span><span id="line-2499"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2500</span><span id="line-2500"> public String getCurrentLocation() {</span> <span class="source-line-no">2501</span><span id="line-2501"> return this.currentLocation;</span> <span class="source-line-no">2502</span><span id="line-2502"> }</span> <span class="source-line-no">2503</span><span id="line-2503"></span> <span class="source-line-no">2504</span><span id="line-2504"> /**</span> <span class="source-line-no">2505</span><span id="line-2505"> * Current location of the Page.</span> <span class="source-line-no">2506</span><span id="line-2506"> * </span> <span class="source-line-no">2507</span><span id="line-2507"> * @since 1.10.0</span> <span class="source-line-no">2508</span><span id="line-2508"> */</span> <span class="source-line-no">2509</span><span id="line-2509"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2510</span><span id="line-2510"> public void setCurrentLocation(final String currentLocation) {</span> <span class="source-line-no">2511</span><span id="line-2511"> this.currentLocation = currentLocation;</span> <span class="source-line-no">2512</span><span id="line-2512"> }</span> <span class="source-line-no">2513</span><span id="line-2513"></span> <span class="source-line-no">2514</span><span id="line-2514"> /**</span> <span class="source-line-no">2515</span><span id="line-2515"> * Features of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">2516</span><span id="line-2516"> * </span> <span class="source-line-no">2517</span><span id="line-2517"> * @since 1.10.0</span> <span class="source-line-no">2518</span><span id="line-2518"> * @return Features of the vehicle</span> <span class="source-line-no">2519</span><span id="line-2519"> */</span> <span class="source-line-no">2520</span><span id="line-2520"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2521</span><span id="line-2521"> public String getFeatures() {</span> <span class="source-line-no">2522</span><span id="line-2522"> return this.features;</span> <span class="source-line-no">2523</span><span id="line-2523"> }</span> <span class="source-line-no">2524</span><span id="line-2524"></span> <span class="source-line-no">2525</span><span id="line-2525"> /**</span> <span class="source-line-no">2526</span><span id="line-2526"> * Features of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">2527</span><span id="line-2527"> * </span> <span class="source-line-no">2528</span><span id="line-2528"> * @since 1.10.0</span> <span class="source-line-no">2529</span><span id="line-2529"> */</span> <span class="source-line-no">2530</span><span id="line-2530"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2531</span><span id="line-2531"> public void setFeatures(final String features) {</span> <span class="source-line-no">2532</span><span id="line-2532"> this.features = features;</span> <span class="source-line-no">2533</span><span id="line-2533"> }</span> <span class="source-line-no">2534</span><span id="line-2534"></span> <span class="source-line-no">2535</span><span id="line-2535"> /**</span> <span class="source-line-no">2536</span><span id="line-2536"> * The name of the Page with country codes appended for Global Brand Pages. Only visible to the Page admin</span> <span class="source-line-no">2537</span><span id="line-2537"> * </span> <span class="source-line-no">2538</span><span id="line-2538"> * @since 1.10.0</span> <span class="source-line-no">2539</span><span id="line-2539"> * @return The name of the Page with country codes appended for Global Brand Pages</span> <span class="source-line-no">2540</span><span id="line-2540"> */</span> <span class="source-line-no">2541</span><span id="line-2541"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2542</span><span id="line-2542"> public String getGlobalBrandPageName() {</span> <span class="source-line-no">2543</span><span id="line-2543"> return this.globalBrandPageName;</span> <span class="source-line-no">2544</span><span id="line-2544"> }</span> <span class="source-line-no">2545</span><span id="line-2545"></span> <span class="source-line-no">2546</span><span id="line-2546"> /**</span> <span class="source-line-no">2547</span><span id="line-2547"> * The name of the Page with country codes appended for Global Brand Pages. Only visible to the Page admin</span> <span class="source-line-no">2548</span><span id="line-2548"> * </span> <span class="source-line-no">2549</span><span id="line-2549"> * @since 1.10.0</span> <span class="source-line-no">2550</span><span id="line-2550"> */</span> <span class="source-line-no">2551</span><span id="line-2551"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2552</span><span id="line-2552"> public void setGlobalBrandPageName(final String globalBrandPageName) {</span> <span class="source-line-no">2553</span><span id="line-2553"> this.globalBrandPageName = globalBrandPageName;</span> <span class="source-line-no">2554</span><span id="line-2554"> }</span> <span class="source-line-no">2555</span><span id="line-2555"></span> <span class="source-line-no">2556</span><span id="line-2556"> /**</span> <span class="source-line-no">2557</span><span id="line-2557"> * This brand's global Root ID.</span> <span class="source-line-no">2558</span><span id="line-2558"> *</span> <span class="source-line-no">2559</span><span id="line-2559"> * @return This brand's global Root ID</span> <span class="source-line-no">2560</span><span id="line-2560"> */</span> <span class="source-line-no">2561</span><span id="line-2561"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2562</span><span id="line-2562"> public String getGlobalBrandRootId() {</span> <span class="source-line-no">2563</span><span id="line-2563"> return this.globalBrandRootId;</span> <span class="source-line-no">2564</span><span id="line-2564"> }</span> <span class="source-line-no">2565</span><span id="line-2565"></span> <span class="source-line-no">2566</span><span id="line-2566"> /**</span> <span class="source-line-no">2567</span><span id="line-2567"> * This brand's global Root ID.</span> <span class="source-line-no">2568</span><span id="line-2568"> */</span> <span class="source-line-no">2569</span><span id="line-2569"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2570</span><span id="line-2570"> public void setGlobalBrandRootId(final String globalBrandRootId) {</span> <span class="source-line-no">2571</span><span id="line-2571"> this.globalBrandRootId = globalBrandRootId;</span> <span class="source-line-no">2572</span><span id="line-2572"> }</span> <span class="source-line-no">2573</span><span id="line-2573"></span> <span class="source-line-no">2574</span><span id="line-2574"> /**</span> <span class="source-line-no">2575</span><span id="line-2575"> * This brand's global (parent) Page.</span> <span class="source-line-no">2576</span><span id="line-2576"> * </span> <span class="source-line-no">2577</span><span id="line-2577"> * @since 1.10.0</span> <span class="source-line-no">2578</span><span id="line-2578"> * @return this brand's global (parent) Page</span> <span class="source-line-no">2579</span><span id="line-2579"> */</span> <span class="source-line-no">2580</span><span id="line-2580"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2581</span><span id="line-2581"> public Page getGlobalBrandParentPage() {</span> <span class="source-line-no">2582</span><span id="line-2582"> return this.globalBrandParentPage;</span> <span class="source-line-no">2583</span><span id="line-2583"> }</span> <span class="source-line-no">2584</span><span id="line-2584"></span> <span class="source-line-no">2585</span><span id="line-2585"> /**</span> <span class="source-line-no">2586</span><span id="line-2586"> * This brand's global (parent) Page.</span> <span class="source-line-no">2587</span><span id="line-2587"> * </span> <span class="source-line-no">2588</span><span id="line-2588"> * @since 1.10.0</span> <span class="source-line-no">2589</span><span id="line-2589"> */</span> <span class="source-line-no">2590</span><span id="line-2590"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2591</span><span id="line-2591"> public void setGlobalBrandParentPage(final Page globalBrandParentPage) {</span> <span class="source-line-no">2592</span><span id="line-2592"> this.globalBrandParentPage = globalBrandParentPage;</span> <span class="source-line-no">2593</span><span id="line-2593"> }</span> <span class="source-line-no">2594</span><span id="line-2594"></span> <span class="source-line-no">2595</span><span id="line-2595"> /**</span> <span class="source-line-no">2596</span><span id="line-2596"> * Indicates whether this Page has added the app making the query in a Page tab.</span> <span class="source-line-no">2597</span><span id="line-2597"> * </span> <span class="source-line-no">2598</span><span id="line-2598"> * @since 1.10.0</span> <span class="source-line-no">2599</span><span id="line-2599"> * @return Indicates whether this Page has added the app making the query in a Page tab</span> <span class="source-line-no">2600</span><span id="line-2600"> */</span> <span class="source-line-no">2601</span><span id="line-2601"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2602</span><span id="line-2602"> public Boolean getHasAddedApp() {</span> <span class="source-line-no">2603</span><span id="line-2603"> return this.hasAddedApp;</span> <span class="source-line-no">2604</span><span id="line-2604"> }</span> <span class="source-line-no">2605</span><span id="line-2605"></span> <span class="source-line-no">2606</span><span id="line-2606"> /**</span> <span class="source-line-no">2607</span><span id="line-2607"> * Indicates whether this Page has added the app making the query in a Page tab.</span> <span class="source-line-no">2608</span><span id="line-2608"> * </span> <span class="source-line-no">2609</span><span id="line-2609"> * @since 1.10.0</span> <span class="source-line-no">2610</span><span id="line-2610"> */</span> <span class="source-line-no">2611</span><span id="line-2611"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2612</span><span id="line-2612"> public void setHasAddedApp(final Boolean hasAddedApp) {</span> <span class="source-line-no">2613</span><span id="line-2613"> this.hasAddedApp = hasAddedApp;</span> <span class="source-line-no">2614</span><span id="line-2614"> }</span> <span class="source-line-no">2615</span><span id="line-2615"></span> <span class="source-line-no">2616</span><span id="line-2616"> /**</span> <span class="source-line-no">2617</span><span id="line-2617"> * has whatsapp number</span> <span class="source-line-no">2618</span><span id="line-2618"> *</span> <span class="source-line-no">2619</span><span id="line-2619"> * @return has whatsapp number</span> <span class="source-line-no">2620</span><span id="line-2620"> */</span> <span class="source-line-no">2621</span><span id="line-2621"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2622</span><span id="line-2622"> public Boolean getHasWhatsappNumber() {</span> <span class="source-line-no">2623</span><span id="line-2623"> return this.hasWhatsappNumber;</span> <span class="source-line-no">2624</span><span id="line-2624"> }</span> <span class="source-line-no">2625</span><span id="line-2625"></span> <span class="source-line-no">2626</span><span id="line-2626"> /**</span> <span class="source-line-no">2627</span><span id="line-2627"> * has whatsapp number</span> <span class="source-line-no">2628</span><span id="line-2628"> */</span> <span class="source-line-no">2629</span><span id="line-2629"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2630</span><span id="line-2630"> public void setHasWhatsappNumber(final Boolean hasWhatsappNumber) {</span> <span class="source-line-no">2631</span><span id="line-2631"> this.hasWhatsappNumber = hasWhatsappNumber;</span> <span class="source-line-no">2632</span><span id="line-2632"> }</span> <span class="source-line-no">2633</span><span id="line-2633"></span> <span class="source-line-no">2634</span><span id="line-2634"> /**</span> <span class="source-line-no">2635</span><span id="line-2635"> * Indicates whether WhatsApp number connected to this page is a WhatsApp business number</span> <span class="source-line-no">2636</span><span id="line-2636"> *</span> <span class="source-line-no">2637</span><span id="line-2637"> * @return Whatsapp business number</span> <span class="source-line-no">2638</span><span id="line-2638"> */</span> <span class="source-line-no">2639</span><span id="line-2639"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2640</span><span id="line-2640"> public Boolean getHasWhatsappBusinessNumber() {</span> <span class="source-line-no">2641</span><span id="line-2641"> return this.hasWhatsappBusinessNumber;</span> <span class="source-line-no">2642</span><span id="line-2642"> }</span> <span class="source-line-no">2643</span><span id="line-2643"></span> <span class="source-line-no">2644</span><span id="line-2644"> /**</span> <span class="source-line-no">2645</span><span id="line-2645"> * Indicates whether WhatsApp number connected to this page is a WhatsApp business number</span> <span class="source-line-no">2646</span><span id="line-2646"> */</span> <span class="source-line-no">2647</span><span id="line-2647"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2648</span><span id="line-2648"> public void setHasWhatsappBusinessNumber(final Boolean hasWhatsappBusinessNumber) {</span> <span class="source-line-no">2649</span><span id="line-2649"> this.hasWhatsappBusinessNumber = hasWhatsappBusinessNumber;</span> <span class="source-line-no">2650</span><span id="line-2650"> }</span> <span class="source-line-no">2651</span><span id="line-2651"></span> <span class="source-line-no">2652</span><span id="line-2652"> /**</span> <span class="source-line-no">2653</span><span id="line-2653"> * Hometown of the band. Applicable to Bands</span> <span class="source-line-no">2654</span><span id="line-2654"> * </span> <span class="source-line-no">2655</span><span id="line-2655"> * @since 1.10.0</span> <span class="source-line-no">2656</span><span id="line-2656"> * @return Hometown of the band</span> <span class="source-line-no">2657</span><span id="line-2657"> */</span> <span class="source-line-no">2658</span><span id="line-2658"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2659</span><span id="line-2659"> public String getHometown() {</span> <span class="source-line-no">2660</span><span id="line-2660"> return this.hometown;</span> <span class="source-line-no">2661</span><span id="line-2661"> }</span> <span class="source-line-no">2662</span><span id="line-2662"></span> <span class="source-line-no">2663</span><span id="line-2663"> /**</span> <span class="source-line-no">2664</span><span id="line-2664"> * Hometown of the band. Applicable to Bands</span> <span class="source-line-no">2665</span><span id="line-2665"> * </span> <span class="source-line-no">2666</span><span id="line-2666"> * @since 1.10.0</span> <span class="source-line-no">2667</span><span id="line-2667"> */</span> <span class="source-line-no">2668</span><span id="line-2668"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2669</span><span id="line-2669"> public void setHometown(final String hometown) {</span> <span class="source-line-no">2670</span><span id="line-2670"> this.hometown = hometown;</span> <span class="source-line-no">2671</span><span id="line-2671"> }</span> <span class="source-line-no">2672</span><span id="line-2672"></span> <span class="source-line-no">2673</span><span id="line-2673"> /**</span> <span class="source-line-no">2674</span><span id="line-2674"> * Opening hours</span> <span class="source-line-no">2675</span><span id="line-2675"> *</span> <span class="source-line-no">2676</span><span id="line-2676"> * @since 1.10.1</span> <span class="source-line-no">2677</span><span id="line-2677"> */</span> <span class="source-line-no">2678</span><span id="line-2678"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2679</span><span id="line-2679"> public Hours getHours() {</span> <span class="source-line-no">2680</span><span id="line-2680"> return this.hours;</span> <span class="source-line-no">2681</span><span id="line-2681"> }</span> <span class="source-line-no">2682</span><span id="line-2682"></span> <span class="source-line-no">2683</span><span id="line-2683"> /**</span> <span class="source-line-no">2684</span><span id="line-2684"> * Opening hours</span> <span class="source-line-no">2685</span><span id="line-2685"> *</span> <span class="source-line-no">2686</span><span id="line-2686"> * @since 1.10.1</span> <span class="source-line-no">2687</span><span id="line-2687"> */</span> <span class="source-line-no">2688</span><span id="line-2688"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2689</span><span id="line-2689"> public void setHours(final Hours hours) {</span> <span class="source-line-no">2690</span><span id="line-2690"> this.hours = hours;</span> <span class="source-line-no">2691</span><span id="line-2691"> }</span> <span class="source-line-no">2692</span><span id="line-2692"></span> <span class="source-line-no">2693</span><span id="line-2693"> /**</span> <span class="source-line-no">2694</span><span id="line-2694"> * Legal information about the Page publishers.</span> <span class="source-line-no">2695</span><span id="line-2695"> * </span> <span class="source-line-no">2696</span><span id="line-2696"> * @since 1.10.0</span> <span class="source-line-no">2697</span><span id="line-2697"> * @return Legal information about the Page publishers</span> <span class="source-line-no">2698</span><span id="line-2698"> */</span> <span class="source-line-no">2699</span><span id="line-2699"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2700</span><span id="line-2700"> public String getImpressum() {</span> <span class="source-line-no">2701</span><span id="line-2701"> return this.impressum;</span> <span class="source-line-no">2702</span><span id="line-2702"> }</span> <span class="source-line-no">2703</span><span id="line-2703"></span> <span class="source-line-no">2704</span><span id="line-2704"> /**</span> <span class="source-line-no">2705</span><span id="line-2705"> * Legal information about the Page publishers.</span> <span class="source-line-no">2706</span><span id="line-2706"> * </span> <span class="source-line-no">2707</span><span id="line-2707"> * @since 1.10.0</span> <span class="source-line-no">2708</span><span id="line-2708"> */</span> <span class="source-line-no">2709</span><span id="line-2709"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2710</span><span id="line-2710"> public void setImpressum(final String impressum) {</span> <span class="source-line-no">2711</span><span id="line-2711"> this.impressum = impressum;</span> <span class="source-line-no">2712</span><span id="line-2712"> }</span> <span class="source-line-no">2713</span><span id="line-2713"></span> <span class="source-line-no">2714</span><span id="line-2714"> /**</span> <span class="source-line-no">2715</span><span id="line-2715"> * Influences on the band. Applicable to Bands</span> <span class="source-line-no">2716</span><span id="line-2716"> * </span> <span class="source-line-no">2717</span><span id="line-2717"> * @since 1.10.0</span> <span class="source-line-no">2718</span><span id="line-2718"> * @return Influences on the band</span> <span class="source-line-no">2719</span><span id="line-2719"> */</span> <span class="source-line-no">2720</span><span id="line-2720"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2721</span><span id="line-2721"> public String getInfluences() {</span> <span class="source-line-no">2722</span><span id="line-2722"> return this.influences;</span> <span class="source-line-no">2723</span><span id="line-2723"> }</span> <span class="source-line-no">2724</span><span id="line-2724"></span> <span class="source-line-no">2725</span><span id="line-2725"> /**</span> <span class="source-line-no">2726</span><span id="line-2726"> * Influences on the band. Applicable to Bands</span> <span class="source-line-no">2727</span><span id="line-2727"> * </span> <span class="source-line-no">2728</span><span id="line-2728"> * @since 1.10.0</span> <span class="source-line-no">2729</span><span id="line-2729"> */</span> <span class="source-line-no">2730</span><span id="line-2730"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2731</span><span id="line-2731"> public void setInfluences(final String influences) {</span> <span class="source-line-no">2732</span><span id="line-2732"> this.influences = influences;</span> <span class="source-line-no">2733</span><span id="line-2733"> }</span> <span class="source-line-no">2734</span><span id="line-2734"></span> <span class="source-line-no">2735</span><span id="line-2735"> /**</span> <span class="source-line-no">2736</span><span id="line-2736"> * Whether the business corresponding to this Page is permanently closed.</span> <span class="source-line-no">2737</span><span id="line-2737"> * </span> <span class="source-line-no">2738</span><span id="line-2738"> * @since 1.10.0</span> <span class="source-line-no">2739</span><span id="line-2739"> * @return Whether the business corresponding to this Page is permanently closed</span> <span class="source-line-no">2740</span><span id="line-2740"> */</span> <span class="source-line-no">2741</span><span id="line-2741"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2742</span><span id="line-2742"> public Boolean getIsPermanentlyClosed() {</span> <span class="source-line-no">2743</span><span id="line-2743"> return this.isPermanentlyClosed;</span> <span class="source-line-no">2744</span><span id="line-2744"> }</span> <span class="source-line-no">2745</span><span id="line-2745"></span> <span class="source-line-no">2746</span><span id="line-2746"> /**</span> <span class="source-line-no">2747</span><span id="line-2747"> * Whether the business corresponding to this Page is permanently closed.</span> <span class="source-line-no">2748</span><span id="line-2748"> * </span> <span class="source-line-no">2749</span><span id="line-2749"> * @since 1.10.0</span> <span class="source-line-no">2750</span><span id="line-2750"> */</span> <span class="source-line-no">2751</span><span id="line-2751"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2752</span><span id="line-2752"> public void setIsPermanentlyClosed(final Boolean isPermanentlyClosed) {</span> <span class="source-line-no">2753</span><span id="line-2753"> this.isPermanentlyClosed = isPermanentlyClosed;</span> <span class="source-line-no">2754</span><span id="line-2754"> }</span> <span class="source-line-no">2755</span><span id="line-2755"></span> <span class="source-line-no">2756</span><span id="line-2756"> /**</span> <span class="source-line-no">2757</span><span id="line-2757"> * owner business of this object</span> <span class="source-line-no">2758</span><span id="line-2758"> *</span> <span class="source-line-no">2759</span><span id="line-2759"> * @return owner business of this object</span> <span class="source-line-no">2760</span><span id="line-2760"> */</span> <span class="source-line-no">2761</span><span id="line-2761"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2762</span><span id="line-2762"> public Business getOwnerBusiness() {</span> <span class="source-line-no">2763</span><span id="line-2763"> return this.ownerBusiness;</span> <span class="source-line-no">2764</span><span id="line-2764"> }</span> <span class="source-line-no">2765</span><span id="line-2765"></span> <span class="source-line-no">2766</span><span id="line-2766"> /**</span> <span class="source-line-no">2767</span><span id="line-2767"> * owner business of this object</span> <span class="source-line-no">2768</span><span id="line-2768"> */</span> <span class="source-line-no">2769</span><span id="line-2769"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2770</span><span id="line-2770"> public void setOwnerBusiness(final Business ownerBusiness) {</span> <span class="source-line-no">2771</span><span id="line-2771"> this.ownerBusiness = ownerBusiness;</span> <span class="source-line-no">2772</span><span id="line-2772"> }</span> <span class="source-line-no">2773</span><span id="line-2773"></span> <span class="source-line-no">2774</span><span id="line-2774"> /**</span> <span class="source-line-no">2775</span><span id="line-2775"> * Overall page rating based on rating survey from users on a scale of 1-5. This value is normalized and is not</span> <span class="source-line-no">2776</span><span id="line-2776"> * guaranteed to be a strict average of user ratings. If there are 0 or a small number of ratings, this field will not</span> <span class="source-line-no">2777</span><span id="line-2777"> * be returned.</span> <span class="source-line-no">2778</span><span id="line-2778"> */</span> <span class="source-line-no">2779</span><span id="line-2779"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2780</span><span id="line-2780"> public Double getOverallStarRating() {</span> <span class="source-line-no">2781</span><span id="line-2781"> return this.overallStarRating;</span> <span class="source-line-no">2782</span><span id="line-2782"> }</span> <span class="source-line-no">2783</span><span id="line-2783"></span> <span class="source-line-no">2784</span><span id="line-2784"> /**</span> <span class="source-line-no">2785</span><span id="line-2785"> * Overall page rating based on rating survey from users on a scale of 1-5. This value is normalized and is not</span> <span class="source-line-no">2786</span><span id="line-2786"> * guaranteed to be a strict average of user ratings. If there are 0 or a small number of ratings, this field will not</span> <span class="source-line-no">2787</span><span id="line-2787"> * be returned.</span> <span class="source-line-no">2788</span><span id="line-2788"> */</span> <span class="source-line-no">2789</span><span id="line-2789"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2790</span><span id="line-2790"> public void setOverallStarRating(final Double overallStarRating) {</span> <span class="source-line-no">2791</span><span id="line-2791"> this.overallStarRating = overallStarRating;</span> <span class="source-line-no">2792</span><span id="line-2792"> }</span> <span class="source-line-no">2793</span><span id="line-2793"></span> <span class="source-line-no">2794</span><span id="line-2794"> /**</span> <span class="source-line-no">2795</span><span id="line-2795"> * Number of ratings for the page (limited to ratings that are publicly accessible</span> <span class="source-line-no">2796</span><span id="line-2796"> */</span> <span class="source-line-no">2797</span><span id="line-2797"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2798</span><span id="line-2798"> public Integer getRatingCount() {</span> <span class="source-line-no">2799</span><span id="line-2799"> return this.ratingCount;</span> <span class="source-line-no">2800</span><span id="line-2800"> }</span> <span class="source-line-no">2801</span><span id="line-2801"></span> <span class="source-line-no">2802</span><span id="line-2802"> /**</span> <span class="source-line-no">2803</span><span id="line-2803"> * Number of ratings for the page (limited to ratings that are publicly accessible</span> <span class="source-line-no">2804</span><span id="line-2804"> */</span> <span class="source-line-no">2805</span><span id="line-2805"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2806</span><span id="line-2806"> public void setRatingCount(final Integer ratingCount) {</span> <span class="source-line-no">2807</span><span id="line-2807"> this.ratingCount = ratingCount;</span> <span class="source-line-no">2808</span><span id="line-2808"> }</span> <span class="source-line-no">2809</span><span id="line-2809"></span> <span class="source-line-no">2810</span><span id="line-2810"> /**</span> <span class="source-line-no">2811</span><span id="line-2811"> * Messenger page scope id associated with page and a user using account_linking_token</span> <span class="source-line-no">2812</span><span id="line-2812"> *</span> <span class="source-line-no">2813</span><span id="line-2813"> * @return Messenger page scope id associated with page and a user using account_linking_token</span> <span class="source-line-no">2814</span><span id="line-2814"> */</span> <span class="source-line-no">2815</span><span id="line-2815"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2816</span><span id="line-2816"> public String getRecipient() {</span> <span class="source-line-no">2817</span><span id="line-2817"> return this.recipient;</span> <span class="source-line-no">2818</span><span id="line-2818"> }</span> <span class="source-line-no">2819</span><span id="line-2819"></span> <span class="source-line-no">2820</span><span id="line-2820"> /**</span> <span class="source-line-no">2821</span><span id="line-2821"> * Messenger page scope id associated with page and a user using account_linking_token</span> <span class="source-line-no">2822</span><span id="line-2822"> */</span> <span class="source-line-no">2823</span><span id="line-2823"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2824</span><span id="line-2824"> public void setRecipient(final String recipient) {</span> <span class="source-line-no">2825</span><span id="line-2825"> this.recipient = recipient;</span> <span class="source-line-no">2826</span><span id="line-2826"> }</span> <span class="source-line-no">2827</span><span id="line-2827"></span> <span class="source-line-no">2828</span><span id="line-2828"> /**</span> <span class="source-line-no">2829</span><span id="line-2829"> * Personal information. Applicable to Pages representing People</span> <span class="source-line-no">2830</span><span id="line-2830"> * </span> <span class="source-line-no">2831</span><span id="line-2831"> * @since 1.10.0</span> <span class="source-line-no">2832</span><span id="line-2832"> * @return Personal information</span> <span class="source-line-no">2833</span><span id="line-2833"> */</span> <span class="source-line-no">2834</span><span id="line-2834"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2835</span><span id="line-2835"> public String getPersonalInfo() {</span> <span class="source-line-no">2836</span><span id="line-2836"> return this.personalInfo;</span> <span class="source-line-no">2837</span><span id="line-2837"> }</span> <span class="source-line-no">2838</span><span id="line-2838"></span> <span class="source-line-no">2839</span><span id="line-2839"> /**</span> <span class="source-line-no">2840</span><span id="line-2840"> * Personal information. Applicable to Pages representing People</span> <span class="source-line-no">2841</span><span id="line-2841"> * </span> <span class="source-line-no">2842</span><span id="line-2842"> * @since 1.10.0</span> <span class="source-line-no">2843</span><span id="line-2843"> */</span> <span class="source-line-no">2844</span><span id="line-2844"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2845</span><span id="line-2845"> public void setPersonalInfo(final String personalInfo) {</span> <span class="source-line-no">2846</span><span id="line-2846"> this.personalInfo = personalInfo;</span> <span class="source-line-no">2847</span><span id="line-2847"> }</span> <span class="source-line-no">2848</span><span id="line-2848"></span> <span class="source-line-no">2849</span><span id="line-2849"> /**</span> <span class="source-line-no">2850</span><span id="line-2850"> * Payment options accepted by the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">2851</span><span id="line-2851"> * </span> <span class="source-line-no">2852</span><span id="line-2852"> * @since 1.10.0</span> <span class="source-line-no">2853</span><span id="line-2853"> * @return Payment options accepted by the business</span> <span class="source-line-no">2854</span><span id="line-2854"> */</span> <span class="source-line-no">2855</span><span id="line-2855"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2856</span><span id="line-2856"> public PagePaymentOptions getPaymentOptions() {</span> <span class="source-line-no">2857</span><span id="line-2857"> return this.paymentOptions;</span> <span class="source-line-no">2858</span><span id="line-2858"> }</span> <span class="source-line-no">2859</span><span id="line-2859"></span> <span class="source-line-no">2860</span><span id="line-2860"> /**</span> <span class="source-line-no">2861</span><span id="line-2861"> * Payment options accepted by the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">2862</span><span id="line-2862"> * </span> <span class="source-line-no">2863</span><span id="line-2863"> * @since 1.10.0</span> <span class="source-line-no">2864</span><span id="line-2864"> */</span> <span class="source-line-no">2865</span><span id="line-2865"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2866</span><span id="line-2866"> public void setPaymentOptions(final PagePaymentOptions paymentOptions) {</span> <span class="source-line-no">2867</span><span id="line-2867"> this.paymentOptions = paymentOptions;</span> <span class="source-line-no">2868</span><span id="line-2868"> }</span> <span class="source-line-no">2869</span><span id="line-2869"></span> <span class="source-line-no">2870</span><span id="line-2870"> /**</span> <span class="source-line-no">2871</span><span id="line-2871"> * Personal interests. Applicable to Pages representing People</span> <span class="source-line-no">2872</span><span id="line-2872"> * </span> <span class="source-line-no">2873</span><span id="line-2873"> * @since 1.10.0</span> <span class="source-line-no">2874</span><span id="line-2874"> * @return Personal interests</span> <span class="source-line-no">2875</span><span id="line-2875"> */</span> <span class="source-line-no">2876</span><span id="line-2876"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2877</span><span id="line-2877"> public String getPersonalInterests() {</span> <span class="source-line-no">2878</span><span id="line-2878"> return this.personalInterests;</span> <span class="source-line-no">2879</span><span id="line-2879"> }</span> <span class="source-line-no">2880</span><span id="line-2880"></span> <span class="source-line-no">2881</span><span id="line-2881"> /**</span> <span class="source-line-no">2882</span><span id="line-2882"> * Personal interests. Applicable to Pages representing People</span> <span class="source-line-no">2883</span><span id="line-2883"> * </span> <span class="source-line-no">2884</span><span id="line-2884"> * @since 1.10.0</span> <span class="source-line-no">2885</span><span id="line-2885"> */</span> <span class="source-line-no">2886</span><span id="line-2886"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2887</span><span id="line-2887"> public void setPersonalInterests(final String personalInterests) {</span> <span class="source-line-no">2888</span><span id="line-2888"> this.personalInterests = personalInterests;</span> <span class="source-line-no">2889</span><span id="line-2889"> }</span> <span class="source-line-no">2890</span><span id="line-2890"></span> <span class="source-line-no">2891</span><span id="line-2891"> /**</span> <span class="source-line-no">2892</span><span id="line-2892"> * Pharmacy safety information. Applicable to Pharmaceutical companies</span> <span class="source-line-no">2893</span><span id="line-2893"> * </span> <span class="source-line-no">2894</span><span id="line-2894"> * @since 1.10.0</span> <span class="source-line-no">2895</span><span id="line-2895"> * @return Pharmacy safety information</span> <span class="source-line-no">2896</span><span id="line-2896"> */</span> <span class="source-line-no">2897</span><span id="line-2897"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2898</span><span id="line-2898"> public String getPharmaSafetyInfo() {</span> <span class="source-line-no">2899</span><span id="line-2899"> return this.pharmaSafetyInfo;</span> <span class="source-line-no">2900</span><span id="line-2900"> }</span> <span class="source-line-no">2901</span><span id="line-2901"></span> <span class="source-line-no">2902</span><span id="line-2902"> /**</span> <span class="source-line-no">2903</span><span id="line-2903"> * Pharmacy safety information. Applicable to Pharmaceutical companies</span> <span class="source-line-no">2904</span><span id="line-2904"> * </span> <span class="source-line-no">2905</span><span id="line-2905"> * @since 1.10.0</span> <span class="source-line-no">2906</span><span id="line-2906"> */</span> <span class="source-line-no">2907</span><span id="line-2907"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2908</span><span id="line-2908"> public void setPharmaSafetyInfo(final String pharmaSafetyInfo) {</span> <span class="source-line-no">2909</span><span id="line-2909"> this.pharmaSafetyInfo = pharmaSafetyInfo;</span> <span class="source-line-no">2910</span><span id="line-2910"> }</span> <span class="source-line-no">2911</span><span id="line-2911"></span> <span class="source-line-no">2912</span><span id="line-2912"> /**</span> <span class="source-line-no">2913</span><span id="line-2913"> * For places, the category of the place.</span> <span class="source-line-no">2914</span><span id="line-2914"> *</span> <span class="source-line-no">2915</span><span id="line-2915"> * @return For places, the category of the place</span> <span class="source-line-no">2916</span><span id="line-2916"> */</span> <span class="source-line-no">2917</span><span id="line-2917"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2918</span><span id="line-2918"> public String getPlaceType() {</span> <span class="source-line-no">2919</span><span id="line-2919"> return this.placeType;</span> <span class="source-line-no">2920</span><span id="line-2920"> }</span> <span class="source-line-no">2921</span><span id="line-2921"></span> <span class="source-line-no">2922</span><span id="line-2922"> /**</span> <span class="source-line-no">2923</span><span id="line-2923"> * For places, the category of the place.</span> <span class="source-line-no">2924</span><span id="line-2924"> */</span> <span class="source-line-no">2925</span><span id="line-2925"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2926</span><span id="line-2926"> public void setPlaceType(final String placeType) {</span> <span class="source-line-no">2927</span><span id="line-2927"> this.placeType = placeType;</span> <span class="source-line-no">2928</span><span id="line-2928"> }</span> <span class="source-line-no">2929</span><span id="line-2929"></span> <span class="source-line-no">2930</span><span id="line-2930"> /**</span> <span class="source-line-no">2931</span><span id="line-2931"> * The plot outline of the film. Applicable to Films</span> <span class="source-line-no">2932</span><span id="line-2932"> * </span> <span class="source-line-no">2933</span><span id="line-2933"> * @since 1.10.0</span> <span class="source-line-no">2934</span><span id="line-2934"> * @return The plot outline of the film</span> <span class="source-line-no">2935</span><span id="line-2935"> */</span> <span class="source-line-no">2936</span><span id="line-2936"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2937</span><span id="line-2937"> public String getPlotOutline() {</span> <span class="source-line-no">2938</span><span id="line-2938"> return this.plotOutline;</span> <span class="source-line-no">2939</span><span id="line-2939"> }</span> <span class="source-line-no">2940</span><span id="line-2940"></span> <span class="source-line-no">2941</span><span id="line-2941"> /**</span> <span class="source-line-no">2942</span><span id="line-2942"> * The plot outline of the film. Applicable to Films</span> <span class="source-line-no">2943</span><span id="line-2943"> * </span> <span class="source-line-no">2944</span><span id="line-2944"> * @since 1.10.0</span> <span class="source-line-no">2945</span><span id="line-2945"> */</span> <span class="source-line-no">2946</span><span id="line-2946"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2947</span><span id="line-2947"> public void setPlotOutline(final String plotOutline) {</span> <span class="source-line-no">2948</span><span id="line-2948"> this.plotOutline = plotOutline;</span> <span class="source-line-no">2949</span><span id="line-2949"> }</span> <span class="source-line-no">2950</span><span id="line-2950"></span> <span class="source-line-no">2951</span><span id="line-2951"> /**</span> <span class="source-line-no">2952</span><span id="line-2952"> * Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$</span> <span class="source-line-no">2953</span><span id="line-2953"> * (30-50), $$$$ (50+) or Unspecified</span> <span class="source-line-no">2954</span><span id="line-2954"> * </span> <span class="source-line-no">2955</span><span id="line-2955"> * @since 1.10.0</span> <span class="source-line-no">2956</span><span id="line-2956"> * @return Price range of the business</span> <span class="source-line-no">2957</span><span id="line-2957"> */</span> <span class="source-line-no">2958</span><span id="line-2958"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2959</span><span id="line-2959"> public String getPriceRange() {</span> <span class="source-line-no">2960</span><span id="line-2960"> return this.priceRange;</span> <span class="source-line-no">2961</span><span id="line-2961"> }</span> <span class="source-line-no">2962</span><span id="line-2962"></span> <span class="source-line-no">2963</span><span id="line-2963"> /**</span> <span class="source-line-no">2964</span><span id="line-2964"> * Price range of the business. Applicable to Restaurants or Nightlife. Can be one of $ (0-10), $$ (10-30), $$$</span> <span class="source-line-no">2965</span><span id="line-2965"> * (30-50), $$$$ (50+) or Unspecified</span> <span class="source-line-no">2966</span><span id="line-2966"> * </span> <span class="source-line-no">2967</span><span id="line-2967"> * @since 1.10.0</span> <span class="source-line-no">2968</span><span id="line-2968"> */</span> <span class="source-line-no">2969</span><span id="line-2969"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2970</span><span id="line-2970"> public void setPriceRange(final String priceRange) {</span> <span class="source-line-no">2971</span><span id="line-2971"> this.priceRange = priceRange;</span> <span class="source-line-no">2972</span><span id="line-2972"> }</span> <span class="source-line-no">2973</span><span id="line-2973"></span> <span class="source-line-no">2974</span><span id="line-2974"> /**</span> <span class="source-line-no">2975</span><span id="line-2975"> * The productor of the film. Applicable to Films</span> <span class="source-line-no">2976</span><span id="line-2976"> * </span> <span class="source-line-no">2977</span><span id="line-2977"> * @since 1.10.0</span> <span class="source-line-no">2978</span><span id="line-2978"> * @return The productor of the film</span> <span class="source-line-no">2979</span><span id="line-2979"> */</span> <span class="source-line-no">2980</span><span id="line-2980"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2981</span><span id="line-2981"> public String getProducedBy() {</span> <span class="source-line-no">2982</span><span id="line-2982"> return this.producedBy;</span> <span class="source-line-no">2983</span><span id="line-2983"> }</span> <span class="source-line-no">2984</span><span id="line-2984"></span> <span class="source-line-no">2985</span><span id="line-2985"> /**</span> <span class="source-line-no">2986</span><span id="line-2986"> * The productor of the film. Applicable to Films</span> <span class="source-line-no">2987</span><span id="line-2987"> * </span> <span class="source-line-no">2988</span><span id="line-2988"> * @since 1.10.0</span> <span class="source-line-no">2989</span><span id="line-2989"> */</span> <span class="source-line-no">2990</span><span id="line-2990"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">2991</span><span id="line-2991"> public void setProducedBy(final String producedBy) {</span> <span class="source-line-no">2992</span><span id="line-2992"> this.producedBy = producedBy;</span> <span class="source-line-no">2993</span><span id="line-2993"> }</span> <span class="source-line-no">2994</span><span id="line-2994"></span> <span class="source-line-no">2995</span><span id="line-2995"> /**</span> <span class="source-line-no">2996</span><span id="line-2996"> * Reason why a post isn't eligible for boosting. Only visible to Page Admins</span> <span class="source-line-no">2997</span><span id="line-2997"> * </span> <span class="source-line-no">2998</span><span id="line-2998"> * @since 1.10.0</span> <span class="source-line-no">2999</span><span id="line-2999"> * @return Reason why a post isn't eligible for boosting</span> <span class="source-line-no">3000</span><span id="line-3000"> */</span> <span class="source-line-no">3001</span><span id="line-3001"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3002</span><span id="line-3002"> public Boolean getPromotionEligible() {</span> <span class="source-line-no">3003</span><span id="line-3003"> return this.promotionEligible;</span> <span class="source-line-no">3004</span><span id="line-3004"> }</span> <span class="source-line-no">3005</span><span id="line-3005"></span> <span class="source-line-no">3006</span><span id="line-3006"> /**</span> <span class="source-line-no">3007</span><span id="line-3007"> * Reason why a post isn't eligible for boosting. Only visible to Page Admins</span> <span class="source-line-no">3008</span><span id="line-3008"> * </span> <span class="source-line-no">3009</span><span id="line-3009"> * @since 1.10.0</span> <span class="source-line-no">3010</span><span id="line-3010"> */</span> <span class="source-line-no">3011</span><span id="line-3011"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3012</span><span id="line-3012"> public void setPromotionEligible(final Boolean promotionEligible) {</span> <span class="source-line-no">3013</span><span id="line-3013"> this.promotionEligible = promotionEligible;</span> <span class="source-line-no">3014</span><span id="line-3014"> }</span> <span class="source-line-no">3015</span><span id="line-3015"></span> <span class="source-line-no">3016</span><span id="line-3016"> /**</span> <span class="source-line-no">3017</span><span id="line-3017"> * Reason, for which boosted posts are not eligible. Only visible to a page admin</span> <span class="source-line-no">3018</span><span id="line-3018"> * </span> <span class="source-line-no">3019</span><span id="line-3019"> * @since 1.10.0</span> <span class="source-line-no">3020</span><span id="line-3020"> * @return Reason, for which boosted posts are not eligible</span> <span class="source-line-no">3021</span><span id="line-3021"> */</span> <span class="source-line-no">3022</span><span id="line-3022"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3023</span><span id="line-3023"> public String getPromotionIneligibleReason() {</span> <span class="source-line-no">3024</span><span id="line-3024"> return this.promotionIneligibleReason;</span> <span class="source-line-no">3025</span><span id="line-3025"> }</span> <span class="source-line-no">3026</span><span id="line-3026"></span> <span class="source-line-no">3027</span><span id="line-3027"> /**</span> <span class="source-line-no">3028</span><span id="line-3028"> * Reason, for which boosted posts are not eligible. Only visible to a page admin</span> <span class="source-line-no">3029</span><span id="line-3029"> * </span> <span class="source-line-no">3030</span><span id="line-3030"> * @since 1.10.0</span> <span class="source-line-no">3031</span><span id="line-3031"> */</span> <span class="source-line-no">3032</span><span id="line-3032"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3033</span><span id="line-3033"> public void setPromotionIneligibleReason(final String promotionIneligibleReason) {</span> <span class="source-line-no">3034</span><span id="line-3034"> this.promotionIneligibleReason = promotionIneligibleReason;</span> <span class="source-line-no">3035</span><span id="line-3035"> }</span> <span class="source-line-no">3036</span><span id="line-3036"></span> <span class="source-line-no">3037</span><span id="line-3037"> /**</span> <span class="source-line-no">3038</span><span id="line-3038"> * Public transit to the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">3039</span><span id="line-3039"> * </span> <span class="source-line-no">3040</span><span id="line-3040"> * @since 1.10.0</span> <span class="source-line-no">3041</span><span id="line-3041"> * @return Public transit to the business</span> <span class="source-line-no">3042</span><span id="line-3042"> */</span> <span class="source-line-no">3043</span><span id="line-3043"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3044</span><span id="line-3044"> public String getPublicTransit() {</span> <span class="source-line-no">3045</span><span id="line-3045"> return this.publicTransit;</span> <span class="source-line-no">3046</span><span id="line-3046"> }</span> <span class="source-line-no">3047</span><span id="line-3047"></span> <span class="source-line-no">3048</span><span id="line-3048"> /**</span> <span class="source-line-no">3049</span><span id="line-3049"> * Public transit to the business. Applicable to Restaurants or Nightlife</span> <span class="source-line-no">3050</span><span id="line-3050"> * </span> <span class="source-line-no">3051</span><span id="line-3051"> * @since 1.10.0</span> <span class="source-line-no">3052</span><span id="line-3052"> */</span> <span class="source-line-no">3053</span><span id="line-3053"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3054</span><span id="line-3054"> public void setPublicTransit(final String publicTransit) {</span> <span class="source-line-no">3055</span><span id="line-3055"> this.publicTransit = publicTransit;</span> <span class="source-line-no">3056</span><span id="line-3056"> }</span> <span class="source-line-no">3057</span><span id="line-3057"></span> <span class="source-line-no">3058</span><span id="line-3058"> /**</span> <span class="source-line-no">3059</span><span id="line-3059"> * Record label of the band. Applicable to Bands</span> <span class="source-line-no">3060</span><span id="line-3060"> * </span> <span class="source-line-no">3061</span><span id="line-3061"> * @since 1.10.0</span> <span class="source-line-no">3062</span><span id="line-3062"> * @return Record label of the band</span> <span class="source-line-no">3063</span><span id="line-3063"> */</span> <span class="source-line-no">3064</span><span id="line-3064"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3065</span><span id="line-3065"> public String getRecordLabel() {</span> <span class="source-line-no">3066</span><span id="line-3066"> return this.recordLabel;</span> <span class="source-line-no">3067</span><span id="line-3067"> }</span> <span class="source-line-no">3068</span><span id="line-3068"></span> <span class="source-line-no">3069</span><span id="line-3069"> /**</span> <span class="source-line-no">3070</span><span id="line-3070"> * Record label of the band. Applicable to Bands</span> <span class="source-line-no">3071</span><span id="line-3071"> * </span> <span class="source-line-no">3072</span><span id="line-3072"> * @since 1.10.0</span> <span class="source-line-no">3073</span><span id="line-3073"> */</span> <span class="source-line-no">3074</span><span id="line-3074"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3075</span><span id="line-3075"> public void setRecordLabel(final String recordLabel) {</span> <span class="source-line-no">3076</span><span id="line-3076"> this.recordLabel = recordLabel;</span> <span class="source-line-no">3077</span><span id="line-3077"> }</span> <span class="source-line-no">3078</span><span id="line-3078"></span> <span class="source-line-no">3079</span><span id="line-3079"> /**</span> <span class="source-line-no">3080</span><span id="line-3080"> * The film's release date. Applicable to Films</span> <span class="source-line-no">3081</span><span id="line-3081"> * </span> <span class="source-line-no">3082</span><span id="line-3082"> * @since 1.10.0</span> <span class="source-line-no">3083</span><span id="line-3083"> * @return The film's release date</span> <span class="source-line-no">3084</span><span id="line-3084"> */</span> <span class="source-line-no">3085</span><span id="line-3085"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3086</span><span id="line-3086"> public String getReleaseDate() {</span> <span class="source-line-no">3087</span><span id="line-3087"> return this.releaseDate;</span> <span class="source-line-no">3088</span><span id="line-3088"> }</span> <span class="source-line-no">3089</span><span id="line-3089"></span> <span class="source-line-no">3090</span><span id="line-3090"> /**</span> <span class="source-line-no">3091</span><span id="line-3091"> * The film's release date. Applicable to Films</span> <span class="source-line-no">3092</span><span id="line-3092"> * </span> <span class="source-line-no">3093</span><span id="line-3093"> * @since 1.10.0</span> <span class="source-line-no">3094</span><span id="line-3094"> */</span> <span class="source-line-no">3095</span><span id="line-3095"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3096</span><span id="line-3096"> public void setReleaseDate(final String releaseDate) {</span> <span class="source-line-no">3097</span><span id="line-3097"> this.releaseDate = releaseDate;</span> <span class="source-line-no">3098</span><span id="line-3098"> }</span> <span class="source-line-no">3099</span><span id="line-3099"></span> <span class="source-line-no">3100</span><span id="line-3100"> /**</span> <span class="source-line-no">3101</span><span id="line-3101"> * Services the restaurant provides. Applicable to Restaurants</span> <span class="source-line-no">3102</span><span id="line-3102"> * </span> <span class="source-line-no">3103</span><span id="line-3103"> * @since 1.10.0</span> <span class="source-line-no">3104</span><span id="line-3104"> * @return Services the restaurant provides</span> <span class="source-line-no">3105</span><span id="line-3105"> */</span> <span class="source-line-no">3106</span><span id="line-3106"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3107</span><span id="line-3107"> public PageRestaurantServices getRestaurantServices() {</span> <span class="source-line-no">3108</span><span id="line-3108"> return this.restaurantServices;</span> <span class="source-line-no">3109</span><span id="line-3109"> }</span> <span class="source-line-no">3110</span><span id="line-3110"></span> <span class="source-line-no">3111</span><span id="line-3111"> /**</span> <span class="source-line-no">3112</span><span id="line-3112"> * Services the restaurant provides. Applicable to Restaurants</span> <span class="source-line-no">3113</span><span id="line-3113"> * </span> <span class="source-line-no">3114</span><span id="line-3114"> * @since 1.10.0</span> <span class="source-line-no">3115</span><span id="line-3115"> */</span> <span class="source-line-no">3116</span><span id="line-3116"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3117</span><span id="line-3117"> public void setRestaurantServices(final PageRestaurantServices restaurantServices) {</span> <span class="source-line-no">3118</span><span id="line-3118"> this.restaurantServices = restaurantServices;</span> <span class="source-line-no">3119</span><span id="line-3119"> }</span> <span class="source-line-no">3120</span><span id="line-3120"></span> <span class="source-line-no">3121</span><span id="line-3121"> /**</span> <span class="source-line-no">3122</span><span id="line-3122"> * The restaurant's specialties. Applicable to Restaurants</span> <span class="source-line-no">3123</span><span id="line-3123"> * </span> <span class="source-line-no">3124</span><span id="line-3124"> * @since 1.10.0</span> <span class="source-line-no">3125</span><span id="line-3125"> * @return The restaurant's specialties</span> <span class="source-line-no">3126</span><span id="line-3126"> */</span> <span class="source-line-no">3127</span><span id="line-3127"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3128</span><span id="line-3128"> public PageRestaurantSpecialties getRestaurantSpecialties() {</span> <span class="source-line-no">3129</span><span id="line-3129"> return this.restaurantSpecialties;</span> <span class="source-line-no">3130</span><span id="line-3130"> }</span> <span class="source-line-no">3131</span><span id="line-3131"></span> <span class="source-line-no">3132</span><span id="line-3132"> /**</span> <span class="source-line-no">3133</span><span id="line-3133"> * The restaurant's specialties. Applicable to Restaurants</span> <span class="source-line-no">3134</span><span id="line-3134"> * </span> <span class="source-line-no">3135</span><span id="line-3135"> * @since 1.10.0</span> <span class="source-line-no">3136</span><span id="line-3136"> */</span> <span class="source-line-no">3137</span><span id="line-3137"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3138</span><span id="line-3138"> public void setRestaurantSpecialties(final PageRestaurantSpecialties restaurantSpecialties) {</span> <span class="source-line-no">3139</span><span id="line-3139"> this.restaurantSpecialties = restaurantSpecialties;</span> <span class="source-line-no">3140</span><span id="line-3140"> }</span> <span class="source-line-no">3141</span><span id="line-3141"></span> <span class="source-line-no">3142</span><span id="line-3142"> /**</span> <span class="source-line-no">3143</span><span id="line-3143"> * Unique store code for this location Page</span> <span class="source-line-no">3144</span><span id="line-3144"> */</span> <span class="source-line-no">3145</span><span id="line-3145"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3146</span><span id="line-3146"> public String getStoreCode() {</span> <span class="source-line-no">3147</span><span id="line-3147"> return this.storeCode;</span> <span class="source-line-no">3148</span><span id="line-3148"> }</span> <span class="source-line-no">3149</span><span id="line-3149"></span> <span class="source-line-no">3150</span><span id="line-3150"> /**</span> <span class="source-line-no">3151</span><span id="line-3151"> * Unique store code for this location Page</span> <span class="source-line-no">3152</span><span id="line-3152"> */</span> <span class="source-line-no">3153</span><span id="line-3153"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3154</span><span id="line-3154"> public void setStoreCode(final String storeCode) {</span> <span class="source-line-no">3155</span><span id="line-3155"> this.storeCode = storeCode;</span> <span class="source-line-no">3156</span><span id="line-3156"> }</span> <span class="source-line-no">3157</span><span id="line-3157"></span> <span class="source-line-no">3158</span><span id="line-3158"> /**</span> <span class="source-line-no">3159</span><span id="line-3159"> * Location Page's store location descriptor</span> <span class="source-line-no">3160</span><span id="line-3160"> */</span> <span class="source-line-no">3161</span><span id="line-3161"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3162</span><span id="line-3162"> public String getStoreLocationDescriptor() {</span> <span class="source-line-no">3163</span><span id="line-3163"> return this.storeLocationDescriptor;</span> <span class="source-line-no">3164</span><span id="line-3164"> }</span> <span class="source-line-no">3165</span><span id="line-3165"></span> <span class="source-line-no">3166</span><span id="line-3166"> /**</span> <span class="source-line-no">3167</span><span id="line-3167"> * Location Page's store location descriptor</span> <span class="source-line-no">3168</span><span id="line-3168"> */</span> <span class="source-line-no">3169</span><span id="line-3169"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3170</span><span id="line-3170"> public void setStoreLocationDescriptor(final String storeLocationDescriptor) {</span> <span class="source-line-no">3171</span><span id="line-3171"> this.storeLocationDescriptor = storeLocationDescriptor;</span> <span class="source-line-no">3172</span><span id="line-3172"> }</span> <span class="source-line-no">3173</span><span id="line-3173"></span> <span class="source-line-no">3174</span><span id="line-3174"> /**</span> <span class="source-line-no">3175</span><span id="line-3175"> * The genre of the film. Applicable to Films</span> <span class="source-line-no">3176</span><span id="line-3176"> * </span> <span class="source-line-no">3177</span><span id="line-3177"> * @since 1.10.0</span> <span class="source-line-no">3178</span><span id="line-3178"> * @return The genre of the film</span> <span class="source-line-no">3179</span><span id="line-3179"> */</span> <span class="source-line-no">3180</span><span id="line-3180"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3181</span><span id="line-3181"> public String getGenre() {</span> <span class="source-line-no">3182</span><span id="line-3182"> return this.genre;</span> <span class="source-line-no">3183</span><span id="line-3183"> }</span> <span class="source-line-no">3184</span><span id="line-3184"></span> <span class="source-line-no">3185</span><span id="line-3185"> /**</span> <span class="source-line-no">3186</span><span id="line-3186"> * The genre of the film. Applicable to Films</span> <span class="source-line-no">3187</span><span id="line-3187"> * </span> <span class="source-line-no">3188</span><span id="line-3188"> * @since 1.10.0</span> <span class="source-line-no">3189</span><span id="line-3189"> */</span> <span class="source-line-no">3190</span><span id="line-3190"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3191</span><span id="line-3191"> public void setGenre(final String genre) {</span> <span class="source-line-no">3192</span><span id="line-3192"> this.genre = genre;</span> <span class="source-line-no">3193</span><span id="line-3193"> }</span> <span class="source-line-no">3194</span><span id="line-3194"></span> <span class="source-line-no">3195</span><span id="line-3195"> /**</span> <span class="source-line-no">3196</span><span id="line-3196"> * MPG of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">3197</span><span id="line-3197"> * </span> <span class="source-line-no">3198</span><span id="line-3198"> * @since 1.10.0</span> <span class="source-line-no">3199</span><span id="line-3199"> * @return MPG of the vehicle</span> <span class="source-line-no">3200</span><span id="line-3200"> */</span> <span class="source-line-no">3201</span><span id="line-3201"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3202</span><span id="line-3202"> public String getMpg() {</span> <span class="source-line-no">3203</span><span id="line-3203"> return this.mpg;</span> <span class="source-line-no">3204</span><span id="line-3204"> }</span> <span class="source-line-no">3205</span><span id="line-3205"></span> <span class="source-line-no">3206</span><span id="line-3206"> /**</span> <span class="source-line-no">3207</span><span id="line-3207"> * MPG of the vehicle. Applicable to Vehicles</span> <span class="source-line-no">3208</span><span id="line-3208"> * </span> <span class="source-line-no">3209</span><span id="line-3209"> * @since 1.10.0</span> <span class="source-line-no">3210</span><span id="line-3210"> */</span> <span class="source-line-no">3211</span><span id="line-3211"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3212</span><span id="line-3212"> public void setMpg(final String mpg) {</span> <span class="source-line-no">3213</span><span id="line-3213"> this.mpg = mpg;</span> <span class="source-line-no">3214</span><span id="line-3214"> }</span> <span class="source-line-no">3215</span><span id="line-3215"></span> <span class="source-line-no">3216</span><span id="line-3216"> /**</span> <span class="source-line-no">3217</span><span id="line-3217"> * The TV network for the TV show. Applicable to TV Shows</span> <span class="source-line-no">3218</span><span id="line-3218"> * </span> <span class="source-line-no">3219</span><span id="line-3219"> * @since 1.10.0</span> <span class="source-line-no">3220</span><span id="line-3220"> * @return The TV network for the TV show</span> <span class="source-line-no">3221</span><span id="line-3221"> */</span> <span class="source-line-no">3222</span><span id="line-3222"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3223</span><span id="line-3223"> public String getNetwork() {</span> <span class="source-line-no">3224</span><span id="line-3224"> return this.network;</span> <span class="source-line-no">3225</span><span id="line-3225"> }</span> <span class="source-line-no">3226</span><span id="line-3226"></span> <span class="source-line-no">3227</span><span id="line-3227"> /**</span> <span class="source-line-no">3228</span><span id="line-3228"> * The TV network for the TV show. Applicable to TV Shows</span> <span class="source-line-no">3229</span><span id="line-3229"> * </span> <span class="source-line-no">3230</span><span id="line-3230"> * @since 1.10.0</span> <span class="source-line-no">3231</span><span id="line-3231"> */</span> <span class="source-line-no">3232</span><span id="line-3232"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3233</span><span id="line-3233"> public void setNetwork(final String network) {</span> <span class="source-line-no">3234</span><span id="line-3234"> this.network = network;</span> <span class="source-line-no">3235</span><span id="line-3235"> }</span> <span class="source-line-no">3236</span><span id="line-3236"></span> <span class="source-line-no">3237</span><span id="line-3237"> /**</span> <span class="source-line-no">3238</span><span id="line-3238"> * The number of people who have liked the Page, since the last login. Only visible to a page admin</span> <span class="source-line-no">3239</span><span id="line-3239"> * </span> <span class="source-line-no">3240</span><span id="line-3240"> * @since 1.10.0</span> <span class="source-line-no">3241</span><span id="line-3241"> * @return The number of people who have liked the Page, since the last login</span> <span class="source-line-no">3242</span><span id="line-3242"> */</span> <span class="source-line-no">3243</span><span id="line-3243"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3244</span><span id="line-3244"> public Long getNewLikeCount() {</span> <span class="source-line-no">3245</span><span id="line-3245"> return this.newLikeCount;</span> <span class="source-line-no">3246</span><span id="line-3246"> }</span> <span class="source-line-no">3247</span><span id="line-3247"></span> <span class="source-line-no">3248</span><span id="line-3248"> /**</span> <span class="source-line-no">3249</span><span id="line-3249"> * The number of people who have liked the Page, since the last login. Only visible to a page admin</span> <span class="source-line-no">3250</span><span id="line-3250"> * </span> <span class="source-line-no">3251</span><span id="line-3251"> * @since 1.10.0</span> <span class="source-line-no">3252</span><span id="line-3252"> */</span> <span class="source-line-no">3253</span><span id="line-3253"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3254</span><span id="line-3254"> public void setNewLikeCount(final Long newLikeCount) {</span> <span class="source-line-no">3255</span><span id="line-3255"> this.newLikeCount = newLikeCount;</span> <span class="source-line-no">3256</span><span id="line-3256"> }</span> <span class="source-line-no">3257</span><span id="line-3257"></span> <span class="source-line-no">3258</span><span id="line-3258"> /**</span> <span class="source-line-no">3259</span><span id="line-3259"> * Offer eligibility status. Only visible to a page admin</span> <span class="source-line-no">3260</span><span id="line-3260"> * </span> <span class="source-line-no">3261</span><span id="line-3261"> * @since 1.10.0</span> <span class="source-line-no">3262</span><span id="line-3262"> * @return Offer eligibility status</span> <span class="source-line-no">3263</span><span id="line-3263"> */</span> <span class="source-line-no">3264</span><span id="line-3264"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3265</span><span id="line-3265"> public Boolean getOfferEligible() {</span> <span class="source-line-no">3266</span><span id="line-3266"> return this.offerEligible;</span> <span class="source-line-no">3267</span><span id="line-3267"> }</span> <span class="source-line-no">3268</span><span id="line-3268"></span> <span class="source-line-no">3269</span><span id="line-3269"> /**</span> <span class="source-line-no">3270</span><span id="line-3270"> * Offer eligibility status. Only visible to a page admin</span> <span class="source-line-no">3271</span><span id="line-3271"> * </span> <span class="source-line-no">3272</span><span id="line-3272"> * @since 1.10.0</span> <span class="source-line-no">3273</span><span id="line-3273"> */</span> <span class="source-line-no">3274</span><span id="line-3274"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3275</span><span id="line-3275"> public void setOfferEligible(final Boolean offerEligible) {</span> <span class="source-line-no">3276</span><span id="line-3276"> this.offerEligible = offerEligible;</span> <span class="source-line-no">3277</span><span id="line-3277"> }</span> <span class="source-line-no">3278</span><span id="line-3278"></span> <span class="source-line-no">3279</span><span id="line-3279"> /**</span> <span class="source-line-no">3280</span><span id="line-3280"> * The air schedule of the TV show. Applicable to TV Shows</span> <span class="source-line-no">3281</span><span id="line-3281"> * </span> <span class="source-line-no">3282</span><span id="line-3282"> * @since 1.10.0</span> <span class="source-line-no">3283</span><span id="line-3283"> * @return The air schedule of the TV show</span> <span class="source-line-no">3284</span><span id="line-3284"> */</span> <span class="source-line-no">3285</span><span id="line-3285"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3286</span><span id="line-3286"> public String getSchedule() {</span> <span class="source-line-no">3287</span><span id="line-3287"> return this.schedule;</span> <span class="source-line-no">3288</span><span id="line-3288"> }</span> <span class="source-line-no">3289</span><span id="line-3289"></span> <span class="source-line-no">3290</span><span id="line-3290"> /**</span> <span class="source-line-no">3291</span><span id="line-3291"> * The air schedule of the TV show. Applicable to TV Shows</span> <span class="source-line-no">3292</span><span id="line-3292"> * </span> <span class="source-line-no">3293</span><span id="line-3293"> * @since 1.10.0</span> <span class="source-line-no">3294</span><span id="line-3294"> */</span> <span class="source-line-no">3295</span><span id="line-3295"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3296</span><span id="line-3296"> public void setSchedule(final String schedule) {</span> <span class="source-line-no">3297</span><span id="line-3297"> this.schedule = schedule;</span> <span class="source-line-no">3298</span><span id="line-3298"> }</span> <span class="source-line-no">3299</span><span id="line-3299"></span> <span class="source-line-no">3300</span><span id="line-3300"> /**</span> <span class="source-line-no">3301</span><span id="line-3301"> * The screenwriter of the film. Applicable to Films</span> <span class="source-line-no">3302</span><span id="line-3302"> * </span> <span class="source-line-no">3303</span><span id="line-3303"> * @since 1.10.0</span> <span class="source-line-no">3304</span><span id="line-3304"> * @return The screenwriter of the film</span> <span class="source-line-no">3305</span><span id="line-3305"> */</span> <span class="source-line-no">3306</span><span id="line-3306"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3307</span><span id="line-3307"> public String getScreenplayBy() {</span> <span class="source-line-no">3308</span><span id="line-3308"> return this.screenplayBy;</span> <span class="source-line-no">3309</span><span id="line-3309"> }</span> <span class="source-line-no">3310</span><span id="line-3310"></span> <span class="source-line-no">3311</span><span id="line-3311"> /**</span> <span class="source-line-no">3312</span><span id="line-3312"> * The screenwriter of the film. Applicable to Films</span> <span class="source-line-no">3313</span><span id="line-3313"> * </span> <span class="source-line-no">3314</span><span id="line-3314"> * @since 1.10.0</span> <span class="source-line-no">3315</span><span id="line-3315"> */</span> <span class="source-line-no">3316</span><span id="line-3316"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3317</span><span id="line-3317"> public void setScreenplayBy(final String screenplayBy) {</span> <span class="source-line-no">3318</span><span id="line-3318"> this.screenplayBy = screenplayBy;</span> <span class="source-line-no">3319</span><span id="line-3319"> }</span> <span class="source-line-no">3320</span><span id="line-3320"></span> <span class="source-line-no">3321</span><span id="line-3321"> /**</span> <span class="source-line-no">3322</span><span id="line-3322"> * The season information of the TV Show. Applicable to TV Shows</span> <span class="source-line-no">3323</span><span id="line-3323"> * </span> <span class="source-line-no">3324</span><span id="line-3324"> * @since 1.10.0</span> <span class="source-line-no">3325</span><span id="line-3325"> * @return The season information of the TV Show</span> <span class="source-line-no">3326</span><span id="line-3326"> */</span> <span class="source-line-no">3327</span><span id="line-3327"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3328</span><span id="line-3328"> public String getSeason() {</span> <span class="source-line-no">3329</span><span id="line-3329"> return this.season;</span> <span class="source-line-no">3330</span><span id="line-3330"> }</span> <span class="source-line-no">3331</span><span id="line-3331"></span> <span class="source-line-no">3332</span><span id="line-3332"> /**</span> <span class="source-line-no">3333</span><span id="line-3333"> * The season information of the TV Show. Applicable to TV Shows</span> <span class="source-line-no">3334</span><span id="line-3334"> * </span> <span class="source-line-no">3335</span><span id="line-3335"> * @since 1.10.0</span> <span class="source-line-no">3336</span><span id="line-3336"> */</span> <span class="source-line-no">3337</span><span id="line-3337"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3338</span><span id="line-3338"> public void setSeason(final String season) {</span> <span class="source-line-no">3339</span><span id="line-3339"> this.season = season;</span> <span class="source-line-no">3340</span><span id="line-3340"> }</span> <span class="source-line-no">3341</span><span id="line-3341"></span> <span class="source-line-no">3342</span><span id="line-3342"> /**</span> <span class="source-line-no">3343</span><span id="line-3343"> * The page address, if any, in a simple single line format.</span> <span class="source-line-no">3344</span><span id="line-3344"> *</span> <span class="source-line-no">3345</span><span id="line-3345"> * @return The page address, if any, in a simple single line format</span> <span class="source-line-no">3346</span><span id="line-3346"> */</span> <span class="source-line-no">3347</span><span id="line-3347"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3348</span><span id="line-3348"> public String getSingleLineAddress() {</span> <span class="source-line-no">3349</span><span id="line-3349"> return this.singleLineAddress;</span> <span class="source-line-no">3350</span><span id="line-3350"> }</span> <span class="source-line-no">3351</span><span id="line-3351"></span> <span class="source-line-no">3352</span><span id="line-3352"> /**</span> <span class="source-line-no">3353</span><span id="line-3353"> * The page address, if any, in a simple single line format.</span> <span class="source-line-no">3354</span><span id="line-3354"> */</span> <span class="source-line-no">3355</span><span id="line-3355"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3356</span><span id="line-3356"> public void setSingleLineAddress(final String singleLineAddress) {</span> <span class="source-line-no">3357</span><span id="line-3357"> this.singleLineAddress = singleLineAddress;</span> <span class="source-line-no">3358</span><span id="line-3358"> }</span> <span class="source-line-no">3359</span><span id="line-3359"></span> <span class="source-line-no">3360</span><span id="line-3360"> /**</span> <span class="source-line-no">3361</span><span id="line-3361"> * The cast of the film. Applicable to Films</span> <span class="source-line-no">3362</span><span id="line-3362"> * </span> <span class="source-line-no">3363</span><span id="line-3363"> * @since 1.10.0</span> <span class="source-line-no">3364</span><span id="line-3364"> * @return The cast of the film</span> <span class="source-line-no">3365</span><span id="line-3365"> */</span> <span class="source-line-no">3366</span><span id="line-3366"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3367</span><span id="line-3367"> public String getStarring() {</span> <span class="source-line-no">3368</span><span id="line-3368"> return this.starring;</span> <span class="source-line-no">3369</span><span id="line-3369"> }</span> <span class="source-line-no">3370</span><span id="line-3370"></span> <span class="source-line-no">3371</span><span id="line-3371"> /**</span> <span class="source-line-no">3372</span><span id="line-3372"> * The cast of the film. Applicable to Films</span> <span class="source-line-no">3373</span><span id="line-3373"> * </span> <span class="source-line-no">3374</span><span id="line-3374"> * @since 1.10.0</span> <span class="source-line-no">3375</span><span id="line-3375"> */</span> <span class="source-line-no">3376</span><span id="line-3376"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3377</span><span id="line-3377"> public void setStarring(final String starring) {</span> <span class="source-line-no">3378</span><span id="line-3378"> this.starring = starring;</span> <span class="source-line-no">3379</span><span id="line-3379"> }</span> <span class="source-line-no">3380</span><span id="line-3380"></span> <span class="source-line-no">3381</span><span id="line-3381"> /**</span> <span class="source-line-no">3382</span><span id="line-3382"> * Information about when the entity represented by the Page was started</span> <span class="source-line-no">3383</span><span id="line-3383"> * </span> <span class="source-line-no">3384</span><span id="line-3384"> * @since 1.10.0</span> <span class="source-line-no">3385</span><span id="line-3385"> * @return Information about when the entity represented by the Page was started</span> <span class="source-line-no">3386</span><span id="line-3386"> */</span> <span class="source-line-no">3387</span><span id="line-3387"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3388</span><span id="line-3388"> public PageStartInfo getStartInfo() {</span> <span class="source-line-no">3389</span><span id="line-3389"> return this.startInfo;</span> <span class="source-line-no">3390</span><span id="line-3390"> }</span> <span class="source-line-no">3391</span><span id="line-3391"></span> <span class="source-line-no">3392</span><span id="line-3392"> /**</span> <span class="source-line-no">3393</span><span id="line-3393"> * Information about when the entity represented by the Page was started</span> <span class="source-line-no">3394</span><span id="line-3394"> * </span> <span class="source-line-no">3395</span><span id="line-3395"> * @since 1.10.0</span> <span class="source-line-no">3396</span><span id="line-3396"> */</span> <span class="source-line-no">3397</span><span id="line-3397"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3398</span><span id="line-3398"> public void setStartInfo(final PageStartInfo startInfo) {</span> <span class="source-line-no">3399</span><span id="line-3399"> this.startInfo = startInfo;</span> <span class="source-line-no">3400</span><span id="line-3400"> }</span> <span class="source-line-no">3401</span><span id="line-3401"></span> <span class="source-line-no">3402</span><span id="line-3402"> /**</span> <span class="source-line-no">3403</span><span id="line-3403"> * Unique store number for this location Page.</span> <span class="source-line-no">3404</span><span id="line-3404"> * </span> <span class="source-line-no">3405</span><span id="line-3405"> * @since 1.10.0</span> <span class="source-line-no">3406</span><span id="line-3406"> * @return Unique store number for this location Page</span> <span class="source-line-no">3407</span><span id="line-3407"> */</span> <span class="source-line-no">3408</span><span id="line-3408"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3409</span><span id="line-3409"> public String getStoreNumber() {</span> <span class="source-line-no">3410</span><span id="line-3410"> return this.storeNumber;</span> <span class="source-line-no">3411</span><span id="line-3411"> }</span> <span class="source-line-no">3412</span><span id="line-3412"></span> <span class="source-line-no">3413</span><span id="line-3413"> /**</span> <span class="source-line-no">3414</span><span id="line-3414"> * Unique store number for this location Page.</span> <span class="source-line-no">3415</span><span id="line-3415"> * </span> <span class="source-line-no">3416</span><span id="line-3416"> * @since 1.10.0</span> <span class="source-line-no">3417</span><span id="line-3417"> */</span> <span class="source-line-no">3418</span><span id="line-3418"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3419</span><span id="line-3419"> public void setStoreNumber(final String storeNumber) {</span> <span class="source-line-no">3420</span><span id="line-3420"> this.storeNumber = storeNumber;</span> <span class="source-line-no">3421</span><span id="line-3421"> }</span> <span class="source-line-no">3422</span><span id="line-3422"></span> <span class="source-line-no">3423</span><span id="line-3423"> /**</span> <span class="source-line-no">3424</span><span id="line-3424"> * The studio for the film production. Applicable to Films</span> <span class="source-line-no">3425</span><span id="line-3425"> * </span> <span class="source-line-no">3426</span><span id="line-3426"> * @since 1.10.0</span> <span class="source-line-no">3427</span><span id="line-3427"> * @return The studio for the film production</span> <span class="source-line-no">3428</span><span id="line-3428"> */</span> <span class="source-line-no">3429</span><span id="line-3429"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3430</span><span id="line-3430"> public String getStudio() {</span> <span class="source-line-no">3431</span><span id="line-3431"> return this.studio;</span> <span class="source-line-no">3432</span><span id="line-3432"> }</span> <span class="source-line-no">3433</span><span id="line-3433"></span> <span class="source-line-no">3434</span><span id="line-3434"> /**</span> <span class="source-line-no">3435</span><span id="line-3435"> * The studio for the film production. Applicable to Films</span> <span class="source-line-no">3436</span><span id="line-3436"> * </span> <span class="source-line-no">3437</span><span id="line-3437"> * @since 1.10.0</span> <span class="source-line-no">3438</span><span id="line-3438"> */</span> <span class="source-line-no">3439</span><span id="line-3439"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3440</span><span id="line-3440"> public void setStudio(final String studio) {</span> <span class="source-line-no">3441</span><span id="line-3441"> this.studio = studio;</span> <span class="source-line-no">3442</span><span id="line-3442"> }</span> <span class="source-line-no">3443</span><span id="line-3443"></span> <span class="source-line-no">3444</span><span id="line-3444"> /**</span> <span class="source-line-no">3445</span><span id="line-3445"> * The social sentence and like count information for this Page. This is the same info used for the like button</span> <span class="source-line-no">3446</span><span id="line-3446"> * </span> <span class="source-line-no">3447</span><span id="line-3447"> * @since 1.10.0</span> <span class="source-line-no">3448</span><span id="line-3448"> * @return The social sentence and like count information for this Page</span> <span class="source-line-no">3449</span><span id="line-3449"> */</span> <span class="source-line-no">3450</span><span id="line-3450"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3451</span><span id="line-3451"> public Engagement getEngagement() {</span> <span class="source-line-no">3452</span><span id="line-3452"> return this.engagement;</span> <span class="source-line-no">3453</span><span id="line-3453"> }</span> <span class="source-line-no">3454</span><span id="line-3454"></span> <span class="source-line-no">3455</span><span id="line-3455"> /**</span> <span class="source-line-no">3456</span><span id="line-3456"> * The social sentence and like count information for this Page. This is the same info used for the like button</span> <span class="source-line-no">3457</span><span id="line-3457"> * </span> <span class="source-line-no">3458</span><span id="line-3458"> * @since 1.10.0</span> <span class="source-line-no">3459</span><span id="line-3459"> */</span> <span class="source-line-no">3460</span><span id="line-3460"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3461</span><span id="line-3461"> public void setEngagement(final Engagement engagement) {</span> <span class="source-line-no">3462</span><span id="line-3462"> this.engagement = engagement;</span> <span class="source-line-no">3463</span><span id="line-3463"> }</span> <span class="source-line-no">3464</span><span id="line-3464"></span> <span class="source-line-no">3465</span><span id="line-3465"> /**</span> <span class="source-line-no">3466</span><span id="line-3466"> * Unread message count for the Page. Only visible to a page admin</span> <span class="source-line-no">3467</span><span id="line-3467"> * </span> <span class="source-line-no">3468</span><span id="line-3468"> * @since 1.10.0</span> <span class="source-line-no">3469</span><span id="line-3469"> * @return Unread message count for the Page</span> <span class="source-line-no">3470</span><span id="line-3470"> */</span> <span class="source-line-no">3471</span><span id="line-3471"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3472</span><span id="line-3472"> public Long getUnreadMessageCount() {</span> <span class="source-line-no">3473</span><span id="line-3473"> return this.unreadMessageCount;</span> <span class="source-line-no">3474</span><span id="line-3474"> }</span> <span class="source-line-no">3475</span><span id="line-3475"></span> <span class="source-line-no">3476</span><span id="line-3476"> /**</span> <span class="source-line-no">3477</span><span id="line-3477"> * Unread message count for the Page. Only visible to a page admin</span> <span class="source-line-no">3478</span><span id="line-3478"> * </span> <span class="source-line-no">3479</span><span id="line-3479"> * @since 1.10.0</span> <span class="source-line-no">3480</span><span id="line-3480"> */</span> <span class="source-line-no">3481</span><span id="line-3481"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3482</span><span id="line-3482"> public void setUnreadMessageCount(final Long unreadMessageCount) {</span> <span class="source-line-no">3483</span><span id="line-3483"> this.unreadMessageCount = unreadMessageCount;</span> <span class="source-line-no">3484</span><span id="line-3484"> }</span> <span class="source-line-no">3485</span><span id="line-3485"></span> <span class="source-line-no">3486</span><span id="line-3486"> /**</span> <span class="source-line-no">3487</span><span id="line-3487"> * Number of unread notifications. Only visible to a page admin</span> <span class="source-line-no">3488</span><span id="line-3488"> * </span> <span class="source-line-no">3489</span><span id="line-3489"> * @since 1.10.0</span> <span class="source-line-no">3490</span><span id="line-3490"> * @return Number of unread notifications</span> <span class="source-line-no">3491</span><span id="line-3491"> */</span> <span class="source-line-no">3492</span><span id="line-3492"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3493</span><span id="line-3493"> public Long getUnreadNotifCount() {</span> <span class="source-line-no">3494</span><span id="line-3494"> return this.unreadNotifCount;</span> <span class="source-line-no">3495</span><span id="line-3495"> }</span> <span class="source-line-no">3496</span><span id="line-3496"></span> <span class="source-line-no">3497</span><span id="line-3497"> /**</span> <span class="source-line-no">3498</span><span id="line-3498"> * Number of unread notifications. Only visible to a page admin</span> <span class="source-line-no">3499</span><span id="line-3499"> * </span> <span class="source-line-no">3500</span><span id="line-3500"> * @since 1.10.0</span> <span class="source-line-no">3501</span><span id="line-3501"> */</span> <span class="source-line-no">3502</span><span id="line-3502"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3503</span><span id="line-3503"> public void setUnreadNotifCount(final Long unreadNotifCount) {</span> <span class="source-line-no">3504</span><span id="line-3504"> this.unreadNotifCount = unreadNotifCount;</span> <span class="source-line-no">3505</span><span id="line-3505"> }</span> <span class="source-line-no">3506</span><span id="line-3506"></span> <span class="source-line-no">3507</span><span id="line-3507"> /**</span> <span class="source-line-no">3508</span><span id="line-3508"> * Unseen message count for the Page. Only visible to a page admin</span> <span class="source-line-no">3509</span><span id="line-3509"> * </span> <span class="source-line-no">3510</span><span id="line-3510"> * @since 1.10.0</span> <span class="source-line-no">3511</span><span id="line-3511"> * @return Unseen message count for the Page</span> <span class="source-line-no">3512</span><span id="line-3512"> */</span> <span class="source-line-no">3513</span><span id="line-3513"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3514</span><span id="line-3514"> public Long getUnseenMessageCount() {</span> <span class="source-line-no">3515</span><span id="line-3515"> return this.unseenMessageCount;</span> <span class="source-line-no">3516</span><span id="line-3516"> }</span> <span class="source-line-no">3517</span><span id="line-3517"></span> <span class="source-line-no">3518</span><span id="line-3518"> /**</span> <span class="source-line-no">3519</span><span id="line-3519"> * Unseen message count for the Page. Only visible to a page admin</span> <span class="source-line-no">3520</span><span id="line-3520"> * </span> <span class="source-line-no">3521</span><span id="line-3521"> * @since 1.10.0</span> <span class="source-line-no">3522</span><span id="line-3522"> */</span> <span class="source-line-no">3523</span><span id="line-3523"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3524</span><span id="line-3524"> public void setUnseenMessageCount(final Long unseenMessageCount) {</span> <span class="source-line-no">3525</span><span id="line-3525"> this.unseenMessageCount = unseenMessageCount;</span> <span class="source-line-no">3526</span><span id="line-3526"> }</span> <span class="source-line-no">3527</span><span id="line-3527"></span> <span class="source-line-no">3528</span><span id="line-3528"> /**</span> <span class="source-line-no">3529</span><span id="line-3529"> * Members of this org. Applicable to Pages representing Team Orgs</span> <span class="source-line-no">3530</span><span id="line-3530"> * </span> <span class="source-line-no">3531</span><span id="line-3531"> * @since 1.10.0</span> <span class="source-line-no">3532</span><span id="line-3532"> * @return Members of this org</span> <span class="source-line-no">3533</span><span id="line-3533"> */</span> <span class="source-line-no">3534</span><span id="line-3534"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3535</span><span id="line-3535"> public String getMembers() {</span> <span class="source-line-no">3536</span><span id="line-3536"> return this.members;</span> <span class="source-line-no">3537</span><span id="line-3537"> }</span> <span class="source-line-no">3538</span><span id="line-3538"></span> <span class="source-line-no">3539</span><span id="line-3539"> /**</span> <span class="source-line-no">3540</span><span id="line-3540"> * Members of this org. Applicable to Pages representing Team Orgs</span> <span class="source-line-no">3541</span><span id="line-3541"> * </span> <span class="source-line-no">3542</span><span id="line-3542"> * @since 1.10.0</span> <span class="source-line-no">3543</span><span id="line-3543"> */</span> <span class="source-line-no">3544</span><span id="line-3544"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3545</span><span id="line-3545"> public void setMembers(final String members) {</span> <span class="source-line-no">3546</span><span id="line-3546"> this.members = members;</span> <span class="source-line-no">3547</span><span id="line-3547"> }</span> <span class="source-line-no">3548</span><span id="line-3548"></span> <span class="source-line-no">3549</span><span id="line-3549"> /**</span> <span class="source-line-no">3550</span><span id="line-3550"> * The number of visits to this Page's location. If the Page setting Show map, check-ins and star ratings on the Page</span> <span class="source-line-no">3551</span><span id="line-3551"> * (under Page Settings &gt; Page Info &gt; Address) is disabled, then this value will also be disabled</span> <span class="source-line-no">3552</span><span id="line-3552"> * </span> <span class="source-line-no">3553</span><span id="line-3553"> * @since 1.10.0</span> <span class="source-line-no">3554</span><span id="line-3554"> * @return The number of visits to this Page's location</span> <span class="source-line-no">3555</span><span id="line-3555"> */</span> <span class="source-line-no">3556</span><span id="line-3556"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3557</span><span id="line-3557"> public Long getWereHereCount() {</span> <span class="source-line-no">3558</span><span id="line-3558"> return this.wereHereCount;</span> <span class="source-line-no">3559</span><span id="line-3559"> }</span> <span class="source-line-no">3560</span><span id="line-3560"></span> <span class="source-line-no">3561</span><span id="line-3561"> /**</span> <span class="source-line-no">3562</span><span id="line-3562"> * The number of visits to this Page's location. If the Page setting Show map, check-ins and star ratings on the Page</span> <span class="source-line-no">3563</span><span id="line-3563"> * (under Page Settings &gt; Page Info &gt; Address) is disabled, then this value will also be disabled</span> <span class="source-line-no">3564</span><span id="line-3564"> * </span> <span class="source-line-no">3565</span><span id="line-3565"> * @since 1.10.0</span> <span class="source-line-no">3566</span><span id="line-3566"> */</span> <span class="source-line-no">3567</span><span id="line-3567"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3568</span><span id="line-3568"> public void setWereHereCount(final Long wereHereCount) {</span> <span class="source-line-no">3569</span><span id="line-3569"> this.wereHereCount = wereHereCount;</span> <span class="source-line-no">3570</span><span id="line-3570"> }</span> <span class="source-line-no">3571</span><span id="line-3571"></span> <span class="source-line-no">3572</span><span id="line-3572"> /**</span> <span class="source-line-no">3573</span><span id="line-3573"> * Video Featured by the Page. Only visible to the Page admin</span> <span class="source-line-no">3574</span><span id="line-3574"> * </span> <span class="source-line-no">3575</span><span id="line-3575"> * @since 1.10.0</span> <span class="source-line-no">3576</span><span id="line-3576"> * @return Video Featured by the Page</span> <span class="source-line-no">3577</span><span id="line-3577"> */</span> <span class="source-line-no">3578</span><span id="line-3578"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3579</span><span id="line-3579"> public Video getFeaturedVideo() {</span> <span class="source-line-no">3580</span><span id="line-3580"> return this.featuredVideo;</span> <span class="source-line-no">3581</span><span id="line-3581"> }</span> <span class="source-line-no">3582</span><span id="line-3582"></span> <span class="source-line-no">3583</span><span id="line-3583"> /**</span> <span class="source-line-no">3584</span><span id="line-3584"> * Video Featured by the Page. Only visible to the Page admin</span> <span class="source-line-no">3585</span><span id="line-3585"> * </span> <span class="source-line-no">3586</span><span id="line-3586"> * @since 1.10.0</span> <span class="source-line-no">3587</span><span id="line-3587"> */</span> <span class="source-line-no">3588</span><span id="line-3588"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3589</span><span id="line-3589"> public void setFeaturedVideo(final Video featuredVideo) {</span> <span class="source-line-no">3590</span><span id="line-3590"> this.featuredVideo = featuredVideo;</span> <span class="source-line-no">3591</span><span id="line-3591"> }</span> <span class="source-line-no">3592</span><span id="line-3592"></span> <span class="source-line-no">3593</span><span id="line-3593"> /**</span> <span class="source-line-no">3594</span><span id="line-3594"> * Showing whether this Page is verified and in what color e.g. blue verified, gray verified or not verified</span> <span class="source-line-no">3595</span><span id="line-3595"> *</span> <span class="source-line-no">3596</span><span id="line-3596"> * @return Showing whether this Page is verified and in what color</span> <span class="source-line-no">3597</span><span id="line-3597"> */</span> <span class="source-line-no">3598</span><span id="line-3598"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3599</span><span id="line-3599"> public String getVerificationStatus() {</span> <span class="source-line-no">3600</span><span id="line-3600"> return this.verificationStatus;</span> <span class="source-line-no">3601</span><span id="line-3601"> }</span> <span class="source-line-no">3602</span><span id="line-3602"></span> <span class="source-line-no">3603</span><span id="line-3603"> /**</span> <span class="source-line-no">3604</span><span id="line-3604"> * Showing whether this Page is verified and in what color e.g. blue verified, gray verified or not verified</span> <span class="source-line-no">3605</span><span id="line-3605"> */</span> <span class="source-line-no">3606</span><span id="line-3606"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3607</span><span id="line-3607"> public void setVerificationStatus(final String verificationStatus) {</span> <span class="source-line-no">3608</span><span id="line-3608"> this.verificationStatus = verificationStatus;</span> <span class="source-line-no">3609</span><span id="line-3609"> }</span> <span class="source-line-no">3610</span><span id="line-3610"></span> <span class="source-line-no">3611</span><span id="line-3611"> /**</span> <span class="source-line-no">3612</span><span id="line-3612"> * Voip info</span> <span class="source-line-no">3613</span><span id="line-3613"> * </span> <span class="source-line-no">3614</span><span id="line-3614"> * @since 1.10.0</span> <span class="source-line-no">3615</span><span id="line-3615"> * @return Voip info</span> <span class="source-line-no">3616</span><span id="line-3616"> */</span> <span class="source-line-no">3617</span><span id="line-3617"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3618</span><span id="line-3618"> public VoipInfo getVoipInfo() {</span> <span class="source-line-no">3619</span><span id="line-3619"> return this.voipInfo;</span> <span class="source-line-no">3620</span><span id="line-3620"> }</span> <span class="source-line-no">3621</span><span id="line-3621"></span> <span class="source-line-no">3622</span><span id="line-3622"> /**</span> <span class="source-line-no">3623</span><span id="line-3623"> * Voip info</span> <span class="source-line-no">3624</span><span id="line-3624"> * </span> <span class="source-line-no">3625</span><span id="line-3625"> * @since 1.10.0</span> <span class="source-line-no">3626</span><span id="line-3626"> */</span> <span class="source-line-no">3627</span><span id="line-3627"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3628</span><span id="line-3628"> public void setVoipInfo(final VoipInfo voipInfo) {</span> <span class="source-line-no">3629</span><span id="line-3629"> this.voipInfo = voipInfo;</span> <span class="source-line-no">3630</span><span id="line-3630"> }</span> <span class="source-line-no">3631</span><span id="line-3631"></span> <span class="source-line-no">3632</span><span id="line-3632"> /**</span> <span class="source-line-no">3633</span><span id="line-3633"> * The writer of the TV show. Applicable to TV Shows</span> <span class="source-line-no">3634</span><span id="line-3634"> * </span> <span class="source-line-no">3635</span><span id="line-3635"> * @since 1.10.0</span> <span class="source-line-no">3636</span><span id="line-3636"> * @return The writer of the TV show</span> <span class="source-line-no">3637</span><span id="line-3637"> */</span> <span class="source-line-no">3638</span><span id="line-3638"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3639</span><span id="line-3639"> public String getWrittenBy() {</span> <span class="source-line-no">3640</span><span id="line-3640"> return this.writtenBy;</span> <span class="source-line-no">3641</span><span id="line-3641"> }</span> <span class="source-line-no">3642</span><span id="line-3642"></span> <span class="source-line-no">3643</span><span id="line-3643"> /**</span> <span class="source-line-no">3644</span><span id="line-3644"> * The writer of the TV show. Applicable to TV Shows</span> <span class="source-line-no">3645</span><span id="line-3645"> * </span> <span class="source-line-no">3646</span><span id="line-3646"> * @since 1.10.0</span> <span class="source-line-no">3647</span><span id="line-3647"> */</span> <span class="source-line-no">3648</span><span id="line-3648"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3649</span><span id="line-3649"> public void setWrittenBy(final String writtenBy) {</span> <span class="source-line-no">3650</span><span id="line-3650"> this.writtenBy = writtenBy;</span> <span class="source-line-no">3651</span><span id="line-3651"> }</span> <span class="source-line-no">3652</span><span id="line-3652"></span> <span class="source-line-no">3653</span><span id="line-3653"> /**</span> <span class="source-line-no">3654</span><span id="line-3654"> * whatsapp number</span> <span class="source-line-no">3655</span><span id="line-3655"> *</span> <span class="source-line-no">3656</span><span id="line-3656"> * @return whatsapp number</span> <span class="source-line-no">3657</span><span id="line-3657"> */</span> <span class="source-line-no">3658</span><span id="line-3658"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3659</span><span id="line-3659"> public String getWhatsappNumber() {</span> <span class="source-line-no">3660</span><span id="line-3660"> return this.whatsappNumber;</span> <span class="source-line-no">3661</span><span id="line-3661"> }</span> <span class="source-line-no">3662</span><span id="line-3662"></span> <span class="source-line-no">3663</span><span id="line-3663"> /**</span> <span class="source-line-no">3664</span><span id="line-3664"> * whatsapp number</span> <span class="source-line-no">3665</span><span id="line-3665"> */</span> <span class="source-line-no">3666</span><span id="line-3666"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3667</span><span id="line-3667"> public void setWhatsappNumber(final String whatsappNumber) {</span> <span class="source-line-no">3668</span><span id="line-3668"> this.whatsappNumber = whatsappNumber;</span> <span class="source-line-no">3669</span><span id="line-3669"> }</span> <span class="source-line-no">3670</span><span id="line-3670"></span> <span class="source-line-no">3671</span><span id="line-3671"> /**</span> <span class="source-line-no">3672</span><span id="line-3672"> * The page's link.</span> <span class="source-line-no">3673</span><span id="line-3673"> * </span> <span class="source-line-no">3674</span><span id="line-3674"> * @return The page's link.</span> <span class="source-line-no">3675</span><span id="line-3675"> */</span> <span class="source-line-no">3676</span><span id="line-3676"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3677</span><span id="line-3677"> public String getLink() {</span> <span class="source-line-no">3678</span><span id="line-3678"> return this.link;</span> <span class="source-line-no">3679</span><span id="line-3679"> }</span> <span class="source-line-no">3680</span><span id="line-3680"></span> <span class="source-line-no">3681</span><span id="line-3681"> /**</span> <span class="source-line-no">3682</span><span id="line-3682"> * The page's link.</span> <span class="source-line-no">3683</span><span id="line-3683"> * </span> <span class="source-line-no">3684</span><span id="line-3684"> */</span> <span class="source-line-no">3685</span><span id="line-3685"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3686</span><span id="line-3686"> public void setLink(final String link) {</span> <span class="source-line-no">3687</span><span id="line-3687"> this.link = link;</span> <span class="source-line-no">3688</span><span id="line-3688"> }</span> <span class="source-line-no">3689</span><span id="line-3689"></span> <span class="source-line-no">3690</span><span id="line-3690"> /**</span> <span class="source-line-no">3691</span><span id="line-3691"> * The page's username. The alias of the Page. For example, for www.facebook.com/platform the username is 'platform'</span> <span class="source-line-no">3692</span><span id="line-3692"> * </span> <span class="source-line-no">3693</span><span id="line-3693"> * @return The page's username.</span> <span class="source-line-no">3694</span><span id="line-3694"> */</span> <span class="source-line-no">3695</span><span id="line-3695"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3696</span><span id="line-3696"> public String getUsername() {</span> <span class="source-line-no">3697</span><span id="line-3697"> return this.username;</span> <span class="source-line-no">3698</span><span id="line-3698"> }</span> <span class="source-line-no">3699</span><span id="line-3699"></span> <span class="source-line-no">3700</span><span id="line-3700"> /**</span> <span class="source-line-no">3701</span><span id="line-3701"> * The page's username. The alias of the Page. For example, for www.facebook.com/platform the username is 'platform'</span> <span class="source-line-no">3702</span><span id="line-3702"> * </span> <span class="source-line-no">3703</span><span id="line-3703"> */</span> <span class="source-line-no">3704</span><span id="line-3704"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3705</span><span id="line-3705"> public void setUsername(final String username) {</span> <span class="source-line-no">3706</span><span id="line-3706"> this.username = username;</span> <span class="source-line-no">3707</span><span id="line-3707"> }</span> <span class="source-line-no">3708</span><span id="line-3708"></span> <span class="source-line-no">3709</span><span id="line-3709"> /**</span> <span class="source-line-no">3710</span><span id="line-3710"> * When the page was founded.</span> <span class="source-line-no">3711</span><span id="line-3711"> * </span> <span class="source-line-no">3712</span><span id="line-3712"> * @return When the page was founded.</span> <span class="source-line-no">3713</span><span id="line-3713"> */</span> <span class="source-line-no">3714</span><span id="line-3714"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3715</span><span id="line-3715"> public String getFounded() {</span> <span class="source-line-no">3716</span><span id="line-3716"> return this.founded;</span> <span class="source-line-no">3717</span><span id="line-3717"> }</span> <span class="source-line-no">3718</span><span id="line-3718"></span> <span class="source-line-no">3719</span><span id="line-3719"> /**</span> <span class="source-line-no">3720</span><span id="line-3720"> * When the page was founded.</span> <span class="source-line-no">3721</span><span id="line-3721"> * </span> <span class="source-line-no">3722</span><span id="line-3722"> */</span> <span class="source-line-no">3723</span><span id="line-3723"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3724</span><span id="line-3724"> public void setFounded(final String founded) {</span> <span class="source-line-no">3725</span><span id="line-3725"> this.founded = founded;</span> <span class="source-line-no">3726</span><span id="line-3726"> }</span> <span class="source-line-no">3727</span><span id="line-3727"></span> <span class="source-line-no">3728</span><span id="line-3728"> /**</span> <span class="source-line-no">3729</span><span id="line-3729"> * Overview of the page's company.</span> <span class="source-line-no">3730</span><span id="line-3730"> * </span> <span class="source-line-no">3731</span><span id="line-3731"> * @return Overview of the page's company.</span> <span class="source-line-no">3732</span><span id="line-3732"> */</span> <span class="source-line-no">3733</span><span id="line-3733"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3734</span><span id="line-3734"> public String getCompanyOverview() {</span> <span class="source-line-no">3735</span><span id="line-3735"> return this.companyOverview;</span> <span class="source-line-no">3736</span><span id="line-3736"> }</span> <span class="source-line-no">3737</span><span id="line-3737"></span> <span class="source-line-no">3738</span><span id="line-3738"> /**</span> <span class="source-line-no">3739</span><span id="line-3739"> * Overview of the page's company.</span> <span class="source-line-no">3740</span><span id="line-3740"> * </span> <span class="source-line-no">3741</span><span id="line-3741"> */</span> <span class="source-line-no">3742</span><span id="line-3742"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3743</span><span id="line-3743"> public void setCompanyOverview(final String companyOverview) {</span> <span class="source-line-no">3744</span><span id="line-3744"> this.companyOverview = companyOverview;</span> <span class="source-line-no">3745</span><span id="line-3745"> }</span> <span class="source-line-no">3746</span><span id="line-3746"></span> <span class="source-line-no">3747</span><span id="line-3747"> /**</span> <span class="source-line-no">3748</span><span id="line-3748"> * The company mission. Applicable to Companies</span> <span class="source-line-no">3749</span><span id="line-3749"> * </span> <span class="source-line-no">3750</span><span id="line-3750"> * @return The page's mission.</span> <span class="source-line-no">3751</span><span id="line-3751"> */</span> <span class="source-line-no">3752</span><span id="line-3752"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3753</span><span id="line-3753"> public String getMission() {</span> <span class="source-line-no">3754</span><span id="line-3754"> return this.mission;</span> <span class="source-line-no">3755</span><span id="line-3755"> }</span> <span class="source-line-no">3756</span><span id="line-3756"></span> <span class="source-line-no">3757</span><span id="line-3757"> /**</span> <span class="source-line-no">3758</span><span id="line-3758"> * The company mission. Applicable to Companies</span> <span class="source-line-no">3759</span><span id="line-3759"> * </span> <span class="source-line-no">3760</span><span id="line-3760"> */</span> <span class="source-line-no">3761</span><span id="line-3761"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3762</span><span id="line-3762"> public void setMission(final String mission) {</span> <span class="source-line-no">3763</span><span id="line-3763"> this.mission = mission;</span> <span class="source-line-no">3764</span><span id="line-3764"> }</span> <span class="source-line-no">3765</span><span id="line-3765"></span> <span class="source-line-no">3766</span><span id="line-3766"> /**</span> <span class="source-line-no">3767</span><span id="line-3767"> * The page's products.</span> <span class="source-line-no">3768</span><span id="line-3768"> * </span> <span class="source-line-no">3769</span><span id="line-3769"> * @return The page's products.</span> <span class="source-line-no">3770</span><span id="line-3770"> */</span> <span class="source-line-no">3771</span><span id="line-3771"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3772</span><span id="line-3772"> public String getProducts() {</span> <span class="source-line-no">3773</span><span id="line-3773"> return this.products;</span> <span class="source-line-no">3774</span><span id="line-3774"> }</span> <span class="source-line-no">3775</span><span id="line-3775"></span> <span class="source-line-no">3776</span><span id="line-3776"> /**</span> <span class="source-line-no">3777</span><span id="line-3777"> * The page's products.</span> <span class="source-line-no">3778</span><span id="line-3778"> * </span> <span class="source-line-no">3779</span><span id="line-3779"> */</span> <span class="source-line-no">3780</span><span id="line-3780"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3781</span><span id="line-3781"> public void setProducts(final String products) {</span> <span class="source-line-no">3782</span><span id="line-3782"> this.products = products;</span> <span class="source-line-no">3783</span><span id="line-3783"> }</span> <span class="source-line-no">3784</span><span id="line-3784"></span> <span class="source-line-no">3785</span><span id="line-3785"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3786</span><span id="line-3786"> public String getPageToken() {</span> <span class="source-line-no">3787</span><span id="line-3787"> return this.pageToken;</span> <span class="source-line-no">3788</span><span id="line-3788"> }</span> <span class="source-line-no">3789</span><span id="line-3789"></span> <span class="source-line-no">3790</span><span id="line-3790"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3791</span><span id="line-3791"> public void setPageToken(final String pageToken) {</span> <span class="source-line-no">3792</span><span id="line-3792"> this.pageToken = pageToken;</span> <span class="source-line-no">3793</span><span id="line-3793"> }</span> <span class="source-line-no">3794</span><span id="line-3794"></span> <span class="source-line-no">3795</span><span id="line-3795"> /**</span> <span class="source-line-no">3796</span><span id="line-3796"> * Parent Page of this Page.</span> <span class="source-line-no">3797</span><span id="line-3797"> *</span> <span class="source-line-no">3798</span><span id="line-3798"> * If the Page is part of a Global Root Structure and you have permission to the Global Root,</span> <span class="source-line-no">3799</span><span id="line-3799"> * the Global Root Parent Page is returned. If you do not have Global Root permission,</span> <span class="source-line-no">3800</span><span id="line-3800"> * the Market Page for your current region is returned as the Parent Page.</span> <span class="source-line-no">3801</span><span id="line-3801"> *</span> <span class="source-line-no">3802</span><span id="line-3802"> * If your Page is not part of a Global Root Structure, the Parent Page is returned.</span> <span class="source-line-no">3803</span><span id="line-3803"> *</span> <span class="source-line-no">3804</span><span id="line-3804"> * @return parent page of this page</span> <span class="source-line-no">3805</span><span id="line-3805"> */</span> <span class="source-line-no">3806</span><span id="line-3806"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3807</span><span id="line-3807"> public Page getParentPage() {</span> <span class="source-line-no">3808</span><span id="line-3808"> return this.parentPage;</span> <span class="source-line-no">3809</span><span id="line-3809"> }</span> <span class="source-line-no">3810</span><span id="line-3810"></span> <span class="source-line-no">3811</span><span id="line-3811"> /**</span> <span class="source-line-no">3812</span><span id="line-3812"> * Parent Page of this Page.</span> <span class="source-line-no">3813</span><span id="line-3813"> *</span> <span class="source-line-no">3814</span><span id="line-3814"> * If the Page is part of a Global Root Structure and you have permission to the Global Root,</span> <span class="source-line-no">3815</span><span id="line-3815"> * the Global Root Parent Page is returned. If you do not have Global Root permission,</span> <span class="source-line-no">3816</span><span id="line-3816"> * the Market Page for your current region is returned as the Parent Page.</span> <span class="source-line-no">3817</span><span id="line-3817"> *</span> <span class="source-line-no">3818</span><span id="line-3818"> * If your Page is not part of a Global Root Structure, the Parent Page is returned.</span> <span class="source-line-no">3819</span><span id="line-3819"> */</span> <span class="source-line-no">3820</span><span id="line-3820"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3821</span><span id="line-3821"> public void setParentPage(final Page parentPage) {</span> <span class="source-line-no">3822</span><span id="line-3822"> this.parentPage = parentPage;</span> <span class="source-line-no">3823</span><span id="line-3823"> }</span> <span class="source-line-no">3824</span><span id="line-3824"></span> <span class="source-line-no">3825</span><span id="line-3825"> /**</span> <span class="source-line-no">3826</span><span id="line-3826"> * Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page.</span> <span class="source-line-no">3827</span><span id="line-3827"> * </span> <span class="source-line-no">3828</span><span id="line-3828"> * @return Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page</span> <span class="source-line-no">3829</span><span id="line-3829"> */</span> <span class="source-line-no">3830</span><span id="line-3830"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3831</span><span id="line-3831"> public Boolean getLeadgenTosAccepted() {</span> <span class="source-line-no">3832</span><span id="line-3832"> return this.leadgenTosAccepted;</span> <span class="source-line-no">3833</span><span id="line-3833"> }</span> <span class="source-line-no">3834</span><span id="line-3834"></span> <span class="source-line-no">3835</span><span id="line-3835"> /**</span> <span class="source-line-no">3836</span><span id="line-3836"> * Indicates whether a user has accepted the TOS for running LeadGen Ads on the Page.</span> <span class="source-line-no">3837</span><span id="line-3837"> * </span> <span class="source-line-no">3838</span><span id="line-3838"> */</span> <span class="source-line-no">3839</span><span id="line-3839"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3840</span><span id="line-3840"> public void setLeadgenTosAccepted(final Boolean leadgenTosAccepted) {</span> <span class="source-line-no">3841</span><span id="line-3841"> this.leadgenTosAccepted = leadgenTosAccepted;</span> <span class="source-line-no">3842</span><span id="line-3842"> }</span> <span class="source-line-no">3843</span><span id="line-3843"></span> <span class="source-line-no">3844</span><span id="line-3844"> /**</span> <span class="source-line-no">3845</span><span id="line-3845"> * The number of likes the page has.</span> <span class="source-line-no">3846</span><span id="line-3846"> *</span> <span class="source-line-no">3847</span><span id="line-3847"> * Since Graph 2.6 you should use {@link Page#fanCount} instead</span> <span class="source-line-no">3848</span><span id="line-3848"> *</span> <span class="source-line-no">3849</span><span id="line-3849"> * @return The number of likes the page has</span> <span class="source-line-no">3850</span><span id="line-3850"> * @since 1.6.5</span> <span class="source-line-no">3851</span><span id="line-3851"> */</span> <span class="source-line-no">3852</span><span id="line-3852"> @GraphAPI(until = "2.5")</span> <span class="source-line-no">3853</span><span id="line-3853"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3854</span><span id="line-3854"> public Long getLikesCount() {</span> <span class="source-line-no">3855</span><span id="line-3855"> return this.likesCount;</span> <span class="source-line-no">3856</span><span id="line-3856"> }</span> <span class="source-line-no">3857</span><span id="line-3857"></span> <span class="source-line-no">3858</span><span id="line-3858"> /**</span> <span class="source-line-no">3859</span><span id="line-3859"> * The number of likes the page has.</span> <span class="source-line-no">3860</span><span id="line-3860"> *</span> <span class="source-line-no">3861</span><span id="line-3861"> * Since Graph 2.6 you should use {@link Page#fanCount} instead</span> <span class="source-line-no">3862</span><span id="line-3862"> *</span> <span class="source-line-no">3863</span><span id="line-3863"> * @since 1.6.5</span> <span class="source-line-no">3864</span><span id="line-3864"> */</span> <span class="source-line-no">3865</span><span id="line-3865"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3866</span><span id="line-3866"> public void setLikesCount(final Long likesCount) {</span> <span class="source-line-no">3867</span><span id="line-3867"> this.likesCount = likesCount;</span> <span class="source-line-no">3868</span><span id="line-3868"> }</span> <span class="source-line-no">3869</span><span id="line-3869"></span> <span class="source-line-no">3870</span><span id="line-3870"> /**</span> <span class="source-line-no">3871</span><span id="line-3871"> * The Pages that this Page Likes.</span> <span class="source-line-no">3872</span><span id="line-3872"> *</span> <span class="source-line-no">3873</span><span id="line-3873"> * @return The Pages that this Page Likes.</span> <span class="source-line-no">3874</span><span id="line-3874"> */</span> <span class="source-line-no">3875</span><span id="line-3875"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">3876</span><span id="line-3876"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3877</span><span id="line-3877"> public Likes getLikes() {</span> <span class="source-line-no">3878</span><span id="line-3878"> return this.likes;</span> <span class="source-line-no">3879</span><span id="line-3879"> }</span> <span class="source-line-no">3880</span><span id="line-3880"></span> <span class="source-line-no">3881</span><span id="line-3881"> /**</span> <span class="source-line-no">3882</span><span id="line-3882"> * The Pages that this Page Likes.</span> <span class="source-line-no">3883</span><span id="line-3883"> */</span> <span class="source-line-no">3884</span><span id="line-3884"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3885</span><span id="line-3885"> public void setLikes(final Likes likes) {</span> <span class="source-line-no">3886</span><span id="line-3886"> this.likes = likes;</span> <span class="source-line-no">3887</span><span id="line-3887"> }</span> <span class="source-line-no">3888</span><span id="line-3888"></span> <span class="source-line-no">3889</span><span id="line-3889"> /**</span> <span class="source-line-no">3890</span><span id="line-3890"> * The number of likes the page has.</span> <span class="source-line-no">3891</span><span id="line-3891"> *</span> <span class="source-line-no">3892</span><span id="line-3892"> * @return The number of likes the page has</span> <span class="source-line-no">3893</span><span id="line-3893"> */</span> <span class="source-line-no">3894</span><span id="line-3894"> @GraphAPI(since = "2.6")</span> <span class="source-line-no">3895</span><span id="line-3895"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3896</span><span id="line-3896"> public Long getFanCount() {</span> <span class="source-line-no">3897</span><span id="line-3897"> return this.fanCount;</span> <span class="source-line-no">3898</span><span id="line-3898"> }</span> <span class="source-line-no">3899</span><span id="line-3899"></span> <span class="source-line-no">3900</span><span id="line-3900"> /**</span> <span class="source-line-no">3901</span><span id="line-3901"> * The number of likes the page has.</span> <span class="source-line-no">3902</span><span id="line-3902"> */</span> <span class="source-line-no">3903</span><span id="line-3903"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3904</span><span id="line-3904"> public void setFanCount(final Long fanCount) {</span> <span class="source-line-no">3905</span><span id="line-3905"> this.fanCount = fanCount;</span> <span class="source-line-no">3906</span><span id="line-3906"> }</span> <span class="source-line-no">3907</span><span id="line-3907"></span> <span class="source-line-no">3908</span><span id="line-3908"> /**</span> <span class="source-line-no">3909</span><span id="line-3909"> * Indicates whether this location is always open.</span> <span class="source-line-no">3910</span><span id="line-3910"> *</span> <span class="source-line-no">3911</span><span id="line-3911"> * @return Indicates whether this location is always open</span> <span class="source-line-no">3912</span><span id="line-3912"> */</span> <span class="source-line-no">3913</span><span id="line-3913"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3914</span><span id="line-3914"> public Boolean getIsAlwaysOpen() {</span> <span class="source-line-no">3915</span><span id="line-3915"> return this.isAlwaysOpen;</span> <span class="source-line-no">3916</span><span id="line-3916"> }</span> <span class="source-line-no">3917</span><span id="line-3917"></span> <span class="source-line-no">3918</span><span id="line-3918"> /**</span> <span class="source-line-no">3919</span><span id="line-3919"> * Indicates whether this location is always open.</span> <span class="source-line-no">3920</span><span id="line-3920"> */</span> <span class="source-line-no">3921</span><span id="line-3921"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3922</span><span id="line-3922"> public void setIsAlwaysOpen(final Boolean isAlwaysOpen) {</span> <span class="source-line-no">3923</span><span id="line-3923"> this.isAlwaysOpen = isAlwaysOpen;</span> <span class="source-line-no">3924</span><span id="line-3924"> }</span> <span class="source-line-no">3925</span><span id="line-3925"></span> <span class="source-line-no">3926</span><span id="line-3926"> /**</span> <span class="source-line-no">3927</span><span id="line-3927"> * Indicates whether location is part of a chain</span> <span class="source-line-no">3928</span><span id="line-3928"> *</span> <span class="source-line-no">3929</span><span id="line-3929"> * @return Indicates whether location is part of a chain</span> <span class="source-line-no">3930</span><span id="line-3930"> */</span> <span class="source-line-no">3931</span><span id="line-3931"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3932</span><span id="line-3932"> public Boolean getIsChain() {</span> <span class="source-line-no">3933</span><span id="line-3933"> return this.isChain;</span> <span class="source-line-no">3934</span><span id="line-3934"> }</span> <span class="source-line-no">3935</span><span id="line-3935"></span> <span class="source-line-no">3936</span><span id="line-3936"> /**</span> <span class="source-line-no">3937</span><span id="line-3937"> * Indicates whether location is part of a chain</span> <span class="source-line-no">3938</span><span id="line-3938"> */</span> <span class="source-line-no">3939</span><span id="line-3939"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3940</span><span id="line-3940"> public void setIsChain(final Boolean isChain) {</span> <span class="source-line-no">3941</span><span id="line-3941"> this.isChain = isChain;</span> <span class="source-line-no">3942</span><span id="line-3942"> }</span> <span class="source-line-no">3943</span><span id="line-3943"></span> <span class="source-line-no">3944</span><span id="line-3944"> /**</span> <span class="source-line-no">3945</span><span id="line-3945"> * Is this a community page?</span> <span class="source-line-no">3946</span><span id="line-3946"> * </span> <span class="source-line-no">3947</span><span id="line-3947"> * @return Is this a community page?</span> <span class="source-line-no">3948</span><span id="line-3948"> */</span> <span class="source-line-no">3949</span><span id="line-3949"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3950</span><span id="line-3950"> public Boolean getIsCommunityPage() {</span> <span class="source-line-no">3951</span><span id="line-3951"> return this.isCommunityPage;</span> <span class="source-line-no">3952</span><span id="line-3952"> }</span> <span class="source-line-no">3953</span><span id="line-3953"></span> <span class="source-line-no">3954</span><span id="line-3954"> /**</span> <span class="source-line-no">3955</span><span id="line-3955"> * Is this a community page?</span> <span class="source-line-no">3956</span><span id="line-3956"> * </span> <span class="source-line-no">3957</span><span id="line-3957"> */</span> <span class="source-line-no">3958</span><span id="line-3958"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3959</span><span id="line-3959"> public void setIsCommunityPage(final Boolean isCommunityPage) {</span> <span class="source-line-no">3960</span><span id="line-3960"> this.isCommunityPage = isCommunityPage;</span> <span class="source-line-no">3961</span><span id="line-3961"> }</span> <span class="source-line-no">3962</span><span id="line-3962"></span> <span class="source-line-no">3963</span><span id="line-3963"> /**</span> <span class="source-line-no">3964</span><span id="line-3964"> * Indicates whether the page is eligible for the branded content tool</span> <span class="source-line-no">3965</span><span id="line-3965"> *</span> <span class="source-line-no">3966</span><span id="line-3966"> * @return is eligible for the branded content tool</span> <span class="source-line-no">3967</span><span id="line-3967"> */</span> <span class="source-line-no">3968</span><span id="line-3968"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3969</span><span id="line-3969"> public Boolean getIsEligibleForBrandedContent() {</span> <span class="source-line-no">3970</span><span id="line-3970"> return this.isEligibleForBrandedContent;</span> <span class="source-line-no">3971</span><span id="line-3971"> }</span> <span class="source-line-no">3972</span><span id="line-3972"></span> <span class="source-line-no">3973</span><span id="line-3973"> /**</span> <span class="source-line-no">3974</span><span id="line-3974"> * Indicates whether the page is eligible for the branded content tool</span> <span class="source-line-no">3975</span><span id="line-3975"> */</span> <span class="source-line-no">3976</span><span id="line-3976"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3977</span><span id="line-3977"> public void setIsEligibleForBrandedContent(final Boolean isEligibleForBrandedContent) {</span> <span class="source-line-no">3978</span><span id="line-3978"> this.isEligibleForBrandedContent = isEligibleForBrandedContent;</span> <span class="source-line-no">3979</span><span id="line-3979"> }</span> <span class="source-line-no">3980</span><span id="line-3980"></span> <span class="source-line-no">3981</span><span id="line-3981"> /**</span> <span class="source-line-no">3982</span><span id="line-3982"> * Indicates whether the page is a Messenger Platform Bot with Get Started button enabled</span> <span class="source-line-no">3983</span><span id="line-3983"> *</span> <span class="source-line-no">3984</span><span id="line-3984"> * @return is a Messenger Platform Bot with Get Started button enabled</span> <span class="source-line-no">3985</span><span id="line-3985"> */</span> <span class="source-line-no">3986</span><span id="line-3986"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3987</span><span id="line-3987"> public Boolean getIsMessengerBotGetStartedEnabled() {</span> <span class="source-line-no">3988</span><span id="line-3988"> return this.isMessengerBotGetStartedEnabled;</span> <span class="source-line-no">3989</span><span id="line-3989"> }</span> <span class="source-line-no">3990</span><span id="line-3990"></span> <span class="source-line-no">3991</span><span id="line-3991"> /**</span> <span class="source-line-no">3992</span><span id="line-3992"> * Indicates whether the page is a Messenger Platform Bot with Get Started button enabled</span> <span class="source-line-no">3993</span><span id="line-3993"> */</span> <span class="source-line-no">3994</span><span id="line-3994"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">3995</span><span id="line-3995"> public void setIsMessengerBotGetStartedEnabled(final Boolean isMessengerBotGetStartedEnabled) {</span> <span class="source-line-no">3996</span><span id="line-3996"> this.isMessengerBotGetStartedEnabled = isMessengerBotGetStartedEnabled;</span> <span class="source-line-no">3997</span><span id="line-3997"> }</span> <span class="source-line-no">3998</span><span id="line-3998"></span> <span class="source-line-no">3999</span><span id="line-3999"> /**</span> <span class="source-line-no">4000</span><span id="line-4000"> * Indicates whether the page is a Messenger Platform Bot</span> <span class="source-line-no">4001</span><span id="line-4001"> *</span> <span class="source-line-no">4002</span><span id="line-4002"> * @return Indicates whether the page is a Messenger Platform Bot</span> <span class="source-line-no">4003</span><span id="line-4003"> */</span> <span class="source-line-no">4004</span><span id="line-4004"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4005</span><span id="line-4005"> public Boolean getIsMessengerPlatformBot() {</span> <span class="source-line-no">4006</span><span id="line-4006"> return this.isMessengerPlatformBot;</span> <span class="source-line-no">4007</span><span id="line-4007"> }</span> <span class="source-line-no">4008</span><span id="line-4008"></span> <span class="source-line-no">4009</span><span id="line-4009"> /**</span> <span class="source-line-no">4010</span><span id="line-4010"> * Indicates whether the page is a Messenger Platform Bot</span> <span class="source-line-no">4011</span><span id="line-4011"> */</span> <span class="source-line-no">4012</span><span id="line-4012"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4013</span><span id="line-4013"> public void setIsMessengerPlatformBot(final Boolean isMessengerPlatformBot) {</span> <span class="source-line-no">4014</span><span id="line-4014"> this.isMessengerPlatformBot = isMessengerPlatformBot;</span> <span class="source-line-no">4015</span><span id="line-4015"> }</span> <span class="source-line-no">4016</span><span id="line-4016"></span> <span class="source-line-no">4017</span><span id="line-4017"> /**</span> <span class="source-line-no">4018</span><span id="line-4018"> * Indicates whether page is owned</span> <span class="source-line-no">4019</span><span id="line-4019"> *</span> <span class="source-line-no">4020</span><span id="line-4020"> * @return Indicates whether page is owned</span> <span class="source-line-no">4021</span><span id="line-4021"> */</span> <span class="source-line-no">4022</span><span id="line-4022"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4023</span><span id="line-4023"> public Boolean getIsOwned() {</span> <span class="source-line-no">4024</span><span id="line-4024"> return this.isOwned;</span> <span class="source-line-no">4025</span><span id="line-4025"> }</span> <span class="source-line-no">4026</span><span id="line-4026"></span> <span class="source-line-no">4027</span><span id="line-4027"> /**</span> <span class="source-line-no">4028</span><span id="line-4028"> * Indicates whether page is owned</span> <span class="source-line-no">4029</span><span id="line-4029"> */</span> <span class="source-line-no">4030</span><span id="line-4030"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4031</span><span id="line-4031"> public void setIsOwned(final Boolean isOwned) {</span> <span class="source-line-no">4032</span><span id="line-4032"> this.isOwned = isOwned;</span> <span class="source-line-no">4033</span><span id="line-4033"> }</span> <span class="source-line-no">4034</span><span id="line-4034"></span> <span class="source-line-no">4035</span><span id="line-4035"> /**</span> <span class="source-line-no">4036</span><span id="line-4036"> * A description of this page.</span> <span class="source-line-no">4037</span><span id="line-4037"> * </span> <span class="source-line-no">4038</span><span id="line-4038"> * @return A description of this page.</span> <span class="source-line-no">4039</span><span id="line-4039"> */</span> <span class="source-line-no">4040</span><span id="line-4040"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4041</span><span id="line-4041"> public String getDescription() {</span> <span class="source-line-no">4042</span><span id="line-4042"> return this.description;</span> <span class="source-line-no">4043</span><span id="line-4043"> }</span> <span class="source-line-no">4044</span><span id="line-4044"></span> <span class="source-line-no">4045</span><span id="line-4045"> /**</span> <span class="source-line-no">4046</span><span id="line-4046"> * A description of this page.</span> <span class="source-line-no">4047</span><span id="line-4047"> * </span> <span class="source-line-no">4048</span><span id="line-4048"> */</span> <span class="source-line-no">4049</span><span id="line-4049"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4050</span><span id="line-4050"> public void setDescription(final String description) {</span> <span class="source-line-no">4051</span><span id="line-4051"> this.description = description;</span> <span class="source-line-no">4052</span><span id="line-4052"> }</span> <span class="source-line-no">4053</span><span id="line-4053"></span> <span class="source-line-no">4054</span><span id="line-4054"> /**</span> <span class="source-line-no">4055</span><span id="line-4055"> * The description of the Page in raw HTML.</span> <span class="source-line-no">4056</span><span id="line-4056"> * </span> <span class="source-line-no">4057</span><span id="line-4057"> * @since 1.10.0</span> <span class="source-line-no">4058</span><span id="line-4058"> * @return The description of the Page in raw HTML</span> <span class="source-line-no">4059</span><span id="line-4059"> */</span> <span class="source-line-no">4060</span><span id="line-4060"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4061</span><span id="line-4061"> public String getDescriptionHtml() {</span> <span class="source-line-no">4062</span><span id="line-4062"> return this.descriptionHtml;</span> <span class="source-line-no">4063</span><span id="line-4063"> }</span> <span class="source-line-no">4064</span><span id="line-4064"></span> <span class="source-line-no">4065</span><span id="line-4065"> /**</span> <span class="source-line-no">4066</span><span id="line-4066"> * The description of the Page in raw HTML.</span> <span class="source-line-no">4067</span><span id="line-4067"> * </span> <span class="source-line-no">4068</span><span id="line-4068"> * @since 1.10.0</span> <span class="source-line-no">4069</span><span id="line-4069"> */</span> <span class="source-line-no">4070</span><span id="line-4070"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4071</span><span id="line-4071"> public void setDescriptionHtml(final String descriptionHtml) {</span> <span class="source-line-no">4072</span><span id="line-4072"> this.descriptionHtml = descriptionHtml;</span> <span class="source-line-no">4073</span><span id="line-4073"> }</span> <span class="source-line-no">4074</span><span id="line-4074"></span> <span class="source-line-no">4075</span><span id="line-4075"> /**</span> <span class="source-line-no">4076</span><span id="line-4076"> * The total number of users who have checked in to the Page.</span> <span class="source-line-no">4077</span><span id="line-4077"> * </span> <span class="source-line-no">4078</span><span id="line-4078"> * @return The total number of users who have checked in to the Page.</span> <span class="source-line-no">4079</span><span id="line-4079"> */</span> <span class="source-line-no">4080</span><span id="line-4080"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4081</span><span id="line-4081"> public Integer getCheckins() {</span> <span class="source-line-no">4082</span><span id="line-4082"> return this.checkins;</span> <span class="source-line-no">4083</span><span id="line-4083"> }</span> <span class="source-line-no">4084</span><span id="line-4084"></span> <span class="source-line-no">4085</span><span id="line-4085"> /**</span> <span class="source-line-no">4086</span><span id="line-4086"> * The total number of users who have checked in to the Page.</span> <span class="source-line-no">4087</span><span id="line-4087"> * </span> <span class="source-line-no">4088</span><span id="line-4088"> */</span> <span class="source-line-no">4089</span><span id="line-4089"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4090</span><span id="line-4090"> public void setCheckins(final Integer checkins) {</span> <span class="source-line-no">4091</span><span id="line-4091"> this.checkins = checkins;</span> <span class="source-line-no">4092</span><span id="line-4092"> }</span> <span class="source-line-no">4093</span><span id="line-4093"></span> <span class="source-line-no">4094</span><span id="line-4094"> /**</span> <span class="source-line-no">4095</span><span id="line-4095"> * The phone number (not always normalized for country code) for the Page.</span> <span class="source-line-no">4096</span><span id="line-4096"> * </span> <span class="source-line-no">4097</span><span id="line-4097"> * @return The phone number (not always normalized for country code) for the Page.</span> <span class="source-line-no">4098</span><span id="line-4098"> */</span> <span class="source-line-no">4099</span><span id="line-4099"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4100</span><span id="line-4100"> public String getPhone() {</span> <span class="source-line-no">4101</span><span id="line-4101"> return this.phone;</span> <span class="source-line-no">4102</span><span id="line-4102"> }</span> <span class="source-line-no">4103</span><span id="line-4103"></span> <span class="source-line-no">4104</span><span id="line-4104"> /**</span> <span class="source-line-no">4105</span><span id="line-4105"> * The phone number (not always normalized for country code) for the Page.</span> <span class="source-line-no">4106</span><span id="line-4106"> * </span> <span class="source-line-no">4107</span><span id="line-4107"> */</span> <span class="source-line-no">4108</span><span id="line-4108"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4109</span><span id="line-4109"> public void setPhone(final String phone) {</span> <span class="source-line-no">4110</span><span id="line-4110"> this.phone = phone;</span> <span class="source-line-no">4111</span><span id="line-4111"> }</span> <span class="source-line-no">4112</span><span id="line-4112"></span> <span class="source-line-no">4113</span><span id="line-4113"> /**</span> <span class="source-line-no">4114</span><span id="line-4114"> * Parking information. Applicable to Businesses and Places</span> <span class="source-line-no">4115</span><span id="line-4115"> *</span> <span class="source-line-no">4116</span><span id="line-4116"> * @return Parking information. Applicable to Businesses and Places</span> <span class="source-line-no">4117</span><span id="line-4117"> */</span> <span class="source-line-no">4118</span><span id="line-4118"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4119</span><span id="line-4119"> public PageParking getParking() {</span> <span class="source-line-no">4120</span><span id="line-4120"> return this.parking;</span> <span class="source-line-no">4121</span><span id="line-4121"> }</span> <span class="source-line-no">4122</span><span id="line-4122"></span> <span class="source-line-no">4123</span><span id="line-4123"> /**</span> <span class="source-line-no">4124</span><span id="line-4124"> * Parking information. Applicable to Businesses and Places</span> <span class="source-line-no">4125</span><span id="line-4125"> */</span> <span class="source-line-no">4126</span><span id="line-4126"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4127</span><span id="line-4127"> public void setParking(final PageParking parking) {</span> <span class="source-line-no">4128</span><span id="line-4128"> this.parking = parking;</span> <span class="source-line-no">4129</span><span id="line-4129"> }</span> <span class="source-line-no">4130</span><span id="line-4130"></span> <span class="source-line-no">4131</span><span id="line-4131"> /**</span> <span class="source-line-no">4132</span><span id="line-4132"> * An admin {@code access_token} for this page.</span> <span class="source-line-no">4133</span><span id="line-4133"> * &lt;p&gt;</span> <span class="source-line-no">4134</span><span id="line-4134"> * The current user must be an administrator of this page; only returned if specifically requested via the fields URL</span> <span class="source-line-no">4135</span><span id="line-4135"> * parameter, e.g. {@code facebookClient.fetchObject("123", Page.class, Parameter.with("fields","access_token"))}</span> <span class="source-line-no">4136</span><span id="line-4136"> * </span> <span class="source-line-no">4137</span><span id="line-4137"> * @return The access token specific to this page.</span> <span class="source-line-no">4138</span><span id="line-4138"> * @since 1.6.5</span> <span class="source-line-no">4139</span><span id="line-4139"> */</span> <span class="source-line-no">4140</span><span id="line-4140"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4141</span><span id="line-4141"> public String getAccessToken() {</span> <span class="source-line-no">4142</span><span id="line-4142"> return this.accessToken;</span> <span class="source-line-no">4143</span><span id="line-4143"> }</span> <span class="source-line-no">4144</span><span id="line-4144"></span> <span class="source-line-no">4145</span><span id="line-4145"> /**</span> <span class="source-line-no">4146</span><span id="line-4146"> * An admin {@code access_token} for this page.</span> <span class="source-line-no">4147</span><span id="line-4147"> * &lt;p&gt;</span> <span class="source-line-no">4148</span><span id="line-4148"> * The current user must be an administrator of this page; only returned if specifically requested via the fields URL</span> <span class="source-line-no">4149</span><span id="line-4149"> * parameter, e.g. {@code facebookClient.fetchObject("123", Page.class, Parameter.with("fields","access_token"))}</span> <span class="source-line-no">4150</span><span id="line-4150"> * </span> <span class="source-line-no">4151</span><span id="line-4151"> * @since 1.6.5</span> <span class="source-line-no">4152</span><span id="line-4152"> */</span> <span class="source-line-no">4153</span><span id="line-4153"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4154</span><span id="line-4154"> public void setAccessToken(final String accessToken) {</span> <span class="source-line-no">4155</span><span id="line-4155"> this.accessToken = accessToken;</span> <span class="source-line-no">4156</span><span id="line-4156"> }</span> <span class="source-line-no">4157</span><span id="line-4157"></span> <span class="source-line-no">4158</span><span id="line-4158"> /**</span> <span class="source-line-no">4159</span><span id="line-4159"> * General information about this page.</span> <span class="source-line-no">4160</span><span id="line-4160"> * </span> <span class="source-line-no">4161</span><span id="line-4161"> * @return General information about this page.</span> <span class="source-line-no">4162</span><span id="line-4162"> * @since 1.6.10</span> <span class="source-line-no">4163</span><span id="line-4163"> */</span> <span class="source-line-no">4164</span><span id="line-4164"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4165</span><span id="line-4165"> public String getAbout() {</span> <span class="source-line-no">4166</span><span id="line-4166"> return this.about;</span> <span class="source-line-no">4167</span><span id="line-4167"> }</span> <span class="source-line-no">4168</span><span id="line-4168"></span> <span class="source-line-no">4169</span><span id="line-4169"> /**</span> <span class="source-line-no">4170</span><span id="line-4170"> * General information about this page.</span> <span class="source-line-no">4171</span><span id="line-4171"> * </span> <span class="source-line-no">4172</span><span id="line-4172"> * @since 1.6.10</span> <span class="source-line-no">4173</span><span id="line-4173"> */</span> <span class="source-line-no">4174</span><span id="line-4174"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4175</span><span id="line-4175"> public void setAbout(final String about) {</span> <span class="source-line-no">4176</span><span id="line-4176"> this.about = about;</span> <span class="source-line-no">4177</span><span id="line-4177"> }</span> <span class="source-line-no">4178</span><span id="line-4178"></span> <span class="source-line-no">4179</span><span id="line-4179"> /**</span> <span class="source-line-no">4180</span><span id="line-4180"> * The number of people that are talking about this page (last seven days).</span> <span class="source-line-no">4181</span><span id="line-4181"> * </span> <span class="source-line-no">4182</span><span id="line-4182"> * @return The number of people that are talking about this page (last seven days).</span> <span class="source-line-no">4183</span><span id="line-4183"> * @since 1.6.10</span> <span class="source-line-no">4184</span><span id="line-4184"> */</span> <span class="source-line-no">4185</span><span id="line-4185"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4186</span><span id="line-4186"> public Long getTalkingAboutCount() {</span> <span class="source-line-no">4187</span><span id="line-4187"> return this.talkingAboutCount;</span> <span class="source-line-no">4188</span><span id="line-4188"> }</span> <span class="source-line-no">4189</span><span id="line-4189"></span> <span class="source-line-no">4190</span><span id="line-4190"> /**</span> <span class="source-line-no">4191</span><span id="line-4191"> * The number of people that are talking about this page (last seven days).</span> <span class="source-line-no">4192</span><span id="line-4192"> * </span> <span class="source-line-no">4193</span><span id="line-4193"> * @since 1.6.10</span> <span class="source-line-no">4194</span><span id="line-4194"> */</span> <span class="source-line-no">4195</span><span id="line-4195"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4196</span><span id="line-4196"> public void setTalkingAboutCount(final Long talkingAboutCount) {</span> <span class="source-line-no">4197</span><span id="line-4197"> this.talkingAboutCount = talkingAboutCount;</span> <span class="source-line-no">4198</span><span id="line-4198"> }</span> <span class="source-line-no">4199</span><span id="line-4199"></span> <span class="source-line-no">4200</span><span id="line-4200"> /**</span> <span class="source-line-no">4201</span><span id="line-4201"> * Whether this page has checkin functionality enabled.</span> <span class="source-line-no">4202</span><span id="line-4202"> *</span> <span class="source-line-no">4203</span><span id="line-4203"> * @return Whether this page has checkin functionality enabled</span> <span class="source-line-no">4204</span><span id="line-4204"> */</span> <span class="source-line-no">4205</span><span id="line-4205"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4206</span><span id="line-4206"> public Boolean getCanCheckin() {</span> <span class="source-line-no">4207</span><span id="line-4207"> return this.canCheckin;</span> <span class="source-line-no">4208</span><span id="line-4208"> }</span> <span class="source-line-no">4209</span><span id="line-4209"></span> <span class="source-line-no">4210</span><span id="line-4210"> /**</span> <span class="source-line-no">4211</span><span id="line-4211"> * Whether this page has checkin functionality enabled.</span> <span class="source-line-no">4212</span><span id="line-4212"> */</span> <span class="source-line-no">4213</span><span id="line-4213"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4214</span><span id="line-4214"> public void setCanCheckin(final Boolean canCheckin) {</span> <span class="source-line-no">4215</span><span id="line-4215"> this.canCheckin = canCheckin;</span> <span class="source-line-no">4216</span><span id="line-4216"> }</span> <span class="source-line-no">4217</span><span id="line-4217"></span> <span class="source-line-no">4218</span><span id="line-4218"> /**</span> <span class="source-line-no">4219</span><span id="line-4219"> * Indicates whether the current session user can post on this page.</span> <span class="source-line-no">4220</span><span id="line-4220"> * </span> <span class="source-line-no">4221</span><span id="line-4221"> * @return Whether the current session user can post on this page.</span> <span class="source-line-no">4222</span><span id="line-4222"> * @since 1.6.10</span> <span class="source-line-no">4223</span><span id="line-4223"> */</span> <span class="source-line-no">4224</span><span id="line-4224"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4225</span><span id="line-4225"> public Boolean getCanPost() {</span> <span class="source-line-no">4226</span><span id="line-4226"> return this.canPost;</span> <span class="source-line-no">4227</span><span id="line-4227"> }</span> <span class="source-line-no">4228</span><span id="line-4228"></span> <span class="source-line-no">4229</span><span id="line-4229"> /**</span> <span class="source-line-no">4230</span><span id="line-4230"> * Indicates whether the current session user can post on this page.</span> <span class="source-line-no">4231</span><span id="line-4231"> * </span> <span class="source-line-no">4232</span><span id="line-4232"> * @since 1.6.10</span> <span class="source-line-no">4233</span><span id="line-4233"> */</span> <span class="source-line-no">4234</span><span id="line-4234"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4235</span><span id="line-4235"> public void setCanPost(final Boolean canPost) {</span> <span class="source-line-no">4236</span><span id="line-4236"> this.canPost = canPost;</span> <span class="source-line-no">4237</span><span id="line-4237"> }</span> <span class="source-line-no">4238</span><span id="line-4238"></span> <span class="source-line-no">4239</span><span id="line-4239"> /**</span> <span class="source-line-no">4240</span><span id="line-4240"> * Indicates whether the page is published and visible to non-admins.</span> <span class="source-line-no">4241</span><span id="line-4241"> * </span> <span class="source-line-no">4242</span><span id="line-4242"> * @return Whether the page is published and visible to non-admins.</span> <span class="source-line-no">4243</span><span id="line-4243"> * @since 1.6.10</span> <span class="source-line-no">4244</span><span id="line-4244"> */</span> <span class="source-line-no">4245</span><span id="line-4245"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4246</span><span id="line-4246"> public Boolean getIsPublished() {</span> <span class="source-line-no">4247</span><span id="line-4247"> return this.isPublished;</span> <span class="source-line-no">4248</span><span id="line-4248"> }</span> <span class="source-line-no">4249</span><span id="line-4249"></span> <span class="source-line-no">4250</span><span id="line-4250"> /**</span> <span class="source-line-no">4251</span><span id="line-4251"> * Indicates whether the page is published and visible to non-admins.</span> <span class="source-line-no">4252</span><span id="line-4252"> * </span> <span class="source-line-no">4253</span><span id="line-4253"> * @since 1.6.10</span> <span class="source-line-no">4254</span><span id="line-4254"> */</span> <span class="source-line-no">4255</span><span id="line-4255"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4256</span><span id="line-4256"> public void setIsPublished(final Boolean isPublished) {</span> <span class="source-line-no">4257</span><span id="line-4257"> this.isPublished = isPublished;</span> <span class="source-line-no">4258</span><span id="line-4258"> }</span> <span class="source-line-no">4259</span><span id="line-4259"></span> <span class="source-line-no">4260</span><span id="line-4260"> /**</span> <span class="source-line-no">4261</span><span id="line-4261"> * Indicates whether the Page is unclaimed.</span> <span class="source-line-no">4262</span><span id="line-4262"> * </span> <span class="source-line-no">4263</span><span id="line-4263"> * @return Indicates whether the Page is unclaimed.</span> <span class="source-line-no">4264</span><span id="line-4264"> * @since 1.7.0</span> <span class="source-line-no">4265</span><span id="line-4265"> */</span> <span class="source-line-no">4266</span><span id="line-4266"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4267</span><span id="line-4267"> public Boolean getIsUnclaimed() {</span> <span class="source-line-no">4268</span><span id="line-4268"> return this.isUnclaimed;</span> <span class="source-line-no">4269</span><span id="line-4269"> }</span> <span class="source-line-no">4270</span><span id="line-4270"></span> <span class="source-line-no">4271</span><span id="line-4271"> /**</span> <span class="source-line-no">4272</span><span id="line-4272"> * Indicates whether the Page is unclaimed.</span> <span class="source-line-no">4273</span><span id="line-4273"> * </span> <span class="source-line-no">4274</span><span id="line-4274"> * @since 1.7.0</span> <span class="source-line-no">4275</span><span id="line-4275"> */</span> <span class="source-line-no">4276</span><span id="line-4276"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4277</span><span id="line-4277"> public void setIsUnclaimed(final Boolean isUnclaimed) {</span> <span class="source-line-no">4278</span><span id="line-4278"> this.isUnclaimed = isUnclaimed;</span> <span class="source-line-no">4279</span><span id="line-4279"> }</span> <span class="source-line-no">4280</span><span id="line-4280"></span> <span class="source-line-no">4281</span><span id="line-4281"> /**</span> <span class="source-line-no">4282</span><span id="line-4282"> * Indicates whether the application is subscribed for real time updates from this page</span> <span class="source-line-no">4283</span><span id="line-4283"> *</span> <span class="source-line-no">4284</span><span id="line-4284"> * @return Indicates whether the application is subscribed for real time updates from this page</span> <span class="source-line-no">4285</span><span id="line-4285"> */</span> <span class="source-line-no">4286</span><span id="line-4286"> @GraphAPI(since = "2.7")</span> <span class="source-line-no">4287</span><span id="line-4287"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4288</span><span id="line-4288"> public Boolean getIsWebhooksSubscribed() {</span> <span class="source-line-no">4289</span><span id="line-4289"> return this.isWebhooksSubscribed;</span> <span class="source-line-no">4290</span><span id="line-4290"> }</span> <span class="source-line-no">4291</span><span id="line-4291"></span> <span class="source-line-no">4292</span><span id="line-4292"> /**</span> <span class="source-line-no">4293</span><span id="line-4293"> * Indicates whether the application is subscribed for real time updates from this page</span> <span class="source-line-no">4294</span><span id="line-4294"> */</span> <span class="source-line-no">4295</span><span id="line-4295"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4296</span><span id="line-4296"> public void setIsWebhooksSubscribed(final Boolean isWebhooksSubscribed) {</span> <span class="source-line-no">4297</span><span id="line-4297"> this.isWebhooksSubscribed = isWebhooksSubscribed;</span> <span class="source-line-no">4298</span><span id="line-4298"> }</span> <span class="source-line-no">4299</span><span id="line-4299"></span> <span class="source-line-no">4300</span><span id="line-4300"> /**</span> <span class="source-line-no">4301</span><span id="line-4301"> * The director of the film. Applicable to Films.</span> <span class="source-line-no">4302</span><span id="line-4302"> * </span> <span class="source-line-no">4303</span><span id="line-4303"> * @return The director of the film</span> <span class="source-line-no">4304</span><span id="line-4304"> * @since 1.7.0</span> <span class="source-line-no">4305</span><span id="line-4305"> */</span> <span class="source-line-no">4306</span><span id="line-4306"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4307</span><span id="line-4307"> public String getDirectedBy() {</span> <span class="source-line-no">4308</span><span id="line-4308"> return this.directedBy;</span> <span class="source-line-no">4309</span><span id="line-4309"> }</span> <span class="source-line-no">4310</span><span id="line-4310"></span> <span class="source-line-no">4311</span><span id="line-4311"> /**</span> <span class="source-line-no">4312</span><span id="line-4312"> * The director of the film. Applicable to Films.</span> <span class="source-line-no">4313</span><span id="line-4313"> * </span> <span class="source-line-no">4314</span><span id="line-4314"> * @since 1.7.0</span> <span class="source-line-no">4315</span><span id="line-4315"> */</span> <span class="source-line-no">4316</span><span id="line-4316"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4317</span><span id="line-4317"> public void setDirectedBy(final String directedBy) {</span> <span class="source-line-no">4318</span><span id="line-4318"> this.directedBy = directedBy;</span> <span class="source-line-no">4319</span><span id="line-4319"> }</span> <span class="source-line-no">4320</span><span id="line-4320"></span> <span class="source-line-no">4321</span><span id="line-4321"> /**</span> <span class="source-line-no">4322</span><span id="line-4322"> * Subtext about the Page being viewed.</span> <span class="source-line-no">4323</span><span id="line-4323"> *</span> <span class="source-line-no">4324</span><span id="line-4324"> * @return Subtext about the Page being viewed</span> <span class="source-line-no">4325</span><span id="line-4325"> */</span> <span class="source-line-no">4326</span><span id="line-4326"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4327</span><span id="line-4327"> public String getDisplaySubtext() {</span> <span class="source-line-no">4328</span><span id="line-4328"> return this.displaySubtext;</span> <span class="source-line-no">4329</span><span id="line-4329"> }</span> <span class="source-line-no">4330</span><span id="line-4330"></span> <span class="source-line-no">4331</span><span id="line-4331"> /**</span> <span class="source-line-no">4332</span><span id="line-4332"> * Subtext about the Page being viewed.</span> <span class="source-line-no">4333</span><span id="line-4333"> */</span> <span class="source-line-no">4334</span><span id="line-4334"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4335</span><span id="line-4335"> public void setDisplaySubtext(final String displaySubtext) {</span> <span class="source-line-no">4336</span><span id="line-4336"> this.displaySubtext = displaySubtext;</span> <span class="source-line-no">4337</span><span id="line-4337"> }</span> <span class="source-line-no">4338</span><span id="line-4338"></span> <span class="source-line-no">4339</span><span id="line-4339"> /**</span> <span class="source-line-no">4340</span><span id="line-4340"> * Page estimated message response time displayed to user</span> <span class="source-line-no">4341</span><span id="line-4341"> *</span> <span class="source-line-no">4342</span><span id="line-4342"> * @return Page estimated message response time displayed to user</span> <span class="source-line-no">4343</span><span id="line-4343"> */</span> <span class="source-line-no">4344</span><span id="line-4344"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4345</span><span id="line-4345"> public String getDisplayedMessageResponseTime() {</span> <span class="source-line-no">4346</span><span id="line-4346"> return this.displayedMessageResponseTime;</span> <span class="source-line-no">4347</span><span id="line-4347"> }</span> <span class="source-line-no">4348</span><span id="line-4348"></span> <span class="source-line-no">4349</span><span id="line-4349"> /**</span> <span class="source-line-no">4350</span><span id="line-4350"> * Page estimated message response time displayed to user</span> <span class="source-line-no">4351</span><span id="line-4351"> */</span> <span class="source-line-no">4352</span><span id="line-4352"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4353</span><span id="line-4353"> public void setDisplayedMessageResponseTime(final String displayedMessageResponseTime) {</span> <span class="source-line-no">4354</span><span id="line-4354"> this.displayedMessageResponseTime = displayedMessageResponseTime;</span> <span class="source-line-no">4355</span><span id="line-4355"> }</span> <span class="source-line-no">4356</span><span id="line-4356"></span> <span class="source-line-no">4357</span><span id="line-4357"> /**</span> <span class="source-line-no">4358</span><span id="line-4358"> * General manager of the business. Applicable to Restaurants or Nightlife.</span> <span class="source-line-no">4359</span><span id="line-4359"> * </span> <span class="source-line-no">4360</span><span id="line-4360"> * @return General manager of the business.</span> <span class="source-line-no">4361</span><span id="line-4361"> * @since 1.7.0</span> <span class="source-line-no">4362</span><span id="line-4362"> */</span> <span class="source-line-no">4363</span><span id="line-4363"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4364</span><span id="line-4364"> public String getGeneralManager() {</span> <span class="source-line-no">4365</span><span id="line-4365"> return this.generalManager;</span> <span class="source-line-no">4366</span><span id="line-4366"> }</span> <span class="source-line-no">4367</span><span id="line-4367"></span> <span class="source-line-no">4368</span><span id="line-4368"> /**</span> <span class="source-line-no">4369</span><span id="line-4369"> * General manager of the business. Applicable to Restaurants or Nightlife.</span> <span class="source-line-no">4370</span><span id="line-4370"> * </span> <span class="source-line-no">4371</span><span id="line-4371"> * @since 1.7.0</span> <span class="source-line-no">4372</span><span id="line-4372"> */</span> <span class="source-line-no">4373</span><span id="line-4373"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4374</span><span id="line-4374"> public void setGeneralManager(final String generalManager) {</span> <span class="source-line-no">4375</span><span id="line-4375"> this.generalManager = generalManager;</span> <span class="source-line-no">4376</span><span id="line-4376"> }</span> <span class="source-line-no">4377</span><span id="line-4377"></span> <span class="source-line-no">4378</span><span id="line-4378"> /**</span> <span class="source-line-no">4379</span><span id="line-4379"> * The general information for a page.</span> <span class="source-line-no">4380</span><span id="line-4380"> * </span> <span class="source-line-no">4381</span><span id="line-4381"> * @return The general information for a page.</span> <span class="source-line-no">4382</span><span id="line-4382"> * @since 1.6.12</span> <span class="source-line-no">4383</span><span id="line-4383"> */</span> <span class="source-line-no">4384</span><span id="line-4384"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4385</span><span id="line-4385"> public String getGeneralInfo() {</span> <span class="source-line-no">4386</span><span id="line-4386"> return this.generalInfo;</span> <span class="source-line-no">4387</span><span id="line-4387"> }</span> <span class="source-line-no">4388</span><span id="line-4388"></span> <span class="source-line-no">4389</span><span id="line-4389"> /**</span> <span class="source-line-no">4390</span><span id="line-4390"> * The general information for a page.</span> <span class="source-line-no">4391</span><span id="line-4391"> * </span> <span class="source-line-no">4392</span><span id="line-4392"> * @since 1.6.12</span> <span class="source-line-no">4393</span><span id="line-4393"> */</span> <span class="source-line-no">4394</span><span id="line-4394"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4395</span><span id="line-4395"> public void setGeneralInfo(final String generalInfo) {</span> <span class="source-line-no">4396</span><span id="line-4396"> this.generalInfo = generalInfo;</span> <span class="source-line-no">4397</span><span id="line-4397"> }</span> <span class="source-line-no">4398</span><span id="line-4398"></span> <span class="source-line-no">4399</span><span id="line-4399"> /**</span> <span class="source-line-no">4400</span><span id="line-4400"> * The location of the place this page represents.</span> <span class="source-line-no">4401</span><span id="line-4401"> * </span> <span class="source-line-no">4402</span><span id="line-4402"> * @return The location of the place this page represents.</span> <span class="source-line-no">4403</span><span id="line-4403"> */</span> <span class="source-line-no">4404</span><span id="line-4404"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4405</span><span id="line-4405"> public Location getLocation() {</span> <span class="source-line-no">4406</span><span id="line-4406"> return this.location;</span> <span class="source-line-no">4407</span><span id="line-4407"> }</span> <span class="source-line-no">4408</span><span id="line-4408"></span> <span class="source-line-no">4409</span><span id="line-4409"> /**</span> <span class="source-line-no">4410</span><span id="line-4410"> * The location of the place this page represents.</span> <span class="source-line-no">4411</span><span id="line-4411"> * </span> <span class="source-line-no">4412</span><span id="line-4412"> */</span> <span class="source-line-no">4413</span><span id="line-4413"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4414</span><span id="line-4414"> public void setLocation(final Location location) {</span> <span class="source-line-no">4415</span><span id="line-4415"> this.location = location;</span> <span class="source-line-no">4416</span><span id="line-4416"> }</span> <span class="source-line-no">4417</span><span id="line-4417"></span> <span class="source-line-no">4418</span><span id="line-4418"> /**</span> <span class="source-line-no">4419</span><span id="line-4419"> * The instant workflow merchant id associated with the Page</span> <span class="source-line-no">4420</span><span id="line-4420"> *</span> <span class="source-line-no">4421</span><span id="line-4421"> * @return The instant workflow merchant id associated with the Page</span> <span class="source-line-no">4422</span><span id="line-4422"> */</span> <span class="source-line-no">4423</span><span id="line-4423"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4424</span><span id="line-4424"> public String getMerchantId() {</span> <span class="source-line-no">4425</span><span id="line-4425"> return this.merchantId;</span> <span class="source-line-no">4426</span><span id="line-4426"> }</span> <span class="source-line-no">4427</span><span id="line-4427"></span> <span class="source-line-no">4428</span><span id="line-4428"> /**</span> <span class="source-line-no">4429</span><span id="line-4429"> * The instant workflow merchant id associated with the Page</span> <span class="source-line-no">4430</span><span id="line-4430"> */</span> <span class="source-line-no">4431</span><span id="line-4431"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4432</span><span id="line-4432"> public void setMerchantId(final String merchantId) {</span> <span class="source-line-no">4433</span><span id="line-4433"> this.merchantId = merchantId;</span> <span class="source-line-no">4434</span><span id="line-4434"> }</span> <span class="source-line-no">4435</span><span id="line-4435"></span> <span class="source-line-no">4436</span><span id="line-4436"> /**</span> <span class="source-line-no">4437</span><span id="line-4437"> * The cover photo.</span> <span class="source-line-no">4438</span><span id="line-4438"> * </span> <span class="source-line-no">4439</span><span id="line-4439"> * @return The cover photo.</span> <span class="source-line-no">4440</span><span id="line-4440"> * @since 1.6.10</span> <span class="source-line-no">4441</span><span id="line-4441"> */</span> <span class="source-line-no">4442</span><span id="line-4442"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4443</span><span id="line-4443"> public Cover getCover() {</span> <span class="source-line-no">4444</span><span id="line-4444"> return this.cover;</span> <span class="source-line-no">4445</span><span id="line-4445"> }</span> <span class="source-line-no">4446</span><span id="line-4446"></span> <span class="source-line-no">4447</span><span id="line-4447"> /**</span> <span class="source-line-no">4448</span><span id="line-4448"> * The cover photo.</span> <span class="source-line-no">4449</span><span id="line-4449"> * </span> <span class="source-line-no">4450</span><span id="line-4450"> * @since 1.6.10</span> <span class="source-line-no">4451</span><span id="line-4451"> */</span> <span class="source-line-no">4452</span><span id="line-4452"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4453</span><span id="line-4453"> public void setCover(final Cover cover) {</span> <span class="source-line-no">4454</span><span id="line-4454"> this.cover = cover;</span> <span class="source-line-no">4455</span><span id="line-4455"> }</span> <span class="source-line-no">4456</span><span id="line-4456"></span> <span class="source-line-no">4457</span><span id="line-4457"> /**</span> <span class="source-line-no">4458</span><span id="line-4458"> * The website URL</span> <span class="source-line-no">4459</span><span id="line-4459"> * </span> <span class="source-line-no">4460</span><span id="line-4460"> * @return the website url</span> <span class="source-line-no">4461</span><span id="line-4461"> * @since 1.6.15</span> <span class="source-line-no">4462</span><span id="line-4462"> */</span> <span class="source-line-no">4463</span><span id="line-4463"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4464</span><span id="line-4464"> public String getWebsite() {</span> <span class="source-line-no">4465</span><span id="line-4465"> return this.website;</span> <span class="source-line-no">4466</span><span id="line-4466"> }</span> <span class="source-line-no">4467</span><span id="line-4467"></span> <span class="source-line-no">4468</span><span id="line-4468"> /**</span> <span class="source-line-no">4469</span><span id="line-4469"> * The website URL</span> <span class="source-line-no">4470</span><span id="line-4470"> * </span> <span class="source-line-no">4471</span><span id="line-4471"> * @since 1.6.15</span> <span class="source-line-no">4472</span><span id="line-4472"> */</span> <span class="source-line-no">4473</span><span id="line-4473"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4474</span><span id="line-4474"> public void setWebsite(final String website) {</span> <span class="source-line-no">4475</span><span id="line-4475"> this.website = website;</span> <span class="source-line-no">4476</span><span id="line-4476"> }</span> <span class="source-line-no">4477</span><span id="line-4477"></span> <span class="source-line-no">4478</span><span id="line-4478"> /**</span> <span class="source-line-no">4479</span><span id="line-4479"> * The name of a Location Page that provides additional location information for that Page beside its name.</span> <span class="source-line-no">4480</span><span id="line-4480"> * </span> <span class="source-line-no">4481</span><span id="line-4481"> * @return the name of Location Page</span> <span class="source-line-no">4482</span><span id="line-4482"> * @since 1.7.0</span> <span class="source-line-no">4483</span><span id="line-4483"> */</span> <span class="source-line-no">4484</span><span id="line-4484"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4485</span><span id="line-4485"> public String getNameWithLocationDescriptor() {</span> <span class="source-line-no">4486</span><span id="line-4486"> return this.nameWithLocationDescriptor;</span> <span class="source-line-no">4487</span><span id="line-4487"> }</span> <span class="source-line-no">4488</span><span id="line-4488"></span> <span class="source-line-no">4489</span><span id="line-4489"> /**</span> <span class="source-line-no">4490</span><span id="line-4490"> * The name of a Location Page that provides additional location information for that Page beside its name.</span> <span class="source-line-no">4491</span><span id="line-4491"> * </span> <span class="source-line-no">4492</span><span id="line-4492"> * @since 1.7.0</span> <span class="source-line-no">4493</span><span id="line-4493"> */</span> <span class="source-line-no">4494</span><span id="line-4494"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4495</span><span id="line-4495"> public void setNameWithLocationDescriptor(final String nameWithLocationDescriptor) {</span> <span class="source-line-no">4496</span><span id="line-4496"> this.nameWithLocationDescriptor = nameWithLocationDescriptor;</span> <span class="source-line-no">4497</span><span id="line-4497"> }</span> <span class="source-line-no">4498</span><span id="line-4498"></span> <span class="source-line-no">4499</span><span id="line-4499"> /**</span> <span class="source-line-no">4500</span><span id="line-4500"> * Booking agent of the band. Applicable to Bands.</span> <span class="source-line-no">4501</span><span id="line-4501"> * </span> <span class="source-line-no">4502</span><span id="line-4502"> * @return Booking agent of the band</span> <span class="source-line-no">4503</span><span id="line-4503"> * @since 1.7.0</span> <span class="source-line-no">4504</span><span id="line-4504"> */</span> <span class="source-line-no">4505</span><span id="line-4505"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4506</span><span id="line-4506"> public String getBookingAgent() {</span> <span class="source-line-no">4507</span><span id="line-4507"> return this.bookingAgent;</span> <span class="source-line-no">4508</span><span id="line-4508"> }</span> <span class="source-line-no">4509</span><span id="line-4509"></span> <span class="source-line-no">4510</span><span id="line-4510"> /**</span> <span class="source-line-no">4511</span><span id="line-4511"> * Booking agent of the band. Applicable to Bands.</span> <span class="source-line-no">4512</span><span id="line-4512"> * </span> <span class="source-line-no">4513</span><span id="line-4513"> * @since 1.7.0</span> <span class="source-line-no">4514</span><span id="line-4514"> */</span> <span class="source-line-no">4515</span><span id="line-4515"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4516</span><span id="line-4516"> public void setBookingAgent(final String bookingAgent) {</span> <span class="source-line-no">4517</span><span id="line-4517"> this.bookingAgent = bookingAgent;</span> <span class="source-line-no">4518</span><span id="line-4518"> }</span> <span class="source-line-no">4519</span><span id="line-4519"></span> <span class="source-line-no">4520</span><span id="line-4520"> /**</span> <span class="source-line-no">4521</span><span id="line-4521"> * Press contact information of the band. Applicable to Bands.</span> <span class="source-line-no">4522</span><span id="line-4522"> * </span> <span class="source-line-no">4523</span><span id="line-4523"> * @return Press contact information of the band</span> <span class="source-line-no">4524</span><span id="line-4524"> * @since 1.7.0</span> <span class="source-line-no">4525</span><span id="line-4525"> */</span> <span class="source-line-no">4526</span><span id="line-4526"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4527</span><span id="line-4527"> public String getPressContact() {</span> <span class="source-line-no">4528</span><span id="line-4528"> return this.pressContact;</span> <span class="source-line-no">4529</span><span id="line-4529"> }</span> <span class="source-line-no">4530</span><span id="line-4530"></span> <span class="source-line-no">4531</span><span id="line-4531"> /**</span> <span class="source-line-no">4532</span><span id="line-4532"> * Press contact information of the band. Applicable to Bands.</span> <span class="source-line-no">4533</span><span id="line-4533"> * </span> <span class="source-line-no">4534</span><span id="line-4534"> * @since 1.7.0</span> <span class="source-line-no">4535</span><span id="line-4535"> */</span> <span class="source-line-no">4536</span><span id="line-4536"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4537</span><span id="line-4537"> public void setPressContact(final String pressContact) {</span> <span class="source-line-no">4538</span><span id="line-4538"> this.pressContact = pressContact;</span> <span class="source-line-no">4539</span><span id="line-4539"> }</span> <span class="source-line-no">4540</span><span id="line-4540"></span> <span class="source-line-no">4541</span><span id="line-4541"> /**</span> <span class="source-line-no">4542</span><span id="line-4542"> * Instagram account connected to page via page settings</span> <span class="source-line-no">4543</span><span id="line-4543"> */</span> <span class="source-line-no">4544</span><span id="line-4544"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4545</span><span id="line-4545"> public IgUser getConnectedInstagramAccount() {</span> <span class="source-line-no">4546</span><span id="line-4546"> return this.connectedInstagramAccount;</span> <span class="source-line-no">4547</span><span id="line-4547"> }</span> <span class="source-line-no">4548</span><span id="line-4548"></span> <span class="source-line-no">4549</span><span id="line-4549"> /**</span> <span class="source-line-no">4550</span><span id="line-4550"> * Instagram account connected to page via page settings</span> <span class="source-line-no">4551</span><span id="line-4551"> */</span> <span class="source-line-no">4552</span><span id="line-4552"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4553</span><span id="line-4553"> public void setConnectedInstagramAccount(final IgUser connectedInstagramAccount) {</span> <span class="source-line-no">4554</span><span id="line-4554"> this.connectedInstagramAccount = connectedInstagramAccount;</span> <span class="source-line-no">4555</span><span id="line-4555"> }</span> <span class="source-line-no">4556</span><span id="line-4556"></span> <span class="source-line-no">4557</span><span id="line-4557"> /**</span> <span class="source-line-no">4558</span><span id="line-4558"> * Instagram account linked to page during Instagram business conversion flow</span> <span class="source-line-no">4559</span><span id="line-4559"> */</span> <span class="source-line-no">4560</span><span id="line-4560"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4561</span><span id="line-4561"> public IgUser getInstagramBusinessAccount() {</span> <span class="source-line-no">4562</span><span id="line-4562"> return this.instagramBusinessAccount;</span> <span class="source-line-no">4563</span><span id="line-4563"> }</span> <span class="source-line-no">4564</span><span id="line-4564"></span> <span class="source-line-no">4565</span><span id="line-4565"> /**</span> <span class="source-line-no">4566</span><span id="line-4566"> * Instagram account linked to page during Instagram business conversion flow</span> <span class="source-line-no">4567</span><span id="line-4567"> */</span> <span class="source-line-no">4568</span><span id="line-4568"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4569</span><span id="line-4569"> public void setInstagramBusinessAccount(final IgUser instagramBusinessAccount) {</span> <span class="source-line-no">4570</span><span id="line-4570"> this.instagramBusinessAccount = instagramBusinessAccount;</span> <span class="source-line-no">4571</span><span id="line-4571"> }</span> <span class="source-line-no">4572</span><span id="line-4572"></span> <span class="source-line-no">4573</span><span id="line-4573"> /**</span> <span class="source-line-no">4574</span><span id="line-4574"> * Indicates the current Instant Articles review status for this page</span> <span class="source-line-no">4575</span><span id="line-4575"> *</span> <span class="source-line-no">4576</span><span id="line-4576"> * @return Indicates the current Instant Articles review status for this page</span> <span class="source-line-no">4577</span><span id="line-4577"> */</span> <span class="source-line-no">4578</span><span id="line-4578"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4579</span><span id="line-4579"> public String getInstantArticlesReviewStatus() {</span> <span class="source-line-no">4580</span><span id="line-4580"> return this.instantArticlesReviewStatus;</span> <span class="source-line-no">4581</span><span id="line-4581"> }</span> <span class="source-line-no">4582</span><span id="line-4582"></span> <span class="source-line-no">4583</span><span id="line-4583"> /**</span> <span class="source-line-no">4584</span><span id="line-4584"> * Indicates the current Instant Articles review status for this page</span> <span class="source-line-no">4585</span><span id="line-4585"> */</span> <span class="source-line-no">4586</span><span id="line-4586"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4587</span><span id="line-4587"> public void setInstantArticlesReviewStatus(final String instantArticlesReviewStatus) {</span> <span class="source-line-no">4588</span><span id="line-4588"> this.instantArticlesReviewStatus = instantArticlesReviewStatus;</span> <span class="source-line-no">4589</span><span id="line-4589"> }</span> <span class="source-line-no">4590</span><span id="line-4590"></span> <span class="source-line-no">4591</span><span id="line-4591"> /**</span> <span class="source-line-no">4592</span><span id="line-4592"> * last used time of this object by the current viewer</span> <span class="source-line-no">4593</span><span id="line-4593"> *</span> <span class="source-line-no">4594</span><span id="line-4594"> * @return last used time of this object by the current viewer</span> <span class="source-line-no">4595</span><span id="line-4595"> */</span> <span class="source-line-no">4596</span><span id="line-4596"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4597</span><span id="line-4597"> public Date getLastUsedTime() {</span> <span class="source-line-no">4598</span><span id="line-4598"> return this.lastUsedTime;</span> <span class="source-line-no">4599</span><span id="line-4599"> }</span> <span class="source-line-no">4600</span><span id="line-4600"></span> <span class="source-line-no">4601</span><span id="line-4601"> /**</span> <span class="source-line-no">4602</span><span id="line-4602"> * last used time of this object by the current viewer</span> <span class="source-line-no">4603</span><span id="line-4603"> */</span> <span class="source-line-no">4604</span><span id="line-4604"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4605</span><span id="line-4605"> public void setLastUsedTime(final Date lastUsedTime) {</span> <span class="source-line-no">4606</span><span id="line-4606"> this.lastUsedTime = lastUsedTime;</span> <span class="source-line-no">4607</span><span id="line-4607"> }</span> <span class="source-line-no">4608</span><span id="line-4608"></span> <span class="source-line-no">4609</span><span id="line-4609"> /**</span> <span class="source-line-no">4610</span><span id="line-4610"> * Page is utilising the new page experiece or not</span> <span class="source-line-no">4611</span><span id="line-4611"> */</span> <span class="source-line-no">4612</span><span id="line-4612"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4613</span><span id="line-4613"> public Boolean getHasTransitionedToNewPageExperience() {</span> <span class="source-line-no">4614</span><span id="line-4614"> return this.hasTransitionedToNewPageExperience;</span> <span class="source-line-no">4615</span><span id="line-4615"> }</span> <span class="source-line-no">4616</span><span id="line-4616"></span> <span class="source-line-no">4617</span><span id="line-4617"> /**</span> <span class="source-line-no">4618</span><span id="line-4618"> * Page is utilising the new page experiece or not</span> <span class="source-line-no">4619</span><span id="line-4619"> */</span> <span class="source-line-no">4620</span><span id="line-4620"> @java.lang.SuppressWarnings("all")</span> <span class="source-line-no">4621</span><span id="line-4621"> public void setHasTransitionedToNewPageExperience(final Boolean hasTransitionedToNewPageExperience) {</span> <span class="source-line-no">4622</span><span id="line-4622"> this.hasTransitionedToNewPageExperience = hasTransitionedToNewPageExperience;</span> <span class="source-line-no">4623</span><span id="line-4623"> }</span> <span class="source-line-no">4624</span><span id="line-4624">}</span> </pre> </div> </main> </body> </html>
{ "content_hash": "657f57c89bd5a9ef2ac2b52b78ed3f19", "timestamp": "", "source": "github", "line_count": 4682, "max_line_length": 194, "avg_line_length": 91.00234942332337, "alnum_prop": 0.6815146700213344, "repo_name": "restfb/restfb.github.io", "id": "6ecc08ccc752bad411f731e0906051cba7cfef3d", "size": "428503", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "javadoc/src-html/com/restfb/types/Page.PageRestaurantSpecialties.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5482" }, { "name": "HTML", "bytes": "25044" }, { "name": "JavaScript", "bytes": "16395" }, { "name": "SCSS", "bytes": "14167" } ], "symlink_target": "" }
namespace renderer { class Assembly; } namespace renderer { class Material; } // // Interface of an appleseed material plugin. // class IAppleseedMtl : public BaseInterface { public: static Interface_ID interface_id(); // BaseInterface methods. Interface_ID GetID() override; // The sides (front and/or back) on which this material should be applied. // The return value is a combination of renderer::ObjectInstance::Side values. virtual int get_sides() const = 0; // Can this material emit light, even if this particular instance does not // (for instance because its emission is set to 0)? virtual bool can_emit_light() const = 0; // Create an appleseed material. virtual foundation::auto_release_ptr<renderer::Material> create_material( renderer::Assembly& assembly, const char* name, const bool use_max_procedural_maps, const TimeValue time) = 0; }; // // IAppleseedMtl class implementation. // inline Interface_ID IAppleseedMtl::interface_id() { return Interface_ID(0x1d87d86, 0x209f11dc); } inline Interface_ID IAppleseedMtl::GetID() { return interface_id(); }
{ "content_hash": "bec22cda39568c42be66fc8e585b738a", "timestamp": "", "source": "github", "line_count": 46, "max_line_length": 82, "avg_line_length": 25.82608695652174, "alnum_prop": 0.6818181818181818, "repo_name": "usakhelo/appleseed-max", "id": "b1825b6cb1e4a213f09817379f4be63dfe37c323", "size": "2878", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/appleseed-max-common/iappleseedmtl.h", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "7848" }, { "name": "C", "bytes": "76631" }, { "name": "C++", "bytes": "910770" } ], "symlink_target": "" }
id: 5900f36f1000cf542c50fe82 challengeType: 5 title: 'Problem 3: Largest prime factor' videoUrl: '' localeTitle: 'Problema 3: Maior fator primordial' --- ## Description <section id="description"> Os fatores primos de 13195 são 5, 7, 13 e 29. Qual é o maior fator primo do <code>number</code> dado? </section> ## Instructions <section id="instructions"> </section> ## Tests <section id='tests'> ```yml tests: - text: <code>largestPrimeFactor(2)</code> deve retornar 2. testString: 'assert.strictEqual(largestPrimeFactor(2), 2, "<code>largestPrimeFactor(2)</code> should return 2.");' - text: <code>largestPrimeFactor(3)</code> deve retornar 3. testString: 'assert.strictEqual(largestPrimeFactor(3), 3, "<code>largestPrimeFactor(3)</code> should return 3.");' - text: <code>largestPrimeFactor(5)</code> deve retornar 5. testString: 'assert.strictEqual(largestPrimeFactor(5), 5, "<code>largestPrimeFactor(5)</code> should return 5.");' - text: <code>largestPrimeFactor(7)</code> deve retornar 7. testString: 'assert.strictEqual(largestPrimeFactor(7), 7, "<code>largestPrimeFactor(7)</code> should return 7.");' - text: <code>largestPrimeFactor(13195)</code> deve retornar 29. testString: 'assert.strictEqual(largestPrimeFactor(13195), 29, "<code>largestPrimeFactor(13195)</code> should return 29.");' - text: <code>largestPrimeFactor(600851475143)</code> deve retornar 6857. testString: 'assert.strictEqual(largestPrimeFactor(600851475143), 6857, "<code>largestPrimeFactor(600851475143)</code> should return 6857.");' ``` </section> ## Challenge Seed <section id='challengeSeed'> <div id='js-seed'> ```js function largestPrimeFactor(number) { // Good luck! return true; } largestPrimeFactor(13195); ``` </div> </section> ## Solution <section id='solution'> ```js // solution required ``` </section>
{ "content_hash": "88b270e4287b576e0907ed62d0446f09", "timestamp": "", "source": "github", "line_count": 64, "max_line_length": 146, "avg_line_length": 28.953125, "alnum_prop": 0.7166756610901241, "repo_name": "pahosler/freecodecamp", "id": "62417b22ba18aaf7d47f69c269c8d29ba649ca98", "size": "1859", "binary": false, "copies": "6", "ref": "refs/heads/master", "path": "curriculum/challenges/portuguese/08-coding-interview-prep/project-euler/problem-3-largest-prime-factor.portuguese.md", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "35491" }, { "name": "HTML", "bytes": "17600" }, { "name": "JavaScript", "bytes": "777274" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Copyright 2003 - 2016 The eFaps Team Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <ui-menu xmlns="http://www.efaps.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd"> <uuid>568e7bab-4625-401a-84b3-baf599cd806b</uuid> <file-application>eFapsApp-Accounting</file-application> <definition> <version-expression>(version==latest)</version-expression> <name>Accounting_PeriodTree_PayMenu_IncomingSecurities_Menu_Action</name> <childs> <child>Accounting_PeriodTree_PayMenu_IncomingSecurities_Menu_Action_Register</child> <child>Accounting_Period_Action_Assign</child> <child>Accounting_Period_Action_Archive</child> </childs> </definition> </ui-menu>
{ "content_hash": "0a2e23d92239adfe24bf85cf90a25dda", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 96, "avg_line_length": 42.03030303030303, "alnum_prop": 0.7209805335255948, "repo_name": "eFaps/eFapsApp-Accounting", "id": "06b03e64bed3d7bcc49b7f8f4b8741b29e0b47e0", "size": "1387", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/efaps/UserInterface/Period/PayMenu/Accounting_PeriodTree_PayMenu_IncomingSecurities_Menu_Action.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1521592" } ], "symlink_target": "" }
/* First created by JCasGen Fri Jan 03 13:40:15 CST 2014 */ package org.apache.ctakes.typesystem.type.refsem; import org.apache.uima.jcas.JCas; import org.apache.uima.jcas.JCasRegistry; import org.apache.uima.cas.impl.CASImpl; import org.apache.uima.cas.impl.FSGenerator; import org.apache.uima.cas.FeatureStructure; import org.apache.uima.cas.impl.TypeImpl; import org.apache.uima.cas.Type; import org.apache.uima.cas.impl.FeatureImpl; import org.apache.uima.cas.Feature; /** This is an Event from the UMLS semantic group of Procedures (except that Laboratory procedures are separate). Based on generic Clinical Element Models (CEMs) * Updated by JCasGen Fri Jan 03 13:40:15 CST 2014 * @generated */ public class Procedure_Type extends Event_Type { /** @generated */ @Override protected FSGenerator getFSGenerator() {return fsGenerator;} /** @generated */ private final FSGenerator fsGenerator = new FSGenerator() { public FeatureStructure createFS(int addr, CASImpl cas) { if (Procedure_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Procedure_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Procedure(addr, Procedure_Type.this); Procedure_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Procedure(addr, Procedure_Type.this); } }; /** @generated */ @SuppressWarnings ("hiding") public final static int typeIndexID = Procedure.typeIndexID; /** @generated @modifiable */ @SuppressWarnings ("hiding") public final static boolean featOkTst = JCasRegistry.getFeatOkTst("org.apache.ctakes.typesystem.type.refsem.Procedure"); /** @generated */ final Feature casFeat_bodyLaterality; /** @generated */ final int casFeatCode_bodyLaterality; /** @generated */ public int getBodyLaterality(int addr) { if (featOkTst && casFeat_bodyLaterality == null) jcas.throwFeatMissing("bodyLaterality", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_bodyLaterality); } /** @generated */ public void setBodyLaterality(int addr, int v) { if (featOkTst && casFeat_bodyLaterality == null) jcas.throwFeatMissing("bodyLaterality", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_bodyLaterality, v);} /** @generated */ final Feature casFeat_bodySide; /** @generated */ final int casFeatCode_bodySide; /** @generated */ public int getBodySide(int addr) { if (featOkTst && casFeat_bodySide == null) jcas.throwFeatMissing("bodySide", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_bodySide); } /** @generated */ public void setBodySide(int addr, int v) { if (featOkTst && casFeat_bodySide == null) jcas.throwFeatMissing("bodySide", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_bodySide, v);} /** @generated */ final Feature casFeat_bodyLocation; /** @generated */ final int casFeatCode_bodyLocation; /** @generated */ public int getBodyLocation(int addr) { if (featOkTst && casFeat_bodyLocation == null) jcas.throwFeatMissing("bodyLocation", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_bodyLocation); } /** @generated */ public void setBodyLocation(int addr, int v) { if (featOkTst && casFeat_bodyLocation == null) jcas.throwFeatMissing("bodyLocation", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_bodyLocation, v);} /** @generated */ final Feature casFeat_procedureDevice; /** @generated */ final int casFeatCode_procedureDevice; /** @generated */ public int getProcedureDevice(int addr) { if (featOkTst && casFeat_procedureDevice == null) jcas.throwFeatMissing("procedureDevice", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_procedureDevice); } /** @generated */ public void setProcedureDevice(int addr, int v) { if (featOkTst && casFeat_procedureDevice == null) jcas.throwFeatMissing("procedureDevice", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_procedureDevice, v);} /** @generated */ final Feature casFeat_duration; /** @generated */ final int casFeatCode_duration; /** @generated */ public int getDuration(int addr) { if (featOkTst && casFeat_duration == null) jcas.throwFeatMissing("duration", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_duration); } /** @generated */ public void setDuration(int addr, int v) { if (featOkTst && casFeat_duration == null) jcas.throwFeatMissing("duration", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_duration, v);} /** @generated */ final Feature casFeat_endTime; /** @generated */ final int casFeatCode_endTime; /** @generated */ public int getEndTime(int addr) { if (featOkTst && casFeat_endTime == null) jcas.throwFeatMissing("endTime", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_endTime); } /** @generated */ public void setEndTime(int addr, int v) { if (featOkTst && casFeat_endTime == null) jcas.throwFeatMissing("endTime", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_endTime, v);} /** @generated */ final Feature casFeat_method; /** @generated */ final int casFeatCode_method; /** @generated */ public int getMethod(int addr) { if (featOkTst && casFeat_method == null) jcas.throwFeatMissing("method", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_method); } /** @generated */ public void setMethod(int addr, int v) { if (featOkTst && casFeat_method == null) jcas.throwFeatMissing("method", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_method, v);} /** @generated */ final Feature casFeat_startTime; /** @generated */ final int casFeatCode_startTime; /** @generated */ public int getStartTime(int addr) { if (featOkTst && casFeat_startTime == null) jcas.throwFeatMissing("startTime", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_startTime); } /** @generated */ public void setStartTime(int addr, int v) { if (featOkTst && casFeat_startTime == null) jcas.throwFeatMissing("startTime", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_startTime, v);} /** @generated */ final Feature casFeat_relativeTemporalContext; /** @generated */ final int casFeatCode_relativeTemporalContext; /** @generated */ public int getRelativeTemporalContext(int addr) { if (featOkTst && casFeat_relativeTemporalContext == null) jcas.throwFeatMissing("relativeTemporalContext", "org.apache.ctakes.typesystem.type.refsem.Procedure"); return ll_cas.ll_getRefValue(addr, casFeatCode_relativeTemporalContext); } /** @generated */ public void setRelativeTemporalContext(int addr, int v) { if (featOkTst && casFeat_relativeTemporalContext == null) jcas.throwFeatMissing("relativeTemporalContext", "org.apache.ctakes.typesystem.type.refsem.Procedure"); ll_cas.ll_setRefValue(addr, casFeatCode_relativeTemporalContext, v);} /** initialize variables to correspond with Cas Type and Features * @generated */ public Procedure_Type(JCas jcas, Type casType) { super(jcas, casType); casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, getFSGenerator()); casFeat_bodyLaterality = jcas.getRequiredFeatureDE(casType, "bodyLaterality", "org.apache.ctakes.typesystem.type.refsem.BodyLaterality", featOkTst); casFeatCode_bodyLaterality = (null == casFeat_bodyLaterality) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_bodyLaterality).getCode(); casFeat_bodySide = jcas.getRequiredFeatureDE(casType, "bodySide", "org.apache.ctakes.typesystem.type.refsem.BodySide", featOkTst); casFeatCode_bodySide = (null == casFeat_bodySide) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_bodySide).getCode(); casFeat_bodyLocation = jcas.getRequiredFeatureDE(casType, "bodyLocation", "org.apache.ctakes.typesystem.type.relation.LocationOf", featOkTst); casFeatCode_bodyLocation = (null == casFeat_bodyLocation) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_bodyLocation).getCode(); casFeat_procedureDevice = jcas.getRequiredFeatureDE(casType, "procedureDevice", "org.apache.ctakes.typesystem.type.refsem.ProcedureDevice", featOkTst); casFeatCode_procedureDevice = (null == casFeat_procedureDevice) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_procedureDevice).getCode(); casFeat_duration = jcas.getRequiredFeatureDE(casType, "duration", "org.apache.ctakes.typesystem.type.relation.TemporalRelation", featOkTst); casFeatCode_duration = (null == casFeat_duration) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_duration).getCode(); casFeat_endTime = jcas.getRequiredFeatureDE(casType, "endTime", "org.apache.ctakes.typesystem.type.refsem.Time", featOkTst); casFeatCode_endTime = (null == casFeat_endTime) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_endTime).getCode(); casFeat_method = jcas.getRequiredFeatureDE(casType, "method", "org.apache.ctakes.typesystem.type.refsem.ProcedureMethod", featOkTst); casFeatCode_method = (null == casFeat_method) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_method).getCode(); casFeat_startTime = jcas.getRequiredFeatureDE(casType, "startTime", "org.apache.ctakes.typesystem.type.refsem.Time", featOkTst); casFeatCode_startTime = (null == casFeat_startTime) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_startTime).getCode(); casFeat_relativeTemporalContext = jcas.getRequiredFeatureDE(casType, "relativeTemporalContext", "org.apache.ctakes.typesystem.type.relation.TemporalRelation", featOkTst); casFeatCode_relativeTemporalContext = (null == casFeat_relativeTemporalContext) ? JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_relativeTemporalContext).getCode(); } }
{ "content_hash": "8b2b6aff4eda8b387cfe9424c16b37c8", "timestamp": "", "source": "github", "line_count": 259, "max_line_length": 174, "avg_line_length": 42.166023166023166, "alnum_prop": 0.7062540060434026, "repo_name": "schorndorfer/uima-components", "id": "9fa7e62e59665ba2217aa30d493c8522f49c675e", "size": "10921", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "annotator-parent/type-system/src/main/java/org/apache/ctakes/typesystem/type/refsem/Procedure_Type.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "150664" }, { "name": "Java", "bytes": "1430351" }, { "name": "Shell", "bytes": "246" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Vsts.Powershell")] [assembly: AssemblyDescription("")] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("60fba7c1-65b7-4c11-8f51-ad40d87e33fb")]
{ "content_hash": "c6429321b04a6adff99afef3e998f8ac", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 84, "avg_line_length": 43, "alnum_prop": 0.7945736434108527, "repo_name": "MinjetTech/Clix", "id": "172441849fe65620f23b480057eb1393505fd582", "size": "518", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "QA.Library/src/Vsts.Powershell/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "267966" }, { "name": "PowerShell", "bytes": "5070" }, { "name": "Smalltalk", "bytes": "650" } ], "symlink_target": "" }
import requests from allauth.socialaccount import app_settings from allauth.socialaccount.providers.oauth2.views import ( OAuth2Adapter, OAuth2CallbackView, OAuth2LoginView, ) from .provider import ShareFileProvider class ShareFileOAuth2Adapter(OAuth2Adapter): provider_id = ShareFileProvider.id settings = app_settings.PROVIDERS.get(provider_id, {}) subdomain = settings.get('SUBDOMAIN', 'secure') apicp = settings.get('APICP', 'sharefile.com') provider_default_url = settings.get('DEFAULT_URL', 'https://secure.sharefile.com') provider_default_api_url = 'https://{}.sf-api.com'.format(subdomain) provider_api_version = 'v3' access_token_url = 'https://{}.{}/oauth/token'.format(subdomain, apicp) refresh_token_url = 'https://{}.{}/oauth/token'.format(subdomain, apicp) authorize_url = '{}/oauth/authorize'.format(provider_default_url) profile_url = '{}/sf/{}/Users'.format(provider_default_api_url, provider_api_version) def complete_login(self, request, app, token, response): headers = {"Authorization": "Bearer {}".format(token.token)} extra_data = requests.get(self.profile_url, headers=headers).json() return self.get_provider().sociallogin_from_response(request, extra_data) oauth2_login = OAuth2LoginView.adapter_view(ShareFileOAuth2Adapter) oauth2_callback = OAuth2CallbackView.adapter_view(ShareFileOAuth2Adapter)
{ "content_hash": "b01f2ac8883f5d7a84fc9abd5031d963", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 76, "avg_line_length": 41.078947368421055, "alnum_prop": 0.657911595131326, "repo_name": "lukeburden/django-allauth", "id": "fb2e8af727133716bcd4d980c3ae2583b129d6a7", "size": "1561", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "allauth/socialaccount/providers/sharefile/views.py", "mode": "33188", "license": "mit", "language": [ { "name": "Emacs Lisp", "bytes": "104" }, { "name": "HTML", "bytes": "42255" }, { "name": "JavaScript", "bytes": "3360" }, { "name": "Makefile", "bytes": "396" }, { "name": "Python", "bytes": "776219" } ], "symlink_target": "" }
package org.geoserver.shell; import org.junit.Test; import static org.junit.Assert.*; public class GeoserverTest { @Test public void contructors() { Geoserver gs = new Geoserver(); assertNull(gs.getUrl()); assertNull(gs.getUser()); assertNull(gs.getPassword()); assertFalse(gs.isVerbose()); gs.setUrl("http://localhost:8080/geoserver"); assertEquals("http://localhost:8080/geoserver", gs.getUrl()); gs.setUser("admin"); assertEquals("admin", gs.getUser()); gs.setPassword("geoserver"); assertEquals("geoserver", gs.getPassword()); gs.setVerbose(true); assertTrue(gs.isVerbose()); gs = new Geoserver("http://localhost:8080/geoserver", "admin", "geoserver"); assertEquals("http://localhost:8080/geoserver", gs.getUrl()); assertEquals("admin", gs.getUser()); assertEquals("geoserver", gs.getPassword()); assertFalse(gs.isVerbose()); } }
{ "content_hash": "aeba4e876f82ff42abe7cbddde9d6c24", "timestamp": "", "source": "github", "line_count": 33, "max_line_length": 84, "avg_line_length": 30.21212121212121, "alnum_prop": 0.6188565697091274, "repo_name": "jericks/geoserver-shell", "id": "b67203ca7e47a2666dafdaece43a29052ca43508", "size": "997", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/test/java/org/geoserver/shell/GeoserverTest.java", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "811" }, { "name": "FreeMarker", "bytes": "47" }, { "name": "Groovy", "bytes": "437" }, { "name": "Java", "bytes": "533043" }, { "name": "Roff", "bytes": "166" }, { "name": "Scheme", "bytes": "906" }, { "name": "Shell", "bytes": "451" } ], "symlink_target": "" }
#ifndef __MAILBOX_CLIENT_H #define __MAILBOX_CLIENT_H #include <linux/of.h> #include <linux/device.h> struct mbox_chan; /** * struct mbox_client - User of a mailbox * @dev: The client device * @tx_block: If the mbox_send_message should block until data is * transmitted. * @tx_tout: Max block period in ms before TX is assumed failure * @knows_txdone: If the client could run the TX state machine. Usually * if the client receives some ACK packet for transmission. * Unused if the controller already has TX_Done/RTR IRQ. * @rx_callback: Atomic callback to provide client the data received * @tx_prepare: Atomic callback to ask client to prepare the payload * before initiating the transmission if required. * @tx_done: Atomic callback to tell client of data transmission */ struct mbox_client { struct device *dev; bool tx_block; unsigned long tx_tout; bool knows_txdone; void (*rx_callback)(struct mbox_client *cl, void *mssg); void (*tx_prepare)(struct mbox_client *cl, void *mssg); void (*tx_done)(struct mbox_client *cl, void *mssg, int r); }; struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl, const char *name); struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index); int mbox_send_message(struct mbox_chan *chan, void *mssg); void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */ bool mbox_client_peek_data(struct mbox_chan *chan); /* atomic */ void mbox_free_channel(struct mbox_chan *chan); /* may sleep */ #endif /* __MAILBOX_CLIENT_H */
{ "content_hash": "2d509fd88a864f8e7f31d43393ac8c55", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 74, "avg_line_length": 35.29545454545455, "alnum_prop": 0.7141017385705087, "repo_name": "publicloudapp/csrutil", "id": "44348710953f277576975b1bfe37375fc50e899c", "size": "1837", "binary": false, "copies": "1071", "ref": "refs/heads/master", "path": "linux-4.3/include/linux/mailbox_client.h", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "3984" }, { "name": "Awk", "bytes": "29136" }, { "name": "C", "bytes": "532969471" }, { "name": "C++", "bytes": "3352303" }, { "name": "Clojure", "bytes": "1489" }, { "name": "Cucumber", "bytes": "4701" }, { "name": "Groff", "bytes": "46775" }, { "name": "Lex", "bytes": "55199" }, { "name": "Makefile", "bytes": "1576284" }, { "name": "Objective-C", "bytes": "521540" }, { "name": "Perl", "bytes": "715196" }, { "name": "Perl6", "bytes": "3783" }, { "name": "Python", "bytes": "273092" }, { "name": "Shell", "bytes": "343618" }, { "name": "SourcePawn", "bytes": "4687" }, { "name": "UnrealScript", "bytes": "12797" }, { "name": "XS", "bytes": "1239" }, { "name": "Yacc", "bytes": "114559" } ], "symlink_target": "" }
""" Borrowed then modified from: http://tuohuang.info/unity-automate-post-process/#.U6i3_I1dVaR """ import os import plistlib from sys import argv from mod_pbxproj import XcodeProject path = argv[1] fileToAddPath = argv[2] BASE_PATH = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/' project = XcodeProject.Load(path + '/Unity-iPhone.xcodeproj/project.pbxproj') frameworks_path = BASE_PATH + 'System/Library/Frameworks/' lib_path = BASE_PATH + 'usr/lib/' # Add required libraries ############################ project.add_file(frameworks_path + 'Security.framework', tree='SDKROOT') project.add_file(frameworks_path + 'PassKit.framework', tree='SDKROOT', weak=True) project.add_file(lib_path + 'libicucore.dylib', tree='SDKROOT') # Add all files in /Assets/Editor/Arbiter/ files_in_dir = os.listdir(fileToAddPath) for f in files_in_dir: if not f.startswith('.'): # exclude .DS_STORE on mac pathname = os.path.join(fileToAddPath, f) fileName, fileExtension = os.path.splitext(pathname) if not fileExtension == '.meta': # skip .meta file if os.path.isfile(pathname): project.add_file(pathname) if os.path.isdir(pathname): project.add_folder(pathname, excludes=["^.*\.meta$"]) # Change build settings ############################ project.add_other_buildsetting('GCC_ENABLE_OBJC_EXCEPTIONS', 'YES') project.add_other_buildsetting('CLANG_ENABLE_MODULES', 'YES') project.add_other_buildsetting('IPHONEOS_DEPLOYMENT_TARGET', '7.0') # Add ARC compiler flag for Stripe and PaymentKit files ######################################################## for key in project.get_ids(): obj = project.get_obj(key) file_path = obj.get('path') try: if 'Arbiter' in file_path or \ 'PaymentKit' in file_path or \ 'Stripe' in file_path or \ 'Mixpanel' in file_path: build_files = project.get_build_files(key) if build_files is not None: for build_file in build_files: build_file.add_compiler_flag('-fobjc-arc') except Exception as err: pass # Add Info.plist keys for location services ######################################################## rootObject = plistlib.readPlist(path + '/Info.plist') rootObject['NSLocationWhenInUseUsageDescription'] = 'This is required to participate in cash games.' plistlib.writePlist(rootObject, path + '/Info.plist') # Now save ############################ if project.modified: project.backup() project.save()
{ "content_hash": "ef875f9030f21883ad74f326d19b9715", "timestamp": "", "source": "github", "line_count": 71, "max_line_length": 113, "avg_line_length": 36.70422535211268, "alnum_prop": 0.6304681504221028, "repo_name": "ArbiterGames/Clickster", "id": "444ced309ac3df22ca71880096bf26b3f0b32615", "size": "2606", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Clickster/Assets/Editor/ArbiterPostprocessor.py", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "6541" }, { "name": "C#", "bytes": "89957" }, { "name": "C++", "bytes": "2170" }, { "name": "Objective-C", "bytes": "750005" }, { "name": "Python", "bytes": "44756" } ], "symlink_target": "" }
package featureflag import ( "os" "testing" "k8s.io/klog/v2" ) func TestFlagToFalse(t *testing.T) { f := new("UnitTest1", Bool(true)) if !f.Enabled() { t.Fatalf("Flag did not default true") } // Really just to force a dependency on glog, so that we can pass -v and -logtostderr to go test klog.Info("Created flag Unittest1") ParseFlags("-UnitTest1") if f.Enabled() { t.Fatalf("Flag did not default turn off") } ParseFlags("UnitTest1") if !f.Enabled() { t.Fatalf("Flag did not default turn on") } } func TestSetenv(t *testing.T) { f := new("UnitTest2", Bool(true)) if !f.Enabled() { t.Fatalf("Flag did not default true") } os.Setenv("KOPS_FEATURE_FLAGS", "-UnitTest2") if !f.Enabled() { t.Fatalf("Flag was reparsed immediately after os.Setenv") } ParseFlags("-UnitTest2") if f.Enabled() { t.Fatalf("Flag was not updated by ParseFlags") } }
{ "content_hash": "20e5c37ca2605edb630be076afa6ac89", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 97, "avg_line_length": 18.829787234042552, "alnum_prop": 0.6621468926553672, "repo_name": "justinsb/kops", "id": "fc01631ad23176663e724985744ca6e2b93f93c9", "size": "1454", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pkg/featureflag/featureflag_test.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Dockerfile", "bytes": "3692" }, { "name": "Go", "bytes": "6343553" }, { "name": "HCL", "bytes": "2163692" }, { "name": "Makefile", "bytes": "52545" }, { "name": "Python", "bytes": "12002" }, { "name": "Roff", "bytes": "166125" }, { "name": "Shell", "bytes": "761369" }, { "name": "Starlark", "bytes": "5475" } ], "symlink_target": "" }
API Index ========= * emeraldinspirations * emeraldinspirations\library * emeraldinspirations\library\applicationArchitecture * [ArrayInterface](emeraldinspirations-library-applicationArchitecture-ArrayInterface.md) * [ResponseModelInterface](emeraldinspirations-library-applicationArchitecture-ResponseModelInterface.md) * [InteractorInterface](emeraldinspirations-library-applicationArchitecture-InteractorInterface.md) * [EntityGatewayInterface](emeraldinspirations-library-applicationArchitecture-EntityGatewayInterface.md) * [ImmutableArrayObject](emeraldinspirations-library-applicationArchitecture-ImmutableArrayObject.md) * [RequestModelInterface](emeraldinspirations-library-applicationArchitecture-RequestModelInterface.md) * [DataEntityInterface](emeraldinspirations-library-applicationArchitecture-DataEntityInterface.md) * [EntityGatewayCollectionInterface](emeraldinspirations-library-applicationArchitecture-EntityGatewayCollectionInterface.md)
{ "content_hash": "1609302499edb4924e8a1c4fdd2f9f97", "timestamp": "", "source": "github", "line_count": 15, "max_line_length": 137, "avg_line_length": 71.33333333333333, "alnum_prop": 0.7925233644859813, "repo_name": "emeraldinspirations/lib-applicationArchitecture", "id": "e42994a932928cfd3e68b487098db6f7e60db818", "size": "1070", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "phpDoc/md/ApiIndex.md", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "23591" } ], "symlink_target": "" }
int main(int argc, char* argv[]) { std::string fn, output; std::string data, new_data; std::string sub("data"); auto ret = setopts(argc, argv, fn, output); if (!ret) { showHelp(); return 0; } else if (fn.empty()) { return 0; } // File Data (std::string) data = file2string(fn); // Data Check if (!dataCheck(data, fn)) { return 1; } // Search `data` string Position auto subPos = data.find(sub); if (subPos == static_cast<std::string::size_type>(std::string::npos)) { std::cout << fn << ": Unknown Error" << std::endl; return 0; } // Create New Split Data auto new_size = getDataSize(data.substr(subPos+4, 4)); new_data = data.substr(subPos+8, new_size); if (!createData(output, new_data)) { return 1; } // Write Log std::cout << "Data Size: " << new_size << std::endl; std::cout << "Output: " << output << std::endl; return 0; }
{ "content_hash": "f3e63c9aaf6a989ed9e7680530023340", "timestamp": "", "source": "github", "line_count": 44, "max_line_length": 75, "avg_line_length": 22.613636363636363, "alnum_prop": 0.5336683417085427, "repo_name": "msmaiplruri/wave2data", "id": "13f9dc1f5bcaf4b8ac29efcbeebafe88a02a95f5", "size": "1019", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "main.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "3764" } ], "symlink_target": "" }
<h1>Controle de versão</h1> <h3>Sistema que registra as mudanças feitas em um arquivo ou um conjunto de arquivos ao longo do tempo de forma que você possa recuperar versões específicas</h3>
{ "content_hash": "e2dbcfca82ffde31c3c62d1a73152fc4", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 161, "avg_line_length": 95, "alnum_prop": 0.7947368421052632, "repo_name": "uaijug/hermes-workshop", "id": "f5896e28b632a570a431f4c1ffa36746fae009d6", "size": "195", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "slides/sessao1/sessao1-controle-de-versao.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "197293" }, { "name": "HTML", "bytes": "79605" }, { "name": "JavaScript", "bytes": "258957" } ], "symlink_target": "" }
#ifndef _WINBASE_ #define _WINBASE_ #include <_mingw_unicode.h> #define WINADVAPI DECLSPEC_IMPORT #define WINBASEAPI DECLSPEC_IMPORT #define ZAWPROXYAPI DECLSPEC_IMPORT #ifdef __cplusplus extern "C" { #endif /* #define DefineHandleTable(w) ((w),TRUE) */ #define DefineHandleTable(w) ( { (VOID)(w); TRUE; } ) #define LimitEmsPages(dw) #define SetSwapAreaSize(w) (w) #define LockSegment(w) GlobalFix((HANDLE)(w)) #define UnlockSegment(w) GlobalUnfix((HANDLE)(w)) #define GetCurrentTime() GetTickCount() #define Yield() #define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1) #define INVALID_FILE_SIZE ((DWORD)0xffffffff) #define INVALID_SET_FILE_POINTER ((DWORD)-1) #define INVALID_FILE_ATTRIBUTES ((DWORD)-1) #define FILE_BEGIN 0 #define FILE_CURRENT 1 #define FILE_END 2 #define TIME_ZONE_ID_INVALID ((DWORD)0xffffffff) #define WAIT_FAILED ((DWORD)0xffffffff) #define WAIT_OBJECT_0 ((STATUS_WAIT_0) + 0) #define WAIT_ABANDONED ((STATUS_ABANDONED_WAIT_0) + 0) #define WAIT_ABANDONED_0 ((STATUS_ABANDONED_WAIT_0) + 0) #define WAIT_IO_COMPLETION STATUS_USER_APC #define STILL_ACTIVE STATUS_PENDING #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE #define EXCEPTION_POSSIBLE_DEADLOCK STATUS_POSSIBLE_DEADLOCK #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT #define MoveMemory RtlMoveMemory #define CopyMemory RtlCopyMemory #define FillMemory RtlFillMemory #define ZeroMemory RtlZeroMemory #define SecureZeroMemory RtlSecureZeroMemory #define CaptureStackBackTrace RtlCaptureStackBackTrace #define FILE_FLAG_WRITE_THROUGH 0x80000000 #define FILE_FLAG_OVERLAPPED 0x40000000 #define FILE_FLAG_NO_BUFFERING 0x20000000 #define FILE_FLAG_RANDOM_ACCESS 0x10000000 #define FILE_FLAG_SEQUENTIAL_SCAN 0x8000000 #define FILE_FLAG_DELETE_ON_CLOSE 0x4000000 #define FILE_FLAG_BACKUP_SEMANTICS 0x2000000 #define FILE_FLAG_POSIX_SEMANTICS 0x1000000 #define FILE_FLAG_OPEN_REPARSE_POINT 0x200000 #define FILE_FLAG_OPEN_NO_RECALL 0x100000 #define FILE_FLAG_FIRST_PIPE_INSTANCE 0x80000 #define CREATE_NEW 1 #define CREATE_ALWAYS 2 #define OPEN_EXISTING 3 #define OPEN_ALWAYS 4 #define TRUNCATE_EXISTING 5 #define PROGRESS_CONTINUE 0 #define PROGRESS_CANCEL 1 #define PROGRESS_STOP 2 #define PROGRESS_QUIET 3 #define CALLBACK_CHUNK_FINISHED 0x0 #define CALLBACK_STREAM_SWITCH 0x1 #define COPY_FILE_FAIL_IF_EXISTS 0x1 #define COPY_FILE_RESTARTABLE 0x2 #define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x4 #define COPY_FILE_ALLOW_DECRYPTED_DESTINATION 0x8 #define COPY_FILE_COPY_SYMLINK 0x0800 #define COPY_FILE_NO_BUFFERING 0x1000 #define REPLACEFILE_WRITE_THROUGH 0x1 #define REPLACEFILE_IGNORE_MERGE_ERRORS 0x2 #define PIPE_ACCESS_INBOUND 0x1 #define PIPE_ACCESS_OUTBOUND 0x2 #define PIPE_ACCESS_DUPLEX 0x3 #define PIPE_CLIENT_END 0x0 #define PIPE_SERVER_END 0x1 #define PIPE_WAIT 0x0 #define PIPE_NOWAIT 0x1 #define PIPE_READMODE_BYTE 0x0 #define PIPE_READMODE_MESSAGE 0x2 #define PIPE_TYPE_BYTE 0x0 #define PIPE_TYPE_MESSAGE 0x4 #define PIPE_UNLIMITED_INSTANCES 255 #define SECURITY_ANONYMOUS (SecurityAnonymous << 16) #define SECURITY_IDENTIFICATION (SecurityIdentification << 16) #define SECURITY_IMPERSONATION (SecurityImpersonation << 16) #define SECURITY_DELEGATION (SecurityDelegation << 16) #define SECURITY_CONTEXT_TRACKING 0x40000 #define SECURITY_EFFECTIVE_ONLY 0x80000 #define SECURITY_SQOS_PRESENT 0x100000 #define SECURITY_VALID_SQOS_FLAGS 0x1f0000 #if (_WIN32_WINNT >= 0x0600) /* available in Vista SP1 and higher */ #define PROCESS_DEP_ENABLE 0x1 #define PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION 0x2 #endif typedef struct _OVERLAPPED { ULONG_PTR Internal; ULONG_PTR InternalHigh; __C89_NAMELESS union { __C89_NAMELESS struct { DWORD Offset; DWORD OffsetHigh; }; PVOID Pointer; }; HANDLE hEvent; } OVERLAPPED,*LPOVERLAPPED; typedef struct _SECURITY_ATTRIBUTES { DWORD nLength; LPVOID lpSecurityDescriptor; WINBOOL bInheritHandle; } SECURITY_ATTRIBUTES,*PSECURITY_ATTRIBUTES,*LPSECURITY_ATTRIBUTES; typedef struct _PROCESS_INFORMATION { HANDLE hProcess; HANDLE hThread; DWORD dwProcessId; DWORD dwThreadId; } PROCESS_INFORMATION,*PPROCESS_INFORMATION,*LPPROCESS_INFORMATION; #ifndef _FILETIME_ #define _FILETIME_ typedef struct _FILETIME { DWORD dwLowDateTime; DWORD dwHighDateTime; } FILETIME,*PFILETIME,*LPFILETIME; #endif #ifndef _SYSTEMTIME_ #define _SYSTEMTIME_ typedef struct _SYSTEMTIME { WORD wYear; WORD wMonth; WORD wDayOfWeek; WORD wDay; WORD wHour; WORD wMinute; WORD wSecond; WORD wMilliseconds; } SYSTEMTIME,*PSYSTEMTIME,*LPSYSTEMTIME; #endif /* _SYSTEMTIME_ */ typedef DWORD (WINAPI *PTHREAD_START_ROUTINE)(LPVOID lpThreadParameter); typedef PTHREAD_START_ROUTINE LPTHREAD_START_ROUTINE; typedef VOID (WINAPI *PFIBER_START_ROUTINE)(LPVOID lpFiberParameter); typedef PFIBER_START_ROUTINE LPFIBER_START_ROUTINE; typedef RTL_CRITICAL_SECTION CRITICAL_SECTION; typedef PRTL_CRITICAL_SECTION PCRITICAL_SECTION; typedef PRTL_CRITICAL_SECTION LPCRITICAL_SECTION; typedef RTL_CRITICAL_SECTION_DEBUG CRITICAL_SECTION_DEBUG; typedef PRTL_CRITICAL_SECTION_DEBUG PCRITICAL_SECTION_DEBUG; typedef PRTL_CRITICAL_SECTION_DEBUG LPCRITICAL_SECTION_DEBUG; WINBASEAPI PVOID WINAPI EncodePointer(PVOID Ptr); WINBASEAPI PVOID WINAPI DecodePointer(PVOID Ptr); WINBASEAPI PVOID WINAPI EncodeSystemPointer(PVOID Ptr); WINBASEAPI PVOID WINAPI DecodeSystemPointer(PVOID Ptr); #ifdef _X86_ typedef PLDT_ENTRY LPLDT_ENTRY; #else typedef LPVOID LPLDT_ENTRY; #endif #define MUTEX_MODIFY_STATE MUTANT_QUERY_STATE #define MUTEX_ALL_ACCESS MUTANT_ALL_ACCESS #define SP_SERIALCOMM ((DWORD)0x1) #define PST_UNSPECIFIED ((DWORD)0x0) #define PST_RS232 ((DWORD)0x1) #define PST_PARALLELPORT ((DWORD)0x2) #define PST_RS422 ((DWORD)0x3) #define PST_RS423 ((DWORD)0x4) #define PST_RS449 ((DWORD)0x5) #define PST_MODEM ((DWORD)0x6) #define PST_FAX ((DWORD)0x21) #define PST_SCANNER ((DWORD)0x22) #define PST_NETWORK_BRIDGE ((DWORD)0x100) #define PST_LAT ((DWORD)0x101) #define PST_TCPIP_TELNET ((DWORD)0x102) #define PST_X25 ((DWORD)0x103) #define PCF_DTRDSR ((DWORD)0x1) #define PCF_RTSCTS ((DWORD)0x2) #define PCF_RLSD ((DWORD)0x4) #define PCF_PARITY_CHECK ((DWORD)0x8) #define PCF_XONXOFF ((DWORD)0x10) #define PCF_SETXCHAR ((DWORD)0x20) #define PCF_TOTALTIMEOUTS ((DWORD)0x40) #define PCF_INTTIMEOUTS ((DWORD)0x80) #define PCF_SPECIALCHARS ((DWORD)0x100) #define PCF_16BITMODE ((DWORD)0x200) #define SP_PARITY ((DWORD)0x1) #define SP_BAUD ((DWORD)0x2) #define SP_DATABITS ((DWORD)0x4) #define SP_STOPBITS ((DWORD)0x8) #define SP_HANDSHAKING ((DWORD)0x10) #define SP_PARITY_CHECK ((DWORD)0x20) #define SP_RLSD ((DWORD)0x40) #define BAUD_075 ((DWORD)0x1) #define BAUD_110 ((DWORD)0x2) #define BAUD_134_5 ((DWORD)0x4) #define BAUD_150 ((DWORD)0x8) #define BAUD_300 ((DWORD)0x10) #define BAUD_600 ((DWORD)0x20) #define BAUD_1200 ((DWORD)0x40) #define BAUD_1800 ((DWORD)0x80) #define BAUD_2400 ((DWORD)0x100) #define BAUD_4800 ((DWORD)0x200) #define BAUD_7200 ((DWORD)0x400) #define BAUD_9600 ((DWORD)0x800) #define BAUD_14400 ((DWORD)0x1000) #define BAUD_19200 ((DWORD)0x2000) #define BAUD_38400 ((DWORD)0x4000) #define BAUD_56K ((DWORD)0x8000) #define BAUD_128K ((DWORD)0x10000) #define BAUD_115200 ((DWORD)0x20000) #define BAUD_57600 ((DWORD)0x40000) #define BAUD_USER ((DWORD)0x10000000) #define DATABITS_5 ((WORD)0x1) #define DATABITS_6 ((WORD)0x2) #define DATABITS_7 ((WORD)0x4) #define DATABITS_8 ((WORD)0x8) #define DATABITS_16 ((WORD)0x10) #define DATABITS_16X ((WORD)0x20) #define STOPBITS_10 ((WORD)0x1) #define STOPBITS_15 ((WORD)0x2) #define STOPBITS_20 ((WORD)0x4) #define PARITY_NONE ((WORD)0x100) #define PARITY_ODD ((WORD)0x200) #define PARITY_EVEN ((WORD)0x400) #define PARITY_MARK ((WORD)0x800) #define PARITY_SPACE ((WORD)0x1000) typedef struct _COMMPROP { WORD wPacketLength; WORD wPacketVersion; DWORD dwServiceMask; DWORD dwReserved1; DWORD dwMaxTxQueue; DWORD dwMaxRxQueue; DWORD dwMaxBaud; DWORD dwProvSubType; DWORD dwProvCapabilities; DWORD dwSettableParams; DWORD dwSettableBaud; WORD wSettableData; WORD wSettableStopParity; DWORD dwCurrentTxQueue; DWORD dwCurrentRxQueue; DWORD dwProvSpec1; DWORD dwProvSpec2; WCHAR wcProvChar[1]; } COMMPROP,*LPCOMMPROP; #define COMMPROP_INITIALIZED ((DWORD)0xE73CF52E) typedef struct _COMSTAT { DWORD fCtsHold : 1; DWORD fDsrHold : 1; DWORD fRlsdHold : 1; DWORD fXoffHold : 1; DWORD fXoffSent : 1; DWORD fEof : 1; DWORD fTxim : 1; DWORD fReserved : 25; DWORD cbInQue; DWORD cbOutQue; } COMSTAT,*LPCOMSTAT; #define DTR_CONTROL_DISABLE 0x0 #define DTR_CONTROL_ENABLE 0x1 #define DTR_CONTROL_HANDSHAKE 0x2 #define RTS_CONTROL_DISABLE 0x0 #define RTS_CONTROL_ENABLE 0x1 #define RTS_CONTROL_HANDSHAKE 0x2 #define RTS_CONTROL_TOGGLE 0x3 typedef struct _DCB { DWORD DCBlength; DWORD BaudRate; DWORD fBinary: 1; DWORD fParity: 1; DWORD fOutxCtsFlow:1; DWORD fOutxDsrFlow:1; DWORD fDtrControl:2; DWORD fDsrSensitivity:1; DWORD fTXContinueOnXoff: 1; DWORD fOutX: 1; DWORD fInX: 1; DWORD fErrorChar: 1; DWORD fNull: 1; DWORD fRtsControl:2; DWORD fAbortOnError:1; DWORD fDummy2:17; WORD wReserved; WORD XonLim; WORD XoffLim; BYTE ByteSize; BYTE Parity; BYTE StopBits; char XonChar; char XoffChar; char ErrorChar; char EofChar; char EvtChar; WORD wReserved1; } DCB,*LPDCB; typedef struct _COMMTIMEOUTS { DWORD ReadIntervalTimeout; DWORD ReadTotalTimeoutMultiplier; DWORD ReadTotalTimeoutConstant; DWORD WriteTotalTimeoutMultiplier; DWORD WriteTotalTimeoutConstant; } COMMTIMEOUTS,*LPCOMMTIMEOUTS; typedef struct _COMMCONFIG { DWORD dwSize; WORD wVersion; WORD wReserved; DCB dcb; DWORD dwProviderSubType; DWORD dwProviderOffset; DWORD dwProviderSize; WCHAR wcProviderData[1]; } COMMCONFIG,*LPCOMMCONFIG; typedef struct _SYSTEM_INFO { __C89_NAMELESS union { DWORD dwOemId; __C89_NAMELESS struct { WORD wProcessorArchitecture; WORD wReserved; } DUMMYSTRUCTNAME; } DUMMYUNIONNAME; DWORD dwPageSize; LPVOID lpMinimumApplicationAddress; LPVOID lpMaximumApplicationAddress; DWORD_PTR dwActiveProcessorMask; DWORD dwNumberOfProcessors; DWORD dwProcessorType; DWORD dwAllocationGranularity; WORD wProcessorLevel; WORD wProcessorRevision; } SYSTEM_INFO,*LPSYSTEM_INFO; #define FreeModule(hLibModule) FreeLibrary((hLibModule)) #define MakeProcInstance(lpProc,hInstance) (lpProc) #define FreeProcInstance(lpProc) (lpProc) #define GMEM_FIXED 0x0 #define GMEM_MOVEABLE 0x2 #define GMEM_NOCOMPACT 0x10 #define GMEM_NODISCARD 0x20 #define GMEM_ZEROINIT 0x40 #define GMEM_MODIFY 0x80 #define GMEM_DISCARDABLE 0x100 #define GMEM_NOT_BANKED 0x1000 #define GMEM_SHARE 0x2000 #define GMEM_DDESHARE 0x2000 #define GMEM_NOTIFY 0x4000 #define GMEM_LOWER GMEM_NOT_BANKED #define GMEM_VALID_FLAGS 0x7F72 #define GMEM_INVALID_HANDLE 0x8000 #define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT) #define GPTR (GMEM_FIXED | GMEM_ZEROINIT) #define GlobalLRUNewest(h) ((HANDLE)(h)) #define GlobalLRUOldest(h) ((HANDLE)(h)) #define GlobalDiscard(h) GlobalReAlloc((h),0,GMEM_MOVEABLE) #define GMEM_DISCARDED 0x4000 #define GMEM_LOCKCOUNT 0xff typedef struct _MEMORYSTATUS { DWORD dwLength; DWORD dwMemoryLoad; SIZE_T dwTotalPhys; SIZE_T dwAvailPhys; SIZE_T dwTotalPageFile; SIZE_T dwAvailPageFile; SIZE_T dwTotalVirtual; SIZE_T dwAvailVirtual; } MEMORYSTATUS,*LPMEMORYSTATUS; #define LMEM_FIXED 0x0 #define LMEM_MOVEABLE 0x2 #define LMEM_NOCOMPACT 0x10 #define LMEM_NODISCARD 0x20 #define LMEM_ZEROINIT 0x40 #define LMEM_MODIFY 0x80 #define LMEM_DISCARDABLE 0xf00 #define LMEM_VALID_FLAGS 0xf72 #define LMEM_INVALID_HANDLE 0x8000 #define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT) #define LPTR (LMEM_FIXED | LMEM_ZEROINIT) #define NONZEROLHND (LMEM_MOVEABLE) #define NONZEROLPTR (LMEM_FIXED) #define LocalDiscard(h) LocalReAlloc((h),0,LMEM_MOVEABLE) #define LMEM_DISCARDED 0x4000 #define LMEM_LOCKCOUNT 0xff #define DEBUG_PROCESS 0x1 #define DEBUG_ONLY_THIS_PROCESS 0x2 #define CREATE_SUSPENDED 0x4 #define DETACHED_PROCESS 0x8 #define CREATE_NEW_CONSOLE 0x10 #define NORMAL_PRIORITY_CLASS 0x20 #define IDLE_PRIORITY_CLASS 0x40 #define HIGH_PRIORITY_CLASS 0x80 #define REALTIME_PRIORITY_CLASS 0x100 #define CREATE_NEW_PROCESS_GROUP 0x200 #define CREATE_UNICODE_ENVIRONMENT 0x400 #define CREATE_SEPARATE_WOW_VDM 0x800 #define CREATE_SHARED_WOW_VDM 0x1000 #define CREATE_FORCEDOS 0x2000 #define BELOW_NORMAL_PRIORITY_CLASS 0x4000 #define ABOVE_NORMAL_PRIORITY_CLASS 0x8000 #define STACK_SIZE_PARAM_IS_A_RESERVATION 0x10000 #define CREATE_BREAKAWAY_FROM_JOB 0x1000000 #define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x2000000 #define CREATE_DEFAULT_ERROR_MODE 0x4000000 #define CREATE_NO_WINDOW 0x8000000 #define PROFILE_USER 0x10000000 #define PROFILE_KERNEL 0x20000000 #define PROFILE_SERVER 0x40000000 #define CREATE_IGNORE_SYSTEM_DEFAULT 0x80000000 #define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN #define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1) #define THREAD_PRIORITY_NORMAL 0 #define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX #define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1) #define THREAD_PRIORITY_ERROR_RETURN (MAXLONG) #define THREAD_MODE_BACKGROUND_BEGIN 0x00010000 #define THREAD_MODE_BACKGROUND_END 0x00020000 #define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT #define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE #define EXCEPTION_DEBUG_EVENT 1 #define CREATE_THREAD_DEBUG_EVENT 2 #define CREATE_PROCESS_DEBUG_EVENT 3 #define EXIT_THREAD_DEBUG_EVENT 4 #define EXIT_PROCESS_DEBUG_EVENT 5 #define LOAD_DLL_DEBUG_EVENT 6 #define UNLOAD_DLL_DEBUG_EVENT 7 #define OUTPUT_DEBUG_STRING_EVENT 8 #define RIP_EVENT 9 typedef struct _EXCEPTION_DEBUG_INFO { EXCEPTION_RECORD ExceptionRecord; DWORD dwFirstChance; } EXCEPTION_DEBUG_INFO,*LPEXCEPTION_DEBUG_INFO; typedef struct _CREATE_THREAD_DEBUG_INFO { HANDLE hThread; LPVOID lpThreadLocalBase; LPTHREAD_START_ROUTINE lpStartAddress; } CREATE_THREAD_DEBUG_INFO,*LPCREATE_THREAD_DEBUG_INFO; typedef struct _CREATE_PROCESS_DEBUG_INFO { HANDLE hFile; HANDLE hProcess; HANDLE hThread; LPVOID lpBaseOfImage; DWORD dwDebugInfoFileOffset; DWORD nDebugInfoSize; LPVOID lpThreadLocalBase; LPTHREAD_START_ROUTINE lpStartAddress; LPVOID lpImageName; WORD fUnicode; } CREATE_PROCESS_DEBUG_INFO,*LPCREATE_PROCESS_DEBUG_INFO; typedef struct _EXIT_THREAD_DEBUG_INFO { DWORD dwExitCode; } EXIT_THREAD_DEBUG_INFO,*LPEXIT_THREAD_DEBUG_INFO; typedef struct _EXIT_PROCESS_DEBUG_INFO { DWORD dwExitCode; } EXIT_PROCESS_DEBUG_INFO,*LPEXIT_PROCESS_DEBUG_INFO; typedef struct _LOAD_DLL_DEBUG_INFO { HANDLE hFile; LPVOID lpBaseOfDll; DWORD dwDebugInfoFileOffset; DWORD nDebugInfoSize; LPVOID lpImageName; WORD fUnicode; } LOAD_DLL_DEBUG_INFO,*LPLOAD_DLL_DEBUG_INFO; typedef struct _UNLOAD_DLL_DEBUG_INFO { LPVOID lpBaseOfDll; } UNLOAD_DLL_DEBUG_INFO,*LPUNLOAD_DLL_DEBUG_INFO; typedef struct _OUTPUT_DEBUG_STRING_INFO { LPSTR lpDebugStringData; WORD fUnicode; WORD nDebugStringLength; } OUTPUT_DEBUG_STRING_INFO,*LPOUTPUT_DEBUG_STRING_INFO; typedef struct _RIP_INFO { DWORD dwError; DWORD dwType; } RIP_INFO,*LPRIP_INFO; typedef struct _DEBUG_EVENT { DWORD dwDebugEventCode; DWORD dwProcessId; DWORD dwThreadId; union { EXCEPTION_DEBUG_INFO Exception; CREATE_THREAD_DEBUG_INFO CreateThread; CREATE_PROCESS_DEBUG_INFO CreateProcessInfo; EXIT_THREAD_DEBUG_INFO ExitThread; EXIT_PROCESS_DEBUG_INFO ExitProcess; LOAD_DLL_DEBUG_INFO LoadDll; UNLOAD_DLL_DEBUG_INFO UnloadDll; OUTPUT_DEBUG_STRING_INFO DebugString; RIP_INFO RipInfo; } u; } DEBUG_EVENT,*LPDEBUG_EVENT; typedef PCONTEXT LPCONTEXT; typedef PEXCEPTION_RECORD LPEXCEPTION_RECORD; typedef PEXCEPTION_POINTERS LPEXCEPTION_POINTERS; #define DRIVE_UNKNOWN 0 #define DRIVE_NO_ROOT_DIR 1 #define DRIVE_REMOVABLE 2 #define DRIVE_FIXED 3 #define DRIVE_REMOTE 4 #define DRIVE_CDROM 5 #define DRIVE_RAMDISK 6 #define GetFreeSpace(w) (0x100000L) #define FILE_TYPE_UNKNOWN 0x0 #define FILE_TYPE_DISK 0x1 #define FILE_TYPE_CHAR 0x2 #define FILE_TYPE_PIPE 0x3 #define FILE_TYPE_REMOTE 0x8000 #define STD_INPUT_HANDLE ((DWORD)-10) #define STD_OUTPUT_HANDLE ((DWORD)-11) #define STD_ERROR_HANDLE ((DWORD)-12) #define NOPARITY 0 #define ODDPARITY 1 #define EVENPARITY 2 #define MARKPARITY 3 #define SPACEPARITY 4 #define ONESTOPBIT 0 #define ONE5STOPBITS 1 #define TWOSTOPBITS 2 #define IGNORE 0 #define INFINITE 0xffffffff #define CBR_110 110 #define CBR_300 300 #define CBR_600 600 #define CBR_1200 1200 #define CBR_2400 2400 #define CBR_4800 4800 #define CBR_9600 9600 #define CBR_14400 14400 #define CBR_19200 19200 #define CBR_38400 38400 #define CBR_56000 56000 #define CBR_57600 57600 #define CBR_115200 115200 #define CBR_128000 128000 #define CBR_256000 256000 #define CE_RXOVER 0x1 #define CE_OVERRUN 0x2 #define CE_RXPARITY 0x4 #define CE_FRAME 0x8 #define CE_BREAK 0x10 #define CE_TXFULL 0x100 #define CE_PTO 0x200 #define CE_IOE 0x400 #define CE_DNS 0x800 #define CE_OOP 0x1000 #define CE_MODE 0x8000 #define IE_BADID (-1) #define IE_OPEN (-2) #define IE_NOPEN (-3) #define IE_MEMORY (-4) #define IE_DEFAULT (-5) #define IE_HARDWARE (-10) #define IE_BYTESIZE (-11) #define IE_BAUDRATE (-12) #define EV_RXCHAR 0x1 #define EV_RXFLAG 0x2 #define EV_TXEMPTY 0x4 #define EV_CTS 0x8 #define EV_DSR 0x10 #define EV_RLSD 0x20 #define EV_BREAK 0x40 #define EV_ERR 0x80 #define EV_RING 0x100 #define EV_PERR 0x200 #define EV_RX80FULL 0x400 #define EV_EVENT1 0x800 #define EV_EVENT2 0x1000 #define SETXOFF 1 #define SETXON 2 #define SETRTS 3 #define CLRRTS 4 #define SETDTR 5 #define CLRDTR 6 #define RESETDEV 7 #define SETBREAK 8 #define CLRBREAK 9 #define PURGE_TXABORT 0x1 #define PURGE_RXABORT 0x2 #define PURGE_TXCLEAR 0x4 #define PURGE_RXCLEAR 0x8 #define LPTx 0x80 #define MS_CTS_ON ((DWORD)0x10) #define MS_DSR_ON ((DWORD)0x20) #define MS_RING_ON ((DWORD)0x40) #define MS_RLSD_ON ((DWORD)0x80) #define S_QUEUEEMPTY 0 #define S_THRESHOLD 1 #define S_ALLTHRESHOLD 2 #define S_NORMAL 0 #define S_LEGATO 1 #define S_STACCATO 2 #define S_PERIOD512 0 #define S_PERIOD1024 1 #define S_PERIOD2048 2 #define S_PERIODVOICE 3 #define S_WHITE512 4 #define S_WHITE1024 5 #define S_WHITE2048 6 #define S_WHITEVOICE 7 #define S_SERDVNA (-1) #define S_SEROFM (-2) #define S_SERMACT (-3) #define S_SERQFUL (-4) #define S_SERBDNT (-5) #define S_SERDLN (-6) #define S_SERDCC (-7) #define S_SERDTP (-8) #define S_SERDVL (-9) #define S_SERDMD (-10) #define S_SERDSH (-11) #define S_SERDPT (-12) #define S_SERDFQ (-13) #define S_SERDDR (-14) #define S_SERDSR (-15) #define S_SERDST (-16) #define NMPWAIT_WAIT_FOREVER 0xffffffff #define NMPWAIT_NOWAIT 0x1 #define NMPWAIT_USE_DEFAULT_WAIT 0x0 #define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES #define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH #define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK #define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS #define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED #define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION #define FS_FILE_ENCRYPTION FILE_SUPPORTS_ENCRYPTION #define FILE_MAP_COPY SECTION_QUERY #define FILE_MAP_WRITE SECTION_MAP_WRITE #define FILE_MAP_READ SECTION_MAP_READ #define FILE_MAP_ALL_ACCESS SECTION_ALL_ACCESS #define FILE_MAP_EXECUTE SECTION_MAP_EXECUTE_EXPLICIT #define OF_READ 0x0 #define OF_WRITE 0x1 #define OF_READWRITE 0x2 #define OF_SHARE_COMPAT 0x0 #define OF_SHARE_EXCLUSIVE 0x10 #define OF_SHARE_DENY_WRITE 0x20 #define OF_SHARE_DENY_READ 0x30 #define OF_SHARE_DENY_NONE 0x40 #define OF_PARSE 0x100 #define OF_DELETE 0x200 #define OF_VERIFY 0x400 #define OF_CANCEL 0x800 #define OF_CREATE 0x1000 #define OF_PROMPT 0x2000 #define OF_EXIST 0x4000 #define OF_REOPEN 0x8000 #define OFS_MAXPATHNAME 128 typedef struct _OFSTRUCT { BYTE cBytes; BYTE fFixedDisk; WORD nErrCode; WORD Reserved1; WORD Reserved2; CHAR szPathName[OFS_MAXPATHNAME]; } OFSTRUCT,*LPOFSTRUCT,*POFSTRUCT; #ifndef NOWINBASEINTERLOCK #ifndef _NTOS_ #if defined(__ia64__) && !defined(RC_INVOKED) #define InterlockedIncrement _InterlockedIncrement #define InterlockedIncrementAcquire _InterlockedIncrement_acq #define InterlockedIncrementRelease _InterlockedIncrement_rel #define InterlockedDecrement _InterlockedDecrement #define InterlockedDecrementAcquire _InterlockedDecrement_acq #define InterlockedDecrementRelease _InterlockedDecrement_rel #define InterlockedExchange _InterlockedExchange #define InterlockedExchangeAdd _InterlockedExchangeAdd #define InterlockedCompareExchange _InterlockedCompareExchange #define InterlockedCompareExchangeAcquire _InterlockedCompareExchange_acq #define InterlockedCompareExchangeRelease _InterlockedCompareExchange_rel #define InterlockedExchangePointer _InterlockedExchangePointer #define InterlockedCompareExchangePointer _InterlockedCompareExchangePointer #define InterlockedCompareExchangePointerRelease _InterlockedCompareExchangePointer_rel #define InterlockedCompareExchangePointerAcquire _InterlockedCompareExchangePointer_acq #define InterlockedIncrement64 _InterlockedIncrement64 #define InterlockedDecrement64 _InterlockedDecrement64 #define InterlockedExchange64 _InterlockedExchange64 #define InterlockedExchangeAcquire64 _InterlockedExchange64_acq #define InterlockedExchangeAdd64 _InterlockedExchangeAdd64 #define InterlockedCompareExchange64 _InterlockedCompareExchange64 #define InterlockedCompareExchangeAcquire64 _InterlockedCompareExchange64_acq #define InterlockedCompareExchangeRelease64 _InterlockedCompareExchange64_rel LONGLONG __cdecl InterlockedIncrement64(LONGLONG volatile *Addend); LONGLONG __cdecl InterlockedDecrement64(LONGLONG volatile *Addend); LONG __cdecl InterlockedIncrementAcquire(LONG volatile *Addend); LONG __cdecl InterlockedDecrementAcquire(LONG volatile *Addend); LONG __cdecl InterlockedIncrementRelease(LONG volatile *Addend); LONG __cdecl InterlockedDecrementRelease(LONG volatile *Addend); LONGLONG __cdecl InterlockedExchange64 (LONGLONG volatile *Target,LONGLONG Value); LONGLONG __cdecl InterlockedExchangeAcquire64 (LONGLONG volatile *Target,LONGLONG Value); LONGLONG __cdecl InterlockedExchangeAdd64 (LONGLONG volatile *Addend,LONGLONG Value); LONGLONG __cdecl InterlockedCompareExchange64 (LONGLONG volatile *Destination,LONGLONG ExChange,LONGLONG Comperand); LONGLONG __cdecl InterlockedCompareExchangeAcquire64 (LONGLONG volatile *Destination,LONGLONG ExChange,LONGLONG Comperand); LONGLONG __cdecl InterlockedCompareExchangeRelease64 (LONGLONG volatile *Destination,LONGLONG ExChange,LONGLONG Comperand); LONG __cdecl InterlockedIncrement(LONG volatile *lpAddend); LONG __cdecl InterlockedDecrement(LONG volatile *lpAddend); LONG __cdecl InterlockedExchange(LONG volatile *Target,LONG Value); LONG __cdecl InterlockedExchangeAdd(LONG volatile *Addend,LONG Value); LONG __cdecl InterlockedCompareExchange(LONG volatile *Destination,LONG ExChange,LONG Comperand); LONG __cdecl InterlockedCompareExchangeRelease(LONG volatile *Destination,LONG ExChange,LONG Comperand); LONG __cdecl InterlockedCompareExchangeAcquire(LONG volatile *Destination,LONG ExChange,LONG Comperand); PVOID __cdecl InterlockedExchangePointer(PVOID volatile *Target,PVOID Value); PVOID __cdecl InterlockedCompareExchangePointer(PVOID volatile *Destination,PVOID ExChange,PVOID Comperand); PVOID __cdecl InterlockedCompareExchangePointerAcquire(PVOID volatile *Destination,PVOID Exchange,PVOID Comperand); PVOID __cdecl InterlockedCompareExchangePointerRelease(PVOID volatile *Destination,PVOID Exchange,PVOID Comperand); #ifndef __CRT__NO_INLINE #ifndef InterlockedAnd #define InterlockedAnd InterlockedAnd_Inline __CRT_INLINE LONG InterlockedAnd_Inline(LONG volatile *Target,LONG Set) { LONG i; LONG j; j = *Target; do { i = j; j = InterlockedCompareExchange(Target,i & Set,i); } while(i!=j); return j; } #endif #ifndef InterlockedOr #define InterlockedOr InterlockedOr_Inline __CRT_INLINE LONG InterlockedOr_Inline(LONG volatile *Target,LONG Set) { LONG i; LONG j; j = *Target; do { i = j; j = InterlockedCompareExchange(Target,i | Set,i); } while(i!=j); return j; } #endif #ifndef InterlockedXor #define InterlockedXor InterlockedXor_Inline __CRT_INLINE LONG InterlockedXor_Inline(LONG volatile *Target,LONG Set) { LONG i; LONG j; j = *Target; do { i = j; j = InterlockedCompareExchange(Target,i ^ Set,i); } while(i!=j); return j; } #endif #ifndef !defined (InterlockedAnd64) #define InterlockedAnd64 InterlockedAnd64_Inline __CRT_INLINE LONGLONG InterlockedAnd64_Inline (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old & Value,Old)!=Old); return Old; } #endif #ifndef InterlockedOr64 #define InterlockedOr64 InterlockedOr64_Inline __CRT_INLINE LONGLONG InterlockedOr64_Inline (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old | Value,Old)!=Old); return Old; } #endif #ifndef InterlockedXor64 #define InterlockedXor64 InterlockedXor64_Inline __CRT_INLINE LONGLONG InterlockedXor64_Inline (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old ^ Value,Old)!=Old); return Old; } #endif #ifndef InterlockedBitTestAndSet #define InterlockedBitTestAndSet InterlockedBitTestAndSet_Inline __CRT_INLINE BOOLEAN InterlockedBitTestAndSet_Inline(LONG *Base,LONG Bit) { LONG tBit; tBit = 1<<(Bit & (sizeof (*Base)*8-1)); return (BOOLEAN)((InterlockedOr(&Base[Bit/(sizeof(*Base)*8)],tBit)&tBit)!=0); } #endif #ifndef InterlockedBitTestAndReset #define InterlockedBitTestAndReset InterlockedBitTestAndReset_Inline __CRT_INLINE BOOLEAN InterlockedBitTestAndReset_Inline(LONG *Base,LONG Bit) { LONG tBit; tBit = 1<<(Bit & (sizeof (*Base)*8-1)); return (BOOLEAN)((InterlockedAnd(&Base[Bit/(sizeof(*Base)*8)],~tBit)&tBit)!=0); } #endif #ifndef InterlockedBitTestAndComplement #define InterlockedBitTestAndComplement InterlockedBitTestAndComplement_Inline __CRT_INLINE BOOLEAN InterlockedBitTestAndComplement_Inline(LONG *Base,LONG Bit) { LONG tBit; tBit = 1<<(Bit & (sizeof (*Base)*8-1)); return (BOOLEAN)((InterlockedXor(&Base[Bit/(sizeof(*Base)*8)],tBit)&tBit)!=0); } #endif #endif /* !__CRT__NO_INLINE */ #elif defined(__x86_64) && !defined(RC_INVOKED) #define InterlockedIncrement _InterlockedIncrement #define InterlockedIncrementAcquire InterlockedIncrement #define InterlockedIncrementRelease InterlockedIncrement #define InterlockedDecrement _InterlockedDecrement #define InterlockedDecrementAcquire InterlockedDecrement #define InterlockedDecrementRelease InterlockedDecrement #define InterlockedExchange _InterlockedExchange #define InterlockedExchangeAdd _InterlockedExchangeAdd #define InterlockedCompareExchange _InterlockedCompareExchange #define InterlockedCompareExchangeAcquire InterlockedCompareExchange #define InterlockedCompareExchangeRelease InterlockedCompareExchange #define InterlockedExchangePointer _InterlockedExchangePointer #define InterlockedCompareExchangePointer _InterlockedCompareExchangePointer #define InterlockedCompareExchangePointerAcquire _InterlockedCompareExchangePointer #define InterlockedCompareExchangePointerRelease _InterlockedCompareExchangePointer #define InterlockedAnd64 _InterlockedAnd64 #define InterlockedOr64 _InterlockedOr64 #define InterlockedXor64 _InterlockedXor64 #define InterlockedIncrement64 _InterlockedIncrement64 #define InterlockedDecrement64 _InterlockedDecrement64 #define InterlockedExchange64 _InterlockedExchange64 #define InterlockedExchangeAdd64 _InterlockedExchangeAdd64 #define InterlockedCompareExchange64 _InterlockedCompareExchange64 #define InterlockedCompareExchangeAcquire64 InterlockedCompareExchange64 #define InterlockedCompareExchangeRelease64 InterlockedCompareExchange64 LONG __cdecl _InterlockedIncrement(LONG volatile *Addend); LONG __cdecl _InterlockedDecrement(LONG volatile *Addend); LONG __cdecl _InterlockedExchange(LONG volatile *Target,LONG Value); LONG __cdecl _InterlockedExchangeAdd(LONG volatile *Addend,LONG Value); LONG __cdecl _InterlockedCompareExchange(LONG volatile *Destination,LONG ExChange,LONG Comperand); PVOID __cdecl _InterlockedCompareExchangePointer(PVOID volatile *Destination,PVOID Exchange,PVOID Comperand); PVOID __cdecl _InterlockedExchangePointer(PVOID volatile *Target,PVOID Value); LONG64 __cdecl _InterlockedAnd64(LONG64 volatile *Destination,LONG64 Value); LONG64 __cdecl _InterlockedOr64(LONG64 volatile *Destination,LONG64 Value); LONG64 __cdecl _InterlockedXor64(LONG64 volatile *Destination,LONG64 Value); LONG64 __cdecl _InterlockedIncrement64(LONG64 volatile *Addend); LONG64 __cdecl _InterlockedDecrement64(LONG64 volatile *Addend); LONG64 __cdecl _InterlockedExchange64(LONG64 volatile *Target,LONG64 Value); LONG64 __cdecl _InterlockedExchangeAdd64(LONG64 volatile *Addend,LONG64 Value); LONG64 __cdecl _InterlockedCompareExchange64(LONG64 volatile *Destination,LONG64 ExChange,LONG64 Comperand); #else /* not ia64, nor x64. */ LONG WINAPI InterlockedIncrement(LONG volatile *lpAddend); LONG WINAPI InterlockedDecrement(LONG volatile *lpAddend); LONG WINAPI InterlockedExchange(LONG volatile *Target,LONG Value); #define InterlockedExchangePointer(Target,Value) (PVOID)InterlockedExchange((PLONG)(Target),(LONG)(Value)) LONG WINAPI InterlockedExchangeAdd(LONG volatile *Addend,LONG Value); LONG WINAPI InterlockedCompareExchange(LONG volatile *Destination,LONG Exchange,LONG Comperand); LONGLONG WINAPI InterlockedCompareExchange64(LONGLONG volatile *Destination,LONGLONG Exchange,LONGLONG Comperand); LONGLONG WINAPI InterlockedAnd64 (LONGLONG volatile *Destination,LONGLONG Value); LONGLONG WINAPI InterlockedOr64 (LONGLONG volatile *Destination,LONGLONG Value); LONGLONG WINAPI InterlockedXor64 (LONGLONG volatile *Destination,LONGLONG Value); LONGLONG WINAPI InterlockedIncrement64(LONGLONG volatile *Addend); LONGLONG WINAPI InterlockedDecrement64(LONGLONG volatile *Addend); LONGLONG WINAPI InterlockedExchange64(LONGLONG volatile *Target,LONGLONG Value); LONGLONG WINAPI InterlockedExchangeAdd64(LONGLONG volatile *Addend,LONGLONG Value); #ifndef __CRT__NO_INLINE __CRT_INLINE LONGLONG WINAPI InterlockedAnd64 (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old & Value,Old)!=Old); return Old; } __CRT_INLINE LONGLONG WINAPI InterlockedOr64 (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old | Value,Old)!=Old); return Old; } __CRT_INLINE LONGLONG WINAPI InterlockedXor64 (LONGLONG volatile *Destination,LONGLONG Value) { LONGLONG Old; do { Old = *Destination; } while(InterlockedCompareExchange64(Destination,Old ^ Value,Old)!=Old); return Old; } __CRT_INLINE LONGLONG WINAPI InterlockedIncrement64(LONGLONG volatile *Addend) { LONGLONG Old; do { Old = *Addend; } while(InterlockedCompareExchange64(Addend,Old + 1,Old)!=Old); return Old + 1; } __CRT_INLINE LONGLONG WINAPI InterlockedDecrement64(LONGLONG volatile *Addend) { LONGLONG Old; do { Old = *Addend; } while(InterlockedCompareExchange64(Addend,Old - 1,Old)!=Old); return Old - 1; } __CRT_INLINE LONGLONG WINAPI InterlockedExchange64(LONGLONG volatile *Target,LONGLONG Value) { LONGLONG Old; do { Old = *Target; } while(InterlockedCompareExchange64(Target,Value,Old)!=Old); return Old; } __CRT_INLINE LONGLONG WINAPI InterlockedExchangeAdd64(LONGLONG volatile *Addend,LONGLONG Value) { LONGLONG Old; do { Old = *Addend; } while(InterlockedCompareExchange64(Addend,Old + Value,Old)!=Old); return Old; } #endif /* !__CRT__NO_INLINE */ #if defined(__cplusplus) && !defined(__CRT__NO_INLINE) __CRT_INLINE PVOID __cdecl __InlineInterlockedCompareExchangePointer(PVOID volatile *Destination,PVOID ExChange,PVOID Comperand) { return ((PVOID)(LONG_PTR) InterlockedCompareExchange((LONG volatile *)Destination,(LONG)(LONG_PTR)ExChange,(LONG)(LONG_PTR)Comperand)); } #define InterlockedCompareExchangePointer __InlineInterlockedCompareExchangePointer #else #define InterlockedCompareExchangePointer(Destination,ExChange,Comperand) \ (PVOID)(LONG_PTR) \ InterlockedCompareExchange((LONG volatile *)(Destination),(LONG)(LONG_PTR)(ExChange),(LONG)(LONG_PTR)(Comperand)) #endif /* __cplusplus */ #define InterlockedIncrementAcquire InterlockedIncrement #define InterlockedIncrementRelease InterlockedIncrement #define InterlockedDecrementAcquire InterlockedDecrement #define InterlockedDecrementRelease InterlockedDecrement #define InterlockedIncrementAcquire InterlockedIncrement #define InterlockedIncrementRelease InterlockedIncrement #define InterlockedCompareExchangeAcquire InterlockedCompareExchange #define InterlockedCompareExchangeRelease InterlockedCompareExchange #define InterlockedCompareExchangeAcquire64 InterlockedCompareExchange64 #define InterlockedCompareExchangeRelease64 InterlockedCompareExchange64 #define InterlockedCompareExchangePointerAcquire InterlockedCompareExchangePointer #define InterlockedCompareExchangePointerRelease InterlockedCompareExchangePointer #endif /* end of _X86_ interlocked api */ #if defined(_SLIST_HEADER_) && !defined(_NTOSP_) WINBASEAPI VOID WINAPI InitializeSListHead(PSLIST_HEADER ListHead); WINBASEAPI PSLIST_ENTRY WINAPI InterlockedPopEntrySList(PSLIST_HEADER ListHead); WINBASEAPI PSLIST_ENTRY WINAPI InterlockedPushEntrySList(PSLIST_HEADER ListHead,PSLIST_ENTRY ListEntry); WINBASEAPI PSLIST_ENTRY WINAPI InterlockedFlushSList(PSLIST_HEADER ListHead); WINBASEAPI USHORT WINAPI QueryDepthSList(PSLIST_HEADER ListHead); #endif /* _SLIST_HEADER_ && !_NTOSP_ */ #endif /* ! _NTOS_ */ #endif /* ! NOWINBASEINTERLOCK */ WINBASEAPI WINBOOL WINAPI FreeResource(HGLOBAL hResData); WINBASEAPI LPVOID WINAPI LockResource(HGLOBAL hResData); /* #define UnlockResource(hResData) ((hResData),0) */ #define UnlockResource(hResData) ( { (VOID)(hResData); 0; } ) #define MAXINTATOM 0xC000 #define MAKEINTATOM(i) (LPTSTR)((ULONG_PTR)((WORD)(i))) #define INVALID_ATOM ((ATOM)0) int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd); int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd); /* Unicode entry point is wWinMain, WinMain is just the ANSI version. */ WINBASEAPI WINBOOL WINAPI FreeLibrary(HMODULE hLibModule); WINBASEAPI DECLSPEC_NORETURN VOID WINAPI FreeLibraryAndExitThread(HMODULE hLibModule,DWORD dwExitCode); WINBASEAPI WINBOOL WINAPI DisableThreadLibraryCalls(HMODULE hLibModule); WINBASEAPI FARPROC WINAPI GetProcAddress(HMODULE hModule,LPCSTR lpProcName); WINBASEAPI DWORD WINAPI GetVersion(VOID); WINBASEAPI HGLOBAL WINAPI GlobalAlloc(UINT uFlags,SIZE_T dwBytes); WINBASEAPI HGLOBAL WINAPI GlobalReAlloc(HGLOBAL hMem,SIZE_T dwBytes,UINT uFlags); WINBASEAPI SIZE_T WINAPI GlobalSize(HGLOBAL hMem); WINBASEAPI UINT WINAPI GlobalFlags(HGLOBAL hMem); WINBASEAPI LPVOID WINAPI GlobalLock(HGLOBAL hMem); WINBASEAPI HGLOBAL WINAPI GlobalHandle(LPCVOID pMem); WINBASEAPI WINBOOL WINAPI GlobalUnlock(HGLOBAL hMem); WINBASEAPI HGLOBAL WINAPI GlobalFree(HGLOBAL hMem); WINBASEAPI SIZE_T WINAPI GlobalCompact(DWORD dwMinFree); WINBASEAPI VOID WINAPI GlobalFix(HGLOBAL hMem); WINBASEAPI VOID WINAPI GlobalUnfix(HGLOBAL hMem); WINBASEAPI LPVOID WINAPI GlobalWire(HGLOBAL hMem); WINBASEAPI WINBOOL WINAPI GlobalUnWire(HGLOBAL hMem); WINBASEAPI VOID WINAPI GlobalMemoryStatus(LPMEMORYSTATUS lpBuffer); typedef struct _MEMORYSTATUSEX { DWORD dwLength; DWORD dwMemoryLoad; DWORDLONG ullTotalPhys; DWORDLONG ullAvailPhys; DWORDLONG ullTotalPageFile; DWORDLONG ullAvailPageFile; DWORDLONG ullTotalVirtual; DWORDLONG ullAvailVirtual; DWORDLONG ullAvailExtendedVirtual; } MEMORYSTATUSEX,*LPMEMORYSTATUSEX; WINBASEAPI WINBOOL WINAPI GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer); WINBASEAPI HLOCAL WINAPI LocalAlloc(UINT uFlags,SIZE_T uBytes); WINBASEAPI HLOCAL WINAPI LocalReAlloc(HLOCAL hMem,SIZE_T uBytes,UINT uFlags); WINBASEAPI LPVOID WINAPI LocalLock(HLOCAL hMem); WINBASEAPI HLOCAL WINAPI LocalHandle(LPCVOID pMem); WINBASEAPI WINBOOL WINAPI LocalUnlock(HLOCAL hMem); WINBASEAPI SIZE_T WINAPI LocalSize(HLOCAL hMem); WINBASEAPI UINT WINAPI LocalFlags(HLOCAL hMem); WINBASEAPI HLOCAL WINAPI LocalFree(HLOCAL hMem); WINBASEAPI SIZE_T WINAPI LocalShrink(HLOCAL hMem,UINT cbNewSize); WINBASEAPI SIZE_T WINAPI LocalCompact(UINT uMinFree); WINBASEAPI WINBOOL WINAPI FlushInstructionCache(HANDLE hProcess,LPCVOID lpBaseAddress,SIZE_T dwSize); WINBASEAPI LPVOID WINAPI VirtualAlloc(LPVOID lpAddress,SIZE_T dwSize,DWORD flAllocationType,DWORD flProtect); WINBASEAPI WINBOOL WINAPI VirtualFree(LPVOID lpAddress,SIZE_T dwSize,DWORD dwFreeType); WINBASEAPI WINBOOL WINAPI VirtualProtect(LPVOID lpAddress,SIZE_T dwSize,DWORD flNewProtect,PDWORD lpflOldProtect); WINBASEAPI SIZE_T WINAPI VirtualQuery(LPCVOID lpAddress,PMEMORY_BASIC_INFORMATION lpBuffer,SIZE_T dwLength); WINBASEAPI LPVOID WINAPI VirtualAllocEx(HANDLE hProcess,LPVOID lpAddress,SIZE_T dwSize,DWORD flAllocationType,DWORD flProtect); WINBASEAPI UINT WINAPI GetWriteWatch(DWORD dwFlags,PVOID lpBaseAddress,SIZE_T dwRegionSize,PVOID *lpAddresses,ULONG_PTR *lpdwCount,PULONG lpdwGranularity); WINBASEAPI UINT WINAPI ResetWriteWatch(LPVOID lpBaseAddress,SIZE_T dwRegionSize); WINBASEAPI SIZE_T WINAPI GetLargePageMinimum(VOID); WINBASEAPI UINT WINAPI EnumSystemFirmwareTables(DWORD FirmwareTableProviderSignature,PVOID pFirmwareTableEnumBuffer,DWORD BufferSize); WINBASEAPI UINT WINAPI GetSystemFirmwareTable(DWORD FirmwareTableProviderSignature,DWORD FirmwareTableID,PVOID pFirmwareTableBuffer,DWORD BufferSize); WINBASEAPI WINBOOL WINAPI VirtualFreeEx(HANDLE hProcess,LPVOID lpAddress,SIZE_T dwSize,DWORD dwFreeType); WINBASEAPI WINBOOL WINAPI VirtualProtectEx(HANDLE hProcess,LPVOID lpAddress,SIZE_T dwSize,DWORD flNewProtect,PDWORD lpflOldProtect); WINBASEAPI SIZE_T WINAPI VirtualQueryEx(HANDLE hProcess,LPCVOID lpAddress,PMEMORY_BASIC_INFORMATION lpBuffer,SIZE_T dwLength); WINBASEAPI HANDLE WINAPI HeapCreate(DWORD flOptions,SIZE_T dwInitialSize,SIZE_T dwMaximumSize); WINBASEAPI WINBOOL WINAPI HeapDestroy(HANDLE hHeap); WINBASEAPI LPVOID WINAPI HeapAlloc(HANDLE hHeap,DWORD dwFlags,SIZE_T dwBytes); WINBASEAPI LPVOID WINAPI HeapReAlloc(HANDLE hHeap,DWORD dwFlags,LPVOID lpMem,SIZE_T dwBytes); WINBASEAPI WINBOOL WINAPI HeapFree(HANDLE hHeap,DWORD dwFlags,LPVOID lpMem); WINBASEAPI SIZE_T WINAPI HeapSize(HANDLE hHeap,DWORD dwFlags,LPCVOID lpMem); WINBASEAPI WINBOOL WINAPI HeapValidate(HANDLE hHeap,DWORD dwFlags,LPCVOID lpMem); WINBASEAPI SIZE_T WINAPI HeapCompact(HANDLE hHeap,DWORD dwFlags); WINBASEAPI HANDLE WINAPI GetProcessHeap(VOID); WINBASEAPI DWORD WINAPI GetProcessHeaps(DWORD NumberOfHeaps,PHANDLE ProcessHeaps); typedef struct _PROCESS_HEAP_ENTRY { PVOID lpData; DWORD cbData; BYTE cbOverhead; BYTE iRegionIndex; WORD wFlags; __C89_NAMELESS union { struct { HANDLE hMem; DWORD dwReserved[3]; } Block; struct { DWORD dwCommittedSize; DWORD dwUnCommittedSize; LPVOID lpFirstBlock; LPVOID lpLastBlock; } Region; } DUMMYUNIONNAME; } PROCESS_HEAP_ENTRY,*LPPROCESS_HEAP_ENTRY,*PPROCESS_HEAP_ENTRY; #define PROCESS_HEAP_REGION 0x1 #define PROCESS_HEAP_UNCOMMITTED_RANGE 0x2 #define PROCESS_HEAP_ENTRY_BUSY 0x4 #define PROCESS_HEAP_ENTRY_MOVEABLE 0x10 #define PROCESS_HEAP_ENTRY_DDESHARE 0x20 WINBASEAPI WINBOOL WINAPI HeapLock(HANDLE hHeap); WINBASEAPI WINBOOL WINAPI HeapUnlock(HANDLE hHeap); WINBASEAPI WINBOOL WINAPI HeapWalk(HANDLE hHeap,LPPROCESS_HEAP_ENTRY lpEntry); WINBASEAPI WINBOOL WINAPI HeapSetInformation(HANDLE HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength); WINBASEAPI WINBOOL WINAPI HeapQueryInformation(HANDLE HeapHandle,HEAP_INFORMATION_CLASS HeapInformationClass,PVOID HeapInformation,SIZE_T HeapInformationLength,PSIZE_T ReturnLength); #define SCS_32BIT_BINARY 0 #define SCS_DOS_BINARY 1 #define SCS_WOW_BINARY 2 #define SCS_PIF_BINARY 3 #define SCS_POSIX_BINARY 4 #define SCS_OS216_BINARY 5 #define SCS_64BIT_BINARY 6 #define GetBinaryType __MINGW_NAME_AW(GetBinaryType) #define GetShortPathName __MINGW_NAME_AW(GetShortPathName) #define GetLongPathName __MINGW_NAME_AW(GetLongPathName) #define SetEnvironmentStrings __MINGW_NAME_AW(SetEnvironmentStrings) #define FreeEnvironmentStrings __MINGW_NAME_AW(FreeEnvironmentStrings) #if defined(UNICODE) #define GetEnvironmentStrings GetEnvironmentStringsW #endif #ifdef _WIN64 #define SCS_THIS_PLATFORM_BINARY SCS_64BIT_BINARY #else #define SCS_THIS_PLATFORM_BINARY SCS_32BIT_BINARY #endif WINBASEAPI WINBOOL WINAPI GetBinaryTypeA(LPCSTR lpApplicationName,LPDWORD lpBinaryType); WINBASEAPI WINBOOL WINAPI GetBinaryTypeW(LPCWSTR lpApplicationName,LPDWORD lpBinaryType); WINBASEAPI DWORD WINAPI GetShortPathNameA(LPCSTR lpszLongPath,LPSTR lpszShortPath,DWORD cchBuffer); WINBASEAPI DWORD WINAPI GetShortPathNameW(LPCWSTR lpszLongPath,LPWSTR lpszShortPath,DWORD cchBuffer); WINBASEAPI DWORD WINAPI GetLongPathNameA(LPCSTR lpszShortPath,LPSTR lpszLongPath,DWORD cchBuffer); WINBASEAPI DWORD WINAPI GetLongPathNameW(LPCWSTR lpszShortPath,LPWSTR lpszLongPath,DWORD cchBuffer); WINBASEAPI WINBOOL WINAPI GetProcessAffinityMask(HANDLE hProcess,PDWORD_PTR lpProcessAffinityMask,PDWORD_PTR lpSystemAffinityMask); WINBASEAPI WINBOOL WINAPI SetProcessAffinityMask(HANDLE hProcess,DWORD_PTR dwProcessAffinityMask); /* available in XP SP3, Vista SP1 and higher */ WINBASEAPI WINBOOL WINAPI GetProcessDEPPolicy (HANDLE hProcess,LPDWORD lpFlags,PBOOL lpPermanent); WINBASEAPI WINBOOL WINAPI SetProcessDEPPolicy (DWORD dwFlags); WINBASEAPI WINBOOL WINAPI GetProcessHandleCount(HANDLE hProcess,PDWORD pdwHandleCount); WINBASEAPI WINBOOL WINAPI GetProcessTimes(HANDLE hProcess,LPFILETIME lpCreationTime,LPFILETIME lpExitTime,LPFILETIME lpKernelTime,LPFILETIME lpUserTime); WINBASEAPI WINBOOL WINAPI GetProcessIoCounters(HANDLE hProcess,PIO_COUNTERS lpIoCounters); WINBASEAPI WINBOOL WINAPI GetProcessWorkingSetSize(HANDLE hProcess,PSIZE_T lpMinimumWorkingSetSize,PSIZE_T lpMaximumWorkingSetSize); WINBASEAPI WINBOOL WINAPI GetProcessWorkingSetSizeEx(HANDLE hProcess,PSIZE_T lpMinimumWorkingSetSize,PSIZE_T lpMaximumWorkingSetSize,PDWORD Flags); WINBASEAPI WINBOOL WINAPI SetProcessWorkingSetSize(HANDLE hProcess,SIZE_T dwMinimumWorkingSetSize,SIZE_T dwMaximumWorkingSetSize); WINBASEAPI WINBOOL WINAPI SetProcessWorkingSetSizeEx(HANDLE hProcess,SIZE_T dwMinimumWorkingSetSize,SIZE_T dwMaximumWorkingSetSize,DWORD Flags); WINBASEAPI HANDLE WINAPI OpenProcess(DWORD dwDesiredAccess,WINBOOL bInheritHandle,DWORD dwProcessId); WINBASEAPI HANDLE WINAPI GetCurrentProcess(VOID); WINBASEAPI DWORD WINAPI GetCurrentProcessId(VOID); WINBASEAPI DECLSPEC_NORETURN VOID WINAPI ExitProcess(UINT uExitCode); WINBASEAPI WINBOOL WINAPI TerminateProcess(HANDLE hProcess,UINT uExitCode); WINBASEAPI WINBOOL WINAPI GetExitCodeProcess(HANDLE hProcess,LPDWORD lpExitCode); WINBASEAPI VOID WINAPI FatalExit(int ExitCode); #pragma push_macro("GetEnvironmentStrings") #undef GetEnvironmentStrings #define GetEnvironmentStringsA GetEnvironmentStrings WINBASEAPI LPCH WINAPI GetEnvironmentStrings(VOID); #pragma pop_macro("GetEnvironmentStrings") WINBASEAPI LPWCH WINAPI GetEnvironmentStringsW(VOID); WINBASEAPI WINBOOL WINAPI SetEnvironmentStringsA(LPCH NewEnvironment); WINBASEAPI WINBOOL WINAPI SetEnvironmentStringsW(LPWCH NewEnvironment); WINBASEAPI WINBOOL WINAPI FreeEnvironmentStringsA(LPCH); WINBASEAPI WINBOOL WINAPI FreeEnvironmentStringsW(LPWCH); WINBASEAPI VOID WINAPI RaiseException(DWORD dwExceptionCode,DWORD dwExceptionFlags,DWORD nNumberOfArguments,CONST ULONG_PTR *lpArguments); WINBASEAPI LONG WINAPI UnhandledExceptionFilter(struct _EXCEPTION_POINTERS *ExceptionInfo); typedef LONG (WINAPI *PTOP_LEVEL_EXCEPTION_FILTER)(struct _EXCEPTION_POINTERS *ExceptionInfo); typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER; WINBASEAPI LPTOP_LEVEL_EXCEPTION_FILTER WINAPI SetUnhandledExceptionFilter(LPTOP_LEVEL_EXCEPTION_FILTER lpTopLevelExceptionFilter); #define FIBER_FLAG_FLOAT_SWITCH 0x1 WINBASEAPI LPVOID WINAPI CreateFiber(SIZE_T dwStackSize,LPFIBER_START_ROUTINE lpStartAddress,LPVOID lpParameter); WINBASEAPI LPVOID WINAPI CreateFiberEx(SIZE_T dwStackCommitSize,SIZE_T dwStackReserveSize,DWORD dwFlags,LPFIBER_START_ROUTINE lpStartAddress,LPVOID lpParameter); WINBASEAPI VOID WINAPI DeleteFiber(LPVOID lpFiber); WINBASEAPI LPVOID WINAPI ConvertThreadToFiber(LPVOID lpParameter); WINBASEAPI LPVOID WINAPI ConvertThreadToFiberEx(LPVOID lpParameter,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI ConvertFiberToThread(VOID); WINBASEAPI VOID WINAPI SwitchToFiber(LPVOID lpFiber); WINBASEAPI WINBOOL WINAPI SwitchToThread(VOID); WINBASEAPI HANDLE WINAPI CreateThread(LPSECURITY_ATTRIBUTES lpThreadAttributes,SIZE_T dwStackSize,LPTHREAD_START_ROUTINE lpStartAddress,LPVOID lpParameter,DWORD dwCreationFlags,LPDWORD lpThreadId); WINBASEAPI HANDLE WINAPI CreateRemoteThread(HANDLE hProcess,LPSECURITY_ATTRIBUTES lpThreadAttributes,SIZE_T dwStackSize,LPTHREAD_START_ROUTINE lpStartAddress,LPVOID lpParameter,DWORD dwCreationFlags,LPDWORD lpThreadId); WINBASEAPI HANDLE WINAPI GetCurrentThread(VOID); WINBASEAPI DWORD WINAPI GetCurrentThreadId(VOID); WINBASEAPI WINBOOL WINAPI SetThreadStackGuarantee (PULONG StackSizeInBytes); WINBASEAPI DWORD WINAPI GetProcessIdOfThread(HANDLE Thread); WINBASEAPI DWORD WINAPI GetThreadId(HANDLE Thread); WINBASEAPI DWORD WINAPI GetProcessId(HANDLE Process); WINBASEAPI DWORD WINAPI GetCurrentProcessorNumber(VOID); WINBASEAPI DWORD_PTR WINAPI SetThreadAffinityMask(HANDLE hThread,DWORD_PTR dwThreadAffinityMask); WINBASEAPI DWORD WINAPI SetThreadIdealProcessor(HANDLE hThread,DWORD dwIdealProcessor); WINBASEAPI WINBOOL WINAPI SetProcessPriorityBoost(HANDLE hProcess,WINBOOL bDisablePriorityBoost); WINBASEAPI WINBOOL WINAPI GetProcessPriorityBoost(HANDLE hProcess,PBOOL pDisablePriorityBoost); WINBASEAPI WINBOOL WINAPI RequestWakeupLatency(LATENCY_TIME latency); WINBASEAPI WINBOOL WINAPI IsSystemResumeAutomatic(VOID); WINBASEAPI HANDLE WINAPI OpenThread(DWORD dwDesiredAccess,WINBOOL bInheritHandle,DWORD dwThreadId); WINBASEAPI WINBOOL WINAPI SetThreadPriority(HANDLE hThread,int nPriority); WINBASEAPI WINBOOL WINAPI SetThreadPriorityBoost(HANDLE hThread,WINBOOL bDisablePriorityBoost); WINBASEAPI WINBOOL WINAPI GetThreadPriorityBoost(HANDLE hThread,PBOOL pDisablePriorityBoost); WINBASEAPI int WINAPI GetThreadPriority(HANDLE hThread); WINBASEAPI WINBOOL WINAPI GetThreadTimes(HANDLE hThread,LPFILETIME lpCreationTime,LPFILETIME lpExitTime,LPFILETIME lpKernelTime,LPFILETIME lpUserTime); WINBASEAPI WINBOOL WINAPI GetThreadIOPendingFlag(HANDLE hThread,PBOOL lpIOIsPending); WINBASEAPI DECLSPEC_NORETURN VOID WINAPI ExitThread(DWORD dwExitCode); WINBASEAPI WINBOOL WINAPI TerminateThread(HANDLE hThread,DWORD dwExitCode); WINBASEAPI WINBOOL WINAPI GetExitCodeThread(HANDLE hThread,LPDWORD lpExitCode); WINBASEAPI WINBOOL WINAPI GetThreadSelectorEntry(HANDLE hThread,DWORD dwSelector,LPLDT_ENTRY lpSelectorEntry); WINBASEAPI EXECUTION_STATE WINAPI SetThreadExecutionState(EXECUTION_STATE esFlags); WINBASEAPI DWORD WINAPI GetLastError(VOID); WINBASEAPI VOID WINAPI SetLastError(DWORD dwErrCode); #ifndef RC_INVOKED #ifdef WINBASE_DECLARE_RESTORE_LAST_ERROR WINBASEAPI VOID WINAPI RestoreLastError(DWORD dwErrCode); typedef VOID (WINAPI *PRESTORE_LAST_ERROR)(DWORD); #define RESTORE_LAST_ERROR_NAME_A "RestoreLastError" #define RESTORE_LAST_ERROR_NAME_W L"RestoreLastError" #define RESTORE_LAST_ERROR_NAME TEXT("RestoreLastError") #endif #endif #define HasOverlappedIoCompleted(lpOverlapped) (((DWORD)(lpOverlapped)->Internal)!=STATUS_PENDING) WINBASEAPI WINBOOL WINAPI GetOverlappedResult(HANDLE hFile,LPOVERLAPPED lpOverlapped,LPDWORD lpNumberOfBytesTransferred,WINBOOL bWait); WINBASEAPI HANDLE WINAPI CreateIoCompletionPort(HANDLE FileHandle,HANDLE ExistingCompletionPort,ULONG_PTR CompletionKey,DWORD NumberOfConcurrentThreads); WINBASEAPI WINBOOL WINAPI GetQueuedCompletionStatus(HANDLE CompletionPort,LPDWORD lpNumberOfBytesTransferred,PULONG_PTR lpCompletionKey,LPOVERLAPPED *lpOverlapped,DWORD dwMilliseconds); WINBASEAPI WINBOOL WINAPI PostQueuedCompletionStatus(HANDLE CompletionPort,DWORD dwNumberOfBytesTransferred,ULONG_PTR dwCompletionKey,LPOVERLAPPED lpOverlapped); #define SEM_FAILCRITICALERRORS 0x1 #define SEM_NOGPFAULTERRORBOX 0x2 #define SEM_NOALIGNMENTFAULTEXCEPT 0x4 #define SEM_NOOPENFILEERRORBOX 0x8000 WINBASEAPI UINT WINAPI SetErrorMode(UINT uMode); WINBASEAPI WINBOOL WINAPI ReadProcessMemory(HANDLE hProcess,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T nSize,SIZE_T *lpNumberOfBytesRead); WINBASEAPI WINBOOL WINAPI WriteProcessMemory(HANDLE hProcess,LPVOID lpBaseAddress,LPCVOID lpBuffer,SIZE_T nSize,SIZE_T *lpNumberOfBytesWritten); WINBASEAPI WINBOOL WINAPI GetThreadContext(HANDLE hThread,LPCONTEXT lpContext); WINBASEAPI WINBOOL WINAPI SetThreadContext(HANDLE hThread,CONST CONTEXT *lpContext); WINBASEAPI DWORD WINAPI SuspendThread(HANDLE hThread); WINBASEAPI DWORD WINAPI ResumeThread(HANDLE hThread); typedef VOID (WINAPI *PAPCFUNC)(ULONG_PTR dwParam); WINBASEAPI DWORD WINAPI QueueUserAPC(PAPCFUNC pfnAPC,HANDLE hThread,ULONG_PTR dwData); WINBASEAPI WINBOOL WINAPI IsDebuggerPresent(VOID); WINBASEAPI WINBOOL WINAPI CheckRemoteDebuggerPresent(HANDLE hProcess,PBOOL pbDebuggerPresent); WINBASEAPI VOID WINAPI DebugBreak(VOID); WINBASEAPI WINBOOL WINAPI WaitForDebugEvent(LPDEBUG_EVENT lpDebugEvent,DWORD dwMilliseconds); WINBASEAPI WINBOOL WINAPI ContinueDebugEvent(DWORD dwProcessId,DWORD dwThreadId,DWORD dwContinueStatus); WINBASEAPI WINBOOL WINAPI DebugActiveProcess(DWORD dwProcessId); WINBASEAPI WINBOOL WINAPI DebugActiveProcessStop(DWORD dwProcessId); WINBASEAPI WINBOOL WINAPI DebugSetProcessKillOnExit(WINBOOL KillOnExit); WINBASEAPI WINBOOL WINAPI DebugBreakProcess(HANDLE Process); WINBASEAPI VOID WINAPI InitializeCriticalSection(LPCRITICAL_SECTION lpCriticalSection); WINBASEAPI VOID WINAPI EnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection); WINBASEAPI VOID WINAPI LeaveCriticalSection(LPCRITICAL_SECTION lpCriticalSection); WINBASEAPI WINBOOL WINAPI InitializeCriticalSectionAndSpinCount(LPCRITICAL_SECTION lpCriticalSection,DWORD dwSpinCount); WINBASEAPI DWORD WINAPI SetCriticalSectionSpinCount(LPCRITICAL_SECTION lpCriticalSection,DWORD dwSpinCount); WINBASEAPI WINBOOL WINAPI TryEnterCriticalSection(LPCRITICAL_SECTION lpCriticalSection); WINBASEAPI VOID WINAPI DeleteCriticalSection(LPCRITICAL_SECTION lpCriticalSection); WINBASEAPI WINBOOL WINAPI SetEvent(HANDLE hEvent); WINBASEAPI WINBOOL WINAPI ResetEvent(HANDLE hEvent); WINBASEAPI WINBOOL WINAPI PulseEvent(HANDLE hEvent); WINBASEAPI WINBOOL WINAPI ReleaseSemaphore(HANDLE hSemaphore,LONG lReleaseCount,LPLONG lpPreviousCount); WINBASEAPI WINBOOL WINAPI ReleaseMutex(HANDLE hMutex); WINBASEAPI DWORD WINAPI WaitForSingleObject(HANDLE hHandle,DWORD dwMilliseconds); WINBASEAPI DWORD WINAPI WaitForMultipleObjects(DWORD nCount,CONST HANDLE *lpHandles,WINBOOL bWaitAll,DWORD dwMilliseconds); WINBASEAPI VOID WINAPI Sleep(DWORD dwMilliseconds); WINBASEAPI HGLOBAL WINAPI LoadResource(HMODULE hModule,HRSRC hResInfo); WINBASEAPI DWORD WINAPI SizeofResource(HMODULE hModule,HRSRC hResInfo); WINBASEAPI ATOM WINAPI GlobalDeleteAtom(ATOM nAtom); WINBASEAPI WINBOOL WINAPI InitAtomTable(DWORD nSize); WINBASEAPI ATOM WINAPI DeleteAtom(ATOM nAtom); WINBASEAPI UINT WINAPI SetHandleCount(UINT uNumber); WINBASEAPI DWORD WINAPI GetLogicalDrives(VOID); WINBASEAPI WINBOOL WINAPI LockFile(HANDLE hFile,DWORD dwFileOffsetLow,DWORD dwFileOffsetHigh,DWORD nNumberOfBytesToLockLow,DWORD nNumberOfBytesToLockHigh); WINBASEAPI WINBOOL WINAPI UnlockFile(HANDLE hFile,DWORD dwFileOffsetLow,DWORD dwFileOffsetHigh,DWORD nNumberOfBytesToUnlockLow,DWORD nNumberOfBytesToUnlockHigh); WINBASEAPI WINBOOL WINAPI LockFileEx(HANDLE hFile,DWORD dwFlags,DWORD dwReserved,DWORD nNumberOfBytesToLockLow,DWORD nNumberOfBytesToLockHigh,LPOVERLAPPED lpOverlapped); #define LOCKFILE_FAIL_IMMEDIATELY 0x1 #define LOCKFILE_EXCLUSIVE_LOCK 0x2 WINBASEAPI WINBOOL WINAPI UnlockFileEx(HANDLE hFile,DWORD dwReserved,DWORD nNumberOfBytesToUnlockLow,DWORD nNumberOfBytesToUnlockHigh,LPOVERLAPPED lpOverlapped); typedef struct _BY_HANDLE_FILE_INFORMATION { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD dwVolumeSerialNumber; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD nNumberOfLinks; DWORD nFileIndexHigh; DWORD nFileIndexLow; } BY_HANDLE_FILE_INFORMATION,*PBY_HANDLE_FILE_INFORMATION,*LPBY_HANDLE_FILE_INFORMATION; #define SetFileShortName __MINGW_NAME_AW(SetFileShortName) WINBASEAPI WINBOOL WINAPI GetFileInformationByHandle(HANDLE hFile,LPBY_HANDLE_FILE_INFORMATION lpFileInformation); WINBASEAPI DWORD WINAPI GetFileType(HANDLE hFile); WINBASEAPI DWORD WINAPI GetFileSize(HANDLE hFile,LPDWORD lpFileSizeHigh); WINBASEAPI WINBOOL WINAPI GetFileSizeEx(HANDLE hFile,PLARGE_INTEGER lpFileSize); WINBASEAPI HANDLE WINAPI GetStdHandle(DWORD nStdHandle); WINBASEAPI WINBOOL WINAPI SetStdHandle(DWORD nStdHandle,HANDLE hHandle); WINBASEAPI WINBOOL WINAPI WriteFile(HANDLE hFile,LPCVOID lpBuffer,DWORD nNumberOfBytesToWrite,LPDWORD lpNumberOfBytesWritten,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI ReadFile(HANDLE hFile,LPVOID lpBuffer,DWORD nNumberOfBytesToRead,LPDWORD lpNumberOfBytesRead,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI FlushFileBuffers(HANDLE hFile); WINBASEAPI WINBOOL WINAPI DeviceIoControl(HANDLE hDevice,DWORD dwIoControlCode,LPVOID lpInBuffer,DWORD nInBufferSize,LPVOID lpOutBuffer,DWORD nOutBufferSize,LPDWORD lpBytesReturned,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI RequestDeviceWakeup(HANDLE hDevice); WINBASEAPI WINBOOL WINAPI CancelDeviceWakeupRequest(HANDLE hDevice); WINBASEAPI WINBOOL WINAPI GetDevicePowerState(HANDLE hDevice,WINBOOL *pfOn); WINBASEAPI WINBOOL WINAPI SetMessageWaitingIndicator(HANDLE hMsgIndicator,ULONG ulMsgCount); WINBASEAPI WINBOOL WINAPI SetEndOfFile(HANDLE hFile); WINBASEAPI DWORD WINAPI SetFilePointer(HANDLE hFile,LONG lDistanceToMove,PLONG lpDistanceToMoveHigh,DWORD dwMoveMethod); WINBASEAPI WINBOOL WINAPI SetFilePointerEx(HANDLE hFile,LARGE_INTEGER liDistanceToMove,PLARGE_INTEGER lpNewFilePointer,DWORD dwMoveMethod); WINBASEAPI WINBOOL WINAPI FindClose(HANDLE hFindFile); WINBASEAPI WINBOOL WINAPI GetFileTime(HANDLE hFile,LPFILETIME lpCreationTime,LPFILETIME lpLastAccessTime,LPFILETIME lpLastWriteTime); WINBASEAPI WINBOOL WINAPI SetFileTime(HANDLE hFile,CONST FILETIME *lpCreationTime,CONST FILETIME *lpLastAccessTime,CONST FILETIME *lpLastWriteTime); WINBASEAPI WINBOOL WINAPI SetFileValidData(HANDLE hFile,LONGLONG ValidDataLength); WINBASEAPI WINBOOL WINAPI SetFileShortNameA(HANDLE hFile,LPCSTR lpShortName); WINBASEAPI WINBOOL WINAPI SetFileShortNameW(HANDLE hFile,LPCWSTR lpShortName); WINBASEAPI WINBOOL WINAPI CloseHandle(HANDLE hObject); WINBASEAPI WINBOOL WINAPI DuplicateHandle(HANDLE hSourceProcessHandle,HANDLE hSourceHandle,HANDLE hTargetProcessHandle,LPHANDLE lpTargetHandle,DWORD dwDesiredAccess,WINBOOL bInheritHandle,DWORD dwOptions); WINBASEAPI WINBOOL WINAPI GetHandleInformation(HANDLE hObject,LPDWORD lpdwFlags); WINBASEAPI WINBOOL WINAPI SetHandleInformation(HANDLE hObject,DWORD dwMask,DWORD dwFlags); #define HANDLE_FLAG_INHERIT 0x1 #define HANDLE_FLAG_PROTECT_FROM_CLOSE 0x2 #define HINSTANCE_ERROR 32 WINBASEAPI DWORD WINAPI LoadModule(LPCSTR lpModuleName,LPVOID lpParameterBlock); WINBASEAPI UINT WINAPI WinExec(LPCSTR lpCmdLine,UINT uCmdShow); WINBASEAPI WINBOOL WINAPI ClearCommBreak(HANDLE hFile); WINBASEAPI WINBOOL WINAPI ClearCommError(HANDLE hFile,LPDWORD lpErrors,LPCOMSTAT lpStat); WINBASEAPI WINBOOL WINAPI SetupComm(HANDLE hFile,DWORD dwInQueue,DWORD dwOutQueue); WINBASEAPI WINBOOL WINAPI EscapeCommFunction(HANDLE hFile,DWORD dwFunc); WINBASEAPI WINBOOL WINAPI GetCommConfig(HANDLE hCommDev,LPCOMMCONFIG lpCC,LPDWORD lpdwSize); WINBASEAPI WINBOOL WINAPI GetCommMask(HANDLE hFile,LPDWORD lpEvtMask); WINBASEAPI WINBOOL WINAPI GetCommProperties(HANDLE hFile,LPCOMMPROP lpCommProp); WINBASEAPI WINBOOL WINAPI GetCommModemStatus(HANDLE hFile,LPDWORD lpModemStat); WINBASEAPI WINBOOL WINAPI GetCommState(HANDLE hFile,LPDCB lpDCB); WINBASEAPI WINBOOL WINAPI GetCommTimeouts(HANDLE hFile,LPCOMMTIMEOUTS lpCommTimeouts); WINBASEAPI WINBOOL WINAPI PurgeComm(HANDLE hFile,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI SetCommBreak(HANDLE hFile); WINBASEAPI WINBOOL WINAPI SetCommConfig(HANDLE hCommDev,LPCOMMCONFIG lpCC,DWORD dwSize); WINBASEAPI WINBOOL WINAPI SetCommMask(HANDLE hFile,DWORD dwEvtMask); WINBASEAPI WINBOOL WINAPI SetCommState(HANDLE hFile,LPDCB lpDCB); WINBASEAPI WINBOOL WINAPI SetCommTimeouts(HANDLE hFile,LPCOMMTIMEOUTS lpCommTimeouts); WINBASEAPI WINBOOL WINAPI TransmitCommChar(HANDLE hFile,char cChar); WINBASEAPI WINBOOL WINAPI WaitCommEvent(HANDLE hFile,LPDWORD lpEvtMask,LPOVERLAPPED lpOverlapped); WINBASEAPI DWORD WINAPI SetTapePosition(HANDLE hDevice,DWORD dwPositionMethod,DWORD dwPartition,DWORD dwOffsetLow,DWORD dwOffsetHigh,WINBOOL bImmediate); WINBASEAPI DWORD WINAPI GetTapePosition(HANDLE hDevice,DWORD dwPositionType,LPDWORD lpdwPartition,LPDWORD lpdwOffsetLow,LPDWORD lpdwOffsetHigh); WINBASEAPI DWORD WINAPI PrepareTape(HANDLE hDevice,DWORD dwOperation,WINBOOL bImmediate); WINBASEAPI DWORD WINAPI EraseTape(HANDLE hDevice,DWORD dwEraseType,WINBOOL bImmediate); WINBASEAPI DWORD WINAPI CreateTapePartition(HANDLE hDevice,DWORD dwPartitionMethod,DWORD dwCount,DWORD dwSize); WINBASEAPI DWORD WINAPI WriteTapemark(HANDLE hDevice,DWORD dwTapemarkType,DWORD dwTapemarkCount,WINBOOL bImmediate); WINBASEAPI DWORD WINAPI GetTapeStatus(HANDLE hDevice); WINBASEAPI DWORD WINAPI GetTapeParameters(HANDLE hDevice,DWORD dwOperation,LPDWORD lpdwSize,LPVOID lpTapeInformation); #define GET_TAPE_MEDIA_INFORMATION 0 #define GET_TAPE_DRIVE_INFORMATION 1 WINBASEAPI DWORD WINAPI SetTapeParameters(HANDLE hDevice,DWORD dwOperation,LPVOID lpTapeInformation); #define SET_TAPE_MEDIA_INFORMATION 0 #define SET_TAPE_DRIVE_INFORMATION 1 WINBASEAPI WINBOOL WINAPI Beep(DWORD dwFreq,DWORD dwDuration); WINBASEAPI int WINAPI MulDiv(int nNumber,int nNumerator,int nDenominator); WINBASEAPI VOID WINAPI GetSystemTime(LPSYSTEMTIME lpSystemTime); WINBASEAPI VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME lpSystemTimeAsFileTime); WINBASEAPI WINBOOL WINAPI SetSystemTime(CONST SYSTEMTIME *lpSystemTime); WINBASEAPI VOID WINAPI GetLocalTime(LPSYSTEMTIME lpSystemTime); WINBASEAPI WINBOOL WINAPI SetLocalTime(CONST SYSTEMTIME *lpSystemTime); WINBASEAPI VOID WINAPI GetSystemInfo(LPSYSTEM_INFO lpSystemInfo); WINBASEAPI WINBOOL WINAPI SetSystemFileCacheSize(SIZE_T MinimumFileCacheSize,SIZE_T MaximumFileCacheSize,DWORD Flags); WINBASEAPI WINBOOL WINAPI GetSystemFileCacheSize(PSIZE_T lpMinimumFileCacheSize,PSIZE_T lpMaximumFileCacheSize,PDWORD lpFlags); WINBASEAPI WINBOOL WINAPI GetSystemRegistryQuota(PDWORD pdwQuotaAllowed,PDWORD pdwQuotaUsed); WINBOOL WINAPI GetSystemTimes(LPFILETIME lpIdleTime,LPFILETIME lpKernelTime,LPFILETIME lpUserTime); WINBASEAPI VOID WINAPI GetNativeSystemInfo(LPSYSTEM_INFO lpSystemInfo); WINBASEAPI WINBOOL WINAPI IsProcessorFeaturePresent(DWORD ProcessorFeature); typedef struct _TIME_ZONE_INFORMATION { LONG Bias; WCHAR StandardName[32]; SYSTEMTIME StandardDate; LONG StandardBias; WCHAR DaylightName[32]; SYSTEMTIME DaylightDate; LONG DaylightBias; } TIME_ZONE_INFORMATION,*PTIME_ZONE_INFORMATION,*LPTIME_ZONE_INFORMATION; #define FormatMessage __MINGW_NAME_AW(FormatMessage) WINBASEAPI WINBOOL WINAPI SystemTimeToTzSpecificLocalTime(LPTIME_ZONE_INFORMATION lpTimeZoneInformation,LPSYSTEMTIME lpUniversalTime,LPSYSTEMTIME lpLocalTime); WINBASEAPI WINBOOL WINAPI TzSpecificLocalTimeToSystemTime(LPTIME_ZONE_INFORMATION lpTimeZoneInformation,LPSYSTEMTIME lpLocalTime,LPSYSTEMTIME lpUniversalTime); WINBASEAPI DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation); WINBASEAPI WINBOOL WINAPI SetTimeZoneInformation(CONST TIME_ZONE_INFORMATION *lpTimeZoneInformation); WINBASEAPI WINBOOL WINAPI SystemTimeToFileTime(CONST SYSTEMTIME *lpSystemTime,LPFILETIME lpFileTime); WINBASEAPI WINBOOL WINAPI FileTimeToLocalFileTime(CONST FILETIME *lpFileTime,LPFILETIME lpLocalFileTime); WINBASEAPI WINBOOL WINAPI LocalFileTimeToFileTime(CONST FILETIME *lpLocalFileTime,LPFILETIME lpFileTime); WINBASEAPI WINBOOL WINAPI FileTimeToSystemTime(CONST FILETIME *lpFileTime,LPSYSTEMTIME lpSystemTime); WINBASEAPI LONG WINAPI CompareFileTime(CONST FILETIME *lpFileTime1,CONST FILETIME *lpFileTime2); WINBASEAPI WINBOOL WINAPI FileTimeToDosDateTime(CONST FILETIME *lpFileTime,LPWORD lpFatDate,LPWORD lpFatTime); WINBASEAPI WINBOOL WINAPI DosDateTimeToFileTime(WORD wFatDate,WORD wFatTime,LPFILETIME lpFileTime); WINBASEAPI DWORD WINAPI GetTickCount(VOID); WINBASEAPI WINBOOL WINAPI SetSystemTimeAdjustment(DWORD dwTimeAdjustment,WINBOOL bTimeAdjustmentDisabled); WINBASEAPI WINBOOL WINAPI GetSystemTimeAdjustment(PDWORD lpTimeAdjustment,PDWORD lpTimeIncrement,PBOOL lpTimeAdjustmentDisabled); WINBASEAPI DWORD WINAPI FormatMessageA(DWORD dwFlags,LPCVOID lpSource,DWORD dwMessageId,DWORD dwLanguageId,LPSTR lpBuffer,DWORD nSize,va_list *Arguments); WINBASEAPI DWORD WINAPI FormatMessageW(DWORD dwFlags,LPCVOID lpSource,DWORD dwMessageId,DWORD dwLanguageId,LPWSTR lpBuffer,DWORD nSize,va_list *Arguments); #define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x100 #define FORMAT_MESSAGE_IGNORE_INSERTS 0x200 #define FORMAT_MESSAGE_FROM_STRING 0x400 #define FORMAT_MESSAGE_FROM_HMODULE 0x800 #define FORMAT_MESSAGE_FROM_SYSTEM 0x1000 #define FORMAT_MESSAGE_ARGUMENT_ARRAY 0x2000 #define FORMAT_MESSAGE_MAX_WIDTH_MASK 0xff #define CreateMailslot __MINGW_NAME_AW(CreateMailslot) #define EncryptFile __MINGW_NAME_AW(EncryptFile) #define DecryptFile __MINGW_NAME_AW(DecryptFile) #define FileEncryptionStatus __MINGW_NAME_AW(FileEncryptionStatus) WINBASEAPI WINBOOL WINAPI CreatePipe(PHANDLE hReadPipe,PHANDLE hWritePipe,LPSECURITY_ATTRIBUTES lpPipeAttributes,DWORD nSize); WINBASEAPI WINBOOL WINAPI ConnectNamedPipe(HANDLE hNamedPipe,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI DisconnectNamedPipe(HANDLE hNamedPipe); WINBASEAPI WINBOOL WINAPI SetNamedPipeHandleState(HANDLE hNamedPipe,LPDWORD lpMode,LPDWORD lpMaxCollectionCount,LPDWORD lpCollectDataTimeout); WINBASEAPI WINBOOL WINAPI GetNamedPipeInfo(HANDLE hNamedPipe,LPDWORD lpFlags,LPDWORD lpOutBufferSize,LPDWORD lpInBufferSize,LPDWORD lpMaxInstances); WINBASEAPI WINBOOL WINAPI PeekNamedPipe(HANDLE hNamedPipe,LPVOID lpBuffer,DWORD nBufferSize,LPDWORD lpBytesRead,LPDWORD lpTotalBytesAvail,LPDWORD lpBytesLeftThisMessage); WINBASEAPI WINBOOL WINAPI TransactNamedPipe(HANDLE hNamedPipe,LPVOID lpInBuffer,DWORD nInBufferSize,LPVOID lpOutBuffer,DWORD nOutBufferSize,LPDWORD lpBytesRead,LPOVERLAPPED lpOverlapped); WINBASEAPI HANDLE WINAPI CreateMailslotA(LPCSTR lpName,DWORD nMaxMessageSize,DWORD lReadTimeout,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI HANDLE WINAPI CreateMailslotW(LPCWSTR lpName,DWORD nMaxMessageSize,DWORD lReadTimeout,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI GetMailslotInfo(HANDLE hMailslot,LPDWORD lpMaxMessageSize,LPDWORD lpNextSize,LPDWORD lpMessageCount,LPDWORD lpReadTimeout); WINBASEAPI WINBOOL WINAPI SetMailslotInfo(HANDLE hMailslot,DWORD lReadTimeout); WINBASEAPI LPVOID WINAPI MapViewOfFile(HANDLE hFileMappingObject,DWORD dwDesiredAccess,DWORD dwFileOffsetHigh,DWORD dwFileOffsetLow,SIZE_T dwNumberOfBytesToMap); WINBASEAPI WINBOOL WINAPI FlushViewOfFile(LPCVOID lpBaseAddress,SIZE_T dwNumberOfBytesToFlush); WINBASEAPI WINBOOL WINAPI UnmapViewOfFile(LPCVOID lpBaseAddress); WINADVAPI WINBOOL WINAPI EncryptFileA(LPCSTR lpFileName); WINADVAPI WINBOOL WINAPI EncryptFileW(LPCWSTR lpFileName); WINADVAPI WINBOOL WINAPI DecryptFileA(LPCSTR lpFileName,DWORD dwReserved); WINADVAPI WINBOOL WINAPI DecryptFileW(LPCWSTR lpFileName,DWORD dwReserved); #define FILE_ENCRYPTABLE 0 #define FILE_IS_ENCRYPTED 1 #define FILE_SYSTEM_ATTR 2 #define FILE_ROOT_DIR 3 #define FILE_SYSTEM_DIR 4 #define FILE_UNKNOWN 5 #define FILE_SYSTEM_NOT_SUPPORT 6 #define FILE_USER_DISALLOWED 7 #define FILE_READ_ONLY 8 #define FILE_DIR_DISALLOWED 9 WINADVAPI WINBOOL WINAPI FileEncryptionStatusA(LPCSTR lpFileName,LPDWORD lpStatus); WINADVAPI WINBOOL WINAPI FileEncryptionStatusW(LPCWSTR lpFileName,LPDWORD lpStatus); #define EFS_USE_RECOVERY_KEYS (0x1) typedef DWORD (WINAPI *PFE_EXPORT_FUNC)(PBYTE pbData,PVOID pvCallbackContext,ULONG ulLength); typedef DWORD (WINAPI *PFE_IMPORT_FUNC)(PBYTE pbData,PVOID pvCallbackContext,PULONG ulLength); #define CREATE_FOR_IMPORT (1) #define CREATE_FOR_DIR (2) #define OVERWRITE_HIDDEN (4) #define OpenEncryptedFileRaw __MINGW_NAME_AW(OpenEncryptedFileRaw) #define lstrcmp __MINGW_NAME_AW(lstrcmp) #define lstrcmpi __MINGW_NAME_AW(lstrcmpi) #define lstrcpyn __MINGW_NAME_AW(lstrcpyn) #define lstrcpy __MINGW_NAME_AW(lstrcpy) #define lstrcat __MINGW_NAME_AW(lstrcat) #define lstrlen __MINGW_NAME_AW(lstrlen) WINADVAPI DWORD WINAPI OpenEncryptedFileRawA(LPCSTR lpFileName,ULONG ulFlags,PVOID *pvContext); WINADVAPI DWORD WINAPI OpenEncryptedFileRawW(LPCWSTR lpFileName,ULONG ulFlags,PVOID *pvContext); WINADVAPI DWORD WINAPI ReadEncryptedFileRaw(PFE_EXPORT_FUNC pfExportCallback,PVOID pvCallbackContext,PVOID pvContext); WINADVAPI DWORD WINAPI WriteEncryptedFileRaw(PFE_IMPORT_FUNC pfImportCallback,PVOID pvCallbackContext,PVOID pvContext); WINADVAPI VOID WINAPI CloseEncryptedFileRaw(PVOID pvContext); WINBASEAPI int WINAPI lstrcmpA(LPCSTR lpString1,LPCSTR lpString2); WINBASEAPI int WINAPI lstrcmpW(LPCWSTR lpString1,LPCWSTR lpString2); WINBASEAPI int WINAPI lstrcmpiA(LPCSTR lpString1,LPCSTR lpString2); WINBASEAPI int WINAPI lstrcmpiW(LPCWSTR lpString1,LPCWSTR lpString2); WINBASEAPI LPSTR WINAPI lstrcpynA(LPSTR lpString1,LPCSTR lpString2,int iMaxLength); WINBASEAPI LPWSTR WINAPI lstrcpynW(LPWSTR lpString1,LPCWSTR lpString2,int iMaxLength); WINBASEAPI LPSTR WINAPI lstrcpyA(LPSTR lpString1,LPCSTR lpString2); WINBASEAPI LPWSTR WINAPI lstrcpyW(LPWSTR lpString1,LPCWSTR lpString2); WINBASEAPI LPSTR WINAPI lstrcatA(LPSTR lpString1,LPCSTR lpString2); WINBASEAPI LPWSTR WINAPI lstrcatW(LPWSTR lpString1,LPCWSTR lpString2); WINBASEAPI int WINAPI lstrlenA(LPCSTR lpString); WINBASEAPI int WINAPI lstrlenW(LPCWSTR lpString); WINBASEAPI HFILE WINAPI OpenFile(LPCSTR lpFileName,LPOFSTRUCT lpReOpenBuff,UINT uStyle); WINBASEAPI HFILE WINAPI _lopen(LPCSTR lpPathName,int iReadWrite); WINBASEAPI HFILE WINAPI _lcreat(LPCSTR lpPathName,int iAttribute); WINBASEAPI UINT WINAPI _lread(HFILE hFile,LPVOID lpBuffer,UINT uBytes); WINBASEAPI UINT WINAPI _lwrite(HFILE hFile,LPCCH lpBuffer,UINT uBytes); WINBASEAPI long WINAPI _hread(HFILE hFile,LPVOID lpBuffer,long lBytes); WINBASEAPI long WINAPI _hwrite(HFILE hFile,LPCCH lpBuffer,long lBytes); WINBASEAPI HFILE WINAPI _lclose(HFILE hFile); WINBASEAPI LONG WINAPI _llseek(HFILE hFile,LONG lOffset,int iOrigin); WINADVAPI WINBOOL WINAPI IsTextUnicode(CONST VOID *lpv,int iSize,LPINT lpiResult); #define FLS_OUT_OF_INDEXES ((DWORD)0xffffffff) WINBASEAPI DWORD WINAPI FlsAlloc(PFLS_CALLBACK_FUNCTION lpCallback); WINBASEAPI PVOID WINAPI FlsGetValue(DWORD dwFlsIndex); WINBASEAPI WINBOOL WINAPI FlsSetValue(DWORD dwFlsIndex,PVOID lpFlsData); WINBASEAPI WINBOOL WINAPI FlsFree(DWORD dwFlsIndex); #define TLS_OUT_OF_INDEXES ((DWORD)0xffffffff) WINBASEAPI DWORD WINAPI TlsAlloc(VOID); WINBASEAPI LPVOID WINAPI TlsGetValue(DWORD dwTlsIndex); WINBASEAPI WINBOOL WINAPI TlsSetValue(DWORD dwTlsIndex,LPVOID lpTlsValue); WINBASEAPI WINBOOL WINAPI TlsFree(DWORD dwTlsIndex); typedef VOID (WINAPI *LPOVERLAPPED_COMPLETION_ROUTINE)(DWORD dwErrorCode,DWORD dwNumberOfBytesTransfered,LPOVERLAPPED lpOverlapped); WINBASEAPI DWORD WINAPI SleepEx(DWORD dwMilliseconds,WINBOOL bAlertable); WINBASEAPI DWORD WINAPI WaitForSingleObjectEx(HANDLE hHandle,DWORD dwMilliseconds,WINBOOL bAlertable); WINBASEAPI DWORD WINAPI WaitForMultipleObjectsEx(DWORD nCount,CONST HANDLE *lpHandles,WINBOOL bWaitAll,DWORD dwMilliseconds,WINBOOL bAlertable); WINBASEAPI DWORD WINAPI SignalObjectAndWait(HANDLE hObjectToSignal,HANDLE hObjectToWaitOn,DWORD dwMilliseconds,WINBOOL bAlertable); WINBASEAPI WINBOOL WINAPI ReadFileEx(HANDLE hFile,LPVOID lpBuffer,DWORD nNumberOfBytesToRead,LPOVERLAPPED lpOverlapped,LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine); WINBASEAPI WINBOOL WINAPI WriteFileEx(HANDLE hFile,LPCVOID lpBuffer,DWORD nNumberOfBytesToWrite,LPOVERLAPPED lpOverlapped,LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine); WINBASEAPI WINBOOL WINAPI BackupRead(HANDLE hFile,LPBYTE lpBuffer,DWORD nNumberOfBytesToRead,LPDWORD lpNumberOfBytesRead,WINBOOL bAbort,WINBOOL bProcessSecurity,LPVOID *lpContext); WINBASEAPI WINBOOL WINAPI BackupSeek(HANDLE hFile,DWORD dwLowBytesToSeek,DWORD dwHighBytesToSeek,LPDWORD lpdwLowByteSeeked,LPDWORD lpdwHighByteSeeked,LPVOID *lpContext); WINBASEAPI WINBOOL WINAPI BackupWrite(HANDLE hFile,LPBYTE lpBuffer,DWORD nNumberOfBytesToWrite,LPDWORD lpNumberOfBytesWritten,WINBOOL bAbort,WINBOOL bProcessSecurity,LPVOID *lpContext); typedef struct _WIN32_STREAM_ID { DWORD dwStreamId; DWORD dwStreamAttributes; LARGE_INTEGER Size; DWORD dwStreamNameSize; WCHAR cStreamName[ANYSIZE_ARRAY]; } WIN32_STREAM_ID,*LPWIN32_STREAM_ID; #define BACKUP_INVALID 0x0 #define BACKUP_DATA 0x1 #define BACKUP_EA_DATA 0x2 #define BACKUP_SECURITY_DATA 0x3 #define BACKUP_ALTERNATE_DATA 0x4 #define BACKUP_LINK 0x5 #define BACKUP_PROPERTY_DATA 0x6 #define BACKUP_OBJECT_ID 0x7 #define BACKUP_REPARSE_DATA 0x8 #define BACKUP_SPARSE_BLOCK 0x9 #define STREAM_NORMAL_ATTRIBUTE 0x0 #define STREAM_MODIFIED_WHEN_READ 0x1 #define STREAM_CONTAINS_SECURITY 0x2 #define STREAM_CONTAINS_PROPERTIES 0x4 #define STREAM_SPARSE_ATTRIBUTE 0x8 WINBASEAPI WINBOOL WINAPI ReadFileScatter(HANDLE hFile,FILE_SEGMENT_ELEMENT aSegmentArray[],DWORD nNumberOfBytesToRead,LPDWORD lpReserved,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI WriteFileGather(HANDLE hFile,FILE_SEGMENT_ELEMENT aSegmentArray[],DWORD nNumberOfBytesToWrite,LPDWORD lpReserved,LPOVERLAPPED lpOverlapped); #define STARTF_USESHOWWINDOW 0x1 #define STARTF_USESIZE 0x2 #define STARTF_USEPOSITION 0x4 #define STARTF_USECOUNTCHARS 0x8 #define STARTF_USEFILLATTRIBUTE 0x10 #define STARTF_RUNFULLSCREEN 0x20 #define STARTF_FORCEONFEEDBACK 0x40 #define STARTF_FORCEOFFFEEDBACK 0x80 #define STARTF_USESTDHANDLES 0x100 #define STARTF_USEHOTKEY 0x200 typedef struct _STARTUPINFOA { DWORD cb; LPSTR lpReserved; LPSTR lpDesktop; LPSTR lpTitle; DWORD dwX; DWORD dwY; DWORD dwXSize; DWORD dwYSize; DWORD dwXCountChars; DWORD dwYCountChars; DWORD dwFillAttribute; DWORD dwFlags; WORD wShowWindow; WORD cbReserved2; LPBYTE lpReserved2; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; } STARTUPINFOA,*LPSTARTUPINFOA; typedef struct _STARTUPINFOW { DWORD cb; LPWSTR lpReserved; LPWSTR lpDesktop; LPWSTR lpTitle; DWORD dwX; DWORD dwY; DWORD dwXSize; DWORD dwYSize; DWORD dwXCountChars; DWORD dwYCountChars; DWORD dwFillAttribute; DWORD dwFlags; WORD wShowWindow; WORD cbReserved2; LPBYTE lpReserved2; HANDLE hStdInput; HANDLE hStdOutput; HANDLE hStdError; } STARTUPINFOW,*LPSTARTUPINFOW; __MINGW_TYPEDEF_AW(STARTUPINFO) __MINGW_TYPEDEF_AW(LPSTARTUPINFO) #define SHUTDOWN_NORETRY 0x1 typedef struct _WIN32_FIND_DATAA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; CHAR cFileName[MAX_PATH]; CHAR cAlternateFileName[14]; } WIN32_FIND_DATAA,*PWIN32_FIND_DATAA,*LPWIN32_FIND_DATAA; typedef struct _WIN32_FIND_DATAW { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; DWORD dwReserved0; DWORD dwReserved1; WCHAR cFileName[MAX_PATH]; WCHAR cAlternateFileName[14]; } WIN32_FIND_DATAW,*PWIN32_FIND_DATAW,*LPWIN32_FIND_DATAW; __MINGW_TYPEDEF_AW(WIN32_FIND_DATA) __MINGW_TYPEDEF_AW(PWIN32_FIND_DATA) __MINGW_TYPEDEF_AW(LPWIN32_FIND_DATA) typedef struct _WIN32_FILE_ATTRIBUTE_DATA { DWORD dwFileAttributes; FILETIME ftCreationTime; FILETIME ftLastAccessTime; FILETIME ftLastWriteTime; DWORD nFileSizeHigh; DWORD nFileSizeLow; } WIN32_FILE_ATTRIBUTE_DATA,*LPWIN32_FILE_ATTRIBUTE_DATA; #define CreateMutex __MINGW_NAME_AW(CreateMutex) #define OpenMutex __MINGW_NAME_AW(OpenMutex) #define CreateEvent __MINGW_NAME_AW(CreateEvent) #define OpenEvent __MINGW_NAME_AW(OpenEvent) #define CreateSemaphore __MINGW_NAME_AW(CreateSemaphore) #define OpenSemaphore __MINGW_NAME_AW(OpenSemaphore) WINBASEAPI HANDLE WINAPI CreateMutexA(LPSECURITY_ATTRIBUTES lpMutexAttributes,WINBOOL bInitialOwner,LPCSTR lpName); WINBASEAPI HANDLE WINAPI CreateMutexW(LPSECURITY_ATTRIBUTES lpMutexAttributes,WINBOOL bInitialOwner,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI OpenMutexA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpName); WINBASEAPI HANDLE WINAPI OpenMutexW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI CreateEventA(LPSECURITY_ATTRIBUTES lpEventAttributes,WINBOOL bManualReset,WINBOOL bInitialState,LPCSTR lpName); WINBASEAPI HANDLE WINAPI CreateEventW(LPSECURITY_ATTRIBUTES lpEventAttributes,WINBOOL bManualReset,WINBOOL bInitialState,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI OpenEventA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpName); WINBASEAPI HANDLE WINAPI OpenEventW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI CreateSemaphoreA(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes,LONG lInitialCount,LONG lMaximumCount,LPCSTR lpName); WINBASEAPI HANDLE WINAPI CreateSemaphoreW(LPSECURITY_ATTRIBUTES lpSemaphoreAttributes,LONG lInitialCount,LONG lMaximumCount,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI OpenSemaphoreA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpName); WINBASEAPI HANDLE WINAPI OpenSemaphoreW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpName); typedef VOID (WINAPI *PTIMERAPCROUTINE)(LPVOID lpArgToCompletionRoutine,DWORD dwTimerLowValue,DWORD dwTimerHighValue); #define CreateWaitableTimer __MINGW_NAME_AW(CreateWaitableTimer) #define OpenWaitableTimer __MINGW_NAME_AW(OpenWaitableTimer) #define CreateFileMapping __MINGW_NAME_AW(CreateFileMapping) #define OpenFileMapping __MINGW_NAME_AW(OpenFileMapping) #define GetLogicalDriveStrings __MINGW_NAME_AW(GetLogicalDriveStrings) #define LoadLibrary __MINGW_NAME_AW(LoadLibrary) #define LoadLibraryEx __MINGW_NAME_AW(LoadLibraryEx) #define GetModuleFileName __MINGW_NAME_AW(GetModuleFileName) #define GetModuleHandle __MINGW_NAME_AW(GetModuleHandle) WINBASEAPI HANDLE WINAPI CreateWaitableTimerA(LPSECURITY_ATTRIBUTES lpTimerAttributes,WINBOOL bManualReset,LPCSTR lpTimerName); WINBASEAPI HANDLE WINAPI CreateWaitableTimerW(LPSECURITY_ATTRIBUTES lpTimerAttributes,WINBOOL bManualReset,LPCWSTR lpTimerName); WINBASEAPI HANDLE WINAPI OpenWaitableTimerA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpTimerName); WINBASEAPI HANDLE WINAPI OpenWaitableTimerW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpTimerName); WINBASEAPI WINBOOL WINAPI SetWaitableTimer(HANDLE hTimer,const LARGE_INTEGER *lpDueTime,LONG lPeriod,PTIMERAPCROUTINE pfnCompletionRoutine,LPVOID lpArgToCompletionRoutine,WINBOOL fResume); WINBASEAPI WINBOOL WINAPI CancelWaitableTimer(HANDLE hTimer); WINBASEAPI HANDLE WINAPI CreateFileMappingA(HANDLE hFile,LPSECURITY_ATTRIBUTES lpFileMappingAttributes,DWORD flProtect,DWORD dwMaximumSizeHigh,DWORD dwMaximumSizeLow,LPCSTR lpName); WINBASEAPI HANDLE WINAPI CreateFileMappingW(HANDLE hFile,LPSECURITY_ATTRIBUTES lpFileMappingAttributes,DWORD flProtect,DWORD dwMaximumSizeHigh,DWORD dwMaximumSizeLow,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI OpenFileMappingA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpName); WINBASEAPI HANDLE WINAPI OpenFileMappingW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpName); WINBASEAPI DWORD WINAPI GetLogicalDriveStringsA(DWORD nBufferLength,LPSTR lpBuffer); WINBASEAPI DWORD WINAPI GetLogicalDriveStringsW(DWORD nBufferLength,LPWSTR lpBuffer); typedef enum _MEMORY_RESOURCE_NOTIFICATION_TYPE { LowMemoryResourceNotification,HighMemoryResourceNotification } MEMORY_RESOURCE_NOTIFICATION_TYPE; WINBASEAPI HANDLE WINAPI CreateMemoryResourceNotification(MEMORY_RESOURCE_NOTIFICATION_TYPE NotificationType); WINBASEAPI WINBOOL WINAPI QueryMemoryResourceNotification(HANDLE ResourceNotificationHandle,PBOOL ResourceState); WINBASEAPI HMODULE WINAPI LoadLibraryA(LPCSTR lpLibFileName); WINBASEAPI HMODULE WINAPI LoadLibraryW(LPCWSTR lpLibFileName); WINBASEAPI HMODULE WINAPI LoadLibraryExA(LPCSTR lpLibFileName,HANDLE hFile,DWORD dwFlags); WINBASEAPI HMODULE WINAPI LoadLibraryExW(LPCWSTR lpLibFileName,HANDLE hFile,DWORD dwFlags); #define DONT_RESOLVE_DLL_REFERENCES 0x1 #define LOAD_LIBRARY_AS_DATAFILE 0x2 #define LOAD_WITH_ALTERED_SEARCH_PATH 0x8 #define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x10 #define LOAD_LINRARY_AS_IMAGE_RESOURCE 0x20 #define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x40 WINBASEAPI DWORD WINAPI GetModuleFileNameA(HMODULE hModule,LPCH lpFilename,DWORD nSize); WINBASEAPI DWORD WINAPI GetModuleFileNameW(HMODULE hModule,LPWCH lpFilename,DWORD nSize); WINBASEAPI HMODULE WINAPI GetModuleHandleA(LPCSTR lpModuleName); WINBASEAPI HMODULE WINAPI GetModuleHandleW(LPCWSTR lpModuleName); #ifndef RC_INVOKED #define GET_MODULE_HANDLE_EX_FLAG_PIN (0x1) #define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT (0x2) #define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS (0x4) typedef WINBOOL (WINAPI *PGET_MODULE_HANDLE_EXA)(DWORD dwFlags,LPCSTR lpModuleName,HMODULE *phModule); typedef WINBOOL (WINAPI *PGET_MODULE_HANDLE_EXW)(DWORD dwFlags,LPCWSTR lpModuleName,HMODULE *phModule); #define PGET_MODULE_HANDLE_EX __MINGW_NAME_AW(PGET_MODULE_HANDLE_EX) #define GetModuleHandleEx __MINGW_NAME_AW(GetModuleHandleEx) WINBASEAPI WINBOOL WINAPI GetModuleHandleExA(DWORD dwFlags,LPCSTR lpModuleName,HMODULE *phModule); WINBASEAPI WINBOOL WINAPI GetModuleHandleExW(DWORD dwFlags,LPCWSTR lpModuleName,HMODULE *phModule); #endif #define NeedCurrentDirectoryForExePath __MINGW_NAME_AW(NeedCurrentDirectoryForExePath) #define CreateProcess __MINGW_NAME_AW(CreateProcess) #define FatalAppExit __MINGW_NAME_AW(FatalAppExit) #define GetStartupInfo __MINGW_NAME_AW(GetStartupInfo) #define GetCommandLine __MINGW_NAME_AW(GetCommandLine) #define GetEnvironmentVariable __MINGW_NAME_AW(GetEnvironmentVariable) #define SetEnvironmentVariable __MINGW_NAME_AW(SetEnvironmentVariable) #define ExpandEnvironmentStrings __MINGW_NAME_AW(ExpandEnvironmentStrings) #define GetFirmwareEnvironmentVariable __MINGW_NAME_AW(GetFirmwareEnvironmentVariable) #define SetFirmwareEnvironmentVariable __MINGW_NAME_AW(SetFirmwareEnvironmentVariable) #define OutputDebugString __MINGW_NAME_AW(OutputDebugString) #define FindResource __MINGW_NAME_AW(FindResource) #define FindResourceEx __MINGW_NAME_AW(FindResourceEx) WINBASEAPI WINBOOL WINAPI NeedCurrentDirectoryForExePathA(LPCSTR ExeName); WINBASEAPI WINBOOL WINAPI NeedCurrentDirectoryForExePathW(LPCWSTR ExeName); WINBASEAPI WINBOOL WINAPI CreateProcessA(LPCSTR lpApplicationName,LPSTR lpCommandLine,LPSECURITY_ATTRIBUTES lpProcessAttributes,LPSECURITY_ATTRIBUTES lpThreadAttributes,WINBOOL bInheritHandles,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCSTR lpCurrentDirectory,LPSTARTUPINFOA lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); WINBASEAPI WINBOOL WINAPI CreateProcessW(LPCWSTR lpApplicationName,LPWSTR lpCommandLine,LPSECURITY_ATTRIBUTES lpProcessAttributes,LPSECURITY_ATTRIBUTES lpThreadAttributes,WINBOOL bInheritHandles,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCWSTR lpCurrentDirectory,LPSTARTUPINFOW lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); WINBASEAPI DWORD WINAPI AddLocalAlternateComputerNameA(LPCSTR lpDnsFQHostname,ULONG ulFlags); WINBASEAPI DWORD WINAPI AddLocalAlternateComputerNameW(LPCWSTR lpDnsFQHostname,ULONG ulFlags); WINBASEAPI WINBOOL WINAPI SetProcessShutdownParameters(DWORD dwLevel,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI GetProcessShutdownParameters(LPDWORD lpdwLevel,LPDWORD lpdwFlags); WINBASEAPI DWORD WINAPI GetProcessVersion(DWORD ProcessId); WINBASEAPI VOID WINAPI FatalAppExitA(UINT uAction,LPCSTR lpMessageText); WINBASEAPI VOID WINAPI FatalAppExitW(UINT uAction,LPCWSTR lpMessageText); WINBASEAPI VOID WINAPI GetStartupInfoA(LPSTARTUPINFOA lpStartupInfo); WINBASEAPI VOID WINAPI GetStartupInfoW(LPSTARTUPINFOW lpStartupInfo); WINBASEAPI LPSTR WINAPI GetCommandLineA(VOID); WINBASEAPI LPWSTR WINAPI GetCommandLineW(VOID); WINBASEAPI DWORD WINAPI GetEnvironmentVariableA(LPCSTR lpName,LPSTR lpBuffer,DWORD nSize); WINBASEAPI DWORD WINAPI GetEnvironmentVariableW(LPCWSTR lpName,LPWSTR lpBuffer,DWORD nSize); WINBASEAPI WINBOOL WINAPI SetEnvironmentVariableA(LPCSTR lpName,LPCSTR lpValue); WINBASEAPI WINBOOL WINAPI SetEnvironmentVariableW(LPCWSTR lpName,LPCWSTR lpValue); WINBASEAPI DWORD WINAPI ExpandEnvironmentStringsA(LPCSTR lpSrc,LPSTR lpDst,DWORD nSize); WINBASEAPI DWORD WINAPI ExpandEnvironmentStringsW(LPCWSTR lpSrc,LPWSTR lpDst,DWORD nSize); WINBASEAPI DWORD WINAPI GetFirmwareEnvironmentVariableA(LPCSTR lpName,LPCSTR lpGuid,PVOID pBuffer,DWORD nSize); WINBASEAPI DWORD WINAPI GetFirmwareEnvironmentVariableW(LPCWSTR lpName,LPCWSTR lpGuid,PVOID pBuffer,DWORD nSize); WINBASEAPI WINBOOL WINAPI SetFirmwareEnvironmentVariableA(LPCSTR lpName,LPCSTR lpGuid,PVOID pValue,DWORD nSize); WINBASEAPI WINBOOL WINAPI SetFirmwareEnvironmentVariableW(LPCWSTR lpName,LPCWSTR lpGuid,PVOID pValue,DWORD nSize); WINBASEAPI VOID WINAPI OutputDebugStringA(LPCSTR lpOutputString); WINBASEAPI VOID WINAPI OutputDebugStringW(LPCWSTR lpOutputString); WINBASEAPI HRSRC WINAPI FindResourceA(HMODULE hModule,LPCSTR lpName,LPCSTR lpType); WINBASEAPI HRSRC WINAPI FindResourceW(HMODULE hModule,LPCWSTR lpName,LPCWSTR lpType); WINBASEAPI HRSRC WINAPI FindResourceExA(HMODULE hModule,LPCSTR lpType,LPCSTR lpName,WORD wLanguage); WINBASEAPI HRSRC WINAPI FindResourceExW(HMODULE hModule,LPCWSTR lpType,LPCWSTR lpName,WORD wLanguage); /* available in XP SP3, Vista SP1 and higher */ typedef enum _DEP_SYSTEM_POLICY_TYPE { AlwaysOff = 0, AlwaysOn = 1, OptIn = 2, OptOut = 3 } DEP_SYSTEM_POLICY_TYPE; WINBASEAPI DEP_SYSTEM_POLICY_TYPE WINAPI GetSystemDEPPolicy (void); #define ENUMRESTYPEPROC __MINGW_NAME_AW(ENUMRESTYPEPROC) #define ENUMRESNAMEPROC __MINGW_NAME_AW(ENUMRESNAMEPROC) #define ENUMRESLANGPROC __MINGW_NAME_AW(ENUMRESLANGPROC) #define EnumResourceTypes __MINGW_NAME_AW(EnumResourceTypes) #define EnumResourceNames __MINGW_NAME_AW(EnumResourceNames) #define EnumResourceLanguages __MINGW_NAME_AW(EnumResourceLanguages) #define BeginUpdateResource __MINGW_NAME_AW(BeginUpdateResource) #define UpdateResource __MINGW_NAME_AW(UpdateResource) #define EndUpdateResource __MINGW_NAME_AW(EndUpdateResource) #define GlobalAddAtom __MINGW_NAME_AW(GlobalAddAtom) #define GlobalFindAtom __MINGW_NAME_AW(GlobalFindAtom) #define GlobalGetAtomName __MINGW_NAME_AW(GlobalGetAtomName) #define AddAtom __MINGW_NAME_AW(AddAtom) #define FindAtom __MINGW_NAME_AW(FindAtom) #define GetAtomName __MINGW_NAME_AW(GetAtomName) #define GetProfileInt __MINGW_NAME_AW(GetProfileInt) #define GetProfileString __MINGW_NAME_AW(GetProfileString) #define WriteProfileString __MINGW_NAME_AW(WriteProfileString) #define GetProfileSection __MINGW_NAME_AW(GetProfileSection) #define WriteProfileSection __MINGW_NAME_AW(WriteProfileSection) #define GetPrivateProfileInt __MINGW_NAME_AW(GetPrivateProfileInt) #define GetPrivateProfileString __MINGW_NAME_AW(GetPrivateProfileString) #define WritePrivateProfileString __MINGW_NAME_AW(WritePrivateProfileString) #define GetPrivateProfileSection __MINGW_NAME_AW(GetPrivateProfileSection) #define WritePrivateProfileSection __MINGW_NAME_AW(WritePrivateProfileSection) #define GetPrivateProfileSectionNames __MINGW_NAME_AW(GetPrivateProfileSectionNames) #define GetPrivateProfileStruct __MINGW_NAME_AW(GetPrivateProfileStruct) #define WritePrivateProfileStruct __MINGW_NAME_AW(WritePrivateProfileStruct) #define GetDriveType __MINGW_NAME_AW(GetDriveType) #define GetSystemDirectory __MINGW_NAME_AW(GetSystemDirectory) #define GetTempPath __MINGW_NAME_AW(GetTempPath) #define GetTempFileName __MINGW_NAME_AW(GetTempFileName) #define GetWindowsDirectory __MINGW_NAME_AW(GetWindowsDirectory) #define GetSystemWindowsDirectory __MINGW_NAME_AW(GetSystemWindowsDirectory) #define AddLocalAlternateComputerName __MINGW_NAME_AW(AddLocalAlternateComputerName) typedef WINBOOL (CALLBACK *ENUMRESTYPEPROCA)(HMODULE hModule,LPSTR lpType,LONG_PTR lParam); typedef WINBOOL (CALLBACK *ENUMRESTYPEPROCW)(HMODULE hModule,LPWSTR lpType,LONG_PTR lParam); typedef WINBOOL (CALLBACK *ENUMRESNAMEPROCA)(HMODULE hModule,LPCSTR lpType,LPSTR lpName,LONG_PTR lParam); typedef WINBOOL (CALLBACK *ENUMRESNAMEPROCW)(HMODULE hModule,LPCWSTR lpType,LPWSTR lpName,LONG_PTR lParam); typedef WINBOOL (CALLBACK *ENUMRESLANGPROCA)(HMODULE hModule,LPCSTR lpType,LPCSTR lpName,WORD wLanguage,LONG_PTR lParam); typedef WINBOOL (CALLBACK *ENUMRESLANGPROCW)(HMODULE hModule,LPCWSTR lpType,LPCWSTR lpName,WORD wLanguage,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceTypesA(HMODULE hModule,ENUMRESTYPEPROCA lpEnumFunc,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceTypesW(HMODULE hModule,ENUMRESTYPEPROCW lpEnumFunc,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceNamesA(HMODULE hModule,LPCSTR lpType,ENUMRESNAMEPROCA lpEnumFunc,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceNamesW(HMODULE hModule,LPCWSTR lpType,ENUMRESNAMEPROCW lpEnumFunc,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceLanguagesA(HMODULE hModule,LPCSTR lpType,LPCSTR lpName,ENUMRESLANGPROCA lpEnumFunc,LONG_PTR lParam); WINBASEAPI WINBOOL WINAPI EnumResourceLanguagesW(HMODULE hModule,LPCWSTR lpType,LPCWSTR lpName,ENUMRESLANGPROCW lpEnumFunc,LONG_PTR lParam); WINBASEAPI HANDLE WINAPI BeginUpdateResourceA(LPCSTR pFileName,WINBOOL bDeleteExistingResources); WINBASEAPI HANDLE WINAPI BeginUpdateResourceW(LPCWSTR pFileName,WINBOOL bDeleteExistingResources); WINBASEAPI WINBOOL WINAPI UpdateResourceA(HANDLE hUpdate,LPCSTR lpType,LPCSTR lpName,WORD wLanguage,LPVOID lpData,DWORD cb); WINBASEAPI WINBOOL WINAPI UpdateResourceW(HANDLE hUpdate,LPCWSTR lpType,LPCWSTR lpName,WORD wLanguage,LPVOID lpData,DWORD cb); WINBASEAPI WINBOOL WINAPI EndUpdateResourceA(HANDLE hUpdate,WINBOOL fDiscard); WINBASEAPI WINBOOL WINAPI EndUpdateResourceW(HANDLE hUpdate,WINBOOL fDiscard); WINBASEAPI ATOM WINAPI GlobalAddAtomA(LPCSTR lpString); WINBASEAPI ATOM WINAPI GlobalAddAtomW(LPCWSTR lpString); WINBASEAPI ATOM WINAPI GlobalFindAtomA(LPCSTR lpString); WINBASEAPI ATOM WINAPI GlobalFindAtomW(LPCWSTR lpString); WINBASEAPI UINT WINAPI GlobalGetAtomNameA(ATOM nAtom,LPSTR lpBuffer,int nSize); WINBASEAPI UINT WINAPI GlobalGetAtomNameW(ATOM nAtom,LPWSTR lpBuffer,int nSize); WINBASEAPI ATOM WINAPI AddAtomA(LPCSTR lpString); WINBASEAPI ATOM WINAPI AddAtomW(LPCWSTR lpString); WINBASEAPI ATOM WINAPI FindAtomA(LPCSTR lpString); WINBASEAPI ATOM WINAPI FindAtomW(LPCWSTR lpString); WINBASEAPI UINT WINAPI GetAtomNameA(ATOM nAtom,LPSTR lpBuffer,int nSize); WINBASEAPI UINT WINAPI GetAtomNameW(ATOM nAtom,LPWSTR lpBuffer,int nSize); WINBASEAPI UINT WINAPI GetProfileIntA(LPCSTR lpAppName,LPCSTR lpKeyName,INT nDefault); WINBASEAPI UINT WINAPI GetProfileIntW(LPCWSTR lpAppName,LPCWSTR lpKeyName,INT nDefault); WINBASEAPI DWORD WINAPI GetProfileStringA(LPCSTR lpAppName,LPCSTR lpKeyName,LPCSTR lpDefault,LPSTR lpReturnedString,DWORD nSize); WINBASEAPI DWORD WINAPI GetProfileStringW(LPCWSTR lpAppName,LPCWSTR lpKeyName,LPCWSTR lpDefault,LPWSTR lpReturnedString,DWORD nSize); WINBASEAPI WINBOOL WINAPI WriteProfileStringA(LPCSTR lpAppName,LPCSTR lpKeyName,LPCSTR lpString); WINBASEAPI WINBOOL WINAPI WriteProfileStringW(LPCWSTR lpAppName,LPCWSTR lpKeyName,LPCWSTR lpString); WINBASEAPI DWORD WINAPI GetProfileSectionA(LPCSTR lpAppName,LPSTR lpReturnedString,DWORD nSize); WINBASEAPI DWORD WINAPI GetProfileSectionW(LPCWSTR lpAppName,LPWSTR lpReturnedString,DWORD nSize); WINBASEAPI WINBOOL WINAPI WriteProfileSectionA(LPCSTR lpAppName,LPCSTR lpString); WINBASEAPI WINBOOL WINAPI WriteProfileSectionW(LPCWSTR lpAppName,LPCWSTR lpString); WINBASEAPI UINT WINAPI GetPrivateProfileIntA(LPCSTR lpAppName,LPCSTR lpKeyName,INT nDefault,LPCSTR lpFileName); WINBASEAPI UINT WINAPI GetPrivateProfileIntW(LPCWSTR lpAppName,LPCWSTR lpKeyName,INT nDefault,LPCWSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileStringA(LPCSTR lpAppName,LPCSTR lpKeyName,LPCSTR lpDefault,LPSTR lpReturnedString,DWORD nSize,LPCSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileStringW(LPCWSTR lpAppName,LPCWSTR lpKeyName,LPCWSTR lpDefault,LPWSTR lpReturnedString,DWORD nSize,LPCWSTR lpFileName); WINBASEAPI WINBOOL WINAPI WritePrivateProfileStringA(LPCSTR lpAppName,LPCSTR lpKeyName,LPCSTR lpString,LPCSTR lpFileName); WINBASEAPI WINBOOL WINAPI WritePrivateProfileStringW(LPCWSTR lpAppName,LPCWSTR lpKeyName,LPCWSTR lpString,LPCWSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileSectionA(LPCSTR lpAppName,LPSTR lpReturnedString,DWORD nSize,LPCSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileSectionW(LPCWSTR lpAppName,LPWSTR lpReturnedString,DWORD nSize,LPCWSTR lpFileName); WINBASEAPI WINBOOL WINAPI WritePrivateProfileSectionA(LPCSTR lpAppName,LPCSTR lpString,LPCSTR lpFileName); WINBASEAPI WINBOOL WINAPI WritePrivateProfileSectionW(LPCWSTR lpAppName,LPCWSTR lpString,LPCWSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR lpszReturnBuffer,DWORD nSize,LPCSTR lpFileName); WINBASEAPI DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR lpszReturnBuffer,DWORD nSize,LPCWSTR lpFileName); WINBASEAPI WINBOOL WINAPI GetPrivateProfileStructA(LPCSTR lpszSection,LPCSTR lpszKey,LPVOID lpStruct,UINT uSizeStruct,LPCSTR szFile); WINBASEAPI WINBOOL WINAPI GetPrivateProfileStructW(LPCWSTR lpszSection,LPCWSTR lpszKey,LPVOID lpStruct,UINT uSizeStruct,LPCWSTR szFile); WINBASEAPI WINBOOL WINAPI WritePrivateProfileStructA(LPCSTR lpszSection,LPCSTR lpszKey,LPVOID lpStruct,UINT uSizeStruct,LPCSTR szFile); WINBASEAPI WINBOOL WINAPI WritePrivateProfileStructW(LPCWSTR lpszSection,LPCWSTR lpszKey,LPVOID lpStruct,UINT uSizeStruct,LPCWSTR szFile); WINBASEAPI UINT WINAPI GetDriveTypeA(LPCSTR lpRootPathName); WINBASEAPI UINT WINAPI GetDriveTypeW(LPCWSTR lpRootPathName); WINBASEAPI UINT WINAPI GetSystemDirectoryA(LPSTR lpBuffer,UINT uSize); WINBASEAPI UINT WINAPI GetSystemDirectoryW(LPWSTR lpBuffer,UINT uSize); WINBASEAPI DWORD WINAPI GetTempPathA(DWORD nBufferLength,LPSTR lpBuffer); WINBASEAPI DWORD WINAPI GetTempPathW(DWORD nBufferLength,LPWSTR lpBuffer); WINBASEAPI UINT WINAPI GetTempFileNameA(LPCSTR lpPathName,LPCSTR lpPrefixString,UINT uUnique,LPSTR lpTempFileName); WINBASEAPI UINT WINAPI GetTempFileNameW(LPCWSTR lpPathName,LPCWSTR lpPrefixString,UINT uUnique,LPWSTR lpTempFileName); WINBASEAPI UINT WINAPI GetWindowsDirectoryA(LPSTR lpBuffer,UINT uSize); WINBASEAPI UINT WINAPI GetWindowsDirectoryW(LPWSTR lpBuffer,UINT uSize); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryA(LPSTR lpBuffer,UINT uSize); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR lpBuffer,UINT uSize); #ifndef RC_INVOKED #define GetSystemWow64Directory __MINGW_NAME_AW(GetSystemWow64Directory) WINBASEAPI UINT WINAPI GetSystemWow64DirectoryA(LPSTR lpBuffer,UINT uSize); WINBASEAPI UINT WINAPI GetSystemWow64DirectoryW(LPWSTR lpBuffer,UINT uSize); WINBASEAPI BOOLEAN WINAPI Wow64EnableWow64FsRedirection(BOOLEAN Wow64FsEnableRedirection); WINBASEAPI WINBOOL WINAPI Wow64DisableWow64FsRedirection(PVOID *OldValue); WINBASEAPI WINBOOL WINAPI Wow64RevertWow64FsRedirection(PVOID OlValue); typedef UINT (WINAPI *PGET_SYSTEM_WOW64_DIRECTORY_A)(LPSTR lpBuffer,UINT uSize); typedef UINT (WINAPI *PGET_SYSTEM_WOW64_DIRECTORY_W)(LPWSTR lpBuffer,UINT uSize); #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A "GetSystemWow64DirectoryA" #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W L"GetSystemWow64DirectoryA" #define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T TEXT("GetSystemWow64DirectoryA") #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A "GetSystemWow64DirectoryW" #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W L"GetSystemWow64DirectoryW" #define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T TEXT("GetSystemWow64DirectoryW") #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A __MINGW_NAME_UAW_EXT(GET_SYSTEM_WOW64_DIRECTORY_NAME,A) #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W __MINGW_NAME_UAW_EXT(GET_SYSTEM_WOW64_DIRECTORY_NAME,W) #define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T __MINGW_NAME_UAW_EXT(GET_SYSTEM_WOW64_DIRECTORY_NAME,T) #endif #define SetCurrentDirectory __MINGW_NAME_AW(SetCurrentDirectory) #define GetCurrentDirectory __MINGW_NAME_AW(GetCurrentDirectory) #define SetDllDirectory __MINGW_NAME_AW(SetDllDirectory) #define GetDllDirectory __MINGW_NAME_AW(GetDllDirectory) #define GetDiskFreeSpace __MINGW_NAME_AW(GetDiskFreeSpace) #define GetDiskFreeSpaceEx __MINGW_NAME_AW(GetDiskFreeSpaceEx) #define CreateDirectory __MINGW_NAME_AW(CreateDirectory) #define CreateDirectoryEx __MINGW_NAME_AW(CreateDirectoryEx) #define RemoveDirectory __MINGW_NAME_AW(RemoveDirectory) #define GetFullPathName __MINGW_NAME_AW(GetFullPathName) #define DefineDosDevice __MINGW_NAME_AW(DefineDosDevice) #define QueryDosDevice __MINGW_NAME_AW(QueryDosDevice) #define CreateFile __MINGW_NAME_AW(CreateFile) #define SetFileAttributes __MINGW_NAME_AW(SetFileAttributes) #define GetFileAttributes __MINGW_NAME_AW(GetFileAttributes) WINBASEAPI WINBOOL WINAPI SetCurrentDirectoryA(LPCSTR lpPathName); WINBASEAPI WINBOOL WINAPI SetCurrentDirectoryW(LPCWSTR lpPathName); WINBASEAPI DWORD WINAPI GetCurrentDirectoryA(DWORD nBufferLength,LPSTR lpBuffer); WINBASEAPI DWORD WINAPI GetCurrentDirectoryW(DWORD nBufferLength,LPWSTR lpBuffer); WINBASEAPI WINBOOL WINAPI SetDllDirectoryA(LPCSTR lpPathName); WINBASEAPI WINBOOL WINAPI SetDllDirectoryW(LPCWSTR lpPathName); WINBASEAPI DWORD WINAPI GetDllDirectoryA(DWORD nBufferLength,LPSTR lpBuffer); WINBASEAPI DWORD WINAPI GetDllDirectoryW(DWORD nBufferLength,LPWSTR lpBuffer); WINBASEAPI WINBOOL WINAPI GetDiskFreeSpaceA(LPCSTR lpRootPathName,LPDWORD lpSectorsPerCluster,LPDWORD lpBytesPerSector,LPDWORD lpNumberOfFreeClusters,LPDWORD lpTotalNumberOfClusters); WINBASEAPI WINBOOL WINAPI GetDiskFreeSpaceW(LPCWSTR lpRootPathName,LPDWORD lpSectorsPerCluster,LPDWORD lpBytesPerSector,LPDWORD lpNumberOfFreeClusters,LPDWORD lpTotalNumberOfClusters); WINBASEAPI WINBOOL WINAPI GetDiskFreeSpaceExA(LPCSTR lpDirectoryName,PULARGE_INTEGER lpFreeBytesAvailableToCaller,PULARGE_INTEGER lpTotalNumberOfBytes,PULARGE_INTEGER lpTotalNumberOfFreeBytes); WINBASEAPI WINBOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR lpDirectoryName,PULARGE_INTEGER lpFreeBytesAvailableToCaller,PULARGE_INTEGER lpTotalNumberOfBytes,PULARGE_INTEGER lpTotalNumberOfFreeBytes); WINBASEAPI WINBOOL WINAPI CreateDirectoryA(LPCSTR lpPathName,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI CreateDirectoryW(LPCWSTR lpPathName,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI CreateDirectoryExA(LPCSTR lpTemplateDirectory,LPCSTR lpNewDirectory,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI CreateDirectoryExW(LPCWSTR lpTemplateDirectory,LPCWSTR lpNewDirectory,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI RemoveDirectoryA(LPCSTR lpPathName); WINBASEAPI WINBOOL WINAPI RemoveDirectoryW(LPCWSTR lpPathName); WINBASEAPI DWORD WINAPI GetFullPathNameA(LPCSTR lpFileName,DWORD nBufferLength,LPSTR lpBuffer,LPSTR *lpFilePart); WINBASEAPI DWORD WINAPI GetFullPathNameW(LPCWSTR lpFileName,DWORD nBufferLength,LPWSTR lpBuffer,LPWSTR *lpFilePart); #define DDD_RAW_TARGET_PATH 0x1 #define DDD_REMOVE_DEFINITION 0x2 #define DDD_EXACT_MATCH_ON_REMOVE 0x4 #define DDD_NO_BROADCAST_SYSTEM 0x8 #define DDD_LUID_BROADCAST_DRIVE 0x10 WINBASEAPI WINBOOL WINAPI DefineDosDeviceA(DWORD dwFlags,LPCSTR lpDeviceName,LPCSTR lpTargetPath); WINBASEAPI WINBOOL WINAPI DefineDosDeviceW(DWORD dwFlags,LPCWSTR lpDeviceName,LPCWSTR lpTargetPath); WINBASEAPI DWORD WINAPI QueryDosDeviceA(LPCSTR lpDeviceName,LPSTR lpTargetPath,DWORD ucchMax); WINBASEAPI DWORD WINAPI QueryDosDeviceW(LPCWSTR lpDeviceName,LPWSTR lpTargetPath,DWORD ucchMax); #define EXPAND_LOCAL_DRIVES WINBASEAPI HANDLE WINAPI CreateFileA(LPCSTR lpFileName,DWORD dwDesiredAccess,DWORD dwShareMode,LPSECURITY_ATTRIBUTES lpSecurityAttributes,DWORD dwCreationDisposition,DWORD dwFlagsAndAttributes,HANDLE hTemplateFile); WINBASEAPI HANDLE WINAPI CreateFileW(LPCWSTR lpFileName,DWORD dwDesiredAccess,DWORD dwShareMode,LPSECURITY_ATTRIBUTES lpSecurityAttributes,DWORD dwCreationDisposition,DWORD dwFlagsAndAttributes,HANDLE hTemplateFile); WINBASEAPI HANDLE WINAPI ReOpenFile(HANDLE hOriginalFile,DWORD dwDesiredAccess,DWORD dwShareMode,DWORD dwFlagsAndAttributes); WINBASEAPI WINBOOL WINAPI SetFileAttributesA(LPCSTR lpFileName,DWORD dwFileAttributes); WINBASEAPI WINBOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName,DWORD dwFileAttributes); WINBASEAPI DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName); WINBASEAPI DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName); typedef enum _GET_FILEEX_INFO_LEVELS { GetFileExInfoStandard,GetFileExMaxInfoLevel } GET_FILEEX_INFO_LEVELS; #define GetFileAttributesEx __MINGW_NAME_AW(GetFileAttributesEx) #define GetCompressedFileSize __MINGW_NAME_AW(GetCompressedFileSize) #define DeleteFile __MINGW_NAME_AW(DeleteFile) #define CheckNameLegalDOS8Dot3 __MINGW_NAME_AW(CheckNameLegalDOS8Dot3) WINBASEAPI WINBOOL WINAPI GetFileAttributesExA(LPCSTR lpFileName,GET_FILEEX_INFO_LEVELS fInfoLevelId,LPVOID lpFileInformation); WINBASEAPI WINBOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName,GET_FILEEX_INFO_LEVELS fInfoLevelId,LPVOID lpFileInformation); WINBASEAPI DWORD WINAPI GetCompressedFileSizeA(LPCSTR lpFileName,LPDWORD lpFileSizeHigh); WINBASEAPI DWORD WINAPI GetCompressedFileSizeW(LPCWSTR lpFileName,LPDWORD lpFileSizeHigh); WINBASEAPI WINBOOL WINAPI DeleteFileA(LPCSTR lpFileName); WINBASEAPI WINBOOL WINAPI DeleteFileW(LPCWSTR lpFileName); WINBASEAPI WINBOOL WINAPI CheckNameLegalDOS8Dot3A(LPCSTR lpName,LPSTR lpOemName,DWORD OemNameSize,PBOOL pbNameContainsSpaces,PBOOL pbNameLegal); WINBASEAPI WINBOOL WINAPI CheckNameLegalDOS8Dot3W(LPCWSTR lpName,LPSTR lpOemName,DWORD OemNameSize,PBOOL pbNameContainsSpaces,PBOOL pbNameLegal); typedef enum _FINDEX_INFO_LEVELS { FindExInfoStandard,FindExInfoMaxInfoLevel } FINDEX_INFO_LEVELS; typedef enum _FINDEX_SEARCH_OPS { FindExSearchNameMatch,FindExSearchLimitToDirectories,FindExSearchLimitToDevices,FindExSearchMaxSearchOp } FINDEX_SEARCH_OPS; #define FIND_FIRST_EX_CASE_SENSITIVE 0x1 #define FindFirstFileEx __MINGW_NAME_AW(FindFirstFileEx) #define FindFirstFile __MINGW_NAME_AW(FindFirstFile) #define FindNextFile __MINGW_NAME_AW(FindNextFile) #define SearchPath __MINGW_NAME_AW(SearchPath) #define CopyFile __MINGW_NAME_AW(CopyFile) #define CopyFileEx __MINGW_NAME_AW(CopyFileEx) #define MoveFile __MINGW_NAME_AW(MoveFile) #define MoveFileEx __MINGW_NAME_AW(MoveFileEx) #define MoveFileWithProgress __MINGW_NAME_AW(MoveFileWithProgress) #define ReplaceFile __MINGW_NAME_AW(ReplaceFile) #define CreateHardLink __MINGW_NAME_AW(CreateHardLink) #define CreateNamedPipe __MINGW_NAME_AW(CreateNamedPipe) #define GetNamedPipeHandleState __MINGW_NAME_AW(GetNamedPipeHandleState) #define CallNamedPipe __MINGW_NAME_AW(CallNamedPipe) #define WaitNamedPipe __MINGW_NAME_AW(WaitNamedPipe) #define SetVolumeLabel __MINGW_NAME_AW(SetVolumeLabel) #define GetVolumeInformation __MINGW_NAME_AW(GetVolumeInformation) #define ClearEventLog __MINGW_NAME_AW(ClearEventLog) #define BackupEventLog __MINGW_NAME_AW(BackupEventLog) #define OpenEventLog __MINGW_NAME_AW(OpenEventLog) #define RegisterEventSource __MINGW_NAME_AW(RegisterEventSource) #define OpenBackupEventLog __MINGW_NAME_AW(OpenBackupEventLog) #define ReadEventLog __MINGW_NAME_AW(ReadEventLog) #define ReportEvent __MINGW_NAME_AW(ReportEvent) #define AccessCheckAndAuditAlarm __MINGW_NAME_AW(AccessCheckAndAuditAlarm) #define AccessCheckByTypeAndAuditAlarm __MINGW_NAME_AW(AccessCheckByTypeAndAuditAlarm) #define AccessCheckByTypeResultListAndAuditAlarm __MINGW_NAME_AW(AccessCheckByTypeResultListAndAuditAlarm) #define AccessCheckByTypeResultListAndAuditAlarmByHandle __MINGW_NAME_AW(AccessCheckByTypeResultListAndAuditAlarmByHandle) #define ObjectOpenAuditAlarm __MINGW_NAME_AW(ObjectOpenAuditAlarm) #define ObjectPrivilegeAuditAlarm __MINGW_NAME_AW(ObjectPrivilegeAuditAlarm) #define ObjectCloseAuditAlarm __MINGW_NAME_AW(ObjectCloseAuditAlarm) #define ObjectDeleteAuditAlarm __MINGW_NAME_AW(ObjectDeleteAuditAlarm) #define PrivilegedServiceAuditAlarm __MINGW_NAME_AW(PrivilegedServiceAuditAlarm) #define SetFileSecurity __MINGW_NAME_AW(SetFileSecurity) #define GetFileSecurity __MINGW_NAME_AW(GetFileSecurity) #define FindFirstChangeNotification __MINGW_NAME_AW(FindFirstChangeNotification) #define IsBadStringPtr __MINGW_NAME_AW(IsBadStringPtr) #define LookupAccountSid __MINGW_NAME_AW(LookupAccountSid) #define LookupAccountName __MINGW_NAME_AW(LookupAccountName) #define LookupPrivilegeValue __MINGW_NAME_AW(LookupPrivilegeValue) #define LookupPrivilegeName __MINGW_NAME_AW(LookupPrivilegeName) #define LookupPrivilegeDisplayName __MINGW_NAME_AW(LookupPrivilegeDisplayName) #define BuildCommDCB __MINGW_NAME_AW(BuildCommDCB) #define BuildCommDCBAndTimeouts __MINGW_NAME_AW(BuildCommDCBAndTimeouts) #define CommConfigDialog __MINGW_NAME_AW(CommConfigDialog) #define GetDefaultCommConfig __MINGW_NAME_AW(GetDefaultCommConfig) #define SetDefaultCommConfig __MINGW_NAME_AW(SetDefaultCommConfig) #define GetComputerName __MINGW_NAME_AW(GetComputerName) #define SetComputerName __MINGW_NAME_AW(SetComputerName) #define GetComputerNameEx __MINGW_NAME_AW(GetComputerNameEx) #define SetComputerNameEx __MINGW_NAME_AW(SetComputerNameEx) #define DnsHostnameToComputerName __MINGW_NAME_AW(DnsHostnameToComputerName) #define GetUserName __MINGW_NAME_AW(GetUserName) WINBASEAPI HANDLE WINAPI FindFirstFileExA(LPCSTR lpFileName,FINDEX_INFO_LEVELS fInfoLevelId,LPVOID lpFindFileData,FINDEX_SEARCH_OPS fSearchOp,LPVOID lpSearchFilter,DWORD dwAdditionalFlags); WINBASEAPI HANDLE WINAPI FindFirstFileExW(LPCWSTR lpFileName,FINDEX_INFO_LEVELS fInfoLevelId,LPVOID lpFindFileData,FINDEX_SEARCH_OPS fSearchOp,LPVOID lpSearchFilter,DWORD dwAdditionalFlags); WINBASEAPI HANDLE WINAPI FindFirstFileA(LPCSTR lpFileName,LPWIN32_FIND_DATAA lpFindFileData); WINBASEAPI HANDLE WINAPI FindFirstFileW(LPCWSTR lpFileName,LPWIN32_FIND_DATAW lpFindFileData); WINBASEAPI WINBOOL WINAPI FindNextFileA(HANDLE hFindFile,LPWIN32_FIND_DATAA lpFindFileData); WINBASEAPI WINBOOL WINAPI FindNextFileW(HANDLE hFindFile,LPWIN32_FIND_DATAW lpFindFileData); WINBASEAPI DWORD WINAPI SearchPathA(LPCSTR lpPath,LPCSTR lpFileName,LPCSTR lpExtension,DWORD nBufferLength,LPSTR lpBuffer,LPSTR *lpFilePart); WINBASEAPI DWORD WINAPI SearchPathW(LPCWSTR lpPath,LPCWSTR lpFileName,LPCWSTR lpExtension,DWORD nBufferLength,LPWSTR lpBuffer,LPWSTR *lpFilePart); WINBASEAPI WINBOOL WINAPI CopyFileA(LPCSTR lpExistingFileName,LPCSTR lpNewFileName,WINBOOL bFailIfExists); WINBASEAPI WINBOOL WINAPI CopyFileW(LPCWSTR lpExistingFileName,LPCWSTR lpNewFileName,WINBOOL bFailIfExists); typedef DWORD (WINAPI *LPPROGRESS_ROUTINE)(LARGE_INTEGER TotalFileSize,LARGE_INTEGER TotalBytesTransferred,LARGE_INTEGER StreamSize,LARGE_INTEGER StreamBytesTransferred,DWORD dwStreamNumber,DWORD dwCallbackReason,HANDLE hSourceFile,HANDLE hDestinationFile,LPVOID lpData); WINBASEAPI WINBOOL WINAPI CopyFileExA(LPCSTR lpExistingFileName,LPCSTR lpNewFileName,LPPROGRESS_ROUTINE lpProgressRoutine,LPVOID lpData,LPBOOL pbCancel,DWORD dwCopyFlags); WINBASEAPI WINBOOL WINAPI CopyFileExW(LPCWSTR lpExistingFileName,LPCWSTR lpNewFileName,LPPROGRESS_ROUTINE lpProgressRoutine,LPVOID lpData,LPBOOL pbCancel,DWORD dwCopyFlags); WINBASEAPI WINBOOL WINAPI MoveFileA(LPCSTR lpExistingFileName,LPCSTR lpNewFileName); WINBASEAPI WINBOOL WINAPI MoveFileW(LPCWSTR lpExistingFileName,LPCWSTR lpNewFileName); WINBASEAPI WINBOOL WINAPI MoveFileExA(LPCSTR lpExistingFileName,LPCSTR lpNewFileName,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI MoveFileExW(LPCWSTR lpExistingFileName,LPCWSTR lpNewFileName,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI MoveFileWithProgressA(LPCSTR lpExistingFileName,LPCSTR lpNewFileName,LPPROGRESS_ROUTINE lpProgressRoutine,LPVOID lpData,DWORD dwFlags); WINBASEAPI WINBOOL WINAPI MoveFileWithProgressW(LPCWSTR lpExistingFileName,LPCWSTR lpNewFileName,LPPROGRESS_ROUTINE lpProgressRoutine,LPVOID lpData,DWORD dwFlags); #define MOVEFILE_REPLACE_EXISTING 0x1 #define MOVEFILE_COPY_ALLOWED 0x2 #define MOVEFILE_DELAY_UNTIL_REBOOT 0x4 #define MOVEFILE_WRITE_THROUGH 0x8 #define MOVEFILE_CREATE_HARDLINK 0x10 #define MOVEFILE_FAIL_IF_NOT_TRACKABLE 0x20 WINBASEAPI WINBOOL WINAPI ReplaceFileA(LPCSTR lpReplacedFileName,LPCSTR lpReplacementFileName,LPCSTR lpBackupFileName,DWORD dwReplaceFlags,LPVOID lpExclude,LPVOID lpReserved); WINBASEAPI WINBOOL WINAPI ReplaceFileW(LPCWSTR lpReplacedFileName,LPCWSTR lpReplacementFileName,LPCWSTR lpBackupFileName,DWORD dwReplaceFlags,LPVOID lpExclude,LPVOID lpReserved); WINBASEAPI WINBOOL WINAPI CreateHardLinkA(LPCSTR lpFileName,LPCSTR lpExistingFileName,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI CreateHardLinkW(LPCWSTR lpFileName,LPCWSTR lpExistingFileName,LPSECURITY_ATTRIBUTES lpSecurityAttributes); typedef enum _STREAM_INFO_LEVELS { FindStreamInfoStandard,FindStreamInfoMaxInfoLevel } STREAM_INFO_LEVELS; typedef struct _WIN32_FIND_STREAM_DATA { LARGE_INTEGER StreamSize; WCHAR cStreamName[MAX_PATH + 36]; } WIN32_FIND_STREAM_DATA,*PWIN32_FIND_STREAM_DATA; HANDLE WINAPI FindFirstStreamW(LPCWSTR lpFileName,STREAM_INFO_LEVELS InfoLevel,LPVOID lpFindStreamData,DWORD dwFlags); WINBOOL WINAPI FindNextStreamW(HANDLE hFindStream,LPVOID lpFindStreamData); WINBASEAPI HANDLE WINAPI CreateNamedPipeA(LPCSTR lpName,DWORD dwOpenMode,DWORD dwPipeMode,DWORD nMaxInstances,DWORD nOutBufferSize,DWORD nInBufferSize,DWORD nDefaultTimeOut,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI HANDLE WINAPI CreateNamedPipeW(LPCWSTR lpName,DWORD dwOpenMode,DWORD dwPipeMode,DWORD nMaxInstances,DWORD nOutBufferSize,DWORD nInBufferSize,DWORD nDefaultTimeOut,LPSECURITY_ATTRIBUTES lpSecurityAttributes); WINBASEAPI WINBOOL WINAPI GetNamedPipeHandleStateA(HANDLE hNamedPipe,LPDWORD lpState,LPDWORD lpCurInstances,LPDWORD lpMaxCollectionCount,LPDWORD lpCollectDataTimeout,LPSTR lpUserName,DWORD nMaxUserNameSize); WINBASEAPI WINBOOL WINAPI GetNamedPipeHandleStateW(HANDLE hNamedPipe,LPDWORD lpState,LPDWORD lpCurInstances,LPDWORD lpMaxCollectionCount,LPDWORD lpCollectDataTimeout,LPWSTR lpUserName,DWORD nMaxUserNameSize); WINBASEAPI WINBOOL WINAPI CallNamedPipeA(LPCSTR lpNamedPipeName,LPVOID lpInBuffer,DWORD nInBufferSize,LPVOID lpOutBuffer,DWORD nOutBufferSize,LPDWORD lpBytesRead,DWORD nTimeOut); WINBASEAPI WINBOOL WINAPI CallNamedPipeW(LPCWSTR lpNamedPipeName,LPVOID lpInBuffer,DWORD nInBufferSize,LPVOID lpOutBuffer,DWORD nOutBufferSize,LPDWORD lpBytesRead,DWORD nTimeOut); WINBASEAPI WINBOOL WINAPI WaitNamedPipeA(LPCSTR lpNamedPipeName,DWORD nTimeOut); WINBASEAPI WINBOOL WINAPI WaitNamedPipeW(LPCWSTR lpNamedPipeName,DWORD nTimeOut); WINBASEAPI WINBOOL WINAPI SetVolumeLabelA(LPCSTR lpRootPathName,LPCSTR lpVolumeName); WINBASEAPI WINBOOL WINAPI SetVolumeLabelW(LPCWSTR lpRootPathName,LPCWSTR lpVolumeName); WINBASEAPI VOID WINAPI SetFileApisToOEM(VOID); WINBASEAPI VOID WINAPI SetFileApisToANSI(VOID); WINBASEAPI WINBOOL WINAPI AreFileApisANSI(VOID); WINBASEAPI WINBOOL WINAPI GetVolumeInformationA(LPCSTR lpRootPathName,LPSTR lpVolumeNameBuffer,DWORD nVolumeNameSize,LPDWORD lpVolumeSerialNumber,LPDWORD lpMaximumComponentLength,LPDWORD lpFileSystemFlags,LPSTR lpFileSystemNameBuffer,DWORD nFileSystemNameSize); WINBASEAPI WINBOOL WINAPI GetVolumeInformationW(LPCWSTR lpRootPathName,LPWSTR lpVolumeNameBuffer,DWORD nVolumeNameSize,LPDWORD lpVolumeSerialNumber,LPDWORD lpMaximumComponentLength,LPDWORD lpFileSystemFlags,LPWSTR lpFileSystemNameBuffer,DWORD nFileSystemNameSize); WINBASEAPI WINBOOL WINAPI CancelIo(HANDLE hFile); WINADVAPI WINBOOL WINAPI ClearEventLogA(HANDLE hEventLog,LPCSTR lpBackupFileName); WINADVAPI WINBOOL WINAPI ClearEventLogW(HANDLE hEventLog,LPCWSTR lpBackupFileName); WINADVAPI WINBOOL WINAPI BackupEventLogA(HANDLE hEventLog,LPCSTR lpBackupFileName); WINADVAPI WINBOOL WINAPI BackupEventLogW(HANDLE hEventLog,LPCWSTR lpBackupFileName); WINADVAPI WINBOOL WINAPI CloseEventLog(HANDLE hEventLog); WINADVAPI WINBOOL WINAPI DeregisterEventSource(HANDLE hEventLog); WINADVAPI WINBOOL WINAPI NotifyChangeEventLog(HANDLE hEventLog,HANDLE hEvent); WINADVAPI WINBOOL WINAPI GetNumberOfEventLogRecords(HANDLE hEventLog,PDWORD NumberOfRecords); WINADVAPI WINBOOL WINAPI GetOldestEventLogRecord(HANDLE hEventLog,PDWORD OldestRecord); WINADVAPI HANDLE WINAPI OpenEventLogA(LPCSTR lpUNCServerName,LPCSTR lpSourceName); WINADVAPI HANDLE WINAPI OpenEventLogW(LPCWSTR lpUNCServerName,LPCWSTR lpSourceName); WINADVAPI HANDLE WINAPI RegisterEventSourceA(LPCSTR lpUNCServerName,LPCSTR lpSourceName); WINADVAPI HANDLE WINAPI RegisterEventSourceW(LPCWSTR lpUNCServerName,LPCWSTR lpSourceName); WINADVAPI HANDLE WINAPI OpenBackupEventLogA(LPCSTR lpUNCServerName,LPCSTR lpFileName); WINADVAPI HANDLE WINAPI OpenBackupEventLogW(LPCWSTR lpUNCServerName,LPCWSTR lpFileName); WINADVAPI WINBOOL WINAPI ReadEventLogA(HANDLE hEventLog,DWORD dwReadFlags,DWORD dwRecordOffset,LPVOID lpBuffer,DWORD nNumberOfBytesToRead,DWORD *pnBytesRead,DWORD *pnMinNumberOfBytesNeeded); WINADVAPI WINBOOL WINAPI ReadEventLogW(HANDLE hEventLog,DWORD dwReadFlags,DWORD dwRecordOffset,LPVOID lpBuffer,DWORD nNumberOfBytesToRead,DWORD *pnBytesRead,DWORD *pnMinNumberOfBytesNeeded); WINADVAPI WINBOOL WINAPI ReportEventA(HANDLE hEventLog,WORD wType,WORD wCategory,DWORD dwEventID,PSID lpUserSid,WORD wNumStrings,DWORD dwDataSize,LPCSTR *lpStrings,LPVOID lpRawData); WINADVAPI WINBOOL WINAPI ReportEventW(HANDLE hEventLog,WORD wType,WORD wCategory,DWORD dwEventID,PSID lpUserSid,WORD wNumStrings,DWORD dwDataSize,LPCWSTR *lpStrings,LPVOID lpRawData); #define EVENTLOG_FULL_INFO 0 typedef struct _EVENTLOG_FULL_INFORMATION { DWORD dwFull; } EVENTLOG_FULL_INFORMATION,*LPEVENTLOG_FULL_INFORMATION; WINADVAPI WINBOOL WINAPI GetEventLogInformation(HANDLE hEventLog,DWORD dwInfoLevel,LPVOID lpBuffer,DWORD cbBufSize,LPDWORD pcbBytesNeeded); WINADVAPI WINBOOL WINAPI DuplicateToken(HANDLE ExistingTokenHandle,SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,PHANDLE DuplicateTokenHandle); WINADVAPI WINBOOL WINAPI GetKernelObjectSecurity(HANDLE Handle,SECURITY_INFORMATION RequestedInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor,DWORD nLength,LPDWORD lpnLengthNeeded); WINADVAPI WINBOOL WINAPI ImpersonateNamedPipeClient(HANDLE hNamedPipe); WINADVAPI WINBOOL WINAPI ImpersonateSelf(SECURITY_IMPERSONATION_LEVEL ImpersonationLevel); WINADVAPI WINBOOL WINAPI RevertToSelf(VOID); WINADVAPI WINBOOL WINAPI SetThreadToken (PHANDLE Thread,HANDLE Token); WINADVAPI WINBOOL WINAPI AccessCheck(PSECURITY_DESCRIPTOR pSecurityDescriptor,HANDLE ClientToken,DWORD DesiredAccess,PGENERIC_MAPPING GenericMapping,PPRIVILEGE_SET PrivilegeSet,LPDWORD PrivilegeSetLength,LPDWORD GrantedAccess,LPBOOL AccessStatus); WINADVAPI WINBOOL WINAPI AccessCheckByType(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID PrincipalSelfSid,HANDLE ClientToken,DWORD DesiredAccess,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,PPRIVILEGE_SET PrivilegeSet,LPDWORD PrivilegeSetLength,LPDWORD GrantedAccess,LPBOOL AccessStatus); WINADVAPI WINBOOL WINAPI AccessCheckByTypeResultList(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID PrincipalSelfSid,HANDLE ClientToken,DWORD DesiredAccess,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,PPRIVILEGE_SET PrivilegeSet,LPDWORD PrivilegeSetLength,LPDWORD GrantedAccessList,LPDWORD AccessStatusList); WINADVAPI WINBOOL WINAPI OpenProcessToken(HANDLE ProcessHandle,DWORD DesiredAccess,PHANDLE TokenHandle); WINADVAPI WINBOOL WINAPI OpenThreadToken(HANDLE ThreadHandle,DWORD DesiredAccess,WINBOOL OpenAsSelf,PHANDLE TokenHandle); WINADVAPI WINBOOL WINAPI GetTokenInformation(HANDLE TokenHandle,TOKEN_INFORMATION_CLASS TokenInformationClass,LPVOID TokenInformation,DWORD TokenInformationLength,PDWORD ReturnLength); WINADVAPI WINBOOL WINAPI SetTokenInformation(HANDLE TokenHandle,TOKEN_INFORMATION_CLASS TokenInformationClass,LPVOID TokenInformation,DWORD TokenInformationLength); WINADVAPI WINBOOL WINAPI AdjustTokenPrivileges(HANDLE TokenHandle,WINBOOL DisableAllPrivileges,PTOKEN_PRIVILEGES NewState,DWORD BufferLength,PTOKEN_PRIVILEGES PreviousState,PDWORD ReturnLength); WINADVAPI WINBOOL WINAPI AdjustTokenGroups(HANDLE TokenHandle,WINBOOL ResetToDefault,PTOKEN_GROUPS NewState,DWORD BufferLength,PTOKEN_GROUPS PreviousState,PDWORD ReturnLength); WINADVAPI WINBOOL WINAPI PrivilegeCheck(HANDLE ClientToken,PPRIVILEGE_SET RequiredPrivileges,LPBOOL pfResult); WINADVAPI WINBOOL WINAPI AccessCheckAndAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,LPSTR ObjectTypeName,LPSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,DWORD DesiredAccess,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPBOOL AccessStatus,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckAndAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,LPWSTR ObjectTypeName,LPWSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,DWORD DesiredAccess,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPBOOL AccessStatus,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeAndAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,LPCSTR ObjectTypeName,LPCSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPBOOL AccessStatus,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeAndAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,LPCWSTR ObjectTypeName,LPCWSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPBOOL AccessStatus,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,LPCSTR ObjectTypeName,LPCSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPDWORD AccessStatusList,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,LPCWSTR ObjectTypeName,LPCWSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPDWORD AccessStatusList,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmByHandleA(LPCSTR SubsystemName,LPVOID HandleId,HANDLE ClientToken,LPCSTR ObjectTypeName,LPCSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPDWORD AccessStatusList,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI AccessCheckByTypeResultListAndAuditAlarmByHandleW(LPCWSTR SubsystemName,LPVOID HandleId,HANDLE ClientToken,LPCWSTR ObjectTypeName,LPCWSTR ObjectName,PSECURITY_DESCRIPTOR SecurityDescriptor,PSID PrincipalSelfSid,DWORD DesiredAccess,AUDIT_EVENT_TYPE AuditType,DWORD Flags,POBJECT_TYPE_LIST ObjectTypeList,DWORD ObjectTypeListLength,PGENERIC_MAPPING GenericMapping,WINBOOL ObjectCreation,LPDWORD GrantedAccess,LPDWORD AccessStatusList,LPBOOL pfGenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectOpenAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,LPSTR ObjectTypeName,LPSTR ObjectName,PSECURITY_DESCRIPTOR pSecurityDescriptor,HANDLE ClientToken,DWORD DesiredAccess,DWORD GrantedAccess,PPRIVILEGE_SET Privileges,WINBOOL ObjectCreation,WINBOOL AccessGranted,LPBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectOpenAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,LPWSTR ObjectTypeName,LPWSTR ObjectName,PSECURITY_DESCRIPTOR pSecurityDescriptor,HANDLE ClientToken,DWORD DesiredAccess,DWORD GrantedAccess,PPRIVILEGE_SET Privileges,WINBOOL ObjectCreation,WINBOOL AccessGranted,LPBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectPrivilegeAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,HANDLE ClientToken,DWORD DesiredAccess,PPRIVILEGE_SET Privileges,WINBOOL AccessGranted); WINADVAPI WINBOOL WINAPI ObjectPrivilegeAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,HANDLE ClientToken,DWORD DesiredAccess,PPRIVILEGE_SET Privileges,WINBOOL AccessGranted); WINADVAPI WINBOOL WINAPI ObjectCloseAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,WINBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectCloseAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,WINBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectDeleteAuditAlarmA(LPCSTR SubsystemName,LPVOID HandleId,WINBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI ObjectDeleteAuditAlarmW(LPCWSTR SubsystemName,LPVOID HandleId,WINBOOL GenerateOnClose); WINADVAPI WINBOOL WINAPI PrivilegedServiceAuditAlarmA(LPCSTR SubsystemName,LPCSTR ServiceName,HANDLE ClientToken,PPRIVILEGE_SET Privileges,WINBOOL AccessGranted); WINADVAPI WINBOOL WINAPI PrivilegedServiceAuditAlarmW(LPCWSTR SubsystemName,LPCWSTR ServiceName,HANDLE ClientToken,PPRIVILEGE_SET Privileges,WINBOOL AccessGranted); WINADVAPI WINBOOL WINAPI IsWellKnownSid(PSID pSid,WELL_KNOWN_SID_TYPE WellKnownSidType); WINADVAPI WINBOOL WINAPI CreateWellKnownSid(WELL_KNOWN_SID_TYPE WellKnownSidType,PSID DomainSid,PSID pSid,DWORD *cbSid); WINADVAPI WINBOOL WINAPI EqualDomainSid(PSID pSid1,PSID pSid2,WINBOOL *pfEqual); WINADVAPI WINBOOL WINAPI GetWindowsAccountDomainSid(PSID pSid,PSID pDomainSid,DWORD *cbDomainSid); WINADVAPI WINBOOL WINAPI IsValidSid(PSID pSid); WINADVAPI WINBOOL WINAPI EqualSid(PSID pSid1,PSID pSid2); WINADVAPI WINBOOL WINAPI EqualPrefixSid(PSID pSid1,PSID pSid2); WINADVAPI DWORD WINAPI GetSidLengthRequired (UCHAR nSubAuthorityCount); WINADVAPI WINBOOL WINAPI AllocateAndInitializeSid(PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,BYTE nSubAuthorityCount,DWORD nSubAuthority0,DWORD nSubAuthority1,DWORD nSubAuthority2,DWORD nSubAuthority3,DWORD nSubAuthority4,DWORD nSubAuthority5,DWORD nSubAuthority6,DWORD nSubAuthority7,PSID *pSid); WINADVAPI PVOID WINAPI FreeSid(PSID pSid); WINADVAPI WINBOOL WINAPI InitializeSid(PSID Sid,PSID_IDENTIFIER_AUTHORITY pIdentifierAuthority,BYTE nSubAuthorityCount); WINADVAPI PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority(PSID pSid); WINADVAPI PDWORD WINAPI GetSidSubAuthority(PSID pSid,DWORD nSubAuthority); WINADVAPI PUCHAR WINAPI GetSidSubAuthorityCount(PSID pSid); WINADVAPI DWORD WINAPI GetLengthSid(PSID pSid); WINADVAPI WINBOOL WINAPI CopySid(DWORD nDestinationSidLength,PSID pDestinationSid,PSID pSourceSid); WINADVAPI WINBOOL WINAPI AreAllAccessesGranted(DWORD GrantedAccess,DWORD DesiredAccess); WINADVAPI WINBOOL WINAPI AreAnyAccessesGranted(DWORD GrantedAccess,DWORD DesiredAccess); WINADVAPI VOID WINAPI MapGenericMask(PDWORD AccessMask,PGENERIC_MAPPING GenericMapping); WINADVAPI WINBOOL WINAPI IsValidAcl(PACL pAcl); WINADVAPI WINBOOL WINAPI InitializeAcl(PACL pAcl,DWORD nAclLength,DWORD dwAclRevision); WINADVAPI WINBOOL WINAPI GetAclInformation(PACL pAcl,LPVOID pAclInformation,DWORD nAclInformationLength,ACL_INFORMATION_CLASS dwAclInformationClass); WINADVAPI WINBOOL WINAPI SetAclInformation(PACL pAcl,LPVOID pAclInformation,DWORD nAclInformationLength,ACL_INFORMATION_CLASS dwAclInformationClass); WINADVAPI WINBOOL WINAPI AddAce(PACL pAcl,DWORD dwAceRevision,DWORD dwStartingAceIndex,LPVOID pAceList,DWORD nAceListLength); WINADVAPI WINBOOL WINAPI DeleteAce(PACL pAcl,DWORD dwAceIndex); WINADVAPI WINBOOL WINAPI GetAce(PACL pAcl,DWORD dwAceIndex,LPVOID *pAce); WINADVAPI WINBOOL WINAPI AddAccessAllowedAce(PACL pAcl,DWORD dwAceRevision,DWORD AccessMask,PSID pSid); WINADVAPI WINBOOL WINAPI AddAccessAllowedAceEx(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD AccessMask,PSID pSid); WINADVAPI WINBOOL WINAPI AddAccessDeniedAce(PACL pAcl,DWORD dwAceRevision,DWORD AccessMask,PSID pSid); WINADVAPI WINBOOL WINAPI AddAccessDeniedAceEx(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD AccessMask,PSID pSid); WINADVAPI WINBOOL WINAPI AddAuditAccessAce(PACL pAcl,DWORD dwAceRevision,DWORD dwAccessMask,PSID pSid,WINBOOL bAuditSuccess,WINBOOL bAuditFailure); WINADVAPI WINBOOL WINAPI AddAuditAccessAceEx(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD dwAccessMask,PSID pSid,WINBOOL bAuditSuccess,WINBOOL bAuditFailure); WINADVAPI WINBOOL WINAPI AddAccessAllowedObjectAce(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD AccessMask,GUID *ObjectTypeGuid,GUID *InheritedObjectTypeGuid,PSID pSid); WINADVAPI WINBOOL WINAPI AddAccessDeniedObjectAce(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD AccessMask,GUID *ObjectTypeGuid,GUID *InheritedObjectTypeGuid,PSID pSid); WINADVAPI WINBOOL WINAPI AddAuditAccessObjectAce(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD AccessMask,GUID *ObjectTypeGuid,GUID *InheritedObjectTypeGuid,PSID pSid,WINBOOL bAuditSuccess,WINBOOL bAuditFailure); WINADVAPI WINBOOL WINAPI FindFirstFreeAce(PACL pAcl,LPVOID *pAce); WINADVAPI WINBOOL WINAPI InitializeSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor,DWORD dwRevision); WINADVAPI WINBOOL WINAPI IsValidSecurityDescriptor(PSECURITY_DESCRIPTOR pSecurityDescriptor); WINADVAPI DWORD WINAPI GetSecurityDescriptorLength(PSECURITY_DESCRIPTOR pSecurityDescriptor); WINADVAPI WINBOOL WINAPI GetSecurityDescriptorControl(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSECURITY_DESCRIPTOR_CONTROL pControl,LPDWORD lpdwRevision); WINADVAPI WINBOOL WINAPI SetSecurityDescriptorControl(PSECURITY_DESCRIPTOR pSecurityDescriptor,SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest,SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet); WINADVAPI WINBOOL WINAPI SetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR pSecurityDescriptor,WINBOOL bDaclPresent,PACL pDacl,WINBOOL bDaclDefaulted); WINADVAPI WINBOOL WINAPI GetSecurityDescriptorDacl(PSECURITY_DESCRIPTOR pSecurityDescriptor,LPBOOL lpbDaclPresent,PACL *pDacl,LPBOOL lpbDaclDefaulted); WINADVAPI WINBOOL WINAPI SetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR pSecurityDescriptor,WINBOOL bSaclPresent,PACL pSacl,WINBOOL bSaclDefaulted); WINADVAPI WINBOOL WINAPI GetSecurityDescriptorSacl(PSECURITY_DESCRIPTOR pSecurityDescriptor,LPBOOL lpbSaclPresent,PACL *pSacl,LPBOOL lpbSaclDefaulted); WINADVAPI WINBOOL WINAPI SetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID pOwner,WINBOOL bOwnerDefaulted); WINADVAPI WINBOOL WINAPI GetSecurityDescriptorOwner(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID *pOwner,LPBOOL lpbOwnerDefaulted); WINADVAPI WINBOOL WINAPI SetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID pGroup,WINBOOL bGroupDefaulted); WINADVAPI WINBOOL WINAPI GetSecurityDescriptorGroup(PSECURITY_DESCRIPTOR pSecurityDescriptor,PSID *pGroup,LPBOOL lpbGroupDefaulted); WINADVAPI DWORD WINAPI SetSecurityDescriptorRMControl(PSECURITY_DESCRIPTOR SecurityDescriptor,PUCHAR RMControl); WINADVAPI DWORD WINAPI GetSecurityDescriptorRMControl(PSECURITY_DESCRIPTOR SecurityDescriptor,PUCHAR RMControl); WINADVAPI WINBOOL WINAPI CreatePrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,PSECURITY_DESCRIPTOR CreatorDescriptor,PSECURITY_DESCRIPTOR *NewDescriptor,WINBOOL IsDirectoryObject,HANDLE Token,PGENERIC_MAPPING GenericMapping); WINADVAPI WINBOOL WINAPI ConvertToAutoInheritPrivateObjectSecurity(PSECURITY_DESCRIPTOR ParentDescriptor,PSECURITY_DESCRIPTOR CurrentSecurityDescriptor,PSECURITY_DESCRIPTOR *NewSecurityDescriptor,GUID *ObjectType,BOOLEAN IsDirectoryObject,PGENERIC_MAPPING GenericMapping); WINADVAPI WINBOOL WINAPI CreatePrivateObjectSecurityEx(PSECURITY_DESCRIPTOR ParentDescriptor,PSECURITY_DESCRIPTOR CreatorDescriptor,PSECURITY_DESCRIPTOR *NewDescriptor,GUID *ObjectType,WINBOOL IsContainerObject,ULONG AutoInheritFlags,HANDLE Token,PGENERIC_MAPPING GenericMapping); WINADVAPI WINBOOL WINAPI CreatePrivateObjectSecurityWithMultipleInheritance(PSECURITY_DESCRIPTOR ParentDescriptor,PSECURITY_DESCRIPTOR CreatorDescriptor,PSECURITY_DESCRIPTOR *NewDescriptor,GUID **ObjectTypes,ULONG GuidCount,WINBOOL IsContainerObject,ULONG AutoInheritFlags,HANDLE Token,PGENERIC_MAPPING GenericMapping); WINADVAPI WINBOOL WINAPI SetPrivateObjectSecurity (SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR ModificationDescriptor,PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor,PGENERIC_MAPPING GenericMapping,HANDLE Token); WINADVAPI WINBOOL WINAPI SetPrivateObjectSecurityEx (SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR ModificationDescriptor,PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor,ULONG AutoInheritFlags,PGENERIC_MAPPING GenericMapping,HANDLE Token); WINADVAPI WINBOOL WINAPI GetPrivateObjectSecurity(PSECURITY_DESCRIPTOR ObjectDescriptor,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR ResultantDescriptor,DWORD DescriptorLength,PDWORD ReturnLength); WINADVAPI WINBOOL WINAPI DestroyPrivateObjectSecurity(PSECURITY_DESCRIPTOR *ObjectDescriptor); WINADVAPI WINBOOL WINAPI MakeSelfRelativeSD(PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,LPDWORD lpdwBufferLength); WINADVAPI WINBOOL WINAPI MakeAbsoluteSD(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor,LPDWORD lpdwAbsoluteSecurityDescriptorSize,PACL pDacl,LPDWORD lpdwDaclSize,PACL pSacl,LPDWORD lpdwSaclSize,PSID pOwner,LPDWORD lpdwOwnerSize,PSID pPrimaryGroup,LPDWORD lpdwPrimaryGroupSize); WINADVAPI WINBOOL WINAPI MakeAbsoluteSD2(PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor,LPDWORD lpdwBufferSize); WINADVAPI WINBOOL WINAPI SetFileSecurityA(LPCSTR lpFileName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor); WINADVAPI WINBOOL WINAPI SetFileSecurityW(LPCWSTR lpFileName,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor); WINADVAPI WINBOOL WINAPI GetFileSecurityA(LPCSTR lpFileName,SECURITY_INFORMATION RequestedInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor,DWORD nLength,LPDWORD lpnLengthNeeded); WINADVAPI WINBOOL WINAPI GetFileSecurityW(LPCWSTR lpFileName,SECURITY_INFORMATION RequestedInformation,PSECURITY_DESCRIPTOR pSecurityDescriptor,DWORD nLength,LPDWORD lpnLengthNeeded); WINADVAPI WINBOOL WINAPI SetKernelObjectSecurity(HANDLE Handle,SECURITY_INFORMATION SecurityInformation,PSECURITY_DESCRIPTOR SecurityDescriptor); WINBASEAPI HANDLE WINAPI FindFirstChangeNotificationA(LPCSTR lpPathName,WINBOOL bWatchSubtree,DWORD dwNotifyFilter); WINBASEAPI HANDLE WINAPI FindFirstChangeNotificationW(LPCWSTR lpPathName,WINBOOL bWatchSubtree,DWORD dwNotifyFilter); WINBASEAPI WINBOOL WINAPI FindNextChangeNotification(HANDLE hChangeHandle); WINBASEAPI WINBOOL WINAPI FindCloseChangeNotification(HANDLE hChangeHandle); WINBASEAPI WINBOOL WINAPI ReadDirectoryChangesW(HANDLE hDirectory,LPVOID lpBuffer,DWORD nBufferLength,WINBOOL bWatchSubtree,DWORD dwNotifyFilter,LPDWORD lpBytesReturned,LPOVERLAPPED lpOverlapped,LPOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine); WINBASEAPI WINBOOL WINAPI VirtualLock(LPVOID lpAddress,SIZE_T dwSize); WINBASEAPI WINBOOL WINAPI VirtualUnlock(LPVOID lpAddress,SIZE_T dwSize); WINBASEAPI LPVOID WINAPI MapViewOfFileEx(HANDLE hFileMappingObject,DWORD dwDesiredAccess,DWORD dwFileOffsetHigh,DWORD dwFileOffsetLow,SIZE_T dwNumberOfBytesToMap,LPVOID lpBaseAddress); WINBASEAPI WINBOOL WINAPI SetPriorityClass(HANDLE hProcess,DWORD dwPriorityClass); WINBASEAPI DWORD WINAPI GetPriorityClass(HANDLE hProcess); WINBASEAPI WINBOOL WINAPI IsBadReadPtr(CONST VOID *lp,UINT_PTR ucb); WINBASEAPI WINBOOL WINAPI IsBadWritePtr(LPVOID lp,UINT_PTR ucb); WINBASEAPI WINBOOL WINAPI IsBadHugeReadPtr(CONST VOID *lp,UINT_PTR ucb); WINBASEAPI WINBOOL WINAPI IsBadHugeWritePtr(LPVOID lp,UINT_PTR ucb); WINBASEAPI WINBOOL WINAPI IsBadCodePtr(FARPROC lpfn); WINBASEAPI WINBOOL WINAPI IsBadStringPtrA(LPCSTR lpsz,UINT_PTR ucchMax); WINBASEAPI WINBOOL WINAPI IsBadStringPtrW(LPCWSTR lpsz,UINT_PTR ucchMax); WINADVAPI WINBOOL WINAPI LookupAccountSidA(LPCSTR lpSystemName,PSID Sid,LPSTR Name,LPDWORD cchName,LPSTR ReferencedDomainName,LPDWORD cchReferencedDomainName,PSID_NAME_USE peUse); WINADVAPI WINBOOL WINAPI LookupAccountSidW(LPCWSTR lpSystemName,PSID Sid,LPWSTR Name,LPDWORD cchName,LPWSTR ReferencedDomainName,LPDWORD cchReferencedDomainName,PSID_NAME_USE peUse); WINADVAPI WINBOOL WINAPI LookupAccountNameA(LPCSTR lpSystemName,LPCSTR lpAccountName,PSID Sid,LPDWORD cbSid,LPSTR ReferencedDomainName,LPDWORD cchReferencedDomainName,PSID_NAME_USE peUse); WINADVAPI WINBOOL WINAPI LookupAccountNameW(LPCWSTR lpSystemName,LPCWSTR lpAccountName,PSID Sid,LPDWORD cbSid,LPWSTR ReferencedDomainName,LPDWORD cchReferencedDomainName,PSID_NAME_USE peUse); WINADVAPI WINBOOL WINAPI LookupPrivilegeValueA(LPCSTR lpSystemName,LPCSTR lpName,PLUID lpLuid); WINADVAPI WINBOOL WINAPI LookupPrivilegeValueW(LPCWSTR lpSystemName,LPCWSTR lpName,PLUID lpLuid); WINADVAPI WINBOOL WINAPI LookupPrivilegeNameA(LPCSTR lpSystemName,PLUID lpLuid,LPSTR lpName,LPDWORD cchName); WINADVAPI WINBOOL WINAPI LookupPrivilegeNameW(LPCWSTR lpSystemName,PLUID lpLuid,LPWSTR lpName,LPDWORD cchName); WINADVAPI WINBOOL WINAPI LookupPrivilegeDisplayNameA(LPCSTR lpSystemName,LPCSTR lpName,LPSTR lpDisplayName,LPDWORD cchDisplayName,LPDWORD lpLanguageId); WINADVAPI WINBOOL WINAPI LookupPrivilegeDisplayNameW(LPCWSTR lpSystemName,LPCWSTR lpName,LPWSTR lpDisplayName,LPDWORD cchDisplayName,LPDWORD lpLanguageId); WINADVAPI WINBOOL WINAPI AllocateLocallyUniqueId(PLUID Luid); WINBASEAPI WINBOOL WINAPI BuildCommDCBA(LPCSTR lpDef,LPDCB lpDCB); WINBASEAPI WINBOOL WINAPI BuildCommDCBW(LPCWSTR lpDef,LPDCB lpDCB); WINBASEAPI WINBOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR lpDef,LPDCB lpDCB,LPCOMMTIMEOUTS lpCommTimeouts); WINBASEAPI WINBOOL WINAPI BuildCommDCBAndTimeoutsW(LPCWSTR lpDef,LPDCB lpDCB,LPCOMMTIMEOUTS lpCommTimeouts); WINBASEAPI WINBOOL WINAPI CommConfigDialogA(LPCSTR lpszName,HWND hWnd,LPCOMMCONFIG lpCC); WINBASEAPI WINBOOL WINAPI CommConfigDialogW(LPCWSTR lpszName,HWND hWnd,LPCOMMCONFIG lpCC); WINBASEAPI WINBOOL WINAPI GetDefaultCommConfigA(LPCSTR lpszName,LPCOMMCONFIG lpCC,LPDWORD lpdwSize); WINBASEAPI WINBOOL WINAPI GetDefaultCommConfigW(LPCWSTR lpszName,LPCOMMCONFIG lpCC,LPDWORD lpdwSize); WINBASEAPI WINBOOL WINAPI SetDefaultCommConfigA(LPCSTR lpszName,LPCOMMCONFIG lpCC,DWORD dwSize); WINBASEAPI WINBOOL WINAPI SetDefaultCommConfigW(LPCWSTR lpszName,LPCOMMCONFIG lpCC,DWORD dwSize); #define MAX_COMPUTERNAME_LENGTH 15 WINBASEAPI WINBOOL WINAPI GetComputerNameA(LPSTR lpBuffer,LPDWORD nSize); WINBASEAPI WINBOOL WINAPI GetComputerNameW(LPWSTR lpBuffer,LPDWORD nSize); WINBASEAPI WINBOOL WINAPI SetComputerNameA(LPCSTR lpComputerName); WINBASEAPI WINBOOL WINAPI SetComputerNameW(LPCWSTR lpComputerName); typedef enum _COMPUTER_NAME_FORMAT { ComputerNameNetBIOS,ComputerNameDnsHostname,ComputerNameDnsDomain,ComputerNameDnsFullyQualified,ComputerNamePhysicalNetBIOS,ComputerNamePhysicalDnsHostname,ComputerNamePhysicalDnsDomain,ComputerNamePhysicalDnsFullyQualified,ComputerNameMax } COMPUTER_NAME_FORMAT; WINBASEAPI WINBOOL WINAPI GetComputerNameExA(COMPUTER_NAME_FORMAT NameType,LPSTR lpBuffer,LPDWORD nSize); WINBASEAPI WINBOOL WINAPI GetComputerNameExW(COMPUTER_NAME_FORMAT NameType,LPWSTR lpBuffer,LPDWORD nSize); WINBASEAPI WINBOOL WINAPI SetComputerNameExA(COMPUTER_NAME_FORMAT NameType,LPCSTR lpBuffer); WINBASEAPI WINBOOL WINAPI SetComputerNameExW(COMPUTER_NAME_FORMAT NameType,LPCWSTR lpBuffer); WINBASEAPI WINBOOL WINAPI DnsHostnameToComputerNameA(LPCSTR Hostname,LPSTR ComputerName,LPDWORD nSize); WINBASEAPI WINBOOL WINAPI DnsHostnameToComputerNameW(LPCWSTR Hostname,LPWSTR ComputerName,LPDWORD nSize); WINADVAPI WINBOOL WINAPI GetUserNameA(LPSTR lpBuffer,LPDWORD pcbBuffer); WINADVAPI WINBOOL WINAPI GetUserNameW(LPWSTR lpBuffer,LPDWORD pcbBuffer); #define LOGON32_LOGON_INTERACTIVE 2 #define LOGON32_LOGON_NETWORK 3 #define LOGON32_LOGON_BATCH 4 #define LOGON32_LOGON_SERVICE 5 #define LOGON32_LOGON_UNLOCK 7 #define LOGON32_LOGON_NETWORK_CLEARTEXT 8 #define LOGON32_LOGON_NEW_CREDENTIALS 9 #define LOGON32_PROVIDER_DEFAULT 0 #define LOGON32_PROVIDER_WINNT35 1 #define LOGON32_PROVIDER_WINNT40 2 #define LOGON32_PROVIDER_WINNT50 3 #define LogonUser __MINGW_NAME_AW(LogonUser) #define LogonUserEx __MINGW_NAME_AW(LogonUserEx) #define CreateProcessAsUser __MINGW_NAME_AW(CreateProcessAsUser) WINADVAPI WINBOOL WINAPI LogonUserA(LPCSTR lpszUsername,LPCSTR lpszDomain,LPCSTR lpszPassword,DWORD dwLogonType,DWORD dwLogonProvider,PHANDLE phToken); WINADVAPI WINBOOL WINAPI LogonUserW(LPCWSTR lpszUsername,LPCWSTR lpszDomain,LPCWSTR lpszPassword,DWORD dwLogonType,DWORD dwLogonProvider,PHANDLE phToken); WINADVAPI WINBOOL WINAPI LogonUserExA(LPCSTR lpszUsername,LPCSTR lpszDomain,LPCSTR lpszPassword,DWORD dwLogonType,DWORD dwLogonProvider,PHANDLE phToken,PSID *ppLogonSid,PVOID *ppProfileBuffer,LPDWORD pdwProfileLength,PQUOTA_LIMITS pQuotaLimits); WINADVAPI WINBOOL WINAPI LogonUserExW(LPCWSTR lpszUsername,LPCWSTR lpszDomain,LPCWSTR lpszPassword,DWORD dwLogonType,DWORD dwLogonProvider,PHANDLE phToken,PSID *ppLogonSid,PVOID *ppProfileBuffer,LPDWORD pdwProfileLength,PQUOTA_LIMITS pQuotaLimits); WINADVAPI WINBOOL WINAPI ImpersonateLoggedOnUser(HANDLE hToken); WINADVAPI WINBOOL WINAPI CreateProcessAsUserA(HANDLE hToken,LPCSTR lpApplicationName,LPSTR lpCommandLine,LPSECURITY_ATTRIBUTES lpProcessAttributes,LPSECURITY_ATTRIBUTES lpThreadAttributes,WINBOOL bInheritHandles,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCSTR lpCurrentDirectory,LPSTARTUPINFOA lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); WINADVAPI WINBOOL WINAPI CreateProcessAsUserW(HANDLE hToken,LPCWSTR lpApplicationName,LPWSTR lpCommandLine,LPSECURITY_ATTRIBUTES lpProcessAttributes,LPSECURITY_ATTRIBUTES lpThreadAttributes,WINBOOL bInheritHandles,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCWSTR lpCurrentDirectory,LPSTARTUPINFOW lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); #define LOGON_WITH_PROFILE 0x00000001 #define LOGON_NETCREDENTIALS_ONLY 0x00000002 #define LOGON_ZERO_PASSWORD_BUFFER 0x80000000 WINADVAPI WINBOOL WINAPI CreateProcessWithLogonW(LPCWSTR lpUsername,LPCWSTR lpDomain,LPCWSTR lpPassword,DWORD dwLogonFlags,LPCWSTR lpApplicationName,LPWSTR lpCommandLine,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCWSTR lpCurrentDirectory,LPSTARTUPINFOW lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); WINADVAPI WINBOOL WINAPI CreateProcessWithTokenW(HANDLE hToken,DWORD dwLogonFlags,LPCWSTR lpApplicationName,LPWSTR lpCommandLine,DWORD dwCreationFlags,LPVOID lpEnvironment,LPCWSTR lpCurrentDirectory,LPSTARTUPINFOW lpStartupInfo,LPPROCESS_INFORMATION lpProcessInformation); WINADVAPI WINBOOL WINAPI ImpersonateAnonymousToken(HANDLE ThreadHandle); WINADVAPI WINBOOL WINAPI DuplicateTokenEx(HANDLE hExistingToken,DWORD dwDesiredAccess,LPSECURITY_ATTRIBUTES lpTokenAttributes,SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,TOKEN_TYPE TokenType,PHANDLE phNewToken); WINADVAPI WINBOOL WINAPI CreateRestrictedToken(HANDLE ExistingTokenHandle,DWORD Flags,DWORD DisableSidCount,PSID_AND_ATTRIBUTES SidsToDisable,DWORD DeletePrivilegeCount,PLUID_AND_ATTRIBUTES PrivilegesToDelete,DWORD RestrictedSidCount,PSID_AND_ATTRIBUTES SidsToRestrict,PHANDLE NewTokenHandle); WINADVAPI WINBOOL WINAPI IsTokenRestricted(HANDLE TokenHandle); WINADVAPI WINBOOL WINAPI IsTokenUntrusted(HANDLE TokenHandle); WINADVAPI WINBOOL WINAPI CheckTokenMembership(HANDLE TokenHandle,PSID SidToCheck,PBOOL IsMember); typedef WAITORTIMERCALLBACKFUNC WAITORTIMERCALLBACK; WINBASEAPI WINBOOL WINAPI RegisterWaitForSingleObject(PHANDLE phNewWaitObject,HANDLE hObject,WAITORTIMERCALLBACK Callback,PVOID Context,ULONG dwMilliseconds,ULONG dwFlags); WINBASEAPI HANDLE WINAPI RegisterWaitForSingleObjectEx(HANDLE hObject,WAITORTIMERCALLBACK Callback,PVOID Context,ULONG dwMilliseconds,ULONG dwFlags); WINBASEAPI WINBOOL WINAPI UnregisterWait(HANDLE WaitHandle); WINBASEAPI WINBOOL WINAPI UnregisterWaitEx(HANDLE WaitHandle,HANDLE CompletionEvent); WINBASEAPI WINBOOL WINAPI QueueUserWorkItem(LPTHREAD_START_ROUTINE Function,PVOID Context,ULONG Flags); WINBASEAPI WINBOOL WINAPI BindIoCompletionCallback(HANDLE FileHandle,LPOVERLAPPED_COMPLETION_ROUTINE Function,ULONG Flags); WINBASEAPI HANDLE WINAPI CreateTimerQueue(VOID); WINBASEAPI WINBOOL WINAPI CreateTimerQueueTimer(PHANDLE phNewTimer,HANDLE TimerQueue,WAITORTIMERCALLBACK Callback,PVOID Parameter,DWORD DueTime,DWORD Period,ULONG Flags); WINBASEAPI WINBOOL WINAPI ChangeTimerQueueTimer(HANDLE TimerQueue,HANDLE Timer,ULONG DueTime,ULONG Period); WINBASEAPI WINBOOL WINAPI DeleteTimerQueueTimer(HANDLE TimerQueue,HANDLE Timer,HANDLE CompletionEvent); WINBASEAPI WINBOOL WINAPI DeleteTimerQueueEx(HANDLE TimerQueue,HANDLE CompletionEvent); WINBASEAPI HANDLE WINAPI SetTimerQueueTimer(HANDLE TimerQueue,WAITORTIMERCALLBACK Callback,PVOID Parameter,DWORD DueTime,DWORD Period,WINBOOL PreferIo); WINBASEAPI WINBOOL WINAPI CancelTimerQueueTimer(HANDLE TimerQueue,HANDLE Timer); WINBASEAPI WINBOOL WINAPI DeleteTimerQueue(HANDLE TimerQueue); #define HW_PROFILE_GUIDLEN 39 #define MAX_PROFILE_LEN 80 #define DOCKINFO_UNDOCKED (0x1) #define DOCKINFO_DOCKED (0x2) #define DOCKINFO_USER_SUPPLIED (0x4) #define DOCKINFO_USER_UNDOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_UNDOCKED) #define DOCKINFO_USER_DOCKED (DOCKINFO_USER_SUPPLIED | DOCKINFO_DOCKED) typedef struct tagHW_PROFILE_INFOA { DWORD dwDockInfo; CHAR szHwProfileGuid[HW_PROFILE_GUIDLEN]; CHAR szHwProfileName[MAX_PROFILE_LEN]; } HW_PROFILE_INFOA,*LPHW_PROFILE_INFOA; typedef struct tagHW_PROFILE_INFOW { DWORD dwDockInfo; WCHAR szHwProfileGuid[HW_PROFILE_GUIDLEN]; WCHAR szHwProfileName[MAX_PROFILE_LEN]; } HW_PROFILE_INFOW,*LPHW_PROFILE_INFOW; __MINGW_TYPEDEF_AW(HW_PROFILE_INFO) __MINGW_TYPEDEF_AW(LPHW_PROFILE_INFO) #define GetCurrentHwProfile __MINGW_NAME_AW(GetCurrentHwProfile) #define GetVersionEx __MINGW_NAME_AW(GetVersionEx) #define VerifyVersionInfo __MINGW_NAME_AW(VerifyVersionInfo) WINADVAPI WINBOOL WINAPI GetCurrentHwProfileA (LPHW_PROFILE_INFOA lpHwProfileInfo); WINADVAPI WINBOOL WINAPI GetCurrentHwProfileW (LPHW_PROFILE_INFOW lpHwProfileInfo); WINBASEAPI WINBOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount); WINBASEAPI WINBOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency); WINBASEAPI WINBOOL WINAPI GetVersionExA(LPOSVERSIONINFOA lpVersionInformation); WINBASEAPI WINBOOL WINAPI GetVersionExW(LPOSVERSIONINFOW lpVersionInformation); WINBASEAPI WINBOOL WINAPI VerifyVersionInfoA(LPOSVERSIONINFOEXA lpVersionInformation,DWORD dwTypeMask,DWORDLONG dwlConditionMask); WINBASEAPI WINBOOL WINAPI VerifyVersionInfoW(LPOSVERSIONINFOEXW lpVersionInformation,DWORD dwTypeMask,DWORDLONG dwlConditionMask); #include <winerror.h> #define TC_NORMAL 0 #define TC_HARDERR 1 #define TC_GP_TRAP 2 #define TC_SIGNAL 3 #define AC_LINE_OFFLINE 0x0 #define AC_LINE_ONLINE 0x1 #define AC_LINE_BACKUP_POWER 0x2 #define AC_LINE_UNKNOWN 0xff #define BATTERY_FLAG_HIGH 0x1 #define BATTERY_FLAG_LOW 0x2 #define BATTERY_FLAG_CRITICAL 0x4 #define BATTERY_FLAG_CHARGING 0x8 #define BATTERY_FLAG_NO_BATTERY 0x80 #define BATTERY_FLAG_UNKNOWN 0xff #define BATTERY_PERCENTAGE_UNKNOWN 0xff #define BATTERY_LIFE_UNKNOWN 0xffffffff typedef struct _SYSTEM_POWER_STATUS { BYTE ACLineStatus; BYTE BatteryFlag; BYTE BatteryLifePercent; BYTE Reserved1; DWORD BatteryLifeTime; DWORD BatteryFullLifeTime; } SYSTEM_POWER_STATUS,*LPSYSTEM_POWER_STATUS; #define CreateJobObject __MINGW_NAME_AW(CreateJobObject) #define OpenJobObject __MINGW_NAME_AW(OpenJobObject) #define FindFirstVolume __MINGW_NAME_AW(FindFirstVolume) #define FindNextVolume __MINGW_NAME_AW(FindNextVolume) #define FindFirstVolumeMountPoint __MINGW_NAME_AW(FindFirstVolumeMountPoint) #define FindNextVolumeMountPoint __MINGW_NAME_AW(FindNextVolumeMountPoint) #define SetVolumeMountPoint __MINGW_NAME_AW(SetVolumeMountPoint) #define DeleteVolumeMountPoint __MINGW_NAME_AW(DeleteVolumeMountPoint) #define GetVolumeNameForVolumeMountPoint __MINGW_NAME_AW(GetVolumeNameForVolumeMountPoint) #define GetVolumePathName __MINGW_NAME_AW(GetVolumePathName) #define GetVolumePathNamesForVolumeName __MINGW_NAME_AW(GetVolumePathNamesForVolumeName) WINBOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS lpSystemPowerStatus); WINBOOL WINAPI SetSystemPowerState(WINBOOL fSuspend,WINBOOL fForce); WINBASEAPI WINBOOL WINAPI AllocateUserPhysicalPages(HANDLE hProcess,PULONG_PTR NumberOfPages,PULONG_PTR PageArray); WINBASEAPI WINBOOL WINAPI FreeUserPhysicalPages(HANDLE hProcess,PULONG_PTR NumberOfPages,PULONG_PTR PageArray); WINBASEAPI WINBOOL WINAPI MapUserPhysicalPages(PVOID VirtualAddress,ULONG_PTR NumberOfPages,PULONG_PTR PageArray); WINBASEAPI WINBOOL WINAPI MapUserPhysicalPagesScatter(PVOID *VirtualAddresses,ULONG_PTR NumberOfPages,PULONG_PTR PageArray); WINBASEAPI HANDLE WINAPI CreateJobObjectA(LPSECURITY_ATTRIBUTES lpJobAttributes,LPCSTR lpName); WINBASEAPI HANDLE WINAPI CreateJobObjectW(LPSECURITY_ATTRIBUTES lpJobAttributes,LPCWSTR lpName); WINBASEAPI HANDLE WINAPI OpenJobObjectA(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCSTR lpName); WINBASEAPI HANDLE WINAPI OpenJobObjectW(DWORD dwDesiredAccess,WINBOOL bInheritHandle,LPCWSTR lpName); WINBASEAPI WINBOOL WINAPI AssignProcessToJobObject(HANDLE hJob,HANDLE hProcess); WINBASEAPI WINBOOL WINAPI TerminateJobObject(HANDLE hJob,UINT uExitCode); WINBASEAPI WINBOOL WINAPI QueryInformationJobObject(HANDLE hJob,JOBOBJECTINFOCLASS JobObjectInformationClass,LPVOID lpJobObjectInformation,DWORD cbJobObjectInformationLength,LPDWORD lpReturnLength); WINBASEAPI WINBOOL WINAPI SetInformationJobObject(HANDLE hJob,JOBOBJECTINFOCLASS JobObjectInformationClass,LPVOID lpJobObjectInformation,DWORD cbJobObjectInformationLength); WINBASEAPI WINBOOL WINAPI IsProcessInJob(HANDLE ProcessHandle,HANDLE JobHandle,PBOOL Result); WINBASEAPI WINBOOL WINAPI CreateJobSet(ULONG NumJob,PJOB_SET_ARRAY UserJobSet,ULONG Flags); WINBASEAPI PVOID WINAPI AddVectoredExceptionHandler (ULONG First,PVECTORED_EXCEPTION_HANDLER Handler); WINBASEAPI ULONG WINAPI RemoveVectoredExceptionHandler(PVOID Handle); WINBASEAPI PVOID WINAPI AddVectoredContinueHandler (ULONG First,PVECTORED_EXCEPTION_HANDLER Handler); WINBASEAPI ULONG WINAPI RemoveVectoredContinueHandler(PVOID Handle); WINBASEAPI HANDLE WINAPI FindFirstVolumeA(LPSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI HANDLE WINAPI FindFirstVolumeW(LPWSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindNextVolumeA(HANDLE hFindVolume,LPSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindNextVolumeW(HANDLE hFindVolume,LPWSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindVolumeClose(HANDLE hFindVolume); WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointA(LPCSTR lpszRootPathName,LPSTR lpszVolumeMountPoint,DWORD cchBufferLength); WINBASEAPI HANDLE WINAPI FindFirstVolumeMountPointW(LPCWSTR lpszRootPathName,LPWSTR lpszVolumeMountPoint,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindNextVolumeMountPointA(HANDLE hFindVolumeMountPoint,LPSTR lpszVolumeMountPoint,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindNextVolumeMountPointW(HANDLE hFindVolumeMountPoint,LPWSTR lpszVolumeMountPoint,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI FindVolumeMountPointClose(HANDLE hFindVolumeMountPoint); WINBASEAPI WINBOOL WINAPI SetVolumeMountPointA(LPCSTR lpszVolumeMountPoint,LPCSTR lpszVolumeName); WINBASEAPI WINBOOL WINAPI SetVolumeMountPointW(LPCWSTR lpszVolumeMountPoint,LPCWSTR lpszVolumeName); WINBASEAPI WINBOOL WINAPI DeleteVolumeMountPointA(LPCSTR lpszVolumeMountPoint); WINBASEAPI WINBOOL WINAPI DeleteVolumeMountPointW(LPCWSTR lpszVolumeMountPoint); WINBASEAPI WINBOOL WINAPI GetVolumeNameForVolumeMountPointA(LPCSTR lpszVolumeMountPoint,LPSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI GetVolumeNameForVolumeMountPointW(LPCWSTR lpszVolumeMountPoint,LPWSTR lpszVolumeName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI GetVolumePathNameA(LPCSTR lpszFileName,LPSTR lpszVolumePathName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI GetVolumePathNameW(LPCWSTR lpszFileName,LPWSTR lpszVolumePathName,DWORD cchBufferLength); WINBASEAPI WINBOOL WINAPI GetVolumePathNamesForVolumeNameA(LPCSTR lpszVolumeName,LPCH lpszVolumePathNames,DWORD cchBufferLength,PDWORD lpcchReturnLength); WINBASEAPI WINBOOL WINAPI GetVolumePathNamesForVolumeNameW(LPCWSTR lpszVolumeName,LPWCH lpszVolumePathNames,DWORD cchBufferLength,PDWORD lpcchReturnLength); #define ACTCTX_FLAG_PROCESSOR_ARCHITECTURE_VALID 0x1 #define ACTCTX_FLAG_LANGID_VALID 0x2 #define ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID 0x4 #define ACTCTX_FLAG_RESOURCE_NAME_VALID 0x8 #define ACTCTX_FLAG_SET_PROCESS_DEFAULT 0x10 #define ACTCTX_FLAG_APPLICATION_NAME_VALID 0x20 #define ACTCTX_FLAG_SOURCE_IS_ASSEMBLYREF 0x40 #define ACTCTX_FLAG_HMODULE_VALID 0x80 typedef struct tagACTCTXA { ULONG cbSize; DWORD dwFlags; LPCSTR lpSource; USHORT wProcessorArchitecture; LANGID wLangId; LPCSTR lpAssemblyDirectory; LPCSTR lpResourceName; LPCSTR lpApplicationName; HMODULE hModule; } ACTCTXA,*PACTCTXA; typedef struct tagACTCTXW { ULONG cbSize; DWORD dwFlags; LPCWSTR lpSource; USHORT wProcessorArchitecture; LANGID wLangId; LPCWSTR lpAssemblyDirectory; LPCWSTR lpResourceName; LPCWSTR lpApplicationName; HMODULE hModule; } ACTCTXW,*PACTCTXW; typedef const ACTCTXA *PCACTCTXA; typedef const ACTCTXW *PCACTCTXW; __MINGW_TYPEDEF_AW(ACTCTX) __MINGW_TYPEDEF_AW(PACTCTX) __MINGW_TYPEDEF_AW(PCACTCTX) #define CreateActCtx __MINGW_NAME_AW(CreateActCtx) WINBASEAPI HANDLE WINAPI CreateActCtxA(PCACTCTXA pActCtx); WINBASEAPI HANDLE WINAPI CreateActCtxW(PCACTCTXW pActCtx); WINBASEAPI VOID WINAPI AddRefActCtx(HANDLE hActCtx); WINBASEAPI VOID WINAPI ReleaseActCtx(HANDLE hActCtx); WINBASEAPI WINBOOL WINAPI ZombifyActCtx(HANDLE hActCtx); WINBASEAPI WINBOOL WINAPI ActivateActCtx(HANDLE hActCtx,ULONG_PTR *lpCookie); #define DEACTIVATE_ACTCTX_FLAG_FORCE_EARLY_DEACTIVATION (0x1) WINBASEAPI WINBOOL WINAPI DeactivateActCtx(DWORD dwFlags,ULONG_PTR ulCookie); WINBASEAPI WINBOOL WINAPI GetCurrentActCtx(HANDLE *lphActCtx); typedef struct tagACTCTX_SECTION_KEYED_DATA_2600 { ULONG cbSize; ULONG ulDataFormatVersion; PVOID lpData; ULONG ulLength; PVOID lpSectionGlobalData; ULONG ulSectionGlobalDataLength; PVOID lpSectionBase; ULONG ulSectionTotalLength; HANDLE hActCtx; ULONG ulAssemblyRosterIndex; } ACTCTX_SECTION_KEYED_DATA_2600,*PACTCTX_SECTION_KEYED_DATA_2600; typedef const ACTCTX_SECTION_KEYED_DATA_2600 *PCACTCTX_SECTION_KEYED_DATA_2600; typedef struct tagACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA { PVOID lpInformation; PVOID lpSectionBase; ULONG ulSectionLength; PVOID lpSectionGlobalDataBase; ULONG ulSectionGlobalDataLength; } ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA,*PACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; typedef const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA *PCACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; typedef struct tagACTCTX_SECTION_KEYED_DATA { ULONG cbSize; ULONG ulDataFormatVersion; PVOID lpData; ULONG ulLength; PVOID lpSectionGlobalData; ULONG ulSectionGlobalDataLength; PVOID lpSectionBase; ULONG ulSectionTotalLength; HANDLE hActCtx; ULONG ulAssemblyRosterIndex; ULONG ulFlags; ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA AssemblyMetadata; } ACTCTX_SECTION_KEYED_DATA,*PACTCTX_SECTION_KEYED_DATA; typedef const ACTCTX_SECTION_KEYED_DATA *PCACTCTX_SECTION_KEYED_DATA; #define FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX 0x1 #define FIND_ACTCTX_SECTION_KEY_RETURN_FLAGS 0x2 #define FIND_ACTCTX_SECTION_KEY_RETURN_ASSEMBLY_METADATA 0x4 #define FindActCtxSectionString __MINGW_NAME_AW(FindActCtxSectionString) WINBASEAPI WINBOOL WINAPI FindActCtxSectionStringA(DWORD dwFlags,const GUID *lpExtensionGuid,ULONG ulSectionId,LPCSTR lpStringToFind,PACTCTX_SECTION_KEYED_DATA ReturnedData); WINBASEAPI WINBOOL WINAPI FindActCtxSectionStringW(DWORD dwFlags,const GUID *lpExtensionGuid,ULONG ulSectionId,LPCWSTR lpStringToFind,PACTCTX_SECTION_KEYED_DATA ReturnedData); WINBASEAPI WINBOOL WINAPI FindActCtxSectionGuid(DWORD dwFlags,const GUID *lpExtensionGuid,ULONG ulSectionId,const GUID *lpGuidToFind,PACTCTX_SECTION_KEYED_DATA ReturnedData); #ifndef RC_INVOKED #ifndef ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED typedef struct _ACTIVATION_CONTEXT_BASIC_INFORMATION { HANDLE hActCtx; DWORD dwFlags; } ACTIVATION_CONTEXT_BASIC_INFORMATION,*PACTIVATION_CONTEXT_BASIC_INFORMATION; typedef const struct _ACTIVATION_CONTEXT_BASIC_INFORMATION *PCACTIVATION_CONTEXT_BASIC_INFORMATION; #define ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED 1 #endif #endif #define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX 0x4 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE 0x8 #define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS 0x10 #define QUERY_ACTCTX_FLAG_NO_ADDREF 0x80000000 WINBASEAPI WINBOOL WINAPI QueryActCtxW(DWORD dwFlags,HANDLE hActCtx,PVOID pvSubInstance,ULONG ulInfoClass,PVOID pvBuffer,SIZE_T cbBuffer,SIZE_T *pcbWrittenOrRequired); typedef WINBOOL (WINAPI *PQUERYACTCTXW_FUNC)(DWORD dwFlags,HANDLE hActCtx,PVOID pvSubInstance,ULONG ulInfoClass,PVOID pvBuffer,SIZE_T cbBuffer,SIZE_T *pcbWrittenOrRequired); WINBASEAPI WINBOOL WINAPI ProcessIdToSessionId(DWORD dwProcessId,DWORD *pSessionId); WINBASEAPI DWORD WINAPI WTSGetActiveConsoleSessionId(); WINBASEAPI WINBOOL WINAPI IsWow64Process(HANDLE hProcess,PBOOL Wow64Process); WINBASEAPI WINBOOL WINAPI GetLogicalProcessorInformation(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION Buffer,PDWORD ReturnedLength); WINBASEAPI WINBOOL WINAPI GetNumaHighestNodeNumber(PULONG HighestNodeNumber); WINBASEAPI WINBOOL WINAPI GetNumaProcessorNode(UCHAR Processor,PUCHAR NodeNumber); WINBASEAPI WINBOOL WINAPI GetNumaNodeProcessorMask(UCHAR Node,PULONGLONG ProcessorMask); WINBASEAPI WINBOOL WINAPI GetNumaAvailableMemoryNode(UCHAR Node,PULONGLONG AvailableBytes); /* New Windows Vista API. */ #if (_WIN32_WINNT >= 0x0600) #define SYMBOLIC_LINK_FLAG_FILE 0x0 #define SYMBOLIC_LINK_FLAG_DIRECTORY 0x1 #define EXTENDED_STARTUPINFO_PRESENT 0x00080000 #define CreateSymbolicLink __MINGW_NAME_AW(CreateSymbolicLink) #define CreateBoundaryDescriptor __MINGW_NAME_AW(CreateBoundaryDescriptor) #define OpenPrivateNamespace __MINGW_NAME_AW(OpenPrivateNamespace) #define CreatePrivateNamespace __MINGW_NAME_AW(CreatePrivateNamespace) #define CopyFileTransacted __MINGW_NAME_AW(CopyFileTransacted) #define CreateDirectoryTransacted __MINGW_NAME_AW(CreateDirectoryTransacted) #define CreateEventEx __MINGW_NAME_AW(CreateEventEx) #define CreateFileMappingNuma __MINGW_NAME_AW(CreateFileMappingNuma) #define CreateFileTransacted __MINGW_NAME_AW(CreateFileTransacted) #define CreateHardLinkTransacted __MINGW_NAME_AW(CreateHardLinkTransacted) #define DeleteFileTransacted __MINGW_NAME_AW(DeleteFileTransacted) #define CreateMutexEx __MINGW_NAME_AW(CreateMutexEx) #define CreateSemaphoreEx __MINGW_NAME_AW(CreateSemaphoreEx) #define CreateSymbolicLinkTransacted __MINGW_NAME_AW(CreateSymbolicLinkTransacted) #define CreateWaitableTimerEx __MINGW_NAME_AW(CreateWaitableTimerEx) #define FindFirstFileTransacted __MINGW_NAME_AW(FindFirstFileTransacted) WINBASEAPI BOOLEAN WINAPI CreateSymbolicLinkA (LPSTR lpSymLinkFileName, LPSTR lpTargetFileName, DWORD dwFlags); WINBASEAPI BOOLEAN WINAPI CreateSymbolicLinkW (LPWSTR lpSymLinkFileName, LPWSTR lpTargetFileName, DWORD dwFlags); /* Condition Variables http://msdn.microsoft.com/en-us/library/ms682052%28VS.85%29.aspx */ /* FIXME: These need their data types actually fixed in winnt.h !!! */ typedef RTL_CONDITION_VARIABLE CONDITION_VARIABLE, *PCONDITION_VARIABLE; typedef RTL_SRWLOCK SRWLOCK, *PSRWLOCK; WINBASEAPI VOID WINAPI InitializeConditionVariable(PCONDITION_VARIABLE ConditionVariable); WINBASEAPI WINBOOL WINAPI SleepConditionVariableCS(PCONDITION_VARIABLE ConditionVariable, PCRITICAL_SECTION CriticalSection, DWORD dwMilliseconds); WINBASEAPI WINBOOL WINAPI SleepConditionVariableSRW(PCONDITION_VARIABLE ConditionVariable, PSRWLOCK SRWLock, DWORD dwMilliseconds, ULONG Flags); WINBASEAPI VOID WINAPI WakeAllConditionVariable(PCONDITION_VARIABLE ConditionVariable); WINBASEAPI VOID WINAPI WakeConditionVariable(PCONDITION_VARIABLE ConditionVariable); /*Slim Reader/Writer (SRW) Locks http://msdn.microsoft.com/en-us/library/aa904937%28VS.85%29.aspx*/ /* FIXME: See above !!! */ WINBASEAPI VOID WINAPI AcquireSRWLockExclusive(PSRWLOCK SRWLock); WINBASEAPI VOID WINAPI AcquireSRWLockShared(PSRWLOCK SRWLock); WINBASEAPI VOID WINAPI InitializeSRWLock(PSRWLOCK SRWLock); WINBASEAPI VOID WINAPI ReleaseSRWLockExclusive(PSRWLOCK SRWLock); WINBASEAPI VOID WINAPI ReleaseSRWLockShared(PSRWLOCK SRWLock); WINBASEAPI BOOLEAN TryAcquireSRWLockExclusive(PSRWLOCK SRWLock); WINBASEAPI BOOLEAN TryAcquireSRWLockShared(PSRWLOCK SRWLock); /*One-Time Initialization http://msdn.microsoft.com/en-us/library/aa363808(VS.85).aspx*/ /* FIXME: See above !!! */ #define INIT_ONCE_ASYNC 0x00000002UL #define INIT_ONCE_INIT_FAILED 0x00000004UL typedef PRTL_RUN_ONCE PINIT_ONCE; typedef PRTL_RUN_ONCE LPINIT_ONCE; typedef WINBOOL CALLBACK (*PINIT_ONCE_FN) (PINIT_ONCE InitOnce, PVOID Parameter, PVOID *Context); WINBASEAPI WINBOOL WINAPI InitOnceBeginInitialize(LPINIT_ONCE lpInitOnce, DWORD dwFlags, PBOOL fPending, LPVOID *lpContext); WINBASEAPI WINBOOL WINAPI InitOnceComplete(LPINIT_ONCE lpInitOnce, DWORD dwFlags, LPVOID lpContext); WINBASEAPI WINBOOL WINAPI InitOnceExecuteOnce(PINIT_ONCE InitOnce, PINIT_ONCE_FN InitFn, PVOID Parameter, LPVOID *Context); WINBASEAPI WINBOOL WINAPI AddMandatoryAce(PACL pAcl,DWORD dwAceRevision,DWORD AceFlags,DWORD MandatoryPolicy,PSID pLabelSid); WINBASEAPI WINBOOL WINAPI AddSIDToBoundaryDescriptor(HANDLE *BoundaryDescriptor,PSID RequiredSid); WINBASEAPI HANDLE WINAPI CreateBoundaryDescriptorA(LPCSTR Name,ULONG Flags); WINBASEAPI HANDLE WINAPI CreateBoundaryDescriptorW(LPCWSTR Name,ULONG Flags); WINBASEAPI BOOLEAN WINAPI ClosePrivateNamespace(HANDLE Handle,ULONG Flags); WINBASEAPI HANDLE WINAPI OpenPrivateNamespaceA(LPVOID lpBoundaryDescriptor,LPCSTR lpAliasPrefix); WINBASEAPI HANDLE WINAPI OpenPrivateNamespaceW(LPVOID lpBoundaryDescriptor,LPCWSTR lpAliasPrefix); WINBASEAPI VOID WINAPI DeleteBoundaryDescriptor(HANDLE BoundaryDescriptor); WINBASEAPI HANDLE WINAPI CreatePrivateNamespaceA(LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes,LPVOID lpBoundaryDescriptor,LPCSTR lpAliasPrefix); WINBASEAPI HANDLE WINAPI CreatePrivateNamespaceW(LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes,LPVOID lpBoundaryDescriptor,LPCWSTR lpAliasPrefix); typedef BOOLEAN CALLBACK (*PSECURE_MEMORY_CACHE_CALLBACK) (PVOID Addr,SIZE_T Range); WINBASEAPI WINBOOL WINAPI AddSecureMemoryCacheCallback(PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack); WINBASEAPI WINBOOL WINAPI RemoveSecureMemoryCacheCallback(PSECURE_MEMORY_CACHE_CALLBACK pfnCallBack); WINBASEAPI WINBOOL WINAPI AllocateUserPhysicalPagesNuma(HANDLE hProcess,PULONG_PTR NumberOfPages,PULONG_PTR PageArray,DWORD nndPreferred); typedef DWORD (WINAPI *APPLICATION_RECOVERY_CALLBACK)(PVOID pvParameter); WINBASEAPI HRESULT WINAPI RegisterApplicationRecoveryCallback(APPLICATION_RECOVERY_CALLBACK pRecoveryCallback,PVOID pvParameter,DWORD dwPingInterval,DWORD dwFlags); WINBASEAPI VOID WINAPI ApplicationRecoveryFinished(WINBOOL bSuccess); WINBASEAPI HRESULT WINAPI ApplicationRecoveryInProgress(PBOOL pbCanceled); WINBASEAPI WINBOOL WINAPI QueryIdleProcessorCycleTime(PULONG BufferLength,PULONG64 ProcessorIdleCycleTime); WINBASEAPI WINBOOL WINAPI QueryProcessCycleTime(HANDLE ProcessHandle,PULONG64 CycleTime); WINBASEAPI WINBOOL WINAPI QueryThreadCycleTime(HANDLE ThreadHandle,PULONG64 CycleTime); #if (_WIN32_WINNT >= 0x0601) WINBASEAPI WINBOOL WINAPI QueryIdleProcessorCycleTimeEx(USHORT Group,PULONG BufferLength,PULONG64 ProcessorIdleCycleTime); #endif /* THREAD POOL stuff : */ /* FIXME: These thread pool callback data types and * func. pointer types actually belong in winnt.h !!!! * Not all data types need to be opaque, either !!! */ typedef struct _TP_IO *PTP_IO; typedef struct _TP_CALLBACK_INSTANCE *PTP_CALLBACK_INSTANCE; typedef struct _TP_WIN32_IO_CALLBACK *PTP_WIN32_IO_CALLBACK; typedef struct _TP_CALLBACK_ENVIRON *PTP_CALLBACK_ENVIRON; typedef struct _TP_CLEANUP_GROUP *PTP_CLEANUP_GROUP; typedef struct _TP_TIMER *PTP_TIMER; typedef struct _TP_WAIT *PTP_WAIT; typedef struct _TP_WORK *PTP_WORK; typedef struct _TP_POOL *PTP_POOL; typedef DWORD TP_WAIT_RESULT; typedef VOID (CALLBACK *PTP_WAIT_CALLBACK)(PTP_CALLBACK_INSTANCE Instance, PVOID Context, PTP_WAIT Wait, TP_WAIT_RESULT WaitResult); typedef VOID (CALLBACK *PTP_WORK_CALLBACK)(PTP_CALLBACK_INSTANCE Instance, PVOID Context, PTP_WORK Work); typedef VOID (CALLBACK *PTP_TIMER_CALLBACK)(PTP_CALLBACK_INSTANCE Instance, PVOID Context, PTP_TIMER Timer); typedef VOID (CALLBACK *PTP_SIMPLE_CALLBACK)(PTP_CALLBACK_INSTANCE Instance, PVOID Context); #define PRIVATE_NAMESPACE_FLAG_DESTROY 0x00000001 WINBASEAPI WINBOOL WINAPI CallbackMayRunLong(PTP_CALLBACK_INSTANCE pci); WINBASEAPI WINBOOL WINAPI CancelIoEx(HANDLE hFile,LPOVERLAPPED lpOverlapped); WINBASEAPI WINBOOL WINAPI CancelSynchronousIo(HANDLE hThread); WINBASEAPI VOID WINAPI CancelThreadpoolIo(PTP_IO pio); WINBASEAPI PTP_IO WINAPI CreateThreadpoolIo(HANDLE fl,PTP_WIN32_IO_CALLBACK pfnio,PVOID pv,PTP_CALLBACK_ENVIRON pcbe); WINBASEAPI VOID WINAPI CloseThreadpool(PTP_POOL ptpp); WINBASEAPI PTP_POOL WINAPI CreateThreadpool(PVOID reserved); WINBASEAPI VOID WINAPI CloseThreadpoolCleanupGroup(PTP_CLEANUP_GROUP ptpcg); WINBASEAPI VOID WINAPI CloseThreadpoolCleanupGroupMembers(PTP_CLEANUP_GROUP ptpcg,WINBOOL fCancelPendingCallbacks,PVOID pvCleanupContext); WINBASEAPI VOID WINAPI CloseThreadpoolIo(PTP_IO pio); WINBASEAPI VOID WINAPI CloseThreadpoolTimer(PTP_TIMER pti); WINBASEAPI VOID WINAPI CloseThreadpoolWait(PTP_WAIT pwa); WINBASEAPI VOID WINAPI CloseThreadpoolWork(PTP_WORK pwk); WINBASEAPI PTP_CLEANUP_GROUP WINAPI CreateThreadpoolCleanupGroup(void); WINBASEAPI PTP_WAIT WINAPI CreateThreadpoolWait(PTP_WAIT_CALLBACK pfnwa,PVOID pv,PTP_CALLBACK_ENVIRON pcbe); WINBASEAPI PTP_WORK WINAPI CreateThreadpoolWork(PTP_WORK_CALLBACK pfnwk,PVOID pv,PTP_CALLBACK_ENVIRON pcbe); WINBASEAPI PTP_TIMER WINAPI CreateThreadpoolTimer(PTP_TIMER_CALLBACK pfnti,PVOID pv,PTP_CALLBACK_ENVIRON pcbe); WINBASEAPI LPVOID WINAPI ConvertThreadToFiberEx(LPVOID lpParameter, DWORD dwFlags); WINBASEAPI VOID WINAPI SubmitThreadpoolWork(PTP_WORK pwk); /* FIXME: These must be inlines and must call something * proper from winnt.h !!!! See above for more * thread pool fixme notes. */ /* INLINE - http://msdn.microsoft.com/en-us/library/ms686255%28v=VS.85%29.aspx */ VOID SetThreadpoolCallbackCleanupGroup(PTP_CALLBACK_ENVIRON pcbe, PTP_CLEANUP_GROUP ptpcg, PTP_CLEANUP_GROUP_CANCEL_CALLBACK pfng); /* INLINE - http://msdn.microsoft.com/en-us/library/ms686258%28v=VS.85%29.aspx */ VOID SetThreadpoolCallbackLibrary(PTP_CALLBACK_ENVIRON pcbe, PVOID mod); /* INLINE - http://msdn.microsoft.com/en-us/library/ms686261%28v=VS.85%29.aspx */ VOID SetThreadpoolCallbackPool(PTP_CALLBACK_ENVIRON pcbe, PTP_POOL ptpp); /* INLINE - http://msdn.microsoft.com/en-us/library/ms686263%28v=VS.85%29.aspx */ VOID SetThreadpoolCallbackRunsLong(PTP_CALLBACK_ENVIRON pcbe); WINBASEAPI VOID WINAPI SetThreadpoolThreadMaximum(PTP_POOL ptpp, DWORD cthrdMost); WINBASEAPI WINBOOL WINAPI SetThreadpoolThreadMinimum(PTP_POOL ptpp, DWORD cthrdMic); WINBASEAPI VOID WINAPI SetThreadpoolTimer(PTP_TIMER pti, PFILETIME pftDueTime, DWORD msPeriod, DWORD msWindowLength); WINBASEAPI VOID WINAPI SetThreadpoolWait(PTP_WAIT pwa, HANDLE h, PFILETIME pftTimeout); WINBASEAPI VOID WINAPI StartThreadpoolIo(PTP_IO pio); /* End of THREAD POOL stuff */ WINBASEAPI WINBOOL WINAPI CopyFileTransactedA( LPCSTR lpExistingFileName, LPCSTR lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI CopyFileTransactedW( LPCWSTR lpExistingFileName, LPCWSTR lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, LPBOOL pbCancel, DWORD dwCopyFlags, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI CreateDirectoryTransactedA( LPCSTR lpTemplateDirectory, LPCSTR lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI CreateDirectoryTransactedW( LPCWSTR lpTemplateDirectory, LPCWSTR lpNewDirectory, LPSECURITY_ATTRIBUTES lpSecurityAttributes, HANDLE hTransaction ); #define CREATE_EVENT_INITIAL_SET 0x00000002 #define CREATE_EVENT_MANUAL_RESET 0x00000001 WINBASEAPI HANDLE WINAPI CreateEventExA( LPSECURITY_ATTRIBUTES lpEventAttributes, LPCSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateEventExW( LPSECURITY_ATTRIBUTES lpEventAttributes, LPCWSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateFileMappingNumaA( HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCSTR lpName, DWORD nndPreferred ); WINBASEAPI HANDLE WINAPI CreateFileMappingNumaW( HANDLE hFile, LPSECURITY_ATTRIBUTES lpFileMappingAttributes, DWORD flProtect, DWORD dwMaximumSizeHigh, DWORD dwMaximumSizeLow, LPCWSTR lpName, DWORD nndPreferred ); #define TXFS_MINIVERSION_COMMITTED_VIEW 0x0000 #define TXFS_MINIVERSION_DIRTY_VIEW 0xFFFE #define TXFS_MINIVERSION_DEFAULT_VIEW 0xFFFF WINBASEAPI HANDLE WINAPI CreateFileTransactedA( LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile, HANDLE hTransaction, PUSHORT pusMiniVersion, PVOID pExtendedParameter ); WINBASEAPI HANDLE WINAPI CreateFileTransactedW( LPCWSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile, HANDLE hTransaction, PUSHORT pusMiniVersion, PVOID pExtendedParameter ); WINBASEAPI WINBOOL WINAPI CreateHardLinkTransactedA( LPCSTR lpFileName, LPCSTR lpExistingFileName, LPSECURITY_ATTRIBUTES lpSecurityAttributes, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI CreateHardLinkTransactedW( LPCWSTR lpFileName, LPCWSTR lpExistingFileName, LPSECURITY_ATTRIBUTES lpSecurityAttributes, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI CreateTransaction( LPSECURITY_ATTRIBUTES lpTransactionAttributes, LPGUID UOW, DWORD CreateOptions, DWORD IsolationLevel, DWORD IsolationFlags, DWORD Timeout, LPWSTR Description ); WINBASEAPI WINBOOL WINAPI DeleteFileTransactedA( LPCSTR lpFileName, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI DeleteFileTransactedW( LPCWSTR lpFileName, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI CreateMutexExA( LPSECURITY_ATTRIBUTES lpMutexAttributes, LPCTSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateMutexExW( LPSECURITY_ATTRIBUTES lpMutexAttributes, LPCWSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateSemaphoreExA( LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateSemaphoreExW( LPSECURITY_ATTRIBUTES lpSemaphoreAttributes, LONG lInitialCount, LONG lMaximumCount, LPCWSTR lpName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI BOOLEAN WINAPI CreateSymbolicLinkTransactedW( LPWSTR lpSymlinkFileName, LPWSTR lpTargetFileName, DWORD dwFlags, HANDLE hTransaction ); WINBASEAPI BOOLEAN WINAPI CreateSymbolicLinkTransactedA( LPSTR lpSymlinkFileName, LPSTR lpTargetFileName, DWORD dwFlags, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI CreateWaitableTimerExA( LPSECURITY_ATTRIBUTES lpTimerAttributes, LPCSTR lpTimerName, DWORD dwFlags, DWORD dwDesiredAccess ); WINBASEAPI HANDLE WINAPI CreateWaitableTimerExW( LPSECURITY_ATTRIBUTES lpTimerAttributes, LPCWSTR lpTimerName, DWORD dwFlags, DWORD dwDesiredAccess ); #define DeleteFileTransacted __MINGW_NAME_AW(DeleteFileTransacted) WINBASEAPI WINBOOL WINAPI DeleteFileTransactedW( LPCWSTR lpFileName, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI DeleteFileTransactedA( LPCSTR lpFileName, HANDLE hTransaction ); WINBASEAPI VOID WINAPI DestroyThreadpoolEnvironment( PTP_CALLBACK_ENVIRON pcbe ); WINBASEAPI VOID WINAPI DisassociateCurrentThreadFromCallback( PTP_CALLBACK_INSTANCE pci ); typedef enum _FILE_ID_TYPE { FileIdType, ObjectIdType, MaximumFileIdType } FILE_ID_TYPE, *PFILE_ID_TYPE; typedef struct _TIME_DYNAMIC_ZONE_INFORMATION { LONG Bias; WCHAR StandardName[32]; SYSTEMTIME StandardDate; LONG StandardBias; WCHAR DaylightName[32]; SYSTEMTIME DaylightDate; LONG DaylightBias; WCHAR TimeZoneKeyName[128]; BOOLEAN DynamicDaylightTimeDisabled; } DYNAMIC_TIME_ZONE_INFORMATION, *PDYNAMIC_TIME_ZONE_INFORMATION; typedef struct _FILE_ALLOCATION_INFO { LARGE_INTEGER AllocationSize; } FILE_ALLOCATION_INFO, *PFILE_ALLOCATION_INFO; typedef struct _FILE_ATTRIBUTE_TAG_INFO { DWORD FileAttributes; DWORD ReparseTag; } FILE_ATTRIBUTE_TAG_INFO, *PFILE_ATTRIBUTE_TAG_INFO; typedef struct _FILE_BASIC_INFO { LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; DWORD FileAttributes; } FILE_BASIC_INFO, *PFILE_BASIC_INFO; typedef struct _FILE_COMPRESSION_INFO { LARGE_INTEGER CompressedFileSize; WORD CompressionFormat; UCHAR CompressionUnitShift; UCHAR ChunkShift; UCHAR ClusterShift; UCHAR Reserved[3]; } FILE_COMPRESSION_INFO, *PFILE_COMPRESSION_INFO; typedef struct _FILE_DISPOSITION_INFO { WINBOOL DeleteFile; } FILE_DISPOSITION_INFO, *PFILE_DISPOSITION_INFO; typedef struct _FILE_END_OF_FILE_INFO { LARGE_INTEGER EndOfFile; } FILE_END_OF_FILE_INFO, *PFILE_END_OF_FILE_INFO; typedef struct _FILE_ID_BOTH_DIR_INFO { DWORD NextEntryOffset; DWORD FileIndex; LARGE_INTEGER CreationTime; LARGE_INTEGER LastAccessTime; LARGE_INTEGER LastWriteTime; LARGE_INTEGER ChangeTime; LARGE_INTEGER EndOfFile; LARGE_INTEGER AllocationSize; DWORD FileAttributes; DWORD FileNameLength; DWORD EaSize; CCHAR ShortNameLength; WCHAR ShortName[12]; LARGE_INTEGER FileId; WCHAR FileName[1]; } FILE_ID_BOTH_DIR_INFO, *PFILE_ID_BOTH_DIR_INFO; typedef struct _FILE_ID_DESCRIPTOR{ DWORD dwSize; FILE_ID_TYPE Type; __C89_NAMELESS union { LARGE_INTEGER FileId; GUID ObjectId; }; } FILE_ID_DESCRIPTOR, *LPFILE_ID_DESCRIPTOR; typedef enum _FILE_INFO_BY_HANDLE_CLASS { FileBasicInfo = 0, FileStandardInfo = 1, FileNameInfo = 2, FileRenameInfo = 3, FileDispositionInfo = 4, FileAllocationInfo = 5, FileEndOfFileInfo = 6, FileStreamInfo = 7, FileCompressionInfo = 8, FileAttributeTagInfo = 9, FileIdBothDirectoryInfo = 10, // 0xA FileIdBothDirectoryRestartInfo = 11, // 0xB FileIoPriorityHintInfo = 12, // 0xC FileRemoteProtocolInfo = 13, // 0xD MaximumFileInfoByHandlesClass = 14 // 0xE } FILE_INFO_BY_HANDLE_CLASS, *PFILE_INFO_BY_HANDLE_CLASS; typedef enum _PRIORITY_HINT { IoPriorityHintVeryLow = 0, IoPriorityHintLow, IoPriorityHintNormal, MaximumIoPriorityHintType } PRIORITY_HINT; typedef struct _FILE_IO_PRIORITY_HINT_INFO { PRIORITY_HINT PriorityHint; } FILE_IO_PRIORITY_HINT_INFO, *PFILE_IO_PRIORITY_HINT_INFO; typedef struct _FILE_NAME_INFO { DWORD FileNameLength; WCHAR FileName[1]; } FILE_NAME_INFO, *PFILE_NAME_INFO; typedef struct _FILE_RENAME_INFO { BOOL ReplaceIfExists; HANDLE RootDirectory; DWORD FileNameLength; WCHAR FileName[1]; } FILE_RENAME_INFO, *PFILE_RENAME_INFO; typedef struct _FILE_STANDARD_INFO { LARGE_INTEGER AllocationSize; LARGE_INTEGER EndOfFile; DWORD NumberOfLinks; WINBOOL DeletePending; WINBOOL Directory; } FILE_STANDARD_INFO, *PFILE_STANDARD_INFO; typedef struct _FILE_STREAM_INFO { DWORD NextEntryOffset; DWORD StreamNameLength; LARGE_INTEGER StreamSize; LARGE_INTEGER StreamAllocationSize; WCHAR StreamName[1]; } FILE_STREAM_INFO, *PFILE_STREAM_INFO; typedef struct _OVERLAPPED_ENTRY { ULONG_PTR lpCompletionKey; LPOVERLAPPED lpOverlapped; ULONG_PTR Internal; DWORD dwNumberOfBytesTransferred; } OVERLAPPED_ENTRY, *LPOVERLAPPED_ENTRY; WINBASEAPI HANDLE WINAPI FindFirstFileNameTransactedW( LPCWSTR lpFileName, DWORD dwFlags, LPDWORD StringLength, PWCHAR LinkName, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI FindFirstFileNameW( LPCWSTR lpFileName, DWORD dwFlags, LPDWORD StringLength, PWCHAR LinkName ); WINBASEAPI HANDLE WINAPI FindFirstFileTransactedA( LPCSTR lpFileName, FINDEX_INFO_LEVELS fInfoLevelId, LPVOID lpFindFileData, FINDEX_SEARCH_OPS fSearchOp, LPVOID lpSearchFilter, DWORD dwAdditionalFlags, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI FindFirstFileTransactedW( LPCWSTR lpFileName, FINDEX_INFO_LEVELS fInfoLevelId, LPVOID lpFindFileData, FINDEX_SEARCH_OPS fSearchOp, LPVOID lpSearchFilter, DWORD dwAdditionalFlags, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI FindFirstStreamTransactedW( LPCWSTR lpFileName, STREAM_INFO_LEVELS InfoLevel, LPVOID lpFindStreamData, DWORD dwFlags, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI FindFirstStreamW( LPCWSTR lpFileName, STREAM_INFO_LEVELS InfoLevel, LPVOID lpFindStreamData, DWORD dwFlags ); WINBASEAPI WINBOOL WINAPI FindNextFileNameW( HANDLE hFindStream, LPDWORD StringLength, PWCHAR LinkName ); WINBASEAPI WINBOOL WINAPI FindNextStreamW( HANDLE hFindStream, LPVOID lpFindStreamData ); WINBASEAPI DWORD WINAPI FlsAlloc( PFLS_CALLBACK_FUNCTION lpCallback ); WINBASEAPI WINBOOL WINAPI FlsFree( DWORD dwFlsIndex ); WINBASEAPI PVOID WINAPI FlsGetValue( DWORD dwFlsIndex ); WINBASEAPI WINBOOL WINAPI FlsSetValue( DWORD dwFlsIndex, PVOID lpFlsData ); WINBASEAPI VOID WINAPI FlushProcessWriteBuffers(void); WINBASEAPI VOID WINAPI FreeLibraryWhenCallbackReturns( PTP_CALLBACK_INSTANCE pci, HMODULE mod ); WINBASEAPI HRESULT WINAPI GetApplicationRecoveryCallback( HANDLE hProcess, APPLICATION_RECOVERY_CALLBACK *pRecoveryCallback, PVOID *ppvParameter, DWORD dwPingInterval, DWORD dwFlags ); WINBASEAPI HRESULT WINAPI GetApplicationRestartSettings( HANDLE hProcess, PWSTR pwzCommandline, PDWORD pcchSize, PDWORD pdwFlags ); #define RESTART_NO_CRASH 1 #define RESTART_NO_HANG 2 #define RESTART_NO_PATCH 4 #define RESTART_NO_REBOOT 8 #define RESTART_MAX_CMD_LINE 1024 WINBASEAPI HRESULT WINAPI RegisterApplicationRestart( PCWSTR pwzCommandline, DWORD dwFlags ); #define GetCompressedFileSizeTransacted __MINGW_NAME_AW(GetCompressedFileSizeTransacted) WINBASEAPI DWORD WINAPI GetCompressedFileSizeTransactedA( LPCTSTR lpFileName, LPDWORD lpFileSizeHigh, HANDLE hTransaction ); WINBASEAPI DWORD WINAPI GetCompressedFileSizeTransactedW( LPCWSTR lpFileName, LPDWORD lpFileSizeHigh, HANDLE hTransaction ); WINBASEAPI DWORD WINAPI GetDynamicTimeZoneInformation( PDYNAMIC_TIME_ZONE_INFORMATION pTimeZoneInformation ); WINBASEAPI UINT WINAPI GetErrorMode(void); #define GetFileAttributesTransacted __MINGW_NAME_AW(GetFileAttributesTransacted) WINBASEAPI WINBOOL WINAPI GetFileAttributesTransactedA( LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI GetFileAttributesTransactedW( LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI GetFileBandwidthReservation( HANDLE hFile, LPDWORD lpPeriodMilliseconds, LPDWORD lpBytesPerPeriod, LPBOOL pDiscardable, LPDWORD lpTransferSize, LPDWORD lpNumOutstandingRequests ); WINBASEAPI WINBOOL WINAPI GetFileInformationByHandleEx( HANDLE hFile, FILE_INFO_BY_HANDLE_CLASS FileInformationClass, LPVOID lpFileInformation, DWORD dwBufferSize ); #define GetFinalPathNameByHandle __MINGW_NAME_AW(GetFinalPathNameByHandle) #define VOLUME_NAME_DOS 0x0 #define VOLUME_NAME_GUID 0x1 #define VOLUME_NAME_NT 0x2 #define VOLUME_NAME_NONE 0x4 #define FILE_NAME_NORMALIZED 0x0 #define FILE_NAME_OPENED 0x8 WINBASEAPI DWORD WINAPI GetFinalPathNameByHandleA( HANDLE hFile, LPSTR lpszFilePath, DWORD cchFilePath, DWORD dwFlags ); WINBASEAPI DWORD WINAPI GetFinalPathNameByHandleW( HANDLE hFile, LPWSTR lpszFilePath, DWORD cchFilePath, DWORD dwFlags ); #define GetFullPathNameTransacted __MINGW_NAME_AW(GetFullPathNameTransacted) WINBASEAPI DWORD WINAPI GetFullPathNameTransactedA( LPCSTR lpFileName, DWORD nBufferLength, LPSTR lpBuffer, LPSTR *lpFilePart, HANDLE hTransaction ); WINBASEAPI DWORD WINAPI GetFullPathNameTransactedW( LPCWSTR lpFileName, DWORD nBufferLength, LPWSTR lpBuffer, LPWSTR *lpFilePart, HANDLE hTransaction ); #define GetLongPathNameTransacted __MINGW_NAME_AW(GetLongPathNameTransacted) WINBASEAPI DWORD WINAPI GetLongPathNameTransactedA( LPCSTR lpszShortPath, LPSTR lpszLongPath, DWORD cchBuffer, HANDLE hTransaction ); WINBASEAPI DWORD WINAPI GetLongPathNameTransactedW( LPCWSTR lpszShortPath, LPWSTR lpszLongPath, DWORD cchBuffer, HANDLE hTransaction ); #define GetNamedPipeClientComputerName __MINGW_NAME_AW(GetNamedPipeClientComputerName) WINBASEAPI WINBOOL WINAPI GetNamedPipeClientComputerNameA( HANDLE Pipe, LPSTR ClientComputerName, ULONG ClientComputerNameLength ); WINBASEAPI WINBOOL WINAPI GetNamedPipeClientComputerNameW( HANDLE Pipe, LPWSTR ClientComputerName, ULONG ClientComputerNameLength ); WINBASEAPI WINBOOL WINAPI GetNamedPipeClientProcessId( HANDLE Pipe, PULONG ClientProcessId ); WINBASEAPI WINBOOL WINAPI GetNamedPipeClientSessionId( HANDLE Pipe, PULONG ClientSessionId ); WINBASEAPI WINBOOL WINAPI GetNamedPipeServerProcessId( HANDLE Pipe, PULONG ServerProcessId ); WINBASEAPI WINBOOL WINAPI GetNamedPipeServerSessionId( HANDLE Pipe, PULONG ServerSessionId ); WINBASEAPI WINBOOL WINAPI GetNumaProximityNode( ULONG ProximityId, PUCHAR NodeNumber ); WINBOOL WINAPI GetPhysicallyInstalledSystemMemory( PULONGLONG TotalMemoryInKilobytes ); typedef LPVOID PPROC_THREAD_ATTRIBUTE_LIST, LPPROC_THREAD_ATTRIBUTE_LIST; WINBASEAPI WINBOOL WINAPI UpdateProcThreadAttribute( LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, DWORD dwFlags, DWORD_PTR Attribute, PVOID lpValue, SIZE_T cbSize, PVOID lpPreviousValue, PSIZE_T lpReturnSize ); WINBASEAPI WINBOOL WINAPI GetProductInfo( DWORD dwOSMajorVersion, DWORD dwOSMinorVersion, DWORD dwSpMajorVersion, DWORD dwSpMinorVersion, PDWORD pdwReturnedProductType ); WINBASEAPI WINBOOL WINAPI GetQueuedCompletionStatusEx( HANDLE CompletionPort, LPOVERLAPPED_ENTRY lpCompletionPortEntries, ULONG ulCount, PULONG ulNumEntriesRemoved, DWORD dwMilliseconds, WINBOOL fAlertable ); WINBASEAPI WINBOOL WINAPI GetSystemRegistryQuota( PDWORD pdwQuotaAllowed, PDWORD pdwQuotaUsed ); WINBASEAPI WINBOOL WINAPI GetSystemTimes( LPFILETIME lpIdleTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime ); WINBASEAPI ULONGLONG WINAPI GetTickCount64(void); WINBASEAPI WINBOOL WINAPI GetTimeZoneInformationForYear( USHORT wYear, PDYNAMIC_TIME_ZONE_INFORMATION pdtzi, LPTIME_ZONE_INFORMATION ptzi ); WINBASEAPI WINBOOL WINAPI GetVolumeInformationByHandleW( HANDLE hFile, LPWSTR lpVolumeNameBuffer, DWORD nVolumeNameSize, LPDWORD lpVolumeSerialNumber, LPDWORD lpMaximumComponentLength, LPDWORD lpFileSystemFlags, LPWSTR lpFileSystemNameBuffer, DWORD nFileSystemNameSize ); WINBASEAPI VOID WINAPI LeaveCriticalSectionWhenCallbackReturns( PTP_CALLBACK_INSTANCE pci, PCRITICAL_SECTION pcs ); WINBASEAPI LPVOID WINAPI MapViewOfFileExNuma( HANDLE hFileMappingObject, DWORD dwDesiredAccess, DWORD dwFileOffsetHigh, DWORD dwFileOffsetLow, SIZE_T dwNumberOfBytesToMap, LPVOID lpBaseAddress, DWORD nndPreferred ); #define MoveFileTransacted __MINGW_NAME_AW(MoveFileTransacted) WINBASEAPI WINBOOL WINAPI MoveFileTransactedA( LPCSTR lpExistingFileName, LPCSTR lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, DWORD dwFlags, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI MoveFileTransactedW( LPCWSTR lpExistingFileName, LPCWSTR lpNewFileName, LPPROGRESS_ROUTINE lpProgressRoutine, LPVOID lpData, DWORD dwFlags, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI OpenFileById( HANDLE hFile, LPFILE_ID_DESCRIPTOR lpFileID, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwFlags ); WINBASEAPI WINBOOL WINAPI QueryActCtxSettingsW( DWORD dwFlags, HANDLE hActCtx, PCWSTR settingsNameSpace, PCWSTR settingName, PWSTR pvBuffer, SIZE_T dwBuffer, SIZE_T *pdwWrittenOrRequired ); WINBASEAPI WINBOOL WINAPI QueryFullProcessImageNameA( HANDLE hProcess, DWORD dwFlags, LPSTR lpExeName, PDWORD lpdwSize ); WINBASEAPI WINBOOL WINAPI QueryFullProcessImageNameW( HANDLE hProcess, DWORD dwFlags, LPWSTR lpExeName, PDWORD lpdwSize ); #define QueryFullProcessImageName __MINGW_NAME_AW(QueryFullProcessImageName) WINBASEAPI WINBOOL WINAPI QueryProcessAffinityUpdateMode( HANDLE ProcessHandle, DWORD lpdwFlags ); WINADVAPI VOID WINAPI QuerySecurityAccessMask( SECURITY_INFORMATION SecurityInformation, LPDWORD DesiredAccess ); WINADVAPI VOID WINAPI ReleaseMutexWhenCallbackReturns( PTP_CALLBACK_INSTANCE pci, HANDLE mut ); #define RemoveDirectoryTransacted __MINGW_NAME_AW(RemoveDirectoryTransacted) WINBASEAPI WINBOOL WINAPI RemoveDirectoryTransactedA( LPCSTR lpPathName, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI RemoveDirectoryTransactedW( LPCWSTR lpPathName, HANDLE hTransaction ); WINBASEAPI HANDLE WINAPI ReOpenFile( HANDLE hOriginalFile, DWORD dwDesiredAccess, DWORD dwShareMode, DWORD dwFlags ); WINBASEAPI WINBOOL WINAPI SetDynamicTimeZoneInformation( const DYNAMIC_TIME_ZONE_INFORMATION *lpTimeZoneInformation ); WINBASEAPI VOID WINAPI SetEventWhenCallbackReturns( PTP_CALLBACK_INSTANCE pci, HANDLE evt ); WINBASEAPI WINBOOL WINAPI SetFileAttributesTransactedA( LPCSTR lpFileName, DWORD dwFileAttributes, HANDLE hTransaction ); WINBASEAPI WINBOOL WINAPI SetFileAttributesTransactedW( LPCWSTR lpFileName, DWORD dwFileAttributes, HANDLE hTransaction ); #define SetFileAttributesTransacted __MINGW_NAME_AW(SetFileAttributesTransacted) WINBASEAPI WINBOOL WINAPI SetFileBandwidthReservation( HANDLE hFile, DWORD nPeriodMilliseconds, DWORD nBytesPerPeriod, WINBOOL bDiscardable, LPDWORD lpTransferSize, LPDWORD lpNumOutstandingRequests ); WINBASEAPI WINBOOL WINAPI SetFileCompletionNotificationModes( HANDLE FileHandle, UCHAR Flags ); WINBASEAPI WINBOOL WINAPI SetFileInformationByHandle( HANDLE hFile, FILE_INFO_BY_HANDLE_CLASS FileInformationClass, LPVOID lpFileInformation, DWORD dwBufferSize ); WINBASEAPI WINBOOL WINAPI SetFileIoOverlappedRange( HANDLE FileHandle, PUCHAR OverlappedRangeStart, ULONG Length ); #define PROCESS_AFFINITY_ENABLE_AUTO_UPDATE 0x00000001UL WINBASEAPI WINBOOL WINAPI SetProcessAffinityUpdateMode( HANDLE ProcessHandle, DWORD dwFlags ); WINBASEAPI WINBOOL WINAPI SetProcessWorkingSetSizeEx( HANDLE hProcess, SIZE_T dwMinimumWorkingSetSize, SIZE_T dwMaximumWorkingSetSize, DWORD Flags ); WINADVAPI VOID WINAPI SetSecurityAccessMask( SECURITY_INFORMATION SecurityInformation, LPDWORD DesiredAccess ); typedef struct _STARTUPINFOEXA { STARTUPINFOA StartupInfo; PPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; } STARTUPINFOEXA, *LPSTARTUPINFOEXA; typedef struct _STARTUPINFOEXAW { STARTUPINFOW StartupInfo; PPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; } STARTUPINFOEXW, *LPSTARTUPINFOEXW; __MINGW_TYPEDEF_AW(STARTUPINFOEX) __MINGW_TYPEDEF_AW(LPSTARTUPINFOEX) WINBASEAPI WINBOOL WINAPI TrySubmitThreadpoolCallback( PTP_SIMPLE_CALLBACK pfns, PVOID pv, PTP_CALLBACK_ENVIRON pcbe ); WINBASEAPI HRESULT WINAPI UnregisterApplicationRestart(void); WINBASEAPI HRESULT WINAPI UnregisterApplicationRecoveryCallback(void); WINBASEAPI LPVOID WINAPI VirtualAllocExNuma( HANDLE hProcess, LPVOID lpAddress, SIZE_T dwSize, DWORD flAllocationType, DWORD flProtect, DWORD nndPreferred ); WINBASEAPI VOID WINAPI WaitForThreadpoolIoCallbacks( PTP_IO pio, WINBOOL fCancelPendingCallbacks ); WINBASEAPI VOID WINAPI WaitForThreadpoolTimerCallbacks( PTP_TIMER pti, WINBOOL fCancelPendingCallbacks ); WINBASEAPI VOID WINAPI WaitForThreadpoolWaitCallbacks( PTP_WAIT pwa, WINBOOL fCancelPendingCallbacks ); WINBASEAPI VOID WINAPI WaitForThreadpoolWorkCallbacks( PTP_WORK pwk, WINBOOL fCancelPendingCallbacks ); WINBASEAPI WINBOOL WINAPI Wow64GetThreadContext( HANDLE hThread, PWOW64_CONTEXT lpContext ); WINBASEAPI WINBOOL WINAPI Wow64RevertWow64FsRedirection( PVOID OldValue ); WINBASEAPI WINBOOL WINAPI Wow64SetThreadContext( HANDLE hThread, const WOW64_CONTEXT *lpContext ); WINBASEAPI DWORD WINAPI Wow64SuspendThread( HANDLE hThread ); #endif /*(_WIN32_WINNT >= 0x0600)*/ #if (_WIN32_WINNT >= 0x0601) WINBASEAPI VOID WINAPI GetCurrentProcessorNumberEx( PPROCESSOR_NUMBER ProcNumber ); WINBASEAPI WINBOOL WINAPI GetLogicalProcessorInformationEx( LOGICAL_PROCESSOR_RELATIONSHIP RelationshipType, PSYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX Buffer, PDWORD ReturnedLength ); WINBASEAPI WINBOOL WINAPI GetNumaAvailableMemoryNodeEx( USHORT Node, PULONGLONG AvailableBytes ); WINBASEAPI WINBOOL WINAPI GetNumaNodeNumberFromHandle( HANDLE hFile, PUSHORT NodeNumber ); WINBASEAPI WINBOOL WINAPI GetNumaNodeProcessorMaskEx( USHORT Node, PGROUP_AFFINITY ProcessorMask ); WINBASEAPI WINBOOL WINAPI GetNumaProcessorNodeEx( PPROCESSOR_NUMBER Processor, PUSHORT NodeNumber ); WINBASEAPI WINBOOL WINAPI GetNumaProximityNodeEx( ULONG ProximityId, PUSHORT NodeNumber ); WINBASEAPI WINBOOL WINAPI GetProcessGroupAffinity( HANDLE hProcess, PUSHORT GroupCount, PUSHORT GroupArray ); WINBASEAPI WINBOOL WINAPI GetProcessorSystemCycleTime( USHORT Group, PSYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION Buffer, PDWORD ReturnedLength ); WINBASEAPI DWORD WINAPI GetThreadErrorMode(void); WINBASEAPI DWORD WINAPI GetThreadGroupAffinity( HANDLE hThread, PGROUP_AFFINITY GroupAffinity ); WINBASEAPI WINBOOL WINAPI GetThreadIdealProcessorEx( HANDLE hThread, PPROCESSOR_NUMBER lpIdealProcessor ); WINBASEAPI HANDLE WINAPI CreateRemoteThreadEx( HANDLE hProcess, LPSECURITY_ATTRIBUTES lpThreadAttributes, SIZE_T dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, LPVOID lpParameter, DWORD dwCreationFlags, LPPROC_THREAD_ATTRIBUTE_LIST lpAttributeList, LPDWORD lpThreadId ); WINBASEAPI WINBOOL WINAPI QueryUnbiasedInterruptTime( PULONGLONG UnbiasedTime ); WINBASEAPI WINBOOL WINAPI AddConditionalAce( PACL pAcl, DWORD dwAceRevision, DWORD AceFlags, UCHAR AceType, DWORD AccessMask, PSID pSid, PWCHAR ConditionStr, DWORD *ReturnLength ); WINBASEAPI DWORD WINAPI GetActiveProcessorCount( WORD GroupNumber ); WINBASEAPI WORD WINAPI GetActiveProcessorGroupCount(void); WINBASEAPI VOID WINAPI GetCurrentProcessorNumberEx( PPROCESSOR_NUMBER ProcNumber ); WINBASEAPI DWORD WINAPI GetMaximumProcessorCount( WORD GroupNumber ); WINBASEAPI WORD WINAPI GetMaximumProcessorGroupCount(void); #ifdef _WIN64 typedef struct _UMS_COMPLETION_LIST *PUMS_COMPLETION_LIST; typedef struct _UMS_CONTEXT *PUMS_CONTEXT; typedef enum _UMS_SCHEDULER_REASON { UmsSchedulerStartup = 0, UmsSchedulerThreadBlocked = 1, UmsSchedulerThreadYield = 2 } UMS_SCHEDULER_REASON; typedef VOID (*PUMS_SCHEDULER_ENTRY_POINT)( UMS_SCHEDULER_REASON Reason, ULONG_PTR ActivationPayload, PVOID SchedulerParam ); typedef enum _UMS_THREAD_INFO_CLASS { UmsThreadInvalidInfoClass = 0, UmsThreadUserContext = 1, UmsThreadPriority = 2, UmsThreadAffinity = 3, UmsThreadTeb = 4, UmsThreadIsSuspended = 5, UmsThreadIsTerminated = 6, UmsThreadMaxInfoClass = 7 } UMS_THREAD_INFO_CLASS, *PUMS_THREAD_INFO_CLASS; typedef struct _UMS_SCHEDULER_STARTUP_INFO { ULONG UmsVersion; PUMS_COMPLETION_LIST CompletionList; PUMS_SCHEDULER_ENTRY_POINT SchedulerProc; PVOID SchedulerParam; } UMS_SCHEDULER_STARTUP_INFO, *PUMS_SCHEDULER_STARTUP_INFO; WINBASEAPI WINBOOL CreateUmsCompletionList( PUMS_COMPLETION_LIST *UmsCompletionList ); WINBASEAPI WINBOOL CreateUmsThreadContext( PUMS_CONTEXT *lpUmsThread ); WINBASEAPI WINBOOL EnterUmsSchedulingMode( PUMS_SCHEDULER_STARTUP_INFO SchedulerStartupInfo ); WINBASEAPI WINBOOL DequeueUmsCompletionListItems( PUMS_COMPLETION_LIST UmsCompletionList, DWORD WaitTimeOut, PUMS_CONTEXT *UmsThreadList ); WINBASEAPI WINBOOL GetUmsCompletionListEvent( PUMS_COMPLETION_LIST UmsCompletionList, PHANDLE UmsCompletionEvent ); WINBASEAPI WINBOOL DeleteUmsCompletionList( PUMS_COMPLETION_LIST UmsCompletionList ); WINBASEAPI WINBOOL DeleteUmsThreadContext( PUMS_CONTEXT UmsThread ); WINBASEAPI WINBOOL QueryUmsThreadInformation( PUMS_CONTEXT UmsThread, UMS_THREAD_INFO_CLASS UmsThreadInfoClass, PVOID UmsThreadInformation, ULONG UmsThreadInformationLength, PULONG ReturnLength ); WINBASEAPI WINBOOL SetUmsThreadInformation( PUMS_CONTEXT UmsThread, UMS_THREAD_INFO_CLASS UmsThreadInfoClass, PVOID UmsThreadInformation, ULONG UmsThreadInformationLength ); WINBASEAPI WINBOOL ExecuteUmsThread( PUMS_CONTEXT UmsThread ); WINBASEAPI WINBOOL UmsThreadYield( PVOID SchedulerParam ); WINBASEAPI PUMS_CONTEXT GetNextUmsListItem( PUMS_CONTEXT UmsContext ); WINBASEAPI PUMS_CONTEXT GetCurrentUmsThread(void); #endif /* _WIN64 */ #endif /*(_WIN32_WINNT >= 0x0601)*/ #ifdef __cplusplus } #endif #endif /* _WINBASE_ */
{ "content_hash": "b0e3cfa33c29418fc8e7eaedc4810274", "timestamp": "", "source": "github", "line_count": 4035, "max_line_length": 485, "avg_line_length": 47.64411400247832, "alnum_prop": 0.8264497201473128, "repo_name": "leighpauls/k2cro4", "id": "985ff723672150cfe93f34b80f9e419e741ccd66", "size": "192459", "binary": false, "copies": "8", "ref": "refs/heads/master", "path": "third_party/perl/c/i686-w64-mingw32/include/winbase.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ASP", "bytes": "3062" }, { "name": "AppleScript", "bytes": "25392" }, { "name": "Arduino", "bytes": "464" }, { "name": "Assembly", "bytes": "68131038" }, { "name": "C", "bytes": "242794338" }, { "name": "C#", "bytes": "11024" }, { "name": "C++", "bytes": "353525184" }, { "name": "Common Lisp", "bytes": "3721" }, { "name": "D", "bytes": "1931" }, { "name": "Emacs Lisp", "bytes": "1639" }, { "name": "F#", "bytes": "4992" }, { "name": "FORTRAN", "bytes": "10404" }, { "name": "Java", "bytes": "3845159" }, { "name": "JavaScript", "bytes": "39146656" }, { "name": "Lua", "bytes": "13768" }, { "name": "Matlab", "bytes": "22373" }, { "name": "Objective-C", "bytes": "21887598" }, { "name": "PHP", "bytes": "2344144" }, { "name": "Perl", "bytes": "49033099" }, { "name": "Prolog", "bytes": "2926122" }, { "name": "Python", "bytes": "39863959" }, { "name": "R", "bytes": "262" }, { "name": "Racket", "bytes": "359" }, { "name": "Ruby", "bytes": "304063" }, { "name": "Scheme", "bytes": "14853" }, { "name": "Shell", "bytes": "9195117" }, { "name": "Tcl", "bytes": "1919771" }, { "name": "Verilog", "bytes": "3092" }, { "name": "Visual Basic", "bytes": "1430" }, { "name": "eC", "bytes": "5079" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="el_GR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Nationscoin</source> <translation>Σχετικά με το Nationscoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;Nationscoin&lt;/b&gt; version</source> <translation>Έκδοση Nationscoin</translation> </message> <message> <location line="+57"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>Πνευματική ιδιοκτησία </translation> </message> <message> <location line="+0"/> <source>The Nationscoin developers</source> <translation>Οι Nationscoin προγραμματιστές </translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Βιβλίο Διευθύνσεων</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Διπλό-κλικ για επεξεργασία της διεύθυνσης ή της ετικέτας</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Δημιούργησε νέα διεύθυνση</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Αντέγραψε την επιλεγμένη διεύθυνση στο πρόχειρο του συστήματος</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Νέα διεύθυνση</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your Nationscoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Αυτές είναι οι Nationscoin διευθύνσεις σας για να λαμβάνετε πληρωμές. Δίνοντας μία ξεχωριστή διεύθυνση σε κάθε αποστολέα, θα μπορείτε να ελέγχετε ποιος σας πληρώνει.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Αντιγραφή διεύθυνσης</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Δείξε &amp;QR κωδικα</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Nationscoin address</source> <translation>Υπογράψτε ένα μήνυμα για ν&apos; αποδείξετε πως σας ανήκει μια συγκεκριμένη διεύθυνση Nationscoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Υπέγραψε το μήνυμα</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Αντιγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Εξαγωγή δεδομένων καρτέλας σε αρχείο</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>&amp;Εξαγωγή</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified Nationscoin address</source> <translation>Υπογράψτε ένα μήνυμα για ν&apos; αποδείξετε πως ανήκει μια συγκεκριμένη διεύθυνση Nationscoin</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Επιβεβαίωση μηνύματος</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Διαγραφή</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your Nationscoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Αυτές είναι οι Nationscoin διευθύνσεις σας για να λαμβάνετε πληρωμές. Δίνοντας μία ξεχωριστή διεύθυνση σε κάθε αποστολέα, θα μπορείτε να ελέγχετε ποιος σας πληρώνει.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Αντιγραφή &amp;επιγραφής</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Επεξεργασία</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>Αποστολή νομισμάτων</translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Εξαγωγή Δεδομενων Βιβλίου Διευθύνσεων</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Εξαγωγή λαθών</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Αδυναμία εγγραφής στο αρχείο %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Ετικέτα</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Διεύθυνση</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(χωρίς ετικέτα)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Φράση πρόσβασης </translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Βάλτε κωδικό πρόσβασης</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Νέος κωδικός πρόσβασης</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Επανέλαβε τον νέο κωδικό πρόσβασης</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Εισάγετε τον νέο κωδικό πρόσβασης στον πορτοφόλι &lt;br/&gt; Παρακαλώ χρησιμοποιείστε ένα κωδικό με &lt;b&gt; 10 ή περισσότερους τυχαίους χαρακτήρες&lt;/b&gt; ή &lt;b&gt; οχτώ ή παραπάνω λέξεις&lt;/b&gt;.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Κρυπτογράφησε το πορτοφόλι</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Αυτη η ενεργεία χρειάζεται τον κωδικό του πορτοφολιού για να ξεκλειδώσει το πορτοφόλι.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Ξεκλειδωσε το πορτοφολι</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Αυτη η ενεργεια χρειάζεται τον κωδικο του πορτοφολιου για να αποκρυπτογραφησειι το πορτοφολι.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Αποκρυπτογράφησε το πορτοφολι</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Άλλαξε κωδικο πρόσβασης</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Εισάγετε τον παλιό και τον νεο κωδικο στο πορτοφολι.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Επιβεβαίωσε την κρυπτογραφηση του πορτοφολιού</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR BITCOINS&lt;/b&gt;!</source> <translation>Προσοχη: Εαν κρυπτογραφησεις το πορτοφολι σου και χάσεις τον κωδικο σου θα χάσεις &lt;b&gt; ΟΛΑ ΣΟΥ ΤΑ BITCOINS&lt;/b&gt;! Είσαι σίγουρος ότι θέλεις να κρυπτογραφησεις το πορτοφολι;</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Είστε σίγουροι ότι θέλετε να κρυπτογραφήσετε το πορτοφόλι σας;</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>ΣΗΜΑΝΤΙΚΟ: Τα προηγούμενα αντίγραφα ασφαλείας που έχετε κάνει από το αρχείο του πορτοφόλιου σας θα πρέπει να αντικατασταθουν με το νέο που δημιουργείται, κρυπτογραφημένο αρχείο πορτοφόλιου. Για λόγους ασφαλείας, τα προηγούμενα αντίγραφα ασφαλείας του μη κρυπτογραφημένου αρχείου πορτοφόλιου θα καταστουν άχρηστα μόλις αρχίσετε να χρησιμοποιείτε το νέο κρυπτογραφημένο πορτοφόλι. </translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Προσοχη: το πλήκτρο Caps Lock είναι ενεργο.</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Κρυπτογραφημενο πορτοφολι</translation> </message> <message> <location line="-56"/> <source>Nationscoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your nationscoins from being stolen by malware infecting your computer.</source> <translation>Το Nationscoin θα κλεισει τώρα για να τελειώσει την διαδικασία κρυπτογραφησης. Θυμησου ότι κρυπτογραφώντας το πορτοφολι σου δεν μπορείς να προστατέψεις πλήρως τα nationscoins σου από κλοπή στην περίπτωση όπου μολυνθεί ο υπολογιστής σου με κακόβουλο λογισμικο.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Η κρυπτογραφηση του πορτοφολιού απέτυχε</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Η κρυπτογράφηση του πορτοφολιού απέτυχε λογω εσωτερικού σφάλματος. Το πορτοφολι δεν κρυπτογραφηθηκε.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>Οι εισαχθέντες κωδικοί δεν ταιριάζουν.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Ο κωδικος που εισήχθη για την αποκρυπτογραφηση του πορτοφολιού ήταν λαθος.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Η αποκρυπτογραφηση του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Ο κωδικος του πορτοφολιού άλλαξε με επιτυχία.</translation> </message> </context> <context> <name>NationscoinGUI</name> <message> <location filename="../nationscoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>Υπογραφή &amp;Μηνύματος...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Συγχρονισμός με το δίκτυο...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Επισκόπηση</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Εμφάνισε γενική εικονα του πορτοφολιού</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Συναλλαγές</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Περιήγηση στο ιστορικο συνναλαγων</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Εξεργασια της λιστας των αποθηκευμενων διευθύνσεων και ετικετων</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Εμφάνισε την λίστα των διευθύνσεων για την παραλαβή πληρωμων</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>Έ&amp;ξοδος</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Εξοδος από την εφαρμογή</translation> </message> <message> <location line="+4"/> <source>Show information about Nationscoin</source> <translation>Εμφάνισε πληροφορίες σχετικά με το Nationscoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Σχετικά με &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Εμφάνισε πληροφορίες σχετικά με Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Επιλογές...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Κρυπτογράφησε το πορτοφόλι</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Αντίγραφο ασφαλείας του πορτοφολιού</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Άλλαξε κωδικο πρόσβασης</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>Εισαγωγή μπλοκ από τον σκληρο δίσκο ... </translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>Φόρτωση ευρετηρίου μπλοκ στον σκληρο δισκο...</translation> </message> <message> <location line="-347"/> <source>Send coins to a Nationscoin address</source> <translation>Στείλε νομισματα σε μια διεύθυνση nationscoin</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for Nationscoin</source> <translation>Επεργασία ρυθμισεων επιλογών για το Nationscoin</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Δημιουργία αντιγράφου ασφαλείας πορτοφολιού σε άλλη τοποθεσία</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Αλλαγή του κωδικού κρυπτογράφησης του πορτοφολιού</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>&amp;Παράθυρο αποσφαλμάτωσης</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Άνοιγμα κονσόλας αποσφαλμάτωσης και διαγνωστικών</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;Επιβεβαίωση μηνύματος</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>Nationscoin</source> <translation>Nationscoin</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Πορτοφόλι</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>&amp;Αποστολή</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>&amp;Παραλαβή </translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>&amp;Διεύθυνσεις</translation> </message> <message> <location line="+22"/> <source>&amp;About Nationscoin</source> <translation>&amp;Σχετικα:Nationscoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Εμφάνισε/Κρύψε</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>Εμφάνιση ή αποκρύψη του κεντρικου παράθυρου </translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>Κρυπτογραφήστε τα ιδιωτικά κλειδιά που ανήκουν στο πορτοφόλι σας </translation> </message> <message> <location line="+7"/> <source>Sign messages with your Nationscoin addresses to prove you own them</source> <translation>Υπογράψτε ένα μήνυμα για να βεβαιώσετε πως είστε ο κάτοχος αυτής της διεύθυνσης</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified Nationscoin addresses</source> <translation>Υπογράψτε ένα μήνυμα για ν&apos; αποδείξετε πως ανήκει μια συγκεκριμένη διεύθυνση Nationscoin</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Αρχείο</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Ρυθμίσεις</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Βοήθεια</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Εργαλειοθήκη καρτελών</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>Nationscoin client</source> <translation>Πελάτης Nationscoin</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to Nationscoin network</source> <translation><numerusform>%n ενεργή σύνδεση στο δίκτυο Nationscoin</numerusform><numerusform>%n ενεργές συνδέσεις στο δίκτυο Βitcoin</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation>Η πηγή του μπλοκ δεν ειναι διαθέσιμη... </translation> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>Μεταποιημένα %1 απο % 2 (κατ &apos;εκτίμηση) μπλοκ της ιστορίας της συναλλαγής. </translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>Έγινε λήψη %1 μπλοκ ιστορικού συναλλαγών</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n ώρες </numerusform><numerusform>%n ώρες </numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n ημέρες </numerusform><numerusform>%n ημέρες </numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n εβδομαδες</numerusform><numerusform>%n εβδομαδες</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>%1 πίσω</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>Το τελευταίο μπλοκ που ελήφθη δημιουργήθηκε %1 πριν.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>Οι συναλλαγές μετά από αυτό δεν θα είναι ακόμη ορατες.</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>Σφάλμα</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Προειδοποίηση</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Πληροφορία</translation> </message> <message> <location line="+70"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Η συναλλαγή ξεπερνάει το όριο. Μπορεί να ολοκληρωθεί με μια αμοιβή των %1, η οποία αποδίδεται στους κόμβους που επεξεργάζονται τις συναλλαγές και βοηθούν στην υποστήριξη του δικτύου. Θέλετε να συνεχίσετε;</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Ενημερωμένο</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Ενημέρωση...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Επιβεβαίωση αμοιβής συναλλαγής</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Η συναλλαγή απεστάλη</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Εισερχόμενη συναλλαγή</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Ημερομηνία: %1 Ποσό: %2 Τύπος: %3 Διεύθυνση: %4 </translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>Χειρισμός URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid Nationscoin address or malformed URI parameters.</source> <translation>Το URI δεν μπορεί να αναλυθεί! Αυτό μπορεί να προκληθεί από μια μη έγκυρη διεύθυνση Nationscoin ή ακατάλληλη παραμέτρο URI.</translation> </message> <message> <location line="+17"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Το πορτοφόλι είναι &lt;b&gt;κρυπτογραφημένο&lt;/b&gt; και &lt;b&gt;ξεκλείδωτο&lt;/b&gt;</translation> </message> <message> <location line="+8"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Το πορτοφόλι είναι &lt;b&gt;κρυπτογραφημένο&lt;/b&gt; και &lt;b&gt;κλειδωμένο&lt;/b&gt;</translation> </message> <message> <location filename="../nationscoin.cpp" line="+111"/> <source>A fatal error occurred. Nationscoin can no longer continue safely and will quit.</source> <translation>Παρουσιάστηκε ανεπανόρθωτο σφάλμα. Το Nationscoin δεν μπορεί πλέον να συνεχίσει με ασφάλεια και θα τερματισθει.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>Ειδοποίηση Δικτύου</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Επεξεργασία Διεύθυνσης</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Επιγραφή</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Η επιγραφή που σχετίζεται με αυτή την καταχώρηση του βιβλίου διευθύνσεων</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Διεύθυνση</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Η διεύθυνση που σχετίζεται με αυτή την καταχώρηση του βιβλίου διευθύνσεων. Μπορεί να τροποποιηθεί μόνο για τις διευθύνσεις αποστολής.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Νέα διεύθυνση λήψης</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Νέα διεύθυνση αποστολής</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Επεξεργασία διεύθυνσης λήψης</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Επεξεργασία διεύθυνσης αποστολής</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Η διεύθυνση &quot;%1&quot; βρίσκεται ήδη στο βιβλίο διευθύνσεων.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Nationscoin address.</source> <translation>Η διεύθυνση &quot;%1&quot; δεν είναι έγκυρη Nationscoin διεύθυνση.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Δεν είναι δυνατό το ξεκλείδωμα του πορτοφολιού.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Η δημιουργία νέου κλειδιού απέτυχε.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>Nationscoin-Qt</source> <translation>nationscoin-qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>έκδοση</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Χρήση:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>επιλογής γραμμής εντολών</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>επιλογές UI</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Όρισε γλώσσα, για παράδειγμα &quot;de_DE&quot;(προεπιλογή:τοπικές ρυθμίσεις)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Έναρξη ελαχιστοποιημένο</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Εμφάνισε την οθόνη εκκίνησης κατά την εκκίνηση(προεπιλογή:1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Ρυθμίσεις</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Κύριο</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB.</source> <translation>Η προαιρετική αμοιβή για κάθε kB επισπεύδει την επεξεργασία των συναλλαγών σας. Οι περισσότερες συναλλαγές είναι 1 kB. </translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Αμοιβή &amp;συναλλαγής</translation> </message> <message> <location line="+31"/> <source>Automatically start Nationscoin after logging in to the system.</source> <translation>Αυτόματη εκκίνηση του Nationscoin μετά την εισαγωγή στο σύστημα</translation> </message> <message> <location line="+3"/> <source>&amp;Start Nationscoin on system login</source> <translation>&amp;Έναρξη του Βιtcoin κατά την εκκίνηση του συστήματος</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>Επαναφορα όλων των επιλογων του πελάτη σε default.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>Επαναφορα ρυθμίσεων</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>&amp;Δίκτυο</translation> </message> <message> <location line="+6"/> <source>Automatically open the Nationscoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Αυτόματο άνοιγμα των θυρών Nationscoin στον δρομολογητή. Λειτουργεί μόνο αν ο δρομολογητής σας υποστηρίζει τη λειτουργία UPnP.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Απόδοση θυρών με χρήστη &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the Nationscoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Σύνδεση στο Nationscoin δίκτυο μέσω διαμεσολαβητή SOCKS4 (π.χ. για σύνδεση μέσω Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Σύνδεση μέσω διαμεσολαβητή SOCKS</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP διαμεσολαβητή:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Διεύθυνση IP του διαμεσολαβητή (π.χ. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Θύρα:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Θύρα διαμεσολαβητή</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;Έκδοση:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>SOCKS εκδοση του διαμεσολαβητη (e.g. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Παράθυρο</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Εμφάνιση μόνο εικονιδίου στην περιοχή ειδοποιήσεων κατά την ελαχιστοποίηση</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Ελαχιστοποίηση στην περιοχή ειδοποιήσεων αντί της γραμμής εργασιών</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Ελαχιστοποίηση αντί για έξοδο κατά το κλείσιμο του παραθύρου</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>Ε&amp;λαχιστοποίηση κατά το κλείσιμο</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>%Απεικόνιση</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Γλώσσα περιβάλλοντος εργασίας: </translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Nationscoin.</source> <translation>Εδώ μπορεί να ρυθμιστεί η γλώσσα διεπαφής χρήστη. Αυτή η ρύθμιση θα ισχύσει μετά την επανεκκίνηση του Nationscoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Μονάδα μέτρησης:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Διαλέξτε την προεπιλεγμένη υποδιαίρεση που θα εμφανίζεται όταν στέλνετε νομίσματα.</translation> </message> <message> <location line="+9"/> <source>Whether to show Nationscoin addresses in the transaction list or not.</source> <translation>Επιλέξτε αν θέλετε να εμφανίζονται οι διευθύνσεις Nationscoin στη λίστα συναλλαγών.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Εμφάνιση διευθύνσεων στη λίστα συναλλαγών</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;ΟΚ</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Ακύρωση</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Εφαρμογή</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>προεπιλογή</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>Επιβεβαιώση των επιλογων επαναφοράς </translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>Για ορισμένες ρυθμίσεις πρεπει η επανεκκίνηση να τεθεί σε ισχύ.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>Θέλετε να προχωρήσετε;</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Προειδοποίηση</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Nationscoin.</source> <translation>Αυτή η ρύθμιση θα ισχύσει μετά την επανεκκίνηση του Nationscoin.</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Φόρμα</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Nationscoin network after a connection is established, but this process has not completed yet.</source> <translation>Οι πληροφορίες που εμφανίζονται μπορεί να είναι ξεπερασμένες. Το πορτοφόλι σας συγχρονίζεται αυτόματα με το δίκτυο Nationscoin μετά από μια σύνδεση, αλλά αυτή η διαδικασία δεν έχει ακόμη ολοκληρωθεί. </translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Υπόλοιπο</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Ανεπιβεβαίωτες</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Πορτοφόλι</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>Ανώριμος</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Εξορυγμενο υπόλοιπο που δεν έχει ακόμα ωριμάσει </translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Πρόσφατες συναλλαγές&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Το τρέχον υπόλοιπο</translation> </message> <message> <location line="+29"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Το άθροισμα των συναλλαγών που δεν έχουν ακόμα επιβεβαιωθεί και δεν προσμετρώνται στο τρέχον υπόλοιπό σας</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>εκτός συγχρονισμού</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start nationscoin: click-to-pay handler</source> <translation>Δεν είναι δυνατή η εκκίνηση του Nationscoin: click-to-pay handler</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Κώδικας QR</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Αίτηση πληρωμής</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Ποσό:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Επιγραφή:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Μήνυμα:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Αποθήκευση ως...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Σφάλμα κατά την κωδικοποίηση του URI σε κώδικα QR</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>Το αναγραφόμενο ποσό δεν είναι έγκυρο, παρακαλούμε να το ελέγξετε.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>Το αποτέλεσμα της διεύθυνσης είναι πολύ μεγάλο. Μειώστε το μέγεθος για το κείμενο της ετικέτας/ μηνύματος.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Αποθήκευση κώδικα QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>Εικόνες PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Όνομα Πελάτη</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+339"/> <source>N/A</source> <translation>Μη διαθέσιμο</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Έκδοση Πελάτη</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Πληροφορία</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Χρησιμοποιηση της OpenSSL εκδοσης</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Χρόνος εκκίνησης</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Δίκτυο</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Αριθμός συνδέσεων</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Στο testnet</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>αλυσίδα εμποδισμού</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Τρέχον αριθμός μπλοκ</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Κατ&apos; εκτίμηση συνολικά μπλοκς</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Χρόνος τελευταίου μπλοκ</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Άνοιγμα</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>επιλογής γραμμής εντολών</translation> </message> <message> <location line="+7"/> <source>Show the Nationscoin-Qt help message to get a list with possible Nationscoin command-line options.</source> <translation>Εμφανιση του Nationscoin-Qt μήνυματος βοήθειας για να πάρετε μια λίστα με τις πιθανές επιλογές Nationscoin γραμμής εντολών.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Εμφάνιση</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Κονσόλα</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Ημερομηνία κατασκευής</translation> </message> <message> <location line="-104"/> <source>Nationscoin - Debug window</source> <translation>Nationscoin - Παράθυρο αποσφαλμάτωσης</translation> </message> <message> <location line="+25"/> <source>Nationscoin Core</source> <translation>Nationscoin Core</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Αρχείο καταγραφής εντοπισμού σφαλμάτων </translation> </message> <message> <location line="+7"/> <source>Open the Nationscoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Ανοίξτε το αρχείο καταγραφής εντοπισμού σφαλμάτων από τον τρέχοντα κατάλογο δεδομένων. Αυτό μπορεί να πάρει μερικά δευτερόλεπτα για τα μεγάλα αρχεία καταγραφής. </translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Καθαρισμός κονσόλας</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the Nationscoin RPC console.</source> <translation>Καλώς ήρθατε στην Nationscoin RPC κονσόλα.</translation> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Χρησιμοποιήστε το πάνω και κάτω βέλος για να περιηγηθείτε στο ιστορικο, και &lt;b&gt;Ctrl-L&lt;/b&gt; για εκκαθαριση οθονης.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Γράψτε &lt;b&gt;βοήθεια&lt;/b&gt; για μια επισκόπηση των διαθέσιμων εντολών</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+124"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>Αποστολή νομισμάτων</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Αποστολή σε πολλούς αποδέκτες ταυτόχρονα</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Προσθήκη αποδέκτη</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Διαγραφή όλων των πεδίων συναλλαγής</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Καθαρισμός &amp;Όλων</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Υπόλοιπο:</translation> </message> <message> <location line="+10"/> <source>123.456 NTC</source> <translation>123,456 NTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Επιβεβαίωση αποστολής</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>Αποστολη</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-59"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; σε %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Επιβεβαίωση αποστολής νομισμάτων</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Είστε βέβαιοι για την αποστολή %1;</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>και</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>Η διεύθυνση του αποδέκτη δεν είναι σωστή. Παρακαλώ ελέγξτε ξανά.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Το ποσό πληρωμής πρέπει να είναι μεγαλύτερο από 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Το ποσό ξεπερνάει το διαθέσιμο υπόλοιπο</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Το σύνολο υπερβαίνει το υπόλοιπό σας όταν συμπεριληφθεί και η αμοιβή %1</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Βρέθηκε η ίδια διεύθυνση δύο φορές. Επιτρέπεται μία μόνο εγγραφή για κάθε διεύθυνση, σε κάθε διαδικασία αποστολής.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Σφάλμα: Η δημιουργία της συναλλαγής απέτυχε</translation> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Σφάλμα: Η συναλλαγή απερρίφθη. Αυτό ενδέχεται να συμβαίνει αν κάποια από τα νομίσματα έχουν ήδη ξοδευθεί, όπως αν χρησιμοποιήσατε αντίγραφο του wallet.dat και τα νομίσματα ξοδεύθηκαν εκεί.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Φόρμα</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>&amp;Ποσό:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Πληρωμή &amp;σε:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Διεύθυνση αποστολής της πληρωμής (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+60"/> <location filename="../sendcoinsentry.cpp" line="+26"/> <source>Enter a label for this address to add it to your address book</source> <translation>Εισάγετε μια επιγραφή για αυτή τη διεύθυνση ώστε να καταχωρηθεί στο βιβλίο διευθύνσεων</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Επιγραφή</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Επιλογή διεύθυνσης από το βιβλίο διευθύνσεων</translation> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Επικόλληση διεύθυνσης από το πρόχειρο</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation>Αφαίρεση αποδέκτη</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Nationscoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Εισάγετε μια διεύθυνση Nationscoin (π.χ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Υπογραφές - Είσοδος / Επαλήθευση μήνυματος </translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;Υπογραφή Μηνύματος</translation> </message> <message> <location line="+6"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Μπορείτε να υπογράφετε μηνύματα με τις διευθύνσεις σας, ώστε ν&apos; αποδεικνύετε πως αυτές σας ανήκουν. Αποφεύγετε να υπογράφετε κάτι αόριστο καθώς ενδέχεται να εξαπατηθείτε. Υπογράφετε μόνο πλήρης δηλώσεις με τις οποίες συμφωνείτε.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Εισάγετε μια διεύθυνση Nationscoin (π.χ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Επιλογή διεύθυνσης από το βιβλίο διευθύνσεων</translation> </message> <message> <location line="-203"/> <location line="+213"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-203"/> <source>Paste address from clipboard</source> <translation>Επικόλληση διεύθυνσης από το βιβλίο διευθύνσεων</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>Εισάγετε εδώ το μήνυμα που θέλετε να υπογράψετε</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>Υπογραφή</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>Αντέγραφη της επιλεγμενης διεύθυνσης στο πρόχειρο του συστηματος</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Nationscoin address</source> <translation>Υπογράψτε ένα μήνυμα για ν&apos; αποδείξετε πως σας ανήκει μια συγκεκριμένη διεύθυνση Nationscoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Υπογραφη μήνυματος</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>Επαναφορά όλων των πεδίων μήνυματος</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Καθαρισμός &amp;Όλων</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>&amp;Επιβεβαίωση μηνύματος</translation> </message> <message> <location line="+6"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>Πληκτρολογήστε την υπογραφή διεύθυνσης, μήνυμα (βεβαιωθείτε ότι έχετε αντιγράψει τις αλλαγές γραμμής, κενά, tabs, κ.λπ. ακριβώς) και την υπογραφή παρακάτω, για να ελέγξει το μήνυμα. Να είστε προσεκτικοί για να μην διαβάσετε περισσότερα στην υπογραφή ό, τι είναι στην υπογραφή ίδιο το μήνυμα , για να μην εξαπατηθούν από έναν άνθρωπο -in - the-middle επίθεση.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Εισάγετε μια διεύθυνση Nationscoin (π.χ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Nationscoin address</source> <translation>Υπογράψτε ένα μήνυμα για ν&apos; αποδείξετε πως υπογραφθηκε απο μια συγκεκριμένη διεύθυνση Nationscoin</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>Επιβεβαίωση μηνύματος</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>Επαναφορά όλων επαλήθευμενων πεδίων μήνυματος </translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Nationscoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Εισάγετε μια διεύθυνση Nationscoin (π.χ. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Κάντε κλικ στο &quot;Υπογραφή Μηνύματος&quot; για να λάβετε την υπογραφή</translation> </message> <message> <location line="+3"/> <source>Enter Nationscoin signature</source> <translation>Εισαγωγή υπογραφής Nationscoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Η διεύθυνση που εισήχθη είναι λάθος.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Παρακαλούμε ελέγξτε την διεύθυνση και δοκιμάστε ξανά.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Η διεύθυνση που έχει εισαχθεί δεν αναφέρεται σε ένα πλήκτρο.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>το ξεκλείδωμα του πορτοφολιού απέτυχε</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Το προσωπικό κλειδί εισαγμενης διευθυνσης δεν είναι διαθέσιμο.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Η υπογραφή του μηνύματος απέτυχε.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Μήνυμα υπεγράφη.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>Η υπογραφή δεν μπόρεσε να αποκρυπτογραφηθεί.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Παρακαλούμε ελέγξτε την υπογραφή και δοκιμάστε ξανά.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>Η υπογραφή δεν ταιριάζει με το μήνυμα. </translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Η επιβεβαίωση του μηνύματος απέτυχε</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Μήνυμα επιβεβαιώθηκε.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The Nationscoin developers</source> <translation>Οι Nationscoin προγραμματιστές </translation> </message> <message> <location line="+1"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+20"/> <source>Open until %1</source> <translation>Ανοιχτό μέχρι %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/χωρίς σύνδεση;</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/χωρίς επιβεβαίωση</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 επιβεβαιώσεις</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Κατάσταση</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform><numerusform>, έχει μεταδοθεί μέσω %n κόμβων</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Ημερομηνία</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Πηγή</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Δημιουργία </translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Από</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Προς</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation> δική σας διεύθυνση </translation> </message> <message> <location line="-2"/> <source>label</source> <translation>eπιγραφή</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Πίστωση </translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform><numerusform>ωρίμανση σε %n επιπλέον μπλοκ</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>μη αποδεκτό</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Debit</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Τέλος συναλλαγής </translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Καθαρό ποσό</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Μήνυμα</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Σχόλιο:</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID Συναλλαγής:</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>Πρέπει να περιμένετε 120 μπλοκ πριν μπορέσετε να χρησιμοποιήσετε τα νομίσματα που έχετε δημιουργήσει. Το μπλοκ που δημιουργήσατε μεταδόθηκε στο δίκτυο για να συμπεριληφθεί στην αλυσίδα των μπλοκ. Αν δεν μπει σε αυτή θα μετατραπεί σε &quot;μη αποδεκτό&quot; και δε θα μπορεί να καταναλωθεί. Αυτό συμβαίνει σπάνια όταν κάποιος άλλος κόμβος δημιουργήσει ένα μπλοκ λίγα δευτερόλεπτα πριν από εσάς.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Πληροφορίες αποσφαλμάτωσης</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Συναλλαγή</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>εισροές </translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Ποσό</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>αληθής</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>αναληθής </translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, δεν έχει ακόμα μεταδοθεί μ&apos; επιτυχία</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>άγνωστο</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Λεπτομέρειες συναλλαγής</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Αυτό το παράθυρο δείχνει μια λεπτομερή περιγραφή της συναλλαγής</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Ημερομηνία</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Τύπος</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Διεύθυνση</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Ποσό</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>Ανοιχτό για %n μπλοκ</numerusform><numerusform>Ανοιχτό για %n μπλοκ</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Ανοιχτό μέχρι %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Χωρίς σύνδεση (%1 επικυρώσεις)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Χωρίς επιβεβαίωση (%1 από %2 επικυρώσεις)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Επικυρωμένη (%1 επικυρώσεις)</translation> </message> <message numerus="yes"> <location line="+8"/> <source>Mined balance will be available when it matures in %n more block(s)</source> <translation><numerusform>Το υπόλοιπο από την εξόρυξη θα είναι διαθέσιμο μετά από %n μπλοκ</numerusform><numerusform>Το υπόλοιπο από την εξόρυξη θα είναι διαθέσιμο μετά από %n μπλοκ</numerusform></translation> </message> <message> <location line="+5"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Αυτό το μπλοκ δεν έχει παραληφθεί από κανέναν άλλο κόμβο και κατά πάσα πιθανότητα θα απορριφθεί!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Δημιουργήθηκε αλλά απορρίφθηκε</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Παραλαβή με</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Ελήφθη από</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Αποστολή προς</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Πληρωμή προς εσάς</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Εξόρυξη</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(δ/α)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Κατάσταση συναλλαγής. Πηγαίνετε το ποντίκι πάνω από αυτό το πεδίο για να δείτε τον αριθμό των επικυρώσεων</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Ημερομηνία κι ώρα λήψης της συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Είδος συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Διεύθυνση αποστολής της συναλλαγής.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Ποσό που αφαιρέθηκε ή προστέθηκε στο υπόλοιπο.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Όλα</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Σήμερα</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Αυτή την εβδομάδα</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Αυτόν τον μήνα</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Τον προηγούμενο μήνα</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Αυτό το έτος</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Έκταση...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Ελήφθη με</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Απεστάλη προς</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Προς εσάς</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Εξόρυξη</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Άλλο</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Αναζήτηση με βάση τη διεύθυνση ή την επιγραφή</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Ελάχιστο ποσό</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Αντιγραφή διεύθυνσης</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Αντιγραφή επιγραφής</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Αντιγραφή ποσού</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Αντιγραφη του ID Συναλλαγής</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Επεξεργασία επιγραφής</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Εμφάνιση λεπτομερειών συναλλαγής</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Εξαγωγή Στοιχείων Συναλλαγών</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Αρχείο οριοθετημένο με κόμματα (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Επικυρωμένες</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Ημερομηνία</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Τύπος</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Επιγραφή</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Διεύθυνση</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Ποσό</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Σφάλμα εξαγωγής</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Αδυναμία εγγραφής στο αρχείο %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Έκταση:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>έως</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Αποστολή νομισμάτων</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation>&amp;Εξαγωγή</translation> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Εξαγωγή δεδομένων καρτέλας σε αρχείο</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>Αντίγραφο ασφαλείας του πορτοφολιού</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Αρχεία δεδομένων πορτοφολιού (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Αποτυχία κατά τη δημιουργία αντιγράφου</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Παρουσιάστηκε σφάλμα κατά την αποθήκευση των δεδομένων πορτοφολιού στη νέα τοποθεσία.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>Η δημιουργια αντιγραφου ασφαλειας πετυχε</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>Τα δεδομένα πορτοφόλιου αποθηκεύτηκαν με επιτυχία στη νέα θέση. </translation> </message> </context> <context> <name>nationscoin-core</name> <message> <location filename="../nationscoinstrings.cpp" line="+94"/> <source>Nationscoin version</source> <translation>Έκδοση Nationscoin</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Χρήση:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or nationscoind</source> <translation>Αποστολή εντολής στον εξυπηρετητή ή στο nationscoind</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Λίστα εντολών</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Επεξήγηση εντολής</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Επιλογές:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: nationscoin.conf)</source> <translation>Ορίστε αρχείο ρυθμίσεων (προεπιλογή: nationscoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: nationscoind.pid)</source> <translation>Ορίστε αρχείο pid (προεπιλογή: nationscoind.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Ορισμός φακέλου δεδομένων</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Όρισε το μέγεθος της βάσης προσωρινής αποθήκευσης σε megabytes(προεπιλογή:25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9335 or testnet: 19335)</source> <translation>Εισερχόμενες συνδέσεις στη θύρα &lt;port&gt; (προεπιλογή: 9335 ή στο testnet: 19335)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Μέγιστες αριθμός συνδέσεων με τους peers &lt;n&gt; (προεπιλογή: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Σύνδεση σε έναν κόμβο για την ανάκτηση διευθύνσεων από ομοτίμους, και αποσυνδέσh</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>Διευκρινίστε τη δικιά σας δημόσια διεύθυνση.</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Όριο αποσύνδεσης προβληματικών peers (προεπιλογή: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Δευτερόλεπτα πριν επιτραπεί ξανά η σύνδεση των προβληματικών peers (προεπιλογή: 86400)</translation> </message> <message> <location line="-29"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η πόρτα RPC %u για αναμονή IPv4: %s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9334 or testnet: 19334)</source> <translation>Εισερχόμενες συνδέσεις JSON-RPC στη θύρα &lt;port&gt; (προεπιλογή: 9334 or testnet: 19334)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Αποδοχή εντολών κονσόλας και JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Εκτέλεση στο παρασκήνιο κι αποδοχή εντολών</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Χρήση του δοκιμαστικού δικτύου</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Να δέχεσαι συνδέσεις από έξω(προεπιλογή:1)</translation> </message> <message> <location line="-80"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=nationscoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Nationscoin Alert&quot; admin@foo.com </source> <translation>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=nationscoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Nationscoin Alert&quot; admin@foo.com </translation> </message> <message> <location line="+17"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>Ένα σφάλμα συνέβη καθώς προετοιμαζόταν η υποδοχη RPC %u για αναμονη του IPv6, επεσε πισω στο IPv4:%s</translation> </message> <message> <location line="+3"/> <source>Bind to given address and always listen on it. Use [host]:port notation for IPv6</source> <translation>Αποθηκευση σε συγκεκριμένη διεύθυνση. Χρησιμοποιήστε τα πλήκτρα [Host] : συμβολισμός θύρα για IPv6</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. Nationscoin is probably already running.</source> <translation>Αδυναμία κλειδώματος του φακέλου δεδομένων %s. Πιθανώς το Nationscoin να είναι ήδη ενεργό.</translation> </message> <message> <location line="+3"/> <source>Error: The transaction was rejected! This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Σφάλμα: Η συναλλαγή απορρίφθηκε. Αυτό ίσως οφείλεται στο ότι τα νομίσματά σας έχουν ήδη ξοδευτεί, π.χ. με την αντιγραφή του wallet.dat σε άλλο σύστημα και την χρήση τους εκεί, χωρίς η συναλλαγή να έχει καταγραφεί στο παρόν σύστημα.</translation> </message> <message> <location line="+4"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds!</source> <translation>Σφάλμα: Αυτή η συναλλαγή απαιτεί αμοιβή συναλλαγής τουλάχιστον %s λόγω του μεγέθους, πολυπλοκότητας ή της χρήσης πρόσφατης παραλαβής κεφαλαίου</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Εκτέλεση της εντολής όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Ορίστε το μέγιστο μέγεθος των high-priority/low-fee συναλλαγων σε bytes (προεπιλογή: 27000)</translation> </message> <message> <location line="+6"/> <source>This is a pre-release test build - use at your own risk - do not use for mining or merchant applications</source> <translation>Αυτό είναι ένα προ-τεστ κυκλοφορίας - χρησιμοποιήστε το με δική σας ευθύνη - δεν χρησιμοποιείτε για εξόρυξη ή για αλλες εφαρμογές</translation> </message> <message> <location line="+5"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Προειδοποίηση: Η παράμετρος -paytxfee είναι πολύ υψηλή. Πρόκειται για την αμοιβή που θα πληρώνετε για κάθε συναλλαγή που θα στέλνετε.</translation> </message> <message> <location line="+3"/> <source>Warning: Displayed transactions may not be correct! You may need to upgrade, or other nodes may need to upgrade.</source> <translation>Προειδοποίηση: Εμφανίσεις συναλλαγων δεν μπορεί να είναι σωστες! Μπορεί να χρειαστεί να αναβαθμίσετε, ή άλλοι κόμβοι μπορεί να χρειαστεί να αναβαθμίστουν. </translation> </message> <message> <location line="+3"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Nationscoin will not work properly.</source> <translation>Προειδοποίηση: Παρακαλώ βεβαιωθείτε πως η ημερομηνία κι ώρα του συστήματός σας είναι σωστές. Αν το ρολόι του υπολογιστή σας πάει λάθος, ενδέχεται να μη λειτουργεί σωστά το Nationscoin.</translation> </message> <message> <location line="+3"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Προειδοποίηση : Σφάλμα wallet.dat κατα την ανάγνωση ! Όλα τα κλειδιά αναγνωρισθηκαν σωστά, αλλά τα δεδομένα των συναλλαγών ή καταχωρήσεις στο βιβλίο διευθύνσεων μπορεί να είναι ελλιπείς ή λανθασμένα. </translation> </message> <message> <location line="+3"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Προειδοποίηση : το αρχειο wallet.dat ειναι διεφθαρμένο, τα δεδομένα σώζονται ! Original wallet.dat αποθηκεύονται ως πορτοφόλι { timestamp } bak στο % s ? . . Αν το υπόλοιπο του ή τις συναλλαγές σας, είναι λάθος θα πρέπει να επαναφέρετε από ένα αντίγραφο ασφαλείας</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Προσπάθεια για ανακτησει ιδιωτικων κλειδιων από ενα διεφθαρμένο αρχειο wallet.dat </translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>Αποκλεισμός επιλογων δημιουργίας: </translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Σύνδεση μόνο με ορισμένους κόμβους</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>Εντοπισθηκε διεφθαρμενη βαση δεδομενων των μπλοκ</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Ανακαλύψτε την δικη σας IP διεύθυνση (προεπιλογή: 1 όταν ακούει και δεν - externalip) </translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>Θελετε να δημιουργηθει τωρα η βαση δεδομενων του μπλοκ? </translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>Σφάλμα κατά την ενεργοποίηση της βάσης δεδομένων μπλοκ</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>Σφάλμα κατά την ενεργοποίηση της βάσης δεδομένων πορτοφόλιου %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>Σφάλμα φορτωσης της βασης δεδομενων των μπλοκ</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>Σφάλμα φορτωσης της βασης δεδομενων των μπλοκ</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>Προειδοποίηση: Χαμηλός χώρος στο δίσκο </translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Σφάλμα: το πορτοφόλι είναι κλειδωμένο, δεν μπορεί να δημιουργηθεί συναλλαγή</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>Λάθος: λάθος συστήματος:</translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>ταλαιπωρηθειτε για να ακούσετε σε οποιαδήποτε θύρα. Χρήση - ακούστε = 0 , αν θέλετε αυτό.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>Αποτυχία αναγνωσης των block πληροφοριων</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>Η αναγνωση του μπλοκ απετυχε</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>Ο συγχρονισμος του μπλοκ ευρετηριου απετυχε</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>Η δημιουργια του μπλοκ ευρετηριου απετυχε</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>Η δημιουργια των μπλοκ πληροφοριων απετυχε</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>Η δημιουργια του μπλοκ απετυχε</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>Αδυναμία εγγραφής πληροφοριων αρχειου</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>Αποτυχία εγγραφής στη βάση δεδομένων νομίσματος</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>Αποτυχία εγγραφής δείκτη συναλλαγών </translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>Αποτυχία εγγραφής αναίρεσης δεδομένων </translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>Βρες ομότιμους υπολογιστές χρησιμοποιώντας αναζήτηση DNS(προεπιλογή:1)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation>Δημιουργία νομισμάτων (προκαθορισμος: 0)</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>Πόσα μπλοκ να ελέγχθουν κατά την εκκίνηση (προεπιλογή:288,0=όλα)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>Πόσο εξονυχιστική να είναι η επιβεβαίωση του μπλοκ(0-4, προεπιλογή:3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation>Δεν ειναι αρκετες περιγραφες αρχείων διαθέσιμες.</translation> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Εισαγωγή μπλοκ από εξωτερικό αρχείο blk000?.dat</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>Ορίσμος του αριθμόυ θεματων στην υπηρεσία κλήσεων RPC (προεπιλογή: 4) </translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>Επαλήθευση των μπλοκ... </translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>Επαλήθευση πορτοφολιου... </translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>Εισαγωγή μπλοκ από εξωτερικό αρχείο blk000?.dat</translation> </message> <message> <location line="-76"/> <source>Set the number of script verification threads (up to 16, 0 = auto, &lt;0 = leave that many cores free, default: 0)</source> <translation>Ορίσμος του αριθμό των νημάτων ελέγχου σεναρίου (μέχρι 16, 0 = auto, &lt;0 = αφήνουν τους πολλους πυρήνες δωρεάν, default: 0)</translation> </message> <message> <location line="+77"/> <source>Information</source> <translation>Πληροφορία</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>Διατηρήση ένος πλήρες ευρετήριου συναλλαγών (προεπιλογή: 0) </translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Μέγιστος buffer λήψης ανά σύνδεση, &lt;n&gt;*1000 bytes (προεπιλογή: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Μέγιστος buffer αποστολής ανά σύνδεση, &lt;n&gt;*1000 bytes (προεπιλογή: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>Μονο αποδοχη αλυσίδας μπλοκ που ταιριάζει με τα ενσωματωμένα σημεία ελέγχου (προεπιλογή: 1) </translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation> Συνδέση μόνο σε κόμβους του δικτύου &lt;net&gt; (IPv4, IPv6 ή Tor) </translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Έξοδος επιπλέον πληροφοριών εντοπισμού σφαλμάτων</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Έξοδος επιπλέον πληροφοριών εντοπισμού σφαλμάτων</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Χρονοσφραγίδα πληροφοριών εντοπισμού σφαλμάτων</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the Nationscoin Wiki for SSL setup instructions)</source> <translation>Ρυθμίσεις SSL: (ανατρέξτε στο Nationscoin Wiki για οδηγίες ρυθμίσεων SSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Επιλέξτε την έκδοση του διαμεσολαβητη για να χρησιμοποιήσετε (4-5 , προεπιλογή: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Αποστολή πληροφοριών εντοπισμού σφαλμάτων στην κονσόλα αντί του αρχείου debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Αποστολή πληροφοριών εντοπισμού σφαλμάτων στον debugger</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Ορίσμος του μέγιστου μέγεθος block σε bytes (προεπιλογή: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Ορίστε το μέγιστο μέγεθος block σε bytes (προεπιλογή: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Συρρίκνωση του αρχείο debug.log κατα την εκκίνηση του πελάτη (προεπιλογή: 1 όταν δεν-debug)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation>Η υπογραφή συναλλαγής απέτυχε </translation> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Ορισμός λήξης χρονικού ορίου σε χιλιοστά του δευτερολέπτου(προεπιλογή:5000)</translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>Λάθος Συστήματος:</translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation>Το ποσό της συναλλαγής είναι πολύ μικρο </translation> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation>Τα ποσά των συναλλαγών πρέπει να είναι θετικα</translation> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation>Η συναλλαγή ειναι πολύ μεγάλη </translation> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Χρησιμοποίηση του UPnP για την χρήση της πόρτας αναμονής (προεπιλογή:1)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Χρήση διακομιστή μεσολάβησης για την επίτευξη των Tor κρυμμένων υπηρεσιων (προεπιλογή: ίδιο με το-proxy) </translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Όνομα χρήστη για τις συνδέσεις JSON-RPC</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>Προειδοποίηση</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Προειδοποίηση: Αυτή η έκδοση είναι ξεπερασμένη, απαιτείται αναβάθμιση </translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>Θα πρέπει να ξαναχτίστουν οι βάσεις δεδομένων που χρησιμοποιούντε-Αναδημιουργία αλλάγων-txindex </translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>Το αρχειο wallet.dat ειναι διεφθαρμένο, η διάσωση απέτυχε</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Κωδικός για τις συνδέσεις JSON-RPC</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Αποδοχή συνδέσεων JSON-RPC από συγκεκριμένη διεύθυνση IP</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Αποστολή εντολών στον κόμβο &lt;ip&gt; (προεπιλογή: 127.0.0.1)</translation> </message> <message> <location line="-120"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>Εκτέλεσε την εντολή όταν το καλύτερο μπλοκ αλλάξει(%s στην εντολή αντικαθίσταται από το hash του μπλοκ)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Αναβάθμισε το πορτοφόλι στην τελευταία έκδοση</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Όριο πλήθους κλειδιών pool &lt;n&gt; (προεπιλογή: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Επανέλεγχος της αλυσίδας μπλοκ για απούσες συναλλαγές</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Χρήση του OpenSSL (https) για συνδέσεις JSON-RPC</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Αρχείο πιστοποιητικού του διακομιστή (προεπιλογή: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Προσωπικό κλειδί του διακομιστή (προεπιλογή: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Αποδεκτά κρυπτογραφήματα (προεπιλογή: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Αυτό το κείμενο βοήθειας</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή (bind returned error %d, %s) </translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Σύνδεση μέσω διαμεσολαβητή socks</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Να επιτρέπονται οι έλεγχοι DNS για προσθήκη και σύνδεση κόμβων</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Φόρτωση διευθύνσεων...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Σφάλμα φόρτωσης wallet.dat: Κατεστραμμένο Πορτοφόλι</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of Nationscoin</source> <translation>Σφάλμα φόρτωσης wallet.dat: Το Πορτοφόλι απαιτεί μια νεότερη έκδοση του Nationscoin</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart Nationscoin to complete</source> <translation>Απαιτείται η επανεγγραφή του Πορτοφολιού, η οποία θα ολοκληρωθεί στην επανεκκίνηση του Nationscoin</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Σφάλμα φόρτωσης αρχείου wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Δεν είναι έγκυρη η διεύθυνση διαμεσολαβητή: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Άγνωστo δίκτυο ορίζεται σε onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Άγνωστo δίκτυο ορίζεται: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Μη έγκυρο ποσό για την παράμετρο -paytxfee=&lt;amount&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Λάθος ποσότητα</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Ανεπαρκές κεφάλαιο</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Φόρτωση ευρετηρίου μπλοκ...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Προσέθεσε ένα κόμβο για σύνδεση και προσπάθησε να κρατήσεις την σύνδεση ανοιχτή</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. Nationscoin is probably already running.</source> <translation>Αδύνατη η σύνδεση με τη θύρα %s αυτού του υπολογιστή. Το Nationscoin είναι πιθανώς ήδη ενεργό.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Αμοιβή ανά KB που θα προστίθεται στις συναλλαγές που στέλνεις</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Φόρτωση πορτοφολιού...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Δεν μπορώ να υποβαθμίσω το πορτοφόλι</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Δεν μπορώ να γράψω την προεπιλεγμένη διεύθυνση</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Ανίχνευση...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Η φόρτωση ολοκληρώθηκε</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Χρήση της %s επιλογής</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Σφάλμα</translation> </message> <message> <location line="-31"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>Πρέπει να βάλεις ένα κωδικό στο αρχείο παραμέτρων: %s Εάν το αρχείο δεν υπάρχει, δημιούργησε το με δικαιώματα μόνο για ανάγνωση από τον δημιουργό</translation> </message> </context> </TS>
{ "content_hash": "43828be77c29787f07304a798cabb201", "timestamp": "", "source": "github", "line_count": 2941, "max_line_length": 428, "avg_line_length": 40.68582114926895, "alnum_prop": 0.641124213376568, "repo_name": "ibisservicios/nationscoin", "id": "315e5d51778f9124b0a01ec35383963e98c86a1b", "size": "138533", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_el_GR.ts", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "102129" }, { "name": "C++", "bytes": "2430219" }, { "name": "CSS", "bytes": "1127" }, { "name": "IDL", "bytes": "13836" }, { "name": "Objective-C", "bytes": "2734" }, { "name": "Python", "bytes": "69844" }, { "name": "Shell", "bytes": "9734" }, { "name": "TypeScript", "bytes": "5249581" } ], "symlink_target": "" }
using namespace std; namespace gogocconfig { // Type definitions. typedef list<string> stringlist; // ------------------------------------------------------------------------ class NameValueConfig : public Config { public: // Construction / destruction NameValueConfig ( const string& aFileName, const t_accessMode aEAccessMode ); virtual ~NameValueConfig ( void ); // NameValueConfig operations void GetVariableValue ( const string& aName, string& aValue ) const; void SetVariableValue ( const string& aName, const string& aValue ); void RemoveVariable ( const string& aName ); void GetVariableNameList ( stringlist& aList ) const; }; } #endif
{ "content_hash": "17a8dad67e4d5dbf5b4799d72ab077e9", "timestamp": "", "source": "github", "line_count": 27, "max_line_length": 103, "avg_line_length": 29.48148148148148, "alnum_prop": 0.5552763819095478, "repo_name": "kevinmark/gogoc-1_2", "id": "1402343c87cdde733a480f8027ac743ce120d87c", "size": "1613", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "gogoc-config/gogocconfig/namevalueconfig.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "C", "bytes": "717539" }, { "name": "C++", "bytes": "336387" }, { "name": "Objective-C", "bytes": "3408" }, { "name": "Shell", "bytes": "112949" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "9b880698543afef2779ae128a1407dc0", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "2bca8aba73460f93c18beb0bf3f7638e86171503", "size": "190", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Cycadophyta/Cycadopsida/Cycadales/Zamiaceae/Zamia/Zamia cylindrica/Zamia cylindrica angustifolia/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<?php namespace MicrosoftAzure\Storage\Table\Models; use MicrosoftAzure\Storage\Common\Internal\Resources; use MicrosoftAzure\Storage\Common\Internal\Utilities; use MicrosoftAzure\Storage\Common\Internal\Validate; use MicrosoftAzure\Storage\Common\ServiceException; /** * Represents an error returned from call to batch API. * * @category Microsoft * @package MicrosoftAzure\Storage\Table\Models * @author Azure Storage PHP SDK <dmsh@microsoft.com> * @copyright 2016 Microsoft Corporation * @license https://github.com/azure/azure-storage-php/LICENSE * @version Release: 0.10.2 * @link https://github.com/azure/azure-storage-php */ class BatchError { /** * @var MicrosoftAzure\Storage\Common\ServiceException */ private $_error; /** * @var integer */ private $_contentId; /** * Creates BatchError object. * * @param MicrosoftAzure\Storage\Common\ServiceException $error The error object. * @param array $headers The response headers. * * @return \MicrosoftAzure\Storage\Table\Models\BatchError */ public static function create($error, $headers) { Validate::isTrue( $error instanceof ServiceException, Resources::INVALID_EXC_OBJ_MSG ); Validate::isArray($headers, 'headers'); $result = new BatchError(); $clean = array_change_key_case($headers); $result->setError($error); $contentId = Utilities::tryGetValue($clean, Resources::CONTENT_ID); $result->setContentId(is_null($contentId) ? null : intval($contentId)); return $result; } /** * Gets the error. * * @return MicrosoftAzure\Storage\Common\ServiceException */ public function getError() { return $this->_error; } /** * Sets the error. * * @param MicrosoftAzure\Storage\Common\ServiceException $error The error object. * * @return none */ public function setError($error) { $this->_error = $error; } /** * Gets the contentId. * * @return integer */ public function getContentId() { return $this->_contentId; } /** * Sets the contentId. * * @param integer $contentId The contentId object. * * @return none */ public function setContentId($contentId) { $this->_contentId = $contentId; } }
{ "content_hash": "69071f67604d33c4ed71fb3258e78049", "timestamp": "", "source": "github", "line_count": 105, "max_line_length": 87, "avg_line_length": 24.304761904761904, "alnum_prop": 0.5967868338557993, "repo_name": "ifintech/phplib", "id": "95055b9cffaeb3b8acc7f79ca64315e9b503c2e0", "size": "3410", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Ext/Azure/vendor/microsoft/azure-storage/src/Table/Models/BatchError.php", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "108359" }, { "name": "PHP", "bytes": "8092651" } ], "symlink_target": "" }
<script src="content/js/script.js"></script> <div class="content-wrapper"> <section class="content-header"> <h1 id="myPropertyLabel" data-translate="assessoriaTorrellesApp.property.home.createOrEditLabel">Create or edit a Property <small>{{VERSION}}</small> </h1> <div ncy-breadcrumb></div> </section> <jhi-alert-error></jhi-alert-error> <section class="content"> <form name="editForm" role="form" novalidate ng-submit="vm.save()" show-validation> <div class="col-lg-6"> <div class="box box-success"> <div class="box-header"> <h3 class="box-title" data-translate="assessoriaTorrellesApp.property.admin.mainData">Datos principales</h3> </div> <div class="box-body"> <div class="form-group" ng-show="vm.property.id"> <label for="id" data-translate="global.field.id">ID</label> <input type="text" class="form-control" id="id" name="id" ng-model="vm.property.id" readonly/> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.name" for="field_name">Name</label> <input type="text" class="form-control" name="name" id="field_name" ng-model="vm.property.name" required/> <div ng-show="editForm.name.$invalid"> <p class="help-block" ng-show="editForm.name.$error.required" data-translate="entity.validation.required"> This field is required. </p> </div> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.price" for="field_price">Price</label> <input type="number" class="form-control" name="price" id="field_price" ng-model="vm.property.price" /> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.buildingType" for="field_buildingType">Building Type</label> <select class="form-control" name="buildingType" ng-model="vm.property.buildingType" id="field_buildingType"> <option value="HOUSE" data-translate="assessoriaTorrellesApp.BuildingType.HOUSE">HOUSE </option> <option value="FLAT" data-translate="assessoriaTorrellesApp.BuildingType.FLAT">FLAT </option> <option value="STUDIO" data-translate="assessoriaTorrellesApp.BuildingType.STUDIO"> STUDIO </option> </select> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.serviceType" for="field_serviceType">Service Type</label> <select class="form-control" name="serviceType" ng-model="vm.property.serviceType" id="field_serviceType"> <option value="RENT" data-translate="assessoriaTorrellesApp.ServiceType.RENT">RENT </option> <option value="SALE" data-translate="assessoriaTorrellesApp.ServiceType.SALE">SALE </option> <option value="RENT_AND_SALE" data-translate="assessoriaTorrellesApp.ServiceType.RENT_AND_SALE">RENT_AND_SALE </option> </select> </div> <div class="form-group"> <!-- <label class="control-label" data-translaassessoriaTorrellesAppsApp.property.ref" for="field_ref">Ref</label> <input type="text" class="form-control" name="ref" id="field_ref_prop" ng-model="vm.property.ref" required/>--> <div ng-show="editForm.ref.$invalid"> <p class="help-block" ng-show="editForm.ref.$error.required" data-translate="entity.validation.required"> This field is required. </p> </div> </div> <div class="form-group"> <input type="checkbox" ng-class="vm.property.visible === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="visible" id="field_visible" ng-model="vm.property.visible" /> &nbsp; <label class="control-label" data-translate="assessoriaTorrellesApp.property.visible" for="field_visible">Visible</label> </div> <div class="form-group"> <input type="checkbox" ng-class="vm.property.sold === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="sold" id="field_sold" ng-model="vm.property.sold" /> &nbsp; <label class="control-label" data-translate="assessoriaTorrellesApp.property.sold" for="field_sold">Sold</label> </div> <!--<div class="form-group">--> <!--<label data-translaassessoriaTorrellesAppsApp.property.location" for="field_location">Location</label>--> <!--<select class="form-control" id="field_location" name="location"--> <!--ng-model="vm.property.location"--> <!--ng-options="location as location.ref for location in vm.locations | orderBy:'id' track by location.id">--> <!--<option value=""></option>--> <!--</select>--> <!--</div>--> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.propertyDetail.description" for="field_description">Description</label> <textarea class="form-control textarea" name="description" id="field_description" ng-model="vm.property.description" placeholder="{{ 'assessoriaTorrellesApp.property.admin.descriptionInput' | translate }}" style="width: 100%; height: 200px; font-size: 14px; line-height: 18px; border: 1px solid #dddddd; padding: 10px;"></textarea> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="vm.clear()"> <span class="glyphicon glyphicon-ban-circle"></span>&nbsp;<span data-translate="entity.action.cancel">Cancel</span> </button> <button type="submit" ng-disabled="editForm.$invalid || vm.isSaving" class="btn btn-primary"> <span class="glyphicon glyphicon-save"></span>&nbsp;<span data-translate="entity.action.save">Save</span> </button> </div> </div> </div> <div class="col-lg-6"> <p>{{vm.imageStrings}}</p> <div class="box box-success" style="margin-top: -10px;"> <div class="box-header"> <h3 class="box-title" data-translate="assessoriaTorrellesApp.property.admin.facilities">Facilidades</h3> </div> <div class="box-body"> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.terrace === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="terrace" id="field_terrace" ng-model="vm.property.terrace" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.terrace" for="field_terrace">Terrace</label> </div> </div> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.furnished === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="furnished" id="field_furnished" ng-model="vm.property.furnished" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.furnished" for="field_furnished">Furnished</label> </div> </div> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.ac === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="ac" id="field_ac" ng-model="vm.property.ac" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.ac" for="field_ac">Ac</label> </div> </div> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.elevator === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="elevator" id="field_elevator" ng-model="vm.property.elevator" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.elevator" for="field_elevator">Elevator</label> </div> </div> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.pool === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="pool" id="field_pool" ng-model="vm.property.pool" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.pool" for="field_pool">Pool</label> </div> </div> <div class="col-lg-4"> <div class="form-group"> <input type="checkbox" ng-class="vm.property.garage === true ? 'icheckbox_flat-green checked' : 'icheckbox_flat-green'" name="garage" id="field_garage" ng-model="vm.property.garage" /> <label class="control-label" data-translate="assessoriaTorrellesApp.property.garage" for="field_garage">Garage</label> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.m2" for="field_m2">M 2</label> <input type="number" class="form-control" name="m2" id="field_m2" ng-model="vm.property.m2" /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.numberBedroom" for="field_numberBedroom">Number Bedroom</label> <input type="number" class="form-control" name="numberBedroom" id="field_numberBedroom" ng-model="vm.property.numberBedroom" /> </div> </div> <div class="col-lg-3"> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.numberWc" for="field_numberWc">Number Wc</label> <input type="number" class="form-control" name="numberWc" id="field_numberWc" ng-model="vm.property.numberWc" /> </div> </div> </div> </div> </div> <div class="col-lg-6"> <div class="box box-success"> <div class="box-header"> <h3 class="box-title" data-translate="assessoriaTorrellesApp.property.location">Localización</h3> </div> <div class="box-body"> <ng-map center="{{vm.location.latitude}},{{vm.location.longitude}}" zoom="16" on-click="pinClicked(this)" id="newPropMap"> <marker position="[{{vm.location.latitude}},{{vm.location.longitude}}]" title="Property Location"></marker> </ng-map> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.property.location">Address</label> <input type="text" class="form-control" ng-map-autocomplete ng-model="autocomplete" options="options" details="details" ng-change="console.log('asdas')"/> <button type="button" class="btn btn-success btn-block" ng-click="vm.setLatLon(details.geometry.location,details.adr_address);"> Locate</button> </div> <!--<div class="form-group"> <label class="control-label" data-translaassessoriaTorrellesAppsApp.location.ref" for="field_ref">Ref</label> <input type="text" class="form-control" name="ref" id="field_ref" ng-model="vm.location.ref"/> </div>--> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.location.province" for="field_province">Province</label> <input type="text" class="form-control" name="province" id="field_province" ng-model="vm.location.province" required /> <div ng-show="editForm.province.$invalid"> <p class="help-block" ng-show="editForm.province.$error.required" data-translate="entity.validation.required"> This field is required. </p> </div> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.location.town" for="field_town">Town</label> <input type="text" class="form-control" name="town" id="field_town" ng-model="vm.location.town" required/> <div ng-show="editForm.town.$invalid"> <p class="help-block" ng-show="editForm.town.$error.required" data-translate="entity.validation.required"> This field is required. </p> </div> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.location.latitude" for="field_latitude">Latitude</label> <input type="number" class="form-control" name="latitude" id="field_latitude" ng-model="vm.location.latitude" /> </div> <div class="form-group"> <label class="control-label" data-translate="assessoriaTorrellesApp.location.longitude" for="field_longitude">Longitude</label> <input type="number" class="form-control" name="longitude" id="field_longitude" ng-model="vm.location.longitude" /> </div> </div> </div> </div> <div class="container"> <!--{{vm.storedPhotos}}--> <!-- Hover-Fall Effect--> <div class="col-lg-12"> <div class="col-xs-6 col-sm-3" ng-repeat="x in vm.storedPhotos track by x.id"> <div class="fall-item fall-effect"> <img data-ng-src="{{'data:' + x.imageContentType + ';base64,' + x.image}}" width="300" height="300"/> <div class="mask"> <h2>{{x.name}}</h2> <!--<p>{{x.description}}</p>--> <br> <button type="button" class="btn btn-danger" ng-click="vm.deleteFile(x.id)">Delete</button> <button type="button" class="btn btn-success" ng-click="vm.makeCover(x.id)">Cover</button> </div> </div> <!--<h4 class="text-center">Hover-Fall</h4>--> </div> <!--<div class="col-xs-6 col-sm-3" ng-repeat="x in vm.storedPhotos track by x.id">--> <!--<img data-ng-src="{{'data:' + x.imageContentType + ';base64,' + x.image}}" width="300" height="300"/>--> <!--<div class="row text-center">--> <!--<button type="button" class="btn btn-alert" ng-click="vm.deleteFile(x.id)">Delete</button>--> <!--<button type="button" class="btn btn-info" ng-click="vm.makeCover(x.id)">Cover</button>--> <!--</div>--> <!--</div>--> </div> <!--{{vm.storedPhotos}}--> </div> <!--<div class="row">--> <!--<div class="col-lg-4" ng-repeat="x in vm.toUploadPhotos">--> <!--<div>--> <!--<label>{{x.name}}</label>--> <!--</div>--> <!--<div>--> <!--<img data-ng-src="{{'data:' + x.imageContentType + ';base64,' + x.image}}" style="max-height: 150px; max-width: 130px;"/>--> <!--</div>--> <!--</div>--> <!--</div>--> <div class="col-lg-12"> <h3> <a name="gallery-example" class="anchor" href="#gallery-example"><span class="octicon octicon-link"></span></a>Gallery upload </h3> <div flow-init flow-files-submitted="$flow.upload()" flow-file-added="!!{png:1,gif:1,jpg:1,jpeg:1}[$file.getExtension()]" flow-files-added="" > <div class="drop" flow-drop ng-class="dropClass"> <span class="btn btn-default" flow-btn>Upload Image</span> <span class="btn btn-default" flow-btn flow-directory ng-show="$flow.supportDirectory">Upload Folder of Images</span> <b>OR</b> <div class="dropZone">Drop files here</div> </div> <br/> <div> <div ng-repeat="file in $flow.files" class="gallery-box"> <span class="title">{{file.name}}</span> <div class="thumbnail" ng-show="$flow.files.length"> <img flow-img="file" width="50%" height="50%"/> </div> <div class="progress progress-striped" ng-class="{active: file.isUploading()}"> <div class="progress-bar" role="progressbar" aria-valuenow="{{file.progress() * 100}}" aria-valuemin="0" aria-valuemax="100" ng-style="{width: (file.progress() * 100) + '%'}"> <span class="sr-only">{{file.progress()}}% Complete</span> </div> </div> <div class="btn-group"> <a class="btn btn-xs btn-danger" ng-click="file.cancel()"> Remove </a> </div> </div> <br> <Button type="button" class="btn btn-success" ng-click="vm.addFiles($flow.files)">Add files</Button> <div class="clear"></div> </div> </div> </div> </form> </section> </div> <script> $(function () { //bootstrap WYSIHTML5 - text editor $(".textarea").wysihtml5(); }); //Flat red color scheme for iCheck $('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({ checkboxClass: 'icheckbox_flat-green', radioClass: 'iradio_flat-green' }); </script>
{ "content_hash": "9d02640fcfe2b66769bb7216d586a0ea", "timestamp": "", "source": "github", "line_count": 412, "max_line_length": 192, "avg_line_length": 58.36165048543689, "alnum_prop": 0.4299438552713662, "repo_name": "arnaugarcia/assessoriatorrelles", "id": "63c5a2b68dad702100ed5e98da7c436ee79d09c3", "size": "24046", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/webapp/app/dashboard/entities/property/dashboard.property-new.html", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "5006" }, { "name": "CSS", "bytes": "252052" }, { "name": "HTML", "bytes": "316952" }, { "name": "Java", "bytes": "414912" }, { "name": "JavaScript", "bytes": "966432" }, { "name": "Shell", "bytes": "7058" } ], "symlink_target": "" }
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'org\\bovigo\\vfs' => array($vendorDir . '/mikey179/vfsStream/src/main/php'), 'Prophecy\\' => array($vendorDir . '/phpspec/prophecy/src'), 'Braintree' => array($vendorDir . '/braintree/braintree_php/lib'), );
{ "content_hash": "e4ec1acc434d93525aeb978406d59fbd", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 81, "avg_line_length": 30.583333333333332, "alnum_prop": 0.6648501362397821, "repo_name": "besongsamuel/eapp", "id": "d1220d35037e64130b2a97c67ddf2b1920c8c7e3", "size": "367", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/composer/autoload_namespaces.php", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "8037" }, { "name": "CSS", "bytes": "583143" }, { "name": "HTML", "bytes": "12205288" }, { "name": "Hack", "bytes": "99403" }, { "name": "JavaScript", "bytes": "1549084" }, { "name": "PHP", "bytes": "5845610" }, { "name": "Shell", "bytes": "788" }, { "name": "TSQL", "bytes": "1892" } ], "symlink_target": "" }
package org.jboss.migration.eap7.to.eap7; import org.jboss.migration.eap.EAPServer7_4; import org.jboss.migration.eap.EAPServerMigrationProvider7_4; import org.jboss.migration.wfly10.WildFlyServer10; import org.jboss.migration.wfly10.WildFlyServerMigration10; import org.jboss.migration.wfly10.config.task.module.MigrateReferencedModules; import org.jboss.migration.wfly10.config.task.paths.MigrateReferencedPaths; import org.jboss.migration.wfly10.config.task.update.MigrateCompatibleSecurityRealms; import org.jboss.migration.wfly10.config.task.update.MigrateDeployments; import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedExtensions; import org.jboss.migration.wfly10.config.task.update.RemoveUnsupportedSubsystems; import org.jboss.migration.wfly10.config.task.update.ServerUpdate; /** * Server migration, from EAP 7.4 to EAP 7.4. * @author abgopal */ public class EAP7_4ToEAP7_4ServerMigrationProvider implements EAPServerMigrationProvider7_4 { @Override public WildFlyServerMigration10 getServerMigration() { final ServerUpdate.Builders<WildFlyServer10> serverUpdateBuilders = new ServerUpdate.Builders<>(); return serverUpdateBuilders.serverUpdateBuilder() .standaloneServer( serverUpdateBuilders.standaloneConfigurationBuilder() .subtask(new RemoveUnsupportedExtensions<>()) .subtask(new RemoveUnsupportedSubsystems<>()) .subtask(new MigrateReferencedModules<>()) .subtask(new MigrateReferencedPaths<>()) .subtask(new MigrateCompatibleSecurityRealms<>()) .subtask(new MigrateDeployments<>())) .domain(serverUpdateBuilders.domainBuilder() .domainConfigurations(serverUpdateBuilders.domainConfigurationBuilder() .subtask(new RemoveUnsupportedExtensions<>()) .subtask(new RemoveUnsupportedSubsystems<>()) .subtask(new MigrateReferencedModules<>()) .subtask(new MigrateReferencedPaths<>()) .subtask(new MigrateDeployments<>())) .hostConfigurations(serverUpdateBuilders.hostConfigurationBuilder() .subtask(new MigrateReferencedModules<>()) .subtask(new MigrateReferencedPaths<>()) .subtask(serverUpdateBuilders.hostBuilder() .subtask(new MigrateCompatibleSecurityRealms<>())))) .build(); } @Override public Class<EAPServer7_4> getSourceType() { return EAPServer7_4.class; } }
{ "content_hash": "562cb57746ee71f43f118c333e24dc3d", "timestamp": "", "source": "github", "line_count": 54, "max_line_length": 106, "avg_line_length": 53.01851851851852, "alnum_prop": 0.6405867970660146, "repo_name": "emmartins/wildfly-server-migration", "id": "459271b563af2e59fd01acc085f841cba3c42dff", "size": "3455", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "migrations/eap7.4/eap7.4/src/main/java/org/jboss/migration/eap7/to/eap7/EAP7_4ToEAP7_4ServerMigrationProvider.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "2638" }, { "name": "Java", "bytes": "2437611" }, { "name": "Shell", "bytes": "32575" } ], "symlink_target": "" }
import { AccordionDetailsClassKey } from './AccordionDetails'; export type AccordionDetailsClasses = Record<AccordionDetailsClassKey, string>; declare const accordionDetailsClasses: AccordionDetailsClasses; export function getAccordionDetailsUtilityClass(slot: string): string; export default accordionDetailsClasses;
{ "content_hash": "587796762b53267cbb0ddd1989b12c7a", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 79, "avg_line_length": 35.77777777777778, "alnum_prop": 0.8509316770186336, "repo_name": "callemall/material-ui", "id": "1b5223ae036a507d9a43de38b84a5404ff58b1e1", "size": "322", "binary": false, "copies": "9", "ref": "refs/heads/next", "path": "packages/material-ui/src/AccordionDetails/accordionDetailsClasses.d.ts", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "302" }, { "name": "JavaScript", "bytes": "1758519" }, { "name": "Shell", "bytes": "144" }, { "name": "TypeScript", "bytes": "27469" } ], "symlink_target": "" }
package org.kie.workbench.common.services.backend.builder.core; import java.util.function.Supplier; import org.drools.compiler.kie.builder.impl.MessageImpl; import org.guvnor.common.services.project.builder.model.BuildMessage; import org.guvnor.common.services.shared.message.Level; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.kie.api.builder.Message; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.uberfire.backend.vfs.Path; import static org.junit.Assert.*; import static org.mockito.Mockito.*; @RunWith(MockitoJUnitRunner.class) public class MessageConverterTest { private static final int ID = 1; private static final String FILE = "path"; private static final String TEXT = "text"; private static final String KIE_BASE_NAME = "kieBaseName"; @Mock private Path path; private Handles handles = new Handles(); @Before public void setup() { handles.put(FILE, path); when(path.getFileName()).thenReturn(FILE); } @Test public void checkMessageWithKieBase() { final MessageImpl m = new MessageImpl(ID, Message.Level.ERROR, FILE, TEXT); m.setKieBaseName(KIE_BASE_NAME); final BuildMessage bm = MessageConverter.convertMessage(m, handles); assertConversion(bm, () -> "[KBase: " + KIE_BASE_NAME + "]: " + TEXT); } @Test public void checkMessageWithoutKieBase() { final Message m = new MessageImpl(ID, Message.Level.ERROR, FILE, TEXT); final BuildMessage bm = MessageConverter.convertMessage(m, handles); assertConversion(bm, () -> TEXT); } private void assertConversion(final BuildMessage bm, final Supplier<String> text) { assertEquals(ID, bm.getId()); assertEquals(Level.ERROR, bm.getLevel()); assertEquals(FILE, bm.getPath().toString()); assertEquals(text.get(), bm.getText()); } }
{ "content_hash": "97a72b69a74673b762c587819545841b", "timestamp": "", "source": "github", "line_count": 78, "max_line_length": 74, "avg_line_length": 32.48717948717949, "alnum_prop": 0.5402525651144435, "repo_name": "ederign/kie-wb-common", "id": "16ce9fcbb06442cf05de2141ecb5ff84323f582c", "size": "3155", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "kie-wb-common-services/kie-wb-common-services-backend/src/test/java/org/kie/workbench/common/services/backend/builder/core/MessageConverterTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "67975" }, { "name": "FreeMarker", "bytes": "36748" }, { "name": "GAP", "bytes": "86275" }, { "name": "HTML", "bytes": "213132" }, { "name": "Java", "bytes": "27302200" }, { "name": "JavaScript", "bytes": "19109" }, { "name": "Shell", "bytes": "151" }, { "name": "Visual Basic", "bytes": "78106" } ], "symlink_target": "" }
int netsend_login_S( int actor_index, char send_type, SLK_NetS_Login *pValue ); int netsend_list_S( int actor_index, char send_type, SLK_NetS_List *pValue ); int netsend_create_S( int actor_index, char send_type, SLK_NetS_Create *pValue ); int netsend_enterinfo_S( int actor_index, char send_type, SLK_NetS_EnterInfo *pValue ); int netsend_delete_S( int actor_index, char send_type, SLK_NetS_Delete *pValue ); int netsend_heart_S( int actor_index, char send_type, SLK_NetS_Heart *pValue ); int netsend_notify_S( int actor_index, char send_type, SLK_NetS_Notify *pValue ); int netsend_talk_S( int actor_index, char send_type, SLK_NetS_Talk *pValue ); int netsend_fightin_S( int actor_index, char send_type, SLK_NetS_FightIn *pValue ); int netsend_fightset_S( int actor_index, char send_type, SLK_NetS_FightSet *pValue ); int netsend_fightmove_S( int actor_index, char send_type, SLK_NetS_FightMove *pValue ); int netsend_fightaction_S( int actor_index, char send_type, SLK_NetS_FightAction *pValue ); int netsend_actorinfo_S( int actor_index, char send_type, SLK_NetS_ActorInfo *pValue ); int netsend_cityresinfo_S( int actor_index, char send_type, SLK_NetS_CityResInfo *pValue ); int netsend_citybuildinglist_S( int actor_index, char send_type, SLK_NetS_CityBuildingList *pValue ); int netsend_addmapunit_S( char *databuf, int size, SLK_NetS_AddMapUnit *pValue ); int netsend_delmapunit_S( char *databuf, int size, SLK_NetS_DelMapUnit *pValue ); int netsend_itemuse_S( int actor_index, char send_type, SLK_NetS_ItemUse *pValue ); int netsend_itemput_S( int actor_index, char send_type, SLK_NetS_ItemPut *pValue ); int netsend_itemsettle_S( int actor_index, char send_type, SLK_NetS_ItemSettle *pValue ); int netsend_lostitem_S( int actor_index, char send_type, SLK_NetS_LostItem *pValue ); int netsend_getitem_S( int actor_index, char send_type, SLK_NetS_GetItem *pValue ); int netsend_itemlist_S( int actor_index, char send_type, SLK_NetS_ItemList *pValue ); int netsend_iteminfo_S( int actor_index, char send_type, SLK_NetS_ItemInfo *pValue ); int netsend_buildtimeinfo_S( int actor_index, char send_type, SLK_NetS_BuildTimeInfo *pValue ); int netsend_buildtimeinfolist_S( int actor_index, char send_type, SLK_NetS_BuildTimeInfoList *pValue ); int netsend_cityreschangeinfo_S( int actor_index, char send_type, SLK_NetS_CityResChangeInfo *pValue ); int netsend_buildingbaseinfo_S( int actor_index, char send_type, SLK_NetS_BuildingBaseInfo *pValue ); int netsend_buildingabilityinfo_S( int actor_index, char send_type, SLK_NetS_BuildingAbilityInfo *pValue ); int netsend_worldmapinfo_S( int actor_index, char send_type, SLK_NetS_WorldMapInfo *pValue ); int netsend_mapunitcorrdinate_S( char *databuf, int size, SLK_NetS_MapUnitCorrdinate *pValue ); int netsend_marchroute_S( int actor_index, char send_type, SLK_NetS_MarchRoute *pValue ); int netsend_outsidemapinfo_S( int actor_index, char send_type, SLK_NetS_OutsideMapInfo *pValue ); int netsend_mailsimpleinfo_S( int actor_index, char send_type, SLK_NetS_MailSimpleInfo *pValue ); int netsend_maillist_S( int actor_index, char send_type, SLK_NetS_MailList *pValue ); int netsend_mailfullinfo_S( int actor_index, char send_type, SLK_NetS_MailFullInfo *pValue ); int netsend_fightmsgsimpleinfo_S( int actor_index, char send_type, SLK_NetS_FightMsgSimpleInfo *pValue ); int netsend_fightmsglist_S( int actor_index, char send_type, SLK_NetS_FightMsgList *pValue ); int netsend_fightmsginfo_S( int actor_index, char send_type, SLK_NetS_FightMsgInfo *pValue ); int netsend_buildingabilitylist_S( int actor_index, char send_type, SLK_NetS_BuildingAbilityList *pValue ); int netsend_chatmasklist_S( int actor_index, char send_type, SLK_NetS_ChatMaskList *pValue ); int netsend_troopinfo_S( int actor_index, char send_type, SLK_NetS_TroopInfo *pValue ); int netsend_troopinfolist_S( int actor_index, char send_type, SLK_NetS_TroopInfoList *pValue ); int netsend_heroinfolist_S( int actor_index, char send_type, SLK_NetS_HeroList *pValue ); int netsend_heroinfo_S( int actor_index, char send_type, SLK_NetS_HeroInfo *pValue ); int netsend_citybattleinfo_S( int actor_index, char send_type, SLK_NetS_CityBattleInfo *pValue ); int netsend_logined_S( int actor_index, char send_type, SLK_NetU_Logined *pValue ); int netsend_timer_S( int actor_index, char send_type, char *pValue ); #endif
{ "content_hash": "9e1dcbcbc23d866baf1d94f882d58c69", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 107, "avg_line_length": 84.96078431372548, "alnum_prop": 0.767597507500577, "repo_name": "Gamesjiazhi/rwproject", "id": "fde9caa0aae79466fe21cbc5acdd11cf20adfd48", "size": "4422", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ResourceWar/undeadServer/GameServer/AutoS/include/server_netsend_auto.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "9905" }, { "name": "C", "bytes": "4568748" }, { "name": "C#", "bytes": "29913" }, { "name": "C++", "bytes": "20989040" }, { "name": "CMake", "bytes": "214599" }, { "name": "GLSL", "bytes": "52884" }, { "name": "Java", "bytes": "667273" }, { "name": "JavaScript", "bytes": "49070" }, { "name": "Lua", "bytes": "3857489" }, { "name": "Makefile", "bytes": "53185" }, { "name": "Objective-C", "bytes": "2902408" }, { "name": "Objective-C++", "bytes": "509803" }, { "name": "PowerShell", "bytes": "18747" }, { "name": "Python", "bytes": "1153937" }, { "name": "Shell", "bytes": "30186" } ], "symlink_target": "" }
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.restapi.zone.v2; import com.yahoo.application.container.handler.Request.Method; import com.yahoo.config.provision.Environment; import com.yahoo.config.provision.RegionName; import com.yahoo.config.provision.zone.ZoneApi; import com.yahoo.config.provision.zone.ZoneId; import com.yahoo.vespa.hosted.controller.integration.ConfigServerProxyMock; import com.yahoo.vespa.hosted.controller.integration.ZoneApiMock; import com.yahoo.vespa.hosted.controller.proxy.ProxyRequest; import com.yahoo.vespa.hosted.controller.restapi.ContainerTester; import com.yahoo.vespa.hosted.controller.restapi.ControllerContainerTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import java.io.File; import java.util.List; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; /** * @author mpolden */ public class ZoneApiTest extends ControllerContainerTest { private static final String responseFiles = "src/test/java/com/yahoo/vespa/hosted/controller/restapi/zone/v2/responses/"; private static final List<ZoneApi> zones = List.of( ZoneApiMock.fromId("prod.us-north-1"), ZoneApiMock.fromId("dev.aws-us-north-2"), ZoneApiMock.fromId("test.us-north-3"), ZoneApiMock.fromId("staging.us-north-4")); private ContainerTester tester; private ConfigServerProxyMock proxy; @BeforeEach public void before() { tester = new ContainerTester(container, responseFiles); tester.serviceRegistry().zoneRegistry() .setDefaultRegionForEnvironment(Environment.dev, RegionName.from("us-north-2")) .setZones(zones); proxy = (ConfigServerProxyMock) container.components().getComponent(ConfigServerProxyMock.class.getName()); } @Test void test_requests() { // GET /zone/v2 tester.assertResponse(authenticatedRequest("http://localhost:8080/zone/v2"), new File("root.json")); // GET /zone/v2/prod/us-north-1 tester.assertResponse(authenticatedRequest("http://localhost:8080/zone/v2/prod/us-north-1"), "ok"); assertLastRequest(ZoneId.from("prod", "us-north-1"), 1, "GET"); // GET /zone/v2/nodes/v2/node/?recursive=true tester.assertResponse(authenticatedRequest("http://localhost:8080/zone/v2/prod/us-north-1/nodes/v2/node/?recursive=true"), "ok"); assertLastRequest(ZoneId.from("prod", "us-north-1"), 1, "GET"); // POST /zone/v2/dev/us-north-2/nodes/v2/command/restart?hostname=node1 tester.assertResponse(operatorRequest("http://localhost:8080/zone/v2/dev/aws-us-north-2/nodes/v2/command/restart?hostname=node1", "", Method.POST), "ok"); // PUT /zone/v2/prod/us-north-1/nodes/v2/state/dirty/node1 tester.assertResponse(operatorRequest("http://localhost:8080/zone/v2/prod/us-north-1/nodes/v2/state/dirty/node1", "", Method.PUT), "ok"); assertLastRequest(ZoneId.from("prod", "us-north-1"), 1, "PUT"); // DELETE /zone/v2/prod/us-north-1/nodes/v2/node/node1 tester.assertResponse(operatorRequest("http://localhost:8080/zone/v2/prod/us-north-1/nodes/v2/node/node1", "", Method.DELETE), "ok"); assertLastRequest(ZoneId.from("prod", "us-north-1"), 1, "DELETE"); // PATCH /zone/v2/prod/us-north-1/nodes/v2/node/node1 tester.assertResponse(operatorRequest("http://localhost:8080/zone/v2/dev/aws-us-north-2/nodes/v2/node/node1", "{\"currentRestartGeneration\": 1}", Method.PATCH), "ok"); assertLastRequest(ZoneId.from("dev", "aws-us-north-2"), 1, "PATCH"); assertEquals("{\"currentRestartGeneration\": 1}", proxy.lastRequestBody().get()); assertFalse(tester.controller().auditLogger().readLog().entries().isEmpty(), "Actions are logged to audit log"); } @Test void test_invalid_requests() { // POST /zone/v2/prod/us-north-34/nodes/v2 tester.assertResponse(operatorRequest("http://localhost:8080/zone/v2/prod/us-north-42/nodes/v2", "", Method.POST), new File("unknown-zone.json"), 400); assertFalse(proxy.lastReceived().isPresent()); } private void assertLastRequest(ZoneId zoneId, int targets, String method) { ProxyRequest last = proxy.lastReceived().orElseThrow(); assertEquals(targets, last.getTargets().size()); assertTrue(last.getTargets().get(0).toString().contains(zoneId.value())); assertEquals(com.yahoo.jdisc.http.HttpRequest.Method.valueOf(method), last.getMethod()); } }
{ "content_hash": "70a24c1473364e139d7a0bbd014a3e32", "timestamp": "", "source": "github", "line_count": 106, "max_line_length": 137, "avg_line_length": 46.339622641509436, "alnum_prop": 0.6832247557003257, "repo_name": "vespa-engine/vespa", "id": "81484f05d1e0f19cbb2584692c69ed45fd5924a3", "size": "4912", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/zone/v2/ZoneApiTest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "8130" }, { "name": "C", "bytes": "60315" }, { "name": "C++", "bytes": "29580035" }, { "name": "CMake", "bytes": "593981" }, { "name": "Emacs Lisp", "bytes": "91" }, { "name": "GAP", "bytes": "3312" }, { "name": "Go", "bytes": "560664" }, { "name": "HTML", "bytes": "54520" }, { "name": "Java", "bytes": "40814190" }, { "name": "JavaScript", "bytes": "73436" }, { "name": "LLVM", "bytes": "6152" }, { "name": "Lex", "bytes": "11499" }, { "name": "Makefile", "bytes": "5553" }, { "name": "Objective-C", "bytes": "12369" }, { "name": "Perl", "bytes": "23134" }, { "name": "Python", "bytes": "52392" }, { "name": "Roff", "bytes": "17506" }, { "name": "Ruby", "bytes": "10690" }, { "name": "Shell", "bytes": "268737" }, { "name": "Yacc", "bytes": "14735" } ], "symlink_target": "" }
package org.apache.camel.builder.endpoint.dsl; import java.util.Map; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; import org.apache.camel.ExchangePattern; import org.apache.camel.LoggingLevel; import org.apache.camel.builder.EndpointConsumerBuilder; import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; import org.apache.camel.spi.ExceptionHandler; import org.apache.camel.spi.PollingConsumerPollStrategy; /** * Consume and produce records from and to AWS Kinesis Streams using AWS SDK * version 2.x. * * Generated by camel build tools - do NOT edit this file! */ @Generated("org.apache.camel.maven.packaging.EndpointDslMojo") public interface Kinesis2EndpointBuilderFactory { /** * Builder for endpoint consumers for the AWS 2 Kinesis component. */ public interface Kinesis2EndpointConsumerBuilder extends EndpointConsumerBuilder { default AdvancedKinesis2EndpointConsumerBuilder advanced() { return (AdvancedKinesis2EndpointConsumerBuilder) this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option is a: * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder amazonKinesisClient( Object amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder amazonKinesisClient( String amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder cborEnabled(boolean cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder cborEnabled(String cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder overrideEndpoint( boolean overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder overrideEndpoint( String overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * To define a proxy host when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param proxyHost the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder proxyHost(String proxyHost) { doSetProperty("proxyHost", proxyHost); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder proxyPort(Integer proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder proxyPort(String proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option is a: * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder proxyProtocol( Protocol proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder proxyProtocol( String proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * The region in which Kinesis Firehose client needs to work. When using * this parameter, the configuration will expect the lowercase name of * the region (for example ap-east-1) You'll need to use the name * Region.EU_WEST_1.id(). * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param region the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder region(String region) { doSetProperty("region", region); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder trustAllCertificates( boolean trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder trustAllCertificates( String trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * Set the overriding uri endpoint. This option needs to be used in * combination with overrideEndpoint option. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param uriEndpointOverride the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder uriEndpointOverride( String uriEndpointOverride) { doSetProperty("uriEndpointOverride", uriEndpointOverride); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder useDefaultCredentialsProvider( boolean useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder useDefaultCredentialsProvider( String useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Allows for bridging the consumer to the Camel routing Error Handler, * which mean any exceptions occurred while the consumer is trying to * pickup incoming messages, or the likes, will now be processed as a * message and handled by the routing Error Handler. By default the * consumer will use the org.apache.camel.spi.ExceptionHandler to deal * with exceptions, that will be logged at WARN or ERROR level and * ignored. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: consumer * * @param bridgeErrorHandler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder bridgeErrorHandler( boolean bridgeErrorHandler) { doSetProperty("bridgeErrorHandler", bridgeErrorHandler); return this; } /** * Allows for bridging the consumer to the Camel routing Error Handler, * which mean any exceptions occurred while the consumer is trying to * pickup incoming messages, or the likes, will now be processed as a * message and handled by the routing Error Handler. By default the * consumer will use the org.apache.camel.spi.ExceptionHandler to deal * with exceptions, that will be logged at WARN or ERROR level and * ignored. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: consumer * * @param bridgeErrorHandler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder bridgeErrorHandler( String bridgeErrorHandler) { doSetProperty("bridgeErrorHandler", bridgeErrorHandler); return this; } /** * Defines where in the Kinesis stream to start getting records. * * The option is a: * &lt;code&gt;software.amazon.awssdk.services.kinesis.model.ShardIteratorType&lt;/code&gt; type. * * Default: TRIM_HORIZON * Group: consumer * * @param iteratorType the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder iteratorType( ShardIteratorType iteratorType) { doSetProperty("iteratorType", iteratorType); return this; } /** * Defines where in the Kinesis stream to start getting records. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.services.kinesis.model.ShardIteratorType&lt;/code&gt; type. * * Default: TRIM_HORIZON * Group: consumer * * @param iteratorType the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder iteratorType(String iteratorType) { doSetProperty("iteratorType", iteratorType); return this; } /** * Maximum number of records that will be fetched in each poll. * * The option is a: &lt;code&gt;int&lt;/code&gt; type. * * Default: 1 * Group: consumer * * @param maxResultsPerRequest the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder maxResultsPerRequest( int maxResultsPerRequest) { doSetProperty("maxResultsPerRequest", maxResultsPerRequest); return this; } /** * Maximum number of records that will be fetched in each poll. * * The option will be converted to a &lt;code&gt;int&lt;/code&gt; type. * * Default: 1 * Group: consumer * * @param maxResultsPerRequest the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder maxResultsPerRequest( String maxResultsPerRequest) { doSetProperty("maxResultsPerRequest", maxResultsPerRequest); return this; } /** * If the polling consumer did not poll any files, you can enable this * option to send an empty message (no body) instead. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: consumer * * @param sendEmptyMessageWhenIdle the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder sendEmptyMessageWhenIdle( boolean sendEmptyMessageWhenIdle) { doSetProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle); return this; } /** * If the polling consumer did not poll any files, you can enable this * option to send an empty message (no body) instead. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: consumer * * @param sendEmptyMessageWhenIdle the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder sendEmptyMessageWhenIdle( String sendEmptyMessageWhenIdle) { doSetProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle); return this; } /** * The sequence number to start polling from. Required if iteratorType * is set to AFTER_SEQUENCE_NUMBER or AT_SEQUENCE_NUMBER. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: consumer * * @param sequenceNumber the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder sequenceNumber( String sequenceNumber) { doSetProperty("sequenceNumber", sequenceNumber); return this; } /** * Define what will be the behavior in case of shard closed. Possible * value are ignore, silent and fail. In case of ignore a message will * be logged and the consumer will restart from the beginning,in case of * silent there will be no logging and the consumer will start from the * beginning,in case of fail a ReachedClosedStateException will be * raised. * * The option is a: * &lt;code&gt;org.apache.camel.component.aws2.kinesis.Kinesis2ShardClosedStrategyEnum&lt;/code&gt; type. * * Default: ignore * Group: consumer * * @param shardClosed the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder shardClosed( Kinesis2ShardClosedStrategyEnum shardClosed) { doSetProperty("shardClosed", shardClosed); return this; } /** * Define what will be the behavior in case of shard closed. Possible * value are ignore, silent and fail. In case of ignore a message will * be logged and the consumer will restart from the beginning,in case of * silent there will be no logging and the consumer will start from the * beginning,in case of fail a ReachedClosedStateException will be * raised. * * The option will be converted to a * &lt;code&gt;org.apache.camel.component.aws2.kinesis.Kinesis2ShardClosedStrategyEnum&lt;/code&gt; type. * * Default: ignore * Group: consumer * * @param shardClosed the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder shardClosed(String shardClosed) { doSetProperty("shardClosed", shardClosed); return this; } /** * Defines which shardId in the Kinesis stream to get records from. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: consumer * * @param shardId the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder shardId(String shardId) { doSetProperty("shardId", shardId); return this; } /** * The number of subsequent error polls (failed due some error) that * should happen before the backoffMultipler should kick-in. * * The option is a: &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffErrorThreshold the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffErrorThreshold( int backoffErrorThreshold) { doSetProperty("backoffErrorThreshold", backoffErrorThreshold); return this; } /** * The number of subsequent error polls (failed due some error) that * should happen before the backoffMultipler should kick-in. * * The option will be converted to a &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffErrorThreshold the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffErrorThreshold( String backoffErrorThreshold) { doSetProperty("backoffErrorThreshold", backoffErrorThreshold); return this; } /** * The number of subsequent idle polls that should happen before the * backoffMultipler should kick-in. * * The option is a: &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffIdleThreshold the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffIdleThreshold( int backoffIdleThreshold) { doSetProperty("backoffIdleThreshold", backoffIdleThreshold); return this; } /** * The number of subsequent idle polls that should happen before the * backoffMultipler should kick-in. * * The option will be converted to a &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffIdleThreshold the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffIdleThreshold( String backoffIdleThreshold) { doSetProperty("backoffIdleThreshold", backoffIdleThreshold); return this; } /** * To let the scheduled polling consumer backoff if there has been a * number of subsequent idles/errors in a row. The multiplier is then * the number of polls that will be skipped before the next actual * attempt is happening again. When this option is in use then * backoffIdleThreshold and/or backoffErrorThreshold must also be * configured. * * The option is a: &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffMultiplier the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffMultiplier( int backoffMultiplier) { doSetProperty("backoffMultiplier", backoffMultiplier); return this; } /** * To let the scheduled polling consumer backoff if there has been a * number of subsequent idles/errors in a row. The multiplier is then * the number of polls that will be skipped before the next actual * attempt is happening again. When this option is in use then * backoffIdleThreshold and/or backoffErrorThreshold must also be * configured. * * The option will be converted to a &lt;code&gt;int&lt;/code&gt; type. * * Group: scheduler * * @param backoffMultiplier the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder backoffMultiplier( String backoffMultiplier) { doSetProperty("backoffMultiplier", backoffMultiplier); return this; } /** * Milliseconds before the next poll. * * The option is a: &lt;code&gt;long&lt;/code&gt; type. * * Default: 500 * Group: scheduler * * @param delay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder delay(long delay) { doSetProperty("delay", delay); return this; } /** * Milliseconds before the next poll. * * The option will be converted to a &lt;code&gt;long&lt;/code&gt; type. * * Default: 500 * Group: scheduler * * @param delay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder delay(String delay) { doSetProperty("delay", delay); return this; } /** * If greedy is enabled, then the ScheduledPollConsumer will run * immediately again, if the previous run polled 1 or more messages. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: scheduler * * @param greedy the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder greedy(boolean greedy) { doSetProperty("greedy", greedy); return this; } /** * If greedy is enabled, then the ScheduledPollConsumer will run * immediately again, if the previous run polled 1 or more messages. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: scheduler * * @param greedy the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder greedy(String greedy) { doSetProperty("greedy", greedy); return this; } /** * Milliseconds before the first poll starts. * * The option is a: &lt;code&gt;long&lt;/code&gt; type. * * Default: 1000 * Group: scheduler * * @param initialDelay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder initialDelay(long initialDelay) { doSetProperty("initialDelay", initialDelay); return this; } /** * Milliseconds before the first poll starts. * * The option will be converted to a &lt;code&gt;long&lt;/code&gt; type. * * Default: 1000 * Group: scheduler * * @param initialDelay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder initialDelay(String initialDelay) { doSetProperty("initialDelay", initialDelay); return this; } /** * Specifies a maximum limit of number of fires. So if you set it to 1, * the scheduler will only fire once. If you set it to 5, it will only * fire five times. A value of zero or negative means fire forever. * * The option is a: &lt;code&gt;long&lt;/code&gt; type. * * Default: 0 * Group: scheduler * * @param repeatCount the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder repeatCount(long repeatCount) { doSetProperty("repeatCount", repeatCount); return this; } /** * Specifies a maximum limit of number of fires. So if you set it to 1, * the scheduler will only fire once. If you set it to 5, it will only * fire five times. A value of zero or negative means fire forever. * * The option will be converted to a &lt;code&gt;long&lt;/code&gt; type. * * Default: 0 * Group: scheduler * * @param repeatCount the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder repeatCount(String repeatCount) { doSetProperty("repeatCount", repeatCount); return this; } /** * The consumer logs a start/complete log line when it polls. This * option allows you to configure the logging level for that. * * The option is a: * &lt;code&gt;org.apache.camel.LoggingLevel&lt;/code&gt; type. * * Default: TRACE * Group: scheduler * * @param runLoggingLevel the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder runLoggingLevel( LoggingLevel runLoggingLevel) { doSetProperty("runLoggingLevel", runLoggingLevel); return this; } /** * The consumer logs a start/complete log line when it polls. This * option allows you to configure the logging level for that. * * The option will be converted to a * &lt;code&gt;org.apache.camel.LoggingLevel&lt;/code&gt; type. * * Default: TRACE * Group: scheduler * * @param runLoggingLevel the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder runLoggingLevel( String runLoggingLevel) { doSetProperty("runLoggingLevel", runLoggingLevel); return this; } /** * Allows for configuring a custom/shared thread pool to use for the * consumer. By default each consumer has its own single threaded thread * pool. * * The option is a: * &lt;code&gt;java.util.concurrent.ScheduledExecutorService&lt;/code&gt; type. * * Group: scheduler * * @param scheduledExecutorService the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder scheduledExecutorService( ScheduledExecutorService scheduledExecutorService) { doSetProperty("scheduledExecutorService", scheduledExecutorService); return this; } /** * Allows for configuring a custom/shared thread pool to use for the * consumer. By default each consumer has its own single threaded thread * pool. * * The option will be converted to a * &lt;code&gt;java.util.concurrent.ScheduledExecutorService&lt;/code&gt; type. * * Group: scheduler * * @param scheduledExecutorService the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder scheduledExecutorService( String scheduledExecutorService) { doSetProperty("scheduledExecutorService", scheduledExecutorService); return this; } /** * To use a cron scheduler from either camel-spring or camel-quartz * component. Use value spring or quartz for built in scheduler. * * The option is a: &lt;code&gt;java.lang.Object&lt;/code&gt; type. * * Default: none * Group: scheduler * * @param scheduler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder scheduler(Object scheduler) { doSetProperty("scheduler", scheduler); return this; } /** * To use a cron scheduler from either camel-spring or camel-quartz * component. Use value spring or quartz for built in scheduler. * * The option will be converted to a * &lt;code&gt;java.lang.Object&lt;/code&gt; type. * * Default: none * Group: scheduler * * @param scheduler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder scheduler(String scheduler) { doSetProperty("scheduler", scheduler); return this; } /** * To configure additional properties when using a custom scheduler or * any of the Quartz, Spring based scheduler. * * The option is a: &lt;code&gt;java.util.Map&amp;lt;java.lang.String, * java.lang.Object&amp;gt;&lt;/code&gt; type. * The option is multivalued, and you can use the * schedulerProperties(String, Object) method to add a value (call the * method multiple times to set more values). * * Group: scheduler * * @param key the option key * @param value the option value * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder schedulerProperties( String key, Object value) { doSetMultiValueProperty("schedulerProperties", "scheduler." + key, value); return this; } /** * To configure additional properties when using a custom scheduler or * any of the Quartz, Spring based scheduler. * * The option is a: &lt;code&gt;java.util.Map&amp;lt;java.lang.String, * java.lang.Object&amp;gt;&lt;/code&gt; type. * The option is multivalued, and you can use the * schedulerProperties(String, Object) method to add a value (call the * method multiple times to set more values). * * Group: scheduler * * @param values the values * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder schedulerProperties(Map values) { doSetMultiValueProperties("schedulerProperties", "scheduler.", values); return this; } /** * Whether the scheduler should be auto started. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: true * Group: scheduler * * @param startScheduler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder startScheduler( boolean startScheduler) { doSetProperty("startScheduler", startScheduler); return this; } /** * Whether the scheduler should be auto started. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: true * Group: scheduler * * @param startScheduler the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder startScheduler( String startScheduler) { doSetProperty("startScheduler", startScheduler); return this; } /** * Time unit for initialDelay and delay options. * * The option is a: * &lt;code&gt;java.util.concurrent.TimeUnit&lt;/code&gt; type. * * Default: MILLISECONDS * Group: scheduler * * @param timeUnit the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder timeUnit(TimeUnit timeUnit) { doSetProperty("timeUnit", timeUnit); return this; } /** * Time unit for initialDelay and delay options. * * The option will be converted to a * &lt;code&gt;java.util.concurrent.TimeUnit&lt;/code&gt; type. * * Default: MILLISECONDS * Group: scheduler * * @param timeUnit the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder timeUnit(String timeUnit) { doSetProperty("timeUnit", timeUnit); return this; } /** * Controls if fixed delay or fixed rate is used. See * ScheduledExecutorService in JDK for details. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: true * Group: scheduler * * @param useFixedDelay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder useFixedDelay( boolean useFixedDelay) { doSetProperty("useFixedDelay", useFixedDelay); return this; } /** * Controls if fixed delay or fixed rate is used. See * ScheduledExecutorService in JDK for details. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: true * Group: scheduler * * @param useFixedDelay the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder useFixedDelay( String useFixedDelay) { doSetProperty("useFixedDelay", useFixedDelay); return this; } /** * Amazon AWS Access Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param accessKey the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder accessKey(String accessKey) { doSetProperty("accessKey", accessKey); return this; } /** * Amazon AWS Secret Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param secretKey the value to set * @return the dsl builder */ default Kinesis2EndpointConsumerBuilder secretKey(String secretKey) { doSetProperty("secretKey", secretKey); return this; } } /** * Advanced builder for endpoint consumers for the AWS 2 Kinesis component. */ public interface AdvancedKinesis2EndpointConsumerBuilder extends EndpointConsumerBuilder { default Kinesis2EndpointConsumerBuilder basic() { return (Kinesis2EndpointConsumerBuilder) this; } /** * To let the consumer use a custom ExceptionHandler. Notice if the * option bridgeErrorHandler is enabled then this option is not in use. * By default the consumer will deal with exceptions, that will be * logged at WARN or ERROR level and ignored. * * The option is a: * &lt;code&gt;org.apache.camel.spi.ExceptionHandler&lt;/code&gt; type. * * Group: consumer (advanced) * * @param exceptionHandler the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder exceptionHandler( ExceptionHandler exceptionHandler) { doSetProperty("exceptionHandler", exceptionHandler); return this; } /** * To let the consumer use a custom ExceptionHandler. Notice if the * option bridgeErrorHandler is enabled then this option is not in use. * By default the consumer will deal with exceptions, that will be * logged at WARN or ERROR level and ignored. * * The option will be converted to a * &lt;code&gt;org.apache.camel.spi.ExceptionHandler&lt;/code&gt; type. * * Group: consumer (advanced) * * @param exceptionHandler the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder exceptionHandler( String exceptionHandler) { doSetProperty("exceptionHandler", exceptionHandler); return this; } /** * Sets the exchange pattern when the consumer creates an exchange. * * The option is a: * &lt;code&gt;org.apache.camel.ExchangePattern&lt;/code&gt; type. * * Group: consumer (advanced) * * @param exchangePattern the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder exchangePattern( ExchangePattern exchangePattern) { doSetProperty("exchangePattern", exchangePattern); return this; } /** * Sets the exchange pattern when the consumer creates an exchange. * * The option will be converted to a * &lt;code&gt;org.apache.camel.ExchangePattern&lt;/code&gt; type. * * Group: consumer (advanced) * * @param exchangePattern the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder exchangePattern( String exchangePattern) { doSetProperty("exchangePattern", exchangePattern); return this; } /** * A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing * you to provide your custom implementation to control error handling * usually occurred during the poll operation before an Exchange have * been created and being routed in Camel. * * The option is a: * &lt;code&gt;org.apache.camel.spi.PollingConsumerPollStrategy&lt;/code&gt; type. * * Group: consumer (advanced) * * @param pollStrategy the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder pollStrategy( PollingConsumerPollStrategy pollStrategy) { doSetProperty("pollStrategy", pollStrategy); return this; } /** * A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing * you to provide your custom implementation to control error handling * usually occurred during the poll operation before an Exchange have * been created and being routed in Camel. * * The option will be converted to a * &lt;code&gt;org.apache.camel.spi.PollingConsumerPollStrategy&lt;/code&gt; type. * * Group: consumer (advanced) * * @param pollStrategy the value to set * @return the dsl builder */ default AdvancedKinesis2EndpointConsumerBuilder pollStrategy( String pollStrategy) { doSetProperty("pollStrategy", pollStrategy); return this; } } /** * Builder for endpoint producers for the AWS 2 Kinesis component. */ public interface Kinesis2EndpointProducerBuilder extends EndpointProducerBuilder { default AdvancedKinesis2EndpointProducerBuilder advanced() { return (AdvancedKinesis2EndpointProducerBuilder) this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option is a: * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder amazonKinesisClient( Object amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder amazonKinesisClient( String amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder cborEnabled(boolean cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder cborEnabled(String cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder overrideEndpoint( boolean overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder overrideEndpoint( String overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * To define a proxy host when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param proxyHost the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder proxyHost(String proxyHost) { doSetProperty("proxyHost", proxyHost); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder proxyPort(Integer proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder proxyPort(String proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option is a: * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder proxyProtocol( Protocol proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder proxyProtocol( String proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * The region in which Kinesis Firehose client needs to work. When using * this parameter, the configuration will expect the lowercase name of * the region (for example ap-east-1) You'll need to use the name * Region.EU_WEST_1.id(). * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param region the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder region(String region) { doSetProperty("region", region); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder trustAllCertificates( boolean trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder trustAllCertificates( String trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * Set the overriding uri endpoint. This option needs to be used in * combination with overrideEndpoint option. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param uriEndpointOverride the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder uriEndpointOverride( String uriEndpointOverride) { doSetProperty("uriEndpointOverride", uriEndpointOverride); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder useDefaultCredentialsProvider( boolean useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder useDefaultCredentialsProvider( String useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Whether the producer should be started lazy (on the first message). * By starting lazy you can use this to allow CamelContext and routes to * startup in situations where a producer may otherwise fail during * starting and cause the route to fail being started. By deferring this * startup to be lazy then the startup failure can be handled during * routing messages via Camel's routing error handlers. Beware that when * the first message is processed then creating and starting the * producer may take a little time and prolong the total processing time * of the processing. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: producer * * @param lazyStartProducer the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder lazyStartProducer( boolean lazyStartProducer) { doSetProperty("lazyStartProducer", lazyStartProducer); return this; } /** * Whether the producer should be started lazy (on the first message). * By starting lazy you can use this to allow CamelContext and routes to * startup in situations where a producer may otherwise fail during * starting and cause the route to fail being started. By deferring this * startup to be lazy then the startup failure can be handled during * routing messages via Camel's routing error handlers. Beware that when * the first message is processed then creating and starting the * producer may take a little time and prolong the total processing time * of the processing. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: producer * * @param lazyStartProducer the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder lazyStartProducer( String lazyStartProducer) { doSetProperty("lazyStartProducer", lazyStartProducer); return this; } /** * Amazon AWS Access Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param accessKey the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder accessKey(String accessKey) { doSetProperty("accessKey", accessKey); return this; } /** * Amazon AWS Secret Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param secretKey the value to set * @return the dsl builder */ default Kinesis2EndpointProducerBuilder secretKey(String secretKey) { doSetProperty("secretKey", secretKey); return this; } } /** * Advanced builder for endpoint producers for the AWS 2 Kinesis component. */ public interface AdvancedKinesis2EndpointProducerBuilder extends EndpointProducerBuilder { default Kinesis2EndpointProducerBuilder basic() { return (Kinesis2EndpointProducerBuilder) this; } } /** * Builder for endpoint for the AWS 2 Kinesis component. */ public interface Kinesis2EndpointBuilder extends Kinesis2EndpointConsumerBuilder, Kinesis2EndpointProducerBuilder { default AdvancedKinesis2EndpointBuilder advanced() { return (AdvancedKinesis2EndpointBuilder) this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option is a: * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder amazonKinesisClient( Object amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * Amazon Kinesis client to use for all requests for this endpoint. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.services.kinesis.KinesisClient&lt;/code&gt; type. * * Group: common * * @param amazonKinesisClient the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder amazonKinesisClient( String amazonKinesisClient) { doSetProperty("amazonKinesisClient", amazonKinesisClient); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder cborEnabled(boolean cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * This option will set the CBOR_ENABLED property during the execution. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: true * Group: common * * @param cborEnabled the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder cborEnabled(String cborEnabled) { doSetProperty("cborEnabled", cborEnabled); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder overrideEndpoint( boolean overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * Set the need for overidding the endpoint. This option needs to be * used in combination with uriEndpointOverride option. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param overrideEndpoint the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder overrideEndpoint(String overrideEndpoint) { doSetProperty("overrideEndpoint", overrideEndpoint); return this; } /** * To define a proxy host when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param proxyHost the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder proxyHost(String proxyHost) { doSetProperty("proxyHost", proxyHost); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option is a: &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder proxyPort(Integer proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy port when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;java.lang.Integer&lt;/code&gt; type. * * Group: common * * @param proxyPort the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder proxyPort(String proxyPort) { doSetProperty("proxyPort", proxyPort); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option is a: * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder proxyProtocol(Protocol proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * To define a proxy protocol when instantiating the Kinesis client. * * The option will be converted to a * &lt;code&gt;software.amazon.awssdk.core.Protocol&lt;/code&gt; type. * * Default: HTTPS * Group: common * * @param proxyProtocol the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder proxyProtocol(String proxyProtocol) { doSetProperty("proxyProtocol", proxyProtocol); return this; } /** * The region in which Kinesis Firehose client needs to work. When using * this parameter, the configuration will expect the lowercase name of * the region (for example ap-east-1) You'll need to use the name * Region.EU_WEST_1.id(). * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param region the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder region(String region) { doSetProperty("region", region); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder trustAllCertificates( boolean trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * If we want to trust all certificates in case of overriding the * endpoint. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param trustAllCertificates the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder trustAllCertificates( String trustAllCertificates) { doSetProperty("trustAllCertificates", trustAllCertificates); return this; } /** * Set the overriding uri endpoint. This option needs to be used in * combination with overrideEndpoint option. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: common * * @param uriEndpointOverride the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder uriEndpointOverride( String uriEndpointOverride) { doSetProperty("uriEndpointOverride", uriEndpointOverride); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option is a: &lt;code&gt;boolean&lt;/code&gt; type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder useDefaultCredentialsProvider( boolean useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Set whether the Kinesis client should expect to load credentials * through a default credentials provider or to expect static * credentials to be passed in. * * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt; * type. * * Default: false * Group: common * * @param useDefaultCredentialsProvider the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder useDefaultCredentialsProvider( String useDefaultCredentialsProvider) { doSetProperty("useDefaultCredentialsProvider", useDefaultCredentialsProvider); return this; } /** * Amazon AWS Access Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param accessKey the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder accessKey(String accessKey) { doSetProperty("accessKey", accessKey); return this; } /** * Amazon AWS Secret Key. * * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type. * * Group: security * * @param secretKey the value to set * @return the dsl builder */ default Kinesis2EndpointBuilder secretKey(String secretKey) { doSetProperty("secretKey", secretKey); return this; } } /** * Advanced builder for endpoint for the AWS 2 Kinesis component. */ public interface AdvancedKinesis2EndpointBuilder extends AdvancedKinesis2EndpointConsumerBuilder, AdvancedKinesis2EndpointProducerBuilder { default Kinesis2EndpointBuilder basic() { return (Kinesis2EndpointBuilder) this; } } /** * Proxy enum for <code>software.amazon.awssdk.core.Protocol</code> enum. */ enum Protocol { HTTP, HTTPS; } /** * Proxy enum for * <code>software.amazon.awssdk.services.kinesis.model.ShardIteratorType</code> enum. */ enum ShardIteratorType { AT_SEQUENCE_NUMBER, AFTER_SEQUENCE_NUMBER, TRIM_HORIZON, LATEST, AT_TIMESTAMP, UNKNOWN_TO_SDK_VERSION; } /** * Proxy enum for * <code>org.apache.camel.component.aws2.kinesis.Kinesis2ShardClosedStrategyEnum</code> enum. */ enum Kinesis2ShardClosedStrategyEnum { ignore, fail, silent; } public interface Kinesis2Builders { /** * AWS 2 Kinesis (camel-aws2-kinesis) * Consume and produce records from and to AWS Kinesis Streams using AWS * SDK version 2.x. * * Category: cloud,messaging * Since: 3.2 * Maven coordinates: org.apache.camel:camel-aws2-kinesis * * Syntax: <code>aws2-kinesis:streamName</code> * * Path parameter: streamName (required) * Name of the stream * * @param path streamName * @return the dsl builder */ default Kinesis2EndpointBuilder aws2Kinesis(String path) { return Kinesis2EndpointBuilderFactory.endpointBuilder("aws2-kinesis", path); } /** * AWS 2 Kinesis (camel-aws2-kinesis) * Consume and produce records from and to AWS Kinesis Streams using AWS * SDK version 2.x. * * Category: cloud,messaging * Since: 3.2 * Maven coordinates: org.apache.camel:camel-aws2-kinesis * * Syntax: <code>aws2-kinesis:streamName</code> * * Path parameter: streamName (required) * Name of the stream * * @param componentName to use a custom component name for the endpoint * instead of the default name * @param path streamName * @return the dsl builder */ default Kinesis2EndpointBuilder aws2Kinesis( String componentName, String path) { return Kinesis2EndpointBuilderFactory.endpointBuilder(componentName, path); } } static Kinesis2EndpointBuilder endpointBuilder( String componentName, String path) { class Kinesis2EndpointBuilderImpl extends AbstractEndpointBuilder implements Kinesis2EndpointBuilder, AdvancedKinesis2EndpointBuilder { public Kinesis2EndpointBuilderImpl(String path) { super(componentName, path); } } return new Kinesis2EndpointBuilderImpl(path); } }
{ "content_hash": "c0948c4d0525bb340924328aaa1cffe2", "timestamp": "", "source": "github", "line_count": 1954, "max_line_length": 143, "avg_line_length": 36.59314227226203, "alnum_prop": 0.5735563542788414, "repo_name": "nikhilvibhav/camel", "id": "c41a2a57e1d6781c2c46aa7869c38c34711993b8", "size": "72305", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/Kinesis2EndpointBuilderFactory.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Apex", "bytes": "6521" }, { "name": "Batchfile", "bytes": "2353" }, { "name": "CSS", "bytes": "5472" }, { "name": "Elm", "bytes": "10852" }, { "name": "FreeMarker", "bytes": "8015" }, { "name": "Groovy", "bytes": "14479" }, { "name": "HTML", "bytes": "915679" }, { "name": "Java", "bytes": "84966020" }, { "name": "JavaScript", "bytes": "100326" }, { "name": "Makefile", "bytes": "513" }, { "name": "RobotFramework", "bytes": "8461" }, { "name": "Shell", "bytes": "17240" }, { "name": "TSQL", "bytes": "28835" }, { "name": "Tcl", "bytes": "4974" }, { "name": "Thrift", "bytes": "6979" }, { "name": "XQuery", "bytes": "546" }, { "name": "XSLT", "bytes": "280849" } ], "symlink_target": "" }
.class Lcom/samsung/android/settings/fmm/RecipientsMinusView$2; .super Ljava/lang/Object; .source "RecipientsMinusView.java" # interfaces .implements Landroid/view/View$OnClickListener; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/samsung/android/settings/fmm/RecipientsMinusView;->onFinishInflate()V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x0 name = null .end annotation # instance fields .field final synthetic this$0:Lcom/samsung/android/settings/fmm/RecipientsMinusView; # direct methods .method constructor <init>(Lcom/samsung/android/settings/fmm/RecipientsMinusView;)V .locals 0 iput-object p1, p0, Lcom/samsung/android/settings/fmm/RecipientsMinusView$2;->this$0:Lcom/samsung/android/settings/fmm/RecipientsMinusView; invoke-direct {p0}, Ljava/lang/Object;-><init>()V return-void .end method # virtual methods .method public onClick(Landroid/view/View;)V .locals 2 const/16 v0, 0x1186 invoke-static {v0}, Lcom/samsung/android/settings/fmm/RecipientsMinusView;->-set1(I)I iget-object v0, p0, Lcom/samsung/android/settings/fmm/RecipientsMinusView$2;->this$0:Lcom/samsung/android/settings/fmm/RecipientsMinusView; iget-object v0, v0, Lcom/samsung/android/settings/fmm/RecipientsMinusView;->mContext:Landroid/content/Context; invoke-static {}, Lcom/samsung/android/settings/fmm/RecipientsMinusView;->-get1()I move-result v1 invoke-static {v0, v1}, Lcom/android/settings/Utils;->insertEventLog(Landroid/content/Context;I)V iget-object v0, p0, Lcom/samsung/android/settings/fmm/RecipientsMinusView$2;->this$0:Lcom/samsung/android/settings/fmm/RecipientsMinusView; const/4 v1, 0x0 invoke-virtual {v0, v1}, Lcom/samsung/android/settings/fmm/RecipientsMinusView;->setFocus(Z)V iget-object v0, p0, Lcom/samsung/android/settings/fmm/RecipientsMinusView$2;->this$0:Lcom/samsung/android/settings/fmm/RecipientsMinusView; invoke-static {v0}, Lcom/samsung/android/settings/fmm/RecipientsMinusView;->-wrap0(Lcom/samsung/android/settings/fmm/RecipientsMinusView;)V return-void .end method
{ "content_hash": "6fea5f42c17f42d3642efcb9bec24e12", "timestamp": "", "source": "github", "line_count": 65, "max_line_length": 143, "avg_line_length": 33.353846153846156, "alnum_prop": 0.772140221402214, "repo_name": "BatMan-Rom/ModdedFiles", "id": "20fa6dbc476c49048a6d1efca3b06e8a32147433", "size": "2168", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "SecSettings/smali/com/samsung/android/settings/fmm/RecipientsMinusView$2.smali", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "GLSL", "bytes": "15069" }, { "name": "HTML", "bytes": "139176" }, { "name": "Smali", "bytes": "541934400" } ], "symlink_target": "" }
package com.packt.sfjd.ch10.features; import java.util.Arrays; import java.util.List; import org.apache.spark.ml.feature.ChiSqSelector; import org.apache.spark.ml.linalg.VectorUDT; import org.apache.spark.ml.linalg.Vectors; import org.apache.spark.sql.Dataset; import org.apache.spark.sql.Row; import org.apache.spark.sql.RowFactory; import org.apache.spark.sql.SparkSession; import org.apache.spark.sql.types.DataTypes; import org.apache.spark.sql.types.Metadata; import org.apache.spark.sql.types.StructField; import org.apache.spark.sql.types.StructType; public class ChiSqSelectors { public static void main(String[] args) { System.setProperty("hadoop.home.dir", "D:\\hadoop"); SparkSession spark = SparkSession .builder().master("local") .appName("JavaChiSqSelectorExample") .getOrCreate(); List<Row> data = Arrays.asList( RowFactory.create(1, Vectors.dense(0.1, 0.0, 1.0, 20.0), 0.0), RowFactory.create(2, Vectors.dense(0.2, 1.0, 13.0, 40.0), 1.0), RowFactory.create(3, Vectors.dense(0.3, 2.0, 21.0, 1.1), 0.0) ); StructType schema = new StructType(new StructField[]{ new StructField("id", DataTypes.IntegerType, false, Metadata.empty()), new StructField("rawfeatures", new VectorUDT(), false, Metadata.empty()), new StructField("label", DataTypes.DoubleType, false, Metadata.empty()) }); Dataset<Row> df = spark.createDataFrame(data, schema); ChiSqSelector selector = new ChiSqSelector() .setNumTopFeatures(1) .setFeaturesCol("rawfeatures") .setLabelCol("label") .setOutputCol("features"); Dataset<Row> result = selector.fit(df).transform(df); result.show(); spark.stop(); } }
{ "content_hash": "814db5f1b3f1f4380182a696400e7206", "timestamp": "", "source": "github", "line_count": 51, "max_line_length": 82, "avg_line_length": 35.90196078431372, "alnum_prop": 0.659202621518296, "repo_name": "kumarsumit1/learning", "id": "8ad1b29faf034e0aec6fa88572f5ac5710174845", "size": "1831", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/packt/sfjd/ch10/features/ChiSqSelectors.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "201052" } ], "symlink_target": "" }
 #include <aws/iotwireless/model/JoinResourceTypeEventConfiguration.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace IoTWireless { namespace Model { JoinResourceTypeEventConfiguration::JoinResourceTypeEventConfiguration() : m_loRaWANHasBeenSet(false) { } JoinResourceTypeEventConfiguration::JoinResourceTypeEventConfiguration(JsonView jsonValue) : m_loRaWANHasBeenSet(false) { *this = jsonValue; } JoinResourceTypeEventConfiguration& JoinResourceTypeEventConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("LoRaWAN")) { m_loRaWAN = jsonValue.GetObject("LoRaWAN"); m_loRaWANHasBeenSet = true; } return *this; } JsonValue JoinResourceTypeEventConfiguration::Jsonize() const { JsonValue payload; if(m_loRaWANHasBeenSet) { payload.WithObject("LoRaWAN", m_loRaWAN.Jsonize()); } return payload; } } // namespace Model } // namespace IoTWireless } // namespace Aws
{ "content_hash": "c314fd9df5e125da50509e8dcbb74667", "timestamp": "", "source": "github", "line_count": 56, "max_line_length": 102, "avg_line_length": 18.660714285714285, "alnum_prop": 0.7607655502392344, "repo_name": "aws/aws-sdk-cpp", "id": "d577429586b47834b7f0254b814f032f723f579a", "size": "1164", "binary": false, "copies": "2", "ref": "refs/heads/main", "path": "aws-cpp-sdk-iotwireless/source/model/JoinResourceTypeEventConfiguration.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "309797" }, { "name": "C++", "bytes": "476866144" }, { "name": "CMake", "bytes": "1245180" }, { "name": "Dockerfile", "bytes": "11688" }, { "name": "HTML", "bytes": "8056" }, { "name": "Java", "bytes": "413602" }, { "name": "Python", "bytes": "79245" }, { "name": "Shell", "bytes": "9246" } ], "symlink_target": "" }
import sys from neutron_lib import constants as n_const from oslo_config import cfg from oslo_log import log as logging import oslo_messaging from oslo_utils import excutils from osprofiler import profiler from neutron._i18n import _LE, _LI, _LW from neutron.common import utils as n_utils from neutron.plugins.common import constants as p_const from neutron.plugins.ml2.drivers.openvswitch.agent.common import constants LOG = logging.getLogger(__name__) cfg.CONF.import_group('AGENT', 'neutron.plugins.ml2.drivers.openvswitch.' 'agent.common.config') # A class to represent a DVR-hosted subnet including vif_ports resident on # that subnet class LocalDVRSubnetMapping(object): def __init__(self, subnet, csnat_ofport=constants.OFPORT_INVALID): # set of compute ports on this dvr subnet self.compute_ports = {} self.subnet = subnet self.csnat_ofport = csnat_ofport self.dvr_owned = False def __str__(self): return ("subnet = %s compute_ports = %s csnat_port = %s" " is_dvr_owned = %s" % (self.subnet, self.get_compute_ofports(), self.get_csnat_ofport(), self.is_dvr_owned())) def get_subnet_info(self): return self.subnet def set_dvr_owned(self, owned): self.dvr_owned = owned def is_dvr_owned(self): return self.dvr_owned def add_compute_ofport(self, vif_id, ofport): self.compute_ports[vif_id] = ofport def remove_compute_ofport(self, vif_id): self.compute_ports.pop(vif_id, 0) def remove_all_compute_ofports(self): self.compute_ports.clear() def get_compute_ofports(self): return self.compute_ports def set_csnat_ofport(self, ofport): self.csnat_ofport = ofport def get_csnat_ofport(self): return self.csnat_ofport class OVSPort(object): def __init__(self, id, ofport, mac, device_owner): self.id = id self.mac = mac self.ofport = ofport self.subnets = set() self.device_owner = device_owner def __str__(self): return ("OVSPort: id = %s, ofport = %s, mac = %s, " "device_owner = %s, subnets = %s" % (self.id, self.ofport, self.mac, self.device_owner, self.subnets)) def add_subnet(self, subnet_id): self.subnets.add(subnet_id) def remove_subnet(self, subnet_id): self.subnets.remove(subnet_id) def remove_all_subnets(self): self.subnets.clear() def get_subnets(self): return self.subnets def get_device_owner(self): return self.device_owner def get_mac(self): return self.mac def get_ofport(self): return self.ofport @profiler.trace_cls("ovs_dvr_agent") class OVSDVRNeutronAgent(object): ''' Implements OVS-based DVR(Distributed Virtual Router), for overlay networks. ''' # history # 1.0 Initial version def __init__(self, context, plugin_rpc, integ_br, tun_br, bridge_mappings, phys_brs, int_ofports, phys_ofports, patch_int_ofport=constants.OFPORT_INVALID, patch_tun_ofport=constants.OFPORT_INVALID, host=None, enable_tunneling=False, enable_distributed_routing=False): self.context = context self.plugin_rpc = plugin_rpc self.host = host self.enable_tunneling = enable_tunneling self.enable_distributed_routing = enable_distributed_routing self.bridge_mappings = bridge_mappings self.phys_brs = phys_brs self.int_ofports = int_ofports self.phys_ofports = phys_ofports self.reset_ovs_parameters(integ_br, tun_br, patch_int_ofport, patch_tun_ofport) self.reset_dvr_parameters() self.dvr_mac_address = None if self.enable_distributed_routing: self.get_dvr_mac_address() self.conf = cfg.CONF def setup_dvr_flows(self): self.setup_dvr_flows_on_integ_br() self.setup_dvr_flows_on_tun_br() self.setup_dvr_flows_on_phys_br() self.setup_dvr_mac_flows_on_all_brs() def reset_ovs_parameters(self, integ_br, tun_br, patch_int_ofport, patch_tun_ofport): '''Reset the openvswitch parameters''' self.int_br = integ_br self.tun_br = tun_br self.patch_int_ofport = patch_int_ofport self.patch_tun_ofport = patch_tun_ofport def reset_dvr_parameters(self): '''Reset the DVR parameters''' self.local_dvr_map = {} self.local_csnat_map = {} self.local_ports = {} self.registered_dvr_macs = set() def get_dvr_mac_address(self): try: self.get_dvr_mac_address_with_retry() except oslo_messaging.RemoteError as e: LOG.error(_LE('L2 agent could not get DVR MAC address at ' 'startup due to RPC error. It happens when the ' 'server does not support this RPC API. Detailed ' 'message: %s'), e) except oslo_messaging.MessagingTimeout: LOG.error(_LE('DVR: Failed to obtain a valid local ' 'DVR MAC address')) if not self.in_distributed_mode(): sys.exit(1) def get_dvr_mac_address_with_retry(self): # Get the local DVR MAC Address from the Neutron Server. # This is the first place where we contact the server on startup # so retry in case it's not ready to respond for retry_count in reversed(range(5)): try: details = self.plugin_rpc.get_dvr_mac_address_by_host( self.context, self.host) except oslo_messaging.MessagingTimeout as e: with excutils.save_and_reraise_exception() as ctx: if retry_count > 0: ctx.reraise = False LOG.warning(_LW('L2 agent could not get DVR MAC ' 'address from server. Retrying. ' 'Detailed message: %s'), e) else: LOG.debug("L2 Agent DVR: Received response for " "get_dvr_mac_address_by_host() from " "plugin: %r", details) self.dvr_mac_address = details['mac_address'] return def setup_dvr_flows_on_integ_br(self): '''Setup up initial dvr flows into br-int''' LOG.info(_LI("L2 Agent operating in DVR Mode with MAC %s"), self.dvr_mac_address) # Remove existing flows in integration bridge if self.conf.AGENT.drop_flows_on_start: self.int_br.delete_flows() # Add a canary flow to int_br to track OVS restarts self.int_br.setup_canary_table() # Insert 'drop' action as the default for Table DVR_TO_SRC_MAC self.int_br.install_drop(table_id=constants.DVR_TO_SRC_MAC, priority=1) self.int_br.install_drop(table_id=constants.DVR_TO_SRC_MAC_VLAN, priority=1) # Insert 'normal' action as the default for Table LOCAL_SWITCHING self.int_br.install_normal(table_id=constants.LOCAL_SWITCHING, priority=1) for physical_network in self.bridge_mappings: self.int_br.install_drop(table_id=constants.LOCAL_SWITCHING, priority=2, in_port=self.int_ofports[ physical_network]) def setup_dvr_flows_on_tun_br(self): '''Setup up initial dvr flows into br-tun''' if not self.enable_tunneling: return self.tun_br.install_goto(dest_table_id=constants.DVR_PROCESS, priority=1, in_port=self.patch_int_ofport) # table-miss should be sent to learning table self.tun_br.install_goto(table_id=constants.DVR_NOT_LEARN, dest_table_id=constants.LEARN_FROM_TUN) self.tun_br.install_goto(table_id=constants.DVR_PROCESS, dest_table_id=constants.PATCH_LV_TO_TUN) def setup_dvr_flows_on_phys_br(self): '''Setup up initial dvr flows into br-phys''' for physical_network in self.bridge_mappings: self.phys_brs[physical_network].install_goto( in_port=self.phys_ofports[physical_network], priority=2, dest_table_id=constants.DVR_PROCESS_VLAN) self.phys_brs[physical_network].install_goto( priority=1, dest_table_id=constants.DVR_NOT_LEARN_VLAN) self.phys_brs[physical_network].install_goto( table_id=constants.DVR_PROCESS_VLAN, priority=0, dest_table_id=constants.LOCAL_VLAN_TRANSLATION) self.phys_brs[physical_network].install_drop( table_id=constants.LOCAL_VLAN_TRANSLATION, in_port=self.phys_ofports[physical_network], priority=2) self.phys_brs[physical_network].install_normal( table_id=constants.DVR_NOT_LEARN_VLAN, priority=1) def _add_dvr_mac_for_phys_br(self, physical_network, mac): self.int_br.add_dvr_mac_vlan(mac=mac, port=self.int_ofports[physical_network]) phys_br = self.phys_brs[physical_network] phys_br.add_dvr_mac_vlan(mac=mac, port=self.phys_ofports[physical_network]) def _remove_dvr_mac_for_phys_br(self, physical_network, mac): # REVISIT(yamamoto): match in_port as well? self.int_br.remove_dvr_mac_vlan(mac=mac) phys_br = self.phys_brs[physical_network] # REVISIT(yamamoto): match in_port as well? phys_br.remove_dvr_mac_vlan(mac=mac) def _add_dvr_mac_for_tun_br(self, mac): self.int_br.add_dvr_mac_tun(mac=mac, port=self.patch_tun_ofport) self.tun_br.add_dvr_mac_tun(mac=mac, port=self.patch_int_ofport) def _remove_dvr_mac_for_tun_br(self, mac): self.int_br.remove_dvr_mac_tun(mac=mac, port=self.patch_tun_ofport) # REVISIT(yamamoto): match in_port as well? self.tun_br.remove_dvr_mac_tun(mac=mac) def _add_dvr_mac(self, mac): for physical_network in self.bridge_mappings: self._add_dvr_mac_for_phys_br(physical_network, mac) if self.enable_tunneling: self._add_dvr_mac_for_tun_br(mac) LOG.debug("Added DVR MAC flow for %s", mac) self.registered_dvr_macs.add(mac) def _remove_dvr_mac(self, mac): for physical_network in self.bridge_mappings: self._remove_dvr_mac_for_phys_br(physical_network, mac) if self.enable_tunneling: self._remove_dvr_mac_for_tun_br(mac) LOG.debug("Removed DVR MAC flow for %s", mac) self.registered_dvr_macs.remove(mac) def setup_dvr_mac_flows_on_all_brs(self): dvr_macs = self.plugin_rpc.get_dvr_mac_address_list(self.context) LOG.debug("L2 Agent DVR: Received these MACs: %r", dvr_macs) for mac in dvr_macs: if mac['mac_address'] == self.dvr_mac_address: continue self._add_dvr_mac(mac['mac_address']) def dvr_mac_address_update(self, dvr_macs): if not self.dvr_mac_address: LOG.debug("Self mac unknown, ignoring this " "dvr_mac_address_update() ") return dvr_host_macs = set() for entry in dvr_macs: if entry['mac_address'] == self.dvr_mac_address: continue dvr_host_macs.add(entry['mac_address']) if dvr_host_macs == self.registered_dvr_macs: LOG.debug("DVR Mac address already up to date") return dvr_macs_added = dvr_host_macs - self.registered_dvr_macs dvr_macs_removed = self.registered_dvr_macs - dvr_host_macs for oldmac in dvr_macs_removed: self._remove_dvr_mac(oldmac) for newmac in dvr_macs_added: self._add_dvr_mac(newmac) def in_distributed_mode(self): return self.dvr_mac_address is not None def process_tunneled_network(self, network_type, lvid, segmentation_id): self.tun_br.provision_local_vlan( network_type=network_type, lvid=lvid, segmentation_id=segmentation_id, distributed=self.in_distributed_mode()) def _bind_distributed_router_interface_port(self, port, lvm, fixed_ips, device_owner): # since distributed router port must have only one fixed # IP, directly use fixed_ips[0] fixed_ip = fixed_ips[0] subnet_uuid = fixed_ip['subnet_id'] csnat_ofport = constants.OFPORT_INVALID ldm = None if subnet_uuid in self.local_dvr_map: ldm = self.local_dvr_map[subnet_uuid] csnat_ofport = ldm.get_csnat_ofport() if csnat_ofport == constants.OFPORT_INVALID: LOG.error(_LE("DVR: Duplicate DVR router interface detected " "for subnet %s"), subnet_uuid) return else: # set up LocalDVRSubnetMapping available for this subnet subnet_info = self.plugin_rpc.get_subnet_for_dvr( self.context, subnet_uuid, fixed_ips=fixed_ips) if not subnet_info: LOG.warning(_LW("DVR: Unable to retrieve subnet information " "for subnet_id %s. The subnet or the gateway " "may have already been deleted"), subnet_uuid) return LOG.debug("get_subnet_for_dvr for subnet %(uuid)s " "returned with %(info)s", {"uuid": subnet_uuid, "info": subnet_info}) ldm = LocalDVRSubnetMapping(subnet_info) self.local_dvr_map[subnet_uuid] = ldm # DVR takes over ldm.set_dvr_owned(True) vlan_to_use = lvm.vlan if lvm.network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id subnet_info = ldm.get_subnet_info() ip_version = subnet_info['ip_version'] local_compute_ports = ( self.plugin_rpc.get_ports_on_host_by_subnet( self.context, self.host, subnet_uuid)) LOG.debug("DVR: List of ports received from " "get_ports_on_host_by_subnet %s", local_compute_ports) vif_by_id = self.int_br.get_vifs_by_ids( [local_port['id'] for local_port in local_compute_ports]) for local_port in local_compute_ports: vif = vif_by_id.get(local_port['id']) if not vif: continue ldm.add_compute_ofport(vif.vif_id, vif.ofport) if vif.vif_id in self.local_ports: # ensure if a compute port is already on # a different dvr routed subnet # if yes, queue this subnet to that port comp_ovsport = self.local_ports[vif.vif_id] comp_ovsport.add_subnet(subnet_uuid) else: # the compute port is discovered first here that its on # a dvr routed subnet queue this subnet to that port comp_ovsport = OVSPort(vif.vif_id, vif.ofport, vif.vif_mac, local_port['device_owner']) comp_ovsport.add_subnet(subnet_uuid) self.local_ports[vif.vif_id] = comp_ovsport # create rule for just this vm port self.int_br.install_dvr_to_src_mac( network_type=lvm.network_type, vlan_tag=vlan_to_use, gateway_mac=subnet_info['gateway_mac'], dst_mac=comp_ovsport.get_mac(), dst_port=comp_ovsport.get_ofport()) if lvm.network_type == p_const.TYPE_VLAN: # TODO(vivek) remove the IPv6 related flows once SNAT is not # used for IPv6 DVR. br = self.phys_brs[lvm.physical_network] if lvm.network_type in constants.TUNNEL_NETWORK_TYPES: br = self.tun_br # TODO(vivek) remove the IPv6 related flows once SNAT is not # used for IPv6 DVR. if ip_version == 4: br.install_dvr_process_ipv4( vlan_tag=lvm.vlan, gateway_ip=subnet_info['gateway_ip']) else: br.install_dvr_process_ipv6( vlan_tag=lvm.vlan, gateway_mac=subnet_info['gateway_mac']) br.install_dvr_process( vlan_tag=lvm.vlan, vif_mac=port.vif_mac, dvr_mac_address=self.dvr_mac_address) # the dvr router interface is itself a port, so capture it # queue this subnet to that port. A subnet appears only once as # a router interface on any given router ovsport = OVSPort(port.vif_id, port.ofport, port.vif_mac, device_owner) ovsport.add_subnet(subnet_uuid) self.local_ports[port.vif_id] = ovsport def _bind_port_on_dvr_subnet(self, port, lvm, fixed_ips, device_owner): # Handle new compute port added use-case subnet_uuid = None for ips in fixed_ips: if ips['subnet_id'] not in self.local_dvr_map: continue subnet_uuid = ips['subnet_id'] ldm = self.local_dvr_map[subnet_uuid] if not ldm.is_dvr_owned(): # well this is CSNAT stuff, let dvr come in # and do plumbing for this vm later continue # This confirms that this compute port belongs # to a dvr hosted subnet. # Accommodate this VM Port into the existing rule in # the integration bridge LOG.debug("DVR: Plumbing compute port %s", port.vif_id) subnet_info = ldm.get_subnet_info() ldm.add_compute_ofport(port.vif_id, port.ofport) if port.vif_id in self.local_ports: # ensure if a compute port is already on a different # dvr routed subnet # if yes, queue this subnet to that port ovsport = self.local_ports[port.vif_id] ovsport.add_subnet(subnet_uuid) else: # the compute port is discovered first here that its # on a dvr routed subnet, queue this subnet to that port ovsport = OVSPort(port.vif_id, port.ofport, port.vif_mac, device_owner) ovsport.add_subnet(subnet_uuid) self.local_ports[port.vif_id] = ovsport vlan_to_use = lvm.vlan if lvm.network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id # create a rule for this vm port self.int_br.install_dvr_to_src_mac( network_type=lvm.network_type, vlan_tag=vlan_to_use, gateway_mac=subnet_info['gateway_mac'], dst_mac=ovsport.get_mac(), dst_port=ovsport.get_ofport()) def _bind_centralized_snat_port_on_dvr_subnet(self, port, lvm, fixed_ips, device_owner): # since centralized-SNAT (CSNAT) port must have only one fixed # IP, directly use fixed_ips[0] fixed_ip = fixed_ips[0] if port.vif_id in self.local_ports: # throw an error if CSNAT port is already on a different # dvr routed subnet ovsport = self.local_ports[port.vif_id] subs = list(ovsport.get_subnets()) if subs[0] == fixed_ip['subnet_id']: return LOG.error(_LE("Centralized-SNAT port %(port)s on subnet " "%(port_subnet)s already seen on a different " "subnet %(orig_subnet)s"), { "port": port.vif_id, "port_subnet": fixed_ip['subnet_id'], "orig_subnet": subs[0], }) return subnet_uuid = fixed_ip['subnet_id'] ldm = None subnet_info = None if subnet_uuid not in self.local_dvr_map: # no csnat ports seen on this subnet - create csnat state # for this subnet subnet_info = self.plugin_rpc.get_subnet_for_dvr( self.context, subnet_uuid, fixed_ips=fixed_ips) if not subnet_info: LOG.warning(_LW("DVR: Unable to retrieve subnet information " "for subnet_id %s. The subnet or the gateway " "may have already been deleted"), subnet_uuid) return LOG.debug("get_subnet_for_dvr for subnet %(uuid)s " "returned with %(info)s", {"uuid": subnet_uuid, "info": subnet_info}) ldm = LocalDVRSubnetMapping(subnet_info, port.ofport) self.local_dvr_map[subnet_uuid] = ldm else: ldm = self.local_dvr_map[subnet_uuid] subnet_info = ldm.get_subnet_info() # Store csnat OF Port in the existing DVRSubnetMap ldm.set_csnat_ofport(port.ofport) # create ovsPort footprint for csnat port ovsport = OVSPort(port.vif_id, port.ofport, port.vif_mac, device_owner) ovsport.add_subnet(subnet_uuid) self.local_ports[port.vif_id] = ovsport vlan_to_use = lvm.vlan if lvm.network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id self.int_br.install_dvr_to_src_mac( network_type=lvm.network_type, vlan_tag=vlan_to_use, gateway_mac=subnet_info['gateway_mac'], dst_mac=ovsport.get_mac(), dst_port=ovsport.get_ofport()) def bind_port_to_dvr(self, port, local_vlan_map, fixed_ips, device_owner): if not self.in_distributed_mode(): return if local_vlan_map.network_type not in (constants.TUNNEL_NETWORK_TYPES + [p_const.TYPE_VLAN]): LOG.debug("DVR: Port %s is with network_type %s not supported" " for dvr plumbing", port.vif_id, local_vlan_map.network_type) return if (port.vif_id in self.local_ports and self.local_ports[port.vif_id].ofport != port.ofport): LOG.info(_LI("DVR: Port %(vif)s changed port number to " "%(ofport)s, rebinding."), {'vif': port.vif_id, 'ofport': port.ofport}) self.unbind_port_from_dvr(port, local_vlan_map) if device_owner == n_const.DEVICE_OWNER_DVR_INTERFACE: self._bind_distributed_router_interface_port(port, local_vlan_map, fixed_ips, device_owner) if device_owner and n_utils.is_dvr_serviced(device_owner): self._bind_port_on_dvr_subnet(port, local_vlan_map, fixed_ips, device_owner) if device_owner == n_const.DEVICE_OWNER_ROUTER_SNAT: self._bind_centralized_snat_port_on_dvr_subnet(port, local_vlan_map, fixed_ips, device_owner) def _unbind_distributed_router_interface_port(self, port, lvm): ovsport = self.local_ports[port.vif_id] # removal of distributed router interface subnet_ids = ovsport.get_subnets() subnet_set = set(subnet_ids) network_type = lvm.network_type physical_network = lvm.physical_network vlan_to_use = lvm.vlan if network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id # ensure we process for all the subnets laid on this removed port for sub_uuid in subnet_set: if sub_uuid not in self.local_dvr_map: continue ldm = self.local_dvr_map[sub_uuid] subnet_info = ldm.get_subnet_info() ip_version = subnet_info['ip_version'] # DVR is no more owner ldm.set_dvr_owned(False) # remove all vm rules for this dvr subnet # clear of compute_ports altogether compute_ports = ldm.get_compute_ofports() for vif_id in compute_ports: comp_port = self.local_ports[vif_id] self.int_br.delete_dvr_to_src_mac( network_type=network_type, vlan_tag=vlan_to_use, dst_mac=comp_port.get_mac()) ldm.remove_all_compute_ofports() if ldm.get_csnat_ofport() == constants.OFPORT_INVALID: # if there is no csnat port for this subnet, remove # this subnet from local_dvr_map, as no dvr (or) csnat # ports available on this agent anymore self.local_dvr_map.pop(sub_uuid, None) if network_type == p_const.TYPE_VLAN: br = self.phys_brs[physical_network] if network_type in constants.TUNNEL_NETWORK_TYPES: br = self.tun_br if ip_version == 4: br.delete_dvr_process_ipv4( vlan_tag=lvm.vlan, gateway_ip=subnet_info['gateway_ip']) else: br.delete_dvr_process_ipv6( vlan_tag=lvm.vlan, gateway_mac=subnet_info['gateway_mac']) ovsport.remove_subnet(sub_uuid) if lvm.network_type == p_const.TYPE_VLAN: br = self.phys_brs[physical_network] if lvm.network_type in constants.TUNNEL_NETWORK_TYPES: br = self.tun_br br.delete_dvr_process(vlan_tag=lvm.vlan, vif_mac=port.vif_mac) # release port state self.local_ports.pop(port.vif_id, None) def _unbind_port_on_dvr_subnet(self, port, lvm): ovsport = self.local_ports[port.vif_id] # This confirms that this compute port being removed belonged # to a dvr hosted subnet. LOG.debug("DVR: Removing plumbing for compute port %s", port) subnet_ids = ovsport.get_subnets() # ensure we process for all the subnets laid on this port for sub_uuid in subnet_ids: if sub_uuid not in self.local_dvr_map: continue ldm = self.local_dvr_map[sub_uuid] ldm.remove_compute_ofport(port.vif_id) vlan_to_use = lvm.vlan if lvm.network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id # first remove this vm port rule self.int_br.delete_dvr_to_src_mac( network_type=lvm.network_type, vlan_tag=vlan_to_use, dst_mac=ovsport.get_mac()) # release port state self.local_ports.pop(port.vif_id, None) def _unbind_centralized_snat_port_on_dvr_subnet(self, port, lvm): ovsport = self.local_ports[port.vif_id] # This confirms that this compute port being removed belonged # to a dvr hosted subnet. LOG.debug("DVR: Removing plumbing for csnat port %s", port) sub_uuid = list(ovsport.get_subnets())[0] # ensure we process for all the subnets laid on this port if sub_uuid not in self.local_dvr_map: return ldm = self.local_dvr_map[sub_uuid] ldm.set_csnat_ofport(constants.OFPORT_INVALID) vlan_to_use = lvm.vlan if lvm.network_type == p_const.TYPE_VLAN: vlan_to_use = lvm.segmentation_id # then remove csnat port rule self.int_br.delete_dvr_to_src_mac( network_type=lvm.network_type, vlan_tag=vlan_to_use, dst_mac=ovsport.get_mac()) if not ldm.is_dvr_owned(): # if not owned by DVR (only used for csnat), remove this # subnet state altogether self.local_dvr_map.pop(sub_uuid, None) # release port state self.local_ports.pop(port.vif_id, None) def unbind_port_from_dvr(self, vif_port, local_vlan_map): if not self.in_distributed_mode(): return # Handle port removed use-case if vif_port and vif_port.vif_id not in self.local_ports: LOG.debug("DVR: Non distributed port, ignoring %s", vif_port) return ovsport = self.local_ports[vif_port.vif_id] device_owner = ovsport.get_device_owner() if device_owner == n_const.DEVICE_OWNER_DVR_INTERFACE: self._unbind_distributed_router_interface_port(vif_port, local_vlan_map) if device_owner and n_utils.is_dvr_serviced(device_owner): self._unbind_port_on_dvr_subnet(vif_port, local_vlan_map) if device_owner == n_const.DEVICE_OWNER_ROUTER_SNAT: self._unbind_centralized_snat_port_on_dvr_subnet(vif_port, local_vlan_map)
{ "content_hash": "c2580eaac2569cf63cf5f48e89431b26", "timestamp": "", "source": "github", "line_count": 700, "max_line_length": 79, "avg_line_length": 42.64142857142857, "alnum_prop": 0.5580756474253744, "repo_name": "sebrandon1/neutron", "id": "8965d4313f8ff00183f65adb9b26fb517d5839b4", "size": "30507", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "neutron/plugins/ml2/drivers/openvswitch/agent/ovs_dvr_neutron_agent.py", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Mako", "bytes": "1047" }, { "name": "Python", "bytes": "9903006" }, { "name": "Shell", "bytes": "14339" } ], "symlink_target": "" }
- Lazily load regression test data when missing rather than eagerly at suite start. - Add a 'run_' prefix to the random dir segment used for test data
{ "content_hash": "4f35fbda8b836feb4003781780602c2e", "timestamp": "", "source": "github", "line_count": 2, "max_line_length": 83, "avg_line_length": 76.5, "alnum_prop": 0.7647058823529411, "repo_name": "jedesah/Quasar", "id": "a4e737ce90c954f993d503970b34b43e5746d1dd", "size": "153", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "CHANGELOG/11.8.1.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "848" }, { "name": "CSS", "bytes": "182" }, { "name": "HTML", "bytes": "220" }, { "name": "Java", "bytes": "20480" }, { "name": "JavaScript", "bytes": "937" }, { "name": "Scala", "bytes": "7207206" }, { "name": "Shell", "bytes": "55174" } ], "symlink_target": "" }
// // WUCollectionView.h // WUTable // // Created by 武探 on 2017/3/10. // Copyright © 2017年 wutan. All rights reserved. // #import <UIKit/UIKit.h> #import "WUDataSource.h" @class WUCollectionView; NS_ASSUME_NONNULL_BEGIN #pragma mark - typedef CGSize(^WUCollectionViewSizeForItemHandler)(WUCollectionView *collectionView, UICollectionViewLayout *collectionViewLayout, NSIndexPath *indexPath); typedef void(^WUCollectionViewWillDisplayCellHandler)(WUCollectionView *collectionView, UICollectionViewCell *cell, NSIndexPath *indexPath); typedef void(^WUCollectionViewDidEndDisplayCellHandler)(WUCollectionView *collectionView, UICollectionViewCell *cell, NSIndexPath *indexPath); typedef void(^WUCollectionViewDidSelectItemHandler)(WUCollectionView *collectionView, NSIndexPath *indexPath); typedef void(^WUCollectionViewMoveItemCompletedHandler)(WUCollectionView *collectionView, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath); @interface WUCollectionView : UICollectionView<UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout> @property(nonatomic, weak, nullable) id<UICollectionViewDelegate> delegate NS_UNAVAILABLE; @property(nonatomic, weak, nullable) id<UICollectionViewDataSource> dataSource NS_UNAVAILABLE; @property(nonatomic, strong, nullable) NSMutableArray<WUSectionObject*> *datas; /** 是否启用拖动排列功能 默认NO */ @property(nonatomic, assign) BOOL interactiveMovementEnabled NS_AVAILABLE_IOS(9_0); /** Default: 0.5 */ @property(nonatomic, assign) CFTimeInterval interactiveMovementMinimumPressDuration; /** 是否在moveItem完成时自动更新data中的数据 默认YES */ @property(nonatomic, assign) BOOL autoRefreshDataWhenMoveItemCompleted NS_AVAILABLE_IOS(9_0); /** 如果实现了此block,[WUDataSourceProtocol dataSourceSizeWithUserData:]将会被忽略 */ @property(nonatomic, copy, nullable) WUCollectionViewSizeForItemHandler sizeForItemHandler; @property(nonatomic, copy, nullable) WUCollectionViewWillDisplayCellHandler willDisplayCellHandler NS_AVAILABLE_IOS(8_0); @property(nonatomic, copy, nullable) WUCollectionViewDidEndDisplayCellHandler didEndDisplayCellHandler NS_AVAILABLE_IOS(8_0); @property(nonatomic, copy, nullable) WUCollectionViewDidSelectItemHandler didSelectItemHandler; @property(nonatomic, copy, nullable) WUCollectionViewMoveItemCompletedHandler moveItemCompletedHandler NS_AVAILABLE_IOS(9_0); /** 返回点击cell的屏幕rect @param point 相对于tableView的点击point @return 如果没有对应的cell,返回CGRectNull */ -(CGRect)cellScreenRectWithTouchPoint:(CGPoint)point; @end NS_ASSUME_NONNULL_END
{ "content_hash": "6e26521cd13468566dfb57897ccd7dd0", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 156, "avg_line_length": 40.806451612903224, "alnum_prop": 0.8320158102766798, "repo_name": "601811765/WUTable", "id": "5cc7c1bb17c438f57529f1a8e02b8873bedabffe", "size": "2663", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "WUTable/WUTable/WUCollectionView.h", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "61937" } ], "symlink_target": "" }
Option Strict Off ' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Diagnostics Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.RemoveUnnecessaryImports Partial Public Class RemoveUnnecessaryImportsTests Inherits AbstractVisualBasicDiagnosticProviderBasedUserDiagnosticTest <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInDocument() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ {|FixAllInDocument:Imports System Imports System.Collections.Generic |} Class Program Public x As Int32 End Class]]> </Document> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document> <![CDATA[Class Program Public x As Int32 End Class]]> </Document> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, ignoreTrivia:=False, fixAllActionEquivalenceKey:=Nothing) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInProject() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ {|FixAllInProject:Imports System Imports System.Collections.Generic |} Class Program Public x As Int32 End Class]]> </Document> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document> <![CDATA[Class Program Public x As Int32 End Class]]> </Document> <Document> <![CDATA[Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, ignoreTrivia:=False, fixAllActionEquivalenceKey:=Nothing) End Function <Fact> <Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)> <Trait(Traits.Feature, Traits.Features.CodeActionsFixAllOccurrences)> Public Async Function TestFixAllInSolution() As Task Dim input = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document><![CDATA[ {|FixAllInSolution:Imports System Imports System.Collections.Generic |} Class Program Public x As Int32 End Class]]> </Document> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document><![CDATA[ Imports System Imports System.Collections.Generic Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Dim expected = <Workspace> <Project Language="Visual Basic" AssemblyName="Assembly1" CommonReferences="true"> <Document> <![CDATA[Class Program Public x As Int32 End Class]]> </Document> <Document> <![CDATA[Class Program2 Public x As Int32 End Class]]> </Document> </Project> <Project Language="Visual Basic" AssemblyName="Assembly2" CommonReferences="true"> <ProjectReference>Assembly1</ProjectReference> <Document> <![CDATA[Class Program3 Public x As Int32 End Class]]> </Document> </Project> </Workspace>.ToString() Await TestInRegularAndScriptAsync(input, expected, ignoreTrivia:=False, fixAllActionEquivalenceKey:=Nothing) End Function End Class End Namespace
{ "content_hash": "2d752fd5c520e86152d205eda15f7a44", "timestamp": "", "source": "github", "line_count": 205, "max_line_length": 159, "avg_line_length": 39.292682926829265, "alnum_prop": 0.5173184357541899, "repo_name": "yeaicc/roslyn", "id": "fb345832c674e49995409bc822ca6353b1d4d401", "size": "8055", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "src/EditorFeatures/VisualBasicTest/RemoveUnnecessaryImports/RemoveUnnecessaryImportsTests_FixAllTests.vb", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "14520" }, { "name": "C#", "bytes": "80812337" }, { "name": "C++", "bytes": "6311" }, { "name": "F#", "bytes": "421" }, { "name": "Groovy", "bytes": "7012" }, { "name": "Makefile", "bytes": "3368" }, { "name": "PowerShell", "bytes": "25676" }, { "name": "Shell", "bytes": "7446" }, { "name": "Visual Basic", "bytes": "61233287" } ], "symlink_target": "" }
Stacking tutorial ================= Faucet has two primary modes of operation: independent switching and distributed switching. In independent mode each decision about the network (learning, routing, etc) is made in the context of each individual switch. This tutorial will cover Faucet's distributed switching (a.k.a stacking) mode. Stacking allows decisions such as switching and routing to be made in the context of the whole network. This has great benefits for building resilient network topologies that can automatically recover from switch and port/cable failures. In this tutorial we will cover some of the new features and demonstrate how they work. Prerequisites ^^^^^^^^^^^^^ - Knowledge of the VLAN and routing tutorial topics (:doc:`vlans`, :doc:`routing`) - Install Faucet - :ref:`tutorial-package-installation` steps 1 & 2 - Install Open vSwitch - :ref:`tutorial-first-datapath-connection` steps 1 & 2 - Useful Bash Functions - Copy and paste the following definitions into your bash terminal, or to make them persistent between sessions add them to the bottom of your .bashrc and run 'source .bashrc'. .. literalinclude:: ../_static/tutorial/create_ns :language: bash .. literalinclude:: ../_static/tutorial/as_ns :language: bash .. literalinclude:: ../_static/tutorial/inter_switch_link :language: bash .. literalinclude:: ../_static/tutorial/cleanup :language: bash - Run the cleanup script to remove old namespaces and switches: .. code:: console cleanup .. _tutorial-stacking: Basic stacking ^^^^^^^^^^^^^^ We can start by considering two switches with one host on each switch on the same VLAN. .. figure:: ../_static/images/tutorial-stack.svg :alt: stacking diagram :align: center :width: 80% Let's define a simple base faucet.yaml to get started: .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: multiple-switches-yaml vlans: hosts: vid: 100 dps: br0: dp_id: 0x1 hardware: "Open vSwitch" interfaces: 1: description: "host1 network namespace" native_vlan: hosts br1: dp_id: 0x2 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: hosts Now lets signal faucet to reload the configuration file. .. code:: console sudo systemctl reload faucet We need to create our two hosts, host1 and host2. .. code:: console create_ns host1 10.0.1.1/24 create_ns host2 10.0.1.2/24 To setup multiple switches in Open vSwitch we can define two bridges with different datapath-ids and names. We'll be using br0 and br1. .. code:: console sudo ovs-vsctl add-br br0 \ -- set bridge br0 other-config:datapath-id=0000000000000001 \ -- set bridge br0 other-config:disable-in-band=true \ -- set bridge br0 fail_mode=secure \ -- add-port br0 veth-host1 -- set interface veth-host1 ofport_request=1 \ -- set-controller br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br1 \ -- set bridge br1 other-config:datapath-id=0000000000000002 \ -- set bridge br1 other-config:disable-in-band=true \ -- set bridge br1 fail_mode=secure \ -- add-port br1 veth-host2 -- set interface veth-host2 ofport_request=1 \ -- set-controller br1 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 Since the switches are not connected it will be impossible to ping between the two hosts. .. code:: console as_ns host1 ping 10.0.1.2 To connect the switches we can use the Faucet switch stacking feature. First, we need to define a root switch for our stack by setting a ``stack priority`` value for br0, the datapath with the lowest priority will be root. Second, we need to add stack interfaces connecting each datapath, we do this by defining the ``stack`` parameter on an interface. When defining a stack interface we say which datapath (dp) and port the other end of the cable is connected to. Replace your base faucet.yaml from earlier with this version with stacking enabled: .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: switch-stacking-yaml vlans: hosts: vid: 100 dps: br0: dp_id: 0x1 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "host1 network namespace" native_vlan: hosts 2: description: "br0 stack link to br1" stack: dp: br1 port: 2 br1: dp_id: 0x2 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: hosts 2: description: "br1 stack link to br0" stack: dp: br0 port: 2 To connect two Open vSwitch bridges we can use a veth interface pair. We will use the ``inter_switch_link`` function we defined earlier to connect br0 port 2 to br1 port 2: .. code:: console inter_switch_link br0:2 br1:2 Let's reload Faucet and see what happens. .. code:: console sudo systemctl reload faucet Faucet will start sending out LLDP beacons to connect up the stack ports. We can see this happening in the log file when the switches report that port 2 (the stack port) is UP. .. code-block:: :caption: /var/log/faucet/faucet.log :name: lldp-stack-log DPID 2 (0x2) br1 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 1 (0x1), port 2) state 2 DPID 2 (0x2) br1 Stack Port 2 INIT DPID 1 (0x1) br0 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 2 (0x2), port 2) state 2 DPID 1 (0x1) br0 Stack Port 2 INIT DPID 2 (0x2) br1 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 1 (0x1), port 2) state 1 DPID 2 (0x2) br1 Stack Port 2 UP DPID 2 (0x2) br1 1 stack ports changed state DPID 1 (0x1) br0 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 2 (0x2), port 2) state 1 DPID 1 (0x1) br0 Stack Port 2 UP DPID 1 (0x1) br0 1 stack ports changed state DPID 2 (0x2) br1 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 1 (0x1), port 2) state 3 DPID 1 (0x1) br0 LLDP on 0e:00:00:00:00:01, Port 2 from 0e:00:00:00:00:01 (remote DPID 2 (0x2), port 2) state 3 .. note:: If we were to accidentally cable our switches incorrectly faucet would report the incorrect cabling in the log file. Now that the two switches are connected and our stack is up, we can ping between the two hosts. .. code:: console as_ns host1 ping 10.0.1.2 Inter-VLAN routing with stacking ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For this task we will see that inter-VLAN routing can work between hosts on different switches. .. figure:: ../_static/images/tutorial-stackwithivr.svg :alt: Stacking with inter-VLAN routing diagram :align: center :width: 80% First run the cleanup. .. code:: console cleanup We can accomplish inter-VLAN routing between different switches by using the stacking feature. To do this we will be combining the methods from the :ref:`tutorial-stacking` and the :ref:`tutorial-ivr` tutorials. Here is a full faucet.yaml you can copy and paste that sets up our stack topology and enables all the features we need. .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: ivr-switch-stacking-yaml vlans: hosts: vid: 100 faucet_vips: ["10.0.1.254/24"] faucet_mac: "00:00:00:00:00:11" servers: vid: 200 faucet_vips: ["10.0.2.254/24"] faucet_mac: "00:00:00:00:00:22" routers: router-1: vlans: [hosts, servers] dps: br0: dp_id: 0x1 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "host1 network namespace" native_vlan: hosts 2: description: "br0 stack link to br1" stack: dp: br1 port: 2 3: description: "server1 network namespace" native_vlan: servers br1: dp_id: 0x2 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: hosts 2: description: "br1 stack link to br0" stack: dp: br0 port: 2 3: description: "server2 network namespace" native_vlan: servers Reload faucet to enable inter-VLAN routing. .. code:: console sudo systemctl reload faucet As we have learnt previously. First, set up the hosts: .. code:: console create_ns host1 10.0.1.1/24 create_ns host2 10.0.1.2/24 create_ns server1 10.0.2.1/24 create_ns server2 10.0.2.2/24 Now we can set-up the default routes for each host. .. code:: console as_ns host1 ip route add default via 10.0.1.254 as_ns host2 ip route add default via 10.0.1.254 as_ns server1 ip route add default via 10.0.2.254 as_ns server2 ip route add default via 10.0.2.254 Next, we can create the bridges. .. code:: console sudo ovs-vsctl add-br br0 \ -- set bridge br0 other-config:datapath-id=0000000000000001 \ -- set bridge br0 other-config:disable-in-band=true \ -- set bridge br0 fail_mode=secure \ -- add-port br0 veth-host1 -- set interface veth-host1 ofport_request=1 \ -- add-port br0 veth-server1 -- set interface veth-server1 ofport_request=3 \ -- set-controller br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br1 \ -- set bridge br1 other-config:datapath-id=0000000000000002 \ -- set bridge br1 other-config:disable-in-band=true \ -- set bridge br1 fail_mode=secure \ -- add-port br1 veth-host2 -- set interface veth-host2 ofport_request=1 \ -- add-port br1 veth-server2 -- set interface veth-server2 ofport_request=3 \ -- set-controller br1 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 And finally, we can create the inter-switch links to connect the bridges to each other. .. code:: console inter_switch_link br0:2 br1:2 Now it should be possible to ping between any combination of hosts on any VLAN after the LLDP has configured the stack ports as UP. For example host1 can ping to server1 on the same switch as well as server2 on the other switch via the use of the stack link. .. code:: console as_ns host1 ping 10.0.2.1 as_ns host1 ping 10.0.2.2 Tunneling over a stack ^^^^^^^^^^^^^^^^^^^^^^ Faucet has a feature that allows us to tunnel packets from one datapath to another without having to think about the underlying network topology. In this example we have three switches and two hosts. We will create a tunnel that runs over top of this topology connecting host1 and host2 together. .. figure:: ../_static/images/tutorial-stack-tunnel.svg :alt: tunneling over a stack diagram :align: center :width: 80% First run the cleanup. .. code:: console cleanup Now let's define our faucet.yaml that will make this network work. The configuration file below defines our faucet stack topology and ports for our host1 and host2. An important thing to note is that we define our two hosts on separate VLANs so they should not be able to communicate. The other thing to notice is the two ACLs we define, ``tunnel-to-host1`` and ``tunnel-to-host2``. At the moment these ACLs match all traffic (though we could easily add a match here to only tunnel a subset of traffic, see :ref:`tutorial-acl` for more details). Each tunnel sets the destination datapath and port for traffic matching the ACL, we currently support one type of tunnel, VLAN, and must reserve a tunnel VLAN here using the ``tunnel_id`` parameter (in future we could support different types of tunnels). The two ACLs are then applied to the ports host1 and host2 are connected to. .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: faucet-tunneling-yaml acls: tunnel-to-host1: - rule: actions: output: tunnel: type: 'vlan' tunnel_id: 901 dp: br0 port: 1 tunnel-to-host2: - rule: actions: output: tunnel: type: 'vlan' tunnel_id: 902 dp: br2 port: 1 vlans: host1: vid: 101 host2: vid: 102 dps: br0: dp_id: 0x1 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "host1 network namespace" native_vlan: host1 acl_in: tunnel-to-host2 2: description: "br0 stack link to br1" stack: dp: br1 port: 1 br1: dp_id: 0x2 hardware: "Open vSwitch" interfaces: 1: description: "br1 stack link to br0" stack: dp: br0 port: 2 2: description: "br1 stack link to br2" stack: dp: br2 port: 2 br2: dp_id: 0x3 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: host2 acl_in: tunnel-to-host1 2: description: "br2 stack link to br1" stack: dp: br1 port: 2 When we have updated our configuration to match above, signal to faucet to reload the configuration file. .. code:: console sudo systemctl reload faucet Then we can set up the hosts: .. code:: console create_ns host1 10.0.1.1/24 create_ns host2 10.0.1.2/24 Next, we can create the bridges. .. code:: console sudo ovs-vsctl add-br br0 \ -- set bridge br0 other-config:datapath-id=0000000000000001 \ -- set bridge br0 other-config:disable-in-band=true \ -- set bridge br0 fail_mode=secure \ -- add-port br0 veth-host1 -- set interface veth-host1 ofport_request=1 \ -- set-controller br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br1 \ -- set bridge br1 other-config:datapath-id=0000000000000002 \ -- set bridge br1 other-config:disable-in-band=true \ -- set bridge br1 fail_mode=secure \ -- set-controller br1 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br2 \ -- set bridge br2 other-config:datapath-id=0000000000000003 \ -- set bridge br2 other-config:disable-in-band=true \ -- set bridge br2 fail_mode=secure \ -- add-port br2 veth-host2 -- set interface veth-host2 ofport_request=1 \ -- set-controller br2 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 We also need to define inter-switch links that connect br0 and b1 as well as br1 and br2. .. code:: console inter_switch_link br0:2 br1:1 inter_switch_link br1:2 br2:2 We should now be able to ping between host1 and host2 despite them being on different VLANs and datapaths because of the tunnel. .. code:: console as_ns host1 ping 10.0.1.2 The reason the hosts can now communicate is that faucet is using the stack topology to find a path between the two hosts and automatically stitching up a tunnel. If we had a more complicated topology with multiple valid paths between the hosts, faucet will pick one and if the topology changes faucet will ensure the tunnel still goes over a valid path. If we were to disable the ACLs on the port we would notice the hosts would no longer be able to ping. Redundant stack links ^^^^^^^^^^^^^^^^^^^^^ Faucet is able to handle stack topologies with loops in them. This is because when faucet brings up a stack topology for the first time (or when it detects the network topology has changed), it has enough knowledge of the network to calculate a spanning tree for the network without the need for running a spanning tree protocol. Faucet uses this spanning tree to ensure broadcast packets aren't looped around the network. This feature enables us to build fault-tolerant network architectures that can survive switch/port failures, a simple example is a ring topology: .. figure:: ../_static/images/tutorial-stack-loop.svg :alt: stack network diagram with loop :align: center :width: 80% To build this network, let's first cleanup from previous exercises. .. code:: console cleanup We should be quite familiar with configuring faucet for stacks now, let's define a faucet.yaml that matches our ring topology. .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: redundant-links-yaml vlans: hosts: vid: 100 dps: br0: dp_id: 0x1 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "host1 network namespace" native_vlan: hosts 2: description: "br0 stack link to br1" stack: dp: br1 port: 2 3: description: "br0 stack link to br2" stack: dp: br2 port: 2 br1: dp_id: 0x2 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: hosts 2: description: "br1 stack link to br0" stack: dp: br0 port: 2 3: description: "br1 stack link to br2" stack: dp: br2 port: 3 br2: dp_id: 0x3 hardware: "Open vSwitch" interfaces: 1: description: "host3 network namespace" native_vlan: hosts 2: description: "br2 stack link to br0" stack: dp: br0 port: 3 3: description: "br2 stack link to br1" stack: dp: br1 port: 3 Reload faucet to enable the ring topology. .. code:: console sudo systemctl reload faucet We will define three hosts, one on each switch. .. code:: console create_ns host1 10.0.1.1/24 create_ns host2 10.0.1.2/24 create_ns host3 10.0.1.3/24 Now let's define the three switches. .. code:: console sudo ovs-vsctl add-br br0 \ -- set bridge br0 other-config:datapath-id=0000000000000001 \ -- set bridge br0 other-config:disable-in-band=true \ -- set bridge br0 fail_mode=secure \ -- add-port br0 veth-host1 -- set interface veth-host1 ofport_request=1 \ -- set-controller br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br1 \ -- set bridge br1 other-config:datapath-id=0000000000000002 \ -- set bridge br1 other-config:disable-in-band=true \ -- set bridge br1 fail_mode=secure \ -- add-port br1 veth-host2 -- set interface veth-host2 ofport_request=1 \ -- set-controller br1 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br2 \ -- set bridge br2 other-config:datapath-id=0000000000000003 \ -- set bridge br2 other-config:disable-in-band=true \ -- set bridge br2 fail_mode=secure \ -- add-port br2 veth-host3 -- set interface veth-host3 ofport_request=1 \ -- set-controller br2 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 We also need to create the inter-switch links forming our ring network. .. code:: console inter_switch_link br0:2 br1:2 inter_switch_link br0:3 br2:2 inter_switch_link br1:3 br2:3 Once the network is up we should be able to ping from all hosts to all other hosts. .. code:: console as_ns host1 ping 10.0.1.2 as_ns host1 ping 10.0.1.3 Now let us intentionally introduce a fault into the network, our network should be able to survive a single cable failure and still have all devices reachable. To test this we will manually disable the link between br0 and br2. .. code:: console sudo ip link set down l-br0_3-br2_2 sudo ip link set down l-br2_2-br0_3 Which will force traffic between br0 and br2 to now go via br1, we can test this by ensuring host1 can still ping host3. .. code:: console as_ns host1 ping 10.0.1.3 Multi-root stack ^^^^^^^^^^^^^^^^ The previous exercise introduced the ability to survive cable failures, but you might have noticed in each exercise so far we have defined only a single root switch. If we were to lose this root switch the network would no longer function. In this exercise we will introduce multi-root stacked networks which give us the ability to tolerate switch failures. This example topology will allow us to survive any single cable failure or either of br0 or br1 failing. .. figure:: ../_static/images/tutorial-multi-root-stack.svg :alt: stack network diagram with multiple roots :align: center :width: 80% Before we begin, let's do another cleanup. .. code:: console cleanup Our faucet.yaml will look familiar here, except for one difference, we now have two switches defined as ``stack priority`` 1. This signals to faucet that it has two equal priority root candidates it can use when selecting a root for the network. .. code-block:: yaml :caption: /etc/faucet/faucet.yaml :name: multiple-root-yaml vlans: hosts: vid: 100 dps: br0: dp_id: 0x1 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "br0 stack link to br2" stack: dp: br2 port: 2 2: description: "br0 stack link to br3" stack: dp: br3 port: 3 br1: dp_id: 0x2 hardware: "Open vSwitch" stack: priority: 1 interfaces: 1: description: "br1 stack link to br3" stack: dp: br3 port: 2 2: description: "br1 stack link to br2" stack: dp: br2 port: 3 br2: dp_id: 0x3 hardware: "Open vSwitch" interfaces: 1: description: "host1 network namespace" native_vlan: hosts 2: description: "br2 stack link to br0" stack: dp: br0 port: 1 3: description: "br2 stack link to br1" stack: dp: br1 port: 2 br3: dp_id: 0x4 hardware: "Open vSwitch" interfaces: 1: description: "host2 network namespace" native_vlan: hosts 2: description: "br3 stack link to br1" stack: dp: br1 port: 1 3: description: "br3 stack link to br0" stack: dp: br0 port: 2 When we have this new faucet.yaml loaded we will do a full restart this time instead of reloading to force a root election. .. code:: console sudo systemctl restart faucet We will create some hosts to let us test the failure scenarios of this topology. .. code:: console create_ns host1 10.0.1.1/24 create_ns host2 10.0.1.2/24 We also need to define our four switches. .. code:: console sudo ovs-vsctl add-br br0 \ -- set bridge br0 other-config:datapath-id=0000000000000001 \ -- set bridge br0 other-config:disable-in-band=true \ -- set bridge br0 fail_mode=secure \ -- set-controller br0 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br1 \ -- set bridge br1 other-config:datapath-id=0000000000000002 \ -- set bridge br1 other-config:disable-in-band=true \ -- set bridge br1 fail_mode=secure \ -- set-controller br1 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br2 \ -- set bridge br2 other-config:datapath-id=0000000000000003 \ -- set bridge br2 other-config:disable-in-band=true \ -- set bridge br2 fail_mode=secure \ -- add-port br2 veth-host1 -- set interface veth-host1 ofport_request=1 \ -- set-controller br2 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 sudo ovs-vsctl add-br br3 \ -- set bridge br3 other-config:datapath-id=0000000000000004 \ -- set bridge br3 other-config:disable-in-band=true \ -- set bridge br3 fail_mode=secure \ -- add-port br3 veth-host2 -- set interface veth-host2 ofport_request=1 \ -- set-controller br3 tcp:127.0.0.1:6653 tcp:127.0.0.1:6654 We need to fully mesh br0, br1, br2 and br3 to match our topology diagram above. .. code:: console # Inter-switch links for br0 inter_switch_link br0:1 br2:2 inter_switch_link br0:2 br3:3 # Inter-switch links for br1 inter_switch_link br1:1 br3:2 inter_switch_link br1:2 br2:3 When everything is setup we should be able to ping between host1 and host2. .. code:: console as_ns host1 ping 10.0.1.2 Now let's inspect the log file to find out which switch is currently our root. .. code:: console $ grep -ai "stack root changed" /var/log/faucet/faucet.log | tail -n 1 Oct 08 04:19:24 faucet INFO stack root changed from None to br0 Since br0 is the switch which is currently root, let's delete it to simulate a switch failure. .. code:: console sudo ovs-vsctl del-br br0 If we look into the log file we should see faucet detects the switch is down and br1 takes over as the new root. .. code-block:: :caption: /var/log/faucet/faucet.yaml :name: stack-root-change-log Oct 08 04:22:52 faucet.valve WARNING DPID 1 (0x1) br0 datapath down Oct 08 04:23:03 faucet.valve INFO DPID 1 (0x1) br0 LLDP for Port 1 inactive after 17s Oct 08 04:23:03 faucet.valve INFO DPID 1 (0x1) br0 LLDP for Port 2 inactive after 17s Oct 08 04:23:03 faucet.valve ERROR DPID 1 (0x1) br0 Stack Port 1 DOWN, too many (3) packets lost, last received 17s ago Oct 08 04:23:03 faucet.valve INFO DPID 2 (0x2) br1 shortest path to root is via {Port 1} Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 shortest path to root is via {Port 3} Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 shortest path to root is via {Port 2} Oct 08 04:23:03 faucet.valve ERROR DPID 1 (0x1) br0 Stack Port 2 DOWN, too many (3) packets lost, last received 17s ago Oct 08 04:23:03 faucet.valve INFO DPID 2 (0x2) br1 shortest path to root is via {Port 1} Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 shortest path to root is via {Port 2} Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 shortest path to root is via {Port 3} Oct 08 04:23:03 faucet.valve INFO DPID 1 (0x1) br0 2 stack ports changed state Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 LLDP for Port 2 inactive after 17s Oct 08 04:23:03 faucet.valve ERROR DPID 3 (0x3) br2 Stack Port 2 DOWN, too many (3) packets lost, last received 17s ago Oct 08 04:23:03 faucet.valve INFO DPID 2 (0x2) br1 shortest path to root is via {Port 1} Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 shortest path to root is via {Port 2} Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 shortest path to root is via {Port 3} Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 1 stack ports changed state Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 LLDP for Port 3 inactive after 17s Oct 08 04:23:03 faucet.valve ERROR DPID 4 (0x4) br3 Stack Port 3 DOWN, too many (3) packets lost, last received 17s ago Oct 08 04:23:03 faucet.valve INFO DPID 2 (0x2) br1 shortest path to root is via {Port 1} Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 shortest path to root is via {Port 2} Oct 08 04:23:03 faucet.valve INFO DPID 3 (0x3) br2 shortest path to root is via {Port 3} Oct 08 04:23:03 faucet.valve INFO DPID 4 (0x4) br3 1 stack ports changed state Oct 08 04:23:15 faucet INFO stack root changed from br0 to br1 Oct 08 04:23:15 faucet INFO root now br1 (all candidates ('br0', 'br1'), healthy ['br1']) We should also still be able to ping between host1 and host2 after the stack has recalculated. .. code:: console as_ns host1 ping 10.0.1.2
{ "content_hash": "9b925cbd62271359d3da4ed68d9c491d", "timestamp": "", "source": "github", "line_count": 887, "max_line_length": 125, "avg_line_length": 33.88162344983089, "alnum_prop": 0.606628290020963, "repo_name": "REANNZ/faucet", "id": "45e178171a711c1bd886a47deb505a5e6eb75282", "size": "30053", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "docs/tutorials/stacking.rst", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Makefile", "bytes": "1621" }, { "name": "Python", "bytes": "603023" }, { "name": "Shell", "bytes": "4845" } ], "symlink_target": "" }
package org.spongepowered.common.data.processor.dual.entity; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.world.WorldSettings; import org.spongepowered.api.data.DataTransactionResult; import org.spongepowered.api.data.key.Keys; import org.spongepowered.api.data.manipulator.immutable.entity.ImmutableGameModeData; import org.spongepowered.api.data.manipulator.mutable.entity.GameModeData; import org.spongepowered.api.data.value.ValueContainer; import org.spongepowered.api.data.value.immutable.ImmutableValue; import org.spongepowered.api.data.value.mutable.Value; import org.spongepowered.api.entity.living.player.gamemode.GameMode; import org.spongepowered.api.entity.living.player.gamemode.GameModes; import org.spongepowered.common.data.manipulator.mutable.entity.SpongeGameModeData; import org.spongepowered.common.data.processor.dual.common.AbstractSingleTargetDualProcessor; import org.spongepowered.common.data.value.immutable.ImmutableSpongeValue; import org.spongepowered.common.data.value.mutable.SpongeValue; import java.util.Optional; public class GameModeDataProcessor extends AbstractSingleTargetDualProcessor<EntityPlayerMP, GameMode, Value<GameMode>, GameModeData, ImmutableGameModeData> { public GameModeDataProcessor() { super(EntityPlayerMP.class, Keys.GAME_MODE); } @Override protected GameModeData createManipulator() { return new SpongeGameModeData(); } @Override protected boolean set(EntityPlayerMP entity, GameMode value) { entity.setGameType((WorldSettings.GameType) (Object) value); return true; } @Override protected Optional<GameMode> getVal(EntityPlayerMP entity) { return Optional.of((GameMode) (Object) entity.theItemInWorldManager.getGameType()); } @Override protected ImmutableValue<GameMode> constructImmutableValue(GameMode value) { return ImmutableSpongeValue.cachedOf(Keys.GAME_MODE, GameModes.SURVIVAL, value); } @Override protected Value<GameMode> constructValue(GameMode actualValue) { return new SpongeValue<>(Keys.GAME_MODE, GameModes.SURVIVAL, actualValue); } @Override public DataTransactionResult removeFrom(ValueContainer<?> container) { return DataTransactionResult.failNoData(); } }
{ "content_hash": "e6133d40f6d7fa311389494b7d27c70e", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 123, "avg_line_length": 39.389830508474574, "alnum_prop": 0.7844234079173839, "repo_name": "kamcio96/SpongeCommon", "id": "3ee3bd79b6ba9177afe9e3ceb9ed9be196c76c21", "size": "3571", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/org/spongepowered/common/data/processor/dual/entity/GameModeDataProcessor.java", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "6792277" }, { "name": "Shell", "bytes": "81" } ], "symlink_target": "" }
process.chdir(__dirname); var http = require('http'), app = require('./app'), port = app.get('port'); http.createServer(app).listen(port, function () { console.log(app.get('name') + ' Server listening on ' + port); });
{ "content_hash": "a55bc1a086b2f4f106b45ad973c9022a", "timestamp": "", "source": "github", "line_count": 9, "max_line_length": 66, "avg_line_length": 26, "alnum_prop": 0.6068376068376068, "repo_name": "weigang992003/pure-css-chinese", "id": "cbc07a8a5ea016b00b0693d5a77599b164299513", "size": "354", "binary": false, "copies": "7", "ref": "refs/heads/master", "path": "server.js", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "99377" }, { "name": "HTML", "bytes": "131824" }, { "name": "JavaScript", "bytes": "77183" } ], "symlink_target": "" }
export {EventEmitter} from "./utils/EventEmitter" export {Settings} from "./utils/Settings" export {Urls} from "./utils/Urls"
{ "content_hash": "28478fd72650b3d818724c86653959b1", "timestamp": "", "source": "github", "line_count": 3, "max_line_length": 49, "avg_line_length": 42, "alnum_prop": 0.7380952380952381, "repo_name": "RobyRemzy/cozy-map", "id": "94d5018fa51b81e2e2a68b9b9b7b6540089264e0", "size": "126", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "node_modules/mapillary-js/src/Utils.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "29946" }, { "name": "HTML", "bytes": "11024" }, { "name": "JavaScript", "bytes": "51163" } ], "symlink_target": "" }
using AutomaticTypeMapper; using EOLib.Domain.Character; using EOLib.Domain.Login; using EOLib.Domain.Notifiers; using EOLib.IO.Map; using EOLib.Net; using EOLib.Net.Handlers; using System; using System.Collections.Generic; namespace EOLib.PacketHandlers.Effects { [AutoMappedType] public class MapDebuffHandler : InGameOnlyPacketHandler { private const int EFFECT_DAMAGE_TPDRAIN = 1; private const int EFFECT_DAMAGE_SPIKE = 2; private readonly ICharacterRepository _characterRepository; private readonly IEnumerable<IMainCharacterEventNotifier> _mainCharacterEventNotifiers; private readonly IEnumerable<IEffectNotifier> _effectNotifiers; public override PacketFamily Family => PacketFamily.Effect; public override PacketAction Action => PacketAction.Spec; public MapDebuffHandler(IPlayerInfoProvider playerInfoProvider, ICharacterRepository characterRepository, IEnumerable<IMainCharacterEventNotifier> mainCharacterEventNotifiers, IEnumerable<IEffectNotifier> effectNotifiers) : base(playerInfoProvider) { _characterRepository = characterRepository; _mainCharacterEventNotifiers = mainCharacterEventNotifiers; _effectNotifiers = effectNotifiers; } public override bool HandlePacket(IPacket packet) { var character = _characterRepository.MainCharacter; var originalStats = character.Stats; //1 in eoserv Map::TimedDrains - tp //2 in eoserv Character::SpikeDamage var damageType = packet.ReadChar(); switch (damageType) { case EFFECT_DAMAGE_TPDRAIN: { // todo: show amount in damage counter var amount = packet.ReadShort(); var tp = packet.ReadShort(); var maxTp = packet.ReadShort(); _characterRepository.MainCharacter = character.WithStats( originalStats.WithNewStat(CharacterStat.TP, tp) .WithNewStat(CharacterStat.MaxTP, maxTp)); foreach (var notifier in _effectNotifiers) notifier.NotifyMapEffect(MapEffect.TPDrain); } break; case EFFECT_DAMAGE_SPIKE: { // todo: show amount in damage counter var damage = packet.ReadShort(); var hp = packet.ReadShort(); var maxHp = packet.ReadShort(); character = character.WithStats(originalStats.WithNewStat(CharacterStat.HP, hp) .WithNewStat(CharacterStat.MaxHP, maxHp)); character = character.WithRenderProperties(character.RenderProperties.WithIsDead(hp <= 0)); _characterRepository.MainCharacter = character; foreach (var notifier in _mainCharacterEventNotifiers) notifier.NotifyTakeDamage(damage, (int)Math.Round((double)hp / maxHp * 100), isHeal: false); } break; default: return false; } return true; } } }
{ "content_hash": "83b5c2a72dfdf2fb69ebff358d494c43", "timestamp": "", "source": "github", "line_count": 86, "max_line_length": 120, "avg_line_length": 41.2906976744186, "alnum_prop": 0.5657561250352013, "repo_name": "ethanmoffat/EndlessClient", "id": "0a5c7543cee32e0cabd311ed7fc754419cf697d6", "size": "3553", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "EOLib/PacketHandlers/Effects/MapDebuffHandler.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "2416390" }, { "name": "HLSL", "bytes": "292" } ], "symlink_target": "" }
Function Get-RunSpaceADObject { [CmdletBinding()] Param ( [Parameter(HelpMessage="Computer or computers to gather information from", ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, Position=0)] [ValidateNotNullOrEmpty()] [Alias('IpAddress','Server')] [Object] $ComputerName=$env:computername, [Parameter(HelpMessage="Plugin to retrieve data", Position=1)] [Array] $Plugins = $false, [Parameter(HelpMessage="Object with AD valuable data")] [Object] $ADObject = $false, [Parameter(HelpMessage="Maximum number of concurrent threads")] [ValidateRange(1,65535)] [int32] $Throttle = 32, [Parameter(HelpMessage="Timeout before a thread stops trying to gather the information")] [ValidateRange(1,65535)] [int32] $Timeout = 120, [Parameter(HelpMessage="Set this if you want run Single Query")] [switch] $SingleQuery, [Parameter(HelpMessage="Set this if you want to provide your own alternate credentials")] [System.Management.Automation.Credential()] $Credential = [System.Management.Automation.PSCredential]::Empty ) Begin{ #Function Get-RunSpaceData #http://learn-powershell.net/2012/05/10/speedy-network-information-query-using-powershell/ Function Get-RunspaceData{ [cmdletbinding()] param( [switch]$Wait, [String]$message = "Running Jobs" ) Do { $more = $false $i = 0 $total = $runspaces.Count Foreach($runspace in $runspaces){ $StartTime = $runspacetimers[$runspace.ID] $i++ If ($runspace.Runspace.isCompleted) { #Write-Host $runspace.PluginName -ForegroundColor Yellow $runspace.powershell.EndInvoke($runspace.Runspace) $runspace.powershell.dispose() $runspace.Runspace = $null $runspace.powershell = $null } ElseIf ($runspace.Runspace -ne $null) { $more = $true } } If ($more -AND $PSBoundParameters['Wait']) { Start-Sleep -Milliseconds 100 } #Clean out unused runspace jobs $temphash = $runspaces.clone() $temphash | Where { $_.runspace -eq $Null } | ForEach { $Runspaces.remove($_) } #Write-Progress -Activity $message -Status "Percent Complete" -PercentComplete $(($i/$total) * 100) } while ($more -AND $PSBoundParameters['Wait']) } #Inicializar variables $SyncServer = [HashTable]::Synchronized(@{}) $Global:ReturnServer = New-Object -TypeName PSCustomObject $runspacetimers = [HashTable]::Synchronized(@{}) $runspaces = New-Object -TypeName System.Collections.ArrayList $Counter = 0 $sessionstate = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault() foreach ($EntryVars in ('runspacetimers')){ $sessionstate.Variables.Add((New-Object -TypeName System.Management.Automation.Runspaces.SessionStateVariableEntry -ArgumentList $EntryVars, (Get-Variable -Name $EntryVars -ValueOnly), '')) } $runspacepool = [runspacefactory]::CreateRunspacePool(1, $Throttle, $sessionstate, $Host) $runspacepool.ApartmentState = 'STA' $runspacepool.ThreadOptions = "ReuseThread" $runspacepool.Open() } Process{ If($Plugins -ne $false){ foreach ($Plugin in $Plugins){ #Add plugin data to ADObject $PluginFullPath = $Plugin.FullName $PluginName = [io.path]::GetFileNameWithoutExtension($Plugin.FullName) Write-Verbose "Adding $PluginName to queue..." $NewPlugin = $ADObject | Select-Object * $NewPlugin | Add-Member -type NoteProperty -name PluginName -value $PluginName -Force #End plugin work $ScriptBlockPlugin = [ScriptBlock]::Create($(Get-Content $PluginFullPath | Out-String)) $Counter++ $PowerShell = [System.Management.Automation.PowerShell]::Create().AddScript($ScriptBlockPlugin) $null = $PowerShell.AddParameter('bgRunspaceID',$Counter) $null = $PowerShell.AddParameter('SyncServer',$SyncServer) $null = $PowerShell.AddParameter('ADObject',$NewPlugin) $null = $PowerShell.AddParameter('ReturnServerObject',$ReturnServer) $PowerShell.RunspacePool = $runspacepool [void]$runspaces.Add(@{ runspace = $PowerShell.BeginInvoke() PowerShell = $PowerShell Computer = $ComputerName.ComputerName PluginName = $PluginName ID = $Counter }) } } Get-RunspaceData } End{ Get-RunspaceData -Wait $runspacepool.Close() $runspacepool.Dispose() #$SyncServer return $ReturnServer } }
{ "content_hash": "82adae06b7ea8a706881c7c8a4afd9e4", "timestamp": "", "source": "github", "line_count": 138, "max_line_length": 201, "avg_line_length": 40.51449275362319, "alnum_prop": 0.5473081738508317, "repo_name": "silverhack/voyeur", "id": "fe527501d59114ba330819eb7f2813b778c3499a", "size": "5593", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Common/Runspace.ps1", "mode": "33188", "license": "mit", "language": [ { "name": "PowerShell", "bytes": "190271" } ], "symlink_target": "" }
package org.lewis.sky.security.service; import java.util.List; import org.lewis.sky.security.domain.SysUser; public interface SysUserService { public List<SysUser> findAll(); public SysUser save(SysUser entity); public void delete(SysUser entity); public void deleteAll(); }
{ "content_hash": "a436d13ee037332f17762c393fadf0fe", "timestamp": "", "source": "github", "line_count": 16, "max_line_length": 45, "avg_line_length": 18.9375, "alnum_prop": 0.7260726072607261, "repo_name": "lewis-demo/demo-javafx", "id": "7d1883bf772bf74ca800cccea6fbd55fdf3a134f", "size": "303", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "sky-javafx2/src/main/java/org/lewis/sky/security/service/SysUserService.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "3156" }, { "name": "Java", "bytes": "47138" } ], "symlink_target": "" }
class Profile # here is the change, we combined the attr_writer and attr_reader into one declaration: attr_accessor attr_accessor :age attr_accessor :name attr_accessor :occupation def initialize @age = 27 @name = "Kim" @occupation = "Cartographer" end def print_info puts puts "age: #{@age}" puts puts "name: #{@name}" puts puts "occupation: #{@occupation}" puts end # This code is no longer needed. # def what_is_age # @age # end # This code is no longer needed # def change_my_age=(new_age) # @age = new_age # end end instance_of_profile = Profile.new puts "--- printing age -----" sleep 0.8 p instance_of_profile.age puts "--- printing name ----" sleep 0.8 p instance_of_profile.name puts "--- printing occupation ----" sleep 0.8 p instance_of_profile.occupation puts "--- changing profile information ----" 10.times do print "." sleep 0.1 end instance_of_profile.age = 28 instance_of_profile.name = "Taylor" instance_of_profile.occupation = "Rare Coins Trader" puts puts "---- printing all profile info -----" sleep 0.8 instance_of_profile.print_info
{ "content_hash": "eaad7fc28200eeed3b5c686096131fed", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 101, "avg_line_length": 18.483870967741936, "alnum_prop": 0.6579406631762653, "repo_name": "RedZulu/phase-0", "id": "fabc5a5c059d384bcfe0c254156cdcfd589ef422", "size": "1160", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "week-6/attr/release_4.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3684" }, { "name": "HTML", "bytes": "27815" }, { "name": "JavaScript", "bytes": "36368" }, { "name": "Ruby", "bytes": "102601" } ], "symlink_target": "" }
- Introduction - Business Flow - Project Goals - Approaches Comparison - Development Cycle # Introduction - The idea of this project is to develop a House Management System using Java SPringMVC and two different databases. One database is MySQL with SQL, and the other one is MongoDB with No-SQL. We will compare two databases performance in the house management system using different test. - In the House Management system, there are different users, such as students, house management staff. Students can make a room application, and staff can process students appliation in the system. - We will compare two databases performance and get the performance result of two databases via JUnit Test, System Test and Integration Test. # Business Flow <center> <img src = "../img/dot/flow.png"> </center> # Goals 1. Analyse the difference, advantages and disadvantages of two approaches by comparing them when we are using both language to do the thing.. 2. Implement software engineering knowledge(Agile Development) into the practical project. 3. Practice DevOps model into our project and experience the whole process of software development life cycle. 4. Probably we could see some differences in software cycles of the two different languages after we finish the projects. Developers would have a more clear mind to choose the language for their project according the characteristics of their projects. #SpringMVC SQL vs. NoSQL SpringMVC: - Enterprise application - ORM with Tools, Hibernate - Mature platform with extensive community SQL vs. NoSQL: - MySQL is SQL database. - MongoDB is NoSQL database.
{ "content_hash": "bd4ed0eee16af8bb9a1d0f1444393d4d", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 285, "avg_line_length": 42.60526315789474, "alnum_prop": 0.7961704756022236, "repo_name": "CSC510/txts", "id": "e24ff3238440cddc74ab94f9192334d5ec2d70b5", "size": "1637", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "project1/6proposal.md", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "13898" }, { "name": "Gnuplot", "bytes": "524" }, { "name": "HTML", "bytes": "3793" }, { "name": "Makefile", "bytes": "2328" }, { "name": "TeX", "bytes": "453" } ], "symlink_target": "" }
using namespace std; using namespace tinyxml2; class GraphWriter { private: XMLDocument _doc; void writeBasics(int, int) ; void writeVertices(vector<Vertex>&) ; void writeEdges(vector<Edge>&) ; void writeEdgeSpell(pair<unsigned int, unsigned int>& lifetime, XMLElement* spellsElement); void flush(string); public: GraphWriter(); void writeGraph(vector<Vertex>&, vector<Edge>&, string); }; #endif
{ "content_hash": "1f649634dfbdf9c698f9aae9198efa7e", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 67, "avg_line_length": 21.047619047619047, "alnum_prop": 0.6877828054298643, "repo_name": "DSRC-GPU/CrowGenCpp", "id": "d2b5f2f44e499d24b1949171bda98e995bd3c19e", "size": "610", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "crowdgeneration/CrowGenCpp/src/GraphWriter.hpp", "mode": "33188", "license": "mit", "language": [ { "name": "C++", "bytes": "223326" }, { "name": "Go", "bytes": "1911" }, { "name": "Java", "bytes": "129907" }, { "name": "Python", "bytes": "2935" }, { "name": "Shell", "bytes": "81607" } ], "symlink_target": "" }
<?php namespace Sonata\Bundle\DemoBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\Persistence\ObjectManager; use Sonata\NewsBundle\Model\CommentInterface; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerInterface; class LoadNewsData extends AbstractFixture implements ContainerAwareInterface, OrderedFixtureInterface { private $container; function getOrder() { return 3; } public function setContainer(ContainerInterface $container = null) { $this->container = $container; } public function load(ObjectManager $manager) { // $userManager = $this->getUserManager(); $postManager = $this->getPostManager(); $faker = $this->getFaker(); $tags = array( 'symfony' => null, 'form' => null, 'general' => null, 'web2' => null, ); foreach($tags as $tagName => $null) { $tag = $this->getTagManager()->create(); $tag->setEnabled(true); $tag->setName($tagName); $tags[$tagName] = $tag; $this->getTagManager()->save($tag); } foreach (range(1, 20) as $id) { $post = $postManager->create(); $post->setAuthor($this->getReference('user-admin')); $post->setAbstract($faker->sentence(30)); $post->setEnabled(true); $post->setTitle($faker->sentence(6)); $post->setPublicationDateStart($faker->dateTimeBetween('-30 days', '-1 days')); $id = $this->getReference('sonata-media-'.rand(2, 7))->getId(); $raw =<<<RAW ### Gist Formatter Now a specific gist from github <% gist '1552362', 'gistfile1.txt' %> ### Media Formatter Load a media from a <code>SonataMediaBundle</code> with a specific format <% media $id, 'big' %> RAW ; $raw .= sprintf("### %s\n\n%s\n\n### %s\n\n%s", $faker->sentence(rand(3, 6)), $faker->text(1000), $faker->sentence(rand(3, 6)), $faker->text(1000) ); $post->setRawContent($raw); $post->setContentFormatter('markdown'); $post->setContent($this->getPoolFormatter()->transform($post->getContentFormatter(), $post->getRawContent())); $post->setCommentsDefaultStatus(CommentInterface::STATUS_VALID); foreach($tags as $tag) { $post->addTags($tag); } foreach(range(1, $faker->randomDigit + 2) as $commentId) { $comment = $this->getCommentManager()->create(); $comment->setEmail($faker->email); $comment->setName($faker->name); $comment->setStatus(CommentInterface::STATUS_VALID); $comment->setMessage($faker->sentence(25)); $comment->setUrl($faker->url); $post->addComments($comment); } $postManager->save($post); } } public function getPoolFormatter() { return $this->container->get('sonata.formatter.pool'); } /** * @return \Sonata\NewsBundle\Model\TagManagerInterface */ public function getTagManager() { return $this->container->get('sonata.news.manager.tag'); } /** * @return \Sonata\NewsBundle\Model\PostManagerInterface */ public function getPostManager() { return $this->container->get('sonata.news.manager.post'); } /** * @return \Sonata\NewsBundle\Model\CommentManagerInterface */ public function getCommentManager() { return $this->container->get('sonata.news.manager.comment'); } /** * @return \Faker\Generator */ public function getFaker() { return $this->container->get('faker.generator'); } }
{ "content_hash": "669d721c1b930f80b2859fe113262aa5", "timestamp": "", "source": "github", "line_count": 149, "max_line_length": 122, "avg_line_length": 27.34228187919463, "alnum_prop": 0.5790378006872853, "repo_name": "EmmanuelVella/sandbox", "id": "de318a1536cb9d4d97583b343d595630f0516622", "size": "4313", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "src/Sonata/Bundle/DemoBundle/DataFixtures/ORM/LoadNewsData.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "78226" }, { "name": "Ruby", "bytes": "4814" } ], "symlink_target": "" }
RBStacksController ================== A navigation controller that works by stacking views on top of each other and allows for reveals to lower views. ![Example](https://raw.githubusercontent.com/eoghain/RBStacksController/master/Reveal.png)
{ "content_hash": "949c901220c826058f0e18532a5f7e40", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 112, "avg_line_length": 40.666666666666664, "alnum_prop": 0.7581967213114754, "repo_name": "eoghain/RBStacksController", "id": "c81bb63c116de43b059238561d221feb59979735", "size": "244", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "15988" } ], "symlink_target": "" }
/** * Membership.js * * @description :: TODO: You might write a short summary of how this model works and what it represents here. * @docs :: http://sailsjs.org/#!documentation/models */ module.exports = { attributes: { user: { model: 'user' }, group: { model: 'Group' }, lastsynch: 'datetime', active: 'boolean', synchronized: 'boolean' } };
{ "content_hash": "5330afa1f8124cea803355482bebf66e", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 109, "avg_line_length": 21.19047619047619, "alnum_prop": 0.5213483146067416, "repo_name": "scientilla/scientilla", "id": "0465ca2bdc449e20b9eb6393c34898b3f7a23788", "size": "445", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "api/models/Membership.js", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "434" }, { "name": "CSS", "bytes": "306886" }, { "name": "Dockerfile", "bytes": "959" }, { "name": "EJS", "bytes": "106296" }, { "name": "HTML", "bytes": "629792" }, { "name": "JavaScript", "bytes": "2089203" }, { "name": "Pug", "bytes": "115" }, { "name": "SCSS", "bytes": "218462" }, { "name": "Shell", "bytes": "1289" } ], "symlink_target": "" }
namespace Bloop.Core.Exception { /// <summary> /// Represent exceptions that Bloop can't handle and MUST close running Bloop. /// </summary> public class BloopCritialException : BloopException { public BloopCritialException(string msg) : base(msg) { } } }
{ "content_hash": "edd55073648f6695892c0cf7647aa208", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 82, "avg_line_length": 25.416666666666668, "alnum_prop": 0.6295081967213115, "repo_name": "dstiert/bloop", "id": "593af302640ea37d44cdacc362c1e15459ba0108", "size": "307", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Bloop.Core/Exception/BloopCritialException.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "1255144" }, { "name": "PowerShell", "bytes": "7437" }, { "name": "Python", "bytes": "757" } ], "symlink_target": "" }
package com.musicbeat.web.utils; import org.apache.commons.io.FileUtils; import org.jaudiotagger.audio.AudioFileIO; import org.jaudiotagger.audio.mp3.MP3AudioHeader; import org.jaudiotagger.audio.mp3.MP3File; import java.io.File; import java.io.IOException; import static jdk.nashorn.internal.objects.NativeDate.toTimeString; /** * Created by gyz on 2017/2/20. */ public class UploadFile { public static Boolean IntertoBoolean(Integer num) { Boolean bool = false; if (num == 1) { bool = true; } else { bool = false; } return bool; } public static Integer BooleantoInter( Boolean bool) { Integer num = 0; if (bool == true) { num = 1; } else { num = 0; } return num; } public static void buildFolder(String pathName) { File directory = new File(pathName); //如果文件夹不存在则创建 if (!directory.exists() && !directory.isDirectory()) { System.out.println("//目录不存在"); directory.mkdir(); //System.out.println(path.getAbsolutePath()); } else { System.out.println("//目录存在"); } } public static void saveimgFile(String path,String sourcefile,String filename) { File file = new File(sourcefile); if ((file.exists()) && (file.length() != 0)) { try { FileUtils.copyFile(file, new File(path + filename + ".jpg")); } catch (IOException e) { e.printStackTrace(); } } } public static void savelrcFile(String path, String sourcefile, String filename) { File file = new File(sourcefile); if ((file.exists()) && (file.length() != 0)) { try { FileUtils.copyFile(file, new File(path + filename + ".lrc")); } catch (IOException e) { e.printStackTrace(); } } } public static void savemp3File(String path,String sourcefile,String filename) { File file = new File(sourcefile); if ((file.exists()) && (file.length() != 0)) { try { FileUtils.copyFile(file,new File(path+filename+".mp3")); } catch (IOException e) { e.printStackTrace(); } } } public static String getMusicLength(File file) { try { MP3File f = (MP3File)AudioFileIO.read(file); MP3AudioHeader audioHeader = (MP3AudioHeader)f.getAudioHeader(); String time = audioHeader.getTrackLengthAsString(); return time; } catch(Exception e) { e.printStackTrace(); return ""; } } public static String getFileNameByPath(String path) { if ( path != null) { int left = path.lastIndexOf("/"); int right = path.lastIndexOf("\\"); int index = left > right ? left : right; return path.substring(index + 1); } else { return null; } } public static String formatVideoTimeLength(long time) { long s = time % 60; long m = (time / 60) % 60; long h = time / 3600; return toTimeString(h) + ":" + toTimeString(m) + ":" + toTimeString(s); } public static boolean deleteDirectory(String sPath) { //如果sPath不以文件分隔符结尾,自动添加文件分隔符 if (!sPath.endsWith(File.separator)) { sPath = sPath + File.separator; } File dirFile = new File(sPath); //如果dir对应的文件不存在,或者不是一个目录,则退出 if (!dirFile.exists() || !dirFile.isDirectory()) { return false; } boolean flag = true; //删除文件夹下的所有文件(包括子目录) File[] files = dirFile.listFiles(); for (int i = 0; i < files.length; i++) { //删除子文件 if (files[i].isFile()) { flag = deleteFile(files[i].getAbsolutePath()); if (!flag) break; } //删除子目录 else { flag = deleteDirectory(files[i].getAbsolutePath()); if (!flag) break; } } if (!flag) return false; //删除当前目录 if (dirFile.delete()) { return true; } else { return false; } } public static boolean DeleteFolder(String sPath) { boolean flag = false; File file = new File(sPath); // 判断目录或文件是否存在 if (!file.exists()) { // 不存在返回 false return flag; } else { // 判断是否为文件 if (file.isFile()) { // 为文件时调用删除文件方法 return deleteFile(sPath); } else { // 为目录时调用删除目录方法 return deleteDirectory(sPath); } } } public static boolean deleteFile(String sPath) { boolean flag = false; File file = new File(sPath); // 路径为文件且不为空则进行删除 if (file.isFile() && file.exists()) { file.delete(); flag = true; } return flag; } }
{ "content_hash": "918b03d30e19878717cd79b0eb836055", "timestamp": "", "source": "github", "line_count": 200, "max_line_length": 85, "avg_line_length": 25.88, "alnum_prop": 0.5104327666151468, "repo_name": "303Lab/MusicBeat", "id": "67bc6659f268b13af688658a39a8c618adb994b7", "size": "5490", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "src/main/java/com/musicbeat/web/utils/UploadFile.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "166198" }, { "name": "HTML", "bytes": "82179" }, { "name": "Java", "bytes": "320109" }, { "name": "JavaScript", "bytes": "134304" } ], "symlink_target": "" }
class CreateUserStores < ActiveRecord::Migration def change # [<tt>:force</tt>] # Set to true to drop the table before creating it. # Set to +:cascade+ to drop dependent objects as well. # Defaults to false. create_table "sys_user_stores", force: false do |t| t.string "user_name", null: false t.string "user_num", null: false t.string "dept_ids" t.string "group_name" t.string "store_id", null: false t.string "store_name", null: false t.timestamps null: false end end end
{ "content_hash": "263d1a3d9e696a5994a407193ee2c8eb", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 60, "avg_line_length": 33.05882352941177, "alnum_prop": 0.6138790035587188, "repo_name": "jay16/yong-hui-server", "id": "7e2c99c17414e1e1a80f8059f2c687dfaec10bd6", "size": "562", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "db/migrate/20160810061025_create_user_stores.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "61752" }, { "name": "CoffeeScript", "bytes": "7783" }, { "name": "HTML", "bytes": "72960" }, { "name": "JavaScript", "bytes": "593740" }, { "name": "Ruby", "bytes": "136840" }, { "name": "Shell", "bytes": "7326" } ], "symlink_target": "" }
import { OnChanges, SimpleChanges, StaticProvider } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { AbstractControl } from '../model'; /** @experimental */ export declare type ValidationErrors = { [key: string]: any; }; /** * An interface that can be implemented by classes that can act as validators. * * ## Usage * * ```typescript * @Directive({ * selector: '[custom-validator]', * providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}] * }) * class CustomValidatorDirective implements Validator { * validate(c: Control): {[key: string]: any} { * return {"custom": true}; * } * } * ``` * * @stable */ export interface Validator { validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange?(fn: () => void): void; } /** @experimental */ export interface AsyncValidator extends Validator { validate(c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>; } export declare const REQUIRED_VALIDATOR: StaticProvider; export declare const CHECKBOX_REQUIRED_VALIDATOR: StaticProvider; /** * A Directive that adds the `required` validator to any controls marked with the * `required` attribute, via the {@link NG_VALIDATORS} binding. * * ### Example * * ``` * <input name="fullName" ngModel required> * ``` * * @stable */ export declare class RequiredValidator implements Validator { private _required; private _onChange; required: boolean | string; validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; } /** * A Directive that adds the `required` validator to checkbox controls marked with the * `required` attribute, via the {@link NG_VALIDATORS} binding. * * ### Example * * ``` * <input type="checkbox" name="active" ngModel required> * ``` * * @experimental */ export declare class CheckboxRequiredValidator extends RequiredValidator { validate(c: AbstractControl): ValidationErrors | null; } /** * Provider which adds {@link EmailValidator} to {@link NG_VALIDATORS}. */ export declare const EMAIL_VALIDATOR: any; /** * A Directive that adds the `email` validator to controls marked with the * `email` attribute, via the {@link NG_VALIDATORS} binding. * * ### Example * * ``` * <input type="email" name="email" ngModel email> * <input type="email" name="email" ngModel email="true"> * <input type="email" name="email" ngModel [email]="true"> * ``` * * @experimental */ export declare class EmailValidator implements Validator { private _enabled; private _onChange; email: boolean | string; validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; } /** * @stable */ export interface ValidatorFn { (c: AbstractControl): ValidationErrors | null; } /** * @stable */ export interface AsyncValidatorFn { (c: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>; } /** * Provider which adds {@link MinLengthValidator} to {@link NG_VALIDATORS}. * * ## Example: * * {@example common/forms/ts/validators/validators.ts region='min'} */ export declare const MIN_LENGTH_VALIDATOR: any; /** * A directive which installs the {@link MinLengthValidator} for any `formControlName`, * `formControl`, or control with `ngModel` that also has a `minlength` attribute. * * @stable */ export declare class MinLengthValidator implements Validator, OnChanges { private _validator; private _onChange; minlength: string; ngOnChanges(changes: SimpleChanges): void; validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; private _createValidator(); } /** * Provider which adds {@link MaxLengthValidator} to {@link NG_VALIDATORS}. * * ## Example: * * {@example common/forms/ts/validators/validators.ts region='max'} */ export declare const MAX_LENGTH_VALIDATOR: any; /** * A directive which installs the {@link MaxLengthValidator} for any `formControlName, * `formControl`, * or control with `ngModel` that also has a `maxlength` attribute. * * @stable */ export declare class MaxLengthValidator implements Validator, OnChanges { private _validator; private _onChange; maxlength: string; ngOnChanges(changes: SimpleChanges): void; validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; private _createValidator(); } export declare const PATTERN_VALIDATOR: any; /** * A Directive that adds the `pattern` validator to any controls marked with the * `pattern` attribute, via the {@link NG_VALIDATORS} binding. Uses attribute value * as the regex to validate Control value against. Follows pattern attribute * semantics; i.e. regex must match entire Control value. * * ### Example * * ``` * <input [name]="fullName" pattern="[a-zA-Z ]*" ngModel> * ``` * @stable */ export declare class PatternValidator implements Validator, OnChanges { private _validator; private _onChange; pattern: string | RegExp; ngOnChanges(changes: SimpleChanges): void; validate(c: AbstractControl): ValidationErrors | null; registerOnValidatorChange(fn: () => void): void; private _createValidator(); }
{ "content_hash": "8676315298b7c7cc154ba8c5b6806f00", "timestamp": "", "source": "github", "line_count": 178, "max_line_length": 105, "avg_line_length": 30.10674157303371, "alnum_prop": 0.698264601604777, "repo_name": "N03297857/2017Fall", "id": "14684b0471f2c5427b35a2b0fdf4aaaadcbd9202", "size": "5561", "binary": false, "copies": "10", "ref": "refs/heads/master", "path": "node_modules/@angular/forms/src/directives/validators.d.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "7180" }, { "name": "HTML", "bytes": "20877" }, { "name": "JavaScript", "bytes": "3946" }, { "name": "TypeScript", "bytes": "35160" } ], "symlink_target": "" }
package gov.hhs.fha.nhinc.patientcorrelation.nhinc.config; /** * * @author dunnek */ public class Expiration { private String aa = ""; private int dur; private String units; public Expiration(String assigningAuthority, String durationUnits, int duration) { aa = assigningAuthority; dur = duration; units = durationUnits; } public String getAssigningAuthority() { return aa; } public int getDuration() { return dur; } public String getUnits() { return units; } }
{ "content_hash": "996df0f6fcf61567dcb9b25f652d5f70", "timestamp": "", "source": "github", "line_count": 31, "max_line_length": 86, "avg_line_length": 18.225806451612904, "alnum_prop": 0.6176991150442478, "repo_name": "alameluchidambaram/CONNECT", "id": "4517b0e6b7fbf506594d367127c8e8642a7d11f1", "size": "2257", "binary": false, "copies": "4", "ref": "refs/heads/CONNECT_integration", "path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/patientcorrelation/nhinc/config/Expiration.java", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "5539" }, { "name": "Groovy", "bytes": "23395" }, { "name": "Java", "bytes": "11595092" }, { "name": "Shell", "bytes": "16812" }, { "name": "XSLT", "bytes": "572555" } ], "symlink_target": "" }