code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
๏ปฟ--- uid: SolidEdgeFramework.Properties.Name summary: remarks: All objects have names that are unique within the scope of their parent. ---
SolidEdgeCommunity/docs
docfx_project/apidoc/SolidEdgeFramework.Properties.Name.md
Markdown
mit
143
#pragma once #include <QtCore/QPointer> #include <QtWidgets/QTabWidget> #include "backend/backend_requests_interface.h" class BreakpointModel; class PDIBackendRequests; class DisassemblyView; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// class CodeViews : public QTabWidget { public: CodeViews(BreakpointModel* breakpoints, QWidget* parent = 0); virtual ~CodeViews(); void set_breakpoint_model(BreakpointModel* breakpoints); void reload_current_file(); void toggle_breakpoint(); void set_backend_interface(PDIBackendRequests* iface); Q_SLOT void open_file(const QString& filename, bool setActive); Q_SLOT void program_counter_changed(const PDIBackendRequests::ProgramCounterChange& pc); Q_SLOT void session_ended(); private: Q_SLOT void closeTab(int index); enum Mode { SourceView, Disassembly, }; void read_settings(); void write_settings(); Mode m_mode = SourceView; int m_oldIndex = 0; // DisassemblyView* m_disassemblyView = nullptr; BreakpointModel* m_breakpoints = nullptr; QPointer<PDIBackendRequests> m_interface; QVector<QString> m_files; bool m_was_in_source_view = true; }; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// inline void CodeViews::set_breakpoint_model(BreakpointModel* breakpoints) { m_breakpoints = breakpoints; }
emoon/ProDBG
src/prodbg/ui/code_views.h
C
mit
1,505
--- layout: post title: "8ํผ์„ผํŠธ ํ”Œ๋žซํผ๊ฐœ๋ฐœ ์ธํ„ด ํ›„๊ธฐ-๋งˆ์ง€๋ง‰" author: selee description: ๊ทธ๋™์•ˆ ๊ฐ์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค! --- <p align="center"> <img src="/images/internship-4-์ธํ„ฐ๋ทฐ.jpg" alt="์ธํ„ด ๋™๊ธฐ๋ž‘" width="500"> </p> ## <span style="color:#6741d9">์ด๋ฒคํŠธ ์ผ€๋Ÿฌ์…€</span> ๋‚จ์€ ๊ธฐ๊ฐ„์—๋Š” ์ €๋ฒˆ ์ธํ„ด๊ธฐ์— ์“ด ์ด๋ฒคํŠธ ์ผ€๋Ÿฌ์…€/๋ฐฐ๋„ˆ ์Šคํƒœํ”„ ํŽ˜์ด์ง€ ๋งŒ๋“ค๊ธฐ ์ž‘์—…์„ ์ด์–ด์„œ ๊ณ„์†ํ–ˆ๋‹ค. ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€์—์„œ ์ผ€๋Ÿฌ์…€๊ณผ ๋ฐฐ๋„ˆ๋ฅผ ์ €์žฅํ•˜๋ฉด ๊ด€๋ จ ์ •๋ณด๋ฅผ DB์— ์ €์žฅํ•˜๋Š” API์™€ DB์— ์ €์žฅ๋œ ์ •๋ณด๋ฅผ ๋ฐ”ํƒ•์œผ๋กœ ํ™ˆํŽ˜์ด์ง€์— ์ผ€๋Ÿฌ์…€๊ณผ ๋ฐฐ๋„ˆ๋ฅผ ์ž๋™์œผ๋กœ ๋„์šฐ๋Š” API๋ฅผ ๋งŒ๋“ค์—ˆ๋‹ค. 100% ์™„์„ฑํ•œ ๊ฒŒ ์•„๋‹ˆ๋ผ์„œ ์ธ์ˆ˜์ธ๊ณ„๋ฅผ ํ•˜๊ณ  ๊ฐ€์•ผ ํ•œ๋‹ค๋Š” ์ ์ด ์ข€ ์•„์‰ฝ๋‹ค. <p align="center"> <img src="/images/internship-4-์บ๋Ÿฌ์…€.png" alt="์ผ€๋Ÿฌ์…€" width="300"> <img src="/images/internship-4-๋ฐฐ๋„ˆ.png" alt="๋ฐฐ๋„ˆ" width="300"> </p> ## <span style="color:#6741d9">9์ฃผ๊ฐ€ ํ˜ธ๋กœ๋ก</span> ์ฒ˜์Œ ์ธํ„ด๊ธฐ ์“ฐ๋˜ ์ˆœ๊ฐ„์ด ์ƒ๊ฐ๋‚œ๋‹ค. ๊ทธ๋•Œ๋Š” 2์ฃผ๋„ ์ด๋ ‡๊ฒŒ ์•ˆ ์ง€๋‚˜๊ฐ€๋Š”๋ฐ 9์ฃผ๋Š” ์–ด๋–ป๊ฒŒ ๋ฒ„ํ‹ฐ์ง€? ๋ผ๋Š” ์ƒ๊ฐ์„ ํ–ˆ๋‹ค. **๊ทผ๋ฐ ๋†€๋ž๊ฒŒ๋„ 9์ฃผ๊ฐ€ ํ˜ธ๋กœ๋กœ๋ก ํ•˜๊ณ  ์ง€๋‚˜๊ฐ€ ๋ฒ„๋ ธ๋‹ค .** ๊ทธ๋งŒํผ ์—์ž‡ํผ์„ผํŠธ์—์„œ ๋ณด๋‚ธ ์ธํ„ด ๊ธฐ๊ฐ„์ด ์ฆ๊ฑฐ์› ๋‹ค๋Š” ๊ฒƒ์ด๊ณ  ์•ž์œผ๋กœ๋„ ์ด ๊ฒฝํ—˜์€ ์˜ค๋žซ๋™์•ˆ ๊ธฐ์–ต์— ๋‚จ์„ ๊ฑฐ ๊ฐ™๋‹ค. ### ์—์ž‡ํผ์„ผํŠธ์—๊ฒŒ ๋ฐ›์€ <span style="color:#6741d9">๊ฐ€์žฅ ํฐ ์„ ๋ฌผ</span> ์ธํ„ด์œผ๋กœ ์˜ค๊ธฐ ์ „, ํ•™๊ต ์‹œํ—˜๊ณผ ๊ณผ์ œ๋กœ ๊ฐœ๋ฐœ์— ์‹ ๋ฌผ์ด ๋‚ฌ์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๊ฐœ๋ฐœ ๊ณต๋ถ€๋ฅผ ๊ฑฐ์˜ ํ•˜์ง€ ์•Š์•˜๊ณ  ๊ทธ๋žฌ๊ธฐ์— ์ดˆ๋ฐ˜์— ์—…๋ฌด๋ฅผ ํ•˜๋ฉด์„œ ๊ฝค ๊ณ ์ƒํ–ˆ๋‹ค. ๊ทธ๋ž˜๋„ ๊ณ„์† ์งˆ๋ฌธํ•˜๊ณ  ๊ณต๋ถ€ํ•˜๋ฉด์„œ ์ผ์„ ํ•œ, ๋‘ ๊ฐœ ๋๋‚ด๋‹ˆ ํ• ๋งŒํ•˜๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๋‹ค. ํŠนํžˆ, ์•Œ๋ฆผํ†ก์„ ๋Œ€๋Ÿ‰ ๋ฐœ์†กํ•  ์ˆ˜ ์žˆ๋Š” ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€๋ฅผ ์ง์ ‘ ๋งŒ๋“ค๊ณ  ๋ฐ”๋กœ ๋งˆ์ผ€ํŒ…ํŒ€๋ถ„๋“ค์ด ๋ฐ”๋กœ ์“ฐ์‹œ๋Š” ๊ฑธ ๋ดค์„ ๋•Œ๋Š” ์—„์ฒญ ๋ฟŒ๋“ฏํ–ˆ๋‹ค. ๋‚ด๊ฐ€ ๊ฐœ๋ฐœํ•œ ๊ธฐ๋Šฅ์ด ๋‹ค๋ฅธ ๋ˆ„๊ตฐ๊ฐ€์—๊ฒŒ ์—„์ฒญ ๋„์›€์ด ๋œ๋‹ค๋Š” ๊ฑธ ์•Œ ๋•Œ๋งˆ๋‹ค ๊ฐœ๋ฐœ์— ๋Œ€ํ•œ ์žฌ๋ฏธ๋ฅผ ์กฐ๊ธˆ์”ฉ ๋˜์ฐพ์•˜๋‹ค. ์–ด๋А์ƒˆ ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ๋‚ด๊ฐ€ ๋งก์€ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ์„๊นŒ๋ฅผ ๊ณ ๋ฏผํ•˜๊ณ  ์žˆ์—ˆ๊ณ  ์–ด๋А์ƒˆ ์ถœํ‡ด๊ทผ ๊ธธ ๋ชจ๋ฅด๋Š” ๋ถ€๋ถ„์„ ๊ฒ€์ƒ‰ํ•˜๊ณ  ๊ณต๋ถ€ํ•˜๊ณ  ์žˆ์—ˆ๋‹ค. ์ธํ„ด ๊ธฐ๊ฐ„ ๋™์•ˆ Django, Vue, ๊ฐœ๋ฐœ ํ”„๋กœ์„ธ์Šค ๋“ฑ ๋งŽ์€ ๊ฒƒ์„ ๋ฐฐ์› ๋‹ค. ํ•˜์ง€๋งŒ ๋ฌด์—‡๋ณด๋‹ค๋„ ์—์ž‡ํผ์„ผํŠธ์—์„œ ๊ฐ€์žฅ ํฌ๊ฒŒ ์–ป์–ด๊ฐ€๋Š” ๊ฒƒ์€ ๊ฐœ๋ฐœ์— ๋Œ€ํ•œ ํฅ๋ฏธ์ด๋‹ค. ์ธํ„ด ๋๋‚˜๊ณ  ์–ด๋–ค ๋‚ด์šฉ์„ ๊ณต๋ถ€ํ•˜๊ณ  ์–ด๋–ค ๊ฑธ ๋งŒ๋“ค์–ด๋ณผ์ง€ ๊ณ ๋ฏผํ•˜๋Š” ๋‚˜ ์ž์‹ ์ด ๋„ˆ๋ฌด ์‹ ๊ธฐํ•˜๋‹ค. <p align="center"> <img src="/images/internship-4-์นญ์ฐฌ.jpg" alt="์ต๋ช…์˜ ์นญ์ฐฌ" width="500"> </p> ### <span style="color:#6741d9">๋‹˜๊ณผ ํ•จ๊ป˜</span> ์ฒ˜์Œ์— ์‚ฌํšŒ์ƒํ™œ ์‹ ์ƒ์•„๋กœ์„œ ๋ˆˆ์น˜๋ฅผ ๋งŽ์ด ๋ณผ ๋•Œ ๋น ๋ฅด๊ฒŒ ์ ์‘ํ•  ์ˆ˜ ์žˆ์—ˆ๋˜ ๊ฐ€์žฅ ํฐ ์ด์œ ๋Š” ์ •๋ง ์ข‹์€ ์—์ž‡ํผ์„ผํŠธ ์‚ฌ๋žŒ๋“ค ๋•๋ถ„์ด์—ˆ๋‹ค. **ํŠนํžˆ, ์˜จ์ข…์ผ ๊ฐ™์ด ์žˆ๋Š” ํ”Œ๋žซํผ๊ฐœ๋ฐœ ํŒ€์›๋ถ„๋“ค ๋งŒ์„ธ** ๋‹ค๋“ค ์—…๋ฌด๋กœ ๋ฐ”์˜์‹ค ํ…๋ฐ ๋ฌผ์–ด๋ณผ ๋•Œ๋งˆ๋‹ค ์นœ์ ˆํ•˜๊ฒŒ ์•Œ๋ ค์ฃผ์‹œ๊ณ  ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋„ ์ •์„ฑ๊ป ํ•ด์ฃผ์‹œ๊ณ  ๋จผ์ € ์™€์„œ ์•Œ๋ ค์ฃผ์‹œ๊ณ  ๋ง ๊ฑธ์–ด์ฃผ์…”์„œ ๊ธˆ๋ฐฉ ์ ์‘ํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. ์ ์‹ฌ์‹œ๊ฐ„์ด๋‚˜ ์—…๋ฌด ์ค‘๊ฐ„์— ๋‚˜๋ˆ„๋Š” ์žก๋‹ด ํƒ€์ž„๋„ ๋„ˆ๋ฌด ์žฌ๋ฐŒ์—ˆ๋‹ค. ๊ทธ๋ž˜์„œ ์‚ฌ์‹ค ๋งŽ์€ ๋ถ„์ด ์žฌํƒ ํ•ด์„œ ์‚ฌ๋ฌด์‹ค์ด ์ข€ ๋น„๋ฉด ์‹ฌ์‹ฌํ–ˆ๋‹ค. ๊ทธ ์ •๋„๋กœ ์ •์ด ๋งŽ์ด ๋“  ๊ฑฐ ๊ฐ™๋‹ค. <p align="center"> <img src="/images/internship-4-ํ˜ธ์„ฑ๋‹˜๊ณผ.jpg" alt="ํ˜ธ์„ฑ๋‹˜๊ณผ ๋งˆ์ง€๋ง‰" width="500"> </p> <br> ## <span style="color:#6741d9">๋งˆ์ง€๋ง‰ ์—ํ”ผ์†Œ๋“œ</span> ### ์ฒซ ์žฌํƒ๊ทผ๋ฌด ์ธํ„ด ์ฒซ 2์ฃผ๋ฅผ ์ œ์™ธํ•˜๊ณ  ์žฌํƒ๊ทผ๋ฌด๋ฅผ ํ•  ์ˆ˜ ์žˆ์—ˆ์œผ๋‚˜, ๋” ๋งŽ์ด ๋ฐฐ์šฐ๊ณ  ํŒ€์›๋ถ„๋“ค์ด๋ž‘ ์นœํ•ด์ง€๊ณ  ์‹ถ์–ด์„œ ํ•ญ์ƒ ์‚ฌ๋ฌด์‹ค๋กœ ์ถœ๊ทผํ–ˆ๋‹ค. ํ•˜์ง€๋งŒ ํ•œ ๋ฒˆ๋„ ์žฌํƒ๊ทผ๋ฌด ์•ˆ ํ•˜๊ณ  ๊ฐ€๋ฉด ์•„์‰ฌ์šธ ๊ฑฐ ๊ฐ™์•„์„œ ์ฒ˜์Œ์œผ๋กœ ์žฌํƒ๊ทผ๋ฌด๋ฅผ ํ–ˆ๋‹ค. ์ž ์„ ๋‘ ์‹œ๊ฐ„ ๋” ์ž˜ ์ˆ˜ ์žˆ๊ณ , ํ‡ด๊ทผํ•˜๋ฉด ๋ฐ”๋กœ ์ง‘์ด๋ผ๋Š” ์ ์€ ์ƒ๊ฐ๋ณด๋‹ค ๋” ๋งŽ์ด ํ–‰๋ณตํ–ˆ๋‹ค. ### ๋‹น ์ถฉ์ „ํ•˜์„ธ์š” <p align="center"> <img src="/images/internship-4-์‚ฌํƒ•.png" alt="์‚ฌํƒ•" width="500"> </p> ๊ฐ™์€ ์ธํ„ด ๋™๊ธฐ์ธ ๋ฏธ์—ฐ๋‹˜์˜ ์ œ์•ˆ์œผ๋กœ ๋ฐฅ๋„ ๋งŽ์ด ์‚ฌ์ฃผ์‹œ๊ณ  ์ž˜ ์ฑ™๊ฒจ์ฃผ์‹  ์—์ž‡ํผ์„ผํŠธ ์‚ฌ๋žŒ๋“ค์—๊ฒŒ ์ž‘์€ ์„ ๋ฌผ์„ ๋“œ๋ฆฌ๊ธฐ๋กœ ํ–ˆ๋‹ค. ๋ฐธ๋Ÿฐํƒ€์ธ๋ฐ์ด๋ฅผ ๊ธฐ๋…์œผ๋กœ ์ดˆ์ฝœ๋ฆฟ์ด๋ž‘ ์‚ฌํƒ•์„ ์ค€๋น„ํ•ด์„œ ์‚ฌ๋ฌด์‹ค ํ…Œ์ด๋ธ”์— ๋‘์—ˆ๋‹ค. ์˜ฌ๋ฆฌ์ž๋งˆ์ž ๋‚˜๋ž‘ ๋ฏธ์—ฐ๋‹˜ ์‚ฌ์ง„ ์ด๋ชจํ‹ฐ์ฝ˜์ด ๋‹ฌ๋ฆฌ๋Š” ๊ฒŒ ์žฌ๋ฐŒ์—ˆ๋‹ค. <br> **<span style="color:#6741d9">๋งˆ์ง€๋ง‰ ์ธํ„ด๊ธฐ ๋!</span>** ๊ทธ๋™์•ˆ ๊ฐ์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค.
8percent/8percent.github.io
_posts/2021-02-19-internship-review4.md
Markdown
mit
4,596
.sample2 .sea { height: 300px; width: 480px; position: relative; background-image: url(media/fishing.png), url(media/mermaid.png), url(media/sea.png); background-position: top right 10px, bottom left, top left; background-repeat: no-repeat, repeat-x, repeat-x; } .sample2 .fish { background: url(media/fish.png) no-repeat; height: 70px; width: 100px; left: 30px; top: 90px; position: absolute; }
zenzontle/VillonderCoNf
MultipleBackgrounds/multiple.css
CSS
mit
408
/** * @fileoverview Rule to flag use of implied eval via setTimeout and setInterval * @author James Allardice */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = require("./utils/ast-utils"); const { getStaticValue } = require("eslint-utils"); //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { type: "suggestion", docs: { description: "disallow the use of `eval()`-like methods", category: "Best Practices", recommended: false, url: "https://eslint.org/docs/rules/no-implied-eval" }, schema: [], messages: { impliedEval: "Implied eval. Consider passing a function instead of a string." } }, create(context) { const EVAL_LIKE_FUNCS = Object.freeze(["setTimeout", "execScript", "setInterval"]); const GLOBAL_CANDIDATES = Object.freeze(["global", "window", "globalThis"]); /** * Checks whether a node is evaluated as a string or not. * @param {ASTNode} node A node to check. * @returns {boolean} True if the node is evaluated as a string. */ function isEvaluatedString(node) { if ( (node.type === "Literal" && typeof node.value === "string") || node.type === "TemplateLiteral" ) { return true; } if (node.type === "BinaryExpression" && node.operator === "+") { return isEvaluatedString(node.left) || isEvaluatedString(node.right); } return false; } /** * Checks whether a node is an Identifier node named one of the specified names. * @param {ASTNode} node A node to check. * @param {string[]} specifiers Array of specified name. * @returns {boolean} True if the node is a Identifier node which has specified name. */ function isSpecifiedIdentifier(node, specifiers) { return node.type === "Identifier" && specifiers.includes(node.name); } /** * Checks a given node is a MemberExpression node which has the specified name's * property. * @param {ASTNode} node A node to check. * @param {string[]} specifiers Array of specified name. * @returns {boolean} `true` if the node is a MemberExpression node which has * the specified name's property */ function isSpecifiedMember(node, specifiers) { return node.type === "MemberExpression" && specifiers.includes(astUtils.getStaticPropertyName(node)); } /** * Reports if the `CallExpression` node has evaluated argument. * @param {ASTNode} node A CallExpression to check. * @returns {void} */ function reportImpliedEvalCallExpression(node) { const [firstArgument] = node.arguments; if (firstArgument) { const staticValue = getStaticValue(firstArgument, context.getScope()); const isStaticString = staticValue && typeof staticValue.value === "string"; const isString = isStaticString || isEvaluatedString(firstArgument); if (isString) { context.report({ node, messageId: "impliedEval" }); } } } /** * Reports calls of `implied eval` via the global references. * @param {Variable} globalVar A global variable to check. * @returns {void} */ function reportImpliedEvalViaGlobal(globalVar) { const { references, name } = globalVar; references.forEach(ref => { const identifier = ref.identifier; let node = identifier.parent; while (isSpecifiedMember(node, [name])) { node = node.parent; } if (isSpecifiedMember(node, EVAL_LIKE_FUNCS)) { const parent = node.parent; if (parent.type === "CallExpression" && parent.callee === node) { reportImpliedEvalCallExpression(parent); } } }); } //-------------------------------------------------------------------------- // Public //-------------------------------------------------------------------------- return { CallExpression(node) { if (isSpecifiedIdentifier(node.callee, EVAL_LIKE_FUNCS)) { reportImpliedEvalCallExpression(node); } }, "Program:exit"() { const globalScope = context.getScope(); GLOBAL_CANDIDATES .map(candidate => astUtils.getVariableByName(globalScope, candidate)) .filter(globalVar => !!globalVar && globalVar.defs.length === 0) .forEach(reportImpliedEvalViaGlobal); } }; } };
pvamshi/eslint
lib/rules/no-implied-eval.js
JavaScript
mit
5,435
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace EthereumSamuraiApiCaller.Models { using Newtonsoft.Json; using System.Linq; public partial class BlockResponse { /// <summary> /// Initializes a new instance of the BlockResponse class. /// </summary> public BlockResponse() { CustomInit(); } /// <summary> /// Initializes a new instance of the BlockResponse class. /// </summary> public BlockResponse(long number, string blockHash = default(string), string gasUsed = default(string), string gasLimit = default(string), string parentHash = default(string)) { BlockHash = blockHash; GasUsed = gasUsed; GasLimit = gasLimit; ParentHash = parentHash; Number = number; CustomInit(); } /// <summary> /// An initialization method that performs custom operations like setting defaults /// </summary> partial void CustomInit(); /// <summary> /// </summary> [JsonProperty(PropertyName = "blockHash")] public string BlockHash { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "gasUsed")] public string GasUsed { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "gasLimit")] public string GasLimit { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "parentHash")] public string ParentHash { get; set; } /// <summary> /// </summary> [JsonProperty(PropertyName = "number")] public long Number { get; set; } /// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { //Nothing to validate } } }
LykkeCity/EthereumApiDotNetCore
src/EthereumSamuraiApiCaller/Models/BlockResponse.cs
C#
mit
2,212
// // BPPopToast.h // BPKITsDemo // // Created by mikeooye on 15-3-28. // Copyright (c) 2015ๅนด ihojin. All rights reserved. // #import <UIKit/UIKit.h> @interface BPPopToast : UIView @property (copy, nonatomic) NSString *text; - (void)popToastAtRect:(CGRect)rect inView:(UIView *)view; @end @interface NSString (BPPopToast) - (void)popToastAtRect:(CGRect)rect inView:(UIView *)view; @end
mikeooye/BPKITs
Views/BPPopToast.h
C
mit
397
/* --------------------------------------------------------------------------- Open Asset Import Library (ASSIMP) --------------------------------------------------------------------------- Copyright (c) 2006-2010, ASSIMP Development Team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the ASSIMP team, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of the ASSIMP Development Team. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --------------------------------------------------------------------------- */ #include "stdafx.h" #include "assimp_view.h" #include "RichEdit.h" namespace AssimpView { /* extern */ CLogWindow CLogWindow::s_cInstance; extern HKEY g_hRegistry; // header for the RTF log file static const char* AI_VIEW_RTF_LOG_HEADER = "{\\rtf1" "\\ansi" "\\deff0" "{" "\\fonttbl{\\f0 Courier New;}" "}" "{\\colortbl;" "\\red255\\green0\\blue0;" // red for errors "\\red255\\green120\\blue0;" // orange for warnings "\\red0\\green150\\blue0;" // green for infos "\\red0\\green0\\blue180;" // blue for debug messages "\\red0\\green0\\blue0;" // black for everything else "}}"; //------------------------------------------------------------------------------- // Message procedure for the log window //------------------------------------------------------------------------------- INT_PTR CALLBACK LogDialogProc(HWND hwndDlg,UINT uMsg, WPARAM wParam,LPARAM lParam) { lParam; switch (uMsg) { case WM_INITDIALOG: { return TRUE; } case WM_SIZE: { int x = LOWORD(lParam); int y = HIWORD(lParam); SetWindowPos(GetDlgItem(hwndDlg,IDC_EDIT1),NULL,0,0, x-10,y-12,SWP_NOMOVE|SWP_NOZORDER); return TRUE; } case WM_CLOSE: EndDialog(hwndDlg,0); CLogWindow::Instance().bIsVisible = false; return TRUE; }; return FALSE; } //------------------------------------------------------------------------------- void CLogWindow::Init () { this->hwnd = ::CreateDialog(g_hInstance,MAKEINTRESOURCE(IDD_LOGVIEW), NULL,&LogDialogProc); if (!this->hwnd) { CLogDisplay::Instance().AddEntry("[ERROR] Unable to create logger window", D3DCOLOR_ARGB(0xFF,0,0xFF,0)); } // setup the log text this->szText = AI_VIEW_RTF_LOG_HEADER;; this->szPlainText = ""; } //------------------------------------------------------------------------------- void CLogWindow::Show() { if (this->hwnd) { ShowWindow(this->hwnd,SW_SHOW); this->bIsVisible = true; // contents aren't updated while the logger isn't displayed this->Update(); } } //------------------------------------------------------------------------------- void CMyLogStream::write(const char* message) { CLogWindow::Instance().WriteLine(message); } //------------------------------------------------------------------------------- void CLogWindow::Clear() { this->szText = AI_VIEW_RTF_LOG_HEADER;; this->szPlainText = ""; this->Update(); } //------------------------------------------------------------------------------- void CLogWindow::Update() { if (this->bIsVisible) { SETTEXTEX sInfo; sInfo.flags = ST_DEFAULT; sInfo.codepage = CP_ACP; SendDlgItemMessage(this->hwnd,IDC_EDIT1, EM_SETTEXTEX,(WPARAM)&sInfo,( LPARAM)this->szText.c_str()); } } //------------------------------------------------------------------------------- void CLogWindow::Save() { char szFileName[MAX_PATH]; DWORD dwTemp = MAX_PATH; if(ERROR_SUCCESS != RegQueryValueEx(g_hRegistry,"LogDestination",NULL,NULL, (BYTE*)szFileName,&dwTemp)) { // Key was not found. Use C: strcpy(szFileName,""); } else { // need to remove the file name char* sz = strrchr(szFileName,'\\'); if (!sz)sz = strrchr(szFileName,'/'); if (!sz)*sz = 0; } OPENFILENAME sFilename1 = { sizeof(OPENFILENAME), g_hDlg,GetModuleHandle(NULL), "Log files\0*.txt", NULL, 0, 1, szFileName, MAX_PATH, NULL, 0, NULL, "Save log to file", OFN_OVERWRITEPROMPT | OFN_HIDEREADONLY | OFN_NOCHANGEDIR, 0, 1, ".txt", 0, NULL, NULL }; if(GetSaveFileName(&sFilename1) == 0) return; // Now store the file in the registry RegSetValueExA(g_hRegistry,"LogDestination",0,REG_SZ,(const BYTE*)szFileName,MAX_PATH); FILE* pFile = fopen(szFileName,"wt"); fprintf(pFile,this->szPlainText.c_str()); fclose(pFile); CLogDisplay::Instance().AddEntry("[INFO] The log file has been saved", D3DCOLOR_ARGB(0xFF,0xFF,0xFF,0)); } //------------------------------------------------------------------------------- void CLogWindow::WriteLine(const char* message) { this->szPlainText.append(message); this->szPlainText.append("\r\n"); if (0 != this->szText.length()) { this->szText.resize(this->szText.length()-1); } switch (message[0]) { case 'e': case 'E': this->szText.append("{\\pard \\cf1 \\b \\fs18 "); break; case 'w': case 'W': this->szText.append("{\\pard \\cf2 \\b \\fs18 "); break; case 'i': case 'I': this->szText.append("{\\pard \\cf3 \\b \\fs18 "); break; case 'd': case 'D': this->szText.append("{\\pard \\cf4 \\b \\fs18 "); break; default: this->szText.append("{\\pard \\cf5 \\b \\fs18 "); break; } std::string _message = message; for (unsigned int i = 0; i < _message.length();++i) { if ('\\' == _message[i] || '}' == _message[i] || '{' == _message[i]) { _message.insert(i++,"\\"); } } this->szText.append(_message); this->szText.append("\\par}}"); if (this->bIsVisible && this->bUpdate) { SETTEXTEX sInfo; sInfo.flags = ST_DEFAULT; sInfo.codepage = CP_ACP; SendDlgItemMessage(this->hwnd,IDC_EDIT1, EM_SETTEXTEX,(WPARAM)&sInfo,( LPARAM)this->szText.c_str()); } return; } }; //! AssimpView
mtwilliams/mojo
dependencies/assimp-2.0.863/tools/assimp_view/LogWindow.cpp
C++
mit
6,958
module Tasklist end
chaimedes/HanamiTaskList
lib/tasklist.rb
Ruby
mit
20
--- title: "Exploring UIAlertController" date: 2014-09-07 00:00 link_to: swift --- This morning, I was working on the [sample app](https://github.com/AshFurrow/Moya/issues/39) for [Moya](https://github.com/AshFurrow/Moya), a network abstraction framework that Iโ€™ve built on top of [Alamofire](https://github.com/Alamofire/Alamofire). I needed a way to grab some user text input, so I turned to `UIAlertView`. Turns out that thatโ€™s deprecated in favour of `UIAlertController`. Hmm. <!-- more --> Looking around the internet, there werenโ€™t very many examples of how to use this cool new class, and the [documentation](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIAlertController_class/) was sparse at best. Letโ€™s take a look at the high-level API and then get into some of the nitty-gritty. (Iโ€™m going to write this in Swift because I am not a [dinosaur](http://t.co/Q2hvacChLu).) `UIAlertController` is a `UIViewController` subclass. This contrasts with `UIAlertView`, a `UIView` subclass. View controllers are (or at least, should be) the main unit of composition when writing iOS applications. It makes a lot of sense that Apple would replace alert views with alert view _controllers_. Thatโ€™s cool. Creating an alert view controller is pretty simple. Just use the initializer to create one and then present it to the user as you would present any other view controller. ```swift let alertController = UIAlertController(title: "Title", message: "Message", preferredStyle: .Alert) presentViewController(alertController, animated: true, completion: nil) ``` Pretty straightforward. Iโ€™m using the `.Alert` preferred style, but you can use the `.ActionSheet` instead. Iโ€™m using this as a replacement for `UIAlertView`, so Iโ€™ll just discuss the alert style. If you ran this code, youโ€™d be presented with something like the following (on beta 7). ![](/img/import/blog/uialertviewcontroller-example/C47E5C761A24426CB34230DBB2A7AF7C.png) Weird. The title is there, but the message is not present. There are also no buttons, so you canโ€™t dismiss the controller. Itโ€™s there until you relaunch your app. Sucky. Turns out if you want buttons, youโ€™ve got to explicitly add them to the controller before presenting it. ```swift let ok = UIAlertAction(title: "OK", style: .Default, handler: { (action) -> Void in }) let cancel = UIAlertAction(title: "Cancel", style: .Cancel) { (action) -> Void in } alertController.addAction(ok) alertController.addAction(cancel) ``` This is _worlds_ better than `UIAlertView`, despite being much more verbose. First of all, you can have multiple cancel or destructive buttons. You also specify individual closures to be executed when a button is pressed instead of some shitty delegate callback telling you which button _index_ was pressed. (If anyone out there makes a `UIAlertController+Blocks` category, I will find you, and I _will_ kill you.) ![](/img/import/blog/uialertviewcontroller-example/2A03E60C605A42789A6FAF704BB9A130.jpg) If we added the above configuration to our code, weโ€™d get the following. ![](/img/import/blog/uialertviewcontroller-example/08BE65FFF6E243CAAD311D4115EC75B6.png) Way better. Weird that the message is now showing up. Maybe itโ€™s a bug, or maybe itโ€™s intended behaviour. Apple, you so cray cray. Anyway, you should also notice that the โ€œOKโ€ and โ€œCancelโ€ buttons have been styled and positioned according to iOS conventions. Neato. What _I_ needed, however, was user input. This was possible with `UIAlertView`, so it should be possible with `UIAlertController`, right? Well, kinda. Thereโ€™s an encouraging instance method named `addTextFieldWithConfigurationHandler()`, but using it is not so straightforward. Let me show you what I mean. ```swift alertController.addTextFieldWithConfigurationHandler { (textField) -> Void in // Here you can configure the text field (eg: make it secure, add a placeholder, etc) } ``` Straightforward. Run the code, get the following. ![](/img/import/blog/uialertviewcontroller-example/9EA0E4E86AB54891A9A27BC24D1C8889.png) The question now is this: how do you, in the closure for the โ€œOKโ€ button, access the contents of the text field? ![](/img/import/blog/uialertviewcontroller-example/0E7A01300D2F49C6947664D55AC91803.gif) There is no way for you to directly access the text field from the closure invoked when a button is pressed. [This](http://stackoverflow.com/questions/24172593/access-input-from-uialertcontroller) StackOverflow question has two possible answers. You can access the `textFields` array on the controller (assuming that the order of that array is the same as the order which you added the text fields), but this causes a reference cycle (the alert action has a strong reference to the alert view controller, which has a strong reference to the alert action). This _does_ cause a memory leak for each controller that you present. ![](/img/import/blog/uialertviewcontroller-example/31715566B57649FF8B277A3063191734.png) The other answer suggests storing the text field thatโ€™s passed into the configuration closure in a property on the presenting controller, which can later be accessed. Thatโ€™s a _very_ Objective-C way of solving this problem. So what do we do? Well, Iโ€™ve been writing Swift lately, and whenever I come across a problem like this, I think โ€œif I had [five years of Swift experience](http://instagram.com/p/rWyQdUDBhH), what would _I_ do?โ€ My answer was the following. Letโ€™s create a local variable, a `UITextField?` optional. In the configuration closure for the text field, assign the local variable to the text field that weโ€™re passed in. Then we can access that local variable in our alert action closure. Sweet. The full implementation looks like this. ```swift var inputTextField: UITextField? let alertController = UIAlertController(title: "Title", message: "Message", preferredStyle: .Alert) let ok = UIAlertAction(title: "OK", style: .Default, handler: { (action) -> Void in // Do whatever you want with inputTextField?.text println("\(inputTextField?.text)") }) let cancel = UIAlertAction(title: "Cancel", style: .Cancel) { (action) -> Void in } alertController.addAction(ok) alertController.addAction(cancel) alertController.addTextFieldWithConfigurationHandler { (textField) -> Void in inputTextField = textField } presentViewController(alertController, animated: true, completion: nil) ``` I like this a lot. It avoids polluting our object with unnecessary properties, avoids memory leaks, and seems pretty โ€œSwiftโ€. Iโ€™ve created a [GitHub repo](https://github.com/AshFurrow/UIAlertController-Example) that Iโ€™ll keep up to date with future betas, etc. ![](/img/import/blog/uialertviewcontroller-example/09B8BCEA8BBE48239C07298CD4112B53.jpg) So yeah. The new `UIAlertController` has some great benefits: - Itโ€™s explicit - It conforms to iOS composability conventions - Itโ€™s got a clear API - Itโ€™s reusable in different contexts (iWatch vs iWatch mini) The drawbacks are: - Itโ€™s unfamiliar As we march forward into this brave new world of Swift, we need to reevaluate our approaches to familiar problems. Just because a solution that worked well in Objective-C might work OK in Swift doesnโ€™t make it a solution _well_ suited for use in Swift. As developers, we should keep an open mind about new ideas and experiment. The way I look at it is like this: right now, the community is pretty new at Swift. Weโ€™re racing in all different directions because [no one](http://robnapier.net/i-dont-know-swift) really knows what the best practices are, yet. We need this expansion in all directions, even if a lot of those directions are going to turn out to be bad ideas. If we donโ€™t throw it all against the wall, we wonโ€™t figure out what sticks. So next time you try and do something and get confused because Swift is unfamiliar, try all kinds of things. Could be you end up creating a brand new convention thatโ€™s adopted by the whole iOS community for years to come.
yogoo/ashfurrow-blog
source/blog/2014-09-07-uialertviewcontroller-example.markdown
Markdown
mit
8,061
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Library to generate items for Sortable.js */ class Sortable { protected $CI; protected $mItems; protected $mPostName = 'sortable_ids'; public function __construct() { $this->CI =& get_instance(); $this->CI->load->library('parser'); $this->CI->load->library('system_message'); } // Get items to be sorted public function init($model, $order_field = 'pos') { $this->CI->load->model($model, 'm'); $ids = $this->CI->input->post($this->mPostName); // save to database if ( !empty($ids) ) { for ($i=0; $i<count($ids); $i++) { $updated = $this->CI->m->update($ids[$i], array($order_field => $i+1)); } // refresh page (interrupt other logic) $this->CI->system_message->set_success('Successfully updated sort order.'); refresh(); } // return all records in sorted order $this->CI->db->order_by($order_field, 'ASC'); $items = $this->CI->m->get_all(); $this->mItems = $items; return $this; } // Render template public function render($label_template = '{title}', $back_url = NULL) { if ( empty($this->mItems) ) { return '<p>No records are found.</p>'; } else { $html = box_open('Sort Order', 'primary'); // Render form with alert message $html.= '<form action="'.current_url().'" method="POST">'; $html.= $this->CI->system_message->render(); $html.= '<p>Drag and drop below items to sort them in ascending order:</p>'; // Generate item list by CodeIgniter Template Parser $template = '<ul class="sortable list-group"> {items} <li class="list-group-item"> <strong>'.$label_template.'</strong> <input type="hidden" name="'.$this->mPostName.'[]" value="{id}" /> </li> {/items} </ul>'; $data = array('items' => $this->mItems); $html.= $this->CI->parser->parse_string($template, $data, TRUE); if ($back_url!=NULL) $html.= btn('Back', $back_url, 'reply', 'bg-purple').' '; $html.= btn_submit('Save'); $html.= '</form>'; $html.= box_close(); return $html; } } }
jiji262/codeigniter_boilerplate
application/modules/admin/libraries/Sortable.php
PHP
mit
2,088
import NodeFunction from '../core/NodeFunction.js'; import NodeFunctionInput from '../core/NodeFunctionInput.js'; const declarationRegexp = /^\s*(highp|mediump|lowp)?\s*([a-z_0-9]+)\s*([a-z_0-9]+)?\s*\(([\s\S]*?)\)/i; const propertiesRegexp = /[a-z_0-9]+/ig; const pragmaMain = '#pragma main'; const parse = ( source ) => { const pragmaMainIndex = source.indexOf( pragmaMain ); const mainCode = pragmaMainIndex !== - 1 ? source.substr( pragmaMainIndex + pragmaMain.length ) : source; const declaration = mainCode.match( declarationRegexp ); if ( declaration !== null && declaration.length === 5 ) { // tokenizer const inputsCode = declaration[ 4 ]; const propsMatches = []; let nameMatch = null; while ( ( nameMatch = propertiesRegexp.exec( inputsCode ) ) !== null ) { propsMatches.push( nameMatch ); } // parser const inputs = []; let i = 0; while ( i < propsMatches.length ) { const isConst = propsMatches[ i ][ 0 ] === 'const'; if ( isConst === true ) { i ++; } let qualifier = propsMatches[ i ][ 0 ]; if ( qualifier === 'in' || qualifier === 'out' || qualifier === 'inout' ) { i ++; } else { qualifier = ''; } const type = propsMatches[ i ++ ][ 0 ]; let count = Number.parseInt( propsMatches[ i ][ 0 ] ); if ( Number.isNaN( count ) === false ) i ++; else count = null; const name = propsMatches[ i ++ ][ 0 ]; inputs.push( new NodeFunctionInput( type, name, count, qualifier, isConst ) ); } // const blockCode = mainCode.substring( declaration[ 0 ].length ); const name = declaration[ 3 ] !== undefined ? declaration[ 3 ] : ''; const type = declaration[ 2 ]; const presicion = declaration[ 1 ] !== undefined ? declaration[ 1 ] : ''; const headerCode = pragmaMainIndex !== - 1 ? source.substr( 0, pragmaMainIndex ) : ''; return { type, inputs, name, presicion, inputsCode, blockCode, headerCode }; } else { throw new Error( 'FunctionNode: Function is not a GLSL code.' ); } }; class GLSLNodeFunction extends NodeFunction { constructor( source ) { const { type, inputs, name, presicion, inputsCode, blockCode, headerCode } = parse( source ); super( type, inputs, name, presicion ); this.inputsCode = inputsCode; this.blockCode = blockCode; this.headerCode = headerCode; } getCode( name = this.name ) { const headerCode = this.headerCode; const presicion = this.presicion; let declarationCode = `${ this.type } ${ name } ( ${ this.inputsCode.trim() } )`; if ( presicion !== '' ) { declarationCode = `${ presicion } ${ declarationCode }`; } return headerCode + declarationCode + this.blockCode; } } export default GLSLNodeFunction;
jpweeks/three.js
examples/jsm/renderers/nodes/parsers/GLSLNodeFunction.js
JavaScript
mit
2,740
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var core_1 = require('@angular/core'); var router_1 = require('@angular/router'); var app_service_1 = require("./app-service"); var AppComponent = (function () { function AppComponent(breadCrumbSvc, _router) { this.breadCrumbSvc = breadCrumbSvc; this._router = _router; this.breadCrumbSvc.setBreadCrumb('Project Dashboard'); } AppComponent.prototype.navigateHome = function () { this._router.navigate(['home']); ; }; AppComponent = __decorate([ core_1.Component({ selector: 'ts-app', templateUrl: '/app/app-component.html' }), __metadata('design:paramtypes', [app_service_1.BreadcrumbService, router_1.Router]) ], AppComponent); return AppComponent; }()); exports.AppComponent = AppComponent;
mail2yugi/ProjectTodoList
src/app/app.component.js
JavaScript
mit
1,606
๏ปฟusing Feria_Desktop.View.Usuario; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Feria_Desktop.View.Mantenedor { /// <summary> /// Lรณgica de interacciรณn para Bodega.xaml /// </summary> public partial class Bodega : Page { private vEditarBodega modEditarBodega; public Bodega() { InitializeComponent(); } private void btnNuevo_Click(object sender, RoutedEventArgs e) { modEditarBodega = new vEditarBodega(); modEditarBodega.ShowDialog(); } } }
lagrantorre/PortafolioTItulo
Feria Desktop/Feria Desktop/View/Mantenedor/Bodega.xaml.cs
C#
mit
912
/** * Copies the values of `source` to `array`. * * @private * @param {Array} source The array to copy values from. * @param {Array} [array=[]] The array to copy values to. * @returns {Array} Returns `array`. */ function arrayCopy(source, array) { var index = -1, length = source.length; array || (array = Array(length)); while (++i < length) { array[i] = source[i]; } return array; } module.exports = arrayCopy;
gdgzdar/2048
node_modules/karma/node_modules/lodash/internal/arrayCopy.js
JavaScript
mit
442
// // SNPGetStreamOperation.h // Snapper // // Created by Paul Schifferer on 12/23/12. // Copyright (c) 2012 Pilgrimage Software. All rights reserved. // #import "SNPBaseAppTokenOperation.h" @interface SNPGetStreamOperation : SNPBaseAppTokenOperation // -- Properties -- @property (nonatomic, assign) NSInteger streamId; // -- Initializers -- - (nonnull instancetype)initWithStreamId:(NSUInteger)streamId appToken:(nonnull NSString*)appToken finishBlock:(nonnull void (^)(SNPResponse* _Nonnull response))finishBlock; @end
exsortis/Snapper
Snapper/Source/Shared/SNPGetStreamOperation.h
C
mit
593
package de.uni.bremen.stummk.psp.calculation; import java.lang.reflect.InvocationTargetException; import java.util.List; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.jface.action.Action; import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction; import de.uni.bremen.stummk.psp.control.BarChart; import de.uni.bremen.stummk.psp.control.LineChart; import de.uni.bremen.stummk.psp.control.PieChart; import de.uni.bremen.stummk.psp.data.PSPProject; import de.uni.bremen.stummk.psp.data.ScheduleEntry; import de.uni.bremen.stummk.psp.utility.CheckOperation; import de.uni.bremen.stummk.psp.utility.Constants; import de.uni.bremen.stummk.psp.utility.DataIO; import de.uni.bremen.stummk.psp.utility.FileHash; /** * Class represents an action of the toolbar in the editor * * @author Konstantin * */ public class EditorToolbarAction extends Action implements IWorkbenchAction { private EditorToolbarController etc; /** * Constructor * * @param id the Id of the Action * @param editorToolbarController the {@link EditorToolbarController} of the * {@link EditorToolbarAction} */ public EditorToolbarAction(String id, EditorToolbarController editorToolbarController) { setId(id); this.etc = editorToolbarController; } @Override public void run() { handleAction(getId()); } private void handleAction(String id) { // execute action depending on id switch (id) { case Constants.COMMAND_SYNC: exportData(); break; case Constants.COMMAND_PLAN_ACTUAL_DIAGRAM: new BarChart(etc.getProjectPlanSummary(), "Plan vs. Actual Values - " + etc.getProjectPlanSummary().getProject().getProjectName()); break; case Constants.COMMAND_TIME_IN_PHASE_PERCENTAGE: new PieChart(etc.getProjectPlanSummary(), Constants.KEY_TIME_IN_PHASE_IDX, "Distribution of time in phase - " + etc.getProjectPlanSummary().getProject().getProjectName()); break; case Constants.COMMAND_DEFECT_INJECTED_PERCENTAGE: new PieChart(etc.getProjectPlanSummary(), Constants.KEY_DEFECTS_INJECTED_IDX, "Distribution of injected defects - " + etc.getProjectPlanSummary().getProject().getProjectName()); break; case Constants.COMMAND_DEFECT_REMOVED_PERCENTAGE: new PieChart(etc.getProjectPlanSummary(), Constants.KEY_DEFECTS_REMOVED_IDX, "Distribution of removed defects - " + etc.getProjectPlanSummary().getProject().getProjectName()); break; case Constants.COMMAND_TIME_TRACKING: List<ScheduleEntry> entries = Manager.getInstance().getSchedulePlanning(etc.getProjectPlanSummary().getProject().getProjectName()); new LineChart("Time Progress in Project - " + etc.getProjectPlanSummary().getProject().getProjectName(), Constants.CHART_TIME, entries); break; case Constants.COMMAND_EARNED_VALUE_TRACKING: List<ScheduleEntry> e = Manager.getInstance().getSchedulePlanning(etc.getProjectPlanSummary().getProject().getProjectName()); new LineChart("Earned Value Tracking in Project - " + etc.getProjectPlanSummary().getProject().getProjectName(), Constants.CHART_VALUE, e); break; } } private void exportData() { // exports data to psp-file and create hash try { Shell activeShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); IRunnableWithProgress op = new IRunnableWithProgress() { @Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { monitor.beginTask("Export data to psp.csv file", 2); PSPProject psp = Manager.getInstance().loadBackupProject(etc.getProjectPlanSummary().getProject().getProjectName()); if (psp != null && psp.getSummary() != null) { DataIO.saveToFile(etc.getProjectPlanSummary().getProject().getProjectName(), psp, null); } monitor.worked(1); if (psp != null && psp.getSummary() != null) { IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects(); for (IProject project : projects) { if (project.getName().equals(etc.getProjectPlanSummary().getProject().getProjectName())) { IFile file = CheckOperation.getProjectFile(project); String hash = FileHash.hash(file); try { file.setPersistentProperty(Constants.PROPERTY_HASH, hash); } catch (CoreException e) { e.printStackTrace(); } } } } monitor.worked(1); } finally { monitor.done(); } } }; new ProgressMonitorDialog(activeShell).run(true, true, op); } catch (InvocationTargetException | InterruptedException e) { e.printStackTrace(); } } @Override public void dispose() {} }
stummk/psp-eclipse
Source/de.uni.bremen.stummk.psp/src/de/uni/bremen/stummk/psp/calculation/EditorToolbarAction.java
Java
mit
5,479
1.0.0 / 2014-12-24 ================== * 0.1.2 - Add X-XSS-Protection header options * 0.1.1 - Request body or query sanitize
ziyasal/node-procexss
HISTORY.md
Markdown
mit
131
--- layout: post title: "From interaction-based to state-based testing" description: "Indiscriminate use of Mocks and Stubs can lead to brittle test suites. A more functional design can make state-based testing easier, leading to more robust test suites." date: 2019-02-18 8:19 UTC tags: [Unit Testing, Article Series] --- {% include JB/setup %} <div id="post"> <p> <em>{{ page.description }}</em> </p> <p> The original premise of <a href="http://amzn.to/YPdQDf">Refactoring</a> was that in order to refactor, you must have a trustworthy suite of unit tests, so that you can be confident that you didn't break any functionality. <blockquote> <p>"to refactor, the essential precondition is [...] solid tests"</p> <footer><cite>Martin Fowler, <a href="http://amzn.to/YPdQDf">Refactoring</a></cite></footer> </blockquote> The idea is that you can change how the code is organised, and as long as you don't break any tests, all is good. The experience that most people seem to have, though, is that when they change something in the code, tests break. </p> <p> This is a well-known test smell. In <a href="http://bit.ly/xunitpatterns">xUnit Test Patterns</a> this is called <em>Fragile Test</em>, and it's often caused by <em>Overspecified Software</em>. Even if you follow the proper practice of using <a href="/2013/10/23/mocks-for-commands-stubs-for-queries">Mocks for Commands, Stubs for Queries</a>, you can still end up with a code base where the tests are highly coupled to implementation details of the software. </p> <p> The cause is often that when relying on Mocks and Stubs, test verification hinges on how the System Under Test (SUT) interacts with its dependencies. For that reason, we can call such tests <em>interaction-based tests</em>. For more information, watch my Pluralsight course <a href="{{ site.production_url }}/advanced-unit-testing">Advanced Unit Testing</a>. </p> <h3 id="fb4f2eb1191943c09450c7281a6c8cb0"> Lessons from functional programming <a href="#fb4f2eb1191943c09450c7281a6c8cb0" title="permalink">#</a> </h3> <p> Another way to verify the outcome of a test is to inspect the state of the system after exercising the SUT. We can, quite naturally, call this <em>state-based testing</em>. In object-oriented design, this can lead to other problems. <a href="http://natpryce.com">Nat Pryce</a> has pointed out that <a href="http://natpryce.com/articles/000342.html">state-based testing breaks encapsulation</a>. </p> <p> Interestingly, in his article, Nat Pryce concludes: <blockquote> "I have come to think of object oriented programming as an inversion of functional programming. In a lazy functional language data is pulled through functions that transform the data and combine it into a single result. In an object oriented program, data is pushed out in messages to objects that transform the data and push it out to other objects for further processing." </blockquote> That's an impressively perceptive observation to make in 2004. I wish I was that perspicacious, but I only <a href="{{ site.production_url }}/functional-architecture-with-fsharp">reached a similar conclusion ten years later</a>. </p> <p> Functional programming is based on the fundamental principle of <a href="https://en.wikipedia.org/wiki/Referential_transparency">referential transparency</a>, which, among other things, means that data must be immutable. Thus, no objects change state. Instead, functions can return data that contains immutable state. In unit tests, you can verify that return values are as expected. <a href="/2015/05/07/functional-design-is-intrinsically-testable">Functional design is intrinsically testable</a>; we can consider it a kind of state-based testing, although the states you'd be verifying are immutable return values. </p> <p> In this article series, you'll see three different styles of testing, from interaction-based testing with Mocks and Stubs in C#, over strictly functional state-based testing in <a href="https://www.haskell.org">Haskell</a>, to pragmatic state-based testing in <a href="https://fsharp.org">F#</a>, finally looping back to C# to apply the lessons from functional programming. <ul> <li><a href="/2019/02/25/an-example-of-interaction-based-testing-in-c">An example of interaction-based testing in C#</a></li> <li><a href="/2019/03/11/an-example-of-state-based-testing-in-haskell">An example of state-based testing in Haskell</a></li> <li><a href="/2019/03/25/an-example-of-state-based-testing-in-f">An example of state based-testing in F#</a></li> <li><a href="/2019/04/01/an-example-of-state-based-testing-in-c">An example of state-based testing in C#</a></li> <li><a href="/2019/04/08/a-pure-test-spy">A pure Test Spy</a></li> </ul> The code for all of these articles is <a href="https://github.com/ploeh/UserManagement">available on GitHub</a>. </p> <h3 id="d370a0ae3bc34440b68f8fddab6c1b25"> Summary <a href="#d370a0ae3bc34440b68f8fddab6c1b25" title="permalink">#</a> </h3> <p> Adopting a more functional design, even in a fundamentally object-oriented language like C# can, in my experience, lead to a more sustainable code base. Various maintenance tasks become easier, including unit tests. Functional programming, however, is no panacea. My intent with this article series is only to inspire; to show alternatives to the ways things are normally done. Adopting one of those alternatives could lead to better code, but you must still exercise context-specific judgement. </p> <p> <strong>Next:</strong> <a href="/2019/02/25/an-example-of-interaction-based-testing-in-c">An example of interaction-based testing in C#</a>. </p> </div>
ploeh/ploeh.github.com
_posts/2019-02-18-from-interaction-based-to-state-based-testing.html
HTML
mit
5,696
/// This is the sensor class /// /// Sensor is a box2d fixture that is attached to a parent body /// Sensors are used to detect entities in an area. #pragma once #include <AFP/Scene/SceneNode.hpp> #include <AFP/Entity/Entity.hpp> #include <AFP/Entity/Character.hpp> namespace AFP { class Sensor : public SceneNode { public: enum Type { Foot, Surround, Vision, Jump }; /// Constructor /// /// Sensor(Entity* parent, Type type); /// Return sensor category /// /// Returns the sensor category based on the type virtual unsigned int getCategory() const; /// Create foot sensor /// /// Creates a foot sensor on feet void createFootSensor(float sizeX, float sizeY); /// Create vision sensor /// /// Creates a vision sensor for the entity. ///Takes radius in meters and the angle in degrees as parameters void createVisionSensor(float radius, float angle); /// Create surround sensor /// /// Creates a foot sensor on feet void createSurroundSensor(float radius); /// Create foot sensor /// /// Creates a foot sensor on feet void createJumpSensor(float sizeX, float sizeY); /// Begin contact /// /// Begin contact with an entity void beginContact(); /// Begin contact /// /// Begin contact with an character void beginContact(Character& character); /// End contact /// /// End contact with an entity void endContact(); /// End contact /// /// End contact with a character void endContact(Character& character); private: /// Update /// /// Update sensor data. virtual void updateCurrent(sf::Time dt, CommandQueue& commands); private: /// Sensor fixture /// /// Sensors fixture is linked to the body of the parent. b2Fixture* mFixture; /// Parent entity /// /// Entity on which the sensor is attached to Entity* mParent; /// Type /// /// Type of the sensor Type mType; }; }
Pinqvin/afp-game
include/AFP/Entity/Sensor.hpp
C++
mit
2,350
# Liplis-iOS ใƒ‡ใ‚นใ‚ฏใƒˆใƒƒใƒ—ใƒžใ‚นใ‚ณใƒƒใƒˆ LiplisใฎiOS็‰ˆใงใ™ใ€‚ไปฎๆƒณใƒ‡ใ‚นใ‚ฏใƒˆใƒƒใƒ—ไธŠใงใ‚ญใƒฃใƒฉใ‚ฏใ‚ฟใƒผใŒใŠใ—ใ‚ƒในใ‚Šใ—ใพใ™ใ€‚ # ใƒฉใ‚คใ‚ปใƒณใ‚น MITใƒฉใ‚คใ‚ปใƒณใ‚น
LipliStyle/Liplis-iOS
README.md
Markdown
mit
188
package insanityradio.insanityradio; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class PlayPauseReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { try { FragmentNowPlaying.getInstance().playPauseButtonTapped(false); } catch (NullPointerException e) { Intent startActivityIntent = new Intent(context.getApplicationContext(), MainActivity.class); startActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(startActivityIntent); } } }
dylanmaryk/InsanityRadio-Android
app/src/main/java/insanityradio/insanityradio/PlayPauseReceiver.java
Java
mit
663
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ['HERTZ_SECRET_KEY'] # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.environ['HERTZ_DEBUG'] != 'False' ALLOWED_HOSTS = ['*' if DEBUG else os.environ['HERTZ_HOST']] # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'widget_tweaks', 'attendance', ] MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', ] ROOT_URLCONF = 'hertz.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(BASE_DIR, 'templates'), ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] WSGI_APPLICATION = 'hertz.wsgi.application' # Database if 'DATABASE_HOST' in os.environ: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'postgres', 'USER': os.environ['POSTGRES_USER'], 'PASSWORD': os.environ['POSTGRES_PASSWORD'], 'HOST': os.environ['DATABASE_HOST'], 'PORT': 5432, } } else: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Password validation AUTH_PASSWORD_VALIDATORS = [ { 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', }, { 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', }, { 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', }, { 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', }, ] # Internationalization LANGUAGE_CODE = 'en-us' TIME_ZONE = 'America/Sao_Paulo' USE_I18N = True USE_L10N = True USE_TZ = True # Static files (CSS, JavaScript, Images) STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static') # STATICFILES_DIRS = [ # os.path.join(BASE_DIR, 'static'), # ] LOGIN_REDIRECT_URL = '/' LOGIN_URL = '/login'
seccom-ufsc/hertz
hertz/settings.py
Python
mit
3,237
๏ปฟ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("Robot - Robot")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Robot - Robot")] [assembly: AssemblyCopyright("Copyright ยฉ 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("960726e6-c6b1-4271-8c7e-94110f97ad98")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
phristov/CSharp.DesignPatterns
Builder - Robot/Properties/AssemblyInfo.cs
C#
mit
1,402
<?php /* FOSUserBundle:Resetting:request_content.html.twig */ class __TwigTemplate_16fccc8b4081822ba4c49543c44f48b24850d6b4ad9846152c39968be5b4e7c7 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 2 echo " <form action=\""; // line 3 echo $this->env->getExtension('routing')->getPath("fos_user_resetting_send_email"); echo "\" method=\"POST\" class=\"fos_user_resetting_request\"> <div> "; // line 5 if (array_key_exists("invalid_username", $context)) { // line 6 echo " <p>"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("resetting.request.invalid_username", array("%username%" => (isset($context["invalid_username"]) ? $context["invalid_username"] : $this->getContext($context, "invalid_username"))), "FOSUserBundle"), "html", null, true); echo "</p> "; } // line 8 echo " <label for=\"username\">"; echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("resetting.request.username", array(), "FOSUserBundle"), "html", null, true); echo "</label> <input type=\"text\" id=\"username\" name=\"username\" required=\"required\" /> </div> <div> <input type=\"submit\" value=\""; // line 12 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("resetting.request.submit", array(), "FOSUserBundle"), "html", null, true); echo "\" /> </div> </form> "; } public function getTemplateName() { return "FOSUserBundle:Resetting:request_content.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 43 => 12, 35 => 8, 29 => 6, 27 => 5, 22 => 3, 19 => 2,); } }
thecoons/thecoontube
app/cache/dev/twig/16/fc/cc8b4081822ba4c49543c44f48b24850d6b4ad9846152c39968be5b4e7c7.php
PHP
mit
2,146
export default (callback) => { setTimeout(() => { callback(); setTimeout(() => { callback(); }, 3000); }, 3000); }
csxiaoyaojianxian/JavaScriptStudy
13-่‡ชๅŠจๅŒ–ๆต‹่ฏ•&mockๆ•ฐๆฎ/01-jestๅ…ฅ้—จ/09-mock-timer.js
JavaScript
mit
158
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <title>ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก - ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ</title> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content=""> <meta name="twitter:card" content="summary"> <meta name="twitter:title" content="ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก"> <meta name="twitter:description" content=""> <meta property="og:type" content="article"> <meta property="og:title" content="ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก"> <meta property="og:description" content=""> <link href="/favicon.ico" rel="shortcut icon" type="image/x-icon"> <link href="/apple-touch-icon-precomposed.png" rel="apple-touch-icon"> <script type="text/javascript"> var _trackingid = 'LFT-10003-1'; (function() { var lft = document.createElement('script'); lft.type = 'text/javascript'; lft.async = true; lft.src = document.location.protocol + '//test.list-finder.jp/js/ja/track_test.js'; var snode = document.getElementsByTagName('script')[0]; snode.parentNode.insertBefore(lft, snode); })(); </script> <script type="text/javascript"> var _trackingid = 'LFT-10003-1'; (function() { var lft = document.createElement('script'); lft.type = 'text/javascript'; lft.async = true; lft.src = document.location.protocol + '//track.list-finder.jp/js/ja/track_prod_wao.js'; var snode = document.getElementsByTagName('script')[0]; snode.parentNode.insertBefore(lft, snode); })(); </script> <link rel="stylesheet" type="text/css" href="//tech.innovation.co.jp/themes/uno/assets/css/uno.css?v=1.0.0" /> <link rel="canonical" href="http://tech.innovation.co.jp/2018/06/25/Introduction-of-Computational-Complexity-2.html" /> <meta property="og:site_name" content="ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ" /> <meta property="og:type" content="article" /> <meta property="og:title" content="ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก" /> <meta property="og:description" content="ใฉใ†ใ‚‚ใ€bigenใงใ™ใ€‚ ใชใœ๏ผ’ๆœฌ้€ฃ็ถšใงๆ›ธใ„ใฆใ„ใ‚‹ใ‹ใจใ„ใ†ใจใ€ๅ…ˆ้€ฑใฎใƒ–ใƒญใ‚ฐๅฝ“็•ชใ‚’ใƒ–ใƒƒใƒใ—ใฆใ—ใพใฃใŸ็ฝฐใ‚ฒใƒผใƒ ใงใ™๏ผ ใใ‚“ใชใ‚ใ‘ใงใ€ ๅ‰ๅ›žใฎ่จ˜ไบ‹ใซๅผ•ใ็ถšใใ€ใ‚ฝใƒผใƒˆใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใฎ่จˆ็ฎ—้‡ใซใคใ„ใฆ่ฆ‹ใฆใ„ใ“ใ†ใจๆ€ใ„ใพใ™ใ€‚ ใ€ๅ‰ๅ›žใฎ่จ˜ไบ‹ใฎใพใจใ‚ใ€‘ ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n2), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(m + n), ็ฉบ้–“่จˆ็ฎ—้‡O(m + n) ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n log n), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใ€ใพใจใ‚ใŠใ‚ใ‚Šใ€‘ ไปŠๅ›žใฏใ€ๅฎŸ้š›ใซphpใงใใ‚Œใžใ‚Œใฎใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใ‚’ๅ‹•ใ‹ใ—ใฆใ€ใ€Œ่จˆ็ฎ—้‡ๆœฌๅฝ“ใซใใ‚Œใงใ‚ใฃใฆใ‚“..." /> <meta property="og:url" content="http://tech.innovation.co.jp/2018/06/25/Introduction-of-Computational-Complexity-2.html" /> <meta property="article:published_time" content="2018-06-24T15:00:00.000Z" /> <meta property="article:modified_time" content="2018-07-25T20:24:35.348Z" /> <meta property="article:tag" content="Complexity" /> <meta property="article:tag" content="Sort Algorithm" /> <meta property="article:tag" content="bigen" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:title" content="ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก" /> <meta name="twitter:description" content="ใฉใ†ใ‚‚ใ€bigenใงใ™ใ€‚ ใชใœ๏ผ’ๆœฌ้€ฃ็ถšใงๆ›ธใ„ใฆใ„ใ‚‹ใ‹ใจใ„ใ†ใจใ€ๅ…ˆ้€ฑใฎใƒ–ใƒญใ‚ฐๅฝ“็•ชใ‚’ใƒ–ใƒƒใƒใ—ใฆใ—ใพใฃใŸ็ฝฐใ‚ฒใƒผใƒ ใงใ™๏ผ ใใ‚“ใชใ‚ใ‘ใงใ€ ๅ‰ๅ›žใฎ่จ˜ไบ‹ใซๅผ•ใ็ถšใใ€ใ‚ฝใƒผใƒˆใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใฎ่จˆ็ฎ—้‡ใซใคใ„ใฆ่ฆ‹ใฆใ„ใ“ใ†ใจๆ€ใ„ใพใ™ใ€‚ ใ€ๅ‰ๅ›žใฎ่จ˜ไบ‹ใฎใพใจใ‚ใ€‘ ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n2), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(m + n), ็ฉบ้–“่จˆ็ฎ—้‡O(m + n) ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n log n), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใ€ใพใจใ‚ใŠใ‚ใ‚Šใ€‘ ไปŠๅ›žใฏใ€ๅฎŸ้š›ใซphpใงใใ‚Œใžใ‚Œใฎใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใ‚’ๅ‹•ใ‹ใ—ใฆใ€ใ€Œ่จˆ็ฎ—้‡ๆœฌๅฝ“ใซใใ‚Œใงใ‚ใฃใฆใ‚“..." /> <meta name="twitter:url" content="http://tech.innovation.co.jp/2018/06/25/Introduction-of-Computational-Complexity-2.html" /> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Article", "publisher": "ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ", "author": { "@type": "Person", "name": null, "image": "https://avatars2.githubusercontent.com/u/39402426?v=4", "url": "undefined/author/undefined", "sameAs": "" }, "headline": "ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก", "url": "http://tech.innovation.co.jp/2018/06/25/Introduction-of-Computational-Complexity-2.html", "datePublished": "2018-06-24T15:00:00.000Z", "dateModified": "2018-07-25T20:24:35.348Z", "keywords": "Complexity, Sort Algorithm, bigen", "description": "ใฉใ†ใ‚‚ใ€bigenใงใ™ใ€‚ ใชใœ๏ผ’ๆœฌ้€ฃ็ถšใงๆ›ธใ„ใฆใ„ใ‚‹ใ‹ใจใ„ใ†ใจใ€ๅ…ˆ้€ฑใฎใƒ–ใƒญใ‚ฐๅฝ“็•ชใ‚’ใƒ–ใƒƒใƒใ—ใฆใ—ใพใฃใŸ็ฝฐใ‚ฒใƒผใƒ ใงใ™๏ผ ใใ‚“ใชใ‚ใ‘ใงใ€ ๅ‰ๅ›žใฎ่จ˜ไบ‹ใซๅผ•ใ็ถšใใ€ใ‚ฝใƒผใƒˆใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใฎ่จˆ็ฎ—้‡ใซใคใ„ใฆ่ฆ‹ใฆใ„ใ“ใ†ใจๆ€ใ„ใพใ™ใ€‚ ใ€ๅ‰ๅ›žใฎ่จ˜ไบ‹ใฎใพใจใ‚ใ€‘ ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n2), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(m + n), ็ฉบ้–“่จˆ็ฎ—้‡O(m + n) ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ O(n log n), ็ฉบ้–“่จˆ็ฎ—้‡O(n) ใ€ใพใจใ‚ใŠใ‚ใ‚Šใ€‘ ไปŠๅ›žใฏใ€ๅฎŸ้š›ใซphpใงใใ‚Œใžใ‚Œใฎใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใ‚’ๅ‹•ใ‹ใ—ใฆใ€ใ€Œ่จˆ็ฎ—้‡ๆœฌๅฝ“ใซใใ‚Œใงใ‚ใฃใฆใ‚“..." } </script> <meta name="generator" content="Ghost ?" /> <link rel="alternate" type="application/rss+xml" title="ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ" href="http://tech.innovation.co.jp/rss" /> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css"> </head> <body class="post-template tag-Complexity tag-Sort-Algorithm tag-bigen no-js"> <span class="mobile btn-mobile-menu"> <i class="icon icon-list btn-mobile-menu__icon"></i> <i class="icon icon-x-circle btn-mobile-close__icon hidden"></i> </span> <header class="panel-cover panel-cover--collapsed " > <div class="panel-main"> <div class="panel-main__inner panel-inverted"> <div class="panel-main__content"> <h1 class="panel-cover__title panel-title"><a href="http://tech.innovation.co.jp" title="link to homepage for ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ">ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ</a></h1> <hr class="panel-cover__divider" /> <p class="panel-cover__description">ๆ ชๅผไผš็คพใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใฎใ‚จใƒณใ‚ธใƒ‹ใ‚ขใŸใกใฎๆŠ€่ก“็ณปใƒ–ใƒญใ‚ฐใงใ™ใ€‚ITใƒˆใƒฌใƒณใƒ‰ใƒปList Finderใฎ้–‹็™บใ‚’ใƒ™ใƒผใ‚นใซใ€ๆฅญๅ‹™ๅค–ใงใฎๆŠ€่ก“็ ”็ฉถใชใฉใ‚‚ใƒ–ใƒญใ‚ฐใจใ—ใฆ็™บไฟกใ—ใฆใ„ใฃใฆใพใ™๏ผ</p> <hr class="panel-cover__divider panel-cover__divider--secondary" /> <div class="navigation-wrapper"> <nav class="cover-navigation cover-navigation--primary"> <ul class="navigation"> <li class="navigation__item"><a href="http://tech.innovation.co.jp/#blog" title="link to ใ‚คใƒŽใƒ™ใƒผใ‚ทใƒงใƒณใ€€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใƒ–ใƒญใ‚ฐ blog" class="blog-button">Blog</a></li> </ul> </nav> <nav class="cover-navigation navigation--social"> <ul class="navigation"> </ul> </nav> </div> </div> </div> <div class="panel-cover--overlay"></div> </div> </header> <div class="content-wrapper"> <!-- ใ‚ฝใƒผใ‚ทใƒฃใƒซใƒœใ‚ฟใƒณใ“ใ“ใ‹ใ‚‰ --> <div id="boxArea" style="display: table; padding: 0 0 0 2px;"> <div style="width: 74px; height: 22px; float: left;"> <a href="https://twitter.com/share" class="twitter-share-button" {count} data-lang="ja" data-dnt="true">ใƒ„ใ‚คใƒผใƒˆ</a> <script> !function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/ .test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + '://platform.twitter.com/widgets.js'; fjs.parentNode.insertBefore(js, fjs); } }(document, 'script', 'twitter-wjs'); </script> </div> <div style="width: 76px; height: 22px; float: left;"> <div class="g-plusone" data-size="medium"></div> <script type="text/javascript"> window.___gcfg = { lang : 'ja' }; (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/platform.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> </div> <div style="width: 126px; height: 22px; float: left;"> <a href="http://b.hatena.ne.jp/entry/" class="hatena-bookmark-button" data-hatena-bookmark-layout="standard-balloon" data-hatena-bookmark-lang="ja" title="ใ“ใฎใ‚จใƒณใƒˆใƒชใƒผใ‚’ใฏใฆใชใƒ–ใƒƒใ‚ฏใƒžใƒผใ‚ฏใซ่ฟฝๅŠ "><img src="http://b.st-hatena.com/images/entry-button/[email protected]" alt="ใ“ใฎใ‚จใƒณใƒˆใƒชใƒผใ‚’ใฏใฆใชใƒ–ใƒƒใ‚ฏใƒžใƒผใ‚ฏใซ่ฟฝๅŠ " width="20" height="20" style="border: none;" /></a> <script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script> </div> <div style="width: 117px; height: 22px; float: left;"> <a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-lang="en"></a> </div> <div style="width: 86px; height: 22px; float: left;"> <span><script type="text/javascript" src="//media.line.me/js/line-button.js?v=20140411"></script> <script type="text/javascript"> new media_line_me.LineButton({ "pc" : true, "lang" : "ja", "type" : "a" }); </script></span> </div> <div style="width: 114px; height: 22px; float: left;"> <script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: ja_JP </script> <script type="IN/Share" data-counter="right"></script> </div> <div style="width: 112px; height: 22px; float: left;"> <iframe scrolling="no" frameborder="0" id="fbframe" width="164" height="46" style="border:none;overflow:hidden" allowTransparency="true"></iframe> </div> <script type="text/javascript"> (function() { var url = encodeURIComponent(location.href); document.getElementById('fbframe').src="//www.facebook.com/plugins/like.php?href=" + url + "&width=164&layout=button_count&action=like&show_faces=true&share=true&height=46&appId=1613776965579453" })(); </script> </div> <script type="text/javascript"> !function(d, i) { if (!d.getElementById(i)) { var j = d.createElement("script"); j.id = i; j.src = "https://widgets.getpocket.com/v1/j/btn.js?v=1"; var w = d.getElementById(i); d.body.appendChild(j); } }(document, "pocket-btn-js"); </script> <!-- ใ‚ฝใƒผใ‚ทใƒฃใƒซใƒœใ‚ฟใƒณใ“ใ“ใพใง --> <div class="content-wrapper__inner"> <article class="post-container post-container--single"> <header class="post-header"> <div class="post-meta"> <time datetime="25 Jun 2018" class="post-meta__date date">25 Jun 2018</time> &#8226; <span class="post-meta__tags tags">on <a href="http://tech.innovation.co.jp/tag/Complexity">Complexity</a>, <a href="http://tech.innovation.co.jp/tag/Sort-Algorithm"> Sort Algorithm</a>, <a href="http://tech.innovation.co.jp/tag/bigen"> bigen</a></span> <span class="post-meta__author author"><img src="https://avatars2.githubusercontent.com/u/39402426?v=4" alt="profile image for " class="avatar post-meta__avatar" /> by </span> </div> <h1 class="post-title">ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ่จˆ็ฎ—้‡ๅ…ฅ้–€ใ€€ใ€œใ€€โ‘ก</h1> </header> <section class="post tag-Complexity tag-Sort-Algorithm tag-bigen"> <div id="preamble"> <div class="sectionbody"> <div class="paragraph"> <p>ใฉใ†ใ‚‚ใ€bigenใงใ™ใ€‚<br> ใชใœ๏ผ’ๆœฌ้€ฃ็ถšใงๆ›ธใ„ใฆใ„ใ‚‹ใ‹ใจใ„ใ†ใจใ€ๅ…ˆ้€ฑใฎใƒ–ใƒญใ‚ฐๅฝ“็•ชใ‚’ใƒ–ใƒƒใƒใ—ใฆใ—ใพใฃใŸ็ฝฐใ‚ฒใƒผใƒ ใงใ™๏ผ<br> <br> ใใ‚“ใชใ‚ใ‘ใงใ€ <a href="http://tech.innovation.co.jp/2018/06/26/Introduction-of-Computational-Complexity.html">ๅ‰ๅ›žใฎ่จ˜ไบ‹</a>ใซๅผ•ใ็ถšใใ€ใ‚ฝใƒผใƒˆใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใฎ่จˆ็ฎ—้‡ใซใคใ„ใฆ่ฆ‹ใฆใ„ใ“ใ†ใจๆ€ใ„ใพใ™ใ€‚<br> <br> ใ€ๅ‰ๅ›žใฎ่จ˜ไบ‹ใฎใพใจใ‚ใ€‘<br> ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(n<sup>2</sup>)</em></strong>, ็ฉบ้–“่จˆ็ฎ—้‡<strong><em>O(n)</em></strong><br> ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(m + n)</em></strong>, ็ฉบ้–“่จˆ็ฎ—้‡<strong><em>O(m + n)</em></strong><br> ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(n</em> log <em>n)</em></strong>, ็ฉบ้–“่จˆ็ฎ—้‡<strong><em>O(n)</em></strong><br> ใ€ใพใจใ‚ใŠใ‚ใ‚Šใ€‘<br> <br> ไปŠๅ›žใฏใ€ๅฎŸ้š›ใซphpใงใใ‚Œใžใ‚Œใฎใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใ‚’ๅ‹•ใ‹ใ—ใฆใ€ใ€Œ่จˆ็ฎ—้‡ๆœฌๅฝ“ใซใใ‚Œใงใ‚ใฃใฆใ‚“ใฎ๏ผŸใ€ใฃใฆใ„ใ†ใฎใ‚’่ฆ‹ใฆใ„ใใŸใ„ใจๆ€ใ„ใพใ™ใ€‚<br> <br></p> </div> </div> </div> <div class="sect1"> <h2 id="__">ๅ‰ๆๆกไปถ</h2> <div class="sectionbody"> <div class="paragraph"> <p>OS: macOS High Sierra ver.10.13.5<br> CPU: ็ฌฌ7ไธ–ไปฃใฎ2.3GHzใƒ‡ใƒฅใ‚ขใƒซใ‚ณใ‚ขIntel Core i5ใƒ—ใƒญใ‚ปใƒƒใ‚ต<br> ใƒกใƒขใƒช: 8GB 2,133MHz LPDDR3ใƒกใƒขใƒช<br> PHP version: 7.1.16<br> <br> ๅฏพ่ฑกใจใ™ใ‚‹ๅ•้กŒใฏใ€<br></p> </div> <div class="literalblock"> <div class="content"> <pre>1~mใฎ็ฏ„ๅ›ฒใฎใƒฉใƒณใƒ€ใƒ ใช่‡ช็„ถๆ•ฐnๅ€‹ใ‹ใ‚‰ใชใ‚‹้…ๅˆ—ใ‚’ๆ˜‡้ †ใซใ‚ฝใƒผใƒˆใ™ใ‚‹</pre> </div> </div> <div class="paragraph"> <p>ใจใ—ใฆใ„ใพใ™ใ€‚<br> ใ‚ฝใƒผใ‚นใฏๅˆๅฟƒใซใ‹ใˆใฃใฆ่‡ชๅŠ›ใง็”จๆ„ใ—ใพใ—ใŸใ€‚<br> ่จ˜ไบ‹ใฎๆœซๅฐพใซไป˜้Œฒใจใ—ใฆใŠใ„ใฆใŠใใพใ™ใฎใงใ€ๆš‡ใชๆ–นใฏใ”ๅ‚็…งใใ ใ•ใ„ใ€‚<br> <br> ใพใŸใ€ๅ…จไฝ“ใฎๆตใ‚Œใจใ—ใฆใ€ใ“ใฎๅพŒ</p> </div> <div class="literalblock"> <div class="content"> <pre>ใƒ‡ใƒผใ‚ฟใฎๆ•ฐnใ‚„ใ€ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็จฎ้กžmใ‚’ๅข—ใ‚„ใ—ใŸๆ™‚ใซใ€่จˆ็ฎ—ๆ™‚้–“ใจใƒกใƒขใƒชใฎๆถˆ่ฒปใŒใฉใฎใ‚ˆใ†ใซๅค‰ๅŒ–ใ™ใ‚‹ใ‹</pre> </div> </div> <div class="paragraph"> <p>ใ‚’ๅฎŸๆธฌใง่ฆ‹ใฆใ„ใใพใ™ใ€‚</p> </div> </div> </div> <div class="sect1"> <h2 id="___2">่จˆ็ฎ—ๆ™‚้–“ใซใคใ„ใฆ</h2> <div class="sectionbody"> <div class="paragraph"> <p>ๆ™‚้–“่จˆ็ฎ—้‡ใฏใ€ใใ‚Œใžใ‚Œ<br> <br> ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(n<sup>2</sup>)</em></strong><br> ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(m + n)</em></strong><br> ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ๆ™‚้–“่จˆ็ฎ—้‡ <strong><em>O(n</em> log <em>n)</em></strong> <br> <br> ใงใ—ใŸใ€‚<br> <strong><em>O(n<sup>2</sup>)</em></strong>ใฏใ€ŒnใŒ10ๅ€ใซใชใฃใŸใ‚‰่จˆ็ฎ—ๆ™‚้–“ใฏ100ๅ€ใ€<br> <strong><em>O(m+n)</em></strong>ใฏใ€ŒnใŒ10ๅ€ใซใชใฃใŸใ‚‰่จˆ็ฎ—ๆ™‚้–“ใ‚‚10ๅ€ใ€mใŒ10ๅ€ใซใชใฃใŸใ‚‰่จˆ็ฎ—ๆ™‚้–“ใ‚‚10ๅ€ใ€<br> <strong><em>O(n</em> log <em>n)</em></strong>ใฏใ€ŒnใŒ10ๅ€ใซใชใฃใŸใ‚‰่จˆ็ฎ—ๆ™‚้–“ใฏ(10*ใกใ‚‡ใฃใจ)ๅ€ใ€nใŒๅคงใใ„ใปใฉใกใ‚‡ใฃใจใฏๅฐใ•ใใชใ‚‹ใ€ <br> ใจใ„ใ†ๆ„ๅ‘ณใงใ™ใ€‚<br> <br></p> </div> <div class="sect3"> <h4 id="__n">ใƒ‡ใƒผใ‚ฟใฎๆ•ฐใŒๅข—ใˆใ‚‹ๅ ดๅˆ(nใŒๅข—ใˆใ‚‹ๅ ดๅˆ)</h4> <div class="paragraph"> <p>ใพใšใฏใƒ‡ใƒผใ‚ฟใฎ็ฏ„ๅ›ฒใฏ1~100ใฎ่‡ช็„ถๆ•ฐใซๅ›บๅฎš๏ผˆ<strong><em>m=100</em></strong>๏ผ‰ใ—ใ€ใƒ‡ใƒผใ‚ฟใฎๆ•ฐ<strong><em>n</em></strong>ใ‚’ๅค‰ๅŒ–ใ•ใ›ใŸๆ™‚ใซ่จˆ็ฎ—ๆ™‚้–“ใŒใฉใ†ใชใ‚‹ใ‹่ฆ‹ใฆใ„ใใพใ—ใ‚‡ใ†ใ€‚<br> <br></p> </div> <table class="tableblock frame-all grid-all spread"> <caption class="title">Table 1. ่จˆ็ฎ—ๆ™‚้–“(s) , m = 100</caption> <colgroup> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top"></th> <th class="tableblock halign-left valign-top">n=100</th> <th class="tableblock halign-left valign-top">n=1000</th> <th class="tableblock halign-left valign-top">n=10000</th> <th class="tableblock halign-left valign-top">n=100000</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002770</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0278578</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">2.7695038</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">287.1152839</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0000241</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0000670</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0005970</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0061991</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002079</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0030000</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.1332741</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">11.2226848</p></td> </tr> </tbody> </table> <div class="paragraph"> <p><strong>ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</strong>ใ‹ใ‚‰่ฆ‹ใฆใฟใ‚‹ใจใ€nใŒ10ๅ€ใซใชใ‚‹ใซใคใ‚Œใ€ใปใผ<strong>100ๅ€โ†’10000ๅ€โ†’1000000ๅ€</strong>ใจใใ‚Œใ„ใซ้…ใใชใฃใฆใ„ใพใ™ใญใ€‚<br> ๅ…ธๅž‹็š„ใช<strong><em>O(n<sup>2</sup>)</em></strong>ใฎๅข—ใˆๆ–นใงใ™ใ€‚ ใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใŒใ‚ทใƒณใƒ—ใƒซใชใฎใ‚‚ใ‚ใ‚Šใ€ไป–ใฎไพๅญ˜่ฆ็ด ใŒๅฐ‘ใชใ„ใŸใ‚็ถบ้บ—ใซๆฏ”ไพ‹ใ—ใฆใใ‚Œใพใ—ใŸใ€‚<br></p> </div> <div class="paragraph"> <p><strong>ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</strong> ใฏใ€n:100 &#8594; 1000ใฏ3ๅ€็จ‹ๅบฆใ—ใ‹ๅข—ใˆใฆใ„ใพใ›ใ‚“ใŒใ€n: 1000 &#8594;10000 &#8594; 100000ใฏใปใผ10ๅ€ใšใคๅข—ใˆใฆใ„ใพใ™ใ€‚ ใ“ใ‚Œใฏใ€nใŒๅฐใ•ใ„้ ˜ๅŸŸใงใฏใƒ‡ใƒผใ‚ฟใฎ็ฏ„ๅ›ฒmใซไพๅญ˜ใ™ใ‚‹ๅˆ†ใŒๅคงใใ‹ใฃใŸใŸใ‚ใงใ—ใ‚‡ใ†ใ€‚ <br> n=100: 100(mใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) + 20(nใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) = 120<br> n=1000: 100(mใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) + 200(nใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) = 300(3ๅ€ใใ‚‰ใ„)<br> n=10000: 100(mใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) + 2000(nใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) = 2100(9ๅ€ใใ‚‰ใ„)<br> n=10000: 100(mใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) + 20000(nใซไพๅญ˜ใ™ใ‚‹ๆ™‚้–“) = 20100(10ๅ€ใใ‚‰ใ„)<br> ใฟใŸใ„ใชๆ„Ÿใ˜ใงๅข—ใˆใฆใ„ใฃใŸใ ใ‚ใ†ใฃใฆใ„ใ†ใ“ใจใงใ™ใญใ€‚<br> ็†่ซ–้€šใ‚Šใฎ<strong><em>O(m+n)</em></strong>ใฃใฝใ„ๅข—ใˆๆ–นใ‚’ใ—ใฆใใ‚Œใฆใ„ใพใ™ใ€‚<br></p> </div> <div class="paragraph"> <p><strong>ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</strong>ใฏใ€็†่ซ–ใฉใŠใ‚Šใซใฏใ„ใฃใฆใใ‚Œใพใ›ใ‚“ใงใ—ใŸใ€‚<br> nใŒ10ๅ€ใšใคๅข—ใˆใฆใ„ใใจใใ€่จˆ็ฎ—ๆ™‚้–“ใฏ<br> <strong>15ๅ€โ†’45ๅ€โ†’80ๅ€</strong><br> ใจๅข—ใˆใฆใ„ใพใ™ใ€‚็†ๅฑˆไธŠใฏๅข—ใˆๆ–นใŒๆธ›ใฃใฆใ„ใฃใฆใปใ—ใ„ใฎใงใ™ใŒใƒปใƒปใƒปใ€‚<br> ๅŽŸๅ› ใจใ—ใฆใฏใ€ๅ†่ตทๅ‘ผใณๅ‡บใ—ๆกไปถใŒๆœ€้ฉๅŒ–ใ•ใ‚Œใฆใ„ใชใ‹ใฃใŸใ‚Šใ™ใ‚‹ใจใ“ใ‚ใงใ—ใ‚‡ใ†ใ‹ใ€‚<br> ๏ผˆๅ‘ผใฐใชใใฆใ„ใ„ๅ†ๅธฐๅ‘ผใณๅ‡บใ—ใ‚’ใ—ใฆใ„ใ‚‹็ฎ‡ๆ‰€ใŒใ‚ใ‚‹๏ผ‰<br> ใใ‚Œใงใ‚‚ใ€่จˆ็ฎ—้‡ใฎๅข—ใˆๆ–นใฏใ€ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆใ‚ˆใ‚Šใ‹ใชใ‚Š้…ใ„ใฎใŒ่ฆ‹ใฆๅ–ใ‚Œใพใ™ใ€‚<br> <br></p> </div> </div> <div class="sect3"> <h4 id="__m">ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒใŒๅคงใใใชใ‚‹ๅ ดๅˆ(mใŒๅข—ใˆใ‚‹ๅ ดๅˆ)</h4> <div class="paragraph"> <p>ๆฌกใซใ€ใƒ‡ใƒผใ‚ฟใฎๆ•ฐnใ‚’ๅ›บๅฎš(n=100)ใ—ใฆใ€ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒmใ‚’ๅคงใใใ—ใฆใฟใพใ™ใ€‚<br></p> </div> <table class="tableblock frame-all grid-all spread"> <caption class="title">Table 2. ่จˆ็ฎ—ๆ™‚้–“(s) , n = 100</caption> <colgroup> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top"></th> <th class="tableblock halign-left valign-top">m=100</th> <th class="tableblock halign-left valign-top">m=1000</th> <th class="tableblock halign-left valign-top">m=10000</th> <th class="tableblock halign-left valign-top">m=100000</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0003309</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002930</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0003278</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002920</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0000350</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0000579</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0004789</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0067119</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002470</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002210</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002301</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">0.0002169</p></td> </tr> </tbody> </table> <div class="paragraph"> <p><strong>ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</strong>ใจ<strong>ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</strong>ใฏ<strong>ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒmใซไพๅญ˜ใ—ใฆใ„ใชใ„</strong>ใ“ใจใŒ่ฆ‹ใฆๅ–ใ‚Œใพใ™ใ€‚<br> <br> ใพใŸใ€<strong>ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</strong>ใ ใ‘m=1000~100000ใฎ้–“ใงๅคงไฝ“10ๅ€ใšใคๅข—ใˆใฆใ„ใฃใฆใ„ใ‚‹ใ“ใจใŒๅˆ†ใ‹ใ‚Šใพใ™ใ€‚<br> <strong><em>O(m + n)</em></strong>ใฃใฝใ„ใงใ™ใญ๏ผ<br></p> </div> </div> </div> </div> <div class="sect1"> <h2 id="___3">ใƒกใƒขใƒชไฝฟ็”จ้‡ใซใคใ„ใฆ</h2> <div class="sectionbody"> <div class="paragraph"> <p>็ฉบ้–“่จˆ็ฎ—้‡ใฏใใ‚Œใžใ‚Œใ€<br> <br> ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ๏ผš ็ฉบ้–“่จˆ็ฎ—้‡ <strong><em>O(n)</em></strong><br> ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ๏ผš ็ฉบ้–“่จˆ็ฎ—้‡ <strong><em>O(m + n)</em></strong><br> ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ๏ผš ็ฉบ้–“่จˆ็ฎ—้‡ <strong><em>O(n)</em></strong> <br></p> </div> <div class="paragraph"> <p>ใงใ—ใŸใ€‚<br> <br> ใƒกใƒขใƒชไฝฟ็”จ้‡ใ‚’่จˆๆธฌใ™ใ‚‹ใฎใฏ้›ฃใ—ใ„ใฎใงใ™ใŒใ€phpใงใฏใ–ใฃใใ‚Šๅ›ณใ‚‹ใŸใ‚ใซ<br> <code>memory_get_peak_usage()</code>ใจ<code>memory_get_usage()</code>ใฎๅทฎใ‚’ไฝฟใฃใฆ่จˆๆธฌใ—ใพใ—ใŸใ€‚<br> ่จˆ็ฎ—ใฎๅ‰ๅพŒใงๅข—ใˆใŸใƒกใƒขใƒชๅ‰ฒใ‚Šๅฝ“ใฆ้‡ใŒๅˆ†ใ‹ใ‚Šใพใ™ใ€‚<br> ใƒŽใ‚คใ‚บใŒๅคšใ„ใฎใงๆญฃ็ขบใงใฏใชใ„ใงใ™ใŒใ€ๅคงไฝ“ใฎๅข—ใˆๆ–นใฏใคใ‹ใ‚ใ‚‹ใ‚“ใ˜ใ‚ƒใชใ„ใงใ—ใ‚‡ใ†ใ‹ใ€‚<br></p> </div> <div class="sect3"> <h4 id="__n_2">ใƒ‡ใƒผใ‚ฟใฎๆ•ฐใŒๅข—ใˆใ‚‹ๅ ดๅˆ(nใŒๅข—ใˆใ‚‹ๅ ดๅˆ)</h4> <div class="paragraph"> <p>ใพใšใฏใ˜ใ‚ใซใ€ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒmใ‚’ๅ›บๅฎš(m=100)ใ—ใฆใ€ใƒ‡ใƒผใ‚ฟใฎๆ•ฐใ‚’ๅข—ใ‚„ใ—ใŸใจใใซๅ‰ฒๅฝ“ใฆใƒกใƒขใƒชใŒใฉใ†ๅข—ใˆใ‚‹ใ‹่ฆ‹ใฆใฟใพใ—ใ‚‡ใ†<br></p> </div> <table class="tableblock frame-all grid-all spread"> <caption class="title">Table 3. ใƒกใƒขใƒชไฝฟ็”จ้‡(byte) , m = 100</caption> <colgroup> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top"></th> <th class="tableblock halign-left valign-top">n=100</th> <th class="tableblock halign-left valign-top">n=1000</th> <th class="tableblock halign-left valign-top">n=10000</th> <th class="tableblock halign-left valign-top">n=100000</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36920</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">528440</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">4198480</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">45168</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">536688</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">4206728</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">95784</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">1112040</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">8477032</p></td> </tr> </tbody> </table> <div class="paragraph"> <p><strong>ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</strong>ใจ<strong>ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</strong>ใฏใปใผๅŒใ˜ๅข—ใˆๆ–นใ‚’ใ—ใฆใ„ใพใ™ใ€‚<br> n=1000~100000ใฎ้–“ใงๅคงไฝ“10ๅ€ใšใคๅข—ใˆใฆใ„ใพใ™ใ€‚<br> <strong><em>O(n)</em></strong>ใจใ‹<strong><em>O(m+n)</em></strong> ใฃใฝใ„ใงใ™ใญใ€‚<br> ๅฐ‘ใ—ไธๅฎ‰ๅฎšใชใฎใงใ‚‚ใ†ๅฐ‘ใ—ๆง˜ๅญใ‚’ใฟใŸใ‹ใฃใŸใฎใงใ™ใŒใ€ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆใฏใƒ‡ใƒผใ‚ฟๆ•ฐใŒใ“ใ‚ŒไปฅไธŠๅข—ใˆใ‚‹ใจ่จˆ็ฎ—ๆ™‚้–“ใŒใชใ‹ใชใ‹ใฎใ‚‚ใฎใ ใฃใŸใฎใง่ซฆใ‚ใพใ—ใŸใ€‚<br> <br> <strong>ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</strong>ใ‚‚ใ€ไป–ใฎ2ใคใซๆฏ”ในใฆใƒกใƒขใƒชใŒๅคšใ„ใ‚ˆใ†ใซ่ฆ‹ใˆใพใ™ใŒใ€ๅข—ใˆๆ–นใ‚’่ฆ‹ใ‚‹ใจ10ๅ€ใšใคๅคงใใใชใฃใฆใŠใ‚Šใ€็ตๅฑ€ <strong><em>O(n)</em></strong>ใฃใฝใ„ใงใ™ใญใ€‚<br> ่จˆ็ฎ—้€šใ‚Šใงใ—ใŸใ€‚<br></p> </div> </div> <div class="sect3"> <h4 id="__m_2">ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒใŒๅคงใใใชใ‚‹ๅ ดๅˆ(mใŒๅข—ใˆใ‚‹ๅ ดๅˆ)</h4> <div class="paragraph"> <p>ๆฌกใซใ€ใƒ‡ใƒผใ‚ฟใฎๆ•ฐnใ‚’ๅ›บๅฎš(n=100)ใ—ใฆใ€ใƒ‡ใƒผใ‚ฟใฎๅ–ใ‚Šใ†ใ‚‹็ฏ„ๅ›ฒmใ‚’ๅข—ใ‚„ใ—ใฆใฟใพใ—ใŸใ€‚<br></p> </div> <table class="tableblock frame-all grid-all spread"> <caption class="title">Table 4. ใƒกใƒขใƒชไฝฟ็”จ้‡(byte) , n = 100</caption> <colgroup> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> <col style="width: 20%;"> </colgroup> <thead> <tr> <th class="tableblock halign-left valign-top"></th> <th class="tableblock halign-left valign-top">m=100</th> <th class="tableblock halign-left valign-top">m=1000</th> <th class="tableblock halign-left valign-top">m=10000</th> <th class="tableblock halign-left valign-top">m=100000</th> </tr> </thead> <tbody> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">45168</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">536688</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">4206728</p></td> </tr> <tr> <td class="tableblock halign-left valign-top"><p class="tableblock">ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">36544</p></td> </tr> </tbody> </table> <div class="paragraph"> <p>phpใฎๅŸบๆœฌไฝฟ็”จๆ–™ใŒ36500byteใใ‚‰ใ„ไฝฟใ†ใฎใฏ่‰ฏใ„ใจใ—ใฆใ€<strong>ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆใ ใ‘</strong> m=1000~100000ใฎ้–“ใงๅคงไฝ“10ๅ€ใšใคๅข—ใˆใฆใ„ใใฎใŒๅˆ†ใ‹ใ‚Šใพใ—ใŸใ€‚<br> <strong><em>O(m+n)</em></strong>ใฃใฝใ„ใงใ™ใญใ€‚<br> ใพใŸใ€<strong>ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ</strong>ใจ<strong>ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ</strong>ใฏ<strong>ใƒ‡ใƒผใ‚ฟใฎ็ฏ„ๅ›ฒmใซใฏไพๅญ˜ใ—ใฆใ„ใชใ„</strong>ใ“ใจใ‚‚ๅˆ†ใ‹ใ‚Šใพใ™ใ€‚<br> ใฉใกใ‚‰ใ‚‚่จˆ็ฎ—้€šใ‚Šใ€ใจใ„ใฃใŸใจใ“ใ‚ใงใ—ใ‚‡ใ†ใ‹ใ€‚<br> <br></p> </div> </div> </div> </div> <div class="sect1"> <h2 id="___4">ใพใจใ‚</h2> <div class="sectionbody"> <div class="paragraph"> <p>ๅ…จไฝ“ใจใ—ใฆใ€็†่ซ–ไธŠใฎๅข—ใˆๆ–นใซใชใ‹ใชใ‹่ฟ‘ใ„ๅฎŸๆธฌๅ€คใŒๅ‡บใŸใ‚“ใ˜ใ‚ƒใชใ„ใงใ—ใ‚‡ใ†ใ‹ใ€‚<br> <br> ใฟใชใ•ใ‚“ใ‚‚ใ€ใ‚จใƒณใ‚ธใƒ‹ใ‚ขใงใ‚ใ‚Œใฐ<br> <strong>ใ€Œใจใ‚Šใ‚ใˆใšๅ‹•ใ‹ใ—ใฆใฟใŸใ‘ใฉ็ตๆžœใŒ่ฟ”ใฃใฆใ“ใชใ„ใ€‚ใ‚ใจ1ๅˆ†ใง็ต‚ใ‚ใ‚‹ใ‹ใ‚‚ใ—ใ‚Œใชใ„ใ—ใ€1ๅนดใ‹ใ‚‚ใ—ใ‚Œใชใ„ใ€‚ใ„ใคใพใงๅพ…ใฆใฐใ„ใ„ใ‚“ใ ๏ผŸใ€</strong><br> ใฟใŸใ„ใชๆ™‚ใ‚ใ‚Šใพใ™ใ‚ˆใญ๏ผŸ<br></p> </div> <div class="paragraph"> <p>ใ‚ใ‚‰ใ‹ใ˜ใ‚ใƒ—ใƒญใ‚ฐใƒฉใƒ ใฎ่จˆ็ฎ—้‡ใŒใ‚ใ‹ใฃใฆใ„ใ‚‹ใจใ€ใƒ‡ใƒผใ‚ฟๆ•ฐใ ใ‘่ฆ‹ใ‚Œใฐใ€Œๆ•ฐๆ™‚้–“ใ€ใชใฎใ‹ใ€Œๆ•ฐๆ—ฅใ€ใชใฎใ‹ใ€Œๆ•ฐๅนดใ€ใชใฎใ‹ใใ‚‰ใ„ใฏๅคงไฝ“ๅˆ†ใ‹ใ‚‹ใฎใงใ™ใ€‚ <br> ใ™ใ”ใ„๏ผ<br> <br> ใพใŸใ€<strong><em>O(n)</em></strong>ใฎใ‚ˆใ†ใชๆ›ธใๆ–นใ‚’<strong>ใ‚ชใƒผใƒ€ใƒผ่จ˜ๆณ•</strong>ใ‚„<strong>ใƒ“ใƒƒใ‚ฐใ‚ชใƒผ่จ˜ๆณ•</strong>ใจใ„ใฃใŸใ‚Šใ™ใ‚‹ใฎใงใ™ใŒใ€ใ“ใ‚Œใ‚’ใ‚ใ‹ใฃใฆใ‚‹ใจ<br> ใ€Œใใฎใ‚ขใƒซใ‚ดใƒชใ‚บใƒ ใฃใฆใฉใ‚Œใใ‚‰ใ„ๆ—ฉใ„ใฎ๏ผŸใ€<br> ใ€Œใ‚จใƒŒใƒญใ‚ฐใ‚จใƒŒใ‚ชใƒผใƒ€ใƒผใ ใœ๏ผไปŠใพใงใฎใ‚จใƒŒใƒ‹ใ‚ธใƒงใ‚ฆใ‚ชใƒผใƒ€ใƒผใจใฏๆฏ”ใน็‰ฉใซใชใ‚‰ใชใ„ใœ๏ผใ€<br> ใฟใŸใ„ใชไผš่ฉฑใŒใงใใ‚‹ใ‚ใ‘ใงใ™ใญใ€‚<br> ใ™ใ”ใ„๏ผ๏ผ<br> <br> ่ˆˆๅ‘ณใ‚ใ‚‹ๆ–นใฏใ€ใœใฒ่‰ฒใ€…่ชฟในใฆใฟใฆใใ ใ•ใ„ใ€‚<br> ใ“ใกใ‚‰ใ‹ใ‚‰ใฏไปฅไธŠใงใ™ใ€‚<br></p> </div> <div class="sect2"> <h3 id="___5">ไป˜้Œฒ</h3> <div class="paragraph"> <p>ใ‚ฝใƒผใ‚นใ‚ณใƒผใƒ‰ใฏใ“ใกใ‚‰ใ€‚ GitHubใฏใ“ใกใ‚‰ใ€‚ <a href="https://github.com/bigen1925/complexity_of_sort_algorithm" class="bare">https://github.com/bigen1925/complexity_of_sort_algorithm</a></p> </div> <div class="listingblock"> <div class="content"> <pre class="highlight"><code class="language-php" data-lang="php">&lt;?php ////////////// // Usage // Call from command line // $ php sort.php &lt;number_of_data&gt; &lt;max_range_of_data&gt; &lt;kind_of_sort_method&gt; // Sample: $ php sort.php 1000 100 bubble ////////////// // ใƒ‡ใƒผใ‚ฟใฎๆ•ฐ $length_array = (int)$argv[1] ?: 1000; // ใƒ‡ใƒผใ‚ฟใฎใจใ‚Šใ†ใ‚‹ๅ€คใฎไธŠ้™ $max_range = (int)$argv[2] ?: 100; // ใ‚ฝใƒผใƒˆใ‚ขใƒซใ‚ดใƒชใ‚บใƒ  $sort_method = $argv[3] ?: "all"; // ่จˆๆธฌ main($length_array, $max_range, $sort_method); function main($length_array, $max_range, $sort_method) { // 1~max_rangeใพใงใฎๆ•ฐๅญ—ใ‹ใ‚‰ๆˆใ‚‹ใ€ใƒฉใƒณใƒ€ใƒ ใช้ †ๅบใฎๆ•ฐๅˆ—ใ‚’็”Ÿๆˆ $array = array(); for ($i=0; $i &lt; $length_array; $i++) { $array[] = rand(1, $max_range); } // ๅˆๆœŸใฎๅ‰ฒๅฝ“ใƒกใƒขใƒช $initial_memory_usage = memory_get_usage(); if ($sort_method === "all" || $sort_method === "bubble") { $time_start = microtime(true); bubbleSort($array); $time = microtime(true) - $time_start; echo "bubbleSort:: {$time}s\n"; } if ($sort_method === "all" || $sort_method === "buckets") { $time_start = microtime(true); bucketsSort($array, $max_range); $time = microtime(true) - $time_start; echo "bucketsSort:: {$time}s\n"; } if ($sort_method === "all" || $sort_method === "merge") { $time_start = microtime(true); mergeSort($array); $time = microtime(true) - $time_start; echo "mergeSort:: {$time}s\n"; } // ใƒ—ใƒญใ‚ฐใƒฉใƒ ๅฎŸ่กŒไธญใซ่ฟฝๅŠ ใงๅ‰ฒใ‚Šๅฝ“ใฆใ‚‰ใ‚ŒใŸใƒกใƒขใƒช้‡ $used_memory = memory_get_peak_usage() - $initial_memory_usage; echo "used_memory:: {$used_memory}\n"; } // ใƒใƒ–ใƒซใ‚ฝใƒผใƒˆ // @param array @array ใ‚ฝใƒผใƒˆใ—ใŸใ„่‡ช็„ถๆ•ฐ้…ๅˆ— // @return array ใ‚ฝใƒผใƒˆๆธˆใฟใฎ้…ๅˆ— function bubbleSort(array $array) { $length = count($array); for ($i=0; $i &lt; $length; $i++) { for ($j=0; $j &lt; $length - $i - 1; $j++) { if ($array[$j] &gt; $array[$j + 1]) { $temp = $array[$j]; $array[$j] = $array[$j + 1]; $array[$j + 1] = $temp; } } } return $array; } // ใƒใ‚ฑใƒ„ใ‚ฝใƒผใƒˆ // @param array $array ใ‚ฝใƒผใƒˆใ—ใŸใ„่‡ช็„ถๆ•ฐ้…ๅˆ— // @param integer $max_range ใƒ‡ใƒผใ‚ฟใฎใจใ‚Šใ†ใ‚‹ๆœ€ๅคงๅ€ค // @return array ใ‚ฝใƒผใƒˆๆธˆใฟใฎ้…ๅˆ— function bucketsSort(array $array, $max_range) { $length = count($array); $buckets = array_fill(1, $max_range, 0); $sorted_array = array(); foreach ($array as $value) { $buckets[$value]++; } foreach ($buckets as $value =&gt; $count) { for ($i = 0; $i &lt; $count; $i++) { $sorted_array[] = $value; } } return $sorted_array; } // ใƒžใƒผใ‚ธใ‚ฝใƒผใƒˆ // @param array $array ใ‚ฝใƒผใƒˆใ—ใŸใ„่‡ช็„ถๆ•ฐ้…ๅˆ— // @return array ใ‚ฝใƒผใƒˆๆธˆใฟ้…ๅˆ— function mergeSort(array $array) { $length = count($array); $sorted_array = array(); if ($length &gt; 1) { $mid_index = floor(($length + 0.5) / 2); $left_array = array_slice($array, 0, $mid_index); $right_array = array_slice($array, $mid_index); $left_array = mergeSort($left_array); $right_array = mergeSort($right_array); while (count($left_array) || count($right_array)) { if (count($left_array) == 0) { $sorted_array[] = array_shift($right_array); } elseif (count($right_array) == 0) { $sorted_array[] = array_shift($left_array); } elseif ($left_array[0] &gt; $right_array[0]) { $sorted_array[] = array_shift($right_array); } else { $sorted_array[] = array_shift($left_array); } } } else { $sorted_array = $array; } return $sorted_array; }</code></pre> </div> </div> </div> </div> </div> </section> </article> <footer class="footer"> <span class="footer__copyright">&copy; 2018. All rights reserved.</span> <span class="footer__copyright"><a href="http://uno.daleanthony.com" title="link to page for Uno Ghost theme">Uno theme</a> by <a href="http://daleanthony.com" title="link to website for Dale-Anthony">Dale-Anthony</a></span> <span class="footer__copyright">Proudly published with <a href="http://hubpress.io" title="link to Hubpress website">Hubpress</a></span> </footer> </div> </div> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js?v="></script> <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js?v="></script> <script type="text/javascript"> jQuery( document ).ready(function() { // change date with ago jQuery('ago.ago').each(function(){ var element = jQuery(this).parent(); element.html( moment(element.text()).fromNow()); }); }); hljs.initHighlightingOnLoad(); </script> <script type="text/javascript" src="//tech.innovation.co.jp/themes/uno/assets/js/main.js?v=1.0.0"></script> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-105881090-1', 'auto'); ga('send', 'pageview'); </script> </body> </html>
innovation-jp/innovation-jp.github.io
2018/06/25/Introduction-of-Computational-Complexity-2.html
HTML
mit
37,551
### Tree `flatten` Write a procedure called `tree->list` that completely flattens a tree to a list Example usage: ```racket (tree->list '[1 2 [3 [4]] [5]]) ;;=> '[1 2 3 4 5] ```
expede/teaching-fp
lesson-plan/week-04/exercises.md
Markdown
mit
179
.float-btn-wrapper { width: 75; height: 75; } .float-btn-shadow { width: 56; height: 56; } .float-btn { background-color: #FF69B4; border-radius: 28; width: 56; height: 56; text-align: center; vertical-align: middle; } .float-btn.down{ animation-name: down; animation-duration: 0.2s; animation-fill-mode: forwards; } .float-btn-text { color: #ffffff; font-size: 36; margin-top: -3; margin-right: -1; } @keyframes down { from { background-color: #FF69B4 } to { background-color: #FFA9B4 } }
shalomscott/urgent
app/shared/fab/fab.component.css
CSS
mit
572
import re import warnings import ctds from .base import TestExternalDatabase from .compat import PY3, PY36, unicode_ class TestTdsParameter(TestExternalDatabase): def test___doc__(self): self.assertEqual( ctds.Parameter.__doc__, '''\ Parameter(value, output=False) Explicitly define a parameter for :py:meth:`.callproc`, :py:meth:`.execute`, or :py:meth:`.executemany`. This is necessary to indicate whether a parameter is *SQL* `OUTPUT` or `INPUT/OUTPUT` parameter. :param object value: The parameter's value. :param bool output: Is the parameter an output parameter. ''' ) def test_parameter(self): param1 = ctds.Parameter(b'123', output=True) self.assertEqual(param1.value, b'123') self.assertTrue(isinstance(param1, ctds.Parameter)) param2 = ctds.Parameter(b'123') self.assertEqual(param1.value, b'123') self.assertEqual(type(param1), type(param2)) self.assertTrue(isinstance(param2, ctds.Parameter)) def test___repr__(self): for parameter, expected in ( ( ctds.Parameter(b'123', output=True), "ctds.Parameter(b'123', output=True)" if PY3 else "ctds.Parameter('123', output=True)" ), ( ctds.Parameter(unicode_('123'), output=False), "ctds.Parameter('123')" if PY3 else "ctds.Parameter(u'123')" ), ( ctds.Parameter(None), "ctds.Parameter(None)" ), ( ctds.Parameter(ctds.SqlVarBinary(b'4321', size=10)), "ctds.Parameter(ctds.SqlVarBinary(b'4321', size=10))" if PY3 else "ctds.Parameter(ctds.SqlVarBinary('4321', size=10))" ) ): self.assertEqual(repr(parameter), expected) def _test__cmp__(self, __cmp__, expected, oper): cases = ( (ctds.Parameter(b'1234'), ctds.Parameter(b'123')), (ctds.Parameter(b'123'), ctds.Parameter(b'123')), (ctds.Parameter(b'123'), ctds.Parameter(b'123', output=True)), (ctds.Parameter(b'123'), ctds.Parameter(b'1234')), (ctds.Parameter(b'123'), b'123'), (ctds.Parameter(b'123'), ctds.Parameter(123)), (ctds.Parameter(b'123'), unicode_('123')), (ctds.Parameter(b'123'), ctds.SqlBinary(None)), (ctds.Parameter(b'123'), 123), (ctds.Parameter(b'123'), None), ) for index, args in enumerate(cases): operation = '[{0}]: {1} {2} {3}'.format(index, repr(args[0]), oper, repr(args[1])) if expected[index] == TypeError: try: __cmp__(*args) except TypeError as ex: regex = ( r"'{0}' not supported between instances of '[^']+' and '[^']+'".format(oper) if not PY3 or PY36 else r'unorderable types: \S+ {0} \S+'.format(oper) ) self.assertTrue(re.match(regex, str(ex)), ex) else: self.fail('{0} did not fail as expected'.format(operation)) # pragma: nocover else: self.assertEqual(__cmp__(*args), expected[index], operation) def test___cmp__eq(self): self._test__cmp__( lambda left, right: left == right, ( False, True, True, False, True, False, not PY3, False, False, False, ), '==' ) def test___cmp__ne(self): self._test__cmp__( lambda left, right: left != right, ( True, False, False, True, False, True, PY3, True, True, True, ), '!=' ) def test___cmp__lt(self): self._test__cmp__( lambda left, right: left < right, ( False, False, False, True, False, TypeError if PY3 else False, TypeError if PY3 else False, TypeError if PY3 else False, TypeError if PY3 else False, TypeError if PY3 else False, ), '<' ) def test___cmp__le(self): self._test__cmp__( lambda left, right: left <= right, ( False, True, True, True, True, TypeError if PY3 else False, TypeError if PY3 else True, TypeError if PY3 else False, TypeError if PY3 else False, TypeError if PY3 else False, ), '<=' ) def test___cmp__gt(self): self._test__cmp__( lambda left, right: left > right, ( True, False, False, False, False, TypeError if PY3 else True, TypeError if PY3 else False, TypeError if PY3 else True, TypeError if PY3 else True, TypeError if PY3 else True, ), '>' ) def test___cmp__ge(self): self._test__cmp__( lambda left, right: left >= right, ( True, True, True, False, True, TypeError if PY3 else True, TypeError if PY3 else True, TypeError if PY3 else True, TypeError if PY3 else True, TypeError if PY3 else True, ), '>=' ) def test_typeerror(self): for case in (None, object(), 123, 'foobar'): self.assertRaises(TypeError, ctds.Parameter, case, b'123') self.assertRaises(TypeError, ctds.Parameter) self.assertRaises(TypeError, ctds.Parameter, output=False) for case in (None, object(), 123, 'foobar'): self.assertRaises(TypeError, ctds.Parameter, b'123', output=case) def test_reuse(self): with self.connect() as connection: with connection.cursor() as cursor: for value in ( None, 123456, unicode_('hello world'), b'some bytes', ): for output in (True, False): parameter = ctds.Parameter(value, output=output) for _ in range(0, 2): # Ignore warnings generated due to output parameters # used with result sets. with warnings.catch_warnings(record=True): cursor.execute( ''' SELECT :0 ''', (parameter,) ) self.assertEqual( [tuple(row) for row in cursor.fetchall()], [(value,)] )
zillow/ctds
tests/test_tds_parameter.py
Python
mit
7,779
๏ปฟusing System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.RazorPages; namespace HolisticWare.Ph4ct3x.Server.Pages.Ph4ct3x.Communication { public class InstantMessagingChatModel : PageModel { public void OnGet() { } } }
moljac/Ph4ct3x
samples/Clients/HolisticWare.Ph4ct3x.Server.ASPnet.UI.RazorPages.shared/Pages/Ph4ct3x/Communication/InstantMessagingChat.cshtml.cs
C#
mit
361
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_H_ #define MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_H_ #include <list> #include <memory> #include BOSS_WEBRTC_U_api__rtp_headers_h //original-code:"api/rtp_headers.h" // NOLINT(build/include) #include BOSS_WEBRTC_U_common_types_h //original-code:"common_types.h" // NOLINT(build/include) #include BOSS_WEBRTC_U_rtc_base__constructormagic_h //original-code:"rtc_base/constructormagic.h" #include BOSS_WEBRTC_U_typedefs_h //original-code:"typedefs.h" // NOLINT(build/include) namespace webrtc { class RtpHeaderParser; namespace test { // Class for handling RTP packets in test applications. class Packet { public: // Creates a packet, with the packet payload (including header bytes) in // |packet_memory|. The length of |packet_memory| is |allocated_bytes|. // The new object assumes ownership of |packet_memory| and will delete it // when the Packet object is deleted. The |time_ms| is an extra time // associated with this packet, typically used to denote arrival time. // The first bytes in |packet_memory| will be parsed using |parser|. Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms, const RtpHeaderParser& parser); // Same as above, but with the extra argument |virtual_packet_length_bytes|. // This is typically used when reading RTP dump files that only contain the // RTP headers, and no payload (a.k.a RTP dummy files or RTP light). The // |virtual_packet_length_bytes| tells what size the packet had on wire, // including the now discarded payload, whereas |allocated_bytes| is the // length of the remaining payload (typically only the RTP header). Packet(uint8_t* packet_memory, size_t allocated_bytes, size_t virtual_packet_length_bytes, double time_ms, const RtpHeaderParser& parser); // The following two constructors are the same as above, but without a // parser. Note that when the object is constructed using any of these // methods, the header will be parsed using a default RtpHeaderParser object. // In particular, RTP header extensions won't be parsed. Packet(uint8_t* packet_memory, size_t allocated_bytes, double time_ms); Packet(uint8_t* packet_memory, size_t allocated_bytes, size_t virtual_packet_length_bytes, double time_ms); virtual ~Packet(); // Parses the first bytes of the RTP payload, interpreting them as RED headers // according to RFC 2198. The headers will be inserted into |headers|. The // caller of the method assumes ownership of the objects in the list, and // must delete them properly. bool ExtractRedHeaders(std::list<RTPHeader*>* headers) const; // Deletes all RTPHeader objects in |headers|, but does not delete |headers| // itself. static void DeleteRedHeaders(std::list<RTPHeader*>* headers); const uint8_t* payload() const { return payload_; } size_t packet_length_bytes() const { return packet_length_bytes_; } size_t payload_length_bytes() const { return payload_length_bytes_; } size_t virtual_packet_length_bytes() const { return virtual_packet_length_bytes_; } size_t virtual_payload_length_bytes() const { return virtual_payload_length_bytes_; } const RTPHeader& header() const { return header_; } void set_time_ms(double time) { time_ms_ = time; } double time_ms() const { return time_ms_; } bool valid_header() const { return valid_header_; } private: bool ParseHeader(const RtpHeaderParser& parser); void CopyToHeader(RTPHeader* destination) const; RTPHeader header_; std::unique_ptr<uint8_t[]> payload_memory_; const uint8_t* payload_; // First byte after header. const size_t packet_length_bytes_; // Total length of packet. size_t payload_length_bytes_; // Length of the payload, after RTP header. // Zero for dummy RTP packets. // Virtual lengths are used when parsing RTP header files (dummy RTP files). const size_t virtual_packet_length_bytes_; size_t virtual_payload_length_bytes_; double time_ms_; // Used to denote a packet's arrival time. bool valid_header_; // Set by the RtpHeaderParser. RTC_DISALLOW_COPY_AND_ASSIGN(Packet); }; } // namespace test } // namespace webrtc #endif // MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_H_
koobonil/Boss2D
Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_coding/neteq/tools/packet.h
C
mit
4,769
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <title>Cross-correlations: GlobalVariables Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Cross-correlations &#160;<span id="projectnumber">1.0</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.8.0 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class&#160;List</span></a></li> <li><a href="classes.html"><span>Class&#160;Index</span></a></li> <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li> <li><a href="functions.html"><span>Class&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">GlobalVariables Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include &lt;<a class="el" href="global__variables_8h_source.html">global_variables.h</a>&gt;</code></p> <p><a href="class_global_variables-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a4631d1ecf5fe11e440926a3464028eb0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a4631d1ecf5fe11e440926a3464028eb0">GlobalVariables</a> ()</td></tr> <tr class="memitem:aa30e576f3563c41b63177a5ae93b9aab"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#aa30e576f3563c41b63177a5ae93b9aab">c</a> () const </td></tr> <tr class="memitem:ab8932c7446ddcc1bbf9f19d07ec44424"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ab8932c7446ddcc1bbf9f19d07ec44424">correlation_file_name</a> () const </td></tr> <tr class="memitem:ab5102be8fa70c050ab20349e47fa388d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ab5102be8fa70c050ab20349e47fa388d">h</a> () const </td></tr> <tr class="memitem:a1ae6b307005b7da0849b79173ab5b62d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a1ae6b307005b7da0849b79173ab5b62d">h0</a> () const </td></tr> <tr class="memitem:a7b251a0da7026b671d8a68279cab4ae7"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a7b251a0da7026b671d8a68279cab4ae7">lya_spectra_catalog</a> () const </td></tr> <tr class="memitem:a7ef593cd3a148af75812f2e8479595ae"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a7ef593cd3a148af75812f2e8479595ae">lya_spectra_catalog_name</a> () const </td></tr> <tr class="memitem:ac337ea3586fbb1346240ad25c696f6f0"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ac337ea3586fbb1346240ad25c696f6f0">lya_spectra_dir</a> () const </td></tr> <tr class="memitem:a2893eb2c29a895d604ac471c320f4a39"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a2893eb2c29a895d604ac471c320f4a39">lya_wl</a> () const </td></tr> <tr class="memitem:ae3688afd60bb03fd4e788d27af1ac8fe"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ae3688afd60bb03fd4e788d27af1ac8fe">max_pi</a> () const </td></tr> <tr class="memitem:a13694704b2bb849bae0d46e577246fb0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a13694704b2bb849bae0d46e577246fb0">max_sigma</a> () const </td></tr> <tr class="memitem:aae93df7713a9e59706c8d8cd03e62a8a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#aae93df7713a9e59706c8d8cd03e62a8a">neighbours_max_distance</a> () const </td></tr> <tr class="memitem:a7481f788f94ed1bdb590057d7a0f48ca"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a7481f788f94ed1bdb590057d7a0f48ca">normalized_correlation</a> () const </td></tr> <tr class="memitem:a8df4bf4e1962af98f59cd43947188509"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a8df4bf4e1962af98f59cd43947188509">num_bins</a> () const </td></tr> <tr class="memitem:a08ee1fac0ba1c1eccb8fd405c1f9cb1c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a08ee1fac0ba1c1eccb8fd405c1f9cb1c">num_pi_bins</a> () const </td></tr> <tr class="memitem:a09a6fd5da6b9c5a3a9aa63bee7e4466f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a09a6fd5da6b9c5a3a9aa63bee7e4466f">num_plates</a> () const </td></tr> <tr class="memitem:a054d4cf825a69d3461475a3590799774"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a054d4cf825a69d3461475a3590799774">num_points_interpolation</a> () const </td></tr> <tr class="memitem:a5ccd02c696d64e9c33fc6a7e1ba8b9ef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a5ccd02c696d64e9c33fc6a7e1ba8b9ef">num_sigma_bins</a> () const </td></tr> <tr class="memitem:ab3641ef310a60651c562a7dc8864d0e9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ab3641ef310a60651c562a7dc8864d0e9">objects_catalog</a> () const </td></tr> <tr class="memitem:a8412ac07504633c4abd23702b4d4d823"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a8412ac07504633c4abd23702b4d4d823">objects_catalog_name</a> () const </td></tr> <tr class="memitem:ac10711bcd7293ce5da996b4f5b79de2b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ac10711bcd7293ce5da996b4f5b79de2b">pairs_file_name</a> () const </td></tr> <tr class="memitem:abf1a6505c3dab27b4dc58fc1634e70e7"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#abf1a6505c3dab27b4dc58fc1634e70e7">plate_neighbours</a> () const </td></tr> <tr class="memitem:a825d2ce1a68bbdca6395aa10690e3407"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a825d2ce1a68bbdca6395aa10690e3407">plots</a> () const </td></tr> <tr class="memitem:a03e3e8cbe112ab714544e57f541a693f"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a03e3e8cbe112ab714544e57f541a693f">pwd</a> () const </td></tr> <tr class="memitem:a53b4346935148918029cc1a2daaad80c"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a53b4346935148918029cc1a2daaad80c">results</a> () const </td></tr> <tr class="memitem:aba979c1ae01246184e65e4034007f0ca"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#aba979c1ae01246184e65e4034007f0ca">step_pi</a> () const </td></tr> <tr class="memitem:a0a1e6c768c7323c1da081db7c375060e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a0a1e6c768c7323c1da081db7c375060e">step_sigma</a> () const </td></tr> <tr class="memitem:ae01eadf8a6614c2b8f5e5a5da5b0a7c3"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ae01eadf8a6614c2b8f5e5a5da5b0a7c3">wm</a> () const </td></tr> <tr class="memitem:a09e2005546be6c1147d898fbd9f040e0"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a09e2005546be6c1147d898fbd9f040e0">z_max</a> () const </td></tr> <tr class="memitem:ad2dee77ee4d577e3a9575184089735ac"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ad2dee77ee4d577e3a9575184089735ac">z_max_interpolation</a> () const </td></tr> <tr class="memitem:ac6ed0b46b3ab483ba201b193b0953905"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#ac6ed0b46b3ab483ba201b193b0953905">z_min</a> () const </td></tr> <tr class="memitem:a3f167911da6733d4f4ebf58949d24c02"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_global_variables.html#a3f167911da6733d4f4ebf58949d24c02">z_min_interpolation</a> () const </td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>global _variables.h Purpose: This file defines the class <a class="el" href="class_global_variables.html">GlobalVariables</a>. This class contains the constant variables which are used in a "global" sense</p> <dl class="section author"><dt>Author:</dt><dd>Ignasi Pรฉrez-Rร fols (<a href="#" onclick="location.href='mai'+'lto:'+'ipr'+'af'+'ols'+'@i'+'cc.'+'ub'+'.ed'+'u'; return false;">ipraf<span style="display: none;">.nosp@m.</span>ols@<span style="display: none;">.nosp@m.</span>icc.u<span style="display: none;">.nosp@m.</span>b.ed<span style="display: none;">.nosp@m.</span>u</a>) </dd></dl> <dl class="section version"><dt>Version:</dt><dd>1.0 on 17/06/14 </dd></dl> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00025">25</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> </div><hr/><h2>Constructor &amp; Destructor Documentation</h2> <a class="anchor" id="a4631d1ecf5fe11e440926a3464028eb0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="class_global_variables.html#a4631d1ecf5fe11e440926a3464028eb0">GlobalVariables::GlobalVariables</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p><a class="el" href="global__variables_8cpp.html">global_variables.cpp</a> Purpose: This files contains the body for the functions defined in <a class="el" href="global__variables_8h.html">global_variables.h</a></p> <dl class="section author"><dt>Author:</dt><dd>Ignasi Pรฉrez-Rร fols </dd></dl> <dl class="section version"><dt>Version:</dt><dd>1.0 06/17/2014 </dd></dl> <p>EXPLANATION: Cosntructs a <a class="el" href="class_global_variables.html">GlobalVariables</a> instance and initializes all its variables</p> <p>INPUTS: NONE</p> <p>OUTPUTS: NONE</p> <p>CLASSES USED: <a class="el" href="class_global_variables.html">GlobalVariables</a></p> <p>FUNCITONS USED: NONE</p> <p>Definition at line <a class="el" href="global__variables_8cpp_source.html#l00011">11</a> of file <a class="el" href="global__variables_8cpp_source.html">global_variables.cpp</a>.</p> <div class="fragment"><pre class="fragment"> { <span class="comment">//</span> <span class="comment">// general settings</span> <span class="comment">//</span> <span class="comment">//pwd_ = &quot;/Users/iprafols/cross_correlations/&quot;;</span> pwd_ = <span class="stringliteral">&quot;/triforce/iprafols/cross_correlations/&quot;</span>; results_ = pwd_ + <span class="stringliteral">&quot;results2/&quot;</span>; plots_ = pwd_ + <span class="stringliteral">&quot;plots2/&quot;</span>; objects_catalog_ = pwd_ + <span class="stringliteral">&quot;DR11Q_alpha_v0.fits&quot;</span>; objects_catalog_name_ = <span class="stringliteral">&quot;DR11Q_alpha_v0&quot;</span>; pairs_file_name_ = <span class="stringliteral">&quot;qso_spectrum_pairs_plate_&quot;</span>; correlation_file_name_ = results_ + <span class="stringliteral">&quot;correlation_bin_&quot;</span>; normalized_correlation_ = results_ + <span class="stringliteral">&quot;normalized_correlation.dat&quot;</span>; plate_neighbours_ = pwd_ + <span class="stringliteral">&quot;plate_neighbours.dat&quot;</span>; lya_spectra_dir_ = pwd_ + <span class="stringliteral">&quot;spectrum_fits_files/&quot;</span>; <span class="comment">//lya_spectra_catalog_ = pwd_ + &quot;DR11Q_spectra_forest_one_spectrum.ls&quot;;// versiรณ per fer proves</span> lya_spectra_catalog_ = pwd_ + <span class="stringliteral">&quot;DR11Q_spectra_forest_some_spectrum.ls&quot;</span>;<span class="comment">// versiรณ per fer proves</span> <span class="comment">//lya_spectra_catalog_ = pwd_ + &quot;DR11Q_spectra_forest_list.ls&quot;; // versiรณ definitiva</span> lya_spectra_catalog_name_ = <span class="stringliteral">&quot;DR11Q_spectra_forest&quot;</span>; num_plates_ = 2044; <span class="comment">// DR11</span> <span class="comment">//</span> <span class="comment">// Fidutial model</span> <span class="comment">//</span> h0_ = 68.0; h_ = h0_/100.0; wm_ = 0.3; <span class="comment">//</span> <span class="comment">// bin setting</span> <span class="comment">//</span> neighbours_max_distance_ = 3.0*acos(-1.0)/180.0; <span class="comment">// (in radians)</span> max_pi_ = 50.0; <span class="comment">// (in Mpc/h)</span> max_sigma_ = 50.0; <span class="comment">// (in Mpc/h)</span> step_pi_ = 5.0; <span class="comment">// (in Mpc/h)</span> step_sigma_ = 5.0; <span class="comment">// (in Mpc/h)</span> num_pi_bins_ = int(2.0*max_pi_/step_pi_); num_sigma_bins_ = int(max_sigma_/step_sigma_); num_bins_ = num_pi_bins_*num_sigma_bins_; <span class="comment">//</span> <span class="comment">// line and redshift settings</span> <span class="comment">//</span> lya_wl_ = 1215.67; z_min_ = 2.0; z_max_ = 3.5; z_min_interpolation_ = 1.5; z_max_interpolation_ = 4.0; num_points_interpolation_ = 30000; <span class="comment">//</span> <span class="comment">// Some mathematical and physical constants</span> <span class="comment">//</span> c_ = 299792.458; }</pre></div> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aa30e576f3563c41b63177a5ae93b9aab"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#aa30e576f3563c41b63177a5ae93b9aab">GlobalVariables::c</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00038">38</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> c_;} </pre></div> </div> </div> <a class="anchor" id="ab8932c7446ddcc1bbf9f19d07ec44424"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#ab8932c7446ddcc1bbf9f19d07ec44424">GlobalVariables::correlation_file_name</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00041">41</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> correlation_file_name_;} </pre></div> </div> </div> <a class="anchor" id="ab5102be8fa70c050ab20349e47fa388d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#ab5102be8fa70c050ab20349e47fa388d">GlobalVariables::h</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00044">44</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> h_;} </pre></div> </div> </div> <a class="anchor" id="a1ae6b307005b7da0849b79173ab5b62d"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a1ae6b307005b7da0849b79173ab5b62d">GlobalVariables::h0</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00047">47</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> h0_;} </pre></div> </div> </div> <a class="anchor" id="a7b251a0da7026b671d8a68279cab4ae7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a7b251a0da7026b671d8a68279cab4ae7">GlobalVariables::lya_spectra_catalog</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00050">50</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> lya_spectra_catalog_;} </pre></div> </div> </div> <a class="anchor" id="a7ef593cd3a148af75812f2e8479595ae"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a7ef593cd3a148af75812f2e8479595ae">GlobalVariables::lya_spectra_catalog_name</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00053">53</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> lya_spectra_catalog_name_;} </pre></div> </div> </div> <a class="anchor" id="ac337ea3586fbb1346240ad25c696f6f0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#ac337ea3586fbb1346240ad25c696f6f0">GlobalVariables::lya_spectra_dir</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00056">56</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> lya_spectra_dir_;} </pre></div> </div> </div> <a class="anchor" id="a2893eb2c29a895d604ac471c320f4a39"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a2893eb2c29a895d604ac471c320f4a39">GlobalVariables::lya_wl</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00059">59</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> lya_wl_;} </pre></div> </div> </div> <a class="anchor" id="ae3688afd60bb03fd4e788d27af1ac8fe"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#ae3688afd60bb03fd4e788d27af1ac8fe">GlobalVariables::max_pi</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00062">62</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> max_pi_;} </pre></div> </div> </div> <a class="anchor" id="a13694704b2bb849bae0d46e577246fb0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a13694704b2bb849bae0d46e577246fb0">GlobalVariables::max_sigma</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00065">65</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> max_sigma_;} </pre></div> </div> </div> <a class="anchor" id="aae93df7713a9e59706c8d8cd03e62a8a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#aae93df7713a9e59706c8d8cd03e62a8a">GlobalVariables::neighbours_max_distance</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00068">68</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> neighbours_max_distance_;} </pre></div> </div> </div> <a class="anchor" id="a7481f788f94ed1bdb590057d7a0f48ca"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a7481f788f94ed1bdb590057d7a0f48ca">GlobalVariables::normalized_correlation</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00071">71</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> normalized_correlation_;} </pre></div> </div> </div> <a class="anchor" id="a8df4bf4e1962af98f59cd43947188509"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="class_global_variables.html#a8df4bf4e1962af98f59cd43947188509">GlobalVariables::num_bins</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00074">74</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> num_bins_;} </pre></div> </div> </div> <a class="anchor" id="a08ee1fac0ba1c1eccb8fd405c1f9cb1c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="class_global_variables.html#a08ee1fac0ba1c1eccb8fd405c1f9cb1c">GlobalVariables::num_pi_bins</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00077">77</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> num_pi_bins_;} </pre></div> </div> </div> <a class="anchor" id="a09a6fd5da6b9c5a3a9aa63bee7e4466f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="class_global_variables.html#a09a6fd5da6b9c5a3a9aa63bee7e4466f">GlobalVariables::num_plates</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00080">80</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> num_plates_;} </pre></div> </div> </div> <a class="anchor" id="a054d4cf825a69d3461475a3590799774"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="class_global_variables.html#a054d4cf825a69d3461475a3590799774">GlobalVariables::num_points_interpolation</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00083">83</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> num_points_interpolation_;} </pre></div> </div> </div> <a class="anchor" id="a5ccd02c696d64e9c33fc6a7e1ba8b9ef"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int <a class="el" href="class_global_variables.html#a5ccd02c696d64e9c33fc6a7e1ba8b9ef">GlobalVariables::num_sigma_bins</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00086">86</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> num_sigma_bins_;} </pre></div> </div> </div> <a class="anchor" id="ab3641ef310a60651c562a7dc8864d0e9"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#ab3641ef310a60651c562a7dc8864d0e9">GlobalVariables::objects_catalog</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00089">89</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> objects_catalog_;} </pre></div> </div> </div> <a class="anchor" id="a8412ac07504633c4abd23702b4d4d823"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a8412ac07504633c4abd23702b4d4d823">GlobalVariables::objects_catalog_name</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00092">92</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> objects_catalog_name_;} </pre></div> </div> </div> <a class="anchor" id="ac10711bcd7293ce5da996b4f5b79de2b"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#ac10711bcd7293ce5da996b4f5b79de2b">GlobalVariables::pairs_file_name</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00095">95</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> pairs_file_name_;} </pre></div> </div> </div> <a class="anchor" id="abf1a6505c3dab27b4dc58fc1634e70e7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#abf1a6505c3dab27b4dc58fc1634e70e7">GlobalVariables::plate_neighbours</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00098">98</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> plate_neighbours_;} </pre></div> </div> </div> <a class="anchor" id="a825d2ce1a68bbdca6395aa10690e3407"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a825d2ce1a68bbdca6395aa10690e3407">GlobalVariables::plots</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00101">101</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> plots_;} </pre></div> </div> </div> <a class="anchor" id="a03e3e8cbe112ab714544e57f541a693f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a03e3e8cbe112ab714544e57f541a693f">GlobalVariables::pwd</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00104">104</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> pwd_;} </pre></div> </div> </div> <a class="anchor" id="a53b4346935148918029cc1a2daaad80c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="class_global_variables.html#a53b4346935148918029cc1a2daaad80c">GlobalVariables::results</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00107">107</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> results_;} </pre></div> </div> </div> <a class="anchor" id="aba979c1ae01246184e65e4034007f0ca"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#aba979c1ae01246184e65e4034007f0ca">GlobalVariables::step_pi</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00110">110</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> step_pi_;} </pre></div> </div> </div> <a class="anchor" id="a0a1e6c768c7323c1da081db7c375060e"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a0a1e6c768c7323c1da081db7c375060e">GlobalVariables::step_sigma</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00113">113</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> step_sigma_;} </pre></div> </div> </div> <a class="anchor" id="ae01eadf8a6614c2b8f5e5a5da5b0a7c3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#ae01eadf8a6614c2b8f5e5a5da5b0a7c3">GlobalVariables::wm</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00116">116</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> wm_;} </pre></div> </div> </div> <a class="anchor" id="a09e2005546be6c1147d898fbd9f040e0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a09e2005546be6c1147d898fbd9f040e0">GlobalVariables::z_max</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00119">119</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> z_max_;} </pre></div> </div> </div> <a class="anchor" id="ad2dee77ee4d577e3a9575184089735ac"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#ad2dee77ee4d577e3a9575184089735ac">GlobalVariables::z_max_interpolation</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00122">122</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> z_max_interpolation_;} </pre></div> </div> </div> <a class="anchor" id="ac6ed0b46b3ab483ba201b193b0953905"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#ac6ed0b46b3ab483ba201b193b0953905">GlobalVariables::z_min</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00125">125</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> z_min_;} </pre></div> </div> </div> <a class="anchor" id="a3f167911da6733d4f4ebf58949d24c02"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="class_global_variables.html#a3f167911da6733d4f4ebf58949d24c02">GlobalVariables::z_min_interpolation</a> </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="global__variables_8h_source.html#l00128">128</a> of file <a class="el" href="global__variables_8h_source.html">global_variables.h</a>.</p> <div class="fragment"><pre class="fragment">{<span class="keywordflow">return</span> z_min_interpolation_;} </pre></div> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="global__variables_8h_source.html">global_variables.h</a></li> <li><a class="el" href="global__variables_8cpp_source.html">global_variables.cpp</a></li> </ul> </div><!-- contents --> <hr class="footer"/><address class="footer"><small> Generated on Tue Oct 14 2014 09:19:21 for Cross-correlations by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.0 </small></address> </body> </html>
iprafols/cross_correlations
documentation/html/class_global_variables.html
HTML
mit
44,550
#include "Renderer.h" #include "Core/Windows/Window.h" #include <Resources/ResourceCache.h> namespace uut { UUT_MODULE_IMPLEMENT(Renderer) {} Renderer::Renderer() : _screenSize(0) { } Renderer::~Renderer() { } ////////////////////////////////////////////////////////////////////////////// bool Renderer::OnInit() { if (!Super::OnInit()) return false; ModuleInstance<ResourceCache> cache; cache->AddResource(CreateMonoTexture(Color32::White), "white"); cache->AddResource(CreateMonoTexture(Color32::Black), "black"); return true; } void Renderer::OnDone() { } SharedPtr<Texture2D> Renderer::CreateMonoTexture(const Color32& color) { auto tex = CreateTexture(Vector2i(1), TextureAccess::Static); uint32_t* buf = static_cast<uint32_t*>(tex->Lock()); if (buf == nullptr) return nullptr; buf[0] = color.ToInt(); tex->Unlock(); return tex; } }
kolyden/uut-engine
UUT/Video/Renderer.cpp
C++
mit
896
package jnt.scimark2; public class kernel { // each measurement returns approx Mflops public static double measureFFT(int N, double mintime, Random R) { // initialize FFT data as complex (N real/img pairs) double x[] = RandomVector(2*N, R); double oldx[] = NewVectorCopy(x); long cycles = 1; Stopwatch Q = new Stopwatch(); while(true) { Q.start(); for (int i=0; i<cycles; i++) { FFT.transform(x); // forward transform FFT.inverse(x); // backward transform } Q.stop(); if (Q.read() >= mintime) break; cycles *= 2; } // approx Mflops final double EPS = 1.0e-10; if ( FFT.test(x) / N > EPS ) return 0.0; return FFT.num_flops(N)*cycles/ Q.read() * 1.0e-6; } // public static double measureSOR(int N, double min_time, Random R) // { // double G[][] = RandomMatrix(N, N, R); // // //Stopwatch Q = new Stopwatch(); // int cycles=1; // //while(true) // while(cycles <= 32768) // { // //Q.start(); // SOR.execute(1.25, G, cycles); // //Q.stop(); // //if (Q.read() >= min_time) break; // // cycles *= 2; // } // // approx Mflops // //return SOR.num_flops(N, N, cycles) / Q.read() * 1.0e-6; // return SOR.num_flops(N, N, cycles); // } public static double measureSOR(int N, double min_time, Random R) { double G[][] = RandomMatrix(N, N, R); int rep = 10; // 11s @ 594MHz //rep = 75; // 42.5s @ 1026MHz //rep = 150; // 68s @ 1026MHz, this just fully melts PCM, at end of benchmark //rep = 250; // 113s @ 1026MHz //rep = 300; // 126s @ 1026MHz, using this setting in my house, PCM melts fully rep = 75; // 75 short duration // 300 medium duration // 400 long duration int cycles = 2048; for (int i = 0; i < rep; i++) { SOR.execute(1.25, G, cycles); } return SOR.num_flops(N, N, cycles); } public static double measureMonteCarlo(double min_time, Random R) { Stopwatch Q = new Stopwatch(); int cycles=1; while(true) { Q.start(); MonteCarlo.integrate(cycles); Q.stop(); if (Q.read() >= min_time) break; cycles *= 2; } // approx Mflops return MonteCarlo.num_flops(cycles) / Q.read() * 1.0e-6; } public static double measureSparseMatmult(int N, int nz, double min_time, Random R) { // initialize vector multipliers and storage for result // y = A*y; double x[] = RandomVector(N, R); double y[] = new double[N]; // initialize square sparse matrix // // for this test, we create a sparse matrix wit M/nz nonzeros // per row, with spaced-out evenly between the begining of the // row to the main diagonal. Thus, the resulting pattern looks // like // +-----------------+ // +* + // +*** + // +* * * + // +** * * + // +** * * + // +* * * * + // +* * * * + // +* * * * + // +-----------------+ // // (as best reproducible with integer artihmetic) // Note that the first nr rows will have elements past // the diagonal. int nr = nz/N; // average number of nonzeros per row int anz = nr *N; // _actual_ number of nonzeros double val[] = RandomVector(anz, R); int col[] = new int[anz]; int row[] = new int[N+1]; row[0] = 0; for (int r=0; r<N; r++) { // initialize elements for row r int rowr = row[r]; row[r+1] = rowr + nr; int step = r/ nr; if (step < 1) step = 1; // take at least unit steps for (int i=0; i<nr; i++) col[rowr+i] = i*step; } //Stopwatch Q = new Stopwatch(); int cycles = 2048; //while(true) //while(cycles <= 65536) // about 20 seconds //while(cycles <= 1048576) // about 200 seconds int rep = 30; // 14 sec @ 594 for (int i = 0; i < rep; i++) { //Q.start(); SparseCompRow.matmult(y, val, row, col, x, cycles); //Q.stop(); //if (Q.read() >= min_time) break; //cycles *= 2; } // approx Mflops //return SparseCompRow.num_flops(N, nz, cycles) / Q.read() * 1.0e-6; return SparseCompRow.num_flops(N, nz, cycles); } public static double measureLU(int N, double min_time, Random R) { // compute approx Mlfops, or O if LU yields large errors double A[][] = RandomMatrix(N, N, R); double lu[][] = new double[N][N]; int pivot[] = new int[N]; //Stopwatch Q = new Stopwatch(); //while(true) //while (cycles <= 8192) //while (cycles <= 2048) // approx 20 sec //while (cycles <= 6144) // approx 30 sec @ 1242MHz //while (cycles <= 12288) // approx 60 sec @ 1242MHz //while (cycles <= 14336) // approx 70 sec @ 1242MHz //while (cycles <= 16384) // approx 80 sec @ 1242MHz int cycles = 2048; // 14 sec @ 594Hz for (int j = 0; j < cycles; j++) { //Q.start(); //for (int i=0; i<cycles; i++) //{ CopyMatrix(lu, A); LU.factor(lu, pivot); //} //Q.stop(); //if (Q.read() >= min_time) break; //cycles *= 2; } // verify that LU is correct double b[] = RandomVector(N, R); double x[] = NewVectorCopy(b); LU.solve(lu, pivot, x); final double EPS = 1.0e-12; if ( normabs(b, matvec(A,x)) / N > EPS ) return 0.0; // else return approx Mflops // //return LU.num_flops(N) * cycles / Q.read() * 1.0e-6; return LU.num_flops(N) * cycles; } private static double[] NewVectorCopy(double x[]) { int N = x.length; double y[] = new double[N]; for (int i=0; i<N; i++) y[i] = x[i]; return y; } private static void CopyVector(double B[], double A[]) { int N = A.length; for (int i=0; i<N; i++) B[i] = A[i]; } private static double normabs(double x[], double y[]) { int N = x.length; double sum = 0.0; for (int i=0; i<N; i++) sum += Math.abs(x[i]-y[i]); return sum; } public static void CopyMatrix(double B[][], double A[][]) { int M = A.length; int N = A[0].length; int remainder = N & 3; // N mod 4; for (int i=0; i<M; i++) { double Bi[] = B[i]; double Ai[] = A[i]; for (int j=0; j<remainder; j++) Bi[j] = Ai[j]; for (int j=remainder; j<N; j+=4) { Bi[j] = Ai[j]; Bi[j+1] = Ai[j+1]; Bi[j+2] = Ai[j+2]; Bi[j+3] = Ai[j+3]; } } } public static double[][] RandomMatrix(int M, int N, Random R) { double A[][] = new double[M][N]; for (int i=0; i<N; i++) for (int j=0; j<N; j++) A[i][j] = R.nextDouble(); return A; } public static double[] RandomVector(int N, Random R) { double A[] = new double[N]; for (int i=0; i<N; i++) A[i] = R.nextDouble(); return A; } private static double[] matvec(double A[][], double x[]) { int N = x.length; double y[] = new double[N]; matvec(A, x, y); return y; } private static void matvec(double A[][], double x[], double y[]) { int M = A.length; int N = A[0].length; for (int i=0; i<M; i++) { double sum = 0.0; double Ai[] = A[i]; for (int j=0; j<N; j++) sum += Ai[j] * x[j]; y[i] = sum; } } }
BU-PCM-Testbed/ThermalProfiler
app/src/main/java/jnt/scimark2/kernel.java
Java
mit
7,529
'use strict' const reduce = Function.bind.call(Function.call, Array.prototype.reduce); const isEnumerable = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable); const concat = Function.bind.call(Function.call, Array.prototype.concat); const keys = Reflect.ownKeys; if (!Object.values) { Object.values = (O) => reduce(keys(O), (v, k) => concat(v, typeof k === 'string' && isEnumerable(O, k) ? [O[k]] : []), []); } if (!Object.entries) { Object.entries = (O) => reduce(keys(O), (e, k) => concat(e, typeof k === 'string' && isEnumerable(O, k) ? [ [k, O[k]] ] : []), []); } //from //https://medium.com/@_jh3y/throttling-and-debouncing-in-javascript-b01cad5c8edf#.jlqokoxtu //or //https://remysharp.com/2010/07/21/throttling-function-calls function debounce(callback, delay) { let timeout; return function() { const context = this, args = arguments; clearTimeout(timeout); timeout = setTimeout(() => callback.apply(context, args), delay); }; }; function throttle(func, limit) { let inThrottle, lastFunc, throttleTimer; return function() { const context = this, args = arguments; if (inThrottle) { clearTimeout(lastFunc); return lastFunc = setTimeout(function() { func.apply(context, args); inThrottle = false; }, limit); } else { func.apply(context, args); inThrottle = true; return throttleTimer = setTimeout(() => inThrottle = false, limit); } }; }; /*END POLIFILL*/
vitaliiznak/game-fluky_colors
polifill.js
JavaScript
mit
1,634
class Admin::DashboardController < AdminAreaController def index #You are entering an area where no project is concerned, so forget about your current project session[:project] = nil end end
atoulme/collaboa-clone
app/controllers/admin/dashboard_controller.rb
Ruby
mit
207
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::DevTestLabs::Mgmt::V2018_09_15 module Models # # Defines values for SourceControlType # module SourceControlType VsoGit = "VsoGit" GitHub = "GitHub" end end end
Azure/azure-sdk-for-ruby
management/azure_mgmt_devtestlabs/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb
Ruby
mit
375
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>retro-205 Cardatron Control Unit</title> <!-- /*********************************************************************** * retro-205/webUI D205CardatronControl.html ************************************************************************ * Copyright (c) 2015, Paul Kimpel. * Licensed under the MIT License, see * http://www.opensource.org/licenses/mit-license.php ************************************************************************ * ElectroData/Burroughs Datatron 205 Cardatron Control page. ************************************************************************ * 2015-02-01 P.Kimpel * Original version, from D205ControlConsole.html. ***********************************************************************/ --> <meta name="Author" content="Paul Kimpel"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <meta http-equiv="Content-Style-Type" content="text/css"> <link id=defaultStyleSheet rel=stylesheet type="text/css" href="D205Common.css"> <link id=consoleStyleSheet rel=stylesheet type="text/css" href="D205CardatronControl.css"> </head> <body id=cardatronControlBody class=deviceBody> <div id=PanelSurface> <div id=InputSetupBtn class=blackButton1>&nbsp;</div> <div id=InputSetupBtnCaption class=caption>INPUT<br>SETUP</div> <div id=ClearBtn class=redButton1>&nbsp;</div> <div id=ClearBtnCaption class=caption>GENERAL<br>CLEAR</div> </div> </body> </html>
pkimpel/retro-205
webUI/D205CardatronControl.html
HTML
mit
1,514
# infinite zoom plugin "infinite zoom" is an jQuery-Plugin that creates a nice foto/image show as background on DOM-containers. ## Features * applicable to any DOM-container * adjustable zoom properties * asynchronous image loading (just loads what's needed) * rendering with the high-performance CSS3-transitions ## Requirements * jQuery 1.3 or upwards * a container which must have * a 'overflow:hidden' css style * a 'position' css style * content with * a 'position' css style * a 'z-index' css style greater than 0 ## Install It`s very easy to install: 1. download or clone the current version 2. include the minified version into your code ## Usage Will coming soon! ## License See the "LICENSE" file in the root of the repo.
jtkDvlp/jQuery.infiniteZoom
README.md
Markdown
mit
759
<?php use History\Entities\Models\Company; use History\Entities\Models\Question; use History\Entities\Models\Request; use History\Entities\Models\Threads\Comment; use History\Entities\Models\Threads\Thread; use History\Entities\Models\User; use History\Entities\Models\Vote; use League\FactoryMuffin\FactoryMuffin; use League\FactoryMuffin\Faker\Facade; use League\FactoryMuffin\Faker\Faker; /* @var FactoryMuffin $fm */ /** @var Faker $faker */ $faker = Facade::instance(); if (!function_exists('random')) { /** * @param string $class * * @return Closure */ function random($class) { if (!$class::count()) { return 'factory|'.$class; } return function () use ($class) { return $class::pluck('id')->shuffle()->first(); }; } } $fm->define(User::class)->setDefinitions([ 'name' => $faker->userName(), 'full_name' => $faker->name(), 'email' => $faker->email(), 'contributions' => $faker->sentence(), 'company_id' => random(Company::class), 'no_votes' => $faker->randomNumber(1), 'yes_votes' => $faker->randomNumber(1), 'total_votes' => $faker->randomNumber(1), 'approval' => $faker->randomFloat(null, 0, 1), 'success' => $faker->randomFloat(null, 0, 1), 'hivemind' => $faker->randomFloat(null, 0, 1), 'created_at' => $faker->dateTimeThisYear(), 'updated_at' => $faker->dateTimeThisYear(), ]); $fm->define(Request::class)->setDefinitions([ 'name' => $faker->sentence(), 'contents' => $faker->paragraph(), 'link' => $faker->url(), 'condition' => $faker->boolean(2 / 3), 'approval' => $faker->randomFloat(null, 0, 1), 'status' => $faker->numberBetween(0, 5), 'created_at' => $faker->dateTimeThisDecade(), 'updated_at' => $faker->dateTimeThisDecade(), ])->setCallback(function (Request $request) { $users = User::pluck('id')->shuffle()->take(2); $request->authors()->sync($users->all()); }); $fm->define(Thread::class)->setDefinitions([ 'name' => $faker->sentence(), 'user_id' => random(User::class), 'request_id' => random(Request::class), 'created_at' => $faker->dateTimeThisDecade(), 'updated_at' => $faker->dateTimeThisDecade(), ]); $fm->define(Comment::class)->setDefinitions([ 'name' => $faker->sentence(), 'contents' => $faker->paragraph(), 'xref' => $faker->randomNumber(1), 'created_at' => $faker->dateTimeThisYear(), 'updated_at' => $faker->dateTimeThisYear(), 'user_id' => random(User::class), 'thread_id' => random(Thread::class), ]); $fm->define(Question::class)->setDefinitions([ 'name' => $faker->sentence(), 'choices' => ['Yes', 'No'], 'approval' => $faker->randomFloat(null, 0, 1), 'passed' => $faker->boolean(), 'request_id' => random(Request::class), 'created_at' => $faker->dateTimeThisYear(), 'updated_at' => $faker->dateTimeThisYear(), ]); $fm->define(Vote::class)->setDefinitions([ 'choice' => $faker->numberBetween(1, 2), 'question_id' => random(Question::class), 'user_id' => random(User::class), 'created_at' => $faker->dateTimeThisYear(), 'updated_at' => $faker->dateTimeThisYear(), ]); $fm->define(Company::class)->setDefinitions([ 'name' => $faker->word(), 'representation' => $faker->randomNumber(1), ]);
madewithlove/why-cant-we-have-nice-things
resources/factories/factories.php
PHP
mit
3,327
import {Routes} from '@angular/router'; import {JournalComponent} from '../journal/journal.component'; export const LUOO_APP_ROUTERS: Routes = [ {path: 'journal', component: JournalComponent} ]
Tneciv/Poseidon
frontend/src/app/common/routers.ts
TypeScript
mit
197
<template name="testWelcome"> <h2 class="center-align">Welcome Page</h2> <div class="col-sm-6 col-md-offset-4 welcome-introduction"> <p>Welcome to Fram^ Online Testing</p> <p>You have {{testingDuration}} minutes to complete your testting</p> <p>Notice 1</p> <p>Notice 2</p> <p>Notice 3</p> <p>......</p> <p>...</p> <p>ARE YOU READY ???</p> </div> <div class="center-align col-sm-12"> <button type="button" data-process-id="{{process._id}}" data-interview-index="{{this.index}}" class="btn btn-primary startTestingBtn">LET'S GO !!</button></div> </template>
danielbk08/hrtool
client/onlineTests/welcome/welcome.html
HTML
mit
605
// This file is part of SWGANH which is released under the MIT license. // See file LICENSE or go to http://swganh.com/LICENSE #include "swganh_core/gamesystems/gamesystems_service_binding.h" BOOST_PYTHON_MODULE(py_gamesystems) { docstring_options local_docstring_options(true, true, false); exportGameSystemsService(); }
anhstudios/swganh
src/swganh_core/GameSystems/GameSystems_service_binding.cc
C++
mit
332
var htmlparser = require('htmlparser2'); var _ = require('lodash'); var ent = require('ent'); module.exports = sanitizeHtml; function sanitizeHtml(html, options) { var result = ''; if (!options) { options = sanitizeHtml.defaults; } else { _.defaults(options, sanitizeHtml.defaults); } // Tags that contain something other than HTML. If we are not allowing // these tags, we should drop their content too. For other tags you would // drop the tag but keep its content. var nonTextTagsMap = { script: true, style: true }; var allowedTagsMap = {}; _.each(options.allowedTags, function(tag) { allowedTagsMap[tag] = true; }); var selfClosingMap = {}; _.each(options.selfClosing, function(tag) { selfClosingMap[tag] = true; }); var allowedAttributesMap = {}; _.each(options.allowedAttributes, function(attributes, tag) { allowedAttributesMap[tag] = {}; _.each(attributes, function(name) { allowedAttributesMap[tag][name] = true; }); }); var depth = 0; var skipMap = {}; var skipText = false; var parser = new htmlparser.Parser({ onopentag: function(name, attribs) { var skip = false; if (!_.has(allowedTagsMap, name)) { skip = true; if (_.has(nonTextTagsMap, name)) { skipText = true; } skipMap[depth] = true; } depth++; if (skip) { // We want the contents but not this tag return; } result += '<' + name; if (_.has(allowedAttributesMap, name)) { _.each(attribs, function(value, a) { if (_.has(allowedAttributesMap[name], a)) { result += ' ' + a; if ((a === 'href') || (a === 'src')) { if (naughtyHref(value)) { return; } } if (value.length) { // Values are ALREADY escaped, calling escapeHtml here // results in double escapes result += '="' + value + '"'; } } }); } if (_.has(selfClosingMap, name)) { result += " />"; } else { result += ">"; } }, ontext: function(text) { if (skipText) { return; } // It is NOT actually raw text, entities are already escaped. // If we call escapeHtml here we wind up double-escaping. result += text; }, onclosetag: function(name) { skipText = false; depth--; if (skipMap[depth]) { delete skipMap[depth]; return; } if (_.has(selfClosingMap, name)) { // Already output /> return; } result += "</" + name + ">"; } }); parser.write(html); parser.end(); return result; function escapeHtml(s) { if (s === 'undefined') { s = ''; } if (typeof(s) !== 'string') { s = s + ''; } return s.replace(/\&/g, '&amp;').replace(/</g, '&lt;').replace(/\>/g, '&gt;').replace(/\"/g, '&quot;'); } function naughtyHref(href) { // So we don't get faked out by a hex or decimal escaped javascript URL #1 href = ent.decode(href); // Browsers ignore character codes of 32 (space) and below in a surprising // number of situations. Start reading here: // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Embedded_tab href = href.replace(/[\x00-\x20]+/, ''); // Case insensitive so we don't get faked out by JAVASCRIPT #1 var matches = href.match(/^([a-zA-Z]+)\:/); if (!matches) { // No scheme = no way to inject js (right?) return false; } var scheme = matches[1].toLowerCase(); return (!_.contains(['http', 'https', 'ftp', 'mailto' ], scheme)); } } // Defaults are accessible to you so that you can use them as a starting point // programmatically if you wish sanitizeHtml.defaults = { allowedTags: [ 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div', 'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre' ], allowedAttributes: { a: [ 'href', 'name', 'target' ], // We don't currently allow img itself by default, but this // would make sense if we did img: [ 'src' ] }, // Lots of these won't come up by default because we don't allow them selfClosing: [ 'img', 'br', 'hr', 'area', 'base', 'basefont', 'input', 'link', 'meta' ] };
effello/cms
node_modules/apostrophe/node_modules/sanitize-html/index.js
JavaScript
mit
4,431
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { ExtendComponent } from './src/components/extend.component'; import { SubExtendComponent } from './src/components/sub-extend.component'; const extendRoutes: Routes = [ { path: '', component: ExtendComponent, }, { path: 'main', component: ExtendComponent, }, { path: 'sub', component: SubExtendComponent }, ]; @NgModule({ imports: [ RouterModule.forChild(extendRoutes) ], exports: [ RouterModule ] }) export class ExtendRoutingModule {}
seveves/ng2-lib-test
@lib-test/extend/extend.routes.ts
TypeScript
mit
595
๏ปฟnamespace UrlBuilderTests { using System; using System.Collections.Generic; using Microsoft.VisualStudio.TestTools.UnitTesting; using Se.Url; [TestClass] public class QueryParamTest { [TestMethod] public void DefaultQueryParam() { var url = new UrlBuilder(); Assert.AreEqual("http://localhost/", url.ToString()); } [TestMethod] public void SetQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.SetQueryParam("nid", 123); var param = url.GetQueryParam("nid"); Assert.AreEqual("123", param.ToString()); } [TestMethod] public void SetExistingQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123"); url.SetQueryParam("nid", 321); var param = url.GetQueryParam("nid"); Assert.AreEqual("321", param.ToString()); } [TestMethod] public void SetQueryParamToNull() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.SetQueryParam("nid", null); var param = url.GetQueryParam("nid"); Assert.AreEqual(null, param); } [TestMethod] public void SetQueryParamToEmtpy() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.SetQueryParam("nid", string.Empty); var param = url.GetQueryParam("nid"); Assert.AreEqual(string.Empty, param.ToString()); } [TestMethod] public void AppendQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.AppendQueryParam("nid", 123); var param = url.GetQueryParam("nid"); Assert.AreEqual("123", param.ToString()); } [TestMethod] public void AppendExistingQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app"); url.SetQueryParam("role", "moderator"); url.AppendQueryParam("role", "admin"); var paramList = url.GetQueryParam("role") as IList<object>; var param1 = paramList[0]; var param2 = paramList[1]; Assert.AreEqual("moderator", param1.ToString()); Assert.AreEqual("admin", param2.ToString()); } [TestMethod] public void RemoveQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123"); url.RemoveQueryParam("nid"); Assert.AreEqual(false, url.ContainsQueryParam("nid")); } [TestMethod] public void SetQueryParams() { var url = new UrlBuilder("http://www.shoutem.com/app"); var dictParams = new Dictionary<string, object> {{"nid", 123}, {"role", "admin"}}; url.SetQueryParams(dictParams); var param1 = url.GetQueryParam("nid"); var param2 = url.GetQueryParam("role"); Assert.AreEqual("123", param1.ToString()); Assert.AreEqual("admin", param2.ToString()); } [TestMethod] public void RemoveQueryParams() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123&role=admin"); var listParams = new List<string> {"nid", "role"}; url.RemoveQueryParams(listParams); Assert.AreEqual(false, url.ContainsQueryParam("nid")); Assert.AreEqual(false, url.ContainsQueryParam("role")); } [TestMethod] public void SetMultipleQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?role=moderator&role=admin"); var paramList = url.GetQueryParam("role") as IList<object>; var param1 = paramList[0]; var param2 = paramList[1]; Assert.AreEqual("moderator", param1.ToString()); Assert.AreEqual("admin", param2.ToString()); } [TestMethod] public void RemoveMultipleQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?role=moderator&role=admin"); url.RemoveQueryParam("role"); Assert.AreEqual(false, url.ContainsQueryParam("role")); } [TestMethod] public void GetQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123&role=admin"); var param = url.GetQueryParam("role"); Assert.AreEqual("admin", param.ToString()); } [TestMethod] public void GetQueryParamNames() { var url = new UrlBuilder("http://www.shoutem.com/app"); var dictParams = new Dictionary<string, object> { { "nid", 123 }, { "role", "admin" } }; url.SetQueryParams(dictParams); var paramNames = url.GetParamNames(); CollectionAssert.AreEqual(dictParams.Keys, paramNames); } [TestMethod] public void ContainsQueryParam() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123&role=admin"); Assert.AreEqual(true, url.ContainsQueryParam("role")); } [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void ContainsQueryParamNull() { var url = new UrlBuilder("http://www.shoutem.com/app?nid=123&role=admin"); Assert.AreEqual(false, url.ContainsQueryParam(null)); } } }
shoutem/UrlBuilder
UrlBuilderTests/QueryParamTest.cs
C#
mit
5,607
(function(){ 'use strict' angular .module("jobDetail") .service("jobDetailService",jobDetailService); jobDetailService.$inject = ['apiService','apiOptions']; function jobDetailService(apiService,apiOptions) { var jobId; this.getJobDetail=function(jobId) { // return "ok"; return apiService.get("job/"+jobId); }; }; })();
dozgunyal/ang-oboy
app/job-detail/job-detail.service.js
JavaScript
mit
351
/** * Copyright MaDgIK Group 2010 - 2015. */ package madgik.exareme.worker.art.container.job; import madgik.exareme.worker.art.container.ContainerJob; import madgik.exareme.worker.art.container.ContainerJobType; import madgik.exareme.worker.art.executionEngine.session.PlanSessionReportID; /** * @author heraldkllapi */ public class TableTransferJob implements ContainerJob { public final PlanSessionReportID sessionReportID; public TableTransferJob(PlanSessionReportID sessionReportID) { this.sessionReportID = sessionReportID; } @Override public ContainerJobType getType() { return ContainerJobType.dataTransfer; } }
madgik/exareme
Exareme-Docker/src/exareme/exareme-worker/src/main/java/madgik/exareme/worker/art/container/job/TableTransferJob.java
Java
mit
667
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pt_BR" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About SwansonCoin</source> <translation>Sobre o SwansonCoin</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;SwansonCoin&lt;/b&gt; version</source> <translation>Versรฃo do &lt;b&gt;SwansonCoin&lt;/b&gt;</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 ([email protected]) and UPnP software written by Thomas Bernard.</source> <translation>โŽ Este รฉ um software experimental.โŽ โŽ Distribuido sob a licenรงa de software MIT/X11, veja o arquivo anexo COPYING ou http://www.opensource.org/licenses/mit-license.php.โŽ โŽ Este produto inclui software desenvolvido pelo Projeto OpenSSL para uso no OpenSSL Toolkit (http://www.openssl.org/), software de criptografia escrito por Eric Young ([email protected]) e sofware UPnP escrito por Thomas Bernard.</translation> </message> <message> <location filename="../aboutdialog.cpp" line="+14"/> <source>Copyright</source> <translation>Copyright</translation> </message> <message> <location line="+0"/> <source>The SwansonCoin developers</source> <translation>Desenvolvedores do SwansonCoin</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Catรกlogo de endereรงos</translation> </message> <message> <location line="+19"/> <source>Double-click to edit address or label</source> <translation>Clique duas vezes para editar o endereรงo ou o etiqueta</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Criar um novo endereรงo</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copie o endereรงo selecionado para a รกrea de transferรชncia do sistema</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Novo endereรงo</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+63"/> <source>These are your SwansonCoin 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>Estes sรฃo os seus endereรงos SwansonCoin para receber pagamentos. Vocรช pode querer enviar um endereรงo diferente para cada remetente, para acompanhar quem estรก pagando.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>&amp;Copy Address</source> <translation>&amp;Copiar Endereรงo</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>Mostrar &amp;QR Code</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a SwansonCoin address</source> <translation>Assine uma mensagem para provar que vocรช รฉ dono de um endereรงo SwansonCoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Assinar Mensagem</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Excluir os endereรงos selecionados da lista</translation> </message> <message> <location line="+27"/> <source>Export the data in the current tab to a file</source> <translation>Exportar os dados na aba atual para um arquivo</translation> </message> <message> <location line="+3"/> <source>&amp;Export</source> <translation>&amp;Exportar</translation> </message> <message> <location line="-44"/> <source>Verify a message to ensure it was signed with a specified SwansonCoin address</source> <translation>Verificar mensagem para se assegurar que ela foi assinada pelo dono de um endereรงo SwansonCoin especรญfico.</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>&amp;Verificar Mensagem</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Excluir</translation> </message> <message> <location filename="../addressbookpage.cpp" line="-5"/> <source>These are your SwansonCoin addresses for sending payments. Always check the amount and the receiving address before sending coins.</source> <translation>Estes sรฃo os seus endereรงos SwansonCoin para receber pagamentos. Vocรช pode querer enviar um endereรงo diferente para cada remetente, para acompanhar quem estรก pagando.</translation> </message> <message> <location line="+13"/> <source>Copy &amp;Label</source> <translation>Copiar &amp;Etiqueta</translation> </message> <message> <location line="+1"/> <source>&amp;Edit</source> <translation>&amp;Editar</translation> </message> <message> <location line="+1"/> <source>Send &amp;Coins</source> <translation>Enviar bit&amp;coins</translation> </message> <message> <location line="+260"/> <source>Export Address Book Data</source> <translation>Exportar Catรกlogo de Endereรงos</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Arquivo separado por vรญrgulas (*. csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Erro ao exportar</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nรฃo foi possรญvel gravar no arquivo %1.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Rรณtulo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Endereรงo</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(Sem rรณtulo)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Janela da Frase de Seguranรงa</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Digite a frase de seguranรงa</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Nova frase de seguranรงa</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Repita a nova frase de seguranรงa</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>Digite a nova frase de seguraรงa da sua carteira. &lt;br/&gt; Por favor, use uma frase de &lt;b&gt;10 ou mais caracteres aleatรณrios,&lt;/b&gt; ou &lt;b&gt;oito ou mais palavras.&lt;/b&gt;</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Criptografar carteira</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Esta operaรงรฃo precisa de sua frase de seguranรงa para desbloquear a carteira.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Desbloquear carteira</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Esta operaรงรฃo precisa de sua frase de seguranรงa para descriptografar a carteira.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Descriptografar carteira</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Alterar frase de seguranรงa</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Digite a frase de seguranรงa antiga e nova para a carteira.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Confirmar criptografia da carteira</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 SWANSONCOINS&lt;/b&gt;!</source> <translation>Aviso: Se vocรช criptografar sua carteira e perder sua senha, vocรช vai &lt;b&gt;perder todos os seus SWANSONCOINS!&lt;/b&gt;</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Tem certeza de que deseja criptografar sua carteira?</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>IMPORTANTE: Qualquer backup prรฉvio que vocรช tenha feito do seu arquivo wallet deve ser substituรญdo pelo novo e encriptado arquivo wallet gerado. Por razรตes de seguranรงa, qualquer backup do arquivo wallet nรฃo criptografado se tornarรก inรบtil assim que vocรช comeรงar a usar uma nova carteira criptografada.</translation> </message> <message> <location line="+100"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Cuidado: A tecla Caps Lock estรก ligada!</translation> </message> <message> <location line="-130"/> <location line="+58"/> <source>Wallet encrypted</source> <translation>Carteira criptografada</translation> </message> <message> <location line="-56"/> <source>SwansonCoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your swansoncoins from being stolen by malware infecting your computer.</source> <translation>O SwansonCoin irรก fechar agora para finalizar o processo de encriptaรงรฃo. Lembre-se de que encriptar sua carteira nรฃo protege totalmente suas swansoncoins de serem roubadas por malwares que tenham infectado o seu computador.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+42"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>A criptografia da carteira falhou</translation> </message> <message> <location line="-54"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>A criptografia da carteira falhou devido a um erro interno. Sua carteira nรฃo estava criptografada.</translation> </message> <message> <location line="+7"/> <location line="+48"/> <source>The supplied passphrases do not match.</source> <translation>A frase de seguranรงa fornecida nรฃo confere.</translation> </message> <message> <location line="-37"/> <source>Wallet unlock failed</source> <translation>A abertura da carteira falhou</translation> </message> <message> <location line="+1"/> <location line="+11"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>A frase de seguranรงa digitada para a descriptografia da carteira estava incorreta.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>A descriptografia da carteira falhou</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>A frase de seguranรงa da carteira foi alterada com รชxito.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+233"/> <source>Sign &amp;message...</source> <translation>&amp;Assinar Mensagem...</translation> </message> <message> <location line="+280"/> <source>Synchronizing with network...</source> <translation>Sincronizando com a rede...</translation> </message> <message> <location line="-349"/> <source>&amp;Overview</source> <translation>&amp;Visรฃo geral</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Mostrar visรฃo geral da carteira</translation> </message> <message> <location line="+20"/> <source>&amp;Transactions</source> <translation>&amp;Transaรงรตes</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>Navegar pelo histรณrico de transaรงรตes</translation> </message> <message> <location line="+7"/> <source>Edit the list of stored addresses and labels</source> <translation>Editar a lista de endereรงos e rรณtulos</translation> </message> <message> <location line="-14"/> <source>Show the list of addresses for receiving payments</source> <translation>Mostrar a lista de endereรงos para receber pagamentos</translation> </message> <message> <location line="+31"/> <source>E&amp;xit</source> <translation>S&amp;air</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Sair da aplicaรงรฃo</translation> </message> <message> <location line="+4"/> <source>Show information about SwansonCoin</source> <translation>Mostrar informaรงรฃo sobre SwansonCoin</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>Sobre &amp;Qt</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Mostrar informaรงรตes sobre o Qt</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Opรงรตes...</translation> </message> <message> <location line="+6"/> <source>&amp;Encrypt Wallet...</source> <translation>&amp;Criptografar Carteira...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>&amp;Backup Carteira...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>&amp;Mudar frase de seguranรงa...</translation> </message> <message> <location line="+285"/> <source>Importing blocks from disk...</source> <translation>Importando blocos do disco...</translation> </message> <message> <location line="+3"/> <source>Reindexing blocks on disk...</source> <translation>Reindexando blocos no disco...</translation> </message> <message> <location line="-347"/> <source>Send coins to a SwansonCoin address</source> <translation>Enviar moedas para um endereรงo swansoncoin</translation> </message> <message> <location line="+49"/> <source>Modify configuration options for SwansonCoin</source> <translation>Modificar opรงรตes de configuraรงรฃo para swansoncoin</translation> </message> <message> <location line="+9"/> <source>Backup wallet to another location</source> <translation>Fazer cรณpia de seguranรงa da carteira para uma outra localizaรงรฃo</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Mudar a frase de seguranรงa utilizada na criptografia da carteira</translation> </message> <message> <location line="+6"/> <source>&amp;Debug window</source> <translation>Janela de &amp;Depuraรงรฃo</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Abrir console de depuraรงรฃo e diagnรณstico</translation> </message> <message> <location line="-4"/> <source>&amp;Verify message...</source> <translation>&amp;Verificar mensagem...</translation> </message> <message> <location line="-165"/> <location line="+530"/> <source>SwansonCoin</source> <translation>SwansonCoin</translation> </message> <message> <location line="-530"/> <source>Wallet</source> <translation>Carteira</translation> </message> <message> <location line="+101"/> <source>&amp;Send</source> <translation>&amp;Enviar</translation> </message> <message> <location line="+7"/> <source>&amp;Receive</source> <translation>&amp;Receber</translation> </message> <message> <location line="+14"/> <source>&amp;Addresses</source> <translation>&amp;Endereรงos</translation> </message> <message> <location line="+22"/> <source>&amp;About SwansonCoin</source> <translation>&amp;Sobre o SwansonCoin</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Exibir/Ocultar</translation> </message> <message> <location line="+1"/> <source>Show or hide the main Window</source> <translation>Mostrar ou esconder a Janela Principal.</translation> </message> <message> <location line="+3"/> <source>Encrypt the private keys that belong to your wallet</source> <translation>Criptografar as chaves privadas que pertencem ร  sua carteira</translation> </message> <message> <location line="+7"/> <source>Sign messages with your SwansonCoin addresses to prove you own them</source> <translation>Assine mensagems com seus endereรงos SwansonCoin para provar que vocรช รฉ dono deles</translation> </message> <message> <location line="+2"/> <source>Verify messages to ensure they were signed with specified SwansonCoin addresses</source> <translation>Verificar mensagens para se assegurar que elas foram assinadas pelo dono de Endereรงos SwansonCoin especรญficos</translation> </message> <message> <location line="+28"/> <source>&amp;File</source> <translation>&amp;Arquivo</translation> </message> <message> <location line="+7"/> <source>&amp;Settings</source> <translation>&amp;Configuraรงรตes</translation> </message> <message> <location line="+6"/> <source>&amp;Help</source> <translation>&amp;Ajuda</translation> </message> <message> <location line="+9"/> <source>Tabs toolbar</source> <translation>Barra de ferramentas</translation> </message> <message> <location line="+17"/> <location line="+10"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+47"/> <source>SwansonCoin client</source> <translation>Cliente SwansonCoin</translation> </message> <message numerus="yes"> <location line="+141"/> <source>%n active connection(s) to SwansonCoin network</source> <translation><numerusform>%n conexรฃo ativa na rede SwansonCoin</numerusform><numerusform>%n conexรตes ativas na rede SwansonCoin</numerusform></translation> </message> <message> <location line="+22"/> <source>No block source available...</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Processed %1 of %2 (estimated) blocks of transaction history.</source> <translation>Processado %1 de %2 blocos (estimado) de histรณrico de transaรงรตes.</translation> </message> <message> <location line="+4"/> <source>Processed %1 blocks of transaction history.</source> <translation>Processado %1 blocos do histรณrico de transaรงรตes.</translation> </message> <message numerus="yes"> <location line="+20"/> <source>%n hour(s)</source> <translation><numerusform>%n hora</numerusform><numerusform>%n horas</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n dia</numerusform><numerusform>%n dias</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n week(s)</source> <translation><numerusform>%n semana</numerusform><numerusform>%n semanas</numerusform></translation> </message> <message> <location line="+4"/> <source>%1 behind</source> <translation>%1 atrรกs</translation> </message> <message> <location line="+14"/> <source>Last received block was generated %1 ago.</source> <translation>รšltimo bloco recebido foi gerado %1 atrรกs.</translation> </message> <message> <location line="+2"/> <source>Transactions after this will not yet be visible.</source> <translation>Transaรงรตes apรณs isso ainda nรฃo estรฃo visรญveis.</translation> </message> <message> <location line="+22"/> <source>Error</source> <translation>Erro</translation> </message> <message> <location line="+3"/> <source>Warning</source> <translation>Cuidado</translation> </message> <message> <location line="+3"/> <source>Information</source> <translation>Informaรงรฃo</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>A transaรงรฃo estรก acima do tamanho limite. Vocรช ainda enviar ela com uma taxa de %1, que vai para os nรณs processam sua transaรงรฃo e ajuda a manter a rede. Vocรช quer pagar a taxa?</translation> </message> <message> <location line="-140"/> <source>Up to date</source> <translation>Atualizado</translation> </message> <message> <location line="+31"/> <source>Catching up...</source> <translation>Recuperando o atraso ...</translation> </message> <message> <location line="+113"/> <source>Confirm transaction fee</source> <translation>Confirmar taxa de transaรงรฃo</translation> </message> <message> <location line="+8"/> <source>Sent transaction</source> <translation>Transaรงรฃo enviada</translation> </message> <message> <location line="+0"/> <source>Incoming transaction</source> <translation>Transaรงรฃo recebida</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Data: %1 Quantidade: %2 Tipo: %3 Endereรงo: %4</translation> </message> <message> <location line="+33"/> <location line="+23"/> <source>URI handling</source> <translation>Manipulaรงรฃo de URI</translation> </message> <message> <location line="-23"/> <location line="+23"/> <source>URI can not be parsed! This can be caused by an invalid SwansonCoin address or malformed URI parameters.</source> <translation>URI nรฃo pode ser decodificado! Isso pode ter sido causado por um endereรงo SwansonCoin invรกlido ou por parรขmetros URI malformados.</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>Carteira estรก &lt;b&gt;criptografada&lt;/b&gt; e atualmente &lt;b&gt;desbloqueada&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>Carteira estรก &lt;b&gt;criptografada&lt;/b&gt; e atualmente &lt;b&gt;bloqueada&lt;/b&gt;</translation> </message> <message> <location filename="../bitcoin.cpp" line="+111"/> <source>A fatal error occurred. SwansonCoin can no longer continue safely and will quit.</source> <translation>Um erro fatal ocorreu. SwansonCoin nรฃo pode continuar em seguranรงa e irรก fechar.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+104"/> <source>Network Alert</source> <translation>Alerta da Rede</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Editar Endereรงo</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etiqueta</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>A etiqueta associada a esse endereรงo do catรกlogo</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Endereรงo</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>O endereรงo associado ร  essa entrada do seu catรกlogo de endereรงos. Isso sรณ pode ser modificado para endereรงo de envio.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+21"/> <source>New receiving address</source> <translation>Novo endereรงo de recebimento</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Novo endereรงo de envio</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Editar endereรงo de recebimento</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Editar endereรงo de envio</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>O endereรงo digitado &quot;%1&quot; jรก se encontra no catรกlogo de endereรงos.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid SwansonCoin address.</source> <translation>O endereรงo digitado &quot;%1&quot; nรฃo รฉ um endereรงo SwansonCoin vรกlido.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Nรฃo foi possรญvel destravar a carteira.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>A geraรงรฃo de nova chave falhou.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+424"/> <location line="+12"/> <source>SwansonCoin-Qt</source> <translation>SwansonCoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versรฃo</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Uso:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>opรงรตes da linha de comando</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>opรงรตes da UI</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Escolher lรญngua, por exemplo &quot;de_DE&quot; (padrรฃo: localizaรงรฃo do sistema)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Inicializar minimizado</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Mostrar tela inicial ao ligar (padrรฃo: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Opรงรตes</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>Principal</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 type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Pagar taxa de &amp;transaรงรฃo</translation> </message> <message> <location line="+31"/> <source>Automatically start SwansonCoin after logging in to the system.</source> <translation>Iniciar SwansonCoin automaticamente apรณs se logar no sistema.</translation> </message> <message> <location line="+3"/> <source>&amp;Start SwansonCoin on system login</source> <translation>Iniciar SwansonCoin no login do sistema</translation> </message> <message> <location line="+35"/> <source>Reset all client options to default.</source> <translation>Redefinir todas as opรงรตes do cliente para opรงรตes padrรฃo.</translation> </message> <message> <location line="+3"/> <source>&amp;Reset Options</source> <translation>&amp;Redefinir opรงรตes</translation> </message> <message> <location line="+13"/> <source>&amp;Network</source> <translation>Rede</translation> </message> <message> <location line="+6"/> <source>Automatically open the SwansonCoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Abrir as portas do cliente SwansonCoin automaticamente no roteador. Isto sรณ funcionarรก se seu roteador suportar UPnP e esta funรงรฃo estiver habilitada.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Mapear porta usando &amp;UPnP</translation> </message> <message> <location line="+7"/> <source>Connect to the SwansonCoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>Conectar ร  rede SwansonCoin atravรฉs de um proxy SOCKS (ex. quando estiver usando atravรฉs do Tor)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>&amp;Conectar atravรฉs de um proxy SOCKS:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>&amp;IP do proxy:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Endereรงo &amp;IP do proxy (ex. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Porta:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Porta do serviรงo de proxy (ex. 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>&amp;Versรฃo do SOCKS:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Versรฃo do proxy SOCKS (ex. 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Janela</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Mostrar apenas um รญcone na bandeja ao minimizar a janela.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Minimizar para a bandeja em vez da barra de tarefas.</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>Minimizar em vez de sair do aplicativo quando a janela for fechada. Quando esta opรงรฃo รฉ escolhida, o aplicativo sรณ serรก fechado selecionando Sair no menu Arquivo.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>M&amp;inimizar ao sair</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Mostrar</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>&amp;Lรญngua da interface com usuรกrio:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting SwansonCoin.</source> <translation>A lรญngua da interface com usuรกrio pode ser escolhida aqui. Esta configuraรงรฃo sรณ surtirรก efeito apรณs reiniciar o SwansonCoin.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>&amp;Unidade usada para mostrar quantidades:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>Escolha a unidade padrรฃo de subdivisรฃo para interface mostrar quando enviar swansoncoins.</translation> </message> <message> <location line="+9"/> <source>Whether to show SwansonCoin addresses in the transaction list or not.</source> <translation>Mostrar ou nรฃo endereรงos SwansonCoin na lista de transaรงรตes.</translation> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Mostrar en&amp;dereรงos na lista de transaรงรตes</translation> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;OK</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;Cancelar</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation>&amp;Aplicar</translation> </message> <message> <location filename="../optionsdialog.cpp" line="+53"/> <source>default</source> <translation>padrรฃo</translation> </message> <message> <location line="+130"/> <source>Confirm options reset</source> <translation>Confirmar redefiniรงรฃo de opรงรตes</translation> </message> <message> <location line="+1"/> <source>Some settings may require a client restart to take effect.</source> <translation>Algumas configuraรงรตes requerem reinicializaรงรฃo para surtirem efeito.</translation> </message> <message> <location line="+0"/> <source>Do you want to proceed?</source> <translation>Vocรช quer continuar?</translation> </message> <message> <location line="+42"/> <location line="+9"/> <source>Warning</source> <translation>Cuidado</translation> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting SwansonCoin.</source> <translation>Esta configuraรงรฃo surtirรก efeito apรณs reinicializar o aplicativo SwansonCoin</translation> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>O endereรงo proxy fornecido รฉ invรกlido.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Formulรกrio</translation> </message> <message> <location line="+50"/> <location line="+166"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the SwansonCoin network after a connection is established, but this process has not completed yet.</source> <translation>A informaรงรฃo mostrada pode estar desatualizada. Sua carteira sincroniza automaticamente com a rede SwansonCoin depois que a conexรฃo รฉ estabelecida, mas este processo pode nรฃo estar completo ainda.</translation> </message> <message> <location line="-124"/> <source>Balance:</source> <translation>Saldo:</translation> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation>Nรฃo confirmadas:</translation> </message> <message> <location line="-78"/> <source>Wallet</source> <translation>Carteira</translation> </message> <message> <location line="+107"/> <source>Immature:</source> <translation>Imaturo:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Saldo minerado que ainda nรฃo maturou</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Transaรงรตes recentes&lt;/b&gt;</translation> </message> <message> <location line="-101"/> <source>Your current balance</source> <translation>Seu saldo atual</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>Total de transaรงรตes ainda nรฃo confirmadas, e que ainda nรฃo contam no saldo atual</translation> </message> <message> <location filename="../overviewpage.cpp" line="+116"/> <location line="+1"/> <source>out of sync</source> <translation>fora de sincronia</translation> </message> </context> <context> <name>PaymentServer</name> <message> <location filename="../paymentserver.cpp" line="+107"/> <source>Cannot start swansoncoin: click-to-pay handler</source> <translation>Nรฃo foi possรญvel iniciar swansoncoin: manipulador clique-para-pagar</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation>Janela do cรณdigo QR</translation> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation>Requisitar Pagamento</translation> </message> <message> <location line="+56"/> <source>Amount:</source> <translation>Quantia:</translation> </message> <message> <location line="-44"/> <source>Label:</source> <translation>Etiqueta:</translation> </message> <message> <location line="+19"/> <source>Message:</source> <translation>Mensagem:</translation> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation>&amp;Salvar como...</translation> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation>Erro ao codigicar o URI em cรณdigo QR</translation> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation>A quantidade digitada รฉ invรกlida, favor verificar.</translation> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation>URI resultante muito longa. Tente reduzir o texto do rรณtulo ou da mensagem.</translation> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation>Salvar cรณdigo QR</translation> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation>Imagens PNG (*.png)</translation> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>Nome do cliente</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>N/A</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>Versรฃo do cliente</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Informaรงรฃo</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Usando OpenSSL versรฃo</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Horรกrio de inicializaรงรฃo</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Rede</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Nรบmero de conexรตes</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation>Na rede de teste</translation> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Corrente de blocos</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Quantidade atual de blocos</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Total estimado de blocos</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Horรกrio do รบltimo bloco</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Abrir</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation>Opรงรตes da linha de comando</translation> </message> <message> <location line="+7"/> <source>Show the SwansonCoin-Qt help message to get a list with possible SwansonCoin command-line options.</source> <translation>Mostrar mensagem de ajuda do SwansonCoin-Qt para obter uma lista com possรญveis opรงรตes da linha de comando do SwansonCoin.</translation> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation>&amp;Mostrar</translation> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Console</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Data do &apos;build&apos;</translation> </message> <message> <location line="-104"/> <source>SwansonCoin - Debug window</source> <translation>SwansonCoin - Janela de Depuraรงรฃo</translation> </message> <message> <location line="+25"/> <source>SwansonCoin Core</source> <translation>Nรบcleo SwansonCoin</translation> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Arquivo de log de Depuraรงรฃo</translation> </message> <message> <location line="+7"/> <source>Open the SwansonCoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation>Abrir o arquivo de log de depuraรงรฃo do SwansonCoin do diretรณrio atual de dados. Isso pode levar alguns segundos para arquivos de log grandes.</translation> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Limpar console</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-30"/> <source>Welcome to the SwansonCoin RPC console.</source> <translation>Bem-vindo ao console SwansonCoin 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>Use as setas para cima e para baixo para navegar pelo histรณrico, e &lt;b&gt;Ctrl-L&lt;/b&gt; para limpar a tela.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Digite &lt;b&gt;help&lt;/b&gt; para uma visรฃo geral dos comandos disponรญveis.</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>Enviar dinheiro</translation> </message> <message> <location line="+50"/> <source>Send to multiple recipients at once</source> <translation>Enviar para vรกrios destinatรกrios de uma sรณ vez</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>Adicionar destinatรกrio</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation>Remover todos os campos da transaรงรฃo</translation> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Limpar Tudo</translation> </message> <message> <location line="+22"/> <source>Balance:</source> <translation>Saldo:</translation> </message> <message> <location line="+10"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Confirmar o envio</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>Enviar</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; para %2 (%3)</translation> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Confirmar envio de dinheiro</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation>Vocรช tem certeza que deseja enviar %1?</translation> </message> <message> <location line="+0"/> <source> and </source> <translation>e</translation> </message> <message> <location line="+23"/> <source>The recipient address is not valid, please recheck.</source> <translation>O endereรงo do destinatรกrio nรฃo รฉ vรกlido, favor verificar.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>A quantidade a ser paga precisa ser maior que 0.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>A quantidade excede seu saldo.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>O total excede seu saldo quando uma taxa de transaรงรฃo de %1 รฉ incluรญda.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Endereรงo duplicado: pode-se enviar para cada endereรงo apenas uma vez por transaรงรฃo.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed!</source> <translation>Erro: Criaรงรฃo da transaรงรฃo falhou!</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>Erro: A transaรงรฃo foi rejeitada. Isso pode acontecer se alguns dos swansoncoins de sua carteira jรก haviam sido gastos, por exemplo se vocรช usou uma cรณpia do arquivo wallet.dat e alguns swansoncoins foram gastos na cรณpia mas nรฃo foram marcados como gastos aqui.</translation> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation>Formulรกrio</translation> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Q&amp;uantidade:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>Pagar &amp;Para:</translation> </message> <message> <location line="+34"/> <source>The address to send the payment to (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</source> <translation>O endereรงo para onde enviar o pagamento (ex. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</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>Digite uma etiqueta para este endereรงo para adicionรก-lo ao catรกlogo de endereรงos</translation> </message> <message> <location line="-78"/> <source>&amp;Label:</source> <translation>&amp;Etiqueta:</translation> </message> <message> <location line="+28"/> <source>Choose address from address book</source> <translation>Escolha um endereรงo do seu catรกlogo</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>Colar o endereรงo da รกrea de transferรชncia</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>Remover este destinatรกrio</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a SwansonCoin address (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</source> <translation>Digite um endereรงo SwansonCoin (exemplo: RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</translation> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>Assinaturas - Assinar / Verificar uma mensagem</translation> </message> <message> <location line="+13"/> <source>&amp;Sign Message</source> <translation>&amp;Assinar Mensagem</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>Vocรช pode assinar mensagens com seus endereรงos para provar que vocรช รฉ o dono deles. Seja cuidadoso para nรฃo assinar algo vago, pois ataques de pishing podem tentar te enganar para dar sua assinatura de identidade para eles. Apenas assine afirmaรงรตes completamente detalhadas com as quais vocรช concorda.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</source> <translation>Endereรงo a ser usado para assinar a mensagem (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</translation> </message> <message> <location line="+10"/> <location line="+213"/> <source>Choose an address from the address book</source> <translation>Escolha um endereรงo do catรกlogo</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>Colar o endereรงo da รกrea de transferรชncia</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>Entre a mensagem que vocรช quer assinar aqui</translation> </message> <message> <location line="+7"/> <source>Signature</source> <translation>Assinatura</translation> </message> <message> <location line="+27"/> <source>Copy the current signature to the system clipboard</source> <translation>Copiar a assinatura para a รกrea de transferรชncia do sistema</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this SwansonCoin address</source> <translation>Assinar mensagem para provar que vocรช รฉ dono deste endereรงo SwansonCoin</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>Assinar &amp;Mensagem</translation> </message> <message> <location line="+14"/> <source>Reset all sign message fields</source> <translation>Limpar todos os campos de assinatura da mensagem</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Limpar Tudo</translation> </message> <message> <location line="-87"/> <source>&amp;Verify Message</source> <translation>&amp;Verificar Mensagem</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>Forneรงa o endereรงo da assinatura, a mensagem (se assegure que vocรช copiou quebras de linha, espaรงos, tabs, etc. exatamente) e a assinatura abaixo para verificar a mensagem. Cuidado para nรฃo ler mais na assinatura do que estรก escrito na mensagem propriamente, para evitar ser vรญtima de uma ataque do tipo &quot;man-in-the-middle&quot;.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</source> <translation>O endereรงo usado para assinar a mensagem (ex. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</translation> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified SwansonCoin address</source> <translation>Verificar mensagem para se assegurar que ela foi assinada pelo dono de um endereรงo SwansonCoin especรญfico.</translation> </message> <message> <location line="+3"/> <source>Verify &amp;Message</source> <translation>Verificar %Mensagem</translation> </message> <message> <location line="+14"/> <source>Reset all verify message fields</source> <translation>Limpar todos os campos de assinatura da mensagem</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a SwansonCoin address (e.g. RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</source> <translation>Digite um endereรงo SwansonCoin (exemplo: RC74svrUSLCmjPGQrc4sYvAxzse7tpA7hE)</translation> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>Clique em &quot;Assinar Mensagem&quot; para gerar a assinatura</translation> </message> <message> <location line="+3"/> <source>Enter SwansonCoin signature</source> <translation>Entre com a assinatura SwansonCoin</translation> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>O endereรงo fornecido รฉ invรกlido.</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>Por favor, verifique o endereรงo e tente novamente.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>O endereรงo fornecido nรฃo se refere a uma chave.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Destravamento da Carteira foi cancelado.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>A chave privada para o endereรงo fornecido nรฃo estรก disponรญvel.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Assinatura da mensagem falhou.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Mensagem assinada.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>A assinatura nรฃo pode ser decodificada.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>Por favor, verifique a assinatura e tente novamente.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>A assinatura nรฃo corresponde ao &quot;resumo da mensagem&quot;.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Verificaรงรฃo da mensagem falhou.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Mensagem verificada.</translation> </message> </context> <context> <name>SplashScreen</name> <message> <location filename="../splashscreen.cpp" line="+22"/> <source>The SwansonCoin developers</source> <translation>Desenvolvedores do SwansonCoin</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>Aberto atรฉ %1</translation> </message> <message> <location line="+6"/> <source>%1/offline</source> <translation>%1/offline</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/nรฃo confirmadas</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 confirmaรงรตes</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Status</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation><numerusform>, difundir atrรกves de %n nรณ</numerusform><numerusform>, difundir atrรกves de %n nรณs</numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Fonte</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Gerados</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>De</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Para</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>seu prรณprio endereรงo</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>etiqueta</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Crรฉdito</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation><numerusform>matura em mais %n bloco</numerusform><numerusform>matura em mais %n blocos</numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>nรฃo aceito</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Dรฉbito</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Taxa de transaรงรฃo</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Valor lรญquido</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Mensagem</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Comentรกrio</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>ID da transaรงรฃo</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>SwansonCoins gerados precisam maturar por 120 blocos antes de serem gastos. Quando vocรช gera este bloco, ele รฉ difundido na rede para ser adicionado ao blockchain. Se ele falhar ao ser acrescentado no blockchain, seu estado mudarรก para &quot;nรฃo aceito&quot; e nรฃo poderรก ser gasto. Isso pode ocasionamente acontecer se outro nรณ gerou um bloco poucos segundos antes do seu.</translation> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Informaรงรฃo de depuraรงรฃo</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Transaรงรฃo</translation> </message> <message> <location line="+3"/> <source>Inputs</source> <translation>Entradas</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Quantidade</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>verdadeiro</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>falso</translation> </message> <message> <location line="-209"/> <source>, has not been successfully broadcast yet</source> <translation>, ainda nรฃo foi propagada na rede com sucesso.</translation> </message> <message numerus="yes"> <location line="-35"/> <source>Open for %n more block(s)</source> <translation><numerusform>Abrir para mais %n bloco</numerusform><numerusform>Abrir para mais %n blocos</numerusform></translation> </message> <message> <location line="+70"/> <source>unknown</source> <translation>desconhecido</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Detalhes da transaรงรฃo</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Este painel mostra uma descriรงรฃo detalhada da transaรงรฃo</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+225"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Endereรงo</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Quantidade</translation> </message> <message numerus="yes"> <location line="+57"/> <source>Open for %n more block(s)</source> <translation><numerusform>Abrir para mais %n bloco</numerusform><numerusform>Abrir para mais %n blocos</numerusform></translation> </message> <message> <location line="+3"/> <source>Open until %1</source> <translation>Aberto atรฉ %1</translation> </message> <message> <location line="+3"/> <source>Offline (%1 confirmations)</source> <translation>Offline (%1 confirmaรงรตes)</translation> </message> <message> <location line="+3"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Nรฃo confirmado (%1 of %2 confirmaรงรตes)</translation> </message> <message> <location line="+3"/> <source>Confirmed (%1 confirmations)</source> <translation>Confirmado (%1 confirmaรงรตes)</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>Saldo minerado vai estar disponรญvel quando ele maturar em mais %n bloco</numerusform><numerusform>Saldo minerado vai estar disponรญvel quando ele maturar em mais %n blocos</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>Este bloco nรฃo foi recebido por nenhum outro participante da rede e provavelmente nรฃo serรก aceito!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Gerado mas nรฃo aceito</translation> </message> <message> <location line="+43"/> <source>Received with</source> <translation>Recebido por</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Recebido de</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Enviado para</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Pagamento para vocรช mesmo</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Minerado</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(n/a)</translation> </message> <message> <location line="+199"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Status da transaรงรฃo. Passe o mouse sobre este campo para mostrar o nรบmero de confirmaรงรตes.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Data e hora em que a transaรงรฃo foi recebida.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Tipo de transaรงรฃo.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Endereรงo de destino da transaรงรฃo.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Quantidade debitada ou creditada ao saldo.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+52"/> <location line="+16"/> <source>All</source> <translation>Todos</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Hoje</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Esta semana</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Este mรชs</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Mรชs passado</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Este ano</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Intervalo...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Recebido por</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Enviado para</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Para vocรช mesmo</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Minerado</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Outro</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Procure um endereรงo ou etiqueta</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Quantidade mรญnima</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Copiar endereรงo</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Copiar etiqueta</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Copiar quantia</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Copiar ID da transaรงรฃo</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Editar etiqueta</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Mostrar detalhes da transaรงรฃo</translation> </message> <message> <location line="+139"/> <source>Export Transaction Data</source> <translation>Exportar Dados das Transaรงรตes</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Arquivo separado por vรญrgulas (*. csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Confirmado</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Data</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tipo</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etiqueta</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Endereรงo</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Quantidade</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>ID</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation>Erro ao exportar</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>Nรฃo foi possรญvel gravar no arquivo %1.</translation> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Intervalo: </translation> </message> <message> <location line="+8"/> <source>to</source> <translation>para</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+193"/> <source>Send Coins</source> <translation>Send Coins</translation> </message> </context> <context> <name>WalletView</name> <message> <location filename="../walletview.cpp" line="+42"/> <source>&amp;Export</source> <translation>&amp;Exportar</translation> </message> <message> <location line="+1"/> <source>Export the data in the current tab to a file</source> <translation>Exportar os dados na aba atual para um arquivo</translation> </message> <message> <location line="+193"/> <source>Backup Wallet</source> <translation>Fazer cรณpia de seguranรงa da Carteira</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Dados da Carteira (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Cรณpia de seguranรงa Falhou</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Houve um erro ao tentar salvar os dados da carteira para uma nova localizaรงรฃo.</translation> </message> <message> <location line="+4"/> <source>Backup Successful</source> <translation>Backup feito com sucesso</translation> </message> <message> <location line="+0"/> <source>The wallet data was successfully saved to the new location.</source> <translation>Os dados da carteira foram salvos com sucesso na nova localizaรงรฃo</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+94"/> <source>SwansonCoin version</source> <translation>Versรฃo do SwansonCoin</translation> </message> <message> <location line="+102"/> <source>Usage:</source> <translation>Uso:</translation> </message> <message> <location line="-29"/> <source>Send command to -server or swansoncoind</source> <translation>Enviar comando para -server ou swansoncoind</translation> </message> <message> <location line="-23"/> <source>List commands</source> <translation>Lista de comandos</translation> </message> <message> <location line="-12"/> <source>Get help for a command</source> <translation>Obtenha ajuda sobre um comando</translation> </message> <message> <location line="+24"/> <source>Options:</source> <translation>Opรงรตes:</translation> </message> <message> <location line="+24"/> <source>Specify configuration file (default: swansoncoin.conf)</source> <translation>Especifique um arquivo de configuraรงรตes (padrรฃo: swansoncoin.conf)</translation> </message> <message> <location line="+3"/> <source>Specify pid file (default: swansoncoind.pid)</source> <translation>Especifique um arquivo de pid (padrรฃo: swansoncoind.pid)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Especificar diretรณrio de dados</translation> </message> <message> <location line="-9"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Definir o tamanho do cache do banco de dados em megabytes (padrรฃo: 25)</translation> </message> <message> <location line="-28"/> <source>Listen for connections on &lt;port&gt; (default: 9333 or testnet: 19333)</source> <translation>Procurar por conexรตes em &lt;port&gt; (padrรฃo: 9333 ou testnet:19333)</translation> </message> <message> <location line="+5"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Manter no mรกximo &lt;n&gt; conexรตes aos peers (padrรฃo: 125)</translation> </message> <message> <location line="-48"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Conectar a um nรณ para receber endereรงos de participantes, e desconectar.</translation> </message> <message> <location line="+82"/> <source>Specify your own public address</source> <translation>Especificar seu prรณprio endereรงo pรบblico</translation> </message> <message> <location line="+3"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Limite para desconectar peers mal comportados (padrรฃo: 100)</translation> </message> <message> <location line="-134"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Nรบmero de segundos para impedir que peers mal comportados reconectem (padrรฃo: 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>Um erro ocorreu ao configurar a porta RPC %u para escuta em IPv4: %s</translation> </message> <message> <location line="+27"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 9332 or testnet: 19332)</source> <translation>Escutar conexรตes JSON-RPC na porta &lt;porta&gt; (padrรฃo: 9332 ou testnet: 19332)</translation> </message> <message> <location line="+37"/> <source>Accept command line and JSON-RPC commands</source> <translation>Aceitar linha de comando e comandos JSON-RPC</translation> </message> <message> <location line="+76"/> <source>Run in the background as a daemon and accept commands</source> <translation>Rodar em segundo plano como serviรงo e aceitar comandos</translation> </message> <message> <location line="+37"/> <source>Use the test network</source> <translation>Usar rede de teste</translation> </message> <message> <location line="-112"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Aceitar conexรตes externas (padrรฃo: 1 se opรงรตes -proxy ou -connect nรฃo estiverem presentes)</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=swansoncoinrpc 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;SwansonCoin Alert&quot; [email protected] </source> <translation>%s, vocรช deve especificar uma senha rpcpassword no arquivo de configuraรงรฃo:โŽ %sโŽ ร‰ recomendado que vocรช use a seguinte senha aleatรณria:โŽ rpcuser=swansoncoinrpcโŽ rpcpassword=%sโŽ (vocรช nรฃo precisa lembrar esta senha)โŽ O nome de usuรกrio e a senha NรƒO PODEM ser os mesmos.โŽ Se o arquivo nรฃo existir, crie um com permissรฃo de leitura apenas para o dono.โŽ ร‰ recomendado tambรฉm definir um alertnotify para que vocรช seja notificado de problemas;โŽ por exemplo: alertnotify=echo %%s | mail -s &quot;SwansonCoin Alert&quot; [email protected]โŽ </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>Um erro ocorreu ao configurar a porta RPC %u para escuta em IPv6, voltando ao 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>Vincular ao endereรงo fornecido e sempre escutar nele. Use a notaรงรฃo [host]:port para IPv6</translation> </message> <message> <location line="+3"/> <source>Cannot obtain a lock on data directory %s. SwansonCoin is probably already running.</source> <translation>Nรฃo foi possรญvel obter exclusividade de escrita no endereรงo %s. O SwansonCoin provavelmente jรก estรก rodando.</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>Erro: A transaรงรฃo foi rejeitada. Isso pode acontecer se alguns dos swansoncoins de sua carteira jรก haviam sido gastos, por exemplo se vocรช usou uma cรณpia do arquivo wallet.dat e alguns swansoncoins foram gastos na cรณpia mas nรฃo foram marcados como gastos aqui.</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>Erro: Esta transaรงรฃo requer uma taxa de transaรงรฃo de pelo menos %s, por causa sua quantidade, complexidade ou uso de dinheiro recebido recentemente.</translation> </message> <message> <location line="+3"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation>Executar comando quando um alerta relevante for recebido (%s no comando serรก substituรญdo pela mensagem)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Executar comando quando uma transaรงรฃo da carteira mudar (%s no comando serรก substituรญdo por TxID)</translation> </message> <message> <location line="+11"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation>Determinar tamanho mรกximo de transaรงรตes de alta-prioridade/baixa-taxa em bytes (padrรฃo: 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>Este pode ser um build de teste prรฉ-lanรงamento - use por sua conta e risco - nรฃo use para mineraรงรฃo ou aplicaรงรตes de comรฉrcio.</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>Cuidado: valor de -paytxfee escolhido รฉ muito alto! Este รฉ o valor da taxa de transaรงรฃo que vocรช irรก pagar se enviar a transaรงรฃo.</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>Cuidado: Transaรงรตes mostradas podem nรฃo estar corretas! Vocรช pode precisar atualizar, ou outros nรณs podem precisar atualizar o cliente.</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 SwansonCoin will not work properly.</source> <translation>Cuidado: Por favor, verifique que a data e hora do seu computador estรฃo corretas! If o seu relรณgio estiver errado, o SwansonCoin nรฃo irรก funcionar corretamente.</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>Cuidado: erro ao ler arquivo wallet.dat! Todas as chaves foram lidas corretamente, mas dados transaรงรตes e do catรกlogo de endereรงos podem estar faltando ou estar incorretas.</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>Aviso: wallet.dat corrompido, dados recuperados! Arquivo wallet.dat original salvo como wallet.{timestamp}.bak em %s; se seu saldo ou transaรงรตes estiverem incorretos, vocรช deve restauras o backup.</translation> </message> <message> <location line="+14"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Tentar recuperar chaves privadas de um arquivo wallet.dat corrompido</translation> </message> <message> <location line="+2"/> <source>Block creation options:</source> <translation>Opรงรตes de criaรงรฃo de blocos:</translation> </message> <message> <location line="+5"/> <source>Connect only to the specified node(s)</source> <translation>Conectar apenas a nรณ(s) especรญfico(s)</translation> </message> <message> <location line="+3"/> <source>Corrupted block database detected</source> <translation>Detectado Banco de dados de blocos corrompido</translation> </message> <message> <location line="+1"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Descobrir os prรณprios endereรงos IP (padrรฃo: 1 quando no modo listening e opรงรฃo -externalip nรฃo estiver presente)</translation> </message> <message> <location line="+1"/> <source>Do you want to rebuild the block database now?</source> <translation>Vocรช quer reconstruir o banco de dados de blocos agora?</translation> </message> <message> <location line="+2"/> <source>Error initializing block database</source> <translation>Erro ao inicializar banco de dados de blocos</translation> </message> <message> <location line="+1"/> <source>Error initializing wallet database environment %s!</source> <translation>Erro ao inicializar ambiente de banco de dados de carteira %s!</translation> </message> <message> <location line="+1"/> <source>Error loading block database</source> <translation>Erro ao carregar banco de dados de blocos</translation> </message> <message> <location line="+4"/> <source>Error opening block database</source> <translation>Erro ao abrir banco de dados de blocos</translation> </message> <message> <location line="+2"/> <source>Error: Disk space is low!</source> <translation>Erro: Espaรงo em disco insuficiente!</translation> </message> <message> <location line="+1"/> <source>Error: Wallet locked, unable to create transaction!</source> <translation>Erro: Carteira travada, impossรญvel criar transaรงรฃo!</translation> </message> <message> <location line="+1"/> <source>Error: system error: </source> <translation>Erro: erro de sistema</translation> </message> <message> <location line="+1"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Falha ao escutar em qualquer porta. Use -listen=0 se vocรช quiser isso.</translation> </message> <message> <location line="+1"/> <source>Failed to read block info</source> <translation>Falha ao ler informaรงรฃo de bloco</translation> </message> <message> <location line="+1"/> <source>Failed to read block</source> <translation>Falha ao ler bloco</translation> </message> <message> <location line="+1"/> <source>Failed to sync block index</source> <translation>Falha ao sincronizar รญndice de blocos</translation> </message> <message> <location line="+1"/> <source>Failed to write block index</source> <translation>Falha ao escrever รญndice de blocos</translation> </message> <message> <location line="+1"/> <source>Failed to write block info</source> <translation>Falha ao escrever informaรงรตes de bloco</translation> </message> <message> <location line="+1"/> <source>Failed to write block</source> <translation>Falha ao escrever bloco</translation> </message> <message> <location line="+1"/> <source>Failed to write file info</source> <translation>Falha ao escrever informรงรตes de arquivo</translation> </message> <message> <location line="+1"/> <source>Failed to write to coin database</source> <translation>Falha ao escrever banco de dados de moedas</translation> </message> <message> <location line="+1"/> <source>Failed to write transaction index</source> <translation>Falha ao escrever รญndice de transaรงรตes</translation> </message> <message> <location line="+1"/> <source>Failed to write undo data</source> <translation>Falha ao escrever dados para desfazer aรงรตes</translation> </message> <message> <location line="+2"/> <source>Find peers using DNS lookup (default: 1 unless -connect)</source> <translation>Procurar pares usando consulta de DNS (padrรฃo: 1 a menos que a opรงรฃo -connect esteja presente)</translation> </message> <message> <location line="+1"/> <source>Generate coins (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 288, 0 = all)</source> <translation>Quantos blocos checar ao inicializar (padrรฃo: 288, 0 = todos)</translation> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-4, default: 3)</source> <translation>Quรฃo minuciosa รฉ a verificaรงรฃo dos blocos (0-4, padrรฃo: 3)</translation> </message> <message> <location line="+19"/> <source>Not enough file descriptors available.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Rebuild block chain index from current blk000??.dat files</source> <translation>Reconstruir รญndice de blockchain a partir dos arquivos atuais blk000??.dat</translation> </message> <message> <location line="+16"/> <source>Set the number of threads to service RPC calls (default: 4)</source> <translation>Defina o nรบmero de threads de script de verificaรงรฃo. (Padrรฃo: 4)</translation> </message> <message> <location line="+26"/> <source>Verifying blocks...</source> <translation>Verificando blocos...</translation> </message> <message> <location line="+1"/> <source>Verifying wallet...</source> <translation>Verificando carteira...</translation> </message> <message> <location line="-69"/> <source>Imports blocks from external blk000??.dat file</source> <translation>Importar blocos de um arquivo externo 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 type="unfinished"/> </message> <message> <location line="+77"/> <source>Information</source> <translation>Informaรงรฃo</translation> </message> <message> <location line="+3"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation>Endereรงo -tor invรกlido: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount for -minrelaytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Invalid amount for -mintxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Maintain a full transaction index (default: 0)</source> <translation>Manter รญndice completo de transaรงรตes (padrรฃo: 0)</translation> </message> <message> <location line="+2"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Buffer mรกximo de recebimento por conexรฃo, &lt;n&gt;*1000 bytes (padrรฃo: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Buffer mรกximo de envio por conexรฃo, &lt;n&gt;*1000 bytes (padrรฃo: 1000)</translation> </message> <message> <location line="+2"/> <source>Only accept block chain matching built-in checkpoints (default: 1)</source> <translation>Apenas aceitar cadeia de blocos correspondente a marcas de verificaรงรฃo internas (padrรฃo: 1)</translation> </message> <message> <location line="+1"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Apenas conectar em nรณs na rede &lt;net&gt; (IPv4, IPv6, ou Tor)</translation> </message> <message> <location line="+2"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation>Mostrar informaรงรตes extras de depuraรงรฃo. Implica em outras opรงรตes -debug*</translation> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation>Mostrar informaรงรตes extras de depuraรงรฃo da rede</translation> </message> <message> <location line="+2"/> <source>Prepend debug output with timestamp</source> <translation>Prรฉ anexar a saรญda de debug com estampa de tempo</translation> </message> <message> <location line="+5"/> <source>SSL options: (see the SwansonCoin Wiki for SSL setup instructions)</source> <translation>Opรงรตes SSL: (veja a Wiki do SwansonCoin para instruรงรตes de configuraรงรฃo SSL)</translation> </message> <message> <location line="+1"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation>Escolher versรฃo do proxy socks a ser usada (4-5, padrรฃo: 5)</translation> </message> <message> <location line="+3"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Mandar informaรงรฃo de trace/debug para o console em vez de para o arquivo debug.log</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation>Mandar informaรงรฃo de trace/debug para o debugger</translation> </message> <message> <location line="+5"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation>Determinar tamanho mรกximo de bloco em bytes (padrรฃo: 250000)</translation> </message> <message> <location line="+1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Determinar tamanho mรญnimo de bloco em bytes (padrรฃo: 0)</translation> </message> <message> <location line="+2"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>Encolher arquivo debug.log ao iniciar o cliente (padrรฃo 1 se opรงรฃo -debug nรฃo estiver presente)</translation> </message> <message> <location line="+1"/> <source>Signing transaction failed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Especifique o tempo limite (timeout) da conexรฃo em milissegundos (padrรฃo: 5000) </translation> </message> <message> <location line="+4"/> <source>System error: </source> <translation>Erro de sistema:</translation> </message> <message> <location line="+4"/> <source>Transaction amount too small</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction amounts must be positive</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transaction too large</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Usar UPnP para mapear porta de escuta (padrรฃo: 0)</translation> </message> <message> <location line="+1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Usar UPnP para mapear porta de escuta (padrรฃo: 1 quando estiver escutando)</translation> </message> <message> <location line="+1"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation>Usar proxy para alcanรงar serviรงos escondidos (padrรฃo: mesmo que -proxy)</translation> </message> <message> <location line="+2"/> <source>Username for JSON-RPC connections</source> <translation>Nome de usuรกrio para conexรตes JSON-RPC</translation> </message> <message> <location line="+4"/> <source>Warning</source> <translation>Cuidado</translation> </message> <message> <location line="+1"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Cuidado: Esta versรฃo estรก obsoleta, atualizaรงรฃo exigida!</translation> </message> <message> <location line="+1"/> <source>You need to rebuild the databases using -reindex to change -txindex</source> <translation>Vocรช precisa reconstruir os bancos de dados usando -reindex para mudar -txindex</translation> </message> <message> <location line="+1"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat corrompido, recuperaรงรฃo falhou</translation> </message> <message> <location line="-50"/> <source>Password for JSON-RPC connections</source> <translation>Senha para conexรตes JSON-RPC</translation> </message> <message> <location line="-67"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Permitir conexรตes JSON-RPC de endereรงos IP especรญficos</translation> </message> <message> <location line="+76"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Enviar comando para nรณ rodando em &lt;ip&gt; (pardรฃo: 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>Executar comando quando o melhor bloco mudar (%s no comando serรก substituรญdo pelo hash do bloco)</translation> </message> <message> <location line="+147"/> <source>Upgrade wallet to latest format</source> <translation>Atualizar carteira para o formato mais recente</translation> </message> <message> <location line="-21"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Determinar tamanho do pool de endereรงos para &lt;n&gt; (padrรฃo: 100)</translation> </message> <message> <location line="-12"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Re-escanear blocos procurando por transaรงรตes perdidas da carteira</translation> </message> <message> <location line="+35"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>Usar OpenSSL (https) para conexรตes JSON-RPC</translation> </message> <message> <location line="-26"/> <source>Server certificate file (default: server.cert)</source> <translation>Arquivo de certificado do servidor (padrรฃo: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Chave privada do servidor (padrรฃo: server.pem)</translation> </message> <message> <location line="-151"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Algoritmos de criptografia aceitos (padrรฃo: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</translation> </message> <message> <location line="+165"/> <source>This help message</source> <translation>Esta mensagem de ajuda</translation> </message> <message> <location line="+6"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Impossรญvel vincular a %s neste computador (bind retornou erro %d, %s)</translation> </message> <message> <location line="-91"/> <source>Connect through socks proxy</source> <translation>Conectar atravรฉs de um proxy socks</translation> </message> <message> <location line="-10"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>Permitir consultas DNS para -addnode, -seednode e -connect</translation> </message> <message> <location line="+55"/> <source>Loading addresses...</source> <translation>Carregando endereรงos...</translation> </message> <message> <location line="-35"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>Erro ao carregar wallet.dat: Carteira corrompida</translation> </message> <message> <location line="+1"/> <source>Error loading wallet.dat: Wallet requires newer version of SwansonCoin</source> <translation>Erro ao carregar wallet.dat: Carteira requer uma versรฃo mais nova do SwansonCoin</translation> </message> <message> <location line="+93"/> <source>Wallet needed to be rewritten: restart SwansonCoin to complete</source> <translation>A Carteira precisou ser reescrita: reinicie o SwansonCoin para completar</translation> </message> <message> <location line="-95"/> <source>Error loading wallet.dat</source> <translation>Erro ao carregar wallet.dat</translation> </message> <message> <location line="+28"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Endereรงo -proxy invรกlido: &apos;%s&apos;</translation> </message> <message> <location line="+56"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>Rede desconhecida especificada em -onlynet: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Versรฃo desconhecida do proxy -socks requisitada: %i</translation> </message> <message> <location line="-96"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>Impossรญvel encontrar o endereรงo -bind: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>Impossรญvel encontrar endereรงo -externalip: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>Quantidade invรกlida para -paytxfee=&lt;quantidade&gt;: &apos;%s&apos;</translation> </message> <message> <location line="+1"/> <source>Invalid amount</source> <translation>Quantidade invรกlida</translation> </message> <message> <location line="-6"/> <source>Insufficient funds</source> <translation>Saldo insuficiente</translation> </message> <message> <location line="+10"/> <source>Loading block index...</source> <translation>Carregando รญndice de blocos...</translation> </message> <message> <location line="-57"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Adicionar um nรณ com o qual se conectar e tentar manter a conexรฃo ativa</translation> </message> <message> <location line="-25"/> <source>Unable to bind to %s on this computer. SwansonCoin is probably already running.</source> <translation>Impossรญvel vincular a %s neste computador. O SwansonCoin provavelmente jรก estรก rodando.</translation> </message> <message> <location line="+64"/> <source>Fee per KB to add to transactions you send</source> <translation>Taxa por KB a ser acrescida nas transaรงรตes que vocรช enviar</translation> </message> <message> <location line="+19"/> <source>Loading wallet...</source> <translation>Carregando carteira...</translation> </message> <message> <location line="-52"/> <source>Cannot downgrade wallet</source> <translation>Nรฃo รฉ possรญvel fazer downgrade da carteira</translation> </message> <message> <location line="+3"/> <source>Cannot write default address</source> <translation>Nรฃo foi possรญvel escrever no endereรงo padrรฃo</translation> </message> <message> <location line="+64"/> <source>Rescanning...</source> <translation>Re-escaneando...</translation> </message> <message> <location line="-57"/> <source>Done loading</source> <translation>Carregamento terminado</translation> </message> <message> <location line="+82"/> <source>To use the %s option</source> <translation>Para usar a opรงรฃo %s</translation> </message> <message> <location line="-74"/> <source>Error</source> <translation>Erro</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>Vocรช precisa especificar rpcpassword=&lt;senha&gt; no arquivo de configuraรงรตes:โŽ %sโŽ Se o arquivo nรฃo existir, crie um com permissรฃo de leitura apenas pelo dono</translation> </message> </context> </TS>
swansoncoin/swansoncoin
src/qt/locale/bitcoin_pt_BR.ts
TypeScript
mit
118,810
/* * optimization needed. */ struct ListNode { int val; struct ListNode *next; }; #ifndef NULL #define NULL ((struct ListNode *)0) #endif struct ListNode *detectCycle(struct ListNode *head) { if (!head || !head->next) return(NULL); if (head->next == head) return(head); struct ListNode *p1, *p2; int has_cycle; p1 = head; p2 = head; while (1) { if (!p2) { has_cycle = 0; break; } p1 = p1->next; p2 = p2->next; if (p2) { p2 = p2->next; } else { has_cycle = 0; break; } if (p1 == p2) { has_cycle = 1; break; } } if (!has_cycle) return(NULL); while (1) { if (head == p1) { break; } p2 = p1->next; while (p2 != p1) { if (head == p2) break; else p2 = p2->next; } if (head == p2) break; else head = head->next; } return(head); } int main(void) { return(0); }
wuzhouhui/leetcode
142_linked_list_cycle_II.c
C
mit
866
# Makefile for project pi-admin MODULES = sn-core sn-props sn-approute connect CLEAN_THESE_FILES = css/bootstrap.css css/bootstrap.min.css css/bootstrap-theme.css css/bootstrap-theme.min.css \ js/bootstrap.js js/bootstrap.min.js js/jquery.js js/underscore-min.js js/backbone-min.js js/handlebars.js \ js/sn-core.js fonts ./pi-admin BOOTSTRAP_VERSION = 3.0.3 JQUERY_VERSION = 1.10.2 HANDLEBARS_VERSION = 1.3.0 SNCORE_VERSION = 0.0.11 default: ./node_modules ./build clean: rm -rf ./node_modules rm -rf ./build ( cd static; rm -rf $(CLEAN_THESE_FILES) ) ./node_modules : mkdir -p ./node_modules npm install $(MODULES) ./build : ./build/bootstrap.zip ./build/sn-core.tar.gz ( cd build; unzip -o bootstrap.zip ) ( cd build; tar xzvf sn-core.tar.gz ) ( cd static; cp -r ../build/dist/* . ) ( cd static; cp ../build/sn-core-$(SNCORE_VERSION)/sn-core.js js/sn-core.js ) ( cd static/js ; wget -O jquery.js https://code.jquery.com/jquery-$(JQUERY_VERSION).min.js ) ( cd static/js ; wget -O underscore-min.js http://underscorejs.org/underscore-min.js ) ( cd static/js ; wget -O backbone-min.js http://backbonejs.org/backbone-min.js ) ( cd static/js ; wget -O handlebars.js http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v$(HANDLEBARS_VERSION).js ) ln -s /usr/bin/sn-app ./pi-admin ./build/bootstrap.zip : ./builddir ( cd build; wget -O bootstrap.zip https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION)/bootstrap-$(BOOTSTRAP_VERSION)-dist.zip ) ./build/sn-core.tar.gz : ./builddir ( cd build; wget -O sn-core.tar.gz https://github.com/smithee-us/sn-core/archive/v$(SNCORE_VERSION).tar.gz ) ./builddir : mkdir -p ./build install-deb : npm install -g sn-app if [ -d /etc/init.d ]; then \ cp init/pi-admin /etc/init.d; chmod 755 /etc/init.d/pi-admin; \ if [ -e /etc/init.d/.depend.start ]; then \ insserv pi-admin; else \ update-rc.d pi-admin defaults; \ fi \ fi
smithee-us/pi-admin
Makefile
Makefile
mit
1,941
html, body, .container, .header { height: 100%; } /* Header */ .header { position: relative; margin: 0 auto; min-height: 560px; width: 100%; } .bg-img { position: absolute; overflow: hidden; top: 0; left: 0; right: 0; bottom: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .bg-img img { position: absolute; top: 0; left: 0; display: block; min-width: 100%; min-height: 100%; } .title { z-index: 1000; margin: 0 auto; padding: 0 1.25em; width: 100%; text-align: center; position: absolute; top: 50%; left: 50%; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%); } .title h1 { padding: 0 0 0.2em; color: #fff; font-weight: 800; font-size: 3.25em; margin: 0 auto; } .title p { color: #fff; padding: 0 0 0.6em; font-weight: 300; font-size: 0.85em; margin: 0 auto; } .title h1, .title p.subline { line-height: 1; } .title p.subline { font-size: 1.75em; } /* Trigger Button */ button.trigger { position: fixed; bottom: 40px; left: 50%; z-index: 5000; display: block; margin-left: -0.5em; padding: 0; width: 1em; height: 1em; border: none; background: transparent; color: transparent; font-size: 2em; cursor: pointer; } .container:not(.notrans) button.trigger { -webkit-transition: opacity 0.3s 0.5s; transition: opacity 0.3s 0.5s; } .container.modify:not(.notrans) button.trigger { opacity: 0; pointer-events: none; -webkit-transition-delay: 0s; transition-delay: 0s; } button.trigger::before { position: absolute; bottom: 100%; left: -100%; padding: 0.8em; width: 300%; color: #fff; content: attr(data-info); font-size: 0.35em; -webkit-backface-visibility: hidden; backface-visibility: hidden; } button.trigger:focus { outline: none; } button.trigger span { position: relative; display: block; overflow: hidden; width: 100%; height: 100%; } button.trigger span::before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #fff; content: "โ–ผ"; text-transform: none; font-weight: normal; font-style: normal; font-variant: normal; font-family: 'icomoon'; line-height: 1; speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } button.trigger span::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; color: #fff; content: "โ–ผ"; text-transform: none; font-weight: normal; font-style: normal; font-variant: normal; font-family: 'icomoon'; line-height: 1; speak: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Conent */ .content { margin: 0 auto; padding: 0 0 3em; margin-top:100px; } @media only screen and (min-width : 320px) and (max-width : 780px){ .content { margin: 0 auto; padding: 0 0 3em; margin-top:0px; } } .content > div:not(.title) { margin: -80px auto 0; max-width: 900px; padding: 0 1.25em; } .content > div:not(.title) p { margin: 0 auto 1.5em auto; } .content > div:not(.title) p:first-child { /*font-size: 1.35em;*/ } .content h3 { margin: 0; font-size: 1.4em; } .content blockquote { padding: 0.25em; font-style: italic; font-size: 1.65em; font-family: 'Lora', serif; line-height: 1.4; } .content blockquote::before { content: '\201C'; } .content blockquote::after { content: '\201D'; } /***** Individual effects *****/ /* -------------------------- */ /* Jam 3 */ /* -------------------------- */ .intro-effect-jam3:not(.notrans) .bg-img { -webkit-transition-property: top, left, right, bottom; transition-property: top, left, right, bottom; } .intro-effect-jam3:not(.notrans) .header h1, .intro-effect-jam3:not(.notrans) .codrops-top a { -webkit-transition-property: color; transition-property: color; } .intro-effect-jam3:not(.notrans) .codrops-demos a { -webkit-transition-property: border-color, color; transition-property: border-color, color; } .intro-effect-jam3:not(.notrans) .header p { -webkit-transition-property: color, opacity, -webkit-transform; transition-property: color, opacity, transform; } .intro-effect-jam3:not(.notrans) .content > div { -webkit-transition-property: opacity, -webkit-transform; transition-property: opacity, transform; } .intro-effect-jam3:not(.notrans) .bg-img, .intro-effect-jam3:not(.notrans) .header h1, .intro-effect-jam3:not(.notrans) .codrops-top a, .intro-effect-jam3:not(.notrans) .codrops-demos a, .intro-effect-jam3:not(.notrans) .content > div { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); } .intro-effect-jam3:not(.notrans) .header p, .intro-effect-jam3:not(.notrans) .header p.subline, .intro-effect-jam3:not(.notrans) .content > div { -webkit-transition-duration: 0.2s; transition-duration: 0.2s; } .intro-effect-jam3.modify:not(.notrans) .header p, .intro-effect-jam3.modify:not(.notrans) .header p.subline, .intro-effect-jam3.modify:not(.notrans) .content > div { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .intro-effect-jam3 .codrops-demos a { color: #fff; } .intro-effect-jam3 .codrops-demos a.current-demo { border-color: #fff; } .intro-effect-jam3.modify .codrops-demos a { color: #c03b5d; } .intro-effect-jam3.modify .codrops-demos a.current-demo { border-color: #c03b5d; } .intro-effect-jam3.container { padding: 45px 30px; } .intro-effect-jam3 .bg-img { top: -45px; right: -30px; bottom: -45px; left: -30px; background: #514753; } .intro-effect-jam3.modify .bg-img { top: 0; right: 0; bottom: 85%; left: 0; } .intro-effect-jam3.modify .header h1 { color: #514753; } .intro-effect-jam3 .header p { color: #514753; opacity: 0; -webkit-transform: translateY(150px); transform: translateY(150px); } .intro-effect-jam3.modify .header p { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } .intro-effect-jam3 .content { padding: 0 5em 5em; } .intro-effect-jam3 .header, .intro-effect-jam3 .content { background: #fff; } .intro-effect-jam3 .content > div { opacity: 0; -webkit-transform: translateY(150px); transform: translateY(150px); } .intro-effect-jam3.modify .content > div { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } .intro-effect-jam3.modify .codrops-top a { color: #514753; } /* Delays */ .intro-effect-jam3.modify:not(.notrans) .header p:nth-last-child(2) { -webkit-transition-delay: 0.1s; transition-delay: 0.1s; } .intro-effect-jam3.modify:not(.notrans) .header p:last-child { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } .intro-effect-jam3.modify:not(.notrans) .content > div { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } /* -------------------------- */ /* Faded gradient */ /* -------------------------- */ .intro-effect-fadeout:not(.notrans) .bg-img { -webkit-transition-property: -webkit-transform; transition-property: transform; } .intro-effect-fadeout:not(.notrans) .bg-img::after { -webkit-transition-property: opacity; transition-property: opacity; } .intro-effect-fadeout:not(.notrans) .header h1 { -webkit-transition-property: color; transition-property: color; } .intro-effect-fadeout:not(.notrans) .header p, .intro-effect-fadeout:not(.notrans) .content > div { -webkit-transition-property: -webkit-transform, opacity; transition-property: transform, opacity; } .intro-effect-fadeout:not(.notrans) .bg-img, .intro-effect-fadeout:not(.notrans) .bg-img::after, .intro-effect-fadeout:not(.notrans) .header h1, .intro-effect-fadeout:not(.notrans) .header p, .intro-effect-fadeout:not(.notrans) .content > div { -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .intro-effect-fadeout .header { overflow: hidden; } .intro-effect-fadeout.modify .bg-img { -webkit-transform: translateY(-25%); transform: translateY(-25%); } .intro-effect-fadeout .bg-img::after { content: ''; position: absolute; width: 100%; height: 101%; top: 0; left: 0; opacity: 0; pointer-events: none; background: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); } .intro-effect-fadeout.modify .bg-img::after { opacity: 1; } .intro-effect-fadeout .title { text-align: left; max-width: 900px; } .intro-effect-fadeout.modify .header h1, .intro-effect-fadeout .header p { color: #514753; } .intro-effect-fadeout .header p { opacity: 0; } .intro-effect-fadeout .header p:nth-child(2) { -webkit-transform: translateX(150px); transform: translateX(150px); } .intro-effect-fadeout .header p:nth-child(3) { -webkit-transform: translateX(-150px); transform: translateX(-150px); } .intro-effect-fadeout.modify .header p:nth-child(2), .intro-effect-fadeout.modify .header p:nth-child(3) { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); } .intro-effect-fadeout .content { z-index: 1000; position: relative; } .intro-effect-fadeout .content > div { opacity: 0; -webkit-transform: translateY(350px); transform: translateY(350px); } .intro-effect-fadeout.modify .content > div { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } /* -------------------------- */ /* Sliced */ /* -------------------------- */ .intro-effect-sliced:not(.notrans) .bg-img, .intro-effect-sliced:not(.notrans) .title { -webkit-transition-property: -webkit-transform; transition-property: transform; } .intro-effect-sliced:not(.notrans) .header h1, .intro-effect-sliced:not(.notrans) .codrops-demos a { -webkit-transition-property: color; transition-property: color; } .intro-effect-sliced:not(.notrans) .header p { -webkit-transition-property: opacity; transition-property: opacity; } .intro-effect-sliced:not(.notrans) .content > div { -webkit-transition-property: -webkit-transform, opacity; transition-property: transform, opacity; } .intro-effect-sliced:not(.notrans) .bg-img, .intro-effect-sliced:not(.notrans) .header h1, .intro-effect-sliced:not(.notrans) .title, .intro-effect-sliced:not(.notrans) .header p, .intro-effect-sliced:not(.notrans) .content > div, .intro-effect-sliced:not(.notrans) .codrops-demos a { -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .intro-effect-sliced.modify:not(.notrans) .header h1, .intro-effect-sliced.modify:not(.notrans) .title, .intro-effect-sliced.modify:not(.notrans) .header p, .intro-effect-sliced.modify:not(.notrans) .content > div, .intro-effect-sliced.modify:not(.notrans) .codrops-demos a { -webkit-transition-timing-function: ease; transition-timing-function: ease; } .intro-effect-sliced .bg-img:first-child { bottom: 50%; } .intro-effect-sliced .bg-img:last-child { top: 50%; position: fixed; z-index: 900; } .intro-effect-sliced .bg-img:last-child img { top: -100%; } .intro-effect-sliced.modify .bg-img:first-child { -webkit-transform: translateY(-80%); transform: translateY(-80%); } .intro-effect-sliced.modify .bg-img:last-child { -webkit-transform: translateY(100%); transform: translateY(100%); } .intro-effect-sliced .codrops-demos { text-align: center; } .intro-effect-sliced .codrops-demos a { color: #fff; font-size: 0.8em; } .intro-effect-sliced.modify .codrops-demos a { color: #cf4a5c; } .intro-effect-sliced .title { -webkit-transform: translateX(-50%) translateY(-50%) scale(0.7); transform: translateX(-50%) translateY(-50%) scale(0.7); } .intro-effect-sliced.modify .title { -webkit-transform: translateX(-50%) translateY(-50%) scale(1); transform: translateX(-50%) translateY(-50%) scale(1); } .intro-effect-sliced .header p { opacity: 0; color: #514753; } .intro-effect-sliced.modify .header p { opacity: 1; } .intro-effect-sliced.modify .header h1 { color: #514753; } .intro-effect-sliced .content > div { -webkit-transform: translateY(200px); transform: translateY(200px); opacity: 0; } .intro-effect-sliced.modify .content > div { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } /* Delays */ .intro-effect-sliced.modify:not(.notrans) .title { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } /* -------------------------- */ /* Side */ /* -------------------------- */ .intro-effect-side:not(.notrans) .bg-img::before, .intro-effect-side:not(.notrans) .title { -webkit-transition-property: -webkit-transform; transition-property: transform; } .intro-effect-side:not(.notrans) .bg-img::after { -webkit-transition-property: top, left, bottom, right, background-color; transition-property: top, left, bottom, right, background-color; } .intro-effect-side:not(.notrans) .header p { -webkit-transition-property: -webkit-transform, opacity; transition-property: transform, opacity; } .intro-effect-side:not(.notrans) .content > div { -webkit-transition-property: opacity; transition-property: opacity; } .intro-effect-side:not(.notrans) .bg-img::before, .intro-effect-side:not(.notrans) .bg-img::after, .intro-effect-side:not(.notrans) .title, .intro-effect-side:not(.notrans) .header p, .intro-effect-side:not(.notrans) .content > div { -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .intro-effect-side .codrops-top a { color: #7b8d92; } .intro-effect-side .bg-img::before, .intro-effect-side .bg-img::after { content: ''; position: absolute; z-index: 100; } .intro-effect-side .bg-img::before { background: #fff; top: 0; left: 0; width: 60%; height: 100%; -webkit-transform: translateX(-100%); transform: translateX(-100%); } .intro-effect-side.modify .bg-img::before { -webkit-transform: translateX(0); transform: translateX(0); } .intro-effect-side .bg-img::after { border: 80px solid #fff; top: -80px; right: -80px; bottom: -80px; left: -80px; background-color: rgba(255,255,255,0.5); } .intro-effect-side.modify .bg-img::after { top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(255,255,255,0); } .intro-effect-side .codrops-demos a { color: #43939d; } .intro-effect-side .codrops-demos a.current-demo { border-bottom: 3px solid #43939d; } .intro-effect-side .title { text-align: right; left: 0; padding: 0 3em 0 2em; width: 60%; -webkit-transform: translateX(33.3%) translateY(-50%); transform: translateX(33.3%) translateY(-50%); } .intro-effect-side.modify .title { -webkit-transform: translateY(-50%); transform: translateY(-50%); } .intro-effect-side .header h1 { font-family: 'Lora', serif; font-style: italic; font-weight: 400; padding: 0 0 0.5em 0; color: #516165; } .intro-effect-side .header p { opacity: 0; color: #7b8d92; -webkit-transform: translateY(100px); transform: translateY(100px); } .intro-effect-side.modify .header p { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0); } .intro-effect-side .content > div { margin-top: 0px; opacity: 0; } .intro-effect-side.modify .content > div { opacity: 1; } .intro-effect-side button.trigger span::before, .intro-effect-side button.trigger::before { color: #516165; } /* Delays */ .intro-effect-side:not(.notrans) .title, .intro-effect-side:not(.notrans) .bg-img::before, .intro-effect-side:not(.notrans) .bg-img::after { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } .intro-effect-side.modify:not(.notrans) .title, .intro-effect-side.modify:not(.notrans) .bg-img::before, .intro-effect-side.modify:not(.notrans) .bg-img::after { -webkit-transition-delay: 0s; transition-delay: 0s; } .intro-effect-side.modify:not(.notrans) .header p:nth-last-child(2) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } .intro-effect-side.modify:not(.notrans) .header p:last-child { -webkit-transition-delay: 0.2s; transition-delay: 0.2s; } .intro-effect-side.modify:not(.notrans) .content > div { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } /* -------------------------- */ /* Side Fixed */ /* -------------------------- */ .intro-effect-sidefixed:not(.notrans) .bg-img::before { -webkit-transition-property: background-color; transition-property: background-color; } .intro-effect-sidefixed:not(.notrans) .bg-img::after { -webkit-transition-property: -webkit-transform; transition-property: transform; } .intro-effect-sidefixed:not(.notrans) .title p { -webkit-transition-property: opacity; transition-property: opacity; } .intro-effect-sidefixed:not(.notrans) .content > div { -webkit-transition-property: -webkit-transform, opacity; transition-property: transform, opacity; } .intro-effect-sidefixed:not(.notrans) .bg-img::before, .intro-effect-sidefixed:not(.notrans) .bg-img::after, .intro-effect-sidefixed:not(.notrans) .title p, .intro-effect-sidefixed:not(.notrans) .content > div { -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); -webkit-transition-duration: 0.5s; transition-duration: 0.5s; } .intro-effect-sidefixed .header { position: absolute; } .intro-effect-sidefixed .bg-img { position: fixed; } .intro-effect-sidefixed .bg-img img { left: auto; right: 0; } .intro-effect-sidefixed .bg-img::before, .intro-effect-sidefixed .bg-img::after { content: ''; position: absolute; z-index: 100; } .intro-effect-sidefixed .bg-img::after { background: #f8ebda; top: 0; right: 0; width: 60%; height: 100%; -webkit-transform: translateX(100%); transform: translateX(100%); } .intro-effect-sidefixed.modify .bg-img::after { -webkit-transform: translateX(0); transform: translateX(0); } .intro-effect-sidefixed .bg-img::before { width: 100%; height: 100%; background-color: rgba(247,214,169,0.1); } .intro-effect-sidefixed.modify .bg-img::before { background-color: rgba(247,214,169,0.4); } .intro-effect-sidefixed .codrops-demos a { color: #f68f6c; } .intro-effect-sidefixed .title { position: relative; top: auto; left: auto; text-align: left; -webkit-transform: translateY(200px); transform: translateY(200px); } .intro-effect-sidefixed.modify .title { -webkit-transform: translateY(0); transform: translateY(0); } .intro-effect-sidefixed .title h1 { font-family: 'Playfair Display', serif; font-weight: 700; padding: 0 0 0.5em 0; color: #585a66; } .intro-effect-sidefixed .title p { opacity: 0; color: #585a66; } .intro-effect-sidefixed.modify .title p { opacity: 1; } .intro-effect-sidefixed .content { width: 60%; margin-left: 40%; padding: 0 2.5em; } .intro-effect-sidefixed .content div { position: relative; margin: 70px 0; color: #77726b; } .intro-effect-sidefixed .content div:nth-child(2) { opacity: 0; -webkit-transform: translateY(200px); transform: translateY(200px); } .intro-effect-sidefixed.modify .content div:nth-child(2) { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); } /* Delays */ .intro-effect-sidefixed:not(.notrans) .title, .intro-effect-sidefixed:not(.notrans) .bg-img::before, .intro-effect-sidefixed:not(.notrans) .bg-img::after { -webkit-transition-delay: 0.3s; transition-delay: 0.3s; } .intro-effect-sidefixed.modify:not(.notrans) .title, .intro-effect-sidefixed.modify:not(.notrans) .bg-img::before, .intro-effect-sidefixed.modify:not(.notrans) .bg-img::after { -webkit-transition-delay: 0s; transition-delay: 0s; } .intro-effect-sidefixed.modify:not(.notrans) .content div:nth-child(2) { -webkit-transition-delay: 0.15s; transition-delay: 0.15s; } /* -------------------------- */ /* Push */ /* -------------------------- */ .intro-effect-push:not(.notrans) .header, .intro-effect-push:not(.notrans) > .title, .intro-effect-push:not(.notrans) .content > div { -webkit-transition-property: opacity, -webkit-transform; transition-property: opacity, transform; -webkit-transition-duration: 1s; transition-duration: 1s; } .intro-effect-push:not(.notrans) .header { -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); -webkit-transition-duration: 1.2s; transition-duration: 1.2s; } .intro-effect-push .codrops-demos a { color: #108576; } .intro-effect-push .header { position: absolute; z-index: 1500; } .intro-effect-push > .title { position: relative; top: auto; left: auto; padding: 6em 1em 2em; } .intro-effect-push .content > div { margin-top: 50px; color: #b2b2c0; } .intro-effect-push > .title, .intro-effect-push .content > div { -webkit-transform: translateY(400px); transform: translateY(400px); opacity: 0; } .intro-effect-push.modify > .title, .intro-effect-push.modify .content > div { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } .intro-effect-push.modify .header { opacity: 0; -webkit-transform: translateY(-100%) scale(0.9); transform: translateY(-100%) scale(0.9); } /* Delays */ .intro-effect-push.modify:not(.notrans) > .title { -webkit-transition-delay: 0.5s; transition-delay: 0.5s; } .intro-effect-push.modify:not(.notrans) .content > div { -webkit-transition-delay: 0.6s; transition-delay: 0.6s; } /* -------------------------- */ /* Grid */ /* -------------------------- */ .intro-effect-grid:not(.notrans) .grid li:nth-child(5) { -webkit-transition-property: -webkit-transform, opacity; transition-property: transform, opacity; } .intro-effect-grid:not(.notrans) .header p { -webkit-transition-property: opacity; transition-property: opacity; } .intro-effect-grid:not(.notrans) .bg-img, .intro-effect-grid:not(.notrans) .title { -webkit-transition-property: -webkit-transform; transition-property: transform; } .intro-effect-grid:not(.notrans) .header h1, .intro-effect-grid:not(.notrans) .codrops-demos a { -webkit-transition-property: color; transition-property: color; } .intro-effect-grid:not(.notrans) .grid li:nth-child(5), .intro-effect-grid:not(.notrans) .bg-img, .intro-effect-grid:not(.notrans) .title, .intro-effect-grid:not(.notrans) .header h1, .intro-effect-grid:not(.notrans) .header p, .intro-effect-grid:not(.notrans) .codrops-demos a { -webkit-transition-timing-function: cubic-bezier(0.7,0,0.3,1); transition-timing-function: cubic-bezier(0.7,0,0.3,1); -webkit-transition-duration: 1s; transition-duration: 1s; } .intro-effect-grid .codrops-demos a { color: #fff; } .intro-effect-grid.modify .codrops-demos a { color: #cf7000; } .intro-effect-grid .codrops-demos a.current-demo { border-bottom: 3px solid #fff; } .intro-effect-grid.modify .codrops-demos a.current-demo { border-color: #cf7000; } .intro-effect-grid .title { max-width: 900px; padding-top: 2em; } /*@media only screen (min-width : 1000px) { .intro-effect-grid .title { max-width: 900px; padding-top: 2em; padding-top: 10em; } }*/ .intro-effect-grid.modify .title { -webkit-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0); } .intro-effect-grid .content > div { /*margin-top: 40px;*/ color: #2e3337; } .intro-effect-grid .header h1 { font-weight: 700; padding: 0 0 0.6em; } .intro-effect-grid.modify .header h1 { color: #2d3b44; } .intro-effect-grid .header p { opacity: 0; color: #4c6270; } .intro-effect-grid .header p.subline { font-size: 1.5em; } .intro-effect-grid.modify .header p { opacity: 1; } .intro-effect-grid .grid { list-style: none; margin: 0; padding: 0; position: absolute; top: 0; left: 0; width: 100%; height: 50%; z-index: 0; } .intro-effect-grid .grid li::after { content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: rgba(71,63,59,0.5); pointer-events: none; -webkit-transition: background 0.3s; transition: background 0.3s; } .intro-effect-grid.modify .grid li:hover::after, .intro-effect-grid.modify .grid li:nth-child(5)::after { background: rgba(71,63,59,0.1); } .intro-effect-grid .grid li { position: absolute; /*background-size: cover;*/ background-size: ; background-repeat: no-repeat; background-position: 50% 50%; cursor: pointer; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; } .intro-effect-grid .grid li h2 { font-family: 'Playfair Display', serif; font-weight: 700; padding-bottom: 0.4em; margin: 1em; color: #fff; line-height: 1; font-size: 1em; position: absolute; bottom: 0; z-index: 100; -webkit-transition: -webkit-transform 0.3s; transition: transform 0.3s; } .intro-effect-grid .grid li:hover h2 { -webkit-transform: translateY(-10px); transform: translateY(-10px); } /* .intro-effect-grid .grid li:nth-child(2) { top: 50%; left: 0; height: 50%; width: 25%; background-image: url(../img/thumbs/2.jpg); } .intro-effect-grid .grid li:nth-child(3) { top: 0; left: 25%; height: 100%; width: 25%; background-image: url(../img/thumbs/5.jpg); } .intro-effect-grid .grid li:nth-child(4) { top: 0; left: 50%; height: 50%; width: 50%; background-image: url(../img/thumbs/4.jpg); } .intro-effect-grid .grid li:nth-child(5) { top: 50%; left: 50%; height: 50%; width: 25%; background-image: url(../img/thumbs/8.jpg); -webkit-transform: scale(0); transform: scale(0); opacity: 0; } .intro-effect-grid.modify .grid li:nth-child(5) { -webkit-transform: scale(1); transform: scale(1); opacity: 1; } .intro-effect-grid .grid li:nth-child(5) h2 { color: #de8721; } .intro-effect-grid .grid li:nth-child(6) { top: 50%; left: 75%; height: 50%; width: 25%; background-image: url(../img/thumbs/6.jpg); }*/ .intro-effect-grid.modify .bg-img { -webkit-transform: translateY(-100%); transform: translateY(-100%); } /* Media Queries */ @media screen and (max-width: 47em) { .title, .content { font-size: 70%; } .codrops-demos a { font-size: 80%; } .intro-effect-side .title { width: 100%; padding: 0 1em; -webkit-transform: translateY(-50%); transform: translateY(-50%); } .intro-effect-side.modify .bg-img::before { -webkit-transform: translateX(-100%); transform: translateX(-100%); } .intro-effect-side .bg-img::after { border-left-width: 0px; border-right-width: 0px; right: 0px; left: 0px; background: rgba(255,255,255,0.1); } .intro-effect-side.modify .bg-img::after { background: rgba(255,255,255,0.8); } .intro-effect-sidefixed .content { width: 100%; margin-left: auto; } .intro-effect-sidefixed .bg-img::after { width: 95%; } } @media screen and (max-width: 27em) { .intro-effect-jam3 .content { padding: 0 2em 5em; } .intro-effect-grid .grid li h2 { display: none; } .intro-effect-push .header .title { top: 60px; -webkit-transform: translateX(-50%); transform: translateX(-50%); } .title, .content { font-size: 50%; } button.trigger::before { display: none; } }
Shekharrajak/shekharrajak.github.io
assets/css/component.css
CSS
mit
26,902
package com.twitter.meil_mitu.twitter4holo.api.help; import com.twitter.meil_mitu.twitter4holo.AbsGet; import com.twitter.meil_mitu.twitter4holo.AbsOauth; import com.twitter.meil_mitu.twitter4holo.ITwitterJsonConverter; import com.twitter.meil_mitu.twitter4holo.OauthType; import com.twitter.meil_mitu.twitter4holo.ResponseData; import com.twitter.meil_mitu.twitter4holo.data.TosResult; import com.twitter.meil_mitu.twitter4holo.exception.Twitter4HoloException; public class Tos extends AbsGet<ITwitterJsonConverter>{ public Tos(AbsOauth oauth, ITwitterJsonConverter json){ super(oauth, json); } @Override public String url(){ return "https://api.twitter.com/1.1/help/tos.json"; } @Override public int allowOauthType(){ return OauthType.Oauth1 | OauthType.Oauth2; } @Override public boolean isAuthorization(){ return true; } @Override public ResponseData<TosResult> call() throws Twitter4HoloException{ return Json.toTosResultResponseData(Oauth.get(this)); } }
MeilCli/Twitter4Holo
library/src/main/java/com/twitter/meil_mitu/twitter4holo/api/help/Tos.java
Java
mit
1,064
module Cranium::ImportStrategy autoload :Base, 'cranium/import_strategy/base' autoload :DeleteInsert, 'cranium/import_strategy/delete_insert' autoload :Delete, 'cranium/import_strategy/delete' autoload :TruncateInsert, 'cranium/import_strategy/truncate_insert' autoload :Delta, 'cranium/import_strategy/delta' autoload :Merge, 'cranium/import_strategy/merge' end
emartech/cranium
lib/cranium/import_strategy.rb
Ruby
mit
376
<!--<section data-ng-controller="NewsFeedsController" data-ng-init="findOne()">--> <section data-ng-controller="NewsFeedsController" data-ng-init="findOne()"> <section class="container"> <div class="page-header"> <h1>Edit News feed</h1> </div> <div class="col-md-12"> <form class="form-horizontal" data-ng-submit="update()" novalidate> <fieldset> <div class="form-group"> <!-- Enter the title of the article --> <label class="control-label" for="title">Title of the News Article</label> <div class="controls"> <input type="text" ng-model="Update_Title" data-ng-model="newsFeed.title" id="title" class="form-control" placeholder="Title" required> </div> <!-- Enter the author --> <label class="control-label" for="author">Name of the author</label> <div class="controls"> <input type="text" data-ng-model="newsFeed.author" id="author" class="form-control" placeholder="Author's name" required> </div> <!-- Enter the description of the app --> <label class="control-label" for="body_text">The body of the article</label> <div class="controls"> <textarea rows="4" type="text" data-ng-model="newsFeed.body_text" id="body_text" class="form-control" placeholder="Articles body" required> </textarea> </div> <!-- Upload picture or give link --> <label class="control-label" for="imageURL">Link to an Articles image</label> <div class="controls"> <input type="text" data-ng-model="newsFeed.imageURL" id="imageURL" class="form-control" placeholder="Image URL" required> </div> <!-- link to the app --> <label class="control-label" for="articleLink">Link to the Article</label> <div class="controls"> <input type="text" data-ng-model="newsFeed.articleLink" id="articleLink" class="form-control" placeholder="Link to the Article" required> </div> <!--article date --> <label class="control-label" for="date">Date of the article</label> <br> <div style="display:inline-block; min-height:250px; max-height:250px; background: rgba(0, 0, 0, 0.0)"> <datepicker ng-model="date" min-date="minDate" show-weeks="true" class="well well-sm" custom-class="getDayClass(date, mode)"></datepicker> </div> </div> <div class="form-group"> <input ng-model="Update_Button" type="submit" value="Update" class="btn btn-default"> </div> <div data-ng-show="error" class="text-danger"> <strong data-ng-bind="error"></strong> </div> </fieldset> </form> </div> </section> </section>
CEN3031-7C/project
modules/news-feeds/client/views/edit-news-feed.client.view_old.html
HTML
mit
3,248
using PlayFab.SharedModels; using PlayFab.Internal; namespace PlayFab.Events { public partial class PlayFabEvents { public delegate void PlayFabErrorEvent(PlayFabRequestCommon request, PlayFabError error); public delegate void PlayFabResultEvent<in TResult>(TResult result) where TResult : PlayFabResultCommon; public delegate void PlayFabRequestEvent<in TRequest>(TRequest request) where TRequest : PlayFabRequestCommon; public event PlayFabErrorEvent OnGlobalErrorEvent; private static PlayFabEvents _instance; /// <summary> /// Private constructor because we call PlayFabEvents.init(); /// </summary> private PlayFabEvents() { } public static PlayFabEvents Init() { if (_instance == null) { _instance = new PlayFabEvents(); } PlayFabHttp.ApiProcessingEventHandler += _instance.OnProcessingEvent; PlayFabHttp.ApiProcessingErrorEventHandler += _instance.OnProcessingErrorEvent; return _instance; } public void UnregisterInstance(object instance) { #if !DISABLE_PLAYFABCLIENT_API if (OnLoginResultEvent != null) { foreach (var each in OnLoginResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginResultEvent -= (PlayFabResultEvent<ClientModels.LoginResult>)each; } } } #endif #if ENABLE_PLAYFABADMIN_API if (OnAdminCreatePlayerSharedSecretRequestEvent != null) { foreach (var each in OnAdminCreatePlayerSharedSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreatePlayerSharedSecretRequestEvent -= (PlayFabRequestEvent<AdminModels.CreatePlayerSharedSecretRequest>)each; } } } if (OnAdminCreatePlayerSharedSecretResultEvent != null) { foreach (var each in OnAdminCreatePlayerSharedSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreatePlayerSharedSecretResultEvent -= (PlayFabResultEvent<AdminModels.CreatePlayerSharedSecretResult>)each; } } } if (OnAdminDeletePlayerSharedSecretRequestEvent != null) { foreach (var each in OnAdminDeletePlayerSharedSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeletePlayerSharedSecretRequestEvent -= (PlayFabRequestEvent<AdminModels.DeletePlayerSharedSecretRequest>)each; } } } if (OnAdminDeletePlayerSharedSecretResultEvent != null) { foreach (var each in OnAdminDeletePlayerSharedSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeletePlayerSharedSecretResultEvent -= (PlayFabResultEvent<AdminModels.DeletePlayerSharedSecretResult>)each; } } } if (OnAdminGetPlayerSharedSecretsRequestEvent != null) { foreach (var each in OnAdminGetPlayerSharedSecretsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerSharedSecretsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayerSharedSecretsRequest>)each; } } } if (OnAdminGetPlayerSharedSecretsResultEvent != null) { foreach (var each in OnAdminGetPlayerSharedSecretsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerSharedSecretsResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayerSharedSecretsResult>)each; } } } if (OnAdminGetPolicyRequestEvent != null) { foreach (var each in OnAdminGetPolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPolicyRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPolicyRequest>)each; } } } if (OnAdminGetPolicyResultEvent != null) { foreach (var each in OnAdminGetPolicyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPolicyResultEvent -= (PlayFabResultEvent<AdminModels.GetPolicyResponse>)each; } } } if (OnAdminSetPlayerSecretRequestEvent != null) { foreach (var each in OnAdminSetPlayerSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPlayerSecretRequestEvent -= (PlayFabRequestEvent<AdminModels.SetPlayerSecretRequest>)each; } } } if (OnAdminSetPlayerSecretResultEvent != null) { foreach (var each in OnAdminSetPlayerSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPlayerSecretResultEvent -= (PlayFabResultEvent<AdminModels.SetPlayerSecretResult>)each; } } } if (OnAdminUpdatePlayerSharedSecretRequestEvent != null) { foreach (var each in OnAdminUpdatePlayerSharedSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePlayerSharedSecretRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdatePlayerSharedSecretRequest>)each; } } } if (OnAdminUpdatePlayerSharedSecretResultEvent != null) { foreach (var each in OnAdminUpdatePlayerSharedSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePlayerSharedSecretResultEvent -= (PlayFabResultEvent<AdminModels.UpdatePlayerSharedSecretResult>)each; } } } if (OnAdminUpdatePolicyRequestEvent != null) { foreach (var each in OnAdminUpdatePolicyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePolicyRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdatePolicyRequest>)each; } } } if (OnAdminUpdatePolicyResultEvent != null) { foreach (var each in OnAdminUpdatePolicyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePolicyResultEvent -= (PlayFabResultEvent<AdminModels.UpdatePolicyResponse>)each; } } } if (OnAdminBanUsersRequestEvent != null) { foreach (var each in OnAdminBanUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminBanUsersRequestEvent -= (PlayFabRequestEvent<AdminModels.BanUsersRequest>)each; } } } if (OnAdminBanUsersResultEvent != null) { foreach (var each in OnAdminBanUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminBanUsersResultEvent -= (PlayFabResultEvent<AdminModels.BanUsersResult>)each; } } } if (OnAdminGetUserAccountInfoRequestEvent != null) { foreach (var each in OnAdminGetUserAccountInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserAccountInfoRequestEvent -= (PlayFabRequestEvent<AdminModels.LookupUserAccountInfoRequest>)each; } } } if (OnAdminGetUserAccountInfoResultEvent != null) { foreach (var each in OnAdminGetUserAccountInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserAccountInfoResultEvent -= (PlayFabResultEvent<AdminModels.LookupUserAccountInfoResult>)each; } } } if (OnAdminGetUserBansRequestEvent != null) { foreach (var each in OnAdminGetUserBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserBansRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserBansRequest>)each; } } } if (OnAdminGetUserBansResultEvent != null) { foreach (var each in OnAdminGetUserBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserBansResultEvent -= (PlayFabResultEvent<AdminModels.GetUserBansResult>)each; } } } if (OnAdminResetUsersRequestEvent != null) { foreach (var each in OnAdminResetUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetUsersRequestEvent -= (PlayFabRequestEvent<AdminModels.ResetUsersRequest>)each; } } } if (OnAdminResetUsersResultEvent != null) { foreach (var each in OnAdminResetUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetUsersResultEvent -= (PlayFabResultEvent<AdminModels.BlankResult>)each; } } } if (OnAdminRevokeAllBansForUserRequestEvent != null) { foreach (var each in OnAdminRevokeAllBansForUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeAllBansForUserRequestEvent -= (PlayFabRequestEvent<AdminModels.RevokeAllBansForUserRequest>)each; } } } if (OnAdminRevokeAllBansForUserResultEvent != null) { foreach (var each in OnAdminRevokeAllBansForUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeAllBansForUserResultEvent -= (PlayFabResultEvent<AdminModels.RevokeAllBansForUserResult>)each; } } } if (OnAdminRevokeBansRequestEvent != null) { foreach (var each in OnAdminRevokeBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeBansRequestEvent -= (PlayFabRequestEvent<AdminModels.RevokeBansRequest>)each; } } } if (OnAdminRevokeBansResultEvent != null) { foreach (var each in OnAdminRevokeBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeBansResultEvent -= (PlayFabResultEvent<AdminModels.RevokeBansResult>)each; } } } if (OnAdminSendAccountRecoveryEmailRequestEvent != null) { foreach (var each in OnAdminSendAccountRecoveryEmailRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSendAccountRecoveryEmailRequestEvent -= (PlayFabRequestEvent<AdminModels.SendAccountRecoveryEmailRequest>)each; } } } if (OnAdminSendAccountRecoveryEmailResultEvent != null) { foreach (var each in OnAdminSendAccountRecoveryEmailResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSendAccountRecoveryEmailResultEvent -= (PlayFabResultEvent<AdminModels.SendAccountRecoveryEmailResult>)each; } } } if (OnAdminUpdateBansRequestEvent != null) { foreach (var each in OnAdminUpdateBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateBansRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateBansRequest>)each; } } } if (OnAdminUpdateBansResultEvent != null) { foreach (var each in OnAdminUpdateBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateBansResultEvent -= (PlayFabResultEvent<AdminModels.UpdateBansResult>)each; } } } if (OnAdminUpdateUserTitleDisplayNameRequestEvent != null) { foreach (var each in OnAdminUpdateUserTitleDisplayNameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserTitleDisplayNameRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserTitleDisplayNameRequest>)each; } } } if (OnAdminUpdateUserTitleDisplayNameResultEvent != null) { foreach (var each in OnAdminUpdateUserTitleDisplayNameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserTitleDisplayNameResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserTitleDisplayNameResult>)each; } } } if (OnAdminCreatePlayerStatisticDefinitionRequestEvent != null) { foreach (var each in OnAdminCreatePlayerStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreatePlayerStatisticDefinitionRequestEvent -= (PlayFabRequestEvent<AdminModels.CreatePlayerStatisticDefinitionRequest>)each; } } } if (OnAdminCreatePlayerStatisticDefinitionResultEvent != null) { foreach (var each in OnAdminCreatePlayerStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreatePlayerStatisticDefinitionResultEvent -= (PlayFabResultEvent<AdminModels.CreatePlayerStatisticDefinitionResult>)each; } } } if (OnAdminDeleteUsersRequestEvent != null) { foreach (var each in OnAdminDeleteUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteUsersRequestEvent -= (PlayFabRequestEvent<AdminModels.DeleteUsersRequest>)each; } } } if (OnAdminDeleteUsersResultEvent != null) { foreach (var each in OnAdminDeleteUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteUsersResultEvent -= (PlayFabResultEvent<AdminModels.DeleteUsersResult>)each; } } } if (OnAdminGetDataReportRequestEvent != null) { foreach (var each in OnAdminGetDataReportRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetDataReportRequestEvent -= (PlayFabRequestEvent<AdminModels.GetDataReportRequest>)each; } } } if (OnAdminGetDataReportResultEvent != null) { foreach (var each in OnAdminGetDataReportResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetDataReportResultEvent -= (PlayFabResultEvent<AdminModels.GetDataReportResult>)each; } } } if (OnAdminGetPlayerStatisticDefinitionsRequestEvent != null) { foreach (var each in OnAdminGetPlayerStatisticDefinitionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerStatisticDefinitionsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayerStatisticDefinitionsRequest>)each; } } } if (OnAdminGetPlayerStatisticDefinitionsResultEvent != null) { foreach (var each in OnAdminGetPlayerStatisticDefinitionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerStatisticDefinitionsResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayerStatisticDefinitionsResult>)each; } } } if (OnAdminGetPlayerStatisticVersionsRequestEvent != null) { foreach (var each in OnAdminGetPlayerStatisticVersionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerStatisticVersionsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayerStatisticVersionsRequest>)each; } } } if (OnAdminGetPlayerStatisticVersionsResultEvent != null) { foreach (var each in OnAdminGetPlayerStatisticVersionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerStatisticVersionsResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayerStatisticVersionsResult>)each; } } } if (OnAdminGetUserDataRequestEvent != null) { foreach (var each in OnAdminGetUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserDataResultEvent != null) { foreach (var each in OnAdminGetUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminGetUserInternalDataRequestEvent != null) { foreach (var each in OnAdminGetUserInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserInternalDataResultEvent != null) { foreach (var each in OnAdminGetUserInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminGetUserPublisherDataRequestEvent != null) { foreach (var each in OnAdminGetUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserPublisherDataResultEvent != null) { foreach (var each in OnAdminGetUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminGetUserPublisherInternalDataRequestEvent != null) { foreach (var each in OnAdminGetUserPublisherInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserPublisherInternalDataResultEvent != null) { foreach (var each in OnAdminGetUserPublisherInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminGetUserPublisherReadOnlyDataRequestEvent != null) { foreach (var each in OnAdminGetUserPublisherReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherReadOnlyDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserPublisherReadOnlyDataResultEvent != null) { foreach (var each in OnAdminGetUserPublisherReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserPublisherReadOnlyDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminGetUserReadOnlyDataRequestEvent != null) { foreach (var each in OnAdminGetUserReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserReadOnlyDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserDataRequest>)each; } } } if (OnAdminGetUserReadOnlyDataResultEvent != null) { foreach (var each in OnAdminGetUserReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserReadOnlyDataResultEvent -= (PlayFabResultEvent<AdminModels.GetUserDataResult>)each; } } } if (OnAdminIncrementPlayerStatisticVersionRequestEvent != null) { foreach (var each in OnAdminIncrementPlayerStatisticVersionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminIncrementPlayerStatisticVersionRequestEvent -= (PlayFabRequestEvent<AdminModels.IncrementPlayerStatisticVersionRequest>)each; } } } if (OnAdminIncrementPlayerStatisticVersionResultEvent != null) { foreach (var each in OnAdminIncrementPlayerStatisticVersionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminIncrementPlayerStatisticVersionResultEvent -= (PlayFabResultEvent<AdminModels.IncrementPlayerStatisticVersionResult>)each; } } } if (OnAdminRefundPurchaseRequestEvent != null) { foreach (var each in OnAdminRefundPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRefundPurchaseRequestEvent -= (PlayFabRequestEvent<AdminModels.RefundPurchaseRequest>)each; } } } if (OnAdminRefundPurchaseResultEvent != null) { foreach (var each in OnAdminRefundPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRefundPurchaseResultEvent -= (PlayFabResultEvent<AdminModels.RefundPurchaseResponse>)each; } } } if (OnAdminResetUserStatisticsRequestEvent != null) { foreach (var each in OnAdminResetUserStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetUserStatisticsRequestEvent -= (PlayFabRequestEvent<AdminModels.ResetUserStatisticsRequest>)each; } } } if (OnAdminResetUserStatisticsResultEvent != null) { foreach (var each in OnAdminResetUserStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetUserStatisticsResultEvent -= (PlayFabResultEvent<AdminModels.ResetUserStatisticsResult>)each; } } } if (OnAdminResolvePurchaseDisputeRequestEvent != null) { foreach (var each in OnAdminResolvePurchaseDisputeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResolvePurchaseDisputeRequestEvent -= (PlayFabRequestEvent<AdminModels.ResolvePurchaseDisputeRequest>)each; } } } if (OnAdminResolvePurchaseDisputeResultEvent != null) { foreach (var each in OnAdminResolvePurchaseDisputeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResolvePurchaseDisputeResultEvent -= (PlayFabResultEvent<AdminModels.ResolvePurchaseDisputeResponse>)each; } } } if (OnAdminUpdatePlayerStatisticDefinitionRequestEvent != null) { foreach (var each in OnAdminUpdatePlayerStatisticDefinitionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePlayerStatisticDefinitionRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdatePlayerStatisticDefinitionRequest>)each; } } } if (OnAdminUpdatePlayerStatisticDefinitionResultEvent != null) { foreach (var each in OnAdminUpdatePlayerStatisticDefinitionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdatePlayerStatisticDefinitionResultEvent -= (PlayFabResultEvent<AdminModels.UpdatePlayerStatisticDefinitionResult>)each; } } } if (OnAdminUpdateUserDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserDataRequest>)each; } } } if (OnAdminUpdateUserDataResultEvent != null) { foreach (var each in OnAdminUpdateUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminUpdateUserInternalDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserInternalDataRequest>)each; } } } if (OnAdminUpdateUserInternalDataResultEvent != null) { foreach (var each in OnAdminUpdateUserInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminUpdateUserPublisherDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserDataRequest>)each; } } } if (OnAdminUpdateUserPublisherDataResultEvent != null) { foreach (var each in OnAdminUpdateUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminUpdateUserPublisherInternalDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserPublisherInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserInternalDataRequest>)each; } } } if (OnAdminUpdateUserPublisherInternalDataResultEvent != null) { foreach (var each in OnAdminUpdateUserPublisherInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminUpdateUserPublisherReadOnlyDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserPublisherReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherReadOnlyDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserDataRequest>)each; } } } if (OnAdminUpdateUserPublisherReadOnlyDataResultEvent != null) { foreach (var each in OnAdminUpdateUserPublisherReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserPublisherReadOnlyDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminUpdateUserReadOnlyDataRequestEvent != null) { foreach (var each in OnAdminUpdateUserReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserReadOnlyDataRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateUserDataRequest>)each; } } } if (OnAdminUpdateUserReadOnlyDataResultEvent != null) { foreach (var each in OnAdminUpdateUserReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateUserReadOnlyDataResultEvent -= (PlayFabResultEvent<AdminModels.UpdateUserDataResult>)each; } } } if (OnAdminAddNewsRequestEvent != null) { foreach (var each in OnAdminAddNewsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddNewsRequestEvent -= (PlayFabRequestEvent<AdminModels.AddNewsRequest>)each; } } } if (OnAdminAddNewsResultEvent != null) { foreach (var each in OnAdminAddNewsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddNewsResultEvent -= (PlayFabResultEvent<AdminModels.AddNewsResult>)each; } } } if (OnAdminAddVirtualCurrencyTypesRequestEvent != null) { foreach (var each in OnAdminAddVirtualCurrencyTypesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddVirtualCurrencyTypesRequestEvent -= (PlayFabRequestEvent<AdminModels.AddVirtualCurrencyTypesRequest>)each; } } } if (OnAdminAddVirtualCurrencyTypesResultEvent != null) { foreach (var each in OnAdminAddVirtualCurrencyTypesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddVirtualCurrencyTypesResultEvent -= (PlayFabResultEvent<AdminModels.BlankResult>)each; } } } if (OnAdminDeleteStoreRequestEvent != null) { foreach (var each in OnAdminDeleteStoreRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteStoreRequestEvent -= (PlayFabRequestEvent<AdminModels.DeleteStoreRequest>)each; } } } if (OnAdminDeleteStoreResultEvent != null) { foreach (var each in OnAdminDeleteStoreResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteStoreResultEvent -= (PlayFabResultEvent<AdminModels.DeleteStoreResult>)each; } } } if (OnAdminGetCatalogItemsRequestEvent != null) { foreach (var each in OnAdminGetCatalogItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCatalogItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetCatalogItemsRequest>)each; } } } if (OnAdminGetCatalogItemsResultEvent != null) { foreach (var each in OnAdminGetCatalogItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCatalogItemsResultEvent -= (PlayFabResultEvent<AdminModels.GetCatalogItemsResult>)each; } } } if (OnAdminGetPublisherDataRequestEvent != null) { foreach (var each in OnAdminGetPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPublisherDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPublisherDataRequest>)each; } } } if (OnAdminGetPublisherDataResultEvent != null) { foreach (var each in OnAdminGetPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPublisherDataResultEvent -= (PlayFabResultEvent<AdminModels.GetPublisherDataResult>)each; } } } if (OnAdminGetRandomResultTablesRequestEvent != null) { foreach (var each in OnAdminGetRandomResultTablesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetRandomResultTablesRequestEvent -= (PlayFabRequestEvent<AdminModels.GetRandomResultTablesRequest>)each; } } } if (OnAdminGetRandomResultTablesResultEvent != null) { foreach (var each in OnAdminGetRandomResultTablesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetRandomResultTablesResultEvent -= (PlayFabResultEvent<AdminModels.GetRandomResultTablesResult>)each; } } } if (OnAdminGetStoreItemsRequestEvent != null) { foreach (var each in OnAdminGetStoreItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetStoreItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetStoreItemsRequest>)each; } } } if (OnAdminGetStoreItemsResultEvent != null) { foreach (var each in OnAdminGetStoreItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetStoreItemsResultEvent -= (PlayFabResultEvent<AdminModels.GetStoreItemsResult>)each; } } } if (OnAdminGetTitleDataRequestEvent != null) { foreach (var each in OnAdminGetTitleDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTitleDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTitleDataRequest>)each; } } } if (OnAdminGetTitleDataResultEvent != null) { foreach (var each in OnAdminGetTitleDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTitleDataResultEvent -= (PlayFabResultEvent<AdminModels.GetTitleDataResult>)each; } } } if (OnAdminGetTitleInternalDataRequestEvent != null) { foreach (var each in OnAdminGetTitleInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTitleInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTitleDataRequest>)each; } } } if (OnAdminGetTitleInternalDataResultEvent != null) { foreach (var each in OnAdminGetTitleInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTitleInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.GetTitleDataResult>)each; } } } if (OnAdminListVirtualCurrencyTypesRequestEvent != null) { foreach (var each in OnAdminListVirtualCurrencyTypesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListVirtualCurrencyTypesRequestEvent -= (PlayFabRequestEvent<AdminModels.ListVirtualCurrencyTypesRequest>)each; } } } if (OnAdminListVirtualCurrencyTypesResultEvent != null) { foreach (var each in OnAdminListVirtualCurrencyTypesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListVirtualCurrencyTypesResultEvent -= (PlayFabResultEvent<AdminModels.ListVirtualCurrencyTypesResult>)each; } } } if (OnAdminRemoveVirtualCurrencyTypesRequestEvent != null) { foreach (var each in OnAdminRemoveVirtualCurrencyTypesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemoveVirtualCurrencyTypesRequestEvent -= (PlayFabRequestEvent<AdminModels.RemoveVirtualCurrencyTypesRequest>)each; } } } if (OnAdminRemoveVirtualCurrencyTypesResultEvent != null) { foreach (var each in OnAdminRemoveVirtualCurrencyTypesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemoveVirtualCurrencyTypesResultEvent -= (PlayFabResultEvent<AdminModels.BlankResult>)each; } } } if (OnAdminSetCatalogItemsRequestEvent != null) { foreach (var each in OnAdminSetCatalogItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetCatalogItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateCatalogItemsRequest>)each; } } } if (OnAdminSetCatalogItemsResultEvent != null) { foreach (var each in OnAdminSetCatalogItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetCatalogItemsResultEvent -= (PlayFabResultEvent<AdminModels.UpdateCatalogItemsResult>)each; } } } if (OnAdminSetStoreItemsRequestEvent != null) { foreach (var each in OnAdminSetStoreItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetStoreItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateStoreItemsRequest>)each; } } } if (OnAdminSetStoreItemsResultEvent != null) { foreach (var each in OnAdminSetStoreItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetStoreItemsResultEvent -= (PlayFabResultEvent<AdminModels.UpdateStoreItemsResult>)each; } } } if (OnAdminSetTitleDataRequestEvent != null) { foreach (var each in OnAdminSetTitleDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetTitleDataRequestEvent -= (PlayFabRequestEvent<AdminModels.SetTitleDataRequest>)each; } } } if (OnAdminSetTitleDataResultEvent != null) { foreach (var each in OnAdminSetTitleDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetTitleDataResultEvent -= (PlayFabResultEvent<AdminModels.SetTitleDataResult>)each; } } } if (OnAdminSetTitleInternalDataRequestEvent != null) { foreach (var each in OnAdminSetTitleInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetTitleInternalDataRequestEvent -= (PlayFabRequestEvent<AdminModels.SetTitleDataRequest>)each; } } } if (OnAdminSetTitleInternalDataResultEvent != null) { foreach (var each in OnAdminSetTitleInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetTitleInternalDataResultEvent -= (PlayFabResultEvent<AdminModels.SetTitleDataResult>)each; } } } if (OnAdminSetupPushNotificationRequestEvent != null) { foreach (var each in OnAdminSetupPushNotificationRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetupPushNotificationRequestEvent -= (PlayFabRequestEvent<AdminModels.SetupPushNotificationRequest>)each; } } } if (OnAdminSetupPushNotificationResultEvent != null) { foreach (var each in OnAdminSetupPushNotificationResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetupPushNotificationResultEvent -= (PlayFabResultEvent<AdminModels.SetupPushNotificationResult>)each; } } } if (OnAdminUpdateCatalogItemsRequestEvent != null) { foreach (var each in OnAdminUpdateCatalogItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateCatalogItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateCatalogItemsRequest>)each; } } } if (OnAdminUpdateCatalogItemsResultEvent != null) { foreach (var each in OnAdminUpdateCatalogItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateCatalogItemsResultEvent -= (PlayFabResultEvent<AdminModels.UpdateCatalogItemsResult>)each; } } } if (OnAdminUpdateRandomResultTablesRequestEvent != null) { foreach (var each in OnAdminUpdateRandomResultTablesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateRandomResultTablesRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateRandomResultTablesRequest>)each; } } } if (OnAdminUpdateRandomResultTablesResultEvent != null) { foreach (var each in OnAdminUpdateRandomResultTablesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateRandomResultTablesResultEvent -= (PlayFabResultEvent<AdminModels.UpdateRandomResultTablesResult>)each; } } } if (OnAdminUpdateStoreItemsRequestEvent != null) { foreach (var each in OnAdminUpdateStoreItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateStoreItemsRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateStoreItemsRequest>)each; } } } if (OnAdminUpdateStoreItemsResultEvent != null) { foreach (var each in OnAdminUpdateStoreItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateStoreItemsResultEvent -= (PlayFabResultEvent<AdminModels.UpdateStoreItemsResult>)each; } } } if (OnAdminAddUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnAdminAddUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<AdminModels.AddUserVirtualCurrencyRequest>)each; } } } if (OnAdminAddUserVirtualCurrencyResultEvent != null) { foreach (var each in OnAdminAddUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<AdminModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnAdminGetUserInventoryRequestEvent != null) { foreach (var each in OnAdminGetUserInventoryRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserInventoryRequestEvent -= (PlayFabRequestEvent<AdminModels.GetUserInventoryRequest>)each; } } } if (OnAdminGetUserInventoryResultEvent != null) { foreach (var each in OnAdminGetUserInventoryResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetUserInventoryResultEvent -= (PlayFabResultEvent<AdminModels.GetUserInventoryResult>)each; } } } if (OnAdminGrantItemsToUsersRequestEvent != null) { foreach (var each in OnAdminGrantItemsToUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGrantItemsToUsersRequestEvent -= (PlayFabRequestEvent<AdminModels.GrantItemsToUsersRequest>)each; } } } if (OnAdminGrantItemsToUsersResultEvent != null) { foreach (var each in OnAdminGrantItemsToUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGrantItemsToUsersResultEvent -= (PlayFabResultEvent<AdminModels.GrantItemsToUsersResult>)each; } } } if (OnAdminRevokeInventoryItemRequestEvent != null) { foreach (var each in OnAdminRevokeInventoryItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeInventoryItemRequestEvent -= (PlayFabRequestEvent<AdminModels.RevokeInventoryItemRequest>)each; } } } if (OnAdminRevokeInventoryItemResultEvent != null) { foreach (var each in OnAdminRevokeInventoryItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRevokeInventoryItemResultEvent -= (PlayFabResultEvent<AdminModels.RevokeInventoryResult>)each; } } } if (OnAdminSubtractUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnAdminSubtractUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSubtractUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<AdminModels.SubtractUserVirtualCurrencyRequest>)each; } } } if (OnAdminSubtractUserVirtualCurrencyResultEvent != null) { foreach (var each in OnAdminSubtractUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSubtractUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<AdminModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnAdminGetMatchmakerGameInfoRequestEvent != null) { foreach (var each in OnAdminGetMatchmakerGameInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameInfoRequestEvent -= (PlayFabRequestEvent<AdminModels.GetMatchmakerGameInfoRequest>)each; } } } if (OnAdminGetMatchmakerGameInfoResultEvent != null) { foreach (var each in OnAdminGetMatchmakerGameInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameInfoResultEvent -= (PlayFabResultEvent<AdminModels.GetMatchmakerGameInfoResult>)each; } } } if (OnAdminGetMatchmakerGameModesRequestEvent != null) { foreach (var each in OnAdminGetMatchmakerGameModesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameModesRequestEvent -= (PlayFabRequestEvent<AdminModels.GetMatchmakerGameModesRequest>)each; } } } if (OnAdminGetMatchmakerGameModesResultEvent != null) { foreach (var each in OnAdminGetMatchmakerGameModesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetMatchmakerGameModesResultEvent -= (PlayFabResultEvent<AdminModels.GetMatchmakerGameModesResult>)each; } } } if (OnAdminModifyMatchmakerGameModesRequestEvent != null) { foreach (var each in OnAdminModifyMatchmakerGameModesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyMatchmakerGameModesRequestEvent -= (PlayFabRequestEvent<AdminModels.ModifyMatchmakerGameModesRequest>)each; } } } if (OnAdminModifyMatchmakerGameModesResultEvent != null) { foreach (var each in OnAdminModifyMatchmakerGameModesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyMatchmakerGameModesResultEvent -= (PlayFabResultEvent<AdminModels.ModifyMatchmakerGameModesResult>)each; } } } if (OnAdminAddServerBuildRequestEvent != null) { foreach (var each in OnAdminAddServerBuildRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddServerBuildRequestEvent -= (PlayFabRequestEvent<AdminModels.AddServerBuildRequest>)each; } } } if (OnAdminAddServerBuildResultEvent != null) { foreach (var each in OnAdminAddServerBuildResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddServerBuildResultEvent -= (PlayFabResultEvent<AdminModels.AddServerBuildResult>)each; } } } if (OnAdminGetServerBuildInfoRequestEvent != null) { foreach (var each in OnAdminGetServerBuildInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetServerBuildInfoRequestEvent -= (PlayFabRequestEvent<AdminModels.GetServerBuildInfoRequest>)each; } } } if (OnAdminGetServerBuildInfoResultEvent != null) { foreach (var each in OnAdminGetServerBuildInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetServerBuildInfoResultEvent -= (PlayFabResultEvent<AdminModels.GetServerBuildInfoResult>)each; } } } if (OnAdminGetServerBuildUploadUrlRequestEvent != null) { foreach (var each in OnAdminGetServerBuildUploadUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetServerBuildUploadUrlRequestEvent -= (PlayFabRequestEvent<AdminModels.GetServerBuildUploadURLRequest>)each; } } } if (OnAdminGetServerBuildUploadUrlResultEvent != null) { foreach (var each in OnAdminGetServerBuildUploadUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetServerBuildUploadUrlResultEvent -= (PlayFabResultEvent<AdminModels.GetServerBuildUploadURLResult>)each; } } } if (OnAdminListServerBuildsRequestEvent != null) { foreach (var each in OnAdminListServerBuildsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListServerBuildsRequestEvent -= (PlayFabRequestEvent<AdminModels.ListBuildsRequest>)each; } } } if (OnAdminListServerBuildsResultEvent != null) { foreach (var each in OnAdminListServerBuildsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminListServerBuildsResultEvent -= (PlayFabResultEvent<AdminModels.ListBuildsResult>)each; } } } if (OnAdminModifyServerBuildRequestEvent != null) { foreach (var each in OnAdminModifyServerBuildRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyServerBuildRequestEvent -= (PlayFabRequestEvent<AdminModels.ModifyServerBuildRequest>)each; } } } if (OnAdminModifyServerBuildResultEvent != null) { foreach (var each in OnAdminModifyServerBuildResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminModifyServerBuildResultEvent -= (PlayFabResultEvent<AdminModels.ModifyServerBuildResult>)each; } } } if (OnAdminRemoveServerBuildRequestEvent != null) { foreach (var each in OnAdminRemoveServerBuildRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemoveServerBuildRequestEvent -= (PlayFabRequestEvent<AdminModels.RemoveServerBuildRequest>)each; } } } if (OnAdminRemoveServerBuildResultEvent != null) { foreach (var each in OnAdminRemoveServerBuildResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemoveServerBuildResultEvent -= (PlayFabResultEvent<AdminModels.RemoveServerBuildResult>)each; } } } if (OnAdminSetPublisherDataRequestEvent != null) { foreach (var each in OnAdminSetPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPublisherDataRequestEvent -= (PlayFabRequestEvent<AdminModels.SetPublisherDataRequest>)each; } } } if (OnAdminSetPublisherDataResultEvent != null) { foreach (var each in OnAdminSetPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPublisherDataResultEvent -= (PlayFabResultEvent<AdminModels.SetPublisherDataResult>)each; } } } if (OnAdminGetCloudScriptRevisionRequestEvent != null) { foreach (var each in OnAdminGetCloudScriptRevisionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptRevisionRequestEvent -= (PlayFabRequestEvent<AdminModels.GetCloudScriptRevisionRequest>)each; } } } if (OnAdminGetCloudScriptRevisionResultEvent != null) { foreach (var each in OnAdminGetCloudScriptRevisionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptRevisionResultEvent -= (PlayFabResultEvent<AdminModels.GetCloudScriptRevisionResult>)each; } } } if (OnAdminGetCloudScriptVersionsRequestEvent != null) { foreach (var each in OnAdminGetCloudScriptVersionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptVersionsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetCloudScriptVersionsRequest>)each; } } } if (OnAdminGetCloudScriptVersionsResultEvent != null) { foreach (var each in OnAdminGetCloudScriptVersionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptVersionsResultEvent -= (PlayFabResultEvent<AdminModels.GetCloudScriptVersionsResult>)each; } } } if (OnAdminSetPublishedRevisionRequestEvent != null) { foreach (var each in OnAdminSetPublishedRevisionRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPublishedRevisionRequestEvent -= (PlayFabRequestEvent<AdminModels.SetPublishedRevisionRequest>)each; } } } if (OnAdminSetPublishedRevisionResultEvent != null) { foreach (var each in OnAdminSetPublishedRevisionResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminSetPublishedRevisionResultEvent -= (PlayFabResultEvent<AdminModels.SetPublishedRevisionResult>)each; } } } if (OnAdminUpdateCloudScriptRequestEvent != null) { foreach (var each in OnAdminUpdateCloudScriptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateCloudScriptRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateCloudScriptRequest>)each; } } } if (OnAdminUpdateCloudScriptResultEvent != null) { foreach (var each in OnAdminUpdateCloudScriptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateCloudScriptResultEvent -= (PlayFabResultEvent<AdminModels.UpdateCloudScriptResult>)each; } } } if (OnAdminDeleteContentRequestEvent != null) { foreach (var each in OnAdminDeleteContentRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteContentRequestEvent -= (PlayFabRequestEvent<AdminModels.DeleteContentRequest>)each; } } } if (OnAdminDeleteContentResultEvent != null) { foreach (var each in OnAdminDeleteContentResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteContentResultEvent -= (PlayFabResultEvent<AdminModels.BlankResult>)each; } } } if (OnAdminGetContentListRequestEvent != null) { foreach (var each in OnAdminGetContentListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetContentListRequestEvent -= (PlayFabRequestEvent<AdminModels.GetContentListRequest>)each; } } } if (OnAdminGetContentListResultEvent != null) { foreach (var each in OnAdminGetContentListResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetContentListResultEvent -= (PlayFabResultEvent<AdminModels.GetContentListResult>)each; } } } if (OnAdminGetContentUploadUrlRequestEvent != null) { foreach (var each in OnAdminGetContentUploadUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetContentUploadUrlRequestEvent -= (PlayFabRequestEvent<AdminModels.GetContentUploadUrlRequest>)each; } } } if (OnAdminGetContentUploadUrlResultEvent != null) { foreach (var each in OnAdminGetContentUploadUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetContentUploadUrlResultEvent -= (PlayFabResultEvent<AdminModels.GetContentUploadUrlResult>)each; } } } if (OnAdminResetCharacterStatisticsRequestEvent != null) { foreach (var each in OnAdminResetCharacterStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetCharacterStatisticsRequestEvent -= (PlayFabRequestEvent<AdminModels.ResetCharacterStatisticsRequest>)each; } } } if (OnAdminResetCharacterStatisticsResultEvent != null) { foreach (var each in OnAdminResetCharacterStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminResetCharacterStatisticsResultEvent -= (PlayFabResultEvent<AdminModels.ResetCharacterStatisticsResult>)each; } } } if (OnAdminAddPlayerTagRequestEvent != null) { foreach (var each in OnAdminAddPlayerTagRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddPlayerTagRequestEvent -= (PlayFabRequestEvent<AdminModels.AddPlayerTagRequest>)each; } } } if (OnAdminAddPlayerTagResultEvent != null) { foreach (var each in OnAdminAddPlayerTagResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAddPlayerTagResultEvent -= (PlayFabResultEvent<AdminModels.AddPlayerTagResult>)each; } } } if (OnAdminGetAllActionGroupsRequestEvent != null) { foreach (var each in OnAdminGetAllActionGroupsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetAllActionGroupsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetAllActionGroupsRequest>)each; } } } if (OnAdminGetAllActionGroupsResultEvent != null) { foreach (var each in OnAdminGetAllActionGroupsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetAllActionGroupsResultEvent -= (PlayFabResultEvent<AdminModels.GetAllActionGroupsResult>)each; } } } if (OnAdminGetAllSegmentsRequestEvent != null) { foreach (var each in OnAdminGetAllSegmentsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetAllSegmentsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetAllSegmentsRequest>)each; } } } if (OnAdminGetAllSegmentsResultEvent != null) { foreach (var each in OnAdminGetAllSegmentsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetAllSegmentsResultEvent -= (PlayFabResultEvent<AdminModels.GetAllSegmentsResult>)each; } } } if (OnAdminGetPlayerSegmentsRequestEvent != null) { foreach (var each in OnAdminGetPlayerSegmentsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerSegmentsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayersSegmentsRequest>)each; } } } if (OnAdminGetPlayerSegmentsResultEvent != null) { foreach (var each in OnAdminGetPlayerSegmentsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerSegmentsResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayerSegmentsResult>)each; } } } if (OnAdminGetPlayersInSegmentRequestEvent != null) { foreach (var each in OnAdminGetPlayersInSegmentRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayersInSegmentRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayersInSegmentRequest>)each; } } } if (OnAdminGetPlayersInSegmentResultEvent != null) { foreach (var each in OnAdminGetPlayersInSegmentResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayersInSegmentResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayersInSegmentResult>)each; } } } if (OnAdminGetPlayerTagsRequestEvent != null) { foreach (var each in OnAdminGetPlayerTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerTagsRequestEvent -= (PlayFabRequestEvent<AdminModels.GetPlayerTagsRequest>)each; } } } if (OnAdminGetPlayerTagsResultEvent != null) { foreach (var each in OnAdminGetPlayerTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetPlayerTagsResultEvent -= (PlayFabResultEvent<AdminModels.GetPlayerTagsResult>)each; } } } if (OnAdminRemovePlayerTagRequestEvent != null) { foreach (var each in OnAdminRemovePlayerTagRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemovePlayerTagRequestEvent -= (PlayFabRequestEvent<AdminModels.RemovePlayerTagRequest>)each; } } } if (OnAdminRemovePlayerTagResultEvent != null) { foreach (var each in OnAdminRemovePlayerTagResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRemovePlayerTagResultEvent -= (PlayFabResultEvent<AdminModels.RemovePlayerTagResult>)each; } } } if (OnAdminAbortTaskInstanceRequestEvent != null) { foreach (var each in OnAdminAbortTaskInstanceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAbortTaskInstanceRequestEvent -= (PlayFabRequestEvent<AdminModels.AbortTaskInstanceRequest>)each; } } } if (OnAdminAbortTaskInstanceResultEvent != null) { foreach (var each in OnAdminAbortTaskInstanceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminAbortTaskInstanceResultEvent -= (PlayFabResultEvent<AdminModels.EmptyResult>)each; } } } if (OnAdminCreateActionsOnPlayersInSegmentTaskRequestEvent != null) { foreach (var each in OnAdminCreateActionsOnPlayersInSegmentTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreateActionsOnPlayersInSegmentTaskRequestEvent -= (PlayFabRequestEvent<AdminModels.CreateActionsOnPlayerSegmentTaskRequest>)each; } } } if (OnAdminCreateActionsOnPlayersInSegmentTaskResultEvent != null) { foreach (var each in OnAdminCreateActionsOnPlayersInSegmentTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreateActionsOnPlayersInSegmentTaskResultEvent -= (PlayFabResultEvent<AdminModels.CreateTaskResult>)each; } } } if (OnAdminCreateCloudScriptTaskRequestEvent != null) { foreach (var each in OnAdminCreateCloudScriptTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreateCloudScriptTaskRequestEvent -= (PlayFabRequestEvent<AdminModels.CreateCloudScriptTaskRequest>)each; } } } if (OnAdminCreateCloudScriptTaskResultEvent != null) { foreach (var each in OnAdminCreateCloudScriptTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminCreateCloudScriptTaskResultEvent -= (PlayFabResultEvent<AdminModels.CreateTaskResult>)each; } } } if (OnAdminDeleteTaskRequestEvent != null) { foreach (var each in OnAdminDeleteTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteTaskRequestEvent -= (PlayFabRequestEvent<AdminModels.DeleteTaskRequest>)each; } } } if (OnAdminDeleteTaskResultEvent != null) { foreach (var each in OnAdminDeleteTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminDeleteTaskResultEvent -= (PlayFabResultEvent<AdminModels.EmptyResult>)each; } } } if (OnAdminGetActionsOnPlayersInSegmentTaskInstanceRequestEvent != null) { foreach (var each in OnAdminGetActionsOnPlayersInSegmentTaskInstanceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetActionsOnPlayersInSegmentTaskInstanceRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTaskInstanceRequest>)each; } } } if (OnAdminGetActionsOnPlayersInSegmentTaskInstanceResultEvent != null) { foreach (var each in OnAdminGetActionsOnPlayersInSegmentTaskInstanceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetActionsOnPlayersInSegmentTaskInstanceResultEvent -= (PlayFabResultEvent<AdminModels.GetActionsOnPlayersInSegmentTaskInstanceResult>)each; } } } if (OnAdminGetCloudScriptTaskInstanceRequestEvent != null) { foreach (var each in OnAdminGetCloudScriptTaskInstanceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptTaskInstanceRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTaskInstanceRequest>)each; } } } if (OnAdminGetCloudScriptTaskInstanceResultEvent != null) { foreach (var each in OnAdminGetCloudScriptTaskInstanceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetCloudScriptTaskInstanceResultEvent -= (PlayFabResultEvent<AdminModels.GetCloudScriptTaskInstanceResult>)each; } } } if (OnAdminGetTaskInstancesRequestEvent != null) { foreach (var each in OnAdminGetTaskInstancesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTaskInstancesRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTaskInstancesRequest>)each; } } } if (OnAdminGetTaskInstancesResultEvent != null) { foreach (var each in OnAdminGetTaskInstancesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTaskInstancesResultEvent -= (PlayFabResultEvent<AdminModels.GetTaskInstancesResult>)each; } } } if (OnAdminGetTasksRequestEvent != null) { foreach (var each in OnAdminGetTasksRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTasksRequestEvent -= (PlayFabRequestEvent<AdminModels.GetTasksRequest>)each; } } } if (OnAdminGetTasksResultEvent != null) { foreach (var each in OnAdminGetTasksResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminGetTasksResultEvent -= (PlayFabResultEvent<AdminModels.GetTasksResult>)each; } } } if (OnAdminRunTaskRequestEvent != null) { foreach (var each in OnAdminRunTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRunTaskRequestEvent -= (PlayFabRequestEvent<AdminModels.RunTaskRequest>)each; } } } if (OnAdminRunTaskResultEvent != null) { foreach (var each in OnAdminRunTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminRunTaskResultEvent -= (PlayFabResultEvent<AdminModels.RunTaskResult>)each; } } } if (OnAdminUpdateTaskRequestEvent != null) { foreach (var each in OnAdminUpdateTaskRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateTaskRequestEvent -= (PlayFabRequestEvent<AdminModels.UpdateTaskRequest>)each; } } } if (OnAdminUpdateTaskResultEvent != null) { foreach (var each in OnAdminUpdateTaskResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAdminUpdateTaskResultEvent -= (PlayFabResultEvent<AdminModels.EmptyResult>)each; } } } #endif #if ENABLE_PLAYFABSERVER_API if (OnMatchmakerAuthUserRequestEvent != null) { foreach (var each in OnMatchmakerAuthUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerAuthUserRequestEvent -= (PlayFabRequestEvent<MatchmakerModels.AuthUserRequest>)each; } } } if (OnMatchmakerAuthUserResultEvent != null) { foreach (var each in OnMatchmakerAuthUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerAuthUserResultEvent -= (PlayFabResultEvent<MatchmakerModels.AuthUserResponse>)each; } } } if (OnMatchmakerPlayerJoinedRequestEvent != null) { foreach (var each in OnMatchmakerPlayerJoinedRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerJoinedRequestEvent -= (PlayFabRequestEvent<MatchmakerModels.PlayerJoinedRequest>)each; } } } if (OnMatchmakerPlayerJoinedResultEvent != null) { foreach (var each in OnMatchmakerPlayerJoinedResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerJoinedResultEvent -= (PlayFabResultEvent<MatchmakerModels.PlayerJoinedResponse>)each; } } } if (OnMatchmakerPlayerLeftRequestEvent != null) { foreach (var each in OnMatchmakerPlayerLeftRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerLeftRequestEvent -= (PlayFabRequestEvent<MatchmakerModels.PlayerLeftRequest>)each; } } } if (OnMatchmakerPlayerLeftResultEvent != null) { foreach (var each in OnMatchmakerPlayerLeftResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerPlayerLeftResultEvent -= (PlayFabResultEvent<MatchmakerModels.PlayerLeftResponse>)each; } } } if (OnMatchmakerStartGameRequestEvent != null) { foreach (var each in OnMatchmakerStartGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerStartGameRequestEvent -= (PlayFabRequestEvent<MatchmakerModels.StartGameRequest>)each; } } } if (OnMatchmakerStartGameResultEvent != null) { foreach (var each in OnMatchmakerStartGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerStartGameResultEvent -= (PlayFabResultEvent<MatchmakerModels.StartGameResponse>)each; } } } if (OnMatchmakerUserInfoRequestEvent != null) { foreach (var each in OnMatchmakerUserInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerUserInfoRequestEvent -= (PlayFabRequestEvent<MatchmakerModels.UserInfoRequest>)each; } } } if (OnMatchmakerUserInfoResultEvent != null) { foreach (var each in OnMatchmakerUserInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakerUserInfoResultEvent -= (PlayFabResultEvent<MatchmakerModels.UserInfoResponse>)each; } } } #endif #if ENABLE_PLAYFABSERVER_API if (OnServerAuthenticateSessionTicketRequestEvent != null) { foreach (var each in OnServerAuthenticateSessionTicketRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAuthenticateSessionTicketRequestEvent -= (PlayFabRequestEvent<ServerModels.AuthenticateSessionTicketRequest>)each; } } } if (OnServerAuthenticateSessionTicketResultEvent != null) { foreach (var each in OnServerAuthenticateSessionTicketResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAuthenticateSessionTicketResultEvent -= (PlayFabResultEvent<ServerModels.AuthenticateSessionTicketResult>)each; } } } if (OnServerSetPlayerSecretRequestEvent != null) { foreach (var each in OnServerSetPlayerSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPlayerSecretRequestEvent -= (PlayFabRequestEvent<ServerModels.SetPlayerSecretRequest>)each; } } } if (OnServerSetPlayerSecretResultEvent != null) { foreach (var each in OnServerSetPlayerSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPlayerSecretResultEvent -= (PlayFabResultEvent<ServerModels.SetPlayerSecretResult>)each; } } } if (OnServerBanUsersRequestEvent != null) { foreach (var each in OnServerBanUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerBanUsersRequestEvent -= (PlayFabRequestEvent<ServerModels.BanUsersRequest>)each; } } } if (OnServerBanUsersResultEvent != null) { foreach (var each in OnServerBanUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerBanUsersResultEvent -= (PlayFabResultEvent<ServerModels.BanUsersResult>)each; } } } if (OnServerGetPlayerProfileRequestEvent != null) { foreach (var each in OnServerGetPlayerProfileRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerProfileRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayerProfileRequest>)each; } } } if (OnServerGetPlayerProfileResultEvent != null) { foreach (var each in OnServerGetPlayerProfileResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerProfileResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerProfileResult>)each; } } } if (OnServerGetPlayFabIDsFromFacebookIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromFacebookIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromFacebookIDsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayFabIDsFromFacebookIDsRequest>)each; } } } if (OnServerGetPlayFabIDsFromFacebookIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromFacebookIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromFacebookIDsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayFabIDsFromFacebookIDsResult>)each; } } } if (OnServerGetPlayFabIDsFromSteamIDsRequestEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamIDsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayFabIDsFromSteamIDsRequest>)each; } } } if (OnServerGetPlayFabIDsFromSteamIDsResultEvent != null) { foreach (var each in OnServerGetPlayFabIDsFromSteamIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayFabIDsFromSteamIDsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayFabIDsFromSteamIDsResult>)each; } } } if (OnServerGetUserAccountInfoRequestEvent != null) { foreach (var each in OnServerGetUserAccountInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserAccountInfoRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserAccountInfoRequest>)each; } } } if (OnServerGetUserAccountInfoResultEvent != null) { foreach (var each in OnServerGetUserAccountInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserAccountInfoResultEvent -= (PlayFabResultEvent<ServerModels.GetUserAccountInfoResult>)each; } } } if (OnServerGetUserBansRequestEvent != null) { foreach (var each in OnServerGetUserBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserBansRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserBansRequest>)each; } } } if (OnServerGetUserBansResultEvent != null) { foreach (var each in OnServerGetUserBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserBansResultEvent -= (PlayFabResultEvent<ServerModels.GetUserBansResult>)each; } } } if (OnServerRevokeAllBansForUserRequestEvent != null) { foreach (var each in OnServerRevokeAllBansForUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeAllBansForUserRequestEvent -= (PlayFabRequestEvent<ServerModels.RevokeAllBansForUserRequest>)each; } } } if (OnServerRevokeAllBansForUserResultEvent != null) { foreach (var each in OnServerRevokeAllBansForUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeAllBansForUserResultEvent -= (PlayFabResultEvent<ServerModels.RevokeAllBansForUserResult>)each; } } } if (OnServerRevokeBansRequestEvent != null) { foreach (var each in OnServerRevokeBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeBansRequestEvent -= (PlayFabRequestEvent<ServerModels.RevokeBansRequest>)each; } } } if (OnServerRevokeBansResultEvent != null) { foreach (var each in OnServerRevokeBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeBansResultEvent -= (PlayFabResultEvent<ServerModels.RevokeBansResult>)each; } } } if (OnServerSendPushNotificationRequestEvent != null) { foreach (var each in OnServerSendPushNotificationRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSendPushNotificationRequestEvent -= (PlayFabRequestEvent<ServerModels.SendPushNotificationRequest>)each; } } } if (OnServerSendPushNotificationResultEvent != null) { foreach (var each in OnServerSendPushNotificationResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSendPushNotificationResultEvent -= (PlayFabResultEvent<ServerModels.SendPushNotificationResult>)each; } } } if (OnServerUpdateAvatarUrlRequestEvent != null) { foreach (var each in OnServerUpdateAvatarUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateAvatarUrlRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateAvatarUrlRequest>)each; } } } if (OnServerUpdateAvatarUrlResultEvent != null) { foreach (var each in OnServerUpdateAvatarUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateAvatarUrlResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerUpdateBansRequestEvent != null) { foreach (var each in OnServerUpdateBansRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateBansRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateBansRequest>)each; } } } if (OnServerUpdateBansResultEvent != null) { foreach (var each in OnServerUpdateBansResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateBansResultEvent -= (PlayFabResultEvent<ServerModels.UpdateBansResult>)each; } } } if (OnServerDeleteUsersRequestEvent != null) { foreach (var each in OnServerDeleteUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteUsersRequestEvent -= (PlayFabRequestEvent<ServerModels.DeleteUsersRequest>)each; } } } if (OnServerDeleteUsersResultEvent != null) { foreach (var each in OnServerDeleteUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteUsersResultEvent -= (PlayFabResultEvent<ServerModels.DeleteUsersResult>)each; } } } if (OnServerGetFriendLeaderboardRequestEvent != null) { foreach (var each in OnServerGetFriendLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetFriendLeaderboardRequestEvent -= (PlayFabRequestEvent<ServerModels.GetFriendLeaderboardRequest>)each; } } } if (OnServerGetFriendLeaderboardResultEvent != null) { foreach (var each in OnServerGetFriendLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetFriendLeaderboardResultEvent -= (PlayFabResultEvent<ServerModels.GetLeaderboardResult>)each; } } } if (OnServerGetLeaderboardRequestEvent != null) { foreach (var each in OnServerGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardRequestEvent -= (PlayFabRequestEvent<ServerModels.GetLeaderboardRequest>)each; } } } if (OnServerGetLeaderboardResultEvent != null) { foreach (var each in OnServerGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardResultEvent -= (PlayFabResultEvent<ServerModels.GetLeaderboardResult>)each; } } } if (OnServerGetLeaderboardAroundUserRequestEvent != null) { foreach (var each in OnServerGetLeaderboardAroundUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardAroundUserRequestEvent -= (PlayFabRequestEvent<ServerModels.GetLeaderboardAroundUserRequest>)each; } } } if (OnServerGetLeaderboardAroundUserResultEvent != null) { foreach (var each in OnServerGetLeaderboardAroundUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardAroundUserResultEvent -= (PlayFabResultEvent<ServerModels.GetLeaderboardAroundUserResult>)each; } } } if (OnServerGetPlayerCombinedInfoRequestEvent != null) { foreach (var each in OnServerGetPlayerCombinedInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerCombinedInfoRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayerCombinedInfoRequest>)each; } } } if (OnServerGetPlayerCombinedInfoResultEvent != null) { foreach (var each in OnServerGetPlayerCombinedInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerCombinedInfoResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerCombinedInfoResult>)each; } } } if (OnServerGetPlayerStatisticsRequestEvent != null) { foreach (var each in OnServerGetPlayerStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerStatisticsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayerStatisticsRequest>)each; } } } if (OnServerGetPlayerStatisticsResultEvent != null) { foreach (var each in OnServerGetPlayerStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerStatisticsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerStatisticsResult>)each; } } } if (OnServerGetPlayerStatisticVersionsRequestEvent != null) { foreach (var each in OnServerGetPlayerStatisticVersionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerStatisticVersionsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayerStatisticVersionsRequest>)each; } } } if (OnServerGetPlayerStatisticVersionsResultEvent != null) { foreach (var each in OnServerGetPlayerStatisticVersionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerStatisticVersionsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerStatisticVersionsResult>)each; } } } if (OnServerGetUserDataRequestEvent != null) { foreach (var each in OnServerGetUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserDataResultEvent != null) { foreach (var each in OnServerGetUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerGetUserInternalDataRequestEvent != null) { foreach (var each in OnServerGetUserInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserInternalDataResultEvent != null) { foreach (var each in OnServerGetUserInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerGetUserPublisherDataRequestEvent != null) { foreach (var each in OnServerGetUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserPublisherDataResultEvent != null) { foreach (var each in OnServerGetUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerGetUserPublisherInternalDataRequestEvent != null) { foreach (var each in OnServerGetUserPublisherInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserPublisherInternalDataResultEvent != null) { foreach (var each in OnServerGetUserPublisherInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerGetUserPublisherReadOnlyDataRequestEvent != null) { foreach (var each in OnServerGetUserPublisherReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserPublisherReadOnlyDataResultEvent != null) { foreach (var each in OnServerGetUserPublisherReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserPublisherReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerGetUserReadOnlyDataRequestEvent != null) { foreach (var each in OnServerGetUserReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserDataRequest>)each; } } } if (OnServerGetUserReadOnlyDataResultEvent != null) { foreach (var each in OnServerGetUserReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.GetUserDataResult>)each; } } } if (OnServerUpdatePlayerStatisticsRequestEvent != null) { foreach (var each in OnServerUpdatePlayerStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdatePlayerStatisticsRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdatePlayerStatisticsRequest>)each; } } } if (OnServerUpdatePlayerStatisticsResultEvent != null) { foreach (var each in OnServerUpdatePlayerStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdatePlayerStatisticsResultEvent -= (PlayFabResultEvent<ServerModels.UpdatePlayerStatisticsResult>)each; } } } if (OnServerUpdateUserDataRequestEvent != null) { foreach (var each in OnServerUpdateUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserDataRequest>)each; } } } if (OnServerUpdateUserDataResultEvent != null) { foreach (var each in OnServerUpdateUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerUpdateUserInternalDataRequestEvent != null) { foreach (var each in OnServerUpdateUserInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserInternalDataRequest>)each; } } } if (OnServerUpdateUserInternalDataResultEvent != null) { foreach (var each in OnServerUpdateUserInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerUpdateUserPublisherDataRequestEvent != null) { foreach (var each in OnServerUpdateUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserDataRequest>)each; } } } if (OnServerUpdateUserPublisherDataResultEvent != null) { foreach (var each in OnServerUpdateUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerUpdateUserPublisherInternalDataRequestEvent != null) { foreach (var each in OnServerUpdateUserPublisherInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserInternalDataRequest>)each; } } } if (OnServerUpdateUserPublisherInternalDataResultEvent != null) { foreach (var each in OnServerUpdateUserPublisherInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerUpdateUserPublisherReadOnlyDataRequestEvent != null) { foreach (var each in OnServerUpdateUserPublisherReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserDataRequest>)each; } } } if (OnServerUpdateUserPublisherReadOnlyDataResultEvent != null) { foreach (var each in OnServerUpdateUserPublisherReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserPublisherReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerUpdateUserReadOnlyDataRequestEvent != null) { foreach (var each in OnServerUpdateUserReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserDataRequest>)each; } } } if (OnServerUpdateUserReadOnlyDataResultEvent != null) { foreach (var each in OnServerUpdateUserReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateUserDataResult>)each; } } } if (OnServerGetCatalogItemsRequestEvent != null) { foreach (var each in OnServerGetCatalogItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCatalogItemsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCatalogItemsRequest>)each; } } } if (OnServerGetCatalogItemsResultEvent != null) { foreach (var each in OnServerGetCatalogItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCatalogItemsResultEvent -= (PlayFabResultEvent<ServerModels.GetCatalogItemsResult>)each; } } } if (OnServerGetPublisherDataRequestEvent != null) { foreach (var each in OnServerGetPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPublisherDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPublisherDataRequest>)each; } } } if (OnServerGetPublisherDataResultEvent != null) { foreach (var each in OnServerGetPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPublisherDataResultEvent -= (PlayFabResultEvent<ServerModels.GetPublisherDataResult>)each; } } } if (OnServerGetTimeRequestEvent != null) { foreach (var each in OnServerGetTimeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTimeRequestEvent -= (PlayFabRequestEvent<ServerModels.GetTimeRequest>)each; } } } if (OnServerGetTimeResultEvent != null) { foreach (var each in OnServerGetTimeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTimeResultEvent -= (PlayFabResultEvent<ServerModels.GetTimeResult>)each; } } } if (OnServerGetTitleDataRequestEvent != null) { foreach (var each in OnServerGetTitleDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetTitleDataRequest>)each; } } } if (OnServerGetTitleDataResultEvent != null) { foreach (var each in OnServerGetTitleDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleDataResultEvent -= (PlayFabResultEvent<ServerModels.GetTitleDataResult>)each; } } } if (OnServerGetTitleInternalDataRequestEvent != null) { foreach (var each in OnServerGetTitleInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetTitleDataRequest>)each; } } } if (OnServerGetTitleInternalDataResultEvent != null) { foreach (var each in OnServerGetTitleInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.GetTitleDataResult>)each; } } } if (OnServerGetTitleNewsRequestEvent != null) { foreach (var each in OnServerGetTitleNewsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleNewsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetTitleNewsRequest>)each; } } } if (OnServerGetTitleNewsResultEvent != null) { foreach (var each in OnServerGetTitleNewsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetTitleNewsResultEvent -= (PlayFabResultEvent<ServerModels.GetTitleNewsResult>)each; } } } if (OnServerSetPublisherDataRequestEvent != null) { foreach (var each in OnServerSetPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPublisherDataRequestEvent -= (PlayFabRequestEvent<ServerModels.SetPublisherDataRequest>)each; } } } if (OnServerSetPublisherDataResultEvent != null) { foreach (var each in OnServerSetPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetPublisherDataResultEvent -= (PlayFabResultEvent<ServerModels.SetPublisherDataResult>)each; } } } if (OnServerSetTitleDataRequestEvent != null) { foreach (var each in OnServerSetTitleDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetTitleDataRequestEvent -= (PlayFabRequestEvent<ServerModels.SetTitleDataRequest>)each; } } } if (OnServerSetTitleDataResultEvent != null) { foreach (var each in OnServerSetTitleDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetTitleDataResultEvent -= (PlayFabResultEvent<ServerModels.SetTitleDataResult>)each; } } } if (OnServerSetTitleInternalDataRequestEvent != null) { foreach (var each in OnServerSetTitleInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetTitleInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.SetTitleDataRequest>)each; } } } if (OnServerSetTitleInternalDataResultEvent != null) { foreach (var each in OnServerSetTitleInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetTitleInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.SetTitleDataResult>)each; } } } if (OnServerAddCharacterVirtualCurrencyRequestEvent != null) { foreach (var each in OnServerAddCharacterVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddCharacterVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ServerModels.AddCharacterVirtualCurrencyRequest>)each; } } } if (OnServerAddCharacterVirtualCurrencyResultEvent != null) { foreach (var each in OnServerAddCharacterVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddCharacterVirtualCurrencyResultEvent -= (PlayFabResultEvent<ServerModels.ModifyCharacterVirtualCurrencyResult>)each; } } } if (OnServerAddUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnServerAddUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ServerModels.AddUserVirtualCurrencyRequest>)each; } } } if (OnServerAddUserVirtualCurrencyResultEvent != null) { foreach (var each in OnServerAddUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<ServerModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnServerConsumeItemRequestEvent != null) { foreach (var each in OnServerConsumeItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerConsumeItemRequestEvent -= (PlayFabRequestEvent<ServerModels.ConsumeItemRequest>)each; } } } if (OnServerConsumeItemResultEvent != null) { foreach (var each in OnServerConsumeItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerConsumeItemResultEvent -= (PlayFabResultEvent<ServerModels.ConsumeItemResult>)each; } } } if (OnServerEvaluateRandomResultTableRequestEvent != null) { foreach (var each in OnServerEvaluateRandomResultTableRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerEvaluateRandomResultTableRequestEvent -= (PlayFabRequestEvent<ServerModels.EvaluateRandomResultTableRequest>)each; } } } if (OnServerEvaluateRandomResultTableResultEvent != null) { foreach (var each in OnServerEvaluateRandomResultTableResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerEvaluateRandomResultTableResultEvent -= (PlayFabResultEvent<ServerModels.EvaluateRandomResultTableResult>)each; } } } if (OnServerGetCharacterInventoryRequestEvent != null) { foreach (var each in OnServerGetCharacterInventoryRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterInventoryRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterInventoryRequest>)each; } } } if (OnServerGetCharacterInventoryResultEvent != null) { foreach (var each in OnServerGetCharacterInventoryResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterInventoryResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterInventoryResult>)each; } } } if (OnServerGetRandomResultTablesRequestEvent != null) { foreach (var each in OnServerGetRandomResultTablesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetRandomResultTablesRequestEvent -= (PlayFabRequestEvent<ServerModels.GetRandomResultTablesRequest>)each; } } } if (OnServerGetRandomResultTablesResultEvent != null) { foreach (var each in OnServerGetRandomResultTablesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetRandomResultTablesResultEvent -= (PlayFabResultEvent<ServerModels.GetRandomResultTablesResult>)each; } } } if (OnServerGetUserInventoryRequestEvent != null) { foreach (var each in OnServerGetUserInventoryRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserInventoryRequestEvent -= (PlayFabRequestEvent<ServerModels.GetUserInventoryRequest>)each; } } } if (OnServerGetUserInventoryResultEvent != null) { foreach (var each in OnServerGetUserInventoryResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetUserInventoryResultEvent -= (PlayFabResultEvent<ServerModels.GetUserInventoryResult>)each; } } } if (OnServerGrantItemsToCharacterRequestEvent != null) { foreach (var each in OnServerGrantItemsToCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToCharacterRequestEvent -= (PlayFabRequestEvent<ServerModels.GrantItemsToCharacterRequest>)each; } } } if (OnServerGrantItemsToCharacterResultEvent != null) { foreach (var each in OnServerGrantItemsToCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToCharacterResultEvent -= (PlayFabResultEvent<ServerModels.GrantItemsToCharacterResult>)each; } } } if (OnServerGrantItemsToUserRequestEvent != null) { foreach (var each in OnServerGrantItemsToUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToUserRequestEvent -= (PlayFabRequestEvent<ServerModels.GrantItemsToUserRequest>)each; } } } if (OnServerGrantItemsToUserResultEvent != null) { foreach (var each in OnServerGrantItemsToUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToUserResultEvent -= (PlayFabResultEvent<ServerModels.GrantItemsToUserResult>)each; } } } if (OnServerGrantItemsToUsersRequestEvent != null) { foreach (var each in OnServerGrantItemsToUsersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToUsersRequestEvent -= (PlayFabRequestEvent<ServerModels.GrantItemsToUsersRequest>)each; } } } if (OnServerGrantItemsToUsersResultEvent != null) { foreach (var each in OnServerGrantItemsToUsersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantItemsToUsersResultEvent -= (PlayFabResultEvent<ServerModels.GrantItemsToUsersResult>)each; } } } if (OnServerModifyItemUsesRequestEvent != null) { foreach (var each in OnServerModifyItemUsesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerModifyItemUsesRequestEvent -= (PlayFabRequestEvent<ServerModels.ModifyItemUsesRequest>)each; } } } if (OnServerModifyItemUsesResultEvent != null) { foreach (var each in OnServerModifyItemUsesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerModifyItemUsesResultEvent -= (PlayFabResultEvent<ServerModels.ModifyItemUsesResult>)each; } } } if (OnServerMoveItemToCharacterFromCharacterRequestEvent != null) { foreach (var each in OnServerMoveItemToCharacterFromCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToCharacterFromCharacterRequestEvent -= (PlayFabRequestEvent<ServerModels.MoveItemToCharacterFromCharacterRequest>)each; } } } if (OnServerMoveItemToCharacterFromCharacterResultEvent != null) { foreach (var each in OnServerMoveItemToCharacterFromCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToCharacterFromCharacterResultEvent -= (PlayFabResultEvent<ServerModels.MoveItemToCharacterFromCharacterResult>)each; } } } if (OnServerMoveItemToCharacterFromUserRequestEvent != null) { foreach (var each in OnServerMoveItemToCharacterFromUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToCharacterFromUserRequestEvent -= (PlayFabRequestEvent<ServerModels.MoveItemToCharacterFromUserRequest>)each; } } } if (OnServerMoveItemToCharacterFromUserResultEvent != null) { foreach (var each in OnServerMoveItemToCharacterFromUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToCharacterFromUserResultEvent -= (PlayFabResultEvent<ServerModels.MoveItemToCharacterFromUserResult>)each; } } } if (OnServerMoveItemToUserFromCharacterRequestEvent != null) { foreach (var each in OnServerMoveItemToUserFromCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToUserFromCharacterRequestEvent -= (PlayFabRequestEvent<ServerModels.MoveItemToUserFromCharacterRequest>)each; } } } if (OnServerMoveItemToUserFromCharacterResultEvent != null) { foreach (var each in OnServerMoveItemToUserFromCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerMoveItemToUserFromCharacterResultEvent -= (PlayFabResultEvent<ServerModels.MoveItemToUserFromCharacterResult>)each; } } } if (OnServerRedeemCouponRequestEvent != null) { foreach (var each in OnServerRedeemCouponRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemCouponRequestEvent -= (PlayFabRequestEvent<ServerModels.RedeemCouponRequest>)each; } } } if (OnServerRedeemCouponResultEvent != null) { foreach (var each in OnServerRedeemCouponResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemCouponResultEvent -= (PlayFabResultEvent<ServerModels.RedeemCouponResult>)each; } } } if (OnServerReportPlayerRequestEvent != null) { foreach (var each in OnServerReportPlayerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerReportPlayerRequestEvent -= (PlayFabRequestEvent<ServerModels.ReportPlayerServerRequest>)each; } } } if (OnServerReportPlayerResultEvent != null) { foreach (var each in OnServerReportPlayerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerReportPlayerResultEvent -= (PlayFabResultEvent<ServerModels.ReportPlayerServerResult>)each; } } } if (OnServerRevokeInventoryItemRequestEvent != null) { foreach (var each in OnServerRevokeInventoryItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeInventoryItemRequestEvent -= (PlayFabRequestEvent<ServerModels.RevokeInventoryItemRequest>)each; } } } if (OnServerRevokeInventoryItemResultEvent != null) { foreach (var each in OnServerRevokeInventoryItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRevokeInventoryItemResultEvent -= (PlayFabResultEvent<ServerModels.RevokeInventoryResult>)each; } } } if (OnServerSubtractCharacterVirtualCurrencyRequestEvent != null) { foreach (var each in OnServerSubtractCharacterVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSubtractCharacterVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ServerModels.SubtractCharacterVirtualCurrencyRequest>)each; } } } if (OnServerSubtractCharacterVirtualCurrencyResultEvent != null) { foreach (var each in OnServerSubtractCharacterVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSubtractCharacterVirtualCurrencyResultEvent -= (PlayFabResultEvent<ServerModels.ModifyCharacterVirtualCurrencyResult>)each; } } } if (OnServerSubtractUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnServerSubtractUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSubtractUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ServerModels.SubtractUserVirtualCurrencyRequest>)each; } } } if (OnServerSubtractUserVirtualCurrencyResultEvent != null) { foreach (var each in OnServerSubtractUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSubtractUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<ServerModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnServerUnlockContainerInstanceRequestEvent != null) { foreach (var each in OnServerUnlockContainerInstanceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlockContainerInstanceRequestEvent -= (PlayFabRequestEvent<ServerModels.UnlockContainerInstanceRequest>)each; } } } if (OnServerUnlockContainerInstanceResultEvent != null) { foreach (var each in OnServerUnlockContainerInstanceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlockContainerInstanceResultEvent -= (PlayFabResultEvent<ServerModels.UnlockContainerItemResult>)each; } } } if (OnServerUnlockContainerItemRequestEvent != null) { foreach (var each in OnServerUnlockContainerItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlockContainerItemRequestEvent -= (PlayFabRequestEvent<ServerModels.UnlockContainerItemRequest>)each; } } } if (OnServerUnlockContainerItemResultEvent != null) { foreach (var each in OnServerUnlockContainerItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUnlockContainerItemResultEvent -= (PlayFabResultEvent<ServerModels.UnlockContainerItemResult>)each; } } } if (OnServerUpdateUserInventoryItemCustomDataRequestEvent != null) { foreach (var each in OnServerUpdateUserInventoryItemCustomDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserInventoryItemCustomDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateUserInventoryItemDataRequest>)each; } } } if (OnServerUpdateUserInventoryItemCustomDataResultEvent != null) { foreach (var each in OnServerUpdateUserInventoryItemCustomDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateUserInventoryItemCustomDataResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerAddFriendRequestEvent != null) { foreach (var each in OnServerAddFriendRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddFriendRequestEvent -= (PlayFabRequestEvent<ServerModels.AddFriendRequest>)each; } } } if (OnServerAddFriendResultEvent != null) { foreach (var each in OnServerAddFriendResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddFriendResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerGetFriendsListRequestEvent != null) { foreach (var each in OnServerGetFriendsListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetFriendsListRequestEvent -= (PlayFabRequestEvent<ServerModels.GetFriendsListRequest>)each; } } } if (OnServerGetFriendsListResultEvent != null) { foreach (var each in OnServerGetFriendsListResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetFriendsListResultEvent -= (PlayFabResultEvent<ServerModels.GetFriendsListResult>)each; } } } if (OnServerRemoveFriendRequestEvent != null) { foreach (var each in OnServerRemoveFriendRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveFriendRequestEvent -= (PlayFabRequestEvent<ServerModels.RemoveFriendRequest>)each; } } } if (OnServerRemoveFriendResultEvent != null) { foreach (var each in OnServerRemoveFriendResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveFriendResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerSetFriendTagsRequestEvent != null) { foreach (var each in OnServerSetFriendTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetFriendTagsRequestEvent -= (PlayFabRequestEvent<ServerModels.SetFriendTagsRequest>)each; } } } if (OnServerSetFriendTagsResultEvent != null) { foreach (var each in OnServerSetFriendTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetFriendTagsResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerDeregisterGameRequestEvent != null) { foreach (var each in OnServerDeregisterGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeregisterGameRequestEvent -= (PlayFabRequestEvent<ServerModels.DeregisterGameRequest>)each; } } } if (OnServerDeregisterGameResultEvent != null) { foreach (var each in OnServerDeregisterGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeregisterGameResultEvent -= (PlayFabResultEvent<ServerModels.DeregisterGameResponse>)each; } } } if (OnServerNotifyMatchmakerPlayerLeftRequestEvent != null) { foreach (var each in OnServerNotifyMatchmakerPlayerLeftRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerNotifyMatchmakerPlayerLeftRequestEvent -= (PlayFabRequestEvent<ServerModels.NotifyMatchmakerPlayerLeftRequest>)each; } } } if (OnServerNotifyMatchmakerPlayerLeftResultEvent != null) { foreach (var each in OnServerNotifyMatchmakerPlayerLeftResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerNotifyMatchmakerPlayerLeftResultEvent -= (PlayFabResultEvent<ServerModels.NotifyMatchmakerPlayerLeftResult>)each; } } } if (OnServerRedeemMatchmakerTicketRequestEvent != null) { foreach (var each in OnServerRedeemMatchmakerTicketRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemMatchmakerTicketRequestEvent -= (PlayFabRequestEvent<ServerModels.RedeemMatchmakerTicketRequest>)each; } } } if (OnServerRedeemMatchmakerTicketResultEvent != null) { foreach (var each in OnServerRedeemMatchmakerTicketResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRedeemMatchmakerTicketResultEvent -= (PlayFabResultEvent<ServerModels.RedeemMatchmakerTicketResult>)each; } } } if (OnServerRefreshGameServerInstanceHeartbeatRequestEvent != null) { foreach (var each in OnServerRefreshGameServerInstanceHeartbeatRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRefreshGameServerInstanceHeartbeatRequestEvent -= (PlayFabRequestEvent<ServerModels.RefreshGameServerInstanceHeartbeatRequest>)each; } } } if (OnServerRefreshGameServerInstanceHeartbeatResultEvent != null) { foreach (var each in OnServerRefreshGameServerInstanceHeartbeatResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRefreshGameServerInstanceHeartbeatResultEvent -= (PlayFabResultEvent<ServerModels.RefreshGameServerInstanceHeartbeatResult>)each; } } } if (OnServerRegisterGameRequestEvent != null) { foreach (var each in OnServerRegisterGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRegisterGameRequestEvent -= (PlayFabRequestEvent<ServerModels.RegisterGameRequest>)each; } } } if (OnServerRegisterGameResultEvent != null) { foreach (var each in OnServerRegisterGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRegisterGameResultEvent -= (PlayFabResultEvent<ServerModels.RegisterGameResponse>)each; } } } if (OnServerSetGameServerInstanceDataRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceDataRequestEvent -= (PlayFabRequestEvent<ServerModels.SetGameServerInstanceDataRequest>)each; } } } if (OnServerSetGameServerInstanceDataResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceDataResultEvent -= (PlayFabResultEvent<ServerModels.SetGameServerInstanceDataResult>)each; } } } if (OnServerSetGameServerInstanceStateRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceStateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceStateRequestEvent -= (PlayFabRequestEvent<ServerModels.SetGameServerInstanceStateRequest>)each; } } } if (OnServerSetGameServerInstanceStateResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceStateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceStateResultEvent -= (PlayFabResultEvent<ServerModels.SetGameServerInstanceStateResult>)each; } } } if (OnServerSetGameServerInstanceTagsRequestEvent != null) { foreach (var each in OnServerSetGameServerInstanceTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceTagsRequestEvent -= (PlayFabRequestEvent<ServerModels.SetGameServerInstanceTagsRequest>)each; } } } if (OnServerSetGameServerInstanceTagsResultEvent != null) { foreach (var each in OnServerSetGameServerInstanceTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerSetGameServerInstanceTagsResultEvent -= (PlayFabResultEvent<ServerModels.SetGameServerInstanceTagsResult>)each; } } } if (OnServerWriteCharacterEventRequestEvent != null) { foreach (var each in OnServerWriteCharacterEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWriteCharacterEventRequestEvent -= (PlayFabRequestEvent<ServerModels.WriteServerCharacterEventRequest>)each; } } } if (OnServerWriteCharacterEventResultEvent != null) { foreach (var each in OnServerWriteCharacterEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWriteCharacterEventResultEvent -= (PlayFabResultEvent<ServerModels.WriteEventResponse>)each; } } } if (OnServerWritePlayerEventRequestEvent != null) { foreach (var each in OnServerWritePlayerEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWritePlayerEventRequestEvent -= (PlayFabRequestEvent<ServerModels.WriteServerPlayerEventRequest>)each; } } } if (OnServerWritePlayerEventResultEvent != null) { foreach (var each in OnServerWritePlayerEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWritePlayerEventResultEvent -= (PlayFabResultEvent<ServerModels.WriteEventResponse>)each; } } } if (OnServerWriteTitleEventRequestEvent != null) { foreach (var each in OnServerWriteTitleEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWriteTitleEventRequestEvent -= (PlayFabRequestEvent<ServerModels.WriteTitleEventRequest>)each; } } } if (OnServerWriteTitleEventResultEvent != null) { foreach (var each in OnServerWriteTitleEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerWriteTitleEventResultEvent -= (PlayFabResultEvent<ServerModels.WriteEventResponse>)each; } } } if (OnServerAddSharedGroupMembersRequestEvent != null) { foreach (var each in OnServerAddSharedGroupMembersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddSharedGroupMembersRequestEvent -= (PlayFabRequestEvent<ServerModels.AddSharedGroupMembersRequest>)each; } } } if (OnServerAddSharedGroupMembersResultEvent != null) { foreach (var each in OnServerAddSharedGroupMembersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddSharedGroupMembersResultEvent -= (PlayFabResultEvent<ServerModels.AddSharedGroupMembersResult>)each; } } } if (OnServerCreateSharedGroupRequestEvent != null) { foreach (var each in OnServerCreateSharedGroupRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerCreateSharedGroupRequestEvent -= (PlayFabRequestEvent<ServerModels.CreateSharedGroupRequest>)each; } } } if (OnServerCreateSharedGroupResultEvent != null) { foreach (var each in OnServerCreateSharedGroupResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerCreateSharedGroupResultEvent -= (PlayFabResultEvent<ServerModels.CreateSharedGroupResult>)each; } } } if (OnServerDeleteSharedGroupRequestEvent != null) { foreach (var each in OnServerDeleteSharedGroupRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteSharedGroupRequestEvent -= (PlayFabRequestEvent<ServerModels.DeleteSharedGroupRequest>)each; } } } if (OnServerDeleteSharedGroupResultEvent != null) { foreach (var each in OnServerDeleteSharedGroupResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteSharedGroupResultEvent -= (PlayFabResultEvent<ServerModels.EmptyResult>)each; } } } if (OnServerGetSharedGroupDataRequestEvent != null) { foreach (var each in OnServerGetSharedGroupDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetSharedGroupDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetSharedGroupDataRequest>)each; } } } if (OnServerGetSharedGroupDataResultEvent != null) { foreach (var each in OnServerGetSharedGroupDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetSharedGroupDataResultEvent -= (PlayFabResultEvent<ServerModels.GetSharedGroupDataResult>)each; } } } if (OnServerRemoveSharedGroupMembersRequestEvent != null) { foreach (var each in OnServerRemoveSharedGroupMembersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveSharedGroupMembersRequestEvent -= (PlayFabRequestEvent<ServerModels.RemoveSharedGroupMembersRequest>)each; } } } if (OnServerRemoveSharedGroupMembersResultEvent != null) { foreach (var each in OnServerRemoveSharedGroupMembersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemoveSharedGroupMembersResultEvent -= (PlayFabResultEvent<ServerModels.RemoveSharedGroupMembersResult>)each; } } } if (OnServerUpdateSharedGroupDataRequestEvent != null) { foreach (var each in OnServerUpdateSharedGroupDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateSharedGroupDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateSharedGroupDataRequest>)each; } } } if (OnServerUpdateSharedGroupDataResultEvent != null) { foreach (var each in OnServerUpdateSharedGroupDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateSharedGroupDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateSharedGroupDataResult>)each; } } } if (OnServerExecuteCloudScriptRequestEvent != null) { foreach (var each in OnServerExecuteCloudScriptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerExecuteCloudScriptRequestEvent -= (PlayFabRequestEvent<ServerModels.ExecuteCloudScriptServerRequest>)each; } } } if (OnServerExecuteCloudScriptResultEvent != null) { foreach (var each in OnServerExecuteCloudScriptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerExecuteCloudScriptResultEvent -= (PlayFabResultEvent<ServerModels.ExecuteCloudScriptResult>)each; } } } if (OnServerGetContentDownloadUrlRequestEvent != null) { foreach (var each in OnServerGetContentDownloadUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetContentDownloadUrlRequestEvent -= (PlayFabRequestEvent<ServerModels.GetContentDownloadUrlRequest>)each; } } } if (OnServerGetContentDownloadUrlResultEvent != null) { foreach (var each in OnServerGetContentDownloadUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetContentDownloadUrlResultEvent -= (PlayFabResultEvent<ServerModels.GetContentDownloadUrlResult>)each; } } } if (OnServerDeleteCharacterFromUserRequestEvent != null) { foreach (var each in OnServerDeleteCharacterFromUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteCharacterFromUserRequestEvent -= (PlayFabRequestEvent<ServerModels.DeleteCharacterFromUserRequest>)each; } } } if (OnServerDeleteCharacterFromUserResultEvent != null) { foreach (var each in OnServerDeleteCharacterFromUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerDeleteCharacterFromUserResultEvent -= (PlayFabResultEvent<ServerModels.DeleteCharacterFromUserResult>)each; } } } if (OnServerGetAllUsersCharactersRequestEvent != null) { foreach (var each in OnServerGetAllUsersCharactersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllUsersCharactersRequestEvent -= (PlayFabRequestEvent<ServerModels.ListUsersCharactersRequest>)each; } } } if (OnServerGetAllUsersCharactersResultEvent != null) { foreach (var each in OnServerGetAllUsersCharactersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllUsersCharactersResultEvent -= (PlayFabResultEvent<ServerModels.ListUsersCharactersResult>)each; } } } if (OnServerGetCharacterLeaderboardRequestEvent != null) { foreach (var each in OnServerGetCharacterLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterLeaderboardRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterLeaderboardRequest>)each; } } } if (OnServerGetCharacterLeaderboardResultEvent != null) { foreach (var each in OnServerGetCharacterLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterLeaderboardResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterLeaderboardResult>)each; } } } if (OnServerGetCharacterStatisticsRequestEvent != null) { foreach (var each in OnServerGetCharacterStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterStatisticsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterStatisticsRequest>)each; } } } if (OnServerGetCharacterStatisticsResultEvent != null) { foreach (var each in OnServerGetCharacterStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterStatisticsResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterStatisticsResult>)each; } } } if (OnServerGetLeaderboardAroundCharacterRequestEvent != null) { foreach (var each in OnServerGetLeaderboardAroundCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardAroundCharacterRequestEvent -= (PlayFabRequestEvent<ServerModels.GetLeaderboardAroundCharacterRequest>)each; } } } if (OnServerGetLeaderboardAroundCharacterResultEvent != null) { foreach (var each in OnServerGetLeaderboardAroundCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardAroundCharacterResultEvent -= (PlayFabResultEvent<ServerModels.GetLeaderboardAroundCharacterResult>)each; } } } if (OnServerGetLeaderboardForUserCharactersRequestEvent != null) { foreach (var each in OnServerGetLeaderboardForUserCharactersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardForUserCharactersRequestEvent -= (PlayFabRequestEvent<ServerModels.GetLeaderboardForUsersCharactersRequest>)each; } } } if (OnServerGetLeaderboardForUserCharactersResultEvent != null) { foreach (var each in OnServerGetLeaderboardForUserCharactersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetLeaderboardForUserCharactersResultEvent -= (PlayFabResultEvent<ServerModels.GetLeaderboardForUsersCharactersResult>)each; } } } if (OnServerGrantCharacterToUserRequestEvent != null) { foreach (var each in OnServerGrantCharacterToUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantCharacterToUserRequestEvent -= (PlayFabRequestEvent<ServerModels.GrantCharacterToUserRequest>)each; } } } if (OnServerGrantCharacterToUserResultEvent != null) { foreach (var each in OnServerGrantCharacterToUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGrantCharacterToUserResultEvent -= (PlayFabResultEvent<ServerModels.GrantCharacterToUserResult>)each; } } } if (OnServerUpdateCharacterStatisticsRequestEvent != null) { foreach (var each in OnServerUpdateCharacterStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterStatisticsRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateCharacterStatisticsRequest>)each; } } } if (OnServerUpdateCharacterStatisticsResultEvent != null) { foreach (var each in OnServerUpdateCharacterStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterStatisticsResultEvent -= (PlayFabResultEvent<ServerModels.UpdateCharacterStatisticsResult>)each; } } } if (OnServerGetCharacterDataRequestEvent != null) { foreach (var each in OnServerGetCharacterDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterDataRequest>)each; } } } if (OnServerGetCharacterDataResultEvent != null) { foreach (var each in OnServerGetCharacterDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterDataResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterDataResult>)each; } } } if (OnServerGetCharacterInternalDataRequestEvent != null) { foreach (var each in OnServerGetCharacterInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterDataRequest>)each; } } } if (OnServerGetCharacterInternalDataResultEvent != null) { foreach (var each in OnServerGetCharacterInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterDataResult>)each; } } } if (OnServerGetCharacterReadOnlyDataRequestEvent != null) { foreach (var each in OnServerGetCharacterReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.GetCharacterDataRequest>)each; } } } if (OnServerGetCharacterReadOnlyDataResultEvent != null) { foreach (var each in OnServerGetCharacterReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetCharacterReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.GetCharacterDataResult>)each; } } } if (OnServerUpdateCharacterDataRequestEvent != null) { foreach (var each in OnServerUpdateCharacterDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateCharacterDataRequest>)each; } } } if (OnServerUpdateCharacterDataResultEvent != null) { foreach (var each in OnServerUpdateCharacterDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateCharacterDataResult>)each; } } } if (OnServerUpdateCharacterInternalDataRequestEvent != null) { foreach (var each in OnServerUpdateCharacterInternalDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterInternalDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateCharacterDataRequest>)each; } } } if (OnServerUpdateCharacterInternalDataResultEvent != null) { foreach (var each in OnServerUpdateCharacterInternalDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterInternalDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateCharacterDataResult>)each; } } } if (OnServerUpdateCharacterReadOnlyDataRequestEvent != null) { foreach (var each in OnServerUpdateCharacterReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ServerModels.UpdateCharacterDataRequest>)each; } } } if (OnServerUpdateCharacterReadOnlyDataResultEvent != null) { foreach (var each in OnServerUpdateCharacterReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerUpdateCharacterReadOnlyDataResultEvent -= (PlayFabResultEvent<ServerModels.UpdateCharacterDataResult>)each; } } } if (OnServerAddPlayerTagRequestEvent != null) { foreach (var each in OnServerAddPlayerTagRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddPlayerTagRequestEvent -= (PlayFabRequestEvent<ServerModels.AddPlayerTagRequest>)each; } } } if (OnServerAddPlayerTagResultEvent != null) { foreach (var each in OnServerAddPlayerTagResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAddPlayerTagResultEvent -= (PlayFabResultEvent<ServerModels.AddPlayerTagResult>)each; } } } if (OnServerGetAllActionGroupsRequestEvent != null) { foreach (var each in OnServerGetAllActionGroupsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllActionGroupsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetAllActionGroupsRequest>)each; } } } if (OnServerGetAllActionGroupsResultEvent != null) { foreach (var each in OnServerGetAllActionGroupsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllActionGroupsResultEvent -= (PlayFabResultEvent<ServerModels.GetAllActionGroupsResult>)each; } } } if (OnServerGetAllSegmentsRequestEvent != null) { foreach (var each in OnServerGetAllSegmentsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllSegmentsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetAllSegmentsRequest>)each; } } } if (OnServerGetAllSegmentsResultEvent != null) { foreach (var each in OnServerGetAllSegmentsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetAllSegmentsResultEvent -= (PlayFabResultEvent<ServerModels.GetAllSegmentsResult>)each; } } } if (OnServerGetPlayerSegmentsRequestEvent != null) { foreach (var each in OnServerGetPlayerSegmentsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerSegmentsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayersSegmentsRequest>)each; } } } if (OnServerGetPlayerSegmentsResultEvent != null) { foreach (var each in OnServerGetPlayerSegmentsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerSegmentsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerSegmentsResult>)each; } } } if (OnServerGetPlayersInSegmentRequestEvent != null) { foreach (var each in OnServerGetPlayersInSegmentRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayersInSegmentRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayersInSegmentRequest>)each; } } } if (OnServerGetPlayersInSegmentResultEvent != null) { foreach (var each in OnServerGetPlayersInSegmentResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayersInSegmentResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayersInSegmentResult>)each; } } } if (OnServerGetPlayerTagsRequestEvent != null) { foreach (var each in OnServerGetPlayerTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerTagsRequestEvent -= (PlayFabRequestEvent<ServerModels.GetPlayerTagsRequest>)each; } } } if (OnServerGetPlayerTagsResultEvent != null) { foreach (var each in OnServerGetPlayerTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerGetPlayerTagsResultEvent -= (PlayFabResultEvent<ServerModels.GetPlayerTagsResult>)each; } } } if (OnServerRemovePlayerTagRequestEvent != null) { foreach (var each in OnServerRemovePlayerTagRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemovePlayerTagRequestEvent -= (PlayFabRequestEvent<ServerModels.RemovePlayerTagRequest>)each; } } } if (OnServerRemovePlayerTagResultEvent != null) { foreach (var each in OnServerRemovePlayerTagResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerRemovePlayerTagResultEvent -= (PlayFabResultEvent<ServerModels.RemovePlayerTagResult>)each; } } } if (OnServerAwardSteamAchievementRequestEvent != null) { foreach (var each in OnServerAwardSteamAchievementRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAwardSteamAchievementRequestEvent -= (PlayFabRequestEvent<ServerModels.AwardSteamAchievementRequest>)each; } } } if (OnServerAwardSteamAchievementResultEvent != null) { foreach (var each in OnServerAwardSteamAchievementResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnServerAwardSteamAchievementResultEvent -= (PlayFabResultEvent<ServerModels.AwardSteamAchievementResult>)each; } } } #endif #if !DISABLE_PLAYFABCLIENT_API if (OnGetPhotonAuthenticationTokenRequestEvent != null) { foreach (var each in OnGetPhotonAuthenticationTokenRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPhotonAuthenticationTokenRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPhotonAuthenticationTokenRequest>)each; } } } if (OnGetPhotonAuthenticationTokenResultEvent != null) { foreach (var each in OnGetPhotonAuthenticationTokenResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPhotonAuthenticationTokenResultEvent -= (PlayFabResultEvent<ClientModels.GetPhotonAuthenticationTokenResult>)each; } } } if (OnGetTitlePublicKeyRequestEvent != null) { foreach (var each in OnGetTitlePublicKeyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitlePublicKeyRequestEvent -= (PlayFabRequestEvent<ClientModels.GetTitlePublicKeyRequest>)each; } } } if (OnGetTitlePublicKeyResultEvent != null) { foreach (var each in OnGetTitlePublicKeyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitlePublicKeyResultEvent -= (PlayFabResultEvent<ClientModels.GetTitlePublicKeyResult>)each; } } } if (OnGetWindowsHelloChallengeRequestEvent != null) { foreach (var each in OnGetWindowsHelloChallengeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetWindowsHelloChallengeRequestEvent -= (PlayFabRequestEvent<ClientModels.GetWindowsHelloChallengeRequest>)each; } } } if (OnGetWindowsHelloChallengeResultEvent != null) { foreach (var each in OnGetWindowsHelloChallengeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetWindowsHelloChallengeResultEvent -= (PlayFabResultEvent<ClientModels.GetWindowsHelloChallengeResponse>)each; } } } if (OnLoginWithAndroidDeviceIDRequestEvent != null) { foreach (var each in OnLoginWithAndroidDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithAndroidDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithAndroidDeviceIDRequest>)each; } } } if (OnLoginWithCustomIDRequestEvent != null) { foreach (var each in OnLoginWithCustomIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithCustomIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithCustomIDRequest>)each; } } } if (OnLoginWithEmailAddressRequestEvent != null) { foreach (var each in OnLoginWithEmailAddressRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithEmailAddressRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithEmailAddressRequest>)each; } } } if (OnLoginWithFacebookRequestEvent != null) { foreach (var each in OnLoginWithFacebookRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithFacebookRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithFacebookRequest>)each; } } } if (OnLoginWithGameCenterRequestEvent != null) { foreach (var each in OnLoginWithGameCenterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithGameCenterRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithGameCenterRequest>)each; } } } if (OnLoginWithGoogleAccountRequestEvent != null) { foreach (var each in OnLoginWithGoogleAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithGoogleAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithGoogleAccountRequest>)each; } } } if (OnLoginWithIOSDeviceIDRequestEvent != null) { foreach (var each in OnLoginWithIOSDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithIOSDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithIOSDeviceIDRequest>)each; } } } if (OnLoginWithKongregateRequestEvent != null) { foreach (var each in OnLoginWithKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithKongregateRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithKongregateRequest>)each; } } } if (OnLoginWithPlayFabRequestEvent != null) { foreach (var each in OnLoginWithPlayFabRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithPlayFabRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithPlayFabRequest>)each; } } } if (OnLoginWithSteamRequestEvent != null) { foreach (var each in OnLoginWithSteamRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithSteamRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithSteamRequest>)each; } } } if (OnLoginWithTwitchRequestEvent != null) { foreach (var each in OnLoginWithTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithTwitchRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithTwitchRequest>)each; } } } if (OnLoginWithWindowsHelloRequestEvent != null) { foreach (var each in OnLoginWithWindowsHelloRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLoginWithWindowsHelloRequestEvent -= (PlayFabRequestEvent<ClientModels.LoginWithWindowsHelloRequest>)each; } } } if (OnRegisterPlayFabUserRequestEvent != null) { foreach (var each in OnRegisterPlayFabUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRegisterPlayFabUserRequestEvent -= (PlayFabRequestEvent<ClientModels.RegisterPlayFabUserRequest>)each; } } } if (OnRegisterPlayFabUserResultEvent != null) { foreach (var each in OnRegisterPlayFabUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRegisterPlayFabUserResultEvent -= (PlayFabResultEvent<ClientModels.RegisterPlayFabUserResult>)each; } } } if (OnRegisterWithWindowsHelloRequestEvent != null) { foreach (var each in OnRegisterWithWindowsHelloRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRegisterWithWindowsHelloRequestEvent -= (PlayFabRequestEvent<ClientModels.RegisterWithWindowsHelloRequest>)each; } } } if (OnSetPlayerSecretRequestEvent != null) { foreach (var each in OnSetPlayerSecretRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSetPlayerSecretRequestEvent -= (PlayFabRequestEvent<ClientModels.SetPlayerSecretRequest>)each; } } } if (OnSetPlayerSecretResultEvent != null) { foreach (var each in OnSetPlayerSecretResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSetPlayerSecretResultEvent -= (PlayFabResultEvent<ClientModels.SetPlayerSecretResult>)each; } } } if (OnAddGenericIDRequestEvent != null) { foreach (var each in OnAddGenericIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddGenericIDRequestEvent -= (PlayFabRequestEvent<ClientModels.AddGenericIDRequest>)each; } } } if (OnAddGenericIDResultEvent != null) { foreach (var each in OnAddGenericIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddGenericIDResultEvent -= (PlayFabResultEvent<ClientModels.AddGenericIDResult>)each; } } } if (OnAddUsernamePasswordRequestEvent != null) { foreach (var each in OnAddUsernamePasswordRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddUsernamePasswordRequestEvent -= (PlayFabRequestEvent<ClientModels.AddUsernamePasswordRequest>)each; } } } if (OnAddUsernamePasswordResultEvent != null) { foreach (var each in OnAddUsernamePasswordResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddUsernamePasswordResultEvent -= (PlayFabResultEvent<ClientModels.AddUsernamePasswordResult>)each; } } } if (OnGetAccountInfoRequestEvent != null) { foreach (var each in OnGetAccountInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetAccountInfoRequestEvent -= (PlayFabRequestEvent<ClientModels.GetAccountInfoRequest>)each; } } } if (OnGetAccountInfoResultEvent != null) { foreach (var each in OnGetAccountInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetAccountInfoResultEvent -= (PlayFabResultEvent<ClientModels.GetAccountInfoResult>)each; } } } if (OnGetPlayerCombinedInfoRequestEvent != null) { foreach (var each in OnGetPlayerCombinedInfoRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerCombinedInfoRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerCombinedInfoRequest>)each; } } } if (OnGetPlayerCombinedInfoResultEvent != null) { foreach (var each in OnGetPlayerCombinedInfoResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerCombinedInfoResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerCombinedInfoResult>)each; } } } if (OnGetPlayerProfileRequestEvent != null) { foreach (var each in OnGetPlayerProfileRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerProfileRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerProfileRequest>)each; } } } if (OnGetPlayerProfileResultEvent != null) { foreach (var each in OnGetPlayerProfileResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerProfileResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerProfileResult>)each; } } } if (OnGetPlayFabIDsFromFacebookIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromFacebookIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromFacebookIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromFacebookIDsRequest>)each; } } } if (OnGetPlayFabIDsFromFacebookIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromFacebookIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromFacebookIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromFacebookIDsResult>)each; } } } if (OnGetPlayFabIDsFromGameCenterIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromGameCenterIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGameCenterIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromGameCenterIDsRequest>)each; } } } if (OnGetPlayFabIDsFromGameCenterIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromGameCenterIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGameCenterIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromGameCenterIDsResult>)each; } } } if (OnGetPlayFabIDsFromGenericIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromGenericIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGenericIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromGenericIDsRequest>)each; } } } if (OnGetPlayFabIDsFromGenericIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromGenericIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGenericIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromGenericIDsResult>)each; } } } if (OnGetPlayFabIDsFromGoogleIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromGoogleIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGoogleIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromGoogleIDsRequest>)each; } } } if (OnGetPlayFabIDsFromGoogleIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromGoogleIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromGoogleIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromGoogleIDsResult>)each; } } } if (OnGetPlayFabIDsFromKongregateIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromKongregateIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromKongregateIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromKongregateIDsRequest>)each; } } } if (OnGetPlayFabIDsFromKongregateIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromKongregateIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromKongregateIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromKongregateIDsResult>)each; } } } if (OnGetPlayFabIDsFromSteamIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromSteamIDsRequest>)each; } } } if (OnGetPlayFabIDsFromSteamIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromSteamIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromSteamIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromSteamIDsResult>)each; } } } if (OnGetPlayFabIDsFromTwitchIDsRequestEvent != null) { foreach (var each in OnGetPlayFabIDsFromTwitchIDsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromTwitchIDsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayFabIDsFromTwitchIDsRequest>)each; } } } if (OnGetPlayFabIDsFromTwitchIDsResultEvent != null) { foreach (var each in OnGetPlayFabIDsFromTwitchIDsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayFabIDsFromTwitchIDsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayFabIDsFromTwitchIDsResult>)each; } } } if (OnLinkAndroidDeviceIDRequestEvent != null) { foreach (var each in OnLinkAndroidDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkAndroidDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkAndroidDeviceIDRequest>)each; } } } if (OnLinkAndroidDeviceIDResultEvent != null) { foreach (var each in OnLinkAndroidDeviceIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkAndroidDeviceIDResultEvent -= (PlayFabResultEvent<ClientModels.LinkAndroidDeviceIDResult>)each; } } } if (OnLinkCustomIDRequestEvent != null) { foreach (var each in OnLinkCustomIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkCustomIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkCustomIDRequest>)each; } } } if (OnLinkCustomIDResultEvent != null) { foreach (var each in OnLinkCustomIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkCustomIDResultEvent -= (PlayFabResultEvent<ClientModels.LinkCustomIDResult>)each; } } } if (OnLinkFacebookAccountRequestEvent != null) { foreach (var each in OnLinkFacebookAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkFacebookAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkFacebookAccountRequest>)each; } } } if (OnLinkFacebookAccountResultEvent != null) { foreach (var each in OnLinkFacebookAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkFacebookAccountResultEvent -= (PlayFabResultEvent<ClientModels.LinkFacebookAccountResult>)each; } } } if (OnLinkGameCenterAccountRequestEvent != null) { foreach (var each in OnLinkGameCenterAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkGameCenterAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkGameCenterAccountRequest>)each; } } } if (OnLinkGameCenterAccountResultEvent != null) { foreach (var each in OnLinkGameCenterAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkGameCenterAccountResultEvent -= (PlayFabResultEvent<ClientModels.LinkGameCenterAccountResult>)each; } } } if (OnLinkGoogleAccountRequestEvent != null) { foreach (var each in OnLinkGoogleAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkGoogleAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkGoogleAccountRequest>)each; } } } if (OnLinkGoogleAccountResultEvent != null) { foreach (var each in OnLinkGoogleAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkGoogleAccountResultEvent -= (PlayFabResultEvent<ClientModels.LinkGoogleAccountResult>)each; } } } if (OnLinkIOSDeviceIDRequestEvent != null) { foreach (var each in OnLinkIOSDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkIOSDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkIOSDeviceIDRequest>)each; } } } if (OnLinkIOSDeviceIDResultEvent != null) { foreach (var each in OnLinkIOSDeviceIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkIOSDeviceIDResultEvent -= (PlayFabResultEvent<ClientModels.LinkIOSDeviceIDResult>)each; } } } if (OnLinkKongregateRequestEvent != null) { foreach (var each in OnLinkKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkKongregateRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkKongregateAccountRequest>)each; } } } if (OnLinkKongregateResultEvent != null) { foreach (var each in OnLinkKongregateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkKongregateResultEvent -= (PlayFabResultEvent<ClientModels.LinkKongregateAccountResult>)each; } } } if (OnLinkSteamAccountRequestEvent != null) { foreach (var each in OnLinkSteamAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkSteamAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkSteamAccountRequest>)each; } } } if (OnLinkSteamAccountResultEvent != null) { foreach (var each in OnLinkSteamAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkSteamAccountResultEvent -= (PlayFabResultEvent<ClientModels.LinkSteamAccountResult>)each; } } } if (OnLinkTwitchRequestEvent != null) { foreach (var each in OnLinkTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkTwitchRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkTwitchAccountRequest>)each; } } } if (OnLinkTwitchResultEvent != null) { foreach (var each in OnLinkTwitchResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkTwitchResultEvent -= (PlayFabResultEvent<ClientModels.LinkTwitchAccountResult>)each; } } } if (OnLinkWindowsHelloRequestEvent != null) { foreach (var each in OnLinkWindowsHelloRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkWindowsHelloRequestEvent -= (PlayFabRequestEvent<ClientModels.LinkWindowsHelloAccountRequest>)each; } } } if (OnLinkWindowsHelloResultEvent != null) { foreach (var each in OnLinkWindowsHelloResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnLinkWindowsHelloResultEvent -= (PlayFabResultEvent<ClientModels.LinkWindowsHelloAccountResponse>)each; } } } if (OnRemoveGenericIDRequestEvent != null) { foreach (var each in OnRemoveGenericIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveGenericIDRequestEvent -= (PlayFabRequestEvent<ClientModels.RemoveGenericIDRequest>)each; } } } if (OnRemoveGenericIDResultEvent != null) { foreach (var each in OnRemoveGenericIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveGenericIDResultEvent -= (PlayFabResultEvent<ClientModels.RemoveGenericIDResult>)each; } } } if (OnReportPlayerRequestEvent != null) { foreach (var each in OnReportPlayerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnReportPlayerRequestEvent -= (PlayFabRequestEvent<ClientModels.ReportPlayerClientRequest>)each; } } } if (OnReportPlayerResultEvent != null) { foreach (var each in OnReportPlayerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnReportPlayerResultEvent -= (PlayFabResultEvent<ClientModels.ReportPlayerClientResult>)each; } } } if (OnSendAccountRecoveryEmailRequestEvent != null) { foreach (var each in OnSendAccountRecoveryEmailRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSendAccountRecoveryEmailRequestEvent -= (PlayFabRequestEvent<ClientModels.SendAccountRecoveryEmailRequest>)each; } } } if (OnSendAccountRecoveryEmailResultEvent != null) { foreach (var each in OnSendAccountRecoveryEmailResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSendAccountRecoveryEmailResultEvent -= (PlayFabResultEvent<ClientModels.SendAccountRecoveryEmailResult>)each; } } } if (OnUnlinkAndroidDeviceIDRequestEvent != null) { foreach (var each in OnUnlinkAndroidDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkAndroidDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkAndroidDeviceIDRequest>)each; } } } if (OnUnlinkAndroidDeviceIDResultEvent != null) { foreach (var each in OnUnlinkAndroidDeviceIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkAndroidDeviceIDResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkAndroidDeviceIDResult>)each; } } } if (OnUnlinkCustomIDRequestEvent != null) { foreach (var each in OnUnlinkCustomIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkCustomIDRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkCustomIDRequest>)each; } } } if (OnUnlinkCustomIDResultEvent != null) { foreach (var each in OnUnlinkCustomIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkCustomIDResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkCustomIDResult>)each; } } } if (OnUnlinkFacebookAccountRequestEvent != null) { foreach (var each in OnUnlinkFacebookAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkFacebookAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkFacebookAccountRequest>)each; } } } if (OnUnlinkFacebookAccountResultEvent != null) { foreach (var each in OnUnlinkFacebookAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkFacebookAccountResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkFacebookAccountResult>)each; } } } if (OnUnlinkGameCenterAccountRequestEvent != null) { foreach (var each in OnUnlinkGameCenterAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkGameCenterAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkGameCenterAccountRequest>)each; } } } if (OnUnlinkGameCenterAccountResultEvent != null) { foreach (var each in OnUnlinkGameCenterAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkGameCenterAccountResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkGameCenterAccountResult>)each; } } } if (OnUnlinkGoogleAccountRequestEvent != null) { foreach (var each in OnUnlinkGoogleAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkGoogleAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkGoogleAccountRequest>)each; } } } if (OnUnlinkGoogleAccountResultEvent != null) { foreach (var each in OnUnlinkGoogleAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkGoogleAccountResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkGoogleAccountResult>)each; } } } if (OnUnlinkIOSDeviceIDRequestEvent != null) { foreach (var each in OnUnlinkIOSDeviceIDRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkIOSDeviceIDRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkIOSDeviceIDRequest>)each; } } } if (OnUnlinkIOSDeviceIDResultEvent != null) { foreach (var each in OnUnlinkIOSDeviceIDResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkIOSDeviceIDResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkIOSDeviceIDResult>)each; } } } if (OnUnlinkKongregateRequestEvent != null) { foreach (var each in OnUnlinkKongregateRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkKongregateRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkKongregateAccountRequest>)each; } } } if (OnUnlinkKongregateResultEvent != null) { foreach (var each in OnUnlinkKongregateResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkKongregateResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkKongregateAccountResult>)each; } } } if (OnUnlinkSteamAccountRequestEvent != null) { foreach (var each in OnUnlinkSteamAccountRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkSteamAccountRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkSteamAccountRequest>)each; } } } if (OnUnlinkSteamAccountResultEvent != null) { foreach (var each in OnUnlinkSteamAccountResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkSteamAccountResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkSteamAccountResult>)each; } } } if (OnUnlinkTwitchRequestEvent != null) { foreach (var each in OnUnlinkTwitchRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkTwitchRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkTwitchAccountRequest>)each; } } } if (OnUnlinkTwitchResultEvent != null) { foreach (var each in OnUnlinkTwitchResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkTwitchResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkTwitchAccountResult>)each; } } } if (OnUnlinkWindowsHelloRequestEvent != null) { foreach (var each in OnUnlinkWindowsHelloRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkWindowsHelloRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlinkWindowsHelloAccountRequest>)each; } } } if (OnUnlinkWindowsHelloResultEvent != null) { foreach (var each in OnUnlinkWindowsHelloResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlinkWindowsHelloResultEvent -= (PlayFabResultEvent<ClientModels.UnlinkWindowsHelloAccountResponse>)each; } } } if (OnUpdateAvatarUrlRequestEvent != null) { foreach (var each in OnUpdateAvatarUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateAvatarUrlRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateAvatarUrlRequest>)each; } } } if (OnUpdateAvatarUrlResultEvent != null) { foreach (var each in OnUpdateAvatarUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateAvatarUrlResultEvent -= (PlayFabResultEvent<ClientModels.EmptyResult>)each; } } } if (OnUpdateUserTitleDisplayNameRequestEvent != null) { foreach (var each in OnUpdateUserTitleDisplayNameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserTitleDisplayNameRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateUserTitleDisplayNameRequest>)each; } } } if (OnUpdateUserTitleDisplayNameResultEvent != null) { foreach (var each in OnUpdateUserTitleDisplayNameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserTitleDisplayNameResultEvent -= (PlayFabResultEvent<ClientModels.UpdateUserTitleDisplayNameResult>)each; } } } if (OnGetFriendLeaderboardRequestEvent != null) { foreach (var each in OnGetFriendLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardRequestEvent -= (PlayFabRequestEvent<ClientModels.GetFriendLeaderboardRequest>)each; } } } if (OnGetFriendLeaderboardResultEvent != null) { foreach (var each in OnGetFriendLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardResultEvent -= (PlayFabResultEvent<ClientModels.GetLeaderboardResult>)each; } } } if (OnGetFriendLeaderboardAroundPlayerRequestEvent != null) { foreach (var each in OnGetFriendLeaderboardAroundPlayerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardAroundPlayerRequestEvent -= (PlayFabRequestEvent<ClientModels.GetFriendLeaderboardAroundPlayerRequest>)each; } } } if (OnGetFriendLeaderboardAroundPlayerResultEvent != null) { foreach (var each in OnGetFriendLeaderboardAroundPlayerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendLeaderboardAroundPlayerResultEvent -= (PlayFabResultEvent<ClientModels.GetFriendLeaderboardAroundPlayerResult>)each; } } } if (OnGetLeaderboardRequestEvent != null) { foreach (var each in OnGetLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardRequestEvent -= (PlayFabRequestEvent<ClientModels.GetLeaderboardRequest>)each; } } } if (OnGetLeaderboardResultEvent != null) { foreach (var each in OnGetLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardResultEvent -= (PlayFabResultEvent<ClientModels.GetLeaderboardResult>)each; } } } if (OnGetLeaderboardAroundPlayerRequestEvent != null) { foreach (var each in OnGetLeaderboardAroundPlayerRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardAroundPlayerRequestEvent -= (PlayFabRequestEvent<ClientModels.GetLeaderboardAroundPlayerRequest>)each; } } } if (OnGetLeaderboardAroundPlayerResultEvent != null) { foreach (var each in OnGetLeaderboardAroundPlayerResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardAroundPlayerResultEvent -= (PlayFabResultEvent<ClientModels.GetLeaderboardAroundPlayerResult>)each; } } } if (OnGetPlayerStatisticsRequestEvent != null) { foreach (var each in OnGetPlayerStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerStatisticsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerStatisticsRequest>)each; } } } if (OnGetPlayerStatisticsResultEvent != null) { foreach (var each in OnGetPlayerStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerStatisticsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerStatisticsResult>)each; } } } if (OnGetPlayerStatisticVersionsRequestEvent != null) { foreach (var each in OnGetPlayerStatisticVersionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerStatisticVersionsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerStatisticVersionsRequest>)each; } } } if (OnGetPlayerStatisticVersionsResultEvent != null) { foreach (var each in OnGetPlayerStatisticVersionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerStatisticVersionsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerStatisticVersionsResult>)each; } } } if (OnGetUserDataRequestEvent != null) { foreach (var each in OnGetUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetUserDataRequest>)each; } } } if (OnGetUserDataResultEvent != null) { foreach (var each in OnGetUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserDataResultEvent -= (PlayFabResultEvent<ClientModels.GetUserDataResult>)each; } } } if (OnGetUserPublisherDataRequestEvent != null) { foreach (var each in OnGetUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserPublisherDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetUserDataRequest>)each; } } } if (OnGetUserPublisherDataResultEvent != null) { foreach (var each in OnGetUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserPublisherDataResultEvent -= (PlayFabResultEvent<ClientModels.GetUserDataResult>)each; } } } if (OnGetUserPublisherReadOnlyDataRequestEvent != null) { foreach (var each in OnGetUserPublisherReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserPublisherReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetUserDataRequest>)each; } } } if (OnGetUserPublisherReadOnlyDataResultEvent != null) { foreach (var each in OnGetUserPublisherReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserPublisherReadOnlyDataResultEvent -= (PlayFabResultEvent<ClientModels.GetUserDataResult>)each; } } } if (OnGetUserReadOnlyDataRequestEvent != null) { foreach (var each in OnGetUserReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetUserDataRequest>)each; } } } if (OnGetUserReadOnlyDataResultEvent != null) { foreach (var each in OnGetUserReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserReadOnlyDataResultEvent -= (PlayFabResultEvent<ClientModels.GetUserDataResult>)each; } } } if (OnUpdatePlayerStatisticsRequestEvent != null) { foreach (var each in OnUpdatePlayerStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdatePlayerStatisticsRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdatePlayerStatisticsRequest>)each; } } } if (OnUpdatePlayerStatisticsResultEvent != null) { foreach (var each in OnUpdatePlayerStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdatePlayerStatisticsResultEvent -= (PlayFabResultEvent<ClientModels.UpdatePlayerStatisticsResult>)each; } } } if (OnUpdateUserDataRequestEvent != null) { foreach (var each in OnUpdateUserDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserDataRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateUserDataRequest>)each; } } } if (OnUpdateUserDataResultEvent != null) { foreach (var each in OnUpdateUserDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserDataResultEvent -= (PlayFabResultEvent<ClientModels.UpdateUserDataResult>)each; } } } if (OnUpdateUserPublisherDataRequestEvent != null) { foreach (var each in OnUpdateUserPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserPublisherDataRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateUserDataRequest>)each; } } } if (OnUpdateUserPublisherDataResultEvent != null) { foreach (var each in OnUpdateUserPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateUserPublisherDataResultEvent -= (PlayFabResultEvent<ClientModels.UpdateUserDataResult>)each; } } } if (OnGetCatalogItemsRequestEvent != null) { foreach (var each in OnGetCatalogItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCatalogItemsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCatalogItemsRequest>)each; } } } if (OnGetCatalogItemsResultEvent != null) { foreach (var each in OnGetCatalogItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCatalogItemsResultEvent -= (PlayFabResultEvent<ClientModels.GetCatalogItemsResult>)each; } } } if (OnGetPublisherDataRequestEvent != null) { foreach (var each in OnGetPublisherDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPublisherDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPublisherDataRequest>)each; } } } if (OnGetPublisherDataResultEvent != null) { foreach (var each in OnGetPublisherDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPublisherDataResultEvent -= (PlayFabResultEvent<ClientModels.GetPublisherDataResult>)each; } } } if (OnGetStoreItemsRequestEvent != null) { foreach (var each in OnGetStoreItemsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetStoreItemsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetStoreItemsRequest>)each; } } } if (OnGetStoreItemsResultEvent != null) { foreach (var each in OnGetStoreItemsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetStoreItemsResultEvent -= (PlayFabResultEvent<ClientModels.GetStoreItemsResult>)each; } } } if (OnGetTimeRequestEvent != null) { foreach (var each in OnGetTimeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTimeRequestEvent -= (PlayFabRequestEvent<ClientModels.GetTimeRequest>)each; } } } if (OnGetTimeResultEvent != null) { foreach (var each in OnGetTimeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTimeResultEvent -= (PlayFabResultEvent<ClientModels.GetTimeResult>)each; } } } if (OnGetTitleDataRequestEvent != null) { foreach (var each in OnGetTitleDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitleDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetTitleDataRequest>)each; } } } if (OnGetTitleDataResultEvent != null) { foreach (var each in OnGetTitleDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitleDataResultEvent -= (PlayFabResultEvent<ClientModels.GetTitleDataResult>)each; } } } if (OnGetTitleNewsRequestEvent != null) { foreach (var each in OnGetTitleNewsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitleNewsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetTitleNewsRequest>)each; } } } if (OnGetTitleNewsResultEvent != null) { foreach (var each in OnGetTitleNewsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTitleNewsResultEvent -= (PlayFabResultEvent<ClientModels.GetTitleNewsResult>)each; } } } if (OnAddUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnAddUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ClientModels.AddUserVirtualCurrencyRequest>)each; } } } if (OnAddUserVirtualCurrencyResultEvent != null) { foreach (var each in OnAddUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<ClientModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnConfirmPurchaseRequestEvent != null) { foreach (var each in OnConfirmPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnConfirmPurchaseRequestEvent -= (PlayFabRequestEvent<ClientModels.ConfirmPurchaseRequest>)each; } } } if (OnConfirmPurchaseResultEvent != null) { foreach (var each in OnConfirmPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnConfirmPurchaseResultEvent -= (PlayFabResultEvent<ClientModels.ConfirmPurchaseResult>)each; } } } if (OnConsumeItemRequestEvent != null) { foreach (var each in OnConsumeItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnConsumeItemRequestEvent -= (PlayFabRequestEvent<ClientModels.ConsumeItemRequest>)each; } } } if (OnConsumeItemResultEvent != null) { foreach (var each in OnConsumeItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnConsumeItemResultEvent -= (PlayFabResultEvent<ClientModels.ConsumeItemResult>)each; } } } if (OnGetCharacterInventoryRequestEvent != null) { foreach (var each in OnGetCharacterInventoryRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterInventoryRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCharacterInventoryRequest>)each; } } } if (OnGetCharacterInventoryResultEvent != null) { foreach (var each in OnGetCharacterInventoryResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterInventoryResultEvent -= (PlayFabResultEvent<ClientModels.GetCharacterInventoryResult>)each; } } } if (OnGetPurchaseRequestEvent != null) { foreach (var each in OnGetPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPurchaseRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPurchaseRequest>)each; } } } if (OnGetPurchaseResultEvent != null) { foreach (var each in OnGetPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPurchaseResultEvent -= (PlayFabResultEvent<ClientModels.GetPurchaseResult>)each; } } } if (OnGetUserInventoryRequestEvent != null) { foreach (var each in OnGetUserInventoryRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserInventoryRequestEvent -= (PlayFabRequestEvent<ClientModels.GetUserInventoryRequest>)each; } } } if (OnGetUserInventoryResultEvent != null) { foreach (var each in OnGetUserInventoryResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetUserInventoryResultEvent -= (PlayFabResultEvent<ClientModels.GetUserInventoryResult>)each; } } } if (OnPayForPurchaseRequestEvent != null) { foreach (var each in OnPayForPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnPayForPurchaseRequestEvent -= (PlayFabRequestEvent<ClientModels.PayForPurchaseRequest>)each; } } } if (OnPayForPurchaseResultEvent != null) { foreach (var each in OnPayForPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnPayForPurchaseResultEvent -= (PlayFabResultEvent<ClientModels.PayForPurchaseResult>)each; } } } if (OnPurchaseItemRequestEvent != null) { foreach (var each in OnPurchaseItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnPurchaseItemRequestEvent -= (PlayFabRequestEvent<ClientModels.PurchaseItemRequest>)each; } } } if (OnPurchaseItemResultEvent != null) { foreach (var each in OnPurchaseItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnPurchaseItemResultEvent -= (PlayFabResultEvent<ClientModels.PurchaseItemResult>)each; } } } if (OnRedeemCouponRequestEvent != null) { foreach (var each in OnRedeemCouponRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRedeemCouponRequestEvent -= (PlayFabRequestEvent<ClientModels.RedeemCouponRequest>)each; } } } if (OnRedeemCouponResultEvent != null) { foreach (var each in OnRedeemCouponResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRedeemCouponResultEvent -= (PlayFabResultEvent<ClientModels.RedeemCouponResult>)each; } } } if (OnStartPurchaseRequestEvent != null) { foreach (var each in OnStartPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnStartPurchaseRequestEvent -= (PlayFabRequestEvent<ClientModels.StartPurchaseRequest>)each; } } } if (OnStartPurchaseResultEvent != null) { foreach (var each in OnStartPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnStartPurchaseResultEvent -= (PlayFabResultEvent<ClientModels.StartPurchaseResult>)each; } } } if (OnSubtractUserVirtualCurrencyRequestEvent != null) { foreach (var each in OnSubtractUserVirtualCurrencyRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSubtractUserVirtualCurrencyRequestEvent -= (PlayFabRequestEvent<ClientModels.SubtractUserVirtualCurrencyRequest>)each; } } } if (OnSubtractUserVirtualCurrencyResultEvent != null) { foreach (var each in OnSubtractUserVirtualCurrencyResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSubtractUserVirtualCurrencyResultEvent -= (PlayFabResultEvent<ClientModels.ModifyUserVirtualCurrencyResult>)each; } } } if (OnUnlockContainerInstanceRequestEvent != null) { foreach (var each in OnUnlockContainerInstanceRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlockContainerInstanceRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlockContainerInstanceRequest>)each; } } } if (OnUnlockContainerInstanceResultEvent != null) { foreach (var each in OnUnlockContainerInstanceResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlockContainerInstanceResultEvent -= (PlayFabResultEvent<ClientModels.UnlockContainerItemResult>)each; } } } if (OnUnlockContainerItemRequestEvent != null) { foreach (var each in OnUnlockContainerItemRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlockContainerItemRequestEvent -= (PlayFabRequestEvent<ClientModels.UnlockContainerItemRequest>)each; } } } if (OnUnlockContainerItemResultEvent != null) { foreach (var each in OnUnlockContainerItemResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUnlockContainerItemResultEvent -= (PlayFabResultEvent<ClientModels.UnlockContainerItemResult>)each; } } } if (OnAddFriendRequestEvent != null) { foreach (var each in OnAddFriendRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddFriendRequestEvent -= (PlayFabRequestEvent<ClientModels.AddFriendRequest>)each; } } } if (OnAddFriendResultEvent != null) { foreach (var each in OnAddFriendResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddFriendResultEvent -= (PlayFabResultEvent<ClientModels.AddFriendResult>)each; } } } if (OnGetFriendsListRequestEvent != null) { foreach (var each in OnGetFriendsListRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendsListRequestEvent -= (PlayFabRequestEvent<ClientModels.GetFriendsListRequest>)each; } } } if (OnGetFriendsListResultEvent != null) { foreach (var each in OnGetFriendsListResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetFriendsListResultEvent -= (PlayFabResultEvent<ClientModels.GetFriendsListResult>)each; } } } if (OnRemoveFriendRequestEvent != null) { foreach (var each in OnRemoveFriendRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveFriendRequestEvent -= (PlayFabRequestEvent<ClientModels.RemoveFriendRequest>)each; } } } if (OnRemoveFriendResultEvent != null) { foreach (var each in OnRemoveFriendResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveFriendResultEvent -= (PlayFabResultEvent<ClientModels.RemoveFriendResult>)each; } } } if (OnSetFriendTagsRequestEvent != null) { foreach (var each in OnSetFriendTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSetFriendTagsRequestEvent -= (PlayFabRequestEvent<ClientModels.SetFriendTagsRequest>)each; } } } if (OnSetFriendTagsResultEvent != null) { foreach (var each in OnSetFriendTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnSetFriendTagsResultEvent -= (PlayFabResultEvent<ClientModels.SetFriendTagsResult>)each; } } } if (OnGetCurrentGamesRequestEvent != null) { foreach (var each in OnGetCurrentGamesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCurrentGamesRequestEvent -= (PlayFabRequestEvent<ClientModels.CurrentGamesRequest>)each; } } } if (OnGetCurrentGamesResultEvent != null) { foreach (var each in OnGetCurrentGamesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCurrentGamesResultEvent -= (PlayFabResultEvent<ClientModels.CurrentGamesResult>)each; } } } if (OnGetGameServerRegionsRequestEvent != null) { foreach (var each in OnGetGameServerRegionsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetGameServerRegionsRequestEvent -= (PlayFabRequestEvent<ClientModels.GameServerRegionsRequest>)each; } } } if (OnGetGameServerRegionsResultEvent != null) { foreach (var each in OnGetGameServerRegionsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetGameServerRegionsResultEvent -= (PlayFabResultEvent<ClientModels.GameServerRegionsResult>)each; } } } if (OnMatchmakeRequestEvent != null) { foreach (var each in OnMatchmakeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakeRequestEvent -= (PlayFabRequestEvent<ClientModels.MatchmakeRequest>)each; } } } if (OnMatchmakeResultEvent != null) { foreach (var each in OnMatchmakeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnMatchmakeResultEvent -= (PlayFabResultEvent<ClientModels.MatchmakeResult>)each; } } } if (OnStartGameRequestEvent != null) { foreach (var each in OnStartGameRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnStartGameRequestEvent -= (PlayFabRequestEvent<ClientModels.StartGameRequest>)each; } } } if (OnStartGameResultEvent != null) { foreach (var each in OnStartGameResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnStartGameResultEvent -= (PlayFabResultEvent<ClientModels.StartGameResult>)each; } } } if (OnWriteCharacterEventRequestEvent != null) { foreach (var each in OnWriteCharacterEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteCharacterEventRequestEvent -= (PlayFabRequestEvent<ClientModels.WriteClientCharacterEventRequest>)each; } } } if (OnWriteCharacterEventResultEvent != null) { foreach (var each in OnWriteCharacterEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteCharacterEventResultEvent -= (PlayFabResultEvent<ClientModels.WriteEventResponse>)each; } } } if (OnWritePlayerEventRequestEvent != null) { foreach (var each in OnWritePlayerEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWritePlayerEventRequestEvent -= (PlayFabRequestEvent<ClientModels.WriteClientPlayerEventRequest>)each; } } } if (OnWritePlayerEventResultEvent != null) { foreach (var each in OnWritePlayerEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWritePlayerEventResultEvent -= (PlayFabResultEvent<ClientModels.WriteEventResponse>)each; } } } if (OnWriteTitleEventRequestEvent != null) { foreach (var each in OnWriteTitleEventRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteTitleEventRequestEvent -= (PlayFabRequestEvent<ClientModels.WriteTitleEventRequest>)each; } } } if (OnWriteTitleEventResultEvent != null) { foreach (var each in OnWriteTitleEventResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnWriteTitleEventResultEvent -= (PlayFabResultEvent<ClientModels.WriteEventResponse>)each; } } } if (OnAddSharedGroupMembersRequestEvent != null) { foreach (var each in OnAddSharedGroupMembersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddSharedGroupMembersRequestEvent -= (PlayFabRequestEvent<ClientModels.AddSharedGroupMembersRequest>)each; } } } if (OnAddSharedGroupMembersResultEvent != null) { foreach (var each in OnAddSharedGroupMembersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAddSharedGroupMembersResultEvent -= (PlayFabResultEvent<ClientModels.AddSharedGroupMembersResult>)each; } } } if (OnCreateSharedGroupRequestEvent != null) { foreach (var each in OnCreateSharedGroupRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCreateSharedGroupRequestEvent -= (PlayFabRequestEvent<ClientModels.CreateSharedGroupRequest>)each; } } } if (OnCreateSharedGroupResultEvent != null) { foreach (var each in OnCreateSharedGroupResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCreateSharedGroupResultEvent -= (PlayFabResultEvent<ClientModels.CreateSharedGroupResult>)each; } } } if (OnGetSharedGroupDataRequestEvent != null) { foreach (var each in OnGetSharedGroupDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetSharedGroupDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetSharedGroupDataRequest>)each; } } } if (OnGetSharedGroupDataResultEvent != null) { foreach (var each in OnGetSharedGroupDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetSharedGroupDataResultEvent -= (PlayFabResultEvent<ClientModels.GetSharedGroupDataResult>)each; } } } if (OnRemoveSharedGroupMembersRequestEvent != null) { foreach (var each in OnRemoveSharedGroupMembersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveSharedGroupMembersRequestEvent -= (PlayFabRequestEvent<ClientModels.RemoveSharedGroupMembersRequest>)each; } } } if (OnRemoveSharedGroupMembersResultEvent != null) { foreach (var each in OnRemoveSharedGroupMembersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRemoveSharedGroupMembersResultEvent -= (PlayFabResultEvent<ClientModels.RemoveSharedGroupMembersResult>)each; } } } if (OnUpdateSharedGroupDataRequestEvent != null) { foreach (var each in OnUpdateSharedGroupDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateSharedGroupDataRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateSharedGroupDataRequest>)each; } } } if (OnUpdateSharedGroupDataResultEvent != null) { foreach (var each in OnUpdateSharedGroupDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateSharedGroupDataResultEvent -= (PlayFabResultEvent<ClientModels.UpdateSharedGroupDataResult>)each; } } } if (OnExecuteCloudScriptRequestEvent != null) { foreach (var each in OnExecuteCloudScriptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnExecuteCloudScriptRequestEvent -= (PlayFabRequestEvent<ClientModels.ExecuteCloudScriptRequest>)each; } } } if (OnExecuteCloudScriptResultEvent != null) { foreach (var each in OnExecuteCloudScriptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnExecuteCloudScriptResultEvent -= (PlayFabResultEvent<ClientModels.ExecuteCloudScriptResult>)each; } } } if (OnGetContentDownloadUrlRequestEvent != null) { foreach (var each in OnGetContentDownloadUrlRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetContentDownloadUrlRequestEvent -= (PlayFabRequestEvent<ClientModels.GetContentDownloadUrlRequest>)each; } } } if (OnGetContentDownloadUrlResultEvent != null) { foreach (var each in OnGetContentDownloadUrlResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetContentDownloadUrlResultEvent -= (PlayFabResultEvent<ClientModels.GetContentDownloadUrlResult>)each; } } } if (OnGetAllUsersCharactersRequestEvent != null) { foreach (var each in OnGetAllUsersCharactersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetAllUsersCharactersRequestEvent -= (PlayFabRequestEvent<ClientModels.ListUsersCharactersRequest>)each; } } } if (OnGetAllUsersCharactersResultEvent != null) { foreach (var each in OnGetAllUsersCharactersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetAllUsersCharactersResultEvent -= (PlayFabResultEvent<ClientModels.ListUsersCharactersResult>)each; } } } if (OnGetCharacterLeaderboardRequestEvent != null) { foreach (var each in OnGetCharacterLeaderboardRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterLeaderboardRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCharacterLeaderboardRequest>)each; } } } if (OnGetCharacterLeaderboardResultEvent != null) { foreach (var each in OnGetCharacterLeaderboardResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterLeaderboardResultEvent -= (PlayFabResultEvent<ClientModels.GetCharacterLeaderboardResult>)each; } } } if (OnGetCharacterStatisticsRequestEvent != null) { foreach (var each in OnGetCharacterStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterStatisticsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCharacterStatisticsRequest>)each; } } } if (OnGetCharacterStatisticsResultEvent != null) { foreach (var each in OnGetCharacterStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterStatisticsResultEvent -= (PlayFabResultEvent<ClientModels.GetCharacterStatisticsResult>)each; } } } if (OnGetLeaderboardAroundCharacterRequestEvent != null) { foreach (var each in OnGetLeaderboardAroundCharacterRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardAroundCharacterRequestEvent -= (PlayFabRequestEvent<ClientModels.GetLeaderboardAroundCharacterRequest>)each; } } } if (OnGetLeaderboardAroundCharacterResultEvent != null) { foreach (var each in OnGetLeaderboardAroundCharacterResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardAroundCharacterResultEvent -= (PlayFabResultEvent<ClientModels.GetLeaderboardAroundCharacterResult>)each; } } } if (OnGetLeaderboardForUserCharactersRequestEvent != null) { foreach (var each in OnGetLeaderboardForUserCharactersRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardForUserCharactersRequestEvent -= (PlayFabRequestEvent<ClientModels.GetLeaderboardForUsersCharactersRequest>)each; } } } if (OnGetLeaderboardForUserCharactersResultEvent != null) { foreach (var each in OnGetLeaderboardForUserCharactersResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetLeaderboardForUserCharactersResultEvent -= (PlayFabResultEvent<ClientModels.GetLeaderboardForUsersCharactersResult>)each; } } } if (OnGrantCharacterToUserRequestEvent != null) { foreach (var each in OnGrantCharacterToUserRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGrantCharacterToUserRequestEvent -= (PlayFabRequestEvent<ClientModels.GrantCharacterToUserRequest>)each; } } } if (OnGrantCharacterToUserResultEvent != null) { foreach (var each in OnGrantCharacterToUserResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGrantCharacterToUserResultEvent -= (PlayFabResultEvent<ClientModels.GrantCharacterToUserResult>)each; } } } if (OnUpdateCharacterStatisticsRequestEvent != null) { foreach (var each in OnUpdateCharacterStatisticsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateCharacterStatisticsRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateCharacterStatisticsRequest>)each; } } } if (OnUpdateCharacterStatisticsResultEvent != null) { foreach (var each in OnUpdateCharacterStatisticsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateCharacterStatisticsResultEvent -= (PlayFabResultEvent<ClientModels.UpdateCharacterStatisticsResult>)each; } } } if (OnGetCharacterDataRequestEvent != null) { foreach (var each in OnGetCharacterDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCharacterDataRequest>)each; } } } if (OnGetCharacterDataResultEvent != null) { foreach (var each in OnGetCharacterDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterDataResultEvent -= (PlayFabResultEvent<ClientModels.GetCharacterDataResult>)each; } } } if (OnGetCharacterReadOnlyDataRequestEvent != null) { foreach (var each in OnGetCharacterReadOnlyDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterReadOnlyDataRequestEvent -= (PlayFabRequestEvent<ClientModels.GetCharacterDataRequest>)each; } } } if (OnGetCharacterReadOnlyDataResultEvent != null) { foreach (var each in OnGetCharacterReadOnlyDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetCharacterReadOnlyDataResultEvent -= (PlayFabResultEvent<ClientModels.GetCharacterDataResult>)each; } } } if (OnUpdateCharacterDataRequestEvent != null) { foreach (var each in OnUpdateCharacterDataRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateCharacterDataRequestEvent -= (PlayFabRequestEvent<ClientModels.UpdateCharacterDataRequest>)each; } } } if (OnUpdateCharacterDataResultEvent != null) { foreach (var each in OnUpdateCharacterDataResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnUpdateCharacterDataResultEvent -= (PlayFabResultEvent<ClientModels.UpdateCharacterDataResult>)each; } } } if (OnAcceptTradeRequestEvent != null) { foreach (var each in OnAcceptTradeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAcceptTradeRequestEvent -= (PlayFabRequestEvent<ClientModels.AcceptTradeRequest>)each; } } } if (OnAcceptTradeResultEvent != null) { foreach (var each in OnAcceptTradeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAcceptTradeResultEvent -= (PlayFabResultEvent<ClientModels.AcceptTradeResponse>)each; } } } if (OnCancelTradeRequestEvent != null) { foreach (var each in OnCancelTradeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCancelTradeRequestEvent -= (PlayFabRequestEvent<ClientModels.CancelTradeRequest>)each; } } } if (OnCancelTradeResultEvent != null) { foreach (var each in OnCancelTradeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnCancelTradeResultEvent -= (PlayFabResultEvent<ClientModels.CancelTradeResponse>)each; } } } if (OnGetPlayerTradesRequestEvent != null) { foreach (var each in OnGetPlayerTradesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerTradesRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerTradesRequest>)each; } } } if (OnGetPlayerTradesResultEvent != null) { foreach (var each in OnGetPlayerTradesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerTradesResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerTradesResponse>)each; } } } if (OnGetTradeStatusRequestEvent != null) { foreach (var each in OnGetTradeStatusRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTradeStatusRequestEvent -= (PlayFabRequestEvent<ClientModels.GetTradeStatusRequest>)each; } } } if (OnGetTradeStatusResultEvent != null) { foreach (var each in OnGetTradeStatusResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetTradeStatusResultEvent -= (PlayFabResultEvent<ClientModels.GetTradeStatusResponse>)each; } } } if (OnOpenTradeRequestEvent != null) { foreach (var each in OnOpenTradeRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnOpenTradeRequestEvent -= (PlayFabRequestEvent<ClientModels.OpenTradeRequest>)each; } } } if (OnOpenTradeResultEvent != null) { foreach (var each in OnOpenTradeResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnOpenTradeResultEvent -= (PlayFabResultEvent<ClientModels.OpenTradeResponse>)each; } } } if (OnAttributeInstallRequestEvent != null) { foreach (var each in OnAttributeInstallRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAttributeInstallRequestEvent -= (PlayFabRequestEvent<ClientModels.AttributeInstallRequest>)each; } } } if (OnAttributeInstallResultEvent != null) { foreach (var each in OnAttributeInstallResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAttributeInstallResultEvent -= (PlayFabResultEvent<ClientModels.AttributeInstallResult>)each; } } } if (OnGetPlayerSegmentsRequestEvent != null) { foreach (var each in OnGetPlayerSegmentsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerSegmentsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerSegmentsRequest>)each; } } } if (OnGetPlayerSegmentsResultEvent != null) { foreach (var each in OnGetPlayerSegmentsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerSegmentsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerSegmentsResult>)each; } } } if (OnGetPlayerTagsRequestEvent != null) { foreach (var each in OnGetPlayerTagsRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerTagsRequestEvent -= (PlayFabRequestEvent<ClientModels.GetPlayerTagsRequest>)each; } } } if (OnGetPlayerTagsResultEvent != null) { foreach (var each in OnGetPlayerTagsResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnGetPlayerTagsResultEvent -= (PlayFabResultEvent<ClientModels.GetPlayerTagsResult>)each; } } } if (OnAndroidDevicePushNotificationRegistrationRequestEvent != null) { foreach (var each in OnAndroidDevicePushNotificationRegistrationRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAndroidDevicePushNotificationRegistrationRequestEvent -= (PlayFabRequestEvent<ClientModels.AndroidDevicePushNotificationRegistrationRequest>)each; } } } if (OnAndroidDevicePushNotificationRegistrationResultEvent != null) { foreach (var each in OnAndroidDevicePushNotificationRegistrationResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnAndroidDevicePushNotificationRegistrationResultEvent -= (PlayFabResultEvent<ClientModels.AndroidDevicePushNotificationRegistrationResult>)each; } } } if (OnRegisterForIOSPushNotificationRequestEvent != null) { foreach (var each in OnRegisterForIOSPushNotificationRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRegisterForIOSPushNotificationRequestEvent -= (PlayFabRequestEvent<ClientModels.RegisterForIOSPushNotificationRequest>)each; } } } if (OnRegisterForIOSPushNotificationResultEvent != null) { foreach (var each in OnRegisterForIOSPushNotificationResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRegisterForIOSPushNotificationResultEvent -= (PlayFabResultEvent<ClientModels.RegisterForIOSPushNotificationResult>)each; } } } if (OnRestoreIOSPurchasesRequestEvent != null) { foreach (var each in OnRestoreIOSPurchasesRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRestoreIOSPurchasesRequestEvent -= (PlayFabRequestEvent<ClientModels.RestoreIOSPurchasesRequest>)each; } } } if (OnRestoreIOSPurchasesResultEvent != null) { foreach (var each in OnRestoreIOSPurchasesResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnRestoreIOSPurchasesResultEvent -= (PlayFabResultEvent<ClientModels.RestoreIOSPurchasesResult>)each; } } } if (OnValidateAmazonIAPReceiptRequestEvent != null) { foreach (var each in OnValidateAmazonIAPReceiptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateAmazonIAPReceiptRequestEvent -= (PlayFabRequestEvent<ClientModels.ValidateAmazonReceiptRequest>)each; } } } if (OnValidateAmazonIAPReceiptResultEvent != null) { foreach (var each in OnValidateAmazonIAPReceiptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateAmazonIAPReceiptResultEvent -= (PlayFabResultEvent<ClientModels.ValidateAmazonReceiptResult>)each; } } } if (OnValidateGooglePlayPurchaseRequestEvent != null) { foreach (var each in OnValidateGooglePlayPurchaseRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateGooglePlayPurchaseRequestEvent -= (PlayFabRequestEvent<ClientModels.ValidateGooglePlayPurchaseRequest>)each; } } } if (OnValidateGooglePlayPurchaseResultEvent != null) { foreach (var each in OnValidateGooglePlayPurchaseResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateGooglePlayPurchaseResultEvent -= (PlayFabResultEvent<ClientModels.ValidateGooglePlayPurchaseResult>)each; } } } if (OnValidateIOSReceiptRequestEvent != null) { foreach (var each in OnValidateIOSReceiptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateIOSReceiptRequestEvent -= (PlayFabRequestEvent<ClientModels.ValidateIOSReceiptRequest>)each; } } } if (OnValidateIOSReceiptResultEvent != null) { foreach (var each in OnValidateIOSReceiptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateIOSReceiptResultEvent -= (PlayFabResultEvent<ClientModels.ValidateIOSReceiptResult>)each; } } } if (OnValidateWindowsStoreReceiptRequestEvent != null) { foreach (var each in OnValidateWindowsStoreReceiptRequestEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateWindowsStoreReceiptRequestEvent -= (PlayFabRequestEvent<ClientModels.ValidateWindowsReceiptRequest>)each; } } } if (OnValidateWindowsStoreReceiptResultEvent != null) { foreach (var each in OnValidateWindowsStoreReceiptResultEvent.GetInvocationList()) { if (ReferenceEquals(each.Target, instance)) { OnValidateWindowsStoreReceiptResultEvent -= (PlayFabResultEvent<ClientModels.ValidateWindowsReceiptResult>)each; } } } #endif } private void OnProcessingErrorEvent(PlayFabRequestCommon request, PlayFabError error) { //This just forwards the event. if (_instance.OnGlobalErrorEvent != null) { _instance.OnGlobalErrorEvent(request, error); } } private void OnProcessingEvent(ApiProcessingEventArgs e) { if (e.EventType == ApiProcessingEventType.Pre) { var type = e.Request.GetType(); #if ENABLE_PLAYFABADMIN_API if (type == typeof(AdminModels.CreatePlayerSharedSecretRequest)) { if (_instance.OnAdminCreatePlayerSharedSecretRequestEvent != null) { _instance.OnAdminCreatePlayerSharedSecretRequestEvent((AdminModels.CreatePlayerSharedSecretRequest)e.Request); return; } } if (type == typeof(AdminModels.DeletePlayerSharedSecretRequest)) { if (_instance.OnAdminDeletePlayerSharedSecretRequestEvent != null) { _instance.OnAdminDeletePlayerSharedSecretRequestEvent((AdminModels.DeletePlayerSharedSecretRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerSharedSecretsRequest)) { if (_instance.OnAdminGetPlayerSharedSecretsRequestEvent != null) { _instance.OnAdminGetPlayerSharedSecretsRequestEvent((AdminModels.GetPlayerSharedSecretsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPolicyRequest)) { if (_instance.OnAdminGetPolicyRequestEvent != null) { _instance.OnAdminGetPolicyRequestEvent((AdminModels.GetPolicyRequest)e.Request); return; } } if (type == typeof(AdminModels.SetPlayerSecretRequest)) { if (_instance.OnAdminSetPlayerSecretRequestEvent != null) { _instance.OnAdminSetPlayerSecretRequestEvent((AdminModels.SetPlayerSecretRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdatePlayerSharedSecretRequest)) { if (_instance.OnAdminUpdatePlayerSharedSecretRequestEvent != null) { _instance.OnAdminUpdatePlayerSharedSecretRequestEvent((AdminModels.UpdatePlayerSharedSecretRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdatePolicyRequest)) { if (_instance.OnAdminUpdatePolicyRequestEvent != null) { _instance.OnAdminUpdatePolicyRequestEvent((AdminModels.UpdatePolicyRequest)e.Request); return; } } if (type == typeof(AdminModels.BanUsersRequest)) { if (_instance.OnAdminBanUsersRequestEvent != null) { _instance.OnAdminBanUsersRequestEvent((AdminModels.BanUsersRequest)e.Request); return; } } if (type == typeof(AdminModels.LookupUserAccountInfoRequest)) { if (_instance.OnAdminGetUserAccountInfoRequestEvent != null) { _instance.OnAdminGetUserAccountInfoRequestEvent((AdminModels.LookupUserAccountInfoRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserBansRequest)) { if (_instance.OnAdminGetUserBansRequestEvent != null) { _instance.OnAdminGetUserBansRequestEvent((AdminModels.GetUserBansRequest)e.Request); return; } } if (type == typeof(AdminModels.ResetUsersRequest)) { if (_instance.OnAdminResetUsersRequestEvent != null) { _instance.OnAdminResetUsersRequestEvent((AdminModels.ResetUsersRequest)e.Request); return; } } if (type == typeof(AdminModels.RevokeAllBansForUserRequest)) { if (_instance.OnAdminRevokeAllBansForUserRequestEvent != null) { _instance.OnAdminRevokeAllBansForUserRequestEvent((AdminModels.RevokeAllBansForUserRequest)e.Request); return; } } if (type == typeof(AdminModels.RevokeBansRequest)) { if (_instance.OnAdminRevokeBansRequestEvent != null) { _instance.OnAdminRevokeBansRequestEvent((AdminModels.RevokeBansRequest)e.Request); return; } } if (type == typeof(AdminModels.SendAccountRecoveryEmailRequest)) { if (_instance.OnAdminSendAccountRecoveryEmailRequestEvent != null) { _instance.OnAdminSendAccountRecoveryEmailRequestEvent((AdminModels.SendAccountRecoveryEmailRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateBansRequest)) { if (_instance.OnAdminUpdateBansRequestEvent != null) { _instance.OnAdminUpdateBansRequestEvent((AdminModels.UpdateBansRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserTitleDisplayNameRequest)) { if (_instance.OnAdminUpdateUserTitleDisplayNameRequestEvent != null) { _instance.OnAdminUpdateUserTitleDisplayNameRequestEvent((AdminModels.UpdateUserTitleDisplayNameRequest)e.Request); return; } } if (type == typeof(AdminModels.CreatePlayerStatisticDefinitionRequest)) { if (_instance.OnAdminCreatePlayerStatisticDefinitionRequestEvent != null) { _instance.OnAdminCreatePlayerStatisticDefinitionRequestEvent((AdminModels.CreatePlayerStatisticDefinitionRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteUsersRequest)) { if (_instance.OnAdminDeleteUsersRequestEvent != null) { _instance.OnAdminDeleteUsersRequestEvent((AdminModels.DeleteUsersRequest)e.Request); return; } } if (type == typeof(AdminModels.GetDataReportRequest)) { if (_instance.OnAdminGetDataReportRequestEvent != null) { _instance.OnAdminGetDataReportRequestEvent((AdminModels.GetDataReportRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerStatisticDefinitionsRequest)) { if (_instance.OnAdminGetPlayerStatisticDefinitionsRequestEvent != null) { _instance.OnAdminGetPlayerStatisticDefinitionsRequestEvent((AdminModels.GetPlayerStatisticDefinitionsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerStatisticVersionsRequest)) { if (_instance.OnAdminGetPlayerStatisticVersionsRequestEvent != null) { _instance.OnAdminGetPlayerStatisticVersionsRequestEvent((AdminModels.GetPlayerStatisticVersionsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserDataRequestEvent != null) { _instance.OnAdminGetUserDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserInternalDataRequestEvent != null) { _instance.OnAdminGetUserInternalDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserPublisherDataRequestEvent != null) { _instance.OnAdminGetUserPublisherDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserPublisherInternalDataRequestEvent != null) { _instance.OnAdminGetUserPublisherInternalDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserPublisherReadOnlyDataRequestEvent != null) { _instance.OnAdminGetUserPublisherReadOnlyDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserDataRequest)) { if (_instance.OnAdminGetUserReadOnlyDataRequestEvent != null) { _instance.OnAdminGetUserReadOnlyDataRequestEvent((AdminModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.IncrementPlayerStatisticVersionRequest)) { if (_instance.OnAdminIncrementPlayerStatisticVersionRequestEvent != null) { _instance.OnAdminIncrementPlayerStatisticVersionRequestEvent((AdminModels.IncrementPlayerStatisticVersionRequest)e.Request); return; } } if (type == typeof(AdminModels.RefundPurchaseRequest)) { if (_instance.OnAdminRefundPurchaseRequestEvent != null) { _instance.OnAdminRefundPurchaseRequestEvent((AdminModels.RefundPurchaseRequest)e.Request); return; } } if (type == typeof(AdminModels.ResetUserStatisticsRequest)) { if (_instance.OnAdminResetUserStatisticsRequestEvent != null) { _instance.OnAdminResetUserStatisticsRequestEvent((AdminModels.ResetUserStatisticsRequest)e.Request); return; } } if (type == typeof(AdminModels.ResolvePurchaseDisputeRequest)) { if (_instance.OnAdminResolvePurchaseDisputeRequestEvent != null) { _instance.OnAdminResolvePurchaseDisputeRequestEvent((AdminModels.ResolvePurchaseDisputeRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdatePlayerStatisticDefinitionRequest)) { if (_instance.OnAdminUpdatePlayerStatisticDefinitionRequestEvent != null) { _instance.OnAdminUpdatePlayerStatisticDefinitionRequestEvent((AdminModels.UpdatePlayerStatisticDefinitionRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserDataRequest)) { if (_instance.OnAdminUpdateUserDataRequestEvent != null) { _instance.OnAdminUpdateUserDataRequestEvent((AdminModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserInternalDataRequest)) { if (_instance.OnAdminUpdateUserInternalDataRequestEvent != null) { _instance.OnAdminUpdateUserInternalDataRequestEvent((AdminModels.UpdateUserInternalDataRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserDataRequest)) { if (_instance.OnAdminUpdateUserPublisherDataRequestEvent != null) { _instance.OnAdminUpdateUserPublisherDataRequestEvent((AdminModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserInternalDataRequest)) { if (_instance.OnAdminUpdateUserPublisherInternalDataRequestEvent != null) { _instance.OnAdminUpdateUserPublisherInternalDataRequestEvent((AdminModels.UpdateUserInternalDataRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserDataRequest)) { if (_instance.OnAdminUpdateUserPublisherReadOnlyDataRequestEvent != null) { _instance.OnAdminUpdateUserPublisherReadOnlyDataRequestEvent((AdminModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateUserDataRequest)) { if (_instance.OnAdminUpdateUserReadOnlyDataRequestEvent != null) { _instance.OnAdminUpdateUserReadOnlyDataRequestEvent((AdminModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(AdminModels.AddNewsRequest)) { if (_instance.OnAdminAddNewsRequestEvent != null) { _instance.OnAdminAddNewsRequestEvent((AdminModels.AddNewsRequest)e.Request); return; } } if (type == typeof(AdminModels.AddVirtualCurrencyTypesRequest)) { if (_instance.OnAdminAddVirtualCurrencyTypesRequestEvent != null) { _instance.OnAdminAddVirtualCurrencyTypesRequestEvent((AdminModels.AddVirtualCurrencyTypesRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteStoreRequest)) { if (_instance.OnAdminDeleteStoreRequestEvent != null) { _instance.OnAdminDeleteStoreRequestEvent((AdminModels.DeleteStoreRequest)e.Request); return; } } if (type == typeof(AdminModels.GetCatalogItemsRequest)) { if (_instance.OnAdminGetCatalogItemsRequestEvent != null) { _instance.OnAdminGetCatalogItemsRequestEvent((AdminModels.GetCatalogItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPublisherDataRequest)) { if (_instance.OnAdminGetPublisherDataRequestEvent != null) { _instance.OnAdminGetPublisherDataRequestEvent((AdminModels.GetPublisherDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetRandomResultTablesRequest)) { if (_instance.OnAdminGetRandomResultTablesRequestEvent != null) { _instance.OnAdminGetRandomResultTablesRequestEvent((AdminModels.GetRandomResultTablesRequest)e.Request); return; } } if (type == typeof(AdminModels.GetStoreItemsRequest)) { if (_instance.OnAdminGetStoreItemsRequestEvent != null) { _instance.OnAdminGetStoreItemsRequestEvent((AdminModels.GetStoreItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTitleDataRequest)) { if (_instance.OnAdminGetTitleDataRequestEvent != null) { _instance.OnAdminGetTitleDataRequestEvent((AdminModels.GetTitleDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTitleDataRequest)) { if (_instance.OnAdminGetTitleInternalDataRequestEvent != null) { _instance.OnAdminGetTitleInternalDataRequestEvent((AdminModels.GetTitleDataRequest)e.Request); return; } } if (type == typeof(AdminModels.ListVirtualCurrencyTypesRequest)) { if (_instance.OnAdminListVirtualCurrencyTypesRequestEvent != null) { _instance.OnAdminListVirtualCurrencyTypesRequestEvent((AdminModels.ListVirtualCurrencyTypesRequest)e.Request); return; } } if (type == typeof(AdminModels.RemoveVirtualCurrencyTypesRequest)) { if (_instance.OnAdminRemoveVirtualCurrencyTypesRequestEvent != null) { _instance.OnAdminRemoveVirtualCurrencyTypesRequestEvent((AdminModels.RemoveVirtualCurrencyTypesRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateCatalogItemsRequest)) { if (_instance.OnAdminSetCatalogItemsRequestEvent != null) { _instance.OnAdminSetCatalogItemsRequestEvent((AdminModels.UpdateCatalogItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateStoreItemsRequest)) { if (_instance.OnAdminSetStoreItemsRequestEvent != null) { _instance.OnAdminSetStoreItemsRequestEvent((AdminModels.UpdateStoreItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.SetTitleDataRequest)) { if (_instance.OnAdminSetTitleDataRequestEvent != null) { _instance.OnAdminSetTitleDataRequestEvent((AdminModels.SetTitleDataRequest)e.Request); return; } } if (type == typeof(AdminModels.SetTitleDataRequest)) { if (_instance.OnAdminSetTitleInternalDataRequestEvent != null) { _instance.OnAdminSetTitleInternalDataRequestEvent((AdminModels.SetTitleDataRequest)e.Request); return; } } if (type == typeof(AdminModels.SetupPushNotificationRequest)) { if (_instance.OnAdminSetupPushNotificationRequestEvent != null) { _instance.OnAdminSetupPushNotificationRequestEvent((AdminModels.SetupPushNotificationRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateCatalogItemsRequest)) { if (_instance.OnAdminUpdateCatalogItemsRequestEvent != null) { _instance.OnAdminUpdateCatalogItemsRequestEvent((AdminModels.UpdateCatalogItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateRandomResultTablesRequest)) { if (_instance.OnAdminUpdateRandomResultTablesRequestEvent != null) { _instance.OnAdminUpdateRandomResultTablesRequestEvent((AdminModels.UpdateRandomResultTablesRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateStoreItemsRequest)) { if (_instance.OnAdminUpdateStoreItemsRequestEvent != null) { _instance.OnAdminUpdateStoreItemsRequestEvent((AdminModels.UpdateStoreItemsRequest)e.Request); return; } } if (type == typeof(AdminModels.AddUserVirtualCurrencyRequest)) { if (_instance.OnAdminAddUserVirtualCurrencyRequestEvent != null) { _instance.OnAdminAddUserVirtualCurrencyRequestEvent((AdminModels.AddUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(AdminModels.GetUserInventoryRequest)) { if (_instance.OnAdminGetUserInventoryRequestEvent != null) { _instance.OnAdminGetUserInventoryRequestEvent((AdminModels.GetUserInventoryRequest)e.Request); return; } } if (type == typeof(AdminModels.GrantItemsToUsersRequest)) { if (_instance.OnAdminGrantItemsToUsersRequestEvent != null) { _instance.OnAdminGrantItemsToUsersRequestEvent((AdminModels.GrantItemsToUsersRequest)e.Request); return; } } if (type == typeof(AdminModels.RevokeInventoryItemRequest)) { if (_instance.OnAdminRevokeInventoryItemRequestEvent != null) { _instance.OnAdminRevokeInventoryItemRequestEvent((AdminModels.RevokeInventoryItemRequest)e.Request); return; } } if (type == typeof(AdminModels.SubtractUserVirtualCurrencyRequest)) { if (_instance.OnAdminSubtractUserVirtualCurrencyRequestEvent != null) { _instance.OnAdminSubtractUserVirtualCurrencyRequestEvent((AdminModels.SubtractUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(AdminModels.GetMatchmakerGameInfoRequest)) { if (_instance.OnAdminGetMatchmakerGameInfoRequestEvent != null) { _instance.OnAdminGetMatchmakerGameInfoRequestEvent((AdminModels.GetMatchmakerGameInfoRequest)e.Request); return; } } if (type == typeof(AdminModels.GetMatchmakerGameModesRequest)) { if (_instance.OnAdminGetMatchmakerGameModesRequestEvent != null) { _instance.OnAdminGetMatchmakerGameModesRequestEvent((AdminModels.GetMatchmakerGameModesRequest)e.Request); return; } } if (type == typeof(AdminModels.ModifyMatchmakerGameModesRequest)) { if (_instance.OnAdminModifyMatchmakerGameModesRequestEvent != null) { _instance.OnAdminModifyMatchmakerGameModesRequestEvent((AdminModels.ModifyMatchmakerGameModesRequest)e.Request); return; } } if (type == typeof(AdminModels.AddServerBuildRequest)) { if (_instance.OnAdminAddServerBuildRequestEvent != null) { _instance.OnAdminAddServerBuildRequestEvent((AdminModels.AddServerBuildRequest)e.Request); return; } } if (type == typeof(AdminModels.GetServerBuildInfoRequest)) { if (_instance.OnAdminGetServerBuildInfoRequestEvent != null) { _instance.OnAdminGetServerBuildInfoRequestEvent((AdminModels.GetServerBuildInfoRequest)e.Request); return; } } if (type == typeof(AdminModels.GetServerBuildUploadURLRequest)) { if (_instance.OnAdminGetServerBuildUploadUrlRequestEvent != null) { _instance.OnAdminGetServerBuildUploadUrlRequestEvent((AdminModels.GetServerBuildUploadURLRequest)e.Request); return; } } if (type == typeof(AdminModels.ListBuildsRequest)) { if (_instance.OnAdminListServerBuildsRequestEvent != null) { _instance.OnAdminListServerBuildsRequestEvent((AdminModels.ListBuildsRequest)e.Request); return; } } if (type == typeof(AdminModels.ModifyServerBuildRequest)) { if (_instance.OnAdminModifyServerBuildRequestEvent != null) { _instance.OnAdminModifyServerBuildRequestEvent((AdminModels.ModifyServerBuildRequest)e.Request); return; } } if (type == typeof(AdminModels.RemoveServerBuildRequest)) { if (_instance.OnAdminRemoveServerBuildRequestEvent != null) { _instance.OnAdminRemoveServerBuildRequestEvent((AdminModels.RemoveServerBuildRequest)e.Request); return; } } if (type == typeof(AdminModels.SetPublisherDataRequest)) { if (_instance.OnAdminSetPublisherDataRequestEvent != null) { _instance.OnAdminSetPublisherDataRequestEvent((AdminModels.SetPublisherDataRequest)e.Request); return; } } if (type == typeof(AdminModels.GetCloudScriptRevisionRequest)) { if (_instance.OnAdminGetCloudScriptRevisionRequestEvent != null) { _instance.OnAdminGetCloudScriptRevisionRequestEvent((AdminModels.GetCloudScriptRevisionRequest)e.Request); return; } } if (type == typeof(AdminModels.GetCloudScriptVersionsRequest)) { if (_instance.OnAdminGetCloudScriptVersionsRequestEvent != null) { _instance.OnAdminGetCloudScriptVersionsRequestEvent((AdminModels.GetCloudScriptVersionsRequest)e.Request); return; } } if (type == typeof(AdminModels.SetPublishedRevisionRequest)) { if (_instance.OnAdminSetPublishedRevisionRequestEvent != null) { _instance.OnAdminSetPublishedRevisionRequestEvent((AdminModels.SetPublishedRevisionRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateCloudScriptRequest)) { if (_instance.OnAdminUpdateCloudScriptRequestEvent != null) { _instance.OnAdminUpdateCloudScriptRequestEvent((AdminModels.UpdateCloudScriptRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteContentRequest)) { if (_instance.OnAdminDeleteContentRequestEvent != null) { _instance.OnAdminDeleteContentRequestEvent((AdminModels.DeleteContentRequest)e.Request); return; } } if (type == typeof(AdminModels.GetContentListRequest)) { if (_instance.OnAdminGetContentListRequestEvent != null) { _instance.OnAdminGetContentListRequestEvent((AdminModels.GetContentListRequest)e.Request); return; } } if (type == typeof(AdminModels.GetContentUploadUrlRequest)) { if (_instance.OnAdminGetContentUploadUrlRequestEvent != null) { _instance.OnAdminGetContentUploadUrlRequestEvent((AdminModels.GetContentUploadUrlRequest)e.Request); return; } } if (type == typeof(AdminModels.ResetCharacterStatisticsRequest)) { if (_instance.OnAdminResetCharacterStatisticsRequestEvent != null) { _instance.OnAdminResetCharacterStatisticsRequestEvent((AdminModels.ResetCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(AdminModels.AddPlayerTagRequest)) { if (_instance.OnAdminAddPlayerTagRequestEvent != null) { _instance.OnAdminAddPlayerTagRequestEvent((AdminModels.AddPlayerTagRequest)e.Request); return; } } if (type == typeof(AdminModels.GetAllActionGroupsRequest)) { if (_instance.OnAdminGetAllActionGroupsRequestEvent != null) { _instance.OnAdminGetAllActionGroupsRequestEvent((AdminModels.GetAllActionGroupsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetAllSegmentsRequest)) { if (_instance.OnAdminGetAllSegmentsRequestEvent != null) { _instance.OnAdminGetAllSegmentsRequestEvent((AdminModels.GetAllSegmentsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayersSegmentsRequest)) { if (_instance.OnAdminGetPlayerSegmentsRequestEvent != null) { _instance.OnAdminGetPlayerSegmentsRequestEvent((AdminModels.GetPlayersSegmentsRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayersInSegmentRequest)) { if (_instance.OnAdminGetPlayersInSegmentRequestEvent != null) { _instance.OnAdminGetPlayersInSegmentRequestEvent((AdminModels.GetPlayersInSegmentRequest)e.Request); return; } } if (type == typeof(AdminModels.GetPlayerTagsRequest)) { if (_instance.OnAdminGetPlayerTagsRequestEvent != null) { _instance.OnAdminGetPlayerTagsRequestEvent((AdminModels.GetPlayerTagsRequest)e.Request); return; } } if (type == typeof(AdminModels.RemovePlayerTagRequest)) { if (_instance.OnAdminRemovePlayerTagRequestEvent != null) { _instance.OnAdminRemovePlayerTagRequestEvent((AdminModels.RemovePlayerTagRequest)e.Request); return; } } if (type == typeof(AdminModels.AbortTaskInstanceRequest)) { if (_instance.OnAdminAbortTaskInstanceRequestEvent != null) { _instance.OnAdminAbortTaskInstanceRequestEvent((AdminModels.AbortTaskInstanceRequest)e.Request); return; } } if (type == typeof(AdminModels.CreateActionsOnPlayerSegmentTaskRequest)) { if (_instance.OnAdminCreateActionsOnPlayersInSegmentTaskRequestEvent != null) { _instance.OnAdminCreateActionsOnPlayersInSegmentTaskRequestEvent((AdminModels.CreateActionsOnPlayerSegmentTaskRequest)e.Request); return; } } if (type == typeof(AdminModels.CreateCloudScriptTaskRequest)) { if (_instance.OnAdminCreateCloudScriptTaskRequestEvent != null) { _instance.OnAdminCreateCloudScriptTaskRequestEvent((AdminModels.CreateCloudScriptTaskRequest)e.Request); return; } } if (type == typeof(AdminModels.DeleteTaskRequest)) { if (_instance.OnAdminDeleteTaskRequestEvent != null) { _instance.OnAdminDeleteTaskRequestEvent((AdminModels.DeleteTaskRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTaskInstanceRequest)) { if (_instance.OnAdminGetActionsOnPlayersInSegmentTaskInstanceRequestEvent != null) { _instance.OnAdminGetActionsOnPlayersInSegmentTaskInstanceRequestEvent((AdminModels.GetTaskInstanceRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTaskInstanceRequest)) { if (_instance.OnAdminGetCloudScriptTaskInstanceRequestEvent != null) { _instance.OnAdminGetCloudScriptTaskInstanceRequestEvent((AdminModels.GetTaskInstanceRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTaskInstancesRequest)) { if (_instance.OnAdminGetTaskInstancesRequestEvent != null) { _instance.OnAdminGetTaskInstancesRequestEvent((AdminModels.GetTaskInstancesRequest)e.Request); return; } } if (type == typeof(AdminModels.GetTasksRequest)) { if (_instance.OnAdminGetTasksRequestEvent != null) { _instance.OnAdminGetTasksRequestEvent((AdminModels.GetTasksRequest)e.Request); return; } } if (type == typeof(AdminModels.RunTaskRequest)) { if (_instance.OnAdminRunTaskRequestEvent != null) { _instance.OnAdminRunTaskRequestEvent((AdminModels.RunTaskRequest)e.Request); return; } } if (type == typeof(AdminModels.UpdateTaskRequest)) { if (_instance.OnAdminUpdateTaskRequestEvent != null) { _instance.OnAdminUpdateTaskRequestEvent((AdminModels.UpdateTaskRequest)e.Request); return; } } #endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(MatchmakerModels.AuthUserRequest)) { if (_instance.OnMatchmakerAuthUserRequestEvent != null) { _instance.OnMatchmakerAuthUserRequestEvent((MatchmakerModels.AuthUserRequest)e.Request); return; } } if (type == typeof(MatchmakerModels.PlayerJoinedRequest)) { if (_instance.OnMatchmakerPlayerJoinedRequestEvent != null) { _instance.OnMatchmakerPlayerJoinedRequestEvent((MatchmakerModels.PlayerJoinedRequest)e.Request); return; } } if (type == typeof(MatchmakerModels.PlayerLeftRequest)) { if (_instance.OnMatchmakerPlayerLeftRequestEvent != null) { _instance.OnMatchmakerPlayerLeftRequestEvent((MatchmakerModels.PlayerLeftRequest)e.Request); return; } } if (type == typeof(MatchmakerModels.StartGameRequest)) { if (_instance.OnMatchmakerStartGameRequestEvent != null) { _instance.OnMatchmakerStartGameRequestEvent((MatchmakerModels.StartGameRequest)e.Request); return; } } if (type == typeof(MatchmakerModels.UserInfoRequest)) { if (_instance.OnMatchmakerUserInfoRequestEvent != null) { _instance.OnMatchmakerUserInfoRequestEvent((MatchmakerModels.UserInfoRequest)e.Request); return; } } #endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(ServerModels.AuthenticateSessionTicketRequest)) { if (_instance.OnServerAuthenticateSessionTicketRequestEvent != null) { _instance.OnServerAuthenticateSessionTicketRequestEvent((ServerModels.AuthenticateSessionTicketRequest)e.Request); return; } } if (type == typeof(ServerModels.SetPlayerSecretRequest)) { if (_instance.OnServerSetPlayerSecretRequestEvent != null) { _instance.OnServerSetPlayerSecretRequestEvent((ServerModels.SetPlayerSecretRequest)e.Request); return; } } if (type == typeof(ServerModels.BanUsersRequest)) { if (_instance.OnServerBanUsersRequestEvent != null) { _instance.OnServerBanUsersRequestEvent((ServerModels.BanUsersRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayerProfileRequest)) { if (_instance.OnServerGetPlayerProfileRequestEvent != null) { _instance.OnServerGetPlayerProfileRequestEvent((ServerModels.GetPlayerProfileRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromFacebookIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromFacebookIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromFacebookIDsRequestEvent((ServerModels.GetPlayFabIDsFromFacebookIDsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromSteamIDsRequest)) { if (_instance.OnServerGetPlayFabIDsFromSteamIDsRequestEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamIDsRequestEvent((ServerModels.GetPlayFabIDsFromSteamIDsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserAccountInfoRequest)) { if (_instance.OnServerGetUserAccountInfoRequestEvent != null) { _instance.OnServerGetUserAccountInfoRequestEvent((ServerModels.GetUserAccountInfoRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserBansRequest)) { if (_instance.OnServerGetUserBansRequestEvent != null) { _instance.OnServerGetUserBansRequestEvent((ServerModels.GetUserBansRequest)e.Request); return; } } if (type == typeof(ServerModels.RevokeAllBansForUserRequest)) { if (_instance.OnServerRevokeAllBansForUserRequestEvent != null) { _instance.OnServerRevokeAllBansForUserRequestEvent((ServerModels.RevokeAllBansForUserRequest)e.Request); return; } } if (type == typeof(ServerModels.RevokeBansRequest)) { if (_instance.OnServerRevokeBansRequestEvent != null) { _instance.OnServerRevokeBansRequestEvent((ServerModels.RevokeBansRequest)e.Request); return; } } if (type == typeof(ServerModels.SendPushNotificationRequest)) { if (_instance.OnServerSendPushNotificationRequestEvent != null) { _instance.OnServerSendPushNotificationRequestEvent((ServerModels.SendPushNotificationRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateAvatarUrlRequest)) { if (_instance.OnServerUpdateAvatarUrlRequestEvent != null) { _instance.OnServerUpdateAvatarUrlRequestEvent((ServerModels.UpdateAvatarUrlRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateBansRequest)) { if (_instance.OnServerUpdateBansRequestEvent != null) { _instance.OnServerUpdateBansRequestEvent((ServerModels.UpdateBansRequest)e.Request); return; } } if (type == typeof(ServerModels.DeleteUsersRequest)) { if (_instance.OnServerDeleteUsersRequestEvent != null) { _instance.OnServerDeleteUsersRequestEvent((ServerModels.DeleteUsersRequest)e.Request); return; } } if (type == typeof(ServerModels.GetFriendLeaderboardRequest)) { if (_instance.OnServerGetFriendLeaderboardRequestEvent != null) { _instance.OnServerGetFriendLeaderboardRequestEvent((ServerModels.GetFriendLeaderboardRequest)e.Request); return; } } if (type == typeof(ServerModels.GetLeaderboardRequest)) { if (_instance.OnServerGetLeaderboardRequestEvent != null) { _instance.OnServerGetLeaderboardRequestEvent((ServerModels.GetLeaderboardRequest)e.Request); return; } } if (type == typeof(ServerModels.GetLeaderboardAroundUserRequest)) { if (_instance.OnServerGetLeaderboardAroundUserRequestEvent != null) { _instance.OnServerGetLeaderboardAroundUserRequestEvent((ServerModels.GetLeaderboardAroundUserRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayerCombinedInfoRequest)) { if (_instance.OnServerGetPlayerCombinedInfoRequestEvent != null) { _instance.OnServerGetPlayerCombinedInfoRequestEvent((ServerModels.GetPlayerCombinedInfoRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayerStatisticsRequest)) { if (_instance.OnServerGetPlayerStatisticsRequestEvent != null) { _instance.OnServerGetPlayerStatisticsRequestEvent((ServerModels.GetPlayerStatisticsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayerStatisticVersionsRequest)) { if (_instance.OnServerGetPlayerStatisticVersionsRequestEvent != null) { _instance.OnServerGetPlayerStatisticVersionsRequestEvent((ServerModels.GetPlayerStatisticVersionsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserDataRequestEvent != null) { _instance.OnServerGetUserDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserInternalDataRequestEvent != null) { _instance.OnServerGetUserInternalDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserPublisherDataRequestEvent != null) { _instance.OnServerGetUserPublisherDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserPublisherInternalDataRequestEvent != null) { _instance.OnServerGetUserPublisherInternalDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserPublisherReadOnlyDataRequestEvent != null) { _instance.OnServerGetUserPublisherReadOnlyDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserDataRequest)) { if (_instance.OnServerGetUserReadOnlyDataRequestEvent != null) { _instance.OnServerGetUserReadOnlyDataRequestEvent((ServerModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdatePlayerStatisticsRequest)) { if (_instance.OnServerUpdatePlayerStatisticsRequestEvent != null) { _instance.OnServerUpdatePlayerStatisticsRequestEvent((ServerModels.UpdatePlayerStatisticsRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserDataRequest)) { if (_instance.OnServerUpdateUserDataRequestEvent != null) { _instance.OnServerUpdateUserDataRequestEvent((ServerModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserInternalDataRequest)) { if (_instance.OnServerUpdateUserInternalDataRequestEvent != null) { _instance.OnServerUpdateUserInternalDataRequestEvent((ServerModels.UpdateUserInternalDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserDataRequest)) { if (_instance.OnServerUpdateUserPublisherDataRequestEvent != null) { _instance.OnServerUpdateUserPublisherDataRequestEvent((ServerModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserInternalDataRequest)) { if (_instance.OnServerUpdateUserPublisherInternalDataRequestEvent != null) { _instance.OnServerUpdateUserPublisherInternalDataRequestEvent((ServerModels.UpdateUserInternalDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserDataRequest)) { if (_instance.OnServerUpdateUserPublisherReadOnlyDataRequestEvent != null) { _instance.OnServerUpdateUserPublisherReadOnlyDataRequestEvent((ServerModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserDataRequest)) { if (_instance.OnServerUpdateUserReadOnlyDataRequestEvent != null) { _instance.OnServerUpdateUserReadOnlyDataRequestEvent((ServerModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCatalogItemsRequest)) { if (_instance.OnServerGetCatalogItemsRequestEvent != null) { _instance.OnServerGetCatalogItemsRequestEvent((ServerModels.GetCatalogItemsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPublisherDataRequest)) { if (_instance.OnServerGetPublisherDataRequestEvent != null) { _instance.OnServerGetPublisherDataRequestEvent((ServerModels.GetPublisherDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetTimeRequest)) { if (_instance.OnServerGetTimeRequestEvent != null) { _instance.OnServerGetTimeRequestEvent((ServerModels.GetTimeRequest)e.Request); return; } } if (type == typeof(ServerModels.GetTitleDataRequest)) { if (_instance.OnServerGetTitleDataRequestEvent != null) { _instance.OnServerGetTitleDataRequestEvent((ServerModels.GetTitleDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetTitleDataRequest)) { if (_instance.OnServerGetTitleInternalDataRequestEvent != null) { _instance.OnServerGetTitleInternalDataRequestEvent((ServerModels.GetTitleDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetTitleNewsRequest)) { if (_instance.OnServerGetTitleNewsRequestEvent != null) { _instance.OnServerGetTitleNewsRequestEvent((ServerModels.GetTitleNewsRequest)e.Request); return; } } if (type == typeof(ServerModels.SetPublisherDataRequest)) { if (_instance.OnServerSetPublisherDataRequestEvent != null) { _instance.OnServerSetPublisherDataRequestEvent((ServerModels.SetPublisherDataRequest)e.Request); return; } } if (type == typeof(ServerModels.SetTitleDataRequest)) { if (_instance.OnServerSetTitleDataRequestEvent != null) { _instance.OnServerSetTitleDataRequestEvent((ServerModels.SetTitleDataRequest)e.Request); return; } } if (type == typeof(ServerModels.SetTitleDataRequest)) { if (_instance.OnServerSetTitleInternalDataRequestEvent != null) { _instance.OnServerSetTitleInternalDataRequestEvent((ServerModels.SetTitleDataRequest)e.Request); return; } } if (type == typeof(ServerModels.AddCharacterVirtualCurrencyRequest)) { if (_instance.OnServerAddCharacterVirtualCurrencyRequestEvent != null) { _instance.OnServerAddCharacterVirtualCurrencyRequestEvent((ServerModels.AddCharacterVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ServerModels.AddUserVirtualCurrencyRequest)) { if (_instance.OnServerAddUserVirtualCurrencyRequestEvent != null) { _instance.OnServerAddUserVirtualCurrencyRequestEvent((ServerModels.AddUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ServerModels.ConsumeItemRequest)) { if (_instance.OnServerConsumeItemRequestEvent != null) { _instance.OnServerConsumeItemRequestEvent((ServerModels.ConsumeItemRequest)e.Request); return; } } if (type == typeof(ServerModels.EvaluateRandomResultTableRequest)) { if (_instance.OnServerEvaluateRandomResultTableRequestEvent != null) { _instance.OnServerEvaluateRandomResultTableRequestEvent((ServerModels.EvaluateRandomResultTableRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterInventoryRequest)) { if (_instance.OnServerGetCharacterInventoryRequestEvent != null) { _instance.OnServerGetCharacterInventoryRequestEvent((ServerModels.GetCharacterInventoryRequest)e.Request); return; } } if (type == typeof(ServerModels.GetRandomResultTablesRequest)) { if (_instance.OnServerGetRandomResultTablesRequestEvent != null) { _instance.OnServerGetRandomResultTablesRequestEvent((ServerModels.GetRandomResultTablesRequest)e.Request); return; } } if (type == typeof(ServerModels.GetUserInventoryRequest)) { if (_instance.OnServerGetUserInventoryRequestEvent != null) { _instance.OnServerGetUserInventoryRequestEvent((ServerModels.GetUserInventoryRequest)e.Request); return; } } if (type == typeof(ServerModels.GrantItemsToCharacterRequest)) { if (_instance.OnServerGrantItemsToCharacterRequestEvent != null) { _instance.OnServerGrantItemsToCharacterRequestEvent((ServerModels.GrantItemsToCharacterRequest)e.Request); return; } } if (type == typeof(ServerModels.GrantItemsToUserRequest)) { if (_instance.OnServerGrantItemsToUserRequestEvent != null) { _instance.OnServerGrantItemsToUserRequestEvent((ServerModels.GrantItemsToUserRequest)e.Request); return; } } if (type == typeof(ServerModels.GrantItemsToUsersRequest)) { if (_instance.OnServerGrantItemsToUsersRequestEvent != null) { _instance.OnServerGrantItemsToUsersRequestEvent((ServerModels.GrantItemsToUsersRequest)e.Request); return; } } if (type == typeof(ServerModels.ModifyItemUsesRequest)) { if (_instance.OnServerModifyItemUsesRequestEvent != null) { _instance.OnServerModifyItemUsesRequestEvent((ServerModels.ModifyItemUsesRequest)e.Request); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromCharacterRequest)) { if (_instance.OnServerMoveItemToCharacterFromCharacterRequestEvent != null) { _instance.OnServerMoveItemToCharacterFromCharacterRequestEvent((ServerModels.MoveItemToCharacterFromCharacterRequest)e.Request); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromUserRequest)) { if (_instance.OnServerMoveItemToCharacterFromUserRequestEvent != null) { _instance.OnServerMoveItemToCharacterFromUserRequestEvent((ServerModels.MoveItemToCharacterFromUserRequest)e.Request); return; } } if (type == typeof(ServerModels.MoveItemToUserFromCharacterRequest)) { if (_instance.OnServerMoveItemToUserFromCharacterRequestEvent != null) { _instance.OnServerMoveItemToUserFromCharacterRequestEvent((ServerModels.MoveItemToUserFromCharacterRequest)e.Request); return; } } if (type == typeof(ServerModels.RedeemCouponRequest)) { if (_instance.OnServerRedeemCouponRequestEvent != null) { _instance.OnServerRedeemCouponRequestEvent((ServerModels.RedeemCouponRequest)e.Request); return; } } if (type == typeof(ServerModels.ReportPlayerServerRequest)) { if (_instance.OnServerReportPlayerRequestEvent != null) { _instance.OnServerReportPlayerRequestEvent((ServerModels.ReportPlayerServerRequest)e.Request); return; } } if (type == typeof(ServerModels.RevokeInventoryItemRequest)) { if (_instance.OnServerRevokeInventoryItemRequestEvent != null) { _instance.OnServerRevokeInventoryItemRequestEvent((ServerModels.RevokeInventoryItemRequest)e.Request); return; } } if (type == typeof(ServerModels.SubtractCharacterVirtualCurrencyRequest)) { if (_instance.OnServerSubtractCharacterVirtualCurrencyRequestEvent != null) { _instance.OnServerSubtractCharacterVirtualCurrencyRequestEvent((ServerModels.SubtractCharacterVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ServerModels.SubtractUserVirtualCurrencyRequest)) { if (_instance.OnServerSubtractUserVirtualCurrencyRequestEvent != null) { _instance.OnServerSubtractUserVirtualCurrencyRequestEvent((ServerModels.SubtractUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlockContainerInstanceRequest)) { if (_instance.OnServerUnlockContainerInstanceRequestEvent != null) { _instance.OnServerUnlockContainerInstanceRequestEvent((ServerModels.UnlockContainerInstanceRequest)e.Request); return; } } if (type == typeof(ServerModels.UnlockContainerItemRequest)) { if (_instance.OnServerUnlockContainerItemRequestEvent != null) { _instance.OnServerUnlockContainerItemRequestEvent((ServerModels.UnlockContainerItemRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateUserInventoryItemDataRequest)) { if (_instance.OnServerUpdateUserInventoryItemCustomDataRequestEvent != null) { _instance.OnServerUpdateUserInventoryItemCustomDataRequestEvent((ServerModels.UpdateUserInventoryItemDataRequest)e.Request); return; } } if (type == typeof(ServerModels.AddFriendRequest)) { if (_instance.OnServerAddFriendRequestEvent != null) { _instance.OnServerAddFriendRequestEvent((ServerModels.AddFriendRequest)e.Request); return; } } if (type == typeof(ServerModels.GetFriendsListRequest)) { if (_instance.OnServerGetFriendsListRequestEvent != null) { _instance.OnServerGetFriendsListRequestEvent((ServerModels.GetFriendsListRequest)e.Request); return; } } if (type == typeof(ServerModels.RemoveFriendRequest)) { if (_instance.OnServerRemoveFriendRequestEvent != null) { _instance.OnServerRemoveFriendRequestEvent((ServerModels.RemoveFriendRequest)e.Request); return; } } if (type == typeof(ServerModels.SetFriendTagsRequest)) { if (_instance.OnServerSetFriendTagsRequestEvent != null) { _instance.OnServerSetFriendTagsRequestEvent((ServerModels.SetFriendTagsRequest)e.Request); return; } } if (type == typeof(ServerModels.DeregisterGameRequest)) { if (_instance.OnServerDeregisterGameRequestEvent != null) { _instance.OnServerDeregisterGameRequestEvent((ServerModels.DeregisterGameRequest)e.Request); return; } } if (type == typeof(ServerModels.NotifyMatchmakerPlayerLeftRequest)) { if (_instance.OnServerNotifyMatchmakerPlayerLeftRequestEvent != null) { _instance.OnServerNotifyMatchmakerPlayerLeftRequestEvent((ServerModels.NotifyMatchmakerPlayerLeftRequest)e.Request); return; } } if (type == typeof(ServerModels.RedeemMatchmakerTicketRequest)) { if (_instance.OnServerRedeemMatchmakerTicketRequestEvent != null) { _instance.OnServerRedeemMatchmakerTicketRequestEvent((ServerModels.RedeemMatchmakerTicketRequest)e.Request); return; } } if (type == typeof(ServerModels.RefreshGameServerInstanceHeartbeatRequest)) { if (_instance.OnServerRefreshGameServerInstanceHeartbeatRequestEvent != null) { _instance.OnServerRefreshGameServerInstanceHeartbeatRequestEvent((ServerModels.RefreshGameServerInstanceHeartbeatRequest)e.Request); return; } } if (type == typeof(ServerModels.RegisterGameRequest)) { if (_instance.OnServerRegisterGameRequestEvent != null) { _instance.OnServerRegisterGameRequestEvent((ServerModels.RegisterGameRequest)e.Request); return; } } if (type == typeof(ServerModels.SetGameServerInstanceDataRequest)) { if (_instance.OnServerSetGameServerInstanceDataRequestEvent != null) { _instance.OnServerSetGameServerInstanceDataRequestEvent((ServerModels.SetGameServerInstanceDataRequest)e.Request); return; } } if (type == typeof(ServerModels.SetGameServerInstanceStateRequest)) { if (_instance.OnServerSetGameServerInstanceStateRequestEvent != null) { _instance.OnServerSetGameServerInstanceStateRequestEvent((ServerModels.SetGameServerInstanceStateRequest)e.Request); return; } } if (type == typeof(ServerModels.SetGameServerInstanceTagsRequest)) { if (_instance.OnServerSetGameServerInstanceTagsRequestEvent != null) { _instance.OnServerSetGameServerInstanceTagsRequestEvent((ServerModels.SetGameServerInstanceTagsRequest)e.Request); return; } } if (type == typeof(ServerModels.WriteServerCharacterEventRequest)) { if (_instance.OnServerWriteCharacterEventRequestEvent != null) { _instance.OnServerWriteCharacterEventRequestEvent((ServerModels.WriteServerCharacterEventRequest)e.Request); return; } } if (type == typeof(ServerModels.WriteServerPlayerEventRequest)) { if (_instance.OnServerWritePlayerEventRequestEvent != null) { _instance.OnServerWritePlayerEventRequestEvent((ServerModels.WriteServerPlayerEventRequest)e.Request); return; } } if (type == typeof(ServerModels.WriteTitleEventRequest)) { if (_instance.OnServerWriteTitleEventRequestEvent != null) { _instance.OnServerWriteTitleEventRequestEvent((ServerModels.WriteTitleEventRequest)e.Request); return; } } if (type == typeof(ServerModels.AddSharedGroupMembersRequest)) { if (_instance.OnServerAddSharedGroupMembersRequestEvent != null) { _instance.OnServerAddSharedGroupMembersRequestEvent((ServerModels.AddSharedGroupMembersRequest)e.Request); return; } } if (type == typeof(ServerModels.CreateSharedGroupRequest)) { if (_instance.OnServerCreateSharedGroupRequestEvent != null) { _instance.OnServerCreateSharedGroupRequestEvent((ServerModels.CreateSharedGroupRequest)e.Request); return; } } if (type == typeof(ServerModels.DeleteSharedGroupRequest)) { if (_instance.OnServerDeleteSharedGroupRequestEvent != null) { _instance.OnServerDeleteSharedGroupRequestEvent((ServerModels.DeleteSharedGroupRequest)e.Request); return; } } if (type == typeof(ServerModels.GetSharedGroupDataRequest)) { if (_instance.OnServerGetSharedGroupDataRequestEvent != null) { _instance.OnServerGetSharedGroupDataRequestEvent((ServerModels.GetSharedGroupDataRequest)e.Request); return; } } if (type == typeof(ServerModels.RemoveSharedGroupMembersRequest)) { if (_instance.OnServerRemoveSharedGroupMembersRequestEvent != null) { _instance.OnServerRemoveSharedGroupMembersRequestEvent((ServerModels.RemoveSharedGroupMembersRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateSharedGroupDataRequest)) { if (_instance.OnServerUpdateSharedGroupDataRequestEvent != null) { _instance.OnServerUpdateSharedGroupDataRequestEvent((ServerModels.UpdateSharedGroupDataRequest)e.Request); return; } } if (type == typeof(ServerModels.ExecuteCloudScriptServerRequest)) { if (_instance.OnServerExecuteCloudScriptRequestEvent != null) { _instance.OnServerExecuteCloudScriptRequestEvent((ServerModels.ExecuteCloudScriptServerRequest)e.Request); return; } } if (type == typeof(ServerModels.GetContentDownloadUrlRequest)) { if (_instance.OnServerGetContentDownloadUrlRequestEvent != null) { _instance.OnServerGetContentDownloadUrlRequestEvent((ServerModels.GetContentDownloadUrlRequest)e.Request); return; } } if (type == typeof(ServerModels.DeleteCharacterFromUserRequest)) { if (_instance.OnServerDeleteCharacterFromUserRequestEvent != null) { _instance.OnServerDeleteCharacterFromUserRequestEvent((ServerModels.DeleteCharacterFromUserRequest)e.Request); return; } } if (type == typeof(ServerModels.ListUsersCharactersRequest)) { if (_instance.OnServerGetAllUsersCharactersRequestEvent != null) { _instance.OnServerGetAllUsersCharactersRequestEvent((ServerModels.ListUsersCharactersRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterLeaderboardRequest)) { if (_instance.OnServerGetCharacterLeaderboardRequestEvent != null) { _instance.OnServerGetCharacterLeaderboardRequestEvent((ServerModels.GetCharacterLeaderboardRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterStatisticsRequest)) { if (_instance.OnServerGetCharacterStatisticsRequestEvent != null) { _instance.OnServerGetCharacterStatisticsRequestEvent((ServerModels.GetCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetLeaderboardAroundCharacterRequest)) { if (_instance.OnServerGetLeaderboardAroundCharacterRequestEvent != null) { _instance.OnServerGetLeaderboardAroundCharacterRequestEvent((ServerModels.GetLeaderboardAroundCharacterRequest)e.Request); return; } } if (type == typeof(ServerModels.GetLeaderboardForUsersCharactersRequest)) { if (_instance.OnServerGetLeaderboardForUserCharactersRequestEvent != null) { _instance.OnServerGetLeaderboardForUserCharactersRequestEvent((ServerModels.GetLeaderboardForUsersCharactersRequest)e.Request); return; } } if (type == typeof(ServerModels.GrantCharacterToUserRequest)) { if (_instance.OnServerGrantCharacterToUserRequestEvent != null) { _instance.OnServerGrantCharacterToUserRequestEvent((ServerModels.GrantCharacterToUserRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateCharacterStatisticsRequest)) { if (_instance.OnServerUpdateCharacterStatisticsRequestEvent != null) { _instance.OnServerUpdateCharacterStatisticsRequestEvent((ServerModels.UpdateCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterDataRequest)) { if (_instance.OnServerGetCharacterDataRequestEvent != null) { _instance.OnServerGetCharacterDataRequestEvent((ServerModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterDataRequest)) { if (_instance.OnServerGetCharacterInternalDataRequestEvent != null) { _instance.OnServerGetCharacterInternalDataRequestEvent((ServerModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.GetCharacterDataRequest)) { if (_instance.OnServerGetCharacterReadOnlyDataRequestEvent != null) { _instance.OnServerGetCharacterReadOnlyDataRequestEvent((ServerModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateCharacterDataRequest)) { if (_instance.OnServerUpdateCharacterDataRequestEvent != null) { _instance.OnServerUpdateCharacterDataRequestEvent((ServerModels.UpdateCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateCharacterDataRequest)) { if (_instance.OnServerUpdateCharacterInternalDataRequestEvent != null) { _instance.OnServerUpdateCharacterInternalDataRequestEvent((ServerModels.UpdateCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.UpdateCharacterDataRequest)) { if (_instance.OnServerUpdateCharacterReadOnlyDataRequestEvent != null) { _instance.OnServerUpdateCharacterReadOnlyDataRequestEvent((ServerModels.UpdateCharacterDataRequest)e.Request); return; } } if (type == typeof(ServerModels.AddPlayerTagRequest)) { if (_instance.OnServerAddPlayerTagRequestEvent != null) { _instance.OnServerAddPlayerTagRequestEvent((ServerModels.AddPlayerTagRequest)e.Request); return; } } if (type == typeof(ServerModels.GetAllActionGroupsRequest)) { if (_instance.OnServerGetAllActionGroupsRequestEvent != null) { _instance.OnServerGetAllActionGroupsRequestEvent((ServerModels.GetAllActionGroupsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetAllSegmentsRequest)) { if (_instance.OnServerGetAllSegmentsRequestEvent != null) { _instance.OnServerGetAllSegmentsRequestEvent((ServerModels.GetAllSegmentsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayersSegmentsRequest)) { if (_instance.OnServerGetPlayerSegmentsRequestEvent != null) { _instance.OnServerGetPlayerSegmentsRequestEvent((ServerModels.GetPlayersSegmentsRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayersInSegmentRequest)) { if (_instance.OnServerGetPlayersInSegmentRequestEvent != null) { _instance.OnServerGetPlayersInSegmentRequestEvent((ServerModels.GetPlayersInSegmentRequest)e.Request); return; } } if (type == typeof(ServerModels.GetPlayerTagsRequest)) { if (_instance.OnServerGetPlayerTagsRequestEvent != null) { _instance.OnServerGetPlayerTagsRequestEvent((ServerModels.GetPlayerTagsRequest)e.Request); return; } } if (type == typeof(ServerModels.RemovePlayerTagRequest)) { if (_instance.OnServerRemovePlayerTagRequestEvent != null) { _instance.OnServerRemovePlayerTagRequestEvent((ServerModels.RemovePlayerTagRequest)e.Request); return; } } if (type == typeof(ServerModels.AwardSteamAchievementRequest)) { if (_instance.OnServerAwardSteamAchievementRequestEvent != null) { _instance.OnServerAwardSteamAchievementRequestEvent((ServerModels.AwardSteamAchievementRequest)e.Request); return; } } #endif #if !DISABLE_PLAYFABCLIENT_API if (type == typeof(ClientModels.GetPhotonAuthenticationTokenRequest)) { if (_instance.OnGetPhotonAuthenticationTokenRequestEvent != null) { _instance.OnGetPhotonAuthenticationTokenRequestEvent((ClientModels.GetPhotonAuthenticationTokenRequest)e.Request); return; } } if (type == typeof(ClientModels.GetTitlePublicKeyRequest)) { if (_instance.OnGetTitlePublicKeyRequestEvent != null) { _instance.OnGetTitlePublicKeyRequestEvent((ClientModels.GetTitlePublicKeyRequest)e.Request); return; } } if (type == typeof(ClientModels.GetWindowsHelloChallengeRequest)) { if (_instance.OnGetWindowsHelloChallengeRequestEvent != null) { _instance.OnGetWindowsHelloChallengeRequestEvent((ClientModels.GetWindowsHelloChallengeRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithAndroidDeviceIDRequest)) { if (_instance.OnLoginWithAndroidDeviceIDRequestEvent != null) { _instance.OnLoginWithAndroidDeviceIDRequestEvent((ClientModels.LoginWithAndroidDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithCustomIDRequest)) { if (_instance.OnLoginWithCustomIDRequestEvent != null) { _instance.OnLoginWithCustomIDRequestEvent((ClientModels.LoginWithCustomIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithEmailAddressRequest)) { if (_instance.OnLoginWithEmailAddressRequestEvent != null) { _instance.OnLoginWithEmailAddressRequestEvent((ClientModels.LoginWithEmailAddressRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithFacebookRequest)) { if (_instance.OnLoginWithFacebookRequestEvent != null) { _instance.OnLoginWithFacebookRequestEvent((ClientModels.LoginWithFacebookRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithGameCenterRequest)) { if (_instance.OnLoginWithGameCenterRequestEvent != null) { _instance.OnLoginWithGameCenterRequestEvent((ClientModels.LoginWithGameCenterRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithGoogleAccountRequest)) { if (_instance.OnLoginWithGoogleAccountRequestEvent != null) { _instance.OnLoginWithGoogleAccountRequestEvent((ClientModels.LoginWithGoogleAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithIOSDeviceIDRequest)) { if (_instance.OnLoginWithIOSDeviceIDRequestEvent != null) { _instance.OnLoginWithIOSDeviceIDRequestEvent((ClientModels.LoginWithIOSDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithKongregateRequest)) { if (_instance.OnLoginWithKongregateRequestEvent != null) { _instance.OnLoginWithKongregateRequestEvent((ClientModels.LoginWithKongregateRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithPlayFabRequest)) { if (_instance.OnLoginWithPlayFabRequestEvent != null) { _instance.OnLoginWithPlayFabRequestEvent((ClientModels.LoginWithPlayFabRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithSteamRequest)) { if (_instance.OnLoginWithSteamRequestEvent != null) { _instance.OnLoginWithSteamRequestEvent((ClientModels.LoginWithSteamRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithTwitchRequest)) { if (_instance.OnLoginWithTwitchRequestEvent != null) { _instance.OnLoginWithTwitchRequestEvent((ClientModels.LoginWithTwitchRequest)e.Request); return; } } if (type == typeof(ClientModels.LoginWithWindowsHelloRequest)) { if (_instance.OnLoginWithWindowsHelloRequestEvent != null) { _instance.OnLoginWithWindowsHelloRequestEvent((ClientModels.LoginWithWindowsHelloRequest)e.Request); return; } } if (type == typeof(ClientModels.RegisterPlayFabUserRequest)) { if (_instance.OnRegisterPlayFabUserRequestEvent != null) { _instance.OnRegisterPlayFabUserRequestEvent((ClientModels.RegisterPlayFabUserRequest)e.Request); return; } } if (type == typeof(ClientModels.RegisterWithWindowsHelloRequest)) { if (_instance.OnRegisterWithWindowsHelloRequestEvent != null) { _instance.OnRegisterWithWindowsHelloRequestEvent((ClientModels.RegisterWithWindowsHelloRequest)e.Request); return; } } if (type == typeof(ClientModels.SetPlayerSecretRequest)) { if (_instance.OnSetPlayerSecretRequestEvent != null) { _instance.OnSetPlayerSecretRequestEvent((ClientModels.SetPlayerSecretRequest)e.Request); return; } } if (type == typeof(ClientModels.AddGenericIDRequest)) { if (_instance.OnAddGenericIDRequestEvent != null) { _instance.OnAddGenericIDRequestEvent((ClientModels.AddGenericIDRequest)e.Request); return; } } if (type == typeof(ClientModels.AddUsernamePasswordRequest)) { if (_instance.OnAddUsernamePasswordRequestEvent != null) { _instance.OnAddUsernamePasswordRequestEvent((ClientModels.AddUsernamePasswordRequest)e.Request); return; } } if (type == typeof(ClientModels.GetAccountInfoRequest)) { if (_instance.OnGetAccountInfoRequestEvent != null) { _instance.OnGetAccountInfoRequestEvent((ClientModels.GetAccountInfoRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerCombinedInfoRequest)) { if (_instance.OnGetPlayerCombinedInfoRequestEvent != null) { _instance.OnGetPlayerCombinedInfoRequestEvent((ClientModels.GetPlayerCombinedInfoRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerProfileRequest)) { if (_instance.OnGetPlayerProfileRequestEvent != null) { _instance.OnGetPlayerProfileRequestEvent((ClientModels.GetPlayerProfileRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromFacebookIDsRequest)) { if (_instance.OnGetPlayFabIDsFromFacebookIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromFacebookIDsRequestEvent((ClientModels.GetPlayFabIDsFromFacebookIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGameCenterIDsRequest)) { if (_instance.OnGetPlayFabIDsFromGameCenterIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromGameCenterIDsRequestEvent((ClientModels.GetPlayFabIDsFromGameCenterIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGenericIDsRequest)) { if (_instance.OnGetPlayFabIDsFromGenericIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromGenericIDsRequestEvent((ClientModels.GetPlayFabIDsFromGenericIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGoogleIDsRequest)) { if (_instance.OnGetPlayFabIDsFromGoogleIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromGoogleIDsRequestEvent((ClientModels.GetPlayFabIDsFromGoogleIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromKongregateIDsRequest)) { if (_instance.OnGetPlayFabIDsFromKongregateIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromKongregateIDsRequestEvent((ClientModels.GetPlayFabIDsFromKongregateIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromSteamIDsRequest)) { if (_instance.OnGetPlayFabIDsFromSteamIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromSteamIDsRequestEvent((ClientModels.GetPlayFabIDsFromSteamIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromTwitchIDsRequest)) { if (_instance.OnGetPlayFabIDsFromTwitchIDsRequestEvent != null) { _instance.OnGetPlayFabIDsFromTwitchIDsRequestEvent((ClientModels.GetPlayFabIDsFromTwitchIDsRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkAndroidDeviceIDRequest)) { if (_instance.OnLinkAndroidDeviceIDRequestEvent != null) { _instance.OnLinkAndroidDeviceIDRequestEvent((ClientModels.LinkAndroidDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkCustomIDRequest)) { if (_instance.OnLinkCustomIDRequestEvent != null) { _instance.OnLinkCustomIDRequestEvent((ClientModels.LinkCustomIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkFacebookAccountRequest)) { if (_instance.OnLinkFacebookAccountRequestEvent != null) { _instance.OnLinkFacebookAccountRequestEvent((ClientModels.LinkFacebookAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkGameCenterAccountRequest)) { if (_instance.OnLinkGameCenterAccountRequestEvent != null) { _instance.OnLinkGameCenterAccountRequestEvent((ClientModels.LinkGameCenterAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkGoogleAccountRequest)) { if (_instance.OnLinkGoogleAccountRequestEvent != null) { _instance.OnLinkGoogleAccountRequestEvent((ClientModels.LinkGoogleAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkIOSDeviceIDRequest)) { if (_instance.OnLinkIOSDeviceIDRequestEvent != null) { _instance.OnLinkIOSDeviceIDRequestEvent((ClientModels.LinkIOSDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkKongregateAccountRequest)) { if (_instance.OnLinkKongregateRequestEvent != null) { _instance.OnLinkKongregateRequestEvent((ClientModels.LinkKongregateAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkSteamAccountRequest)) { if (_instance.OnLinkSteamAccountRequestEvent != null) { _instance.OnLinkSteamAccountRequestEvent((ClientModels.LinkSteamAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkTwitchAccountRequest)) { if (_instance.OnLinkTwitchRequestEvent != null) { _instance.OnLinkTwitchRequestEvent((ClientModels.LinkTwitchAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.LinkWindowsHelloAccountRequest)) { if (_instance.OnLinkWindowsHelloRequestEvent != null) { _instance.OnLinkWindowsHelloRequestEvent((ClientModels.LinkWindowsHelloAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.RemoveGenericIDRequest)) { if (_instance.OnRemoveGenericIDRequestEvent != null) { _instance.OnRemoveGenericIDRequestEvent((ClientModels.RemoveGenericIDRequest)e.Request); return; } } if (type == typeof(ClientModels.ReportPlayerClientRequest)) { if (_instance.OnReportPlayerRequestEvent != null) { _instance.OnReportPlayerRequestEvent((ClientModels.ReportPlayerClientRequest)e.Request); return; } } if (type == typeof(ClientModels.SendAccountRecoveryEmailRequest)) { if (_instance.OnSendAccountRecoveryEmailRequestEvent != null) { _instance.OnSendAccountRecoveryEmailRequestEvent((ClientModels.SendAccountRecoveryEmailRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkAndroidDeviceIDRequest)) { if (_instance.OnUnlinkAndroidDeviceIDRequestEvent != null) { _instance.OnUnlinkAndroidDeviceIDRequestEvent((ClientModels.UnlinkAndroidDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkCustomIDRequest)) { if (_instance.OnUnlinkCustomIDRequestEvent != null) { _instance.OnUnlinkCustomIDRequestEvent((ClientModels.UnlinkCustomIDRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkFacebookAccountRequest)) { if (_instance.OnUnlinkFacebookAccountRequestEvent != null) { _instance.OnUnlinkFacebookAccountRequestEvent((ClientModels.UnlinkFacebookAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkGameCenterAccountRequest)) { if (_instance.OnUnlinkGameCenterAccountRequestEvent != null) { _instance.OnUnlinkGameCenterAccountRequestEvent((ClientModels.UnlinkGameCenterAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkGoogleAccountRequest)) { if (_instance.OnUnlinkGoogleAccountRequestEvent != null) { _instance.OnUnlinkGoogleAccountRequestEvent((ClientModels.UnlinkGoogleAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkIOSDeviceIDRequest)) { if (_instance.OnUnlinkIOSDeviceIDRequestEvent != null) { _instance.OnUnlinkIOSDeviceIDRequestEvent((ClientModels.UnlinkIOSDeviceIDRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkKongregateAccountRequest)) { if (_instance.OnUnlinkKongregateRequestEvent != null) { _instance.OnUnlinkKongregateRequestEvent((ClientModels.UnlinkKongregateAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkSteamAccountRequest)) { if (_instance.OnUnlinkSteamAccountRequestEvent != null) { _instance.OnUnlinkSteamAccountRequestEvent((ClientModels.UnlinkSteamAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkTwitchAccountRequest)) { if (_instance.OnUnlinkTwitchRequestEvent != null) { _instance.OnUnlinkTwitchRequestEvent((ClientModels.UnlinkTwitchAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlinkWindowsHelloAccountRequest)) { if (_instance.OnUnlinkWindowsHelloRequestEvent != null) { _instance.OnUnlinkWindowsHelloRequestEvent((ClientModels.UnlinkWindowsHelloAccountRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateAvatarUrlRequest)) { if (_instance.OnUpdateAvatarUrlRequestEvent != null) { _instance.OnUpdateAvatarUrlRequestEvent((ClientModels.UpdateAvatarUrlRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateUserTitleDisplayNameRequest)) { if (_instance.OnUpdateUserTitleDisplayNameRequestEvent != null) { _instance.OnUpdateUserTitleDisplayNameRequestEvent((ClientModels.UpdateUserTitleDisplayNameRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardRequest)) { if (_instance.OnGetFriendLeaderboardRequestEvent != null) { _instance.OnGetFriendLeaderboardRequestEvent((ClientModels.GetFriendLeaderboardRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardAroundPlayerRequest)) { if (_instance.OnGetFriendLeaderboardAroundPlayerRequestEvent != null) { _instance.OnGetFriendLeaderboardAroundPlayerRequestEvent((ClientModels.GetFriendLeaderboardAroundPlayerRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardRequest)) { if (_instance.OnGetLeaderboardRequestEvent != null) { _instance.OnGetLeaderboardRequestEvent((ClientModels.GetLeaderboardRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundPlayerRequest)) { if (_instance.OnGetLeaderboardAroundPlayerRequestEvent != null) { _instance.OnGetLeaderboardAroundPlayerRequestEvent((ClientModels.GetLeaderboardAroundPlayerRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerStatisticsRequest)) { if (_instance.OnGetPlayerStatisticsRequestEvent != null) { _instance.OnGetPlayerStatisticsRequestEvent((ClientModels.GetPlayerStatisticsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerStatisticVersionsRequest)) { if (_instance.OnGetPlayerStatisticVersionsRequestEvent != null) { _instance.OnGetPlayerStatisticVersionsRequestEvent((ClientModels.GetPlayerStatisticVersionsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetUserDataRequest)) { if (_instance.OnGetUserDataRequestEvent != null) { _instance.OnGetUserDataRequestEvent((ClientModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetUserDataRequest)) { if (_instance.OnGetUserPublisherDataRequestEvent != null) { _instance.OnGetUserPublisherDataRequestEvent((ClientModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetUserDataRequest)) { if (_instance.OnGetUserPublisherReadOnlyDataRequestEvent != null) { _instance.OnGetUserPublisherReadOnlyDataRequestEvent((ClientModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetUserDataRequest)) { if (_instance.OnGetUserReadOnlyDataRequestEvent != null) { _instance.OnGetUserReadOnlyDataRequestEvent((ClientModels.GetUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdatePlayerStatisticsRequest)) { if (_instance.OnUpdatePlayerStatisticsRequestEvent != null) { _instance.OnUpdatePlayerStatisticsRequestEvent((ClientModels.UpdatePlayerStatisticsRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateUserDataRequest)) { if (_instance.OnUpdateUserDataRequestEvent != null) { _instance.OnUpdateUserDataRequestEvent((ClientModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateUserDataRequest)) { if (_instance.OnUpdateUserPublisherDataRequestEvent != null) { _instance.OnUpdateUserPublisherDataRequestEvent((ClientModels.UpdateUserDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCatalogItemsRequest)) { if (_instance.OnGetCatalogItemsRequestEvent != null) { _instance.OnGetCatalogItemsRequestEvent((ClientModels.GetCatalogItemsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPublisherDataRequest)) { if (_instance.OnGetPublisherDataRequestEvent != null) { _instance.OnGetPublisherDataRequestEvent((ClientModels.GetPublisherDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetStoreItemsRequest)) { if (_instance.OnGetStoreItemsRequestEvent != null) { _instance.OnGetStoreItemsRequestEvent((ClientModels.GetStoreItemsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetTimeRequest)) { if (_instance.OnGetTimeRequestEvent != null) { _instance.OnGetTimeRequestEvent((ClientModels.GetTimeRequest)e.Request); return; } } if (type == typeof(ClientModels.GetTitleDataRequest)) { if (_instance.OnGetTitleDataRequestEvent != null) { _instance.OnGetTitleDataRequestEvent((ClientModels.GetTitleDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetTitleNewsRequest)) { if (_instance.OnGetTitleNewsRequestEvent != null) { _instance.OnGetTitleNewsRequestEvent((ClientModels.GetTitleNewsRequest)e.Request); return; } } if (type == typeof(ClientModels.AddUserVirtualCurrencyRequest)) { if (_instance.OnAddUserVirtualCurrencyRequestEvent != null) { _instance.OnAddUserVirtualCurrencyRequestEvent((ClientModels.AddUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ClientModels.ConfirmPurchaseRequest)) { if (_instance.OnConfirmPurchaseRequestEvent != null) { _instance.OnConfirmPurchaseRequestEvent((ClientModels.ConfirmPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.ConsumeItemRequest)) { if (_instance.OnConsumeItemRequestEvent != null) { _instance.OnConsumeItemRequestEvent((ClientModels.ConsumeItemRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterInventoryRequest)) { if (_instance.OnGetCharacterInventoryRequestEvent != null) { _instance.OnGetCharacterInventoryRequestEvent((ClientModels.GetCharacterInventoryRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPurchaseRequest)) { if (_instance.OnGetPurchaseRequestEvent != null) { _instance.OnGetPurchaseRequestEvent((ClientModels.GetPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.GetUserInventoryRequest)) { if (_instance.OnGetUserInventoryRequestEvent != null) { _instance.OnGetUserInventoryRequestEvent((ClientModels.GetUserInventoryRequest)e.Request); return; } } if (type == typeof(ClientModels.PayForPurchaseRequest)) { if (_instance.OnPayForPurchaseRequestEvent != null) { _instance.OnPayForPurchaseRequestEvent((ClientModels.PayForPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.PurchaseItemRequest)) { if (_instance.OnPurchaseItemRequestEvent != null) { _instance.OnPurchaseItemRequestEvent((ClientModels.PurchaseItemRequest)e.Request); return; } } if (type == typeof(ClientModels.RedeemCouponRequest)) { if (_instance.OnRedeemCouponRequestEvent != null) { _instance.OnRedeemCouponRequestEvent((ClientModels.RedeemCouponRequest)e.Request); return; } } if (type == typeof(ClientModels.StartPurchaseRequest)) { if (_instance.OnStartPurchaseRequestEvent != null) { _instance.OnStartPurchaseRequestEvent((ClientModels.StartPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.SubtractUserVirtualCurrencyRequest)) { if (_instance.OnSubtractUserVirtualCurrencyRequestEvent != null) { _instance.OnSubtractUserVirtualCurrencyRequestEvent((ClientModels.SubtractUserVirtualCurrencyRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlockContainerInstanceRequest)) { if (_instance.OnUnlockContainerInstanceRequestEvent != null) { _instance.OnUnlockContainerInstanceRequestEvent((ClientModels.UnlockContainerInstanceRequest)e.Request); return; } } if (type == typeof(ClientModels.UnlockContainerItemRequest)) { if (_instance.OnUnlockContainerItemRequestEvent != null) { _instance.OnUnlockContainerItemRequestEvent((ClientModels.UnlockContainerItemRequest)e.Request); return; } } if (type == typeof(ClientModels.AddFriendRequest)) { if (_instance.OnAddFriendRequestEvent != null) { _instance.OnAddFriendRequestEvent((ClientModels.AddFriendRequest)e.Request); return; } } if (type == typeof(ClientModels.GetFriendsListRequest)) { if (_instance.OnGetFriendsListRequestEvent != null) { _instance.OnGetFriendsListRequestEvent((ClientModels.GetFriendsListRequest)e.Request); return; } } if (type == typeof(ClientModels.RemoveFriendRequest)) { if (_instance.OnRemoveFriendRequestEvent != null) { _instance.OnRemoveFriendRequestEvent((ClientModels.RemoveFriendRequest)e.Request); return; } } if (type == typeof(ClientModels.SetFriendTagsRequest)) { if (_instance.OnSetFriendTagsRequestEvent != null) { _instance.OnSetFriendTagsRequestEvent((ClientModels.SetFriendTagsRequest)e.Request); return; } } if (type == typeof(ClientModels.CurrentGamesRequest)) { if (_instance.OnGetCurrentGamesRequestEvent != null) { _instance.OnGetCurrentGamesRequestEvent((ClientModels.CurrentGamesRequest)e.Request); return; } } if (type == typeof(ClientModels.GameServerRegionsRequest)) { if (_instance.OnGetGameServerRegionsRequestEvent != null) { _instance.OnGetGameServerRegionsRequestEvent((ClientModels.GameServerRegionsRequest)e.Request); return; } } if (type == typeof(ClientModels.MatchmakeRequest)) { if (_instance.OnMatchmakeRequestEvent != null) { _instance.OnMatchmakeRequestEvent((ClientModels.MatchmakeRequest)e.Request); return; } } if (type == typeof(ClientModels.StartGameRequest)) { if (_instance.OnStartGameRequestEvent != null) { _instance.OnStartGameRequestEvent((ClientModels.StartGameRequest)e.Request); return; } } if (type == typeof(ClientModels.WriteClientCharacterEventRequest)) { if (_instance.OnWriteCharacterEventRequestEvent != null) { _instance.OnWriteCharacterEventRequestEvent((ClientModels.WriteClientCharacterEventRequest)e.Request); return; } } if (type == typeof(ClientModels.WriteClientPlayerEventRequest)) { if (_instance.OnWritePlayerEventRequestEvent != null) { _instance.OnWritePlayerEventRequestEvent((ClientModels.WriteClientPlayerEventRequest)e.Request); return; } } if (type == typeof(ClientModels.WriteTitleEventRequest)) { if (_instance.OnWriteTitleEventRequestEvent != null) { _instance.OnWriteTitleEventRequestEvent((ClientModels.WriteTitleEventRequest)e.Request); return; } } if (type == typeof(ClientModels.AddSharedGroupMembersRequest)) { if (_instance.OnAddSharedGroupMembersRequestEvent != null) { _instance.OnAddSharedGroupMembersRequestEvent((ClientModels.AddSharedGroupMembersRequest)e.Request); return; } } if (type == typeof(ClientModels.CreateSharedGroupRequest)) { if (_instance.OnCreateSharedGroupRequestEvent != null) { _instance.OnCreateSharedGroupRequestEvent((ClientModels.CreateSharedGroupRequest)e.Request); return; } } if (type == typeof(ClientModels.GetSharedGroupDataRequest)) { if (_instance.OnGetSharedGroupDataRequestEvent != null) { _instance.OnGetSharedGroupDataRequestEvent((ClientModels.GetSharedGroupDataRequest)e.Request); return; } } if (type == typeof(ClientModels.RemoveSharedGroupMembersRequest)) { if (_instance.OnRemoveSharedGroupMembersRequestEvent != null) { _instance.OnRemoveSharedGroupMembersRequestEvent((ClientModels.RemoveSharedGroupMembersRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateSharedGroupDataRequest)) { if (_instance.OnUpdateSharedGroupDataRequestEvent != null) { _instance.OnUpdateSharedGroupDataRequestEvent((ClientModels.UpdateSharedGroupDataRequest)e.Request); return; } } if (type == typeof(ClientModels.ExecuteCloudScriptRequest)) { if (_instance.OnExecuteCloudScriptRequestEvent != null) { _instance.OnExecuteCloudScriptRequestEvent((ClientModels.ExecuteCloudScriptRequest)e.Request); return; } } if (type == typeof(ClientModels.GetContentDownloadUrlRequest)) { if (_instance.OnGetContentDownloadUrlRequestEvent != null) { _instance.OnGetContentDownloadUrlRequestEvent((ClientModels.GetContentDownloadUrlRequest)e.Request); return; } } if (type == typeof(ClientModels.ListUsersCharactersRequest)) { if (_instance.OnGetAllUsersCharactersRequestEvent != null) { _instance.OnGetAllUsersCharactersRequestEvent((ClientModels.ListUsersCharactersRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterLeaderboardRequest)) { if (_instance.OnGetCharacterLeaderboardRequestEvent != null) { _instance.OnGetCharacterLeaderboardRequestEvent((ClientModels.GetCharacterLeaderboardRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterStatisticsRequest)) { if (_instance.OnGetCharacterStatisticsRequestEvent != null) { _instance.OnGetCharacterStatisticsRequestEvent((ClientModels.GetCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundCharacterRequest)) { if (_instance.OnGetLeaderboardAroundCharacterRequestEvent != null) { _instance.OnGetLeaderboardAroundCharacterRequestEvent((ClientModels.GetLeaderboardAroundCharacterRequest)e.Request); return; } } if (type == typeof(ClientModels.GetLeaderboardForUsersCharactersRequest)) { if (_instance.OnGetLeaderboardForUserCharactersRequestEvent != null) { _instance.OnGetLeaderboardForUserCharactersRequestEvent((ClientModels.GetLeaderboardForUsersCharactersRequest)e.Request); return; } } if (type == typeof(ClientModels.GrantCharacterToUserRequest)) { if (_instance.OnGrantCharacterToUserRequestEvent != null) { _instance.OnGrantCharacterToUserRequestEvent((ClientModels.GrantCharacterToUserRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateCharacterStatisticsRequest)) { if (_instance.OnUpdateCharacterStatisticsRequestEvent != null) { _instance.OnUpdateCharacterStatisticsRequestEvent((ClientModels.UpdateCharacterStatisticsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterDataRequest)) { if (_instance.OnGetCharacterDataRequestEvent != null) { _instance.OnGetCharacterDataRequestEvent((ClientModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ClientModels.GetCharacterDataRequest)) { if (_instance.OnGetCharacterReadOnlyDataRequestEvent != null) { _instance.OnGetCharacterReadOnlyDataRequestEvent((ClientModels.GetCharacterDataRequest)e.Request); return; } } if (type == typeof(ClientModels.UpdateCharacterDataRequest)) { if (_instance.OnUpdateCharacterDataRequestEvent != null) { _instance.OnUpdateCharacterDataRequestEvent((ClientModels.UpdateCharacterDataRequest)e.Request); return; } } if (type == typeof(ClientModels.AcceptTradeRequest)) { if (_instance.OnAcceptTradeRequestEvent != null) { _instance.OnAcceptTradeRequestEvent((ClientModels.AcceptTradeRequest)e.Request); return; } } if (type == typeof(ClientModels.CancelTradeRequest)) { if (_instance.OnCancelTradeRequestEvent != null) { _instance.OnCancelTradeRequestEvent((ClientModels.CancelTradeRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerTradesRequest)) { if (_instance.OnGetPlayerTradesRequestEvent != null) { _instance.OnGetPlayerTradesRequestEvent((ClientModels.GetPlayerTradesRequest)e.Request); return; } } if (type == typeof(ClientModels.GetTradeStatusRequest)) { if (_instance.OnGetTradeStatusRequestEvent != null) { _instance.OnGetTradeStatusRequestEvent((ClientModels.GetTradeStatusRequest)e.Request); return; } } if (type == typeof(ClientModels.OpenTradeRequest)) { if (_instance.OnOpenTradeRequestEvent != null) { _instance.OnOpenTradeRequestEvent((ClientModels.OpenTradeRequest)e.Request); return; } } if (type == typeof(ClientModels.AttributeInstallRequest)) { if (_instance.OnAttributeInstallRequestEvent != null) { _instance.OnAttributeInstallRequestEvent((ClientModels.AttributeInstallRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerSegmentsRequest)) { if (_instance.OnGetPlayerSegmentsRequestEvent != null) { _instance.OnGetPlayerSegmentsRequestEvent((ClientModels.GetPlayerSegmentsRequest)e.Request); return; } } if (type == typeof(ClientModels.GetPlayerTagsRequest)) { if (_instance.OnGetPlayerTagsRequestEvent != null) { _instance.OnGetPlayerTagsRequestEvent((ClientModels.GetPlayerTagsRequest)e.Request); return; } } if (type == typeof(ClientModels.AndroidDevicePushNotificationRegistrationRequest)) { if (_instance.OnAndroidDevicePushNotificationRegistrationRequestEvent != null) { _instance.OnAndroidDevicePushNotificationRegistrationRequestEvent((ClientModels.AndroidDevicePushNotificationRegistrationRequest)e.Request); return; } } if (type == typeof(ClientModels.RegisterForIOSPushNotificationRequest)) { if (_instance.OnRegisterForIOSPushNotificationRequestEvent != null) { _instance.OnRegisterForIOSPushNotificationRequestEvent((ClientModels.RegisterForIOSPushNotificationRequest)e.Request); return; } } if (type == typeof(ClientModels.RestoreIOSPurchasesRequest)) { if (_instance.OnRestoreIOSPurchasesRequestEvent != null) { _instance.OnRestoreIOSPurchasesRequestEvent((ClientModels.RestoreIOSPurchasesRequest)e.Request); return; } } if (type == typeof(ClientModels.ValidateAmazonReceiptRequest)) { if (_instance.OnValidateAmazonIAPReceiptRequestEvent != null) { _instance.OnValidateAmazonIAPReceiptRequestEvent((ClientModels.ValidateAmazonReceiptRequest)e.Request); return; } } if (type == typeof(ClientModels.ValidateGooglePlayPurchaseRequest)) { if (_instance.OnValidateGooglePlayPurchaseRequestEvent != null) { _instance.OnValidateGooglePlayPurchaseRequestEvent((ClientModels.ValidateGooglePlayPurchaseRequest)e.Request); return; } } if (type == typeof(ClientModels.ValidateIOSReceiptRequest)) { if (_instance.OnValidateIOSReceiptRequestEvent != null) { _instance.OnValidateIOSReceiptRequestEvent((ClientModels.ValidateIOSReceiptRequest)e.Request); return; } } if (type == typeof(ClientModels.ValidateWindowsReceiptRequest)) { if (_instance.OnValidateWindowsStoreReceiptRequestEvent != null) { _instance.OnValidateWindowsStoreReceiptRequestEvent((ClientModels.ValidateWindowsReceiptRequest)e.Request); return; } } #endif } else { var type = e.Result.GetType(); #if ENABLE_PLAYFABADMIN_API if (type == typeof(AdminModels.CreatePlayerSharedSecretResult)) { if (_instance.OnAdminCreatePlayerSharedSecretResultEvent != null) { _instance.OnAdminCreatePlayerSharedSecretResultEvent((AdminModels.CreatePlayerSharedSecretResult)e.Result); return; } } if (type == typeof(AdminModels.DeletePlayerSharedSecretResult)) { if (_instance.OnAdminDeletePlayerSharedSecretResultEvent != null) { _instance.OnAdminDeletePlayerSharedSecretResultEvent((AdminModels.DeletePlayerSharedSecretResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerSharedSecretsResult)) { if (_instance.OnAdminGetPlayerSharedSecretsResultEvent != null) { _instance.OnAdminGetPlayerSharedSecretsResultEvent((AdminModels.GetPlayerSharedSecretsResult)e.Result); return; } } if (type == typeof(AdminModels.GetPolicyResponse)) { if (_instance.OnAdminGetPolicyResultEvent != null) { _instance.OnAdminGetPolicyResultEvent((AdminModels.GetPolicyResponse)e.Result); return; } } if (type == typeof(AdminModels.SetPlayerSecretResult)) { if (_instance.OnAdminSetPlayerSecretResultEvent != null) { _instance.OnAdminSetPlayerSecretResultEvent((AdminModels.SetPlayerSecretResult)e.Result); return; } } if (type == typeof(AdminModels.UpdatePlayerSharedSecretResult)) { if (_instance.OnAdminUpdatePlayerSharedSecretResultEvent != null) { _instance.OnAdminUpdatePlayerSharedSecretResultEvent((AdminModels.UpdatePlayerSharedSecretResult)e.Result); return; } } if (type == typeof(AdminModels.UpdatePolicyResponse)) { if (_instance.OnAdminUpdatePolicyResultEvent != null) { _instance.OnAdminUpdatePolicyResultEvent((AdminModels.UpdatePolicyResponse)e.Result); return; } } if (type == typeof(AdminModels.BanUsersResult)) { if (_instance.OnAdminBanUsersResultEvent != null) { _instance.OnAdminBanUsersResultEvent((AdminModels.BanUsersResult)e.Result); return; } } if (type == typeof(AdminModels.LookupUserAccountInfoResult)) { if (_instance.OnAdminGetUserAccountInfoResultEvent != null) { _instance.OnAdminGetUserAccountInfoResultEvent((AdminModels.LookupUserAccountInfoResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserBansResult)) { if (_instance.OnAdminGetUserBansResultEvent != null) { _instance.OnAdminGetUserBansResultEvent((AdminModels.GetUserBansResult)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminResetUsersResultEvent != null) { _instance.OnAdminResetUsersResultEvent((AdminModels.BlankResult)e.Result); return; } } if (type == typeof(AdminModels.RevokeAllBansForUserResult)) { if (_instance.OnAdminRevokeAllBansForUserResultEvent != null) { _instance.OnAdminRevokeAllBansForUserResultEvent((AdminModels.RevokeAllBansForUserResult)e.Result); return; } } if (type == typeof(AdminModels.RevokeBansResult)) { if (_instance.OnAdminRevokeBansResultEvent != null) { _instance.OnAdminRevokeBansResultEvent((AdminModels.RevokeBansResult)e.Result); return; } } if (type == typeof(AdminModels.SendAccountRecoveryEmailResult)) { if (_instance.OnAdminSendAccountRecoveryEmailResultEvent != null) { _instance.OnAdminSendAccountRecoveryEmailResultEvent((AdminModels.SendAccountRecoveryEmailResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateBansResult)) { if (_instance.OnAdminUpdateBansResultEvent != null) { _instance.OnAdminUpdateBansResultEvent((AdminModels.UpdateBansResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserTitleDisplayNameResult)) { if (_instance.OnAdminUpdateUserTitleDisplayNameResultEvent != null) { _instance.OnAdminUpdateUserTitleDisplayNameResultEvent((AdminModels.UpdateUserTitleDisplayNameResult)e.Result); return; } } if (type == typeof(AdminModels.CreatePlayerStatisticDefinitionResult)) { if (_instance.OnAdminCreatePlayerStatisticDefinitionResultEvent != null) { _instance.OnAdminCreatePlayerStatisticDefinitionResultEvent((AdminModels.CreatePlayerStatisticDefinitionResult)e.Result); return; } } if (type == typeof(AdminModels.DeleteUsersResult)) { if (_instance.OnAdminDeleteUsersResultEvent != null) { _instance.OnAdminDeleteUsersResultEvent((AdminModels.DeleteUsersResult)e.Result); return; } } if (type == typeof(AdminModels.GetDataReportResult)) { if (_instance.OnAdminGetDataReportResultEvent != null) { _instance.OnAdminGetDataReportResultEvent((AdminModels.GetDataReportResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerStatisticDefinitionsResult)) { if (_instance.OnAdminGetPlayerStatisticDefinitionsResultEvent != null) { _instance.OnAdminGetPlayerStatisticDefinitionsResultEvent((AdminModels.GetPlayerStatisticDefinitionsResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerStatisticVersionsResult)) { if (_instance.OnAdminGetPlayerStatisticVersionsResultEvent != null) { _instance.OnAdminGetPlayerStatisticVersionsResultEvent((AdminModels.GetPlayerStatisticVersionsResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserDataResultEvent != null) { _instance.OnAdminGetUserDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserInternalDataResultEvent != null) { _instance.OnAdminGetUserInternalDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserPublisherDataResultEvent != null) { _instance.OnAdminGetUserPublisherDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserPublisherInternalDataResultEvent != null) { _instance.OnAdminGetUserPublisherInternalDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserPublisherReadOnlyDataResultEvent != null) { _instance.OnAdminGetUserPublisherReadOnlyDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserDataResult)) { if (_instance.OnAdminGetUserReadOnlyDataResultEvent != null) { _instance.OnAdminGetUserReadOnlyDataResultEvent((AdminModels.GetUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.IncrementPlayerStatisticVersionResult)) { if (_instance.OnAdminIncrementPlayerStatisticVersionResultEvent != null) { _instance.OnAdminIncrementPlayerStatisticVersionResultEvent((AdminModels.IncrementPlayerStatisticVersionResult)e.Result); return; } } if (type == typeof(AdminModels.RefundPurchaseResponse)) { if (_instance.OnAdminRefundPurchaseResultEvent != null) { _instance.OnAdminRefundPurchaseResultEvent((AdminModels.RefundPurchaseResponse)e.Result); return; } } if (type == typeof(AdminModels.ResetUserStatisticsResult)) { if (_instance.OnAdminResetUserStatisticsResultEvent != null) { _instance.OnAdminResetUserStatisticsResultEvent((AdminModels.ResetUserStatisticsResult)e.Result); return; } } if (type == typeof(AdminModels.ResolvePurchaseDisputeResponse)) { if (_instance.OnAdminResolvePurchaseDisputeResultEvent != null) { _instance.OnAdminResolvePurchaseDisputeResultEvent((AdminModels.ResolvePurchaseDisputeResponse)e.Result); return; } } if (type == typeof(AdminModels.UpdatePlayerStatisticDefinitionResult)) { if (_instance.OnAdminUpdatePlayerStatisticDefinitionResultEvent != null) { _instance.OnAdminUpdatePlayerStatisticDefinitionResultEvent((AdminModels.UpdatePlayerStatisticDefinitionResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserDataResultEvent != null) { _instance.OnAdminUpdateUserDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserInternalDataResultEvent != null) { _instance.OnAdminUpdateUserInternalDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserPublisherDataResultEvent != null) { _instance.OnAdminUpdateUserPublisherDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserPublisherInternalDataResultEvent != null) { _instance.OnAdminUpdateUserPublisherInternalDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserPublisherReadOnlyDataResultEvent != null) { _instance.OnAdminUpdateUserPublisherReadOnlyDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateUserDataResult)) { if (_instance.OnAdminUpdateUserReadOnlyDataResultEvent != null) { _instance.OnAdminUpdateUserReadOnlyDataResultEvent((AdminModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(AdminModels.AddNewsResult)) { if (_instance.OnAdminAddNewsResultEvent != null) { _instance.OnAdminAddNewsResultEvent((AdminModels.AddNewsResult)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminAddVirtualCurrencyTypesResultEvent != null) { _instance.OnAdminAddVirtualCurrencyTypesResultEvent((AdminModels.BlankResult)e.Result); return; } } if (type == typeof(AdminModels.DeleteStoreResult)) { if (_instance.OnAdminDeleteStoreResultEvent != null) { _instance.OnAdminDeleteStoreResultEvent((AdminModels.DeleteStoreResult)e.Result); return; } } if (type == typeof(AdminModels.GetCatalogItemsResult)) { if (_instance.OnAdminGetCatalogItemsResultEvent != null) { _instance.OnAdminGetCatalogItemsResultEvent((AdminModels.GetCatalogItemsResult)e.Result); return; } } if (type == typeof(AdminModels.GetPublisherDataResult)) { if (_instance.OnAdminGetPublisherDataResultEvent != null) { _instance.OnAdminGetPublisherDataResultEvent((AdminModels.GetPublisherDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetRandomResultTablesResult)) { if (_instance.OnAdminGetRandomResultTablesResultEvent != null) { _instance.OnAdminGetRandomResultTablesResultEvent((AdminModels.GetRandomResultTablesResult)e.Result); return; } } if (type == typeof(AdminModels.GetStoreItemsResult)) { if (_instance.OnAdminGetStoreItemsResultEvent != null) { _instance.OnAdminGetStoreItemsResultEvent((AdminModels.GetStoreItemsResult)e.Result); return; } } if (type == typeof(AdminModels.GetTitleDataResult)) { if (_instance.OnAdminGetTitleDataResultEvent != null) { _instance.OnAdminGetTitleDataResultEvent((AdminModels.GetTitleDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetTitleDataResult)) { if (_instance.OnAdminGetTitleInternalDataResultEvent != null) { _instance.OnAdminGetTitleInternalDataResultEvent((AdminModels.GetTitleDataResult)e.Result); return; } } if (type == typeof(AdminModels.ListVirtualCurrencyTypesResult)) { if (_instance.OnAdminListVirtualCurrencyTypesResultEvent != null) { _instance.OnAdminListVirtualCurrencyTypesResultEvent((AdminModels.ListVirtualCurrencyTypesResult)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminRemoveVirtualCurrencyTypesResultEvent != null) { _instance.OnAdminRemoveVirtualCurrencyTypesResultEvent((AdminModels.BlankResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateCatalogItemsResult)) { if (_instance.OnAdminSetCatalogItemsResultEvent != null) { _instance.OnAdminSetCatalogItemsResultEvent((AdminModels.UpdateCatalogItemsResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateStoreItemsResult)) { if (_instance.OnAdminSetStoreItemsResultEvent != null) { _instance.OnAdminSetStoreItemsResultEvent((AdminModels.UpdateStoreItemsResult)e.Result); return; } } if (type == typeof(AdminModels.SetTitleDataResult)) { if (_instance.OnAdminSetTitleDataResultEvent != null) { _instance.OnAdminSetTitleDataResultEvent((AdminModels.SetTitleDataResult)e.Result); return; } } if (type == typeof(AdminModels.SetTitleDataResult)) { if (_instance.OnAdminSetTitleInternalDataResultEvent != null) { _instance.OnAdminSetTitleInternalDataResultEvent((AdminModels.SetTitleDataResult)e.Result); return; } } if (type == typeof(AdminModels.SetupPushNotificationResult)) { if (_instance.OnAdminSetupPushNotificationResultEvent != null) { _instance.OnAdminSetupPushNotificationResultEvent((AdminModels.SetupPushNotificationResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateCatalogItemsResult)) { if (_instance.OnAdminUpdateCatalogItemsResultEvent != null) { _instance.OnAdminUpdateCatalogItemsResultEvent((AdminModels.UpdateCatalogItemsResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateRandomResultTablesResult)) { if (_instance.OnAdminUpdateRandomResultTablesResultEvent != null) { _instance.OnAdminUpdateRandomResultTablesResultEvent((AdminModels.UpdateRandomResultTablesResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateStoreItemsResult)) { if (_instance.OnAdminUpdateStoreItemsResultEvent != null) { _instance.OnAdminUpdateStoreItemsResultEvent((AdminModels.UpdateStoreItemsResult)e.Result); return; } } if (type == typeof(AdminModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnAdminAddUserVirtualCurrencyResultEvent != null) { _instance.OnAdminAddUserVirtualCurrencyResultEvent((AdminModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(AdminModels.GetUserInventoryResult)) { if (_instance.OnAdminGetUserInventoryResultEvent != null) { _instance.OnAdminGetUserInventoryResultEvent((AdminModels.GetUserInventoryResult)e.Result); return; } } if (type == typeof(AdminModels.GrantItemsToUsersResult)) { if (_instance.OnAdminGrantItemsToUsersResultEvent != null) { _instance.OnAdminGrantItemsToUsersResultEvent((AdminModels.GrantItemsToUsersResult)e.Result); return; } } if (type == typeof(AdminModels.RevokeInventoryResult)) { if (_instance.OnAdminRevokeInventoryItemResultEvent != null) { _instance.OnAdminRevokeInventoryItemResultEvent((AdminModels.RevokeInventoryResult)e.Result); return; } } if (type == typeof(AdminModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnAdminSubtractUserVirtualCurrencyResultEvent != null) { _instance.OnAdminSubtractUserVirtualCurrencyResultEvent((AdminModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(AdminModels.GetMatchmakerGameInfoResult)) { if (_instance.OnAdminGetMatchmakerGameInfoResultEvent != null) { _instance.OnAdminGetMatchmakerGameInfoResultEvent((AdminModels.GetMatchmakerGameInfoResult)e.Result); return; } } if (type == typeof(AdminModels.GetMatchmakerGameModesResult)) { if (_instance.OnAdminGetMatchmakerGameModesResultEvent != null) { _instance.OnAdminGetMatchmakerGameModesResultEvent((AdminModels.GetMatchmakerGameModesResult)e.Result); return; } } if (type == typeof(AdminModels.ModifyMatchmakerGameModesResult)) { if (_instance.OnAdminModifyMatchmakerGameModesResultEvent != null) { _instance.OnAdminModifyMatchmakerGameModesResultEvent((AdminModels.ModifyMatchmakerGameModesResult)e.Result); return; } } if (type == typeof(AdminModels.AddServerBuildResult)) { if (_instance.OnAdminAddServerBuildResultEvent != null) { _instance.OnAdminAddServerBuildResultEvent((AdminModels.AddServerBuildResult)e.Result); return; } } if (type == typeof(AdminModels.GetServerBuildInfoResult)) { if (_instance.OnAdminGetServerBuildInfoResultEvent != null) { _instance.OnAdminGetServerBuildInfoResultEvent((AdminModels.GetServerBuildInfoResult)e.Result); return; } } if (type == typeof(AdminModels.GetServerBuildUploadURLResult)) { if (_instance.OnAdminGetServerBuildUploadUrlResultEvent != null) { _instance.OnAdminGetServerBuildUploadUrlResultEvent((AdminModels.GetServerBuildUploadURLResult)e.Result); return; } } if (type == typeof(AdminModels.ListBuildsResult)) { if (_instance.OnAdminListServerBuildsResultEvent != null) { _instance.OnAdminListServerBuildsResultEvent((AdminModels.ListBuildsResult)e.Result); return; } } if (type == typeof(AdminModels.ModifyServerBuildResult)) { if (_instance.OnAdminModifyServerBuildResultEvent != null) { _instance.OnAdminModifyServerBuildResultEvent((AdminModels.ModifyServerBuildResult)e.Result); return; } } if (type == typeof(AdminModels.RemoveServerBuildResult)) { if (_instance.OnAdminRemoveServerBuildResultEvent != null) { _instance.OnAdminRemoveServerBuildResultEvent((AdminModels.RemoveServerBuildResult)e.Result); return; } } if (type == typeof(AdminModels.SetPublisherDataResult)) { if (_instance.OnAdminSetPublisherDataResultEvent != null) { _instance.OnAdminSetPublisherDataResultEvent((AdminModels.SetPublisherDataResult)e.Result); return; } } if (type == typeof(AdminModels.GetCloudScriptRevisionResult)) { if (_instance.OnAdminGetCloudScriptRevisionResultEvent != null) { _instance.OnAdminGetCloudScriptRevisionResultEvent((AdminModels.GetCloudScriptRevisionResult)e.Result); return; } } if (type == typeof(AdminModels.GetCloudScriptVersionsResult)) { if (_instance.OnAdminGetCloudScriptVersionsResultEvent != null) { _instance.OnAdminGetCloudScriptVersionsResultEvent((AdminModels.GetCloudScriptVersionsResult)e.Result); return; } } if (type == typeof(AdminModels.SetPublishedRevisionResult)) { if (_instance.OnAdminSetPublishedRevisionResultEvent != null) { _instance.OnAdminSetPublishedRevisionResultEvent((AdminModels.SetPublishedRevisionResult)e.Result); return; } } if (type == typeof(AdminModels.UpdateCloudScriptResult)) { if (_instance.OnAdminUpdateCloudScriptResultEvent != null) { _instance.OnAdminUpdateCloudScriptResultEvent((AdminModels.UpdateCloudScriptResult)e.Result); return; } } if (type == typeof(AdminModels.BlankResult)) { if (_instance.OnAdminDeleteContentResultEvent != null) { _instance.OnAdminDeleteContentResultEvent((AdminModels.BlankResult)e.Result); return; } } if (type == typeof(AdminModels.GetContentListResult)) { if (_instance.OnAdminGetContentListResultEvent != null) { _instance.OnAdminGetContentListResultEvent((AdminModels.GetContentListResult)e.Result); return; } } if (type == typeof(AdminModels.GetContentUploadUrlResult)) { if (_instance.OnAdminGetContentUploadUrlResultEvent != null) { _instance.OnAdminGetContentUploadUrlResultEvent((AdminModels.GetContentUploadUrlResult)e.Result); return; } } if (type == typeof(AdminModels.ResetCharacterStatisticsResult)) { if (_instance.OnAdminResetCharacterStatisticsResultEvent != null) { _instance.OnAdminResetCharacterStatisticsResultEvent((AdminModels.ResetCharacterStatisticsResult)e.Result); return; } } if (type == typeof(AdminModels.AddPlayerTagResult)) { if (_instance.OnAdminAddPlayerTagResultEvent != null) { _instance.OnAdminAddPlayerTagResultEvent((AdminModels.AddPlayerTagResult)e.Result); return; } } if (type == typeof(AdminModels.GetAllActionGroupsResult)) { if (_instance.OnAdminGetAllActionGroupsResultEvent != null) { _instance.OnAdminGetAllActionGroupsResultEvent((AdminModels.GetAllActionGroupsResult)e.Result); return; } } if (type == typeof(AdminModels.GetAllSegmentsResult)) { if (_instance.OnAdminGetAllSegmentsResultEvent != null) { _instance.OnAdminGetAllSegmentsResultEvent((AdminModels.GetAllSegmentsResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerSegmentsResult)) { if (_instance.OnAdminGetPlayerSegmentsResultEvent != null) { _instance.OnAdminGetPlayerSegmentsResultEvent((AdminModels.GetPlayerSegmentsResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayersInSegmentResult)) { if (_instance.OnAdminGetPlayersInSegmentResultEvent != null) { _instance.OnAdminGetPlayersInSegmentResultEvent((AdminModels.GetPlayersInSegmentResult)e.Result); return; } } if (type == typeof(AdminModels.GetPlayerTagsResult)) { if (_instance.OnAdminGetPlayerTagsResultEvent != null) { _instance.OnAdminGetPlayerTagsResultEvent((AdminModels.GetPlayerTagsResult)e.Result); return; } } if (type == typeof(AdminModels.RemovePlayerTagResult)) { if (_instance.OnAdminRemovePlayerTagResultEvent != null) { _instance.OnAdminRemovePlayerTagResultEvent((AdminModels.RemovePlayerTagResult)e.Result); return; } } if (type == typeof(AdminModels.EmptyResult)) { if (_instance.OnAdminAbortTaskInstanceResultEvent != null) { _instance.OnAdminAbortTaskInstanceResultEvent((AdminModels.EmptyResult)e.Result); return; } } if (type == typeof(AdminModels.CreateTaskResult)) { if (_instance.OnAdminCreateActionsOnPlayersInSegmentTaskResultEvent != null) { _instance.OnAdminCreateActionsOnPlayersInSegmentTaskResultEvent((AdminModels.CreateTaskResult)e.Result); return; } } if (type == typeof(AdminModels.CreateTaskResult)) { if (_instance.OnAdminCreateCloudScriptTaskResultEvent != null) { _instance.OnAdminCreateCloudScriptTaskResultEvent((AdminModels.CreateTaskResult)e.Result); return; } } if (type == typeof(AdminModels.EmptyResult)) { if (_instance.OnAdminDeleteTaskResultEvent != null) { _instance.OnAdminDeleteTaskResultEvent((AdminModels.EmptyResult)e.Result); return; } } if (type == typeof(AdminModels.GetActionsOnPlayersInSegmentTaskInstanceResult)) { if (_instance.OnAdminGetActionsOnPlayersInSegmentTaskInstanceResultEvent != null) { _instance.OnAdminGetActionsOnPlayersInSegmentTaskInstanceResultEvent((AdminModels.GetActionsOnPlayersInSegmentTaskInstanceResult)e.Result); return; } } if (type == typeof(AdminModels.GetCloudScriptTaskInstanceResult)) { if (_instance.OnAdminGetCloudScriptTaskInstanceResultEvent != null) { _instance.OnAdminGetCloudScriptTaskInstanceResultEvent((AdminModels.GetCloudScriptTaskInstanceResult)e.Result); return; } } if (type == typeof(AdminModels.GetTaskInstancesResult)) { if (_instance.OnAdminGetTaskInstancesResultEvent != null) { _instance.OnAdminGetTaskInstancesResultEvent((AdminModels.GetTaskInstancesResult)e.Result); return; } } if (type == typeof(AdminModels.GetTasksResult)) { if (_instance.OnAdminGetTasksResultEvent != null) { _instance.OnAdminGetTasksResultEvent((AdminModels.GetTasksResult)e.Result); return; } } if (type == typeof(AdminModels.RunTaskResult)) { if (_instance.OnAdminRunTaskResultEvent != null) { _instance.OnAdminRunTaskResultEvent((AdminModels.RunTaskResult)e.Result); return; } } if (type == typeof(AdminModels.EmptyResult)) { if (_instance.OnAdminUpdateTaskResultEvent != null) { _instance.OnAdminUpdateTaskResultEvent((AdminModels.EmptyResult)e.Result); return; } } #endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(MatchmakerModels.AuthUserResponse)) { if (_instance.OnMatchmakerAuthUserResultEvent != null) { _instance.OnMatchmakerAuthUserResultEvent((MatchmakerModels.AuthUserResponse)e.Result); return; } } if (type == typeof(MatchmakerModels.PlayerJoinedResponse)) { if (_instance.OnMatchmakerPlayerJoinedResultEvent != null) { _instance.OnMatchmakerPlayerJoinedResultEvent((MatchmakerModels.PlayerJoinedResponse)e.Result); return; } } if (type == typeof(MatchmakerModels.PlayerLeftResponse)) { if (_instance.OnMatchmakerPlayerLeftResultEvent != null) { _instance.OnMatchmakerPlayerLeftResultEvent((MatchmakerModels.PlayerLeftResponse)e.Result); return; } } if (type == typeof(MatchmakerModels.StartGameResponse)) { if (_instance.OnMatchmakerStartGameResultEvent != null) { _instance.OnMatchmakerStartGameResultEvent((MatchmakerModels.StartGameResponse)e.Result); return; } } if (type == typeof(MatchmakerModels.UserInfoResponse)) { if (_instance.OnMatchmakerUserInfoResultEvent != null) { _instance.OnMatchmakerUserInfoResultEvent((MatchmakerModels.UserInfoResponse)e.Result); return; } } #endif #if ENABLE_PLAYFABSERVER_API if (type == typeof(ServerModels.AuthenticateSessionTicketResult)) { if (_instance.OnServerAuthenticateSessionTicketResultEvent != null) { _instance.OnServerAuthenticateSessionTicketResultEvent((ServerModels.AuthenticateSessionTicketResult)e.Result); return; } } if (type == typeof(ServerModels.SetPlayerSecretResult)) { if (_instance.OnServerSetPlayerSecretResultEvent != null) { _instance.OnServerSetPlayerSecretResultEvent((ServerModels.SetPlayerSecretResult)e.Result); return; } } if (type == typeof(ServerModels.BanUsersResult)) { if (_instance.OnServerBanUsersResultEvent != null) { _instance.OnServerBanUsersResultEvent((ServerModels.BanUsersResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerProfileResult)) { if (_instance.OnServerGetPlayerProfileResultEvent != null) { _instance.OnServerGetPlayerProfileResultEvent((ServerModels.GetPlayerProfileResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromFacebookIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromFacebookIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromFacebookIDsResultEvent((ServerModels.GetPlayFabIDsFromFacebookIDsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayFabIDsFromSteamIDsResult)) { if (_instance.OnServerGetPlayFabIDsFromSteamIDsResultEvent != null) { _instance.OnServerGetPlayFabIDsFromSteamIDsResultEvent((ServerModels.GetPlayFabIDsFromSteamIDsResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserAccountInfoResult)) { if (_instance.OnServerGetUserAccountInfoResultEvent != null) { _instance.OnServerGetUserAccountInfoResultEvent((ServerModels.GetUserAccountInfoResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserBansResult)) { if (_instance.OnServerGetUserBansResultEvent != null) { _instance.OnServerGetUserBansResultEvent((ServerModels.GetUserBansResult)e.Result); return; } } if (type == typeof(ServerModels.RevokeAllBansForUserResult)) { if (_instance.OnServerRevokeAllBansForUserResultEvent != null) { _instance.OnServerRevokeAllBansForUserResultEvent((ServerModels.RevokeAllBansForUserResult)e.Result); return; } } if (type == typeof(ServerModels.RevokeBansResult)) { if (_instance.OnServerRevokeBansResultEvent != null) { _instance.OnServerRevokeBansResultEvent((ServerModels.RevokeBansResult)e.Result); return; } } if (type == typeof(ServerModels.SendPushNotificationResult)) { if (_instance.OnServerSendPushNotificationResultEvent != null) { _instance.OnServerSendPushNotificationResultEvent((ServerModels.SendPushNotificationResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerUpdateAvatarUrlResultEvent != null) { _instance.OnServerUpdateAvatarUrlResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateBansResult)) { if (_instance.OnServerUpdateBansResultEvent != null) { _instance.OnServerUpdateBansResultEvent((ServerModels.UpdateBansResult)e.Result); return; } } if (type == typeof(ServerModels.DeleteUsersResult)) { if (_instance.OnServerDeleteUsersResultEvent != null) { _instance.OnServerDeleteUsersResultEvent((ServerModels.DeleteUsersResult)e.Result); return; } } if (type == typeof(ServerModels.GetLeaderboardResult)) { if (_instance.OnServerGetFriendLeaderboardResultEvent != null) { _instance.OnServerGetFriendLeaderboardResultEvent((ServerModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ServerModels.GetLeaderboardResult)) { if (_instance.OnServerGetLeaderboardResultEvent != null) { _instance.OnServerGetLeaderboardResultEvent((ServerModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ServerModels.GetLeaderboardAroundUserResult)) { if (_instance.OnServerGetLeaderboardAroundUserResultEvent != null) { _instance.OnServerGetLeaderboardAroundUserResultEvent((ServerModels.GetLeaderboardAroundUserResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerCombinedInfoResult)) { if (_instance.OnServerGetPlayerCombinedInfoResultEvent != null) { _instance.OnServerGetPlayerCombinedInfoResultEvent((ServerModels.GetPlayerCombinedInfoResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerStatisticsResult)) { if (_instance.OnServerGetPlayerStatisticsResultEvent != null) { _instance.OnServerGetPlayerStatisticsResultEvent((ServerModels.GetPlayerStatisticsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerStatisticVersionsResult)) { if (_instance.OnServerGetPlayerStatisticVersionsResultEvent != null) { _instance.OnServerGetPlayerStatisticVersionsResultEvent((ServerModels.GetPlayerStatisticVersionsResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserDataResultEvent != null) { _instance.OnServerGetUserDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserInternalDataResultEvent != null) { _instance.OnServerGetUserInternalDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserPublisherDataResultEvent != null) { _instance.OnServerGetUserPublisherDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserPublisherInternalDataResultEvent != null) { _instance.OnServerGetUserPublisherInternalDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserPublisherReadOnlyDataResultEvent != null) { _instance.OnServerGetUserPublisherReadOnlyDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserDataResult)) { if (_instance.OnServerGetUserReadOnlyDataResultEvent != null) { _instance.OnServerGetUserReadOnlyDataResultEvent((ServerModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdatePlayerStatisticsResult)) { if (_instance.OnServerUpdatePlayerStatisticsResultEvent != null) { _instance.OnServerUpdatePlayerStatisticsResultEvent((ServerModels.UpdatePlayerStatisticsResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserDataResultEvent != null) { _instance.OnServerUpdateUserDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserInternalDataResultEvent != null) { _instance.OnServerUpdateUserInternalDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserPublisherDataResultEvent != null) { _instance.OnServerUpdateUserPublisherDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserPublisherInternalDataResultEvent != null) { _instance.OnServerUpdateUserPublisherInternalDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserPublisherReadOnlyDataResultEvent != null) { _instance.OnServerUpdateUserPublisherReadOnlyDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateUserDataResult)) { if (_instance.OnServerUpdateUserReadOnlyDataResultEvent != null) { _instance.OnServerUpdateUserReadOnlyDataResultEvent((ServerModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetCatalogItemsResult)) { if (_instance.OnServerGetCatalogItemsResultEvent != null) { _instance.OnServerGetCatalogItemsResultEvent((ServerModels.GetCatalogItemsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPublisherDataResult)) { if (_instance.OnServerGetPublisherDataResultEvent != null) { _instance.OnServerGetPublisherDataResultEvent((ServerModels.GetPublisherDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetTimeResult)) { if (_instance.OnServerGetTimeResultEvent != null) { _instance.OnServerGetTimeResultEvent((ServerModels.GetTimeResult)e.Result); return; } } if (type == typeof(ServerModels.GetTitleDataResult)) { if (_instance.OnServerGetTitleDataResultEvent != null) { _instance.OnServerGetTitleDataResultEvent((ServerModels.GetTitleDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetTitleDataResult)) { if (_instance.OnServerGetTitleInternalDataResultEvent != null) { _instance.OnServerGetTitleInternalDataResultEvent((ServerModels.GetTitleDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetTitleNewsResult)) { if (_instance.OnServerGetTitleNewsResultEvent != null) { _instance.OnServerGetTitleNewsResultEvent((ServerModels.GetTitleNewsResult)e.Result); return; } } if (type == typeof(ServerModels.SetPublisherDataResult)) { if (_instance.OnServerSetPublisherDataResultEvent != null) { _instance.OnServerSetPublisherDataResultEvent((ServerModels.SetPublisherDataResult)e.Result); return; } } if (type == typeof(ServerModels.SetTitleDataResult)) { if (_instance.OnServerSetTitleDataResultEvent != null) { _instance.OnServerSetTitleDataResultEvent((ServerModels.SetTitleDataResult)e.Result); return; } } if (type == typeof(ServerModels.SetTitleDataResult)) { if (_instance.OnServerSetTitleInternalDataResultEvent != null) { _instance.OnServerSetTitleInternalDataResultEvent((ServerModels.SetTitleDataResult)e.Result); return; } } if (type == typeof(ServerModels.ModifyCharacterVirtualCurrencyResult)) { if (_instance.OnServerAddCharacterVirtualCurrencyResultEvent != null) { _instance.OnServerAddCharacterVirtualCurrencyResultEvent((ServerModels.ModifyCharacterVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ServerModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnServerAddUserVirtualCurrencyResultEvent != null) { _instance.OnServerAddUserVirtualCurrencyResultEvent((ServerModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ServerModels.ConsumeItemResult)) { if (_instance.OnServerConsumeItemResultEvent != null) { _instance.OnServerConsumeItemResultEvent((ServerModels.ConsumeItemResult)e.Result); return; } } if (type == typeof(ServerModels.EvaluateRandomResultTableResult)) { if (_instance.OnServerEvaluateRandomResultTableResultEvent != null) { _instance.OnServerEvaluateRandomResultTableResultEvent((ServerModels.EvaluateRandomResultTableResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterInventoryResult)) { if (_instance.OnServerGetCharacterInventoryResultEvent != null) { _instance.OnServerGetCharacterInventoryResultEvent((ServerModels.GetCharacterInventoryResult)e.Result); return; } } if (type == typeof(ServerModels.GetRandomResultTablesResult)) { if (_instance.OnServerGetRandomResultTablesResultEvent != null) { _instance.OnServerGetRandomResultTablesResultEvent((ServerModels.GetRandomResultTablesResult)e.Result); return; } } if (type == typeof(ServerModels.GetUserInventoryResult)) { if (_instance.OnServerGetUserInventoryResultEvent != null) { _instance.OnServerGetUserInventoryResultEvent((ServerModels.GetUserInventoryResult)e.Result); return; } } if (type == typeof(ServerModels.GrantItemsToCharacterResult)) { if (_instance.OnServerGrantItemsToCharacterResultEvent != null) { _instance.OnServerGrantItemsToCharacterResultEvent((ServerModels.GrantItemsToCharacterResult)e.Result); return; } } if (type == typeof(ServerModels.GrantItemsToUserResult)) { if (_instance.OnServerGrantItemsToUserResultEvent != null) { _instance.OnServerGrantItemsToUserResultEvent((ServerModels.GrantItemsToUserResult)e.Result); return; } } if (type == typeof(ServerModels.GrantItemsToUsersResult)) { if (_instance.OnServerGrantItemsToUsersResultEvent != null) { _instance.OnServerGrantItemsToUsersResultEvent((ServerModels.GrantItemsToUsersResult)e.Result); return; } } if (type == typeof(ServerModels.ModifyItemUsesResult)) { if (_instance.OnServerModifyItemUsesResultEvent != null) { _instance.OnServerModifyItemUsesResultEvent((ServerModels.ModifyItemUsesResult)e.Result); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromCharacterResult)) { if (_instance.OnServerMoveItemToCharacterFromCharacterResultEvent != null) { _instance.OnServerMoveItemToCharacterFromCharacterResultEvent((ServerModels.MoveItemToCharacterFromCharacterResult)e.Result); return; } } if (type == typeof(ServerModels.MoveItemToCharacterFromUserResult)) { if (_instance.OnServerMoveItemToCharacterFromUserResultEvent != null) { _instance.OnServerMoveItemToCharacterFromUserResultEvent((ServerModels.MoveItemToCharacterFromUserResult)e.Result); return; } } if (type == typeof(ServerModels.MoveItemToUserFromCharacterResult)) { if (_instance.OnServerMoveItemToUserFromCharacterResultEvent != null) { _instance.OnServerMoveItemToUserFromCharacterResultEvent((ServerModels.MoveItemToUserFromCharacterResult)e.Result); return; } } if (type == typeof(ServerModels.RedeemCouponResult)) { if (_instance.OnServerRedeemCouponResultEvent != null) { _instance.OnServerRedeemCouponResultEvent((ServerModels.RedeemCouponResult)e.Result); return; } } if (type == typeof(ServerModels.ReportPlayerServerResult)) { if (_instance.OnServerReportPlayerResultEvent != null) { _instance.OnServerReportPlayerResultEvent((ServerModels.ReportPlayerServerResult)e.Result); return; } } if (type == typeof(ServerModels.RevokeInventoryResult)) { if (_instance.OnServerRevokeInventoryItemResultEvent != null) { _instance.OnServerRevokeInventoryItemResultEvent((ServerModels.RevokeInventoryResult)e.Result); return; } } if (type == typeof(ServerModels.ModifyCharacterVirtualCurrencyResult)) { if (_instance.OnServerSubtractCharacterVirtualCurrencyResultEvent != null) { _instance.OnServerSubtractCharacterVirtualCurrencyResultEvent((ServerModels.ModifyCharacterVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ServerModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnServerSubtractUserVirtualCurrencyResultEvent != null) { _instance.OnServerSubtractUserVirtualCurrencyResultEvent((ServerModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ServerModels.UnlockContainerItemResult)) { if (_instance.OnServerUnlockContainerInstanceResultEvent != null) { _instance.OnServerUnlockContainerInstanceResultEvent((ServerModels.UnlockContainerItemResult)e.Result); return; } } if (type == typeof(ServerModels.UnlockContainerItemResult)) { if (_instance.OnServerUnlockContainerItemResultEvent != null) { _instance.OnServerUnlockContainerItemResultEvent((ServerModels.UnlockContainerItemResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerUpdateUserInventoryItemCustomDataResultEvent != null) { _instance.OnServerUpdateUserInventoryItemCustomDataResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerAddFriendResultEvent != null) { _instance.OnServerAddFriendResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.GetFriendsListResult)) { if (_instance.OnServerGetFriendsListResultEvent != null) { _instance.OnServerGetFriendsListResultEvent((ServerModels.GetFriendsListResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerRemoveFriendResultEvent != null) { _instance.OnServerRemoveFriendResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerSetFriendTagsResultEvent != null) { _instance.OnServerSetFriendTagsResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.DeregisterGameResponse)) { if (_instance.OnServerDeregisterGameResultEvent != null) { _instance.OnServerDeregisterGameResultEvent((ServerModels.DeregisterGameResponse)e.Result); return; } } if (type == typeof(ServerModels.NotifyMatchmakerPlayerLeftResult)) { if (_instance.OnServerNotifyMatchmakerPlayerLeftResultEvent != null) { _instance.OnServerNotifyMatchmakerPlayerLeftResultEvent((ServerModels.NotifyMatchmakerPlayerLeftResult)e.Result); return; } } if (type == typeof(ServerModels.RedeemMatchmakerTicketResult)) { if (_instance.OnServerRedeemMatchmakerTicketResultEvent != null) { _instance.OnServerRedeemMatchmakerTicketResultEvent((ServerModels.RedeemMatchmakerTicketResult)e.Result); return; } } if (type == typeof(ServerModels.RefreshGameServerInstanceHeartbeatResult)) { if (_instance.OnServerRefreshGameServerInstanceHeartbeatResultEvent != null) { _instance.OnServerRefreshGameServerInstanceHeartbeatResultEvent((ServerModels.RefreshGameServerInstanceHeartbeatResult)e.Result); return; } } if (type == typeof(ServerModels.RegisterGameResponse)) { if (_instance.OnServerRegisterGameResultEvent != null) { _instance.OnServerRegisterGameResultEvent((ServerModels.RegisterGameResponse)e.Result); return; } } if (type == typeof(ServerModels.SetGameServerInstanceDataResult)) { if (_instance.OnServerSetGameServerInstanceDataResultEvent != null) { _instance.OnServerSetGameServerInstanceDataResultEvent((ServerModels.SetGameServerInstanceDataResult)e.Result); return; } } if (type == typeof(ServerModels.SetGameServerInstanceStateResult)) { if (_instance.OnServerSetGameServerInstanceStateResultEvent != null) { _instance.OnServerSetGameServerInstanceStateResultEvent((ServerModels.SetGameServerInstanceStateResult)e.Result); return; } } if (type == typeof(ServerModels.SetGameServerInstanceTagsResult)) { if (_instance.OnServerSetGameServerInstanceTagsResultEvent != null) { _instance.OnServerSetGameServerInstanceTagsResultEvent((ServerModels.SetGameServerInstanceTagsResult)e.Result); return; } } if (type == typeof(ServerModels.WriteEventResponse)) { if (_instance.OnServerWriteCharacterEventResultEvent != null) { _instance.OnServerWriteCharacterEventResultEvent((ServerModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ServerModels.WriteEventResponse)) { if (_instance.OnServerWritePlayerEventResultEvent != null) { _instance.OnServerWritePlayerEventResultEvent((ServerModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ServerModels.WriteEventResponse)) { if (_instance.OnServerWriteTitleEventResultEvent != null) { _instance.OnServerWriteTitleEventResultEvent((ServerModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ServerModels.AddSharedGroupMembersResult)) { if (_instance.OnServerAddSharedGroupMembersResultEvent != null) { _instance.OnServerAddSharedGroupMembersResultEvent((ServerModels.AddSharedGroupMembersResult)e.Result); return; } } if (type == typeof(ServerModels.CreateSharedGroupResult)) { if (_instance.OnServerCreateSharedGroupResultEvent != null) { _instance.OnServerCreateSharedGroupResultEvent((ServerModels.CreateSharedGroupResult)e.Result); return; } } if (type == typeof(ServerModels.EmptyResult)) { if (_instance.OnServerDeleteSharedGroupResultEvent != null) { _instance.OnServerDeleteSharedGroupResultEvent((ServerModels.EmptyResult)e.Result); return; } } if (type == typeof(ServerModels.GetSharedGroupDataResult)) { if (_instance.OnServerGetSharedGroupDataResultEvent != null) { _instance.OnServerGetSharedGroupDataResultEvent((ServerModels.GetSharedGroupDataResult)e.Result); return; } } if (type == typeof(ServerModels.RemoveSharedGroupMembersResult)) { if (_instance.OnServerRemoveSharedGroupMembersResultEvent != null) { _instance.OnServerRemoveSharedGroupMembersResultEvent((ServerModels.RemoveSharedGroupMembersResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateSharedGroupDataResult)) { if (_instance.OnServerUpdateSharedGroupDataResultEvent != null) { _instance.OnServerUpdateSharedGroupDataResultEvent((ServerModels.UpdateSharedGroupDataResult)e.Result); return; } } if (type == typeof(ServerModels.ExecuteCloudScriptResult)) { if (_instance.OnServerExecuteCloudScriptResultEvent != null) { _instance.OnServerExecuteCloudScriptResultEvent((ServerModels.ExecuteCloudScriptResult)e.Result); return; } } if (type == typeof(ServerModels.GetContentDownloadUrlResult)) { if (_instance.OnServerGetContentDownloadUrlResultEvent != null) { _instance.OnServerGetContentDownloadUrlResultEvent((ServerModels.GetContentDownloadUrlResult)e.Result); return; } } if (type == typeof(ServerModels.DeleteCharacterFromUserResult)) { if (_instance.OnServerDeleteCharacterFromUserResultEvent != null) { _instance.OnServerDeleteCharacterFromUserResultEvent((ServerModels.DeleteCharacterFromUserResult)e.Result); return; } } if (type == typeof(ServerModels.ListUsersCharactersResult)) { if (_instance.OnServerGetAllUsersCharactersResultEvent != null) { _instance.OnServerGetAllUsersCharactersResultEvent((ServerModels.ListUsersCharactersResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterLeaderboardResult)) { if (_instance.OnServerGetCharacterLeaderboardResultEvent != null) { _instance.OnServerGetCharacterLeaderboardResultEvent((ServerModels.GetCharacterLeaderboardResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterStatisticsResult)) { if (_instance.OnServerGetCharacterStatisticsResultEvent != null) { _instance.OnServerGetCharacterStatisticsResultEvent((ServerModels.GetCharacterStatisticsResult)e.Result); return; } } if (type == typeof(ServerModels.GetLeaderboardAroundCharacterResult)) { if (_instance.OnServerGetLeaderboardAroundCharacterResultEvent != null) { _instance.OnServerGetLeaderboardAroundCharacterResultEvent((ServerModels.GetLeaderboardAroundCharacterResult)e.Result); return; } } if (type == typeof(ServerModels.GetLeaderboardForUsersCharactersResult)) { if (_instance.OnServerGetLeaderboardForUserCharactersResultEvent != null) { _instance.OnServerGetLeaderboardForUserCharactersResultEvent((ServerModels.GetLeaderboardForUsersCharactersResult)e.Result); return; } } if (type == typeof(ServerModels.GrantCharacterToUserResult)) { if (_instance.OnServerGrantCharacterToUserResultEvent != null) { _instance.OnServerGrantCharacterToUserResultEvent((ServerModels.GrantCharacterToUserResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateCharacterStatisticsResult)) { if (_instance.OnServerUpdateCharacterStatisticsResultEvent != null) { _instance.OnServerUpdateCharacterStatisticsResultEvent((ServerModels.UpdateCharacterStatisticsResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterDataResult)) { if (_instance.OnServerGetCharacterDataResultEvent != null) { _instance.OnServerGetCharacterDataResultEvent((ServerModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterDataResult)) { if (_instance.OnServerGetCharacterInternalDataResultEvent != null) { _instance.OnServerGetCharacterInternalDataResultEvent((ServerModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.GetCharacterDataResult)) { if (_instance.OnServerGetCharacterReadOnlyDataResultEvent != null) { _instance.OnServerGetCharacterReadOnlyDataResultEvent((ServerModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateCharacterDataResult)) { if (_instance.OnServerUpdateCharacterDataResultEvent != null) { _instance.OnServerUpdateCharacterDataResultEvent((ServerModels.UpdateCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateCharacterDataResult)) { if (_instance.OnServerUpdateCharacterInternalDataResultEvent != null) { _instance.OnServerUpdateCharacterInternalDataResultEvent((ServerModels.UpdateCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.UpdateCharacterDataResult)) { if (_instance.OnServerUpdateCharacterReadOnlyDataResultEvent != null) { _instance.OnServerUpdateCharacterReadOnlyDataResultEvent((ServerModels.UpdateCharacterDataResult)e.Result); return; } } if (type == typeof(ServerModels.AddPlayerTagResult)) { if (_instance.OnServerAddPlayerTagResultEvent != null) { _instance.OnServerAddPlayerTagResultEvent((ServerModels.AddPlayerTagResult)e.Result); return; } } if (type == typeof(ServerModels.GetAllActionGroupsResult)) { if (_instance.OnServerGetAllActionGroupsResultEvent != null) { _instance.OnServerGetAllActionGroupsResultEvent((ServerModels.GetAllActionGroupsResult)e.Result); return; } } if (type == typeof(ServerModels.GetAllSegmentsResult)) { if (_instance.OnServerGetAllSegmentsResultEvent != null) { _instance.OnServerGetAllSegmentsResultEvent((ServerModels.GetAllSegmentsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerSegmentsResult)) { if (_instance.OnServerGetPlayerSegmentsResultEvent != null) { _instance.OnServerGetPlayerSegmentsResultEvent((ServerModels.GetPlayerSegmentsResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayersInSegmentResult)) { if (_instance.OnServerGetPlayersInSegmentResultEvent != null) { _instance.OnServerGetPlayersInSegmentResultEvent((ServerModels.GetPlayersInSegmentResult)e.Result); return; } } if (type == typeof(ServerModels.GetPlayerTagsResult)) { if (_instance.OnServerGetPlayerTagsResultEvent != null) { _instance.OnServerGetPlayerTagsResultEvent((ServerModels.GetPlayerTagsResult)e.Result); return; } } if (type == typeof(ServerModels.RemovePlayerTagResult)) { if (_instance.OnServerRemovePlayerTagResultEvent != null) { _instance.OnServerRemovePlayerTagResultEvent((ServerModels.RemovePlayerTagResult)e.Result); return; } } if (type == typeof(ServerModels.AwardSteamAchievementResult)) { if (_instance.OnServerAwardSteamAchievementResultEvent != null) { _instance.OnServerAwardSteamAchievementResultEvent((ServerModels.AwardSteamAchievementResult)e.Result); return; } } #endif #if !DISABLE_PLAYFABCLIENT_API if (type == typeof(ClientModels.LoginResult)) { if (_instance.OnLoginResultEvent != null) { _instance.OnLoginResultEvent((ClientModels.LoginResult)e.Result); return; } } if (type == typeof(ClientModels.GetPhotonAuthenticationTokenResult)) { if (_instance.OnGetPhotonAuthenticationTokenResultEvent != null) { _instance.OnGetPhotonAuthenticationTokenResultEvent((ClientModels.GetPhotonAuthenticationTokenResult)e.Result); return; } } if (type == typeof(ClientModels.GetTitlePublicKeyResult)) { if (_instance.OnGetTitlePublicKeyResultEvent != null) { _instance.OnGetTitlePublicKeyResultEvent((ClientModels.GetTitlePublicKeyResult)e.Result); return; } } if (type == typeof(ClientModels.GetWindowsHelloChallengeResponse)) { if (_instance.OnGetWindowsHelloChallengeResultEvent != null) { _instance.OnGetWindowsHelloChallengeResultEvent((ClientModels.GetWindowsHelloChallengeResponse)e.Result); return; } } if (type == typeof(ClientModels.RegisterPlayFabUserResult)) { if (_instance.OnRegisterPlayFabUserResultEvent != null) { _instance.OnRegisterPlayFabUserResultEvent((ClientModels.RegisterPlayFabUserResult)e.Result); return; } } if (type == typeof(ClientModels.SetPlayerSecretResult)) { if (_instance.OnSetPlayerSecretResultEvent != null) { _instance.OnSetPlayerSecretResultEvent((ClientModels.SetPlayerSecretResult)e.Result); return; } } if (type == typeof(ClientModels.AddGenericIDResult)) { if (_instance.OnAddGenericIDResultEvent != null) { _instance.OnAddGenericIDResultEvent((ClientModels.AddGenericIDResult)e.Result); return; } } if (type == typeof(ClientModels.AddUsernamePasswordResult)) { if (_instance.OnAddUsernamePasswordResultEvent != null) { _instance.OnAddUsernamePasswordResultEvent((ClientModels.AddUsernamePasswordResult)e.Result); return; } } if (type == typeof(ClientModels.GetAccountInfoResult)) { if (_instance.OnGetAccountInfoResultEvent != null) { _instance.OnGetAccountInfoResultEvent((ClientModels.GetAccountInfoResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerCombinedInfoResult)) { if (_instance.OnGetPlayerCombinedInfoResultEvent != null) { _instance.OnGetPlayerCombinedInfoResultEvent((ClientModels.GetPlayerCombinedInfoResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerProfileResult)) { if (_instance.OnGetPlayerProfileResultEvent != null) { _instance.OnGetPlayerProfileResultEvent((ClientModels.GetPlayerProfileResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromFacebookIDsResult)) { if (_instance.OnGetPlayFabIDsFromFacebookIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromFacebookIDsResultEvent((ClientModels.GetPlayFabIDsFromFacebookIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGameCenterIDsResult)) { if (_instance.OnGetPlayFabIDsFromGameCenterIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromGameCenterIDsResultEvent((ClientModels.GetPlayFabIDsFromGameCenterIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGenericIDsResult)) { if (_instance.OnGetPlayFabIDsFromGenericIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromGenericIDsResultEvent((ClientModels.GetPlayFabIDsFromGenericIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromGoogleIDsResult)) { if (_instance.OnGetPlayFabIDsFromGoogleIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromGoogleIDsResultEvent((ClientModels.GetPlayFabIDsFromGoogleIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromKongregateIDsResult)) { if (_instance.OnGetPlayFabIDsFromKongregateIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromKongregateIDsResultEvent((ClientModels.GetPlayFabIDsFromKongregateIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromSteamIDsResult)) { if (_instance.OnGetPlayFabIDsFromSteamIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromSteamIDsResultEvent((ClientModels.GetPlayFabIDsFromSteamIDsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayFabIDsFromTwitchIDsResult)) { if (_instance.OnGetPlayFabIDsFromTwitchIDsResultEvent != null) { _instance.OnGetPlayFabIDsFromTwitchIDsResultEvent((ClientModels.GetPlayFabIDsFromTwitchIDsResult)e.Result); return; } } if (type == typeof(ClientModels.LinkAndroidDeviceIDResult)) { if (_instance.OnLinkAndroidDeviceIDResultEvent != null) { _instance.OnLinkAndroidDeviceIDResultEvent((ClientModels.LinkAndroidDeviceIDResult)e.Result); return; } } if (type == typeof(ClientModels.LinkCustomIDResult)) { if (_instance.OnLinkCustomIDResultEvent != null) { _instance.OnLinkCustomIDResultEvent((ClientModels.LinkCustomIDResult)e.Result); return; } } if (type == typeof(ClientModels.LinkFacebookAccountResult)) { if (_instance.OnLinkFacebookAccountResultEvent != null) { _instance.OnLinkFacebookAccountResultEvent((ClientModels.LinkFacebookAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkGameCenterAccountResult)) { if (_instance.OnLinkGameCenterAccountResultEvent != null) { _instance.OnLinkGameCenterAccountResultEvent((ClientModels.LinkGameCenterAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkGoogleAccountResult)) { if (_instance.OnLinkGoogleAccountResultEvent != null) { _instance.OnLinkGoogleAccountResultEvent((ClientModels.LinkGoogleAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkIOSDeviceIDResult)) { if (_instance.OnLinkIOSDeviceIDResultEvent != null) { _instance.OnLinkIOSDeviceIDResultEvent((ClientModels.LinkIOSDeviceIDResult)e.Result); return; } } if (type == typeof(ClientModels.LinkKongregateAccountResult)) { if (_instance.OnLinkKongregateResultEvent != null) { _instance.OnLinkKongregateResultEvent((ClientModels.LinkKongregateAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkSteamAccountResult)) { if (_instance.OnLinkSteamAccountResultEvent != null) { _instance.OnLinkSteamAccountResultEvent((ClientModels.LinkSteamAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkTwitchAccountResult)) { if (_instance.OnLinkTwitchResultEvent != null) { _instance.OnLinkTwitchResultEvent((ClientModels.LinkTwitchAccountResult)e.Result); return; } } if (type == typeof(ClientModels.LinkWindowsHelloAccountResponse)) { if (_instance.OnLinkWindowsHelloResultEvent != null) { _instance.OnLinkWindowsHelloResultEvent((ClientModels.LinkWindowsHelloAccountResponse)e.Result); return; } } if (type == typeof(ClientModels.RemoveGenericIDResult)) { if (_instance.OnRemoveGenericIDResultEvent != null) { _instance.OnRemoveGenericIDResultEvent((ClientModels.RemoveGenericIDResult)e.Result); return; } } if (type == typeof(ClientModels.ReportPlayerClientResult)) { if (_instance.OnReportPlayerResultEvent != null) { _instance.OnReportPlayerResultEvent((ClientModels.ReportPlayerClientResult)e.Result); return; } } if (type == typeof(ClientModels.SendAccountRecoveryEmailResult)) { if (_instance.OnSendAccountRecoveryEmailResultEvent != null) { _instance.OnSendAccountRecoveryEmailResultEvent((ClientModels.SendAccountRecoveryEmailResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkAndroidDeviceIDResult)) { if (_instance.OnUnlinkAndroidDeviceIDResultEvent != null) { _instance.OnUnlinkAndroidDeviceIDResultEvent((ClientModels.UnlinkAndroidDeviceIDResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkCustomIDResult)) { if (_instance.OnUnlinkCustomIDResultEvent != null) { _instance.OnUnlinkCustomIDResultEvent((ClientModels.UnlinkCustomIDResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkFacebookAccountResult)) { if (_instance.OnUnlinkFacebookAccountResultEvent != null) { _instance.OnUnlinkFacebookAccountResultEvent((ClientModels.UnlinkFacebookAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkGameCenterAccountResult)) { if (_instance.OnUnlinkGameCenterAccountResultEvent != null) { _instance.OnUnlinkGameCenterAccountResultEvent((ClientModels.UnlinkGameCenterAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkGoogleAccountResult)) { if (_instance.OnUnlinkGoogleAccountResultEvent != null) { _instance.OnUnlinkGoogleAccountResultEvent((ClientModels.UnlinkGoogleAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkIOSDeviceIDResult)) { if (_instance.OnUnlinkIOSDeviceIDResultEvent != null) { _instance.OnUnlinkIOSDeviceIDResultEvent((ClientModels.UnlinkIOSDeviceIDResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkKongregateAccountResult)) { if (_instance.OnUnlinkKongregateResultEvent != null) { _instance.OnUnlinkKongregateResultEvent((ClientModels.UnlinkKongregateAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkSteamAccountResult)) { if (_instance.OnUnlinkSteamAccountResultEvent != null) { _instance.OnUnlinkSteamAccountResultEvent((ClientModels.UnlinkSteamAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkTwitchAccountResult)) { if (_instance.OnUnlinkTwitchResultEvent != null) { _instance.OnUnlinkTwitchResultEvent((ClientModels.UnlinkTwitchAccountResult)e.Result); return; } } if (type == typeof(ClientModels.UnlinkWindowsHelloAccountResponse)) { if (_instance.OnUnlinkWindowsHelloResultEvent != null) { _instance.OnUnlinkWindowsHelloResultEvent((ClientModels.UnlinkWindowsHelloAccountResponse)e.Result); return; } } if (type == typeof(ClientModels.EmptyResult)) { if (_instance.OnUpdateAvatarUrlResultEvent != null) { _instance.OnUpdateAvatarUrlResultEvent((ClientModels.EmptyResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateUserTitleDisplayNameResult)) { if (_instance.OnUpdateUserTitleDisplayNameResultEvent != null) { _instance.OnUpdateUserTitleDisplayNameResultEvent((ClientModels.UpdateUserTitleDisplayNameResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardResult)) { if (_instance.OnGetFriendLeaderboardResultEvent != null) { _instance.OnGetFriendLeaderboardResultEvent((ClientModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ClientModels.GetFriendLeaderboardAroundPlayerResult)) { if (_instance.OnGetFriendLeaderboardAroundPlayerResultEvent != null) { _instance.OnGetFriendLeaderboardAroundPlayerResultEvent((ClientModels.GetFriendLeaderboardAroundPlayerResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardResult)) { if (_instance.OnGetLeaderboardResultEvent != null) { _instance.OnGetLeaderboardResultEvent((ClientModels.GetLeaderboardResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundPlayerResult)) { if (_instance.OnGetLeaderboardAroundPlayerResultEvent != null) { _instance.OnGetLeaderboardAroundPlayerResultEvent((ClientModels.GetLeaderboardAroundPlayerResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerStatisticsResult)) { if (_instance.OnGetPlayerStatisticsResultEvent != null) { _instance.OnGetPlayerStatisticsResultEvent((ClientModels.GetPlayerStatisticsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerStatisticVersionsResult)) { if (_instance.OnGetPlayerStatisticVersionsResultEvent != null) { _instance.OnGetPlayerStatisticVersionsResultEvent((ClientModels.GetPlayerStatisticVersionsResult)e.Result); return; } } if (type == typeof(ClientModels.GetUserDataResult)) { if (_instance.OnGetUserDataResultEvent != null) { _instance.OnGetUserDataResultEvent((ClientModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetUserDataResult)) { if (_instance.OnGetUserPublisherDataResultEvent != null) { _instance.OnGetUserPublisherDataResultEvent((ClientModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetUserDataResult)) { if (_instance.OnGetUserPublisherReadOnlyDataResultEvent != null) { _instance.OnGetUserPublisherReadOnlyDataResultEvent((ClientModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetUserDataResult)) { if (_instance.OnGetUserReadOnlyDataResultEvent != null) { _instance.OnGetUserReadOnlyDataResultEvent((ClientModels.GetUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.UpdatePlayerStatisticsResult)) { if (_instance.OnUpdatePlayerStatisticsResultEvent != null) { _instance.OnUpdatePlayerStatisticsResultEvent((ClientModels.UpdatePlayerStatisticsResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateUserDataResult)) { if (_instance.OnUpdateUserDataResultEvent != null) { _instance.OnUpdateUserDataResultEvent((ClientModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateUserDataResult)) { if (_instance.OnUpdateUserPublisherDataResultEvent != null) { _instance.OnUpdateUserPublisherDataResultEvent((ClientModels.UpdateUserDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetCatalogItemsResult)) { if (_instance.OnGetCatalogItemsResultEvent != null) { _instance.OnGetCatalogItemsResultEvent((ClientModels.GetCatalogItemsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPublisherDataResult)) { if (_instance.OnGetPublisherDataResultEvent != null) { _instance.OnGetPublisherDataResultEvent((ClientModels.GetPublisherDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetStoreItemsResult)) { if (_instance.OnGetStoreItemsResultEvent != null) { _instance.OnGetStoreItemsResultEvent((ClientModels.GetStoreItemsResult)e.Result); return; } } if (type == typeof(ClientModels.GetTimeResult)) { if (_instance.OnGetTimeResultEvent != null) { _instance.OnGetTimeResultEvent((ClientModels.GetTimeResult)e.Result); return; } } if (type == typeof(ClientModels.GetTitleDataResult)) { if (_instance.OnGetTitleDataResultEvent != null) { _instance.OnGetTitleDataResultEvent((ClientModels.GetTitleDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetTitleNewsResult)) { if (_instance.OnGetTitleNewsResultEvent != null) { _instance.OnGetTitleNewsResultEvent((ClientModels.GetTitleNewsResult)e.Result); return; } } if (type == typeof(ClientModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnAddUserVirtualCurrencyResultEvent != null) { _instance.OnAddUserVirtualCurrencyResultEvent((ClientModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ClientModels.ConfirmPurchaseResult)) { if (_instance.OnConfirmPurchaseResultEvent != null) { _instance.OnConfirmPurchaseResultEvent((ClientModels.ConfirmPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.ConsumeItemResult)) { if (_instance.OnConsumeItemResultEvent != null) { _instance.OnConsumeItemResultEvent((ClientModels.ConsumeItemResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterInventoryResult)) { if (_instance.OnGetCharacterInventoryResultEvent != null) { _instance.OnGetCharacterInventoryResultEvent((ClientModels.GetCharacterInventoryResult)e.Result); return; } } if (type == typeof(ClientModels.GetPurchaseResult)) { if (_instance.OnGetPurchaseResultEvent != null) { _instance.OnGetPurchaseResultEvent((ClientModels.GetPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.GetUserInventoryResult)) { if (_instance.OnGetUserInventoryResultEvent != null) { _instance.OnGetUserInventoryResultEvent((ClientModels.GetUserInventoryResult)e.Result); return; } } if (type == typeof(ClientModels.PayForPurchaseResult)) { if (_instance.OnPayForPurchaseResultEvent != null) { _instance.OnPayForPurchaseResultEvent((ClientModels.PayForPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.PurchaseItemResult)) { if (_instance.OnPurchaseItemResultEvent != null) { _instance.OnPurchaseItemResultEvent((ClientModels.PurchaseItemResult)e.Result); return; } } if (type == typeof(ClientModels.RedeemCouponResult)) { if (_instance.OnRedeemCouponResultEvent != null) { _instance.OnRedeemCouponResultEvent((ClientModels.RedeemCouponResult)e.Result); return; } } if (type == typeof(ClientModels.StartPurchaseResult)) { if (_instance.OnStartPurchaseResultEvent != null) { _instance.OnStartPurchaseResultEvent((ClientModels.StartPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.ModifyUserVirtualCurrencyResult)) { if (_instance.OnSubtractUserVirtualCurrencyResultEvent != null) { _instance.OnSubtractUserVirtualCurrencyResultEvent((ClientModels.ModifyUserVirtualCurrencyResult)e.Result); return; } } if (type == typeof(ClientModels.UnlockContainerItemResult)) { if (_instance.OnUnlockContainerInstanceResultEvent != null) { _instance.OnUnlockContainerInstanceResultEvent((ClientModels.UnlockContainerItemResult)e.Result); return; } } if (type == typeof(ClientModels.UnlockContainerItemResult)) { if (_instance.OnUnlockContainerItemResultEvent != null) { _instance.OnUnlockContainerItemResultEvent((ClientModels.UnlockContainerItemResult)e.Result); return; } } if (type == typeof(ClientModels.AddFriendResult)) { if (_instance.OnAddFriendResultEvent != null) { _instance.OnAddFriendResultEvent((ClientModels.AddFriendResult)e.Result); return; } } if (type == typeof(ClientModels.GetFriendsListResult)) { if (_instance.OnGetFriendsListResultEvent != null) { _instance.OnGetFriendsListResultEvent((ClientModels.GetFriendsListResult)e.Result); return; } } if (type == typeof(ClientModels.RemoveFriendResult)) { if (_instance.OnRemoveFriendResultEvent != null) { _instance.OnRemoveFriendResultEvent((ClientModels.RemoveFriendResult)e.Result); return; } } if (type == typeof(ClientModels.SetFriendTagsResult)) { if (_instance.OnSetFriendTagsResultEvent != null) { _instance.OnSetFriendTagsResultEvent((ClientModels.SetFriendTagsResult)e.Result); return; } } if (type == typeof(ClientModels.CurrentGamesResult)) { if (_instance.OnGetCurrentGamesResultEvent != null) { _instance.OnGetCurrentGamesResultEvent((ClientModels.CurrentGamesResult)e.Result); return; } } if (type == typeof(ClientModels.GameServerRegionsResult)) { if (_instance.OnGetGameServerRegionsResultEvent != null) { _instance.OnGetGameServerRegionsResultEvent((ClientModels.GameServerRegionsResult)e.Result); return; } } if (type == typeof(ClientModels.MatchmakeResult)) { if (_instance.OnMatchmakeResultEvent != null) { _instance.OnMatchmakeResultEvent((ClientModels.MatchmakeResult)e.Result); return; } } if (type == typeof(ClientModels.StartGameResult)) { if (_instance.OnStartGameResultEvent != null) { _instance.OnStartGameResultEvent((ClientModels.StartGameResult)e.Result); return; } } if (type == typeof(ClientModels.WriteEventResponse)) { if (_instance.OnWriteCharacterEventResultEvent != null) { _instance.OnWriteCharacterEventResultEvent((ClientModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ClientModels.WriteEventResponse)) { if (_instance.OnWritePlayerEventResultEvent != null) { _instance.OnWritePlayerEventResultEvent((ClientModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ClientModels.WriteEventResponse)) { if (_instance.OnWriteTitleEventResultEvent != null) { _instance.OnWriteTitleEventResultEvent((ClientModels.WriteEventResponse)e.Result); return; } } if (type == typeof(ClientModels.AddSharedGroupMembersResult)) { if (_instance.OnAddSharedGroupMembersResultEvent != null) { _instance.OnAddSharedGroupMembersResultEvent((ClientModels.AddSharedGroupMembersResult)e.Result); return; } } if (type == typeof(ClientModels.CreateSharedGroupResult)) { if (_instance.OnCreateSharedGroupResultEvent != null) { _instance.OnCreateSharedGroupResultEvent((ClientModels.CreateSharedGroupResult)e.Result); return; } } if (type == typeof(ClientModels.GetSharedGroupDataResult)) { if (_instance.OnGetSharedGroupDataResultEvent != null) { _instance.OnGetSharedGroupDataResultEvent((ClientModels.GetSharedGroupDataResult)e.Result); return; } } if (type == typeof(ClientModels.RemoveSharedGroupMembersResult)) { if (_instance.OnRemoveSharedGroupMembersResultEvent != null) { _instance.OnRemoveSharedGroupMembersResultEvent((ClientModels.RemoveSharedGroupMembersResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateSharedGroupDataResult)) { if (_instance.OnUpdateSharedGroupDataResultEvent != null) { _instance.OnUpdateSharedGroupDataResultEvent((ClientModels.UpdateSharedGroupDataResult)e.Result); return; } } if (type == typeof(ClientModels.ExecuteCloudScriptResult)) { if (_instance.OnExecuteCloudScriptResultEvent != null) { _instance.OnExecuteCloudScriptResultEvent((ClientModels.ExecuteCloudScriptResult)e.Result); return; } } if (type == typeof(ClientModels.GetContentDownloadUrlResult)) { if (_instance.OnGetContentDownloadUrlResultEvent != null) { _instance.OnGetContentDownloadUrlResultEvent((ClientModels.GetContentDownloadUrlResult)e.Result); return; } } if (type == typeof(ClientModels.ListUsersCharactersResult)) { if (_instance.OnGetAllUsersCharactersResultEvent != null) { _instance.OnGetAllUsersCharactersResultEvent((ClientModels.ListUsersCharactersResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterLeaderboardResult)) { if (_instance.OnGetCharacterLeaderboardResultEvent != null) { _instance.OnGetCharacterLeaderboardResultEvent((ClientModels.GetCharacterLeaderboardResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterStatisticsResult)) { if (_instance.OnGetCharacterStatisticsResultEvent != null) { _instance.OnGetCharacterStatisticsResultEvent((ClientModels.GetCharacterStatisticsResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardAroundCharacterResult)) { if (_instance.OnGetLeaderboardAroundCharacterResultEvent != null) { _instance.OnGetLeaderboardAroundCharacterResultEvent((ClientModels.GetLeaderboardAroundCharacterResult)e.Result); return; } } if (type == typeof(ClientModels.GetLeaderboardForUsersCharactersResult)) { if (_instance.OnGetLeaderboardForUserCharactersResultEvent != null) { _instance.OnGetLeaderboardForUserCharactersResultEvent((ClientModels.GetLeaderboardForUsersCharactersResult)e.Result); return; } } if (type == typeof(ClientModels.GrantCharacterToUserResult)) { if (_instance.OnGrantCharacterToUserResultEvent != null) { _instance.OnGrantCharacterToUserResultEvent((ClientModels.GrantCharacterToUserResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateCharacterStatisticsResult)) { if (_instance.OnUpdateCharacterStatisticsResultEvent != null) { _instance.OnUpdateCharacterStatisticsResultEvent((ClientModels.UpdateCharacterStatisticsResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterDataResult)) { if (_instance.OnGetCharacterDataResultEvent != null) { _instance.OnGetCharacterDataResultEvent((ClientModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ClientModels.GetCharacterDataResult)) { if (_instance.OnGetCharacterReadOnlyDataResultEvent != null) { _instance.OnGetCharacterReadOnlyDataResultEvent((ClientModels.GetCharacterDataResult)e.Result); return; } } if (type == typeof(ClientModels.UpdateCharacterDataResult)) { if (_instance.OnUpdateCharacterDataResultEvent != null) { _instance.OnUpdateCharacterDataResultEvent((ClientModels.UpdateCharacterDataResult)e.Result); return; } } if (type == typeof(ClientModels.AcceptTradeResponse)) { if (_instance.OnAcceptTradeResultEvent != null) { _instance.OnAcceptTradeResultEvent((ClientModels.AcceptTradeResponse)e.Result); return; } } if (type == typeof(ClientModels.CancelTradeResponse)) { if (_instance.OnCancelTradeResultEvent != null) { _instance.OnCancelTradeResultEvent((ClientModels.CancelTradeResponse)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerTradesResponse)) { if (_instance.OnGetPlayerTradesResultEvent != null) { _instance.OnGetPlayerTradesResultEvent((ClientModels.GetPlayerTradesResponse)e.Result); return; } } if (type == typeof(ClientModels.GetTradeStatusResponse)) { if (_instance.OnGetTradeStatusResultEvent != null) { _instance.OnGetTradeStatusResultEvent((ClientModels.GetTradeStatusResponse)e.Result); return; } } if (type == typeof(ClientModels.OpenTradeResponse)) { if (_instance.OnOpenTradeResultEvent != null) { _instance.OnOpenTradeResultEvent((ClientModels.OpenTradeResponse)e.Result); return; } } if (type == typeof(ClientModels.AttributeInstallResult)) { if (_instance.OnAttributeInstallResultEvent != null) { _instance.OnAttributeInstallResultEvent((ClientModels.AttributeInstallResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerSegmentsResult)) { if (_instance.OnGetPlayerSegmentsResultEvent != null) { _instance.OnGetPlayerSegmentsResultEvent((ClientModels.GetPlayerSegmentsResult)e.Result); return; } } if (type == typeof(ClientModels.GetPlayerTagsResult)) { if (_instance.OnGetPlayerTagsResultEvent != null) { _instance.OnGetPlayerTagsResultEvent((ClientModels.GetPlayerTagsResult)e.Result); return; } } if (type == typeof(ClientModels.AndroidDevicePushNotificationRegistrationResult)) { if (_instance.OnAndroidDevicePushNotificationRegistrationResultEvent != null) { _instance.OnAndroidDevicePushNotificationRegistrationResultEvent((ClientModels.AndroidDevicePushNotificationRegistrationResult)e.Result); return; } } if (type == typeof(ClientModels.RegisterForIOSPushNotificationResult)) { if (_instance.OnRegisterForIOSPushNotificationResultEvent != null) { _instance.OnRegisterForIOSPushNotificationResultEvent((ClientModels.RegisterForIOSPushNotificationResult)e.Result); return; } } if (type == typeof(ClientModels.RestoreIOSPurchasesResult)) { if (_instance.OnRestoreIOSPurchasesResultEvent != null) { _instance.OnRestoreIOSPurchasesResultEvent((ClientModels.RestoreIOSPurchasesResult)e.Result); return; } } if (type == typeof(ClientModels.ValidateAmazonReceiptResult)) { if (_instance.OnValidateAmazonIAPReceiptResultEvent != null) { _instance.OnValidateAmazonIAPReceiptResultEvent((ClientModels.ValidateAmazonReceiptResult)e.Result); return; } } if (type == typeof(ClientModels.ValidateGooglePlayPurchaseResult)) { if (_instance.OnValidateGooglePlayPurchaseResultEvent != null) { _instance.OnValidateGooglePlayPurchaseResultEvent((ClientModels.ValidateGooglePlayPurchaseResult)e.Result); return; } } if (type == typeof(ClientModels.ValidateIOSReceiptResult)) { if (_instance.OnValidateIOSReceiptResultEvent != null) { _instance.OnValidateIOSReceiptResultEvent((ClientModels.ValidateIOSReceiptResult)e.Result); return; } } if (type == typeof(ClientModels.ValidateWindowsReceiptResult)) { if (_instance.OnValidateWindowsStoreReceiptResultEvent != null) { _instance.OnValidateWindowsStoreReceiptResultEvent((ClientModels.ValidateWindowsReceiptResult)e.Result); return; } } #endif } } } }
PlayFab/PlayFab-Samples
Recipes/GoogleSignInSample/Assets/PlayFabSdk/Shared/Public/PlayFabEvents.cs
C#
mit
371,673
var STATE_START = 0; var STATE_END = 1; var STATE_GROUND = 2; var STATE_FOREST = 3; var STATE_WATER = 4; function Cell(col, row) { this.col = col; this.row = row; this.state = STATE_GROUND; } Cell.prototype.draw = function() { stroke(66); switch (this.state) { case STATE_START: Color.Material.light_green[5].fill(); break; case STATE_END: Color.Material.red[5].fill(); break; case STATE_GROUND: Color.Material.green[5].fill(); break; case STATE_FOREST: Color.Material.green[9].fill(); break; case STATE_WATER: Color.Material.light_blue[5].fill(); break; default: fill(255, 0, 0); } rect(this.col * scl, this.row * scl, scl, scl); }; Cell.prototype.incrementState = function(bool) { if (bool) { // Cycle from 0 to 1 this.state = (++this.state > 1) ? 0 : this.state; } else { // Cycle from 2 to 4 this.state = (++this.state < 2 || this.state > 4) ? 2 : this.state; } //this.state = (++this.state > 4) ? 0 : this.state; //loop(); };
dylandevalia/dylan.devalia.com
old/pathfinding/cell.js
JavaScript
mit
996
๏ปฟ//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.34014 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace ELearningCrawler.Properties { using System; /// <summary> /// A strongly-typed resource class, for looking up localized strings, etc. /// </summary> // This class was auto-generated by the StronglyTypedResourceBuilder // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { private static global::System.Resources.ResourceManager resourceMan; private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { } /// <summary> /// Returns the cached ResourceManager instance used by this class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ELearningCrawler.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; } } /// <summary> /// Overrides the current thread's CurrentUICulture property for all /// resource lookups using this strongly typed resource class. /// </summary> [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } } }
MBulli/FHWS-ELearning-Crawler
ELearningCrawler/Properties/Resources.Designer.cs
C#
mit
2,797
'use strict'; /* Services */ // Demonstrate how to register services // In this case it is a simple value service. angular.module('baApp.services', []). value('version', '0.1');
alnutile/drag-and-drop-page
app/js/services.js
JavaScript
mit
183
var fs = require('fs'); var join = require('path').join; var iconv = require('iconv-lite'); var debug = require('debug')('ip'); var util = require('util'); var EventEmitter = require('events').EventEmitter; var thunkify = require('thunkify-wrap'); function IpUtil(ipFile, encoding, isLoad) { if (typeof encoding === 'function') { isLoad = encoding; encoding = null; } this.ipFile = joinDirectory(process.cwd(), ipFile); this.ipList = []; if (encoding && encoding.toLowerCase().indexOf('utf') > -1) { this.filter = function(buf) { return buf.toString(); }; } else { this.filter = function(buf) { return iconv.decode(new Buffer(buf), 'gbk'); }; } this.isLoad = isLoad || function(){ return true; }; this.init(); } util.inherits(IpUtil, EventEmitter); IpUtil.prototype.init = function() { var that = this; var isLoad = this.isLoad; debug('begin parse ipfile %s', this.ipFile); if (!fs.existsSync(this.ipFile)) { debug('not found ip file!'); that.emit('error', 'ipfile_not_found'); return; } var ipMap = this.ipMap = {}; var ipList = this.ipList; var getLine = readLine(this.ipFile, this.filter); var result = getLine.next(); var line; var lineNum = 0; var counter = 1; var _readLine = function () { if (result.done) { that.emit('loaded'); return; } // ้ฟๅ…ip่ฏปๅ–็‹ฌๅ cpu. if (counter % 100000 === 0) { counter = 1; setImmediate(_readLine); return; } counter++; lineNum++; line = result.value; if (!line || !line.trim()) { result = getLine.next(); _readLine(); return; } var tokens = line.split(',', 6); if (tokens.length !== 6) { debug('็ฌฌ%d่กŒๆ ผๅผไธๆญฃ็กฎ: %s', lineNum, line); result = getLine.next(); _readLine(); return; } var startIp = ip2Long(tokens[0]); var endIp = ip2Long(tokens[1]); if (!startIp || !endIp) { debug('็ฌฌ%d่กŒๆ ผๅผไธๆญฃ็กฎ: %s', lineNum, line); result = getLine.next(); _readLine(); return; } var country = getValue(tokens[2]); var province = getValue(tokens[3]); var city = getValue(tokens[4]); var address = getValue(tokens[5]); // ้’ˆๅฏนๅ›ฝๅฎถใ€็œไปฝใ€ๅŸŽๅธ‚่งฃๆž็š„็ปŸไธ€ๅˆค็ฉบไฟฎๆ”น // ้ฆ–ๅ…ˆๅฏน็‰นๆฎŠๅ€ผ็š„่งฃๆž if ('IANA' === country) { country = 'IANA'; province = 'IANA'; city = 'IANA'; } if ('ๅฑ€ๅŸŸ็ฝ‘' === country) { country = 'ๅฑ€ๅŸŸ็ฝ‘'; province = 'ๅฑ€ๅŸŸ็ฝ‘'; city = 'ๅฑ€ๅŸŸ็ฝ‘'; } if('ๅ›ฝๅค–' === country) { country = 'ๅ›ฝๅค–'; province = 'ๅ›ฝๅค–'; city = 'ๅ›ฝๅค–'; } if('ไธญๅ›ฝ' === country && ('ไธญๅ›ฝ' === province || 'ไธญๅ›ฝ' === city)) { country = 'ไธญๅ›ฝ'; province = 'ไธญๅ›ฝ'; city = 'ไธญๅ›ฝ'; } if (!isLoad(country, province, city)) { result = getLine.next(); setImmediate(_readLine); return; } ipMap[startIp] = { startIp: startIp, endIp: endIp, country: country, province: province, city: city, address: address }; ipList.push(startIp); result = getLine.next(); setImmediate(_readLine); }; _readLine(); var sortIp = function () { //debug(this.ipMap) debug('ๅฎŒๆˆIPๅบ“็š„่ฝฝๅ…ฅ. ๅ…ฑ่ฝฝๅ…ฅ %d ๆกIP็บชๅฝ•', ipList.length); ipList.sort(function(a, b) { return a - b; }); debug('ip ็ดขๅผ•ๆŽ’ๅบๅฎŒๆˆ.'); that.emit('done'); }; this.on('loaded', sortIp); }; function getValue(val) { if (!val) { return null; } val = val.trim(); if (val === 'null') { return null; } return val; } IpUtil.prototype.getIpInfo = function(ip) { if (!isIp(ip)) { return null; } if (typeof ip === 'string') { ip = ip2Long(ip); } var ipStart = this.locatStartIP(ip); debug('ๅผ€ๅง‹่Žทๅ– ip ไฟกๆฏ: %d', ipStart); var ipInfo = this.ipMap[ipStart]; debug('ๆŸฅๆ‰พIP, %s ๆˆๅŠŸ.', long2IP(ip)); if (ipInfo.endIp < ip) { debug('ๅœจIPๅบ“ไธญๆ‰พไธๅˆฐIP[%s]', long2IP(ip)); return null; } return ipInfo; }; IpUtil.prototype.refreshData = function() { }; /** * ๆŸฅๆ‰พipๅฏนๅบ”็š„ๅผ€ๅง‹IPๅœฐๅ€ใ€‚ๅฆ‚ๆžœIPๅบ“ไธญๆญฃๅฅฝๆœ‰ไปฅ่ฏฅipๅผ€ๅง‹็š„IPไฟกๆฏ๏ผŒ้‚ฃไนˆๅฐฑๆ˜ฏ่ฟ”ๅ›ž่ฟ™ไธชipใ€‚ * ๅฆ‚ๆžœๆฒกๆœ‰๏ผŒๅˆ™ๅบ”่ฏฅๆ˜ฏๆฏ”่ฟ™ไธชipๅฐ็š„ๆœ€ๅคง็š„start * @param ip * @return */ IpUtil.prototype.locatStartIP = function(ip) { debug('ๅผ€ๅง‹ๆŸฅๆ‰พIP: %d', ip); var centerIP = 0; var centerIndex = 0; // ๅฝ“ๅ‰ๆŒ‡้’ˆไฝ็ฝฎ var startIndex = 0; // ่ตทๅง‹ไฝ็ฝฎ var endIndex = this.ipList.length - 1; // ็ป“ๆŸไฝ็ฝฎ var count = 0; // ๅพช็Žฏๆฌกๆ•ฐ while (true) { debug('%d. start = %d, end = %d', count++, startIndex, endIndex); // ไธญ้—ดไฝ็ฝฎ centerIndex = Math.floor((startIndex + endIndex) / 2); centerIP = this.ipList[centerIndex]; if (centerIP < ip) { // ๅฆ‚ๆžœไธญ้—ดไฝ็ฝฎ็š„IPๅฐไบŽ่ฆๆŸฅ่ฏข็š„IP๏ผŒ้‚ฃไนˆไธ‹ไธ€ๆฌกๆŸฅๆ‰พๅŽๅŠๆฎต startIndex = centerIndex; } else if (centerIP > ip) { // ๅฆ‚ๆžœไธญ้—ดไฝ็ฝฎ็š„IPๅคงไบŽ่ฆๆŸฅ่ฏข็š„IP๏ผŒ้‚ฃไนˆไธ‹ไธ€ๆฌกๆŸฅๆ‰พๅ‰ๅŠๆฎต endIndex = centerIndex; } else { // ๅฆ‚ๆžœ็›ธ็ญ‰๏ผŒ้‚ฃไนˆๅทฒ็ปๆ‰พๅˆฐ่ฆๆŸฅ่ฏข็š„IP break; } if (startIndex + 1 === endIndex) { // ๅฆ‚ๆžœๅผ€ๅง‹ๆŒ‡้’ˆๅ’Œ็ป“ๆŸๆŒ‡้’ˆ็›ธๅทฎๅชๆœ‰1๏ผŒ้‚ฃไนˆ่ฏดๆ˜ŽIPๅบ“ไธญๆฒกๆœ‰ๆญฃๅฅฝไปฅ่ฏฅipๅผ€ๅง‹็š„IPไฟกๆฏ // ๅช่ƒฝ่ฟ”ๅ›žIPไฟกๆฏ็š„start ipๆฏ”่ฟ™ไธชipๅฐ็š„ๆœ€ๅคง็š„้‚ฃๆกIPไฟกๆฏ็š„start ip if (centerIP > ip) { centerIP = this.ipList[centerIndex - 1]; } break; } } debug('ๅฏนๅบ”็š„IPๅผ€ๅง‹ๅœฐๅ€ไธบ: %d', centerIP, centerIndex); return centerIP; }; /** * a,b,c ==> a/b/c * a,b,/tmp ==> /tmp * /a/b, c ==> /a/b/c */ function joinDirectory() { var dirs = [].slice.call(arguments, 1); var dir; for (var i = 0, len = dirs.length; i < len; i++) { dir = dirs[i]; if (/^\//.test(dir)) { // ๅ‘็Žฐๆ น็›ฎๅฝ•, ็›ดๆŽฅ่ฟ”ๅ›ž. return dir; } } return join.apply(null, [].slice.call(arguments)); } function ip2Long(ip) { if (!isIp(ip)) { return 0; } var segs = ip.split('.'); var iplong =(parseInt(segs[0]) << 24 | parseInt(segs[1]) << 16 | parseInt(segs[2]) << 8 | parseInt(segs[3])) >>> 0; return iplong; } var IP_REGEXP = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/; function isIp(str) { if (!str) { return false; } str = str.trim(); return IP_REGEXP.test(str); /** var tokens = str.split('.'); if (tokens.length !== 4) { return false; } for (var i = 0, len = tokens.length; i < len; i++) { if (parseInt(tokens[i]) > 255 || parseInt(tokens[i]) < 0) { return false; } } return true; **/ } function long2IP(ipLong) { var ip = [ipLong >> 24]; ip.push((ipLong & 16711680) >> 16); ip.push((ipLong & 65280) >> 8); ip.push(ipLong & 255); return ip.join('.'); } function *readLine(file, filter) { var buffer = fs.readFileSync(file); var i = 0, len = 0 || buffer.length; debug('load file succ', len); // ๆข่กŒ็ฌฆ. var nl = require('os').EOL.charCodeAt(0); var buf = []; while(i < len) { if (buffer[i] !== nl) { buf.push(buffer[i]); } else { yield filter(new Buffer(buf)); buf = []; } i++; } } module.exports = IpUtil; module.exports.isIP = isIp; module.exports.ip2Long = ip2Long; module.exports.long2Ip = long2IP; module.exports.getIpUtil = function *(ipFile, encoding, ipFilter) { var iputil = new IpUtil(ipFile, encoding, ipFilter); var end = thunkify.event(iputil, ['done', 'error']); yield end(); return iputil; };
leoner/iputil
index.js
JavaScript
mit
7,755
๏ปฟ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("Superheroes.Services.Tests")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Superheroes.Services.Tests")] [assembly: AssemblyCopyright("Copyright ยฉ 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("3f189b3e-c136-44ff-b1fb-03249d1473b6")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
TelerikAcademy-Cloning/Databases
Topics/21. Service-layer/demos/Superheroes/Superheroes.Services.Tests/Properties/AssemblyInfo.cs
C#
mit
1,464
<HTML><HEAD> <TITLE>Review for Vertical Limit (2000)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0190865">Vertical Limit (2000)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Dennis+Schwartz">Dennis Schwartz</A></H3><HR WIDTH="40%" SIZE="4"> <P>VERTICAL LIMIT (director: Martin Campbell; screenwriters: Robert King and Terry Hayes, based on a story by Mr. King; cinematographer: David Tattersall; editor: Thom Noble; cast: Chris O'Donnell (Peter Garrett), Bill Paxton (Elliot Vaughn), Robin Tunney (Annie Garrett), Scott Glenn (Montgomery Wick), Izabella Scorupco (Monique Aubertine), Temuera Morrison (Major Rasul), Nicholas Lea (Tom McLaren), Alexander Siddig (Kareem), Steve Le Marquand (Cyril Bench), Ben Mendelsohn (Malcolm Bench), Robert Taylor (Skip Taylor), Stuart Wilson (Royce Garrett), Roshan Seth (Colonel Amir Salem); Runtime: 126; Columbia Pictures; 2000)</P> <PRE>Reviewed by Dennis Schwartz</PRE> <P>A superficial but entertaining roller-coaster-ride of nonstop action featuring clichรฉ characters and contrived dangerous situations, mainly conceived to show off the special effects. The story is so slight that there is no danger of it interfering with the action scenes. It's a Hollywood blockbuster for those in need of escaping reality for two hours and should prove to be enjoyable for those who are willing to go with the flow of the action and suspend their critical judgment. The reward will be a visual treat of well-executed stunts and a film that had the glossy look of a National Geographic photography shoot. The director Martin Campbell ("Goldeneye") relishes in filming excesses and creating one life-and-death scene after the other. Movie viewers could go snowblind just watching a series of mountain catastrophes befall the adventurous climbers, as the film throws out almost any possible danger there is to be found on a mountain and the mountain climbers try to overcome these impossible obstacles and, there is, needlessly to say, a race-against-time sequence, with a last second rescue in the works.</P> <P>The opening eight-minute scene, derivative as it is, is brilliantly done and captures whatever underlying tension the film was to later on build up to. The Garrett family is out for a pleasure mountain climbing trip to the ochre cliffs of Monument Valley, as Peter (Chris O'Donnell) and his sister Ann (Robin Tunney) are climbing with dad Royce (Stuart Wilson) and a couple of unnamed companions. One of those companions first has his backpack fall and thereby loosens the tow rope entangling the others, trapping the family with the other two companions dangling off a peak. The companions can't hold on and tragically fall. Royce warns that the line won't hold all three for long and pleads that his son cut him loose to have any hope of saving his children. Ignoring Annie's tearful protests, Peter cuts the rope and the father falls to his death.</P> <P>It's three years later and Peter is a National Geographic photographer shooting in the Himalayas. He ends up at a Pakistani military base, where they are in the middle of a war with India. Nearby is a K2 base camp, where Annie is a crew member on billionaire sportsman Elliot Vaughn (Bill Paxton) team that is set to climb the dangerous summit of K2--the world's second-highest peak. The brother and sister reunite after becoming more distant with each other. They never discussed their father's death since the tragedy, but have gone their separate ways. Peter has abandoned mountain climbing, while Annie has become known as the fastest climber in the world and is a Sports Illustrated cover girl. She is still upset with what Peter did and could hardly face him, much less talk to him about it.</P> <P>At the richly put together base camp of Elliot's expedition, the arrogant businessman has surrounded himself with the best team money can buy, including the foremost climber in the world, Tom McLaren (Nicholas Lea). He is to lead Elliot to the summit of K2 in time to coincide with one of the planes flying overhead from Elliot's new airline he is launching. The commercial motive for the climb and the callous way he will soon treat his fellow climbers, makes him the film's designated one-dimensional villain, and adds some more spice to a film that is overspiced already with clichรฉs.</P> <P>Warned by the base camp of severe weather conditions, Elliot refuses the leader's advice to turn back and manipulates the leader to go against his better judgment and continue on, where they reach the vertical limit at 26,000 feet--significant because the oxygen is very thin. When a wind storm hits--and, Elliot, Annie and Tom end up inside a deep cavern that becomes sealed by an avalanche, the three realize that they have only 36 hours to survive.</P> <P>Peter impatiently arranges for the rescue attempt, quickly assembling a diverse team of volunteers who have little chance of succeeding, but sign on for the glory, or their concern for the victims, or for the money offered. The Pakistani Army helps out by supplying the six rescuers with cannisters of nitroglycerin, an homage to "Wages of Fear." The rescuers will try to blast the victims out of the cavern, but must be very careful when climbing because with just one spill of the explosive liquid there is the certainty of a tremendous explosion. There will be many tremendous explosions that rock the Himalayas, and -- if mountains repeatedly exploding and climbers falling down mountain peaks in colorful ways is your idea of enjoyment, then this is the film for you.</P> <P>The rescue crew includes one of the world's beautiful supermodels, who in this film happens to be a medic and an expert climber Monique (Izabella Scorupco); a Muslim practitioner, the Pakistani porter Kareem (Alexander Siddig); the comically insane Aussie brothers Cyril and Malcolm Bench (Steve Le Marquand, Ben Mendelsohn); and, the leader of the crew, a hard-assed master mountain climber who became a hermit and for the last few years stopped everything to search only for his wife who never returned from Elliot's last tragic expedition to K2, Montgomery Wick (Scott Glenn). The craggy-faced Wick is bent on revenge against Elliot, blaming him for his tour guide wife's death. He's also a friend of Peter's father, and what goes for wisdom in this picture, comes from his rugged lips.</P> <P>The action keeps coming, the clichรฉs get resolved somehow, and even though the action sequences couldn't possibly be real, the great photography and beautiful vistas made the locations seem out of this world. The filmmaker used the Southern Alps in New Zealand as his setting, and you could have fooled me, because it sure looked like the Himalayas. It also looked like it could be a long commercial for beautiful yuppie adventurers who are shooting an ad for Club Med, or a National Geographic TV special, or even one of those action thrillers that doesn't believe it needs good dialogue to tell its heroic fantasy story.</P> <PRE>REVIEWED ON 1/3/2001 GRADE: C+</PRE> <P>Dennis Schwartz: "Ozus' World Movie Reviews"</P> <PRE><A HREF="http://www.sover.net/~ozus">http://www.sover.net/~ozus</A></PRE> <PRE><A HREF="mailto:[email protected]">[email protected]</A></PRE> <P>ยฉ ALL RIGHTS RESERVED DENNIS SCHWARTZ</P> <HR><P CLASS=flush><SMALL>The review above was posted to the <A HREF="news:rec.arts.movies.reviews">rec.arts.movies.reviews</A> newsgroup (<A HREF="news:de.rec.film.kritiken">de.rec.film.kritiken</A> for German reviews).<BR> The Internet Movie Database accepts no responsibility for the contents of the review and has no editorial control. Unless stated otherwise, the copyright belongs to the author.<BR> Please direct comments/criticisms of the review to relevant newsgroups.<BR> Broken URLs inthe reviews are the responsibility of the author.<BR> The formatting of the review is likely to differ from the original due to ASCII to HTML conversion. </SMALL></P> <P ALIGN=CENTER>Related links: <A HREF="/Reviews/">index of all rec.arts.movies.reviews reviews</A></P> </P></BODY></HTML>
xianjunzhengbackup/code
data science/machine_learning_for_the_web/chapter_4/movie/27363.html
HTML
mit
8,298
๏ปฟusing System; using CommandLine; using System.IO; using Nancy.Hosting.Self; using SeudoBuild.Core; using SeudoBuild.Core.FileSystems; using SeudoBuild.Pipeline; using SeudoBuild.Net; namespace SeudoBuild.Agent { class Program { private const string Header = @" _ _ _ _ _ ___ ___ _ _ _| |___| |_ _ _|_| |_| | |_ -| -_| | | . | . | . | | | | | . | |___|___|___|___|___|___|___|_|_|___| "; private static ILogger _logger; [Verb("build", HelpText = "Create a local build.")] private class BuildSubOptions { [Option('t', "build-target", HelpText = "Name of the build target as specified in the project configuration file. If no build target is specified, the first target will be used.")] public string BuildTarget { get; set; } [Option('o', "output-folder", HelpText = "Path to the build output folder.")] public string OutputPath { get; set; } [Value(0, MetaName = "project", HelpText = "Path to a project configuration file.", Required = true)] public string ProjectConfigPath { get; set; } } [Verb("scan", HelpText = "List build agents found on the local network.")] private class ScanSubOptions { } [Verb("submit", HelpText = "Submit a build request for a remote build agent to fulfill.")] private class SubmitSubOptions { [Option('p', "project-config", HelpText = "Path to a project configuration file.", Required = true)] public string ProjectConfigPath { get; set; } [Option('t', "build-target", HelpText = "Name of the target to build as specified in the project configuration file.")] public string BuildTarget { get; set; } [Option('a', "agent-name", HelpText = "The unique name of a specific build agent. If not set, the job will be broadcast to all available agents.")] public string AgentName { get; set; } } [Verb("queue", HelpText = "Queue build requests received over the network.")] private class QueueSubOptions { [Option('n', "agent-name", HelpText = "A unique name for the build agent. If not set, a name will be generated.")] public string AgentName { get; set; } [Option('p', "port", HelpText = "Port on which to listen for build queue messages.")] public int? Port { get; set; } } [Verb("deploy", HelpText = "Listen for deployment messages.")] private class DeploySubOptions { } [Verb("name", Hidden = true)] private class NameSubOptions { [Option('r', "random")] public bool Random { get; set; } } public static void Main(string[] args) { _logger = new Logger(); Console.Title = "SeudoBuild"; Parser.Default.ParseArguments<BuildSubOptions, ScanSubOptions, SubmitSubOptions, QueueSubOptions, DeploySubOptions, NameSubOptions>(args) .MapResult( (BuildSubOptions opts) => Build(opts), (ScanSubOptions opts) => Scan(opts), (SubmitSubOptions opts) => Submit(opts), (QueueSubOptions opts) => Queue(opts), (DeploySubOptions opts) => Deploy(opts), (NameSubOptions opts) => ShowAgentName(opts), errs => 1 ); } /// <summary> /// Build a single target, then exit. /// </summary> private static int Build(BuildSubOptions opts) { Console.Title = "SeudoBuild โ€ข Build"; Console.WriteLine(Header); // Load pipeline modules var factory = new ModuleLoaderFactory(); IModuleLoader moduleLoader = factory.Create(_logger); // Load project config ProjectConfig projectConfig = null; try { var fs = new WindowsFileSystem(); var serializer = new Serializer(fs); var converters = moduleLoader.Registry.GetJsonConverters(); projectConfig = serializer.DeserializeFromFile<ProjectConfig>(opts.ProjectConfigPath, converters); } catch (Exception e) { Console.WriteLine("Can't parse project config:"); Console.WriteLine(e.Message); return 1; } // Execute build var builder = new Builder(moduleLoader, _logger); var parentDirectory = opts.OutputPath; if (string.IsNullOrEmpty(parentDirectory)) { // Config file's directory parentDirectory = new FileInfo(opts.ProjectConfigPath).Directory?.FullName; } var pipeline = new PipelineRunner(new PipelineConfig { BaseDirectory = parentDirectory }, _logger); bool success = builder.Build(pipeline, projectConfig, opts.BuildTarget); return success ? 0 : 1; } /// <summary> /// Discover build agents on the network. /// </summary> private static int Scan(ScanSubOptions opts) { Console.Title = "SeudoBuild โ€ข Scan"; Console.WriteLine(Header); Console.WriteLine("Looking for build agents. Press any key to exit."); // FIXME fill in port from command line argument var locator = new AgentLocator(5511); try { locator.Start(); } catch { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Could not start build agent discovery client"); Console.ResetColor(); return 1; } // FIXME don't hard-code port locator.AgentFound += (agent) => { _logger.Write($"{agent.AgentName} ({agent.Address})", LogType.Bullet); }; locator.AgentLost += (agent) => { _logger.Write($"Lost agent: {agent.AgentName} ({agent.Address})", LogType.Bullet); }; Console.WriteLine(); Console.ReadKey(); return 0; } /// <summary> /// Submit a build job to another agent. /// </summary> private static int Submit(SubmitSubOptions opts) { Console.Title = "SeudoBuild โ€ข Submit"; Console.WriteLine(Header); string configJson = null; try { configJson = File.ReadAllText(opts.ProjectConfigPath); } catch { _logger.Write("Project could not be read from " + opts.ProjectConfigPath, LogType.Failure); return 1; } var buildSubmitter = new BuildSubmitter(_logger); try { // Find agent on the network, with timeout var discoveryClient = new UdpDiscoveryClient(); buildSubmitter.Submit(discoveryClient, configJson, opts.BuildTarget, opts.AgentName); } catch (Exception e) { _logger.Write("Could not submit job: " + e.Message, LogType.Failure); return 1; } return 0; } /// <summary> /// Receive build jobs from other agents or clients, queue them, and execute them. /// Continue listening until user exits. /// </summary> private static int Queue(QueueSubOptions opts) { Console.Title = "SeudoBuild โ€ข Queue"; Console.WriteLine(Header); //string agentName = string.IsNullOrEmpty(opts.AgentName) ? AgentName.GetUniqueAgentName() : opts.AgentName; // FIXME pull port from command line argument, and incorporate into ServerBeacon object int port = 5511; if (opts.Port.HasValue) { port = opts.Port.Value; } // Starting the Nancy server will automatically execute the Bootstrapper class var uri = new Uri($"http://localhost:{port}"); using (var host = new NancyHost(uri)) { _logger.Write(""); try { host.Start(); _logger.Write("Build Queue", LogType.Header); _logger.Write(""); _logger.Write("Started build agent server: " + uri, LogType.Bullet); try { // FIXME configure the port from a command line argument var serverInfo = new UdpDiscoveryBeacon { Port = 5511 }; var discovery = new UdpDiscoveryServer(serverInfo); discovery.Start(); _logger.Write("Build agent discovery beacon started", LogType.Bullet); } catch { _logger.Write("Could not initialize build agent discovery beacon", LogType.Alert); } } catch (Exception e) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Could not start build server: " + e.Message); Console.ResetColor(); return 1; } Console.WriteLine(""); Console.WriteLine("Press any key to exit."); Console.ReadKey(); } return 0; } /// <summary> /// Deploy a build product on the local machine. /// </summary> private static int Deploy(DeploySubOptions opts) { return 0; } /// <summary> /// Display the unique name for this agent. /// </summary> private static int ShowAgentName(NameSubOptions opts) { string name; name = opts.Random ? AgentName.GetRandomName() : AgentName.GetUniqueAgentName(); Console.WriteLine(); Console.WriteLine(name); Console.WriteLine(); return 0; } } }
mstevenson/SeudoBuild
SeudoBuild.Agent/Program.cs
C#
mit
10,540
<section ng-controller="DashboardController" ng-init="createdCourseList()"> <div class="row mt"> <div class="col-lg-12"> <div class="form-panel"> <div class="chat-room-head"> <h3> Professor Dashboard</h3> </div> <!-- <div class="page-header centered"> <h1> Professor Dashboard</h1> </div> --> <!-- <div class="room-desk"> <p class="pull-left lead">My Course (active course)</p> <a class="pull-right btn btn-lg btn-theme02" href="../courses/create">+ create course</a> </div> --> <div class="row"> <div class="col-lg-6" > <p class="lead text-center"> My Course (active course) </p> <div class="row list-group"> <div class="col-lg-12 col-md-12 col-sm-12 mb" ng-repeat="course in courses | filter:{active: true}"> <div class="pn" > <a ng-controller="CoursesController" ng-init="findNumStudentEnrolled(); getNumQuiz();" ui-sref="courses.view({courseId: course._id})" class="list-group-item"> {{course.semester}} {{course.year}} <h4> {{course.number}} {{course.name}} </h4> <button id = "edit" class="btn btn-default btn-sm pull-right" type="submit" ng-controller="CoursesListController" data-ng-click="$event.preventDefault(); $event.stopPropagation(); modalUpdate('lg', course)" > Edit </button> Number of students: {{course.enrolledStudents.length}} </br> Number of quizzes: {{numQuizzesInCourse[course._id]}} </a> </div> <!-- <div> Popover (working) -> <div ng-model="name" mydirective=""></div> </div> <div> Popover uib (notworking- uib-popover-html) -> <div ng-model="name" mydirectiveuib=""></div> </div> --> </div> <!-- <button uib-popover="I appeared on mouse enter!" popover-trigger="mouseenter" popover-placement="right" type="button" class="btn btn-default">Mouseenter</button> --> </div> </div> <div class="col-lg-6 text-center" > <a class="btn btn-lg btn-theme02 " id="submit" href="../courses/create">+ create course</a> </div> </div> <div class="row" style="margin-bottom: 30px;"> <div class="col-md-12"> <button type="button" class="btn btn-default" ng-click="isCollapsed = !isCollapsed">List all deactive courses</button> <hr> <div collapse="isCollapsed"> <!-- uib-collapse only works with bootstrap version 0.14.X --> <div class="list-group"> <div class="col-lg-12 col-md-12 col-sm-12 mb" ng-repeat="course in courses | filter:{active: false}"> <div class="pn" > <a id="course" ng-controller="CoursesController" ng-init="findNumStudentEnrolled(course._id); getNumQuiz(course._id);" ui-sref="courses.view({courseId: course._id})" class="list-group-item"> {{course.semester}} {{course.year}} <h4> {{course.number}} {{course.name}} </h4> <button id = "edit" class="btn btn-default btn-sm pull-right" type="submit" ng-controller="CoursesListController" data-ng-click="$event.preventDefault(); $event.stopPropagation(); modalUpdate('lg', course)" > Edit </button> Number of students: {{numStudentInCourse[course._id]}} </br> Number of quizzes: {{numQuizzesInCourse[course._id]}} </a> </div> </div> </div> </div> </div> </div> </div> </div><!-- col-lg-12--> </div><!-- /row --> </section>
GetItXL/iClass
modules/users/client/views/dashboard/professor-dashboard.client.view.html
HTML
mit
4,811
# Elevator of the Americas Welcome! This is a small project that describes an elevator in code - including dispatching and interacting with the elevator. Desired requirements: * The elevator bank must have at least 3 elevators * The elevator bank must have a way to have elevators dispatched to certain floors * The elevators must follow rules as to which one is dispatched to which floor. * When we instantiate an elevator bank, let's make sure the elevators are on random floors so we have a realistic experience. # Example ```ruby bank = ElevatorOfAmericas::ElevatorBank.new bank.dispatch_to(3, :down) # => Figures out which elevator can be dispatched to the elevator and sends it there for a certain direction bank.elevators # => Returns all elevators and where they are and perhaps state (idle, moving_up, moving_down) ``` # What to do The spec files are mostly empty or missing, we'd like to fill them out to ensure that we have a good mix of tests of different types: unit, integration, acceptance, etc. The goal is not only to write some tests, but also to have a good conversation about what good testing looks like: what's the appropriate amount and why? Although there are no time limits, we don't want to take up too much of your time, a few hours should be sufficient. Focus on quality! # Authors Robert Ross, Stafford Brooke, Phillip Baker
phillbaker/eoa-qa
README.md
Markdown
mit
1,372
import { task } from 'gulp'; import { join } from 'path'; import { config } from '../utils/config'; import { sequenceTask } from '../utils/sequence-task'; import { readFileSync, writeFileSync } from 'fs'; const serve = require('browser-sync'); const webpack = require('webpack'); const webpackDevMiddelware = require('webpack-dev-middleware'); const webpackHotMiddelware = require('webpack-hot-middleware'); const proxyMiddleware = require('http-proxy-middleware'); const helper = require('../../../config/helper'); const interceptor = require('../../../config/interceptor'); const devConfigPath = join(config.webpackConfigPath, 'webpack.dev'); const prodConfigPath = join(config.webpackConfigPath, 'webpack.prod'); task('serve', sequenceTask('clean', 'docs', ':serve')); task(':serve', () => { const devConfig = require(devConfigPath); const appEntry = devConfig.entry.app; devConfig.entry.app = [ 'webpack-hot-middleware/client?noInfo=true&reload=true', ...appEntry ]; const proxyConfig = helper.getProxyConfig(); let target = proxyConfig.host; if (proxyConfig.port) { target = target += ':' + proxyConfig.port + '/'; } if (proxyConfig.path) { target = target + proxyConfig.path; } const compiler = webpack(devConfig); serve({ port: process.env.PORT || 9009, open: true, server: { baseDir: config.appPath }, middleware: [ helper.isProxy() ? proxyMiddleware(proxyConfig.prefix, { target }) : interceptor, webpackDevMiddelware(compiler, { stats: { chunks: false, modules: false }, publicPath: devConfig.output.publicPath }), webpackHotMiddelware(compiler) ] }); // ็›‘ๅฌๆจกๆ‹Ÿๆ•ฐๆฎๆ”นๅ˜๏ผŒ่‡ชๅŠจๅˆทๆ–ฐ // serve.watch(root + '/mock/**/*.js').on('change', serve.reload); // serve.watch(root + '/index.html').on('change', serve.reload); }); task('build:demo', sequenceTask('docs', 'build:demo:webpack', 'build:replace:basehref')); task('build:demo:webpack', (cb?: Function) => { let buildConfig = require(prodConfigPath); if (helper.isDev()) { buildConfig = require(devConfigPath); } webpack(buildConfig, (err: any, stats: any) => { if (err) { console.log('webpack', err); } console.log('[webpack]', stats.toString({ chunks: false, errorDetails: true })); if (cb) { cb(); } }); }); task('build:replace:basehref', () => { const docsIndex = join(config.appPath, '../docs/index.html'); let indexContent = readFileSync(docsIndex, 'utf-8'); indexContent = indexContent.replace('base href="/"', 'base href="/measure/"'); writeFileSync(docsIndex, indexContent, 'utf-8'); });
zxhfighter/measure
tools/gulp/tasks/serve.ts
TypeScript
mit
2,930
.nav, .pagination, .carousel, .panel-title a { cursor: pointer; } .done-true { text-decoration: line-through; color: #ddd; } .form-control[disabled], .form-control[readonly], .fieldset[disabled], .form-control { cursor: pointer; background-color: white; }
RichardHill/swingTrader
app/assets/css/main.css
CSS
mit
272
// TODO: write a test that ensures that Quagga.decodeSingle returns a Promise when it should // TODO: write a test that tests the multiple: true decoding option, allowing for multiple barcodes in // a single image to be returned. // TODO: write a test that allows for locate: false and locator configs to be tested. import Quagga from '../../src/quagga'; import { QuaggaJSConfigObject } from '../../type-definitions/quagga'; import { expect } from 'chai'; import ExternalCode128Reader from '../../src/reader/code_128_reader'; // add it.allowFail see https://github.com/kellyselden/mocha-helpers/pull/4 // also see https://github.com/mochajs/mocha/issues/1480#issuecomment-487074628 if (typeof it.allowFail === 'undefined') { it.allowFail = (title: string, callback: Function) => { it(title, function() { return Promise.resolve().then(() => { return callback.apply(this, arguments); }).catch((err) => { console.trace('* error during test', err); this.skip(); }); }); }; } function runDecoderTest(name: string, config: QuaggaJSConfigObject, testSet: Array<{ name: string, result: string, format: string }>) { describe(`Decoder ${name}`, () => { testSet.forEach((sample) => { it.allowFail(`decodes ${sample.name}`, async function() { this.timeout(20000); // need to set a long timeout because laptops sometimes lag like hell in tests when they go low power const thisConfig = { ...config, src: `${typeof window !== 'undefined' ? '/' : ''}test/fixtures/${name}/${sample.name}`, }; const result = await Quagga.decodeSingle(thisConfig); // // console.warn(`* Expect result ${JSON.stringify(result)} to be an object`); expect(result).to.be.an('Object'); expect(result.codeResult).to.be.an('Object'); expect(result.codeResult.code).to.equal(sample.result); expect(result.codeResult.format).to.equal(sample.format); expect(Quagga.canvas).to.be.an('Object'); expect(Quagga.canvas.dom).to.be.an('Object'); expect(Quagga.canvas.ctx).to.be.an('Object'); }); }); }); } function generateConfig(configOverride: QuaggaJSConfigObject = {}) { const config: QuaggaJSConfigObject = { inputStream: { size: 640, ...configOverride.inputStream, }, locator: { patchSize: 'medium', halfSample: true, ...configOverride.locator, }, numOfWorkers: 0, decoder: { readers: ['ean_reader'], ...configOverride.decoder, }, locate: configOverride.locate, src: null, }; return config; } describe('End-To-End Decoder Tests with Quagga.decodeSingle', () => { runDecoderTest('ean', generateConfig(), [ { 'name': 'image-001.jpg', 'result': '3574660239843', format: 'ean_13' }, { 'name': 'image-002.jpg', 'result': '8032754490297', format: 'ean_13' }, { 'name': 'image-004.jpg', 'result': '9002233139084', format: 'ean_13' }, { 'name': 'image-003.jpg', 'result': '4006209700068', format: 'ean_13' }, { 'name': 'image-005.jpg', 'result': '8004030044005', format: 'ean_13' }, { 'name': 'image-006.jpg', 'result': '4003626011159', format: 'ean_13' }, { 'name': 'image-007.jpg', 'result': '2111220009686', format: 'ean_13' }, { 'name': 'image-008.jpg', 'result': '9000275609022', format: 'ean_13' }, { 'name': 'image-009.jpg', 'result': '9004593978587', format: 'ean_13' }, { 'name': 'image-010.jpg', 'result': '9002244845578', format: 'ean_13' }, ]); // TODO: note that the FORMAT reported from a supplement equals the parent. What exactly is the // difference between a supplement and a separate reader? is it just semantic? runDecoderTest('ean_extended', generateConfig({ inputStream: { size: 800, singleChannel: false, }, decoder: { readers: [{ format: 'ean_reader', config: { supplements: [ 'ean_5_reader', 'ean_2_reader', ], }, }], }, }), [ { 'name': 'image-001.jpg', 'result': '900437801102701', format: 'ean_13' }, { 'name': 'image-002.jpg', 'result': '419871600890101', format: 'ean_13' }, { 'name': 'image-003.jpg', 'result': '419871600890101', format: 'ean_13' }, { 'name': 'image-004.jpg', 'result': '978054466825652495', format: 'ean_13' }, { 'name': 'image-005.jpg', 'result': '419664190890712', format: 'ean_13' }, { 'name': 'image-006.jpg', 'result': '412056690699101', format: 'ean_13' }, { 'name': 'image-007.jpg', 'result': '419204531290601', format: 'ean_13' }, { 'name': 'image-008.jpg', 'result': '419871600890101', format: 'ean_13' }, { 'name': 'image-009.jpg', 'result': '978054466825652495', format: 'ean_13' }, { 'name': 'image-010.jpg', 'result': '900437801102701', format: 'ean_13' }, ]); runDecoderTest('code_128', { inputStream: { size: 800, singleChannel: false, } }, [ { 'name': 'image-001.jpg', 'result': '0001285112001000040801', format: 'code_128' }, { 'name': 'image-002.jpg', 'result': 'FANAVF14617104', format: 'code_128' }, { 'name': 'image-003.jpg', 'result': '673023', format: 'code_128' }, { 'name': 'image-004.jpg', 'result': '010210150301625334', format: 'code_128' }, { 'name': 'image-005.jpg', 'result': '419055603900009001012999', format: 'code_128' }, { 'name': 'image-006.jpg', 'result': '419055603900009001012999', format: 'code_128' }, { 'name': 'image-007.jpg', 'result': '420957479499907123456123456781', format: 'code_128' }, { 'name': 'image-008.jpg', 'result': '1020185021797280784055', format: 'code_128' }, { 'name': 'image-009.jpg', 'result': '0001285112001000040801', format: 'code_128' }, { 'name': 'image-010.jpg', 'result': '673023', format: 'code_128' }, // TODO: need to implement having different inputStream parameters to be able to // read this one -- it works only with inputStream size set to 1600 presently, but // other samples break at that high a size. // { name: 'image-011.png', result: '33c64780-a9c0-e92a-820c-fae7011c11e2' }, ]); runDecoderTest( 'code_39', generateConfig({ decoder: { readers: ['code_39_reader'], } }), [ { 'name': 'image-001.jpg', 'result': 'B3% $DAD$', format: 'code_39' }, { 'name': 'image-003.jpg', 'result': 'CODE39', format: 'code_39' }, { 'name': 'image-004.jpg', 'result': 'QUAGGAJS', format: 'code_39' }, { 'name': 'image-005.jpg', 'result': 'CODE39', format: 'code_39' }, { 'name': 'image-006.jpg', 'result': '2/4-8/16-32', format: 'code_39' }, { 'name': 'image-007.jpg', 'result': '2/4-8/16-32', format: 'code_39' }, { 'name': 'image-008.jpg', 'result': 'CODE39', format: 'code_39' }, { 'name': 'image-009.jpg', 'result': '2/4-8/16-32', format: 'code_39' }, // TODO: image 10 in this set appears to be dependent upon #191 { 'name': 'image-010.jpg', 'result': 'CODE39', format: 'code_39' }, { 'name': 'image-011.jpg', 'result': '4', format: 'code_39' }, ]); runDecoderTest( 'code_39_vin', generateConfig({ inputStream: { size: 1280, sequence: false, }, locator: { halfSample: false, }, decoder: { readers: ['code_39_vin_reader'], }, }), [ { name: 'image-001.jpg', result: '2HGFG1B86BH501831', format: 'code_39_vin' }, { name: 'image-002.jpg', result: 'JTDKB20U887718156', format: 'code_39_vin' }, // image-003 only works on the second run of a decode of it and only in browser?! wtf? { name: 'image-003.jpg', result: 'JM1BK32G071773697', format: 'code_39_vin' }, { name: 'image-004.jpg', result: 'WDBTK75G94T028954', format: 'code_39_vin' }, { name: 'image-005.jpg', result: '3VW2K7AJ9EM381173', format: 'code_39_vin' }, { name: 'image-006.jpg', result: 'JM1BL1H4XA1335663', format: 'code_39_vin' }, { name: 'image-007.jpg', result: 'JHMGE8H42AS021233', format: 'code_39_vin' }, { name: 'image-008.jpg', result: 'WMEEJ3BA4DK652562', format: 'code_39_vin' }, { name: 'image-009.jpg', result: 'WMEEJ3BA4DK652562', format: 'code_39_vin' }, //yes, 8 and 9 are same barcodes, different images slightly { name: 'image-010.jpg', result: 'WMEEJ3BA4DK652562', format: 'code_39_vin' }, // 10 also { name: 'image-011.jpg', result: '5FNRL38488B411196', format: 'code_39_vin' }, ] ); runDecoderTest( 'code_32', generateConfig({ inputStream: { size: 1280, }, locator: { patchSize: 'large', halfSample: true, }, numOfWorkers: 4, decoder: { readers: ['code_32_reader'] } }), [ { name: 'image-1.jpg', result: 'A123456788', format: 'code_32_reader' }, { name: 'image-2.jpg', result: 'A931028462', format: 'code_32_reader' }, { name: 'image-3.jpg', result: 'A931028462', format: 'code_32_reader' }, { name: 'image-4.jpg', result: 'A935776043', format: 'code_32_reader' }, { name: 'image-5.jpg', result: 'A935776043', format: 'code_32_reader' }, { name: 'image-6.jpg', result: 'A012745182', format: 'code_32_reader' }, { name: 'image-7.jpg', result: 'A029651039', format: 'code_32_reader' }, { name: 'image-8.jpg', result: 'A029651039', format: 'code_32_reader' }, { name: 'image-9.jpg', result: 'A015896018', format: 'code_32_reader' }, { name: 'image-10.jpg', result: 'A015896018', format: 'code_32_reader' }, ] ); runDecoderTest( 'ean_8', generateConfig({ decoder: { readers: ['ean_8_reader'] } }), [ { 'name': 'image-001.jpg', 'result': '42191605', format: 'ean_8' }, { 'name': 'image-002.jpg', 'result': '42191605', format: 'ean_8' }, { 'name': 'image-003.jpg', 'result': '90311208', format: 'ean_8' }, // TODO: image-004 fails in browser, this is new to running in cypress vs PhantomJS. It does not fail in node. Likely similar problem to #190 { 'name': 'image-004.jpg', 'result': '24057257', format: 'ean_8' }, // {"name": "image-005.jpg", "result": "90162602"}, { 'name': 'image-006.jpg', 'result': '24036153', format: 'ean_8' }, // {"name": "image-007.jpg", "result": "42176817"}, { 'name': 'image-008.jpg', 'result': '42191605', format: 'ean_8' }, { 'name': 'image-009.jpg', 'result': '42242215', format: 'ean_8' }, { 'name': 'image-010.jpg', 'result': '42184799', format: 'ean_8' }, ] ); runDecoderTest( 'upc', generateConfig({ decoder: { readers: ['upc_reader'] } }), [ { 'name': 'image-001.jpg', 'result': '882428015268', format: 'upc_a' }, { 'name': 'image-002.jpg', 'result': '882428015268', format: 'upc_a' }, { 'name': 'image-003.jpg', 'result': '882428015084', format: 'upc_a' }, { 'name': 'image-004.jpg', 'result': '882428015343', format: 'upc_a' }, { 'name': 'image-005.jpg', 'result': '882428015343', format: 'upc_a' }, { 'name': 'image-006.jpg', 'result': '882428015046', format: 'upc_a' }, { 'name': 'image-007.jpg', 'result': '882428015084', format: 'upc_a' }, { 'name': 'image-008.jpg', 'result': '882428015046', format: 'upc_a' }, { 'name': 'image-009.jpg', 'result': '039047013551', format: 'upc_a' }, { 'name': 'image-010.jpg', 'result': '039047013551', format: 'upc_a' }, ] ); runDecoderTest( 'upc_e', generateConfig({ decoder: { readers: ['upc_e_reader'] } }), [ { 'name': 'image-001.jpg', 'result': '04965802', format: 'upc_e' }, { 'name': 'image-002.jpg', 'result': '04965802', format: 'upc_e' }, { 'name': 'image-003.jpg', 'result': '03897425', format: 'upc_e' }, { 'name': 'image-004.jpg', 'result': '05096893', format: 'upc_e' }, { 'name': 'image-005.jpg', 'result': '05096893', format: 'upc_e' }, { 'name': 'image-006.jpg', 'result': '05096893', format: 'upc_e' }, { 'name': 'image-007.jpg', 'result': '03897425', format: 'upc_e' }, { 'name': 'image-008.jpg', 'result': '01264904', format: 'upc_e' }, { 'name': 'image-009.jpg', 'result': '01264904', format: 'upc_e' }, { 'name': 'image-010.jpg', 'result': '01264904', format: 'upc_e' }, ] ); runDecoderTest( 'codabar', generateConfig({ decoder: { readers: ['codabar_reader'] } }), [ { 'name': 'image-001.jpg', 'result': 'A10/53+17-70D', format: 'codabar' }, { 'name': 'image-002.jpg', 'result': 'B546745735B', format: 'codabar' }, { 'name': 'image-003.jpg', 'result': 'C$399.95A', format: 'codabar' }, { 'name': 'image-004.jpg', 'result': 'B546745735B', format: 'codabar' }, { 'name': 'image-005.jpg', 'result': 'C$399.95A', format: 'codabar' }, { 'name': 'image-006.jpg', 'result': 'B546745735B', format: 'codabar' }, { 'name': 'image-007.jpg', 'result': 'C$399.95A', format: 'codabar' }, { 'name': 'image-008.jpg', 'result': 'A16:9/4:3/3:2D', format: 'codabar' }, { 'name': 'image-009.jpg', 'result': 'C$399.95A', format: 'codabar' }, { 'name': 'image-010.jpg', 'result': 'C$399.95A', format: 'codabar' }, ] ); runDecoderTest( 'i2of5', generateConfig({ inputStream: { size: 800, singleChannel: false }, locator: { patchSize: 'small', halfSample: false, }, decoder: { readers: ['i2of5_reader'], }, }), [ { 'name': 'image-001.jpg', 'result': '2167361334', format: 'i2of5' }, { 'name': 'image-002.jpg', 'result': '2167361334', format: 'i2of5' }, { 'name': 'image-003.jpg', 'result': '2167361334', format: 'i2of5' }, { 'name': 'image-004.jpg', 'result': '2167361334', format: 'i2of5' }, { 'name': 'image-005.jpg', 'result': '2167361334', format: 'i2of5' }, ] ); runDecoderTest( '2of5', generateConfig({ inputStream: { size: 800, singleChannel: false }, decoder: { readers: ['2of5_reader'], }, }), [ { 'name': 'image-001.jpg', 'result': '9577149002', format: '2of5' }, { 'name': 'image-002.jpg', 'result': '9577149002', format: '2of5' }, { 'name': 'image-003.jpg', 'result': '5776158811', format: '2of5' }, { 'name': 'image-004.jpg', 'result': '0463381455', format: '2of5' }, { 'name': 'image-005.jpg', 'result': '3261594101', format: '2of5' }, { 'name': 'image-006.jpg', 'result': '3261594101', format: '2of5' }, { 'name': 'image-007.jpg', 'result': '3261594101', format: '2of5' }, { 'name': 'image-008.jpg', 'result': '6730705801', format: '2of5' }, { 'name': 'image-009.jpg', 'result': '5776158811', format: '2of5' }, { 'name': 'image-010.jpg', 'result': '5776158811', format: '2of5' }, ] ); runDecoderTest( 'code_93', generateConfig({ inputStream: { size: 800, singleChannel: false }, locator: { patchSize: 'large', halfSample: true, }, decoder: { readers: ['code_93_reader'], }, }), [ { 'name': 'image-001.jpg', 'result': 'WIWV8ETQZ1', format: 'code_93' }, { 'name': 'image-002.jpg', 'result': 'EH3C-%GU23RK3', format: 'code_93' }, { 'name': 'image-003.jpg', 'result': 'O308SIHQOXN5SA/PJ', format: 'code_93' }, { 'name': 'image-004.jpg', 'result': 'DG7Q$TV8JQ/EN', format: 'code_93' }, { 'name': 'image-005.jpg', 'result': 'DG7Q$TV8JQ/EN', format: 'code_93' }, { 'name': 'image-006.jpg', 'result': 'O308SIHQOXN5SA/PJ', format: 'code_93' }, { 'name': 'image-007.jpg', 'result': 'VOFD1DB5A.1F6QU', format: 'code_93' }, { 'name': 'image-008.jpg', 'result': 'WIWV8ETQZ1', format: 'code_93' }, { 'name': 'image-009.jpg', 'result': '4SO64P4X8 U4YUU1T-', format: 'code_93' }, { 'name': 'image-010.jpg', 'result': '4SO64P4X8 U4YUU1T-', format: 'code_93' }, ] ); }); describe('Parallel decoding works', () => { it('decodeSingle running in parallel', async () => { // TODO: we should throw in some other formats here too. const testSet = [ { 'name': 'image-001.jpg', 'result': '3574660239843', format: 'ean_13' }, { 'name': 'image-002.jpg', 'result': '8032754490297', format: 'ean_13' }, { 'name': 'image-004.jpg', 'result': '9002233139084', format: 'ean_13' }, { 'name': 'image-003.jpg', 'result': '4006209700068', format: 'ean_13' }, { 'name': 'image-005.jpg', 'result': '8004030044005', format: 'ean_13' }, { 'name': 'image-006.jpg', 'result': '4003626011159', format: 'ean_13' }, { 'name': 'image-007.jpg', 'result': '2111220009686', format: 'ean_13' }, { 'name': 'image-008.jpg', 'result': '9000275609022', format: 'ean_13' }, { 'name': 'image-009.jpg', 'result': '9004593978587', format: 'ean_13' }, { 'name': 'image-010.jpg', 'result': '9002244845578', format: 'ean_13' }, ]; const promises: Array<Promise<any>> = []; testSet.forEach(sample => { const config = generateConfig(); config.src = `${typeof window !== 'undefined' ? '/' : ''}test/fixtures/ean/${sample.name}`; promises.push(Quagga.decodeSingle(config)); }); const results = await Promise.all(promises).catch((err) => { console.warn('* error decoding simultaneously', err); throw(err); }); const testResults = testSet.map(x => x.result); results.forEach((r, index) => { expect(r).to.be.an('object'); expect(r.codeResult).to.be.an('object'); expect(r.codeResult.code).to.equal(testResults[index]); }); }); }); describe('External Reader Test, using stock code_128 reader', () => { describe('works', () => { before(() => { Quagga.registerReader('external_code_128_reader', ExternalCode128Reader); }); runDecoderTest( 'code_128', generateConfig({ inputStream: { size: 800, singleChannel: false, }, decoder: { readers: ['external_code_128_reader'], }, }), [ { 'name': 'image-001.jpg', 'result': '0001285112001000040801', format: 'code_128' }, { 'name': 'image-002.jpg', 'result': 'FANAVF14617104', format: 'code_128' }, { 'name': 'image-003.jpg', 'result': '673023', format: 'code_128' }, { 'name': 'image-004.jpg', 'result': '010210150301625334', format: 'code_128' }, { 'name': 'image-005.jpg', 'result': '419055603900009001012999', format: 'code_128' }, { 'name': 'image-006.jpg', 'result': '419055603900009001012999', format: 'code_128' }, { 'name': 'image-007.jpg', 'result': '420957479499907123456123456781', format: 'code_128' }, { 'name': 'image-008.jpg', 'result': '1020185021797280784055', format: 'code_128' }, { 'name': 'image-009.jpg', 'result': '0001285112001000040801', format: 'code_128' }, { 'name': 'image-010.jpg', 'result': '673023', format: 'code_128' }, // TODO: need to implement having different inputStream parameters to be able to // read this one -- it works only with inputStream size set to 1600 presently, but // other samples break at that high a size. // { name: 'image-011.png', result: '33c64780-a9c0-e92a-820c-fae7011c11e2' }, ] ); }); });
ericblade/quaggaJS
test/integration/integration.spec.ts
TypeScript
mit
21,244
import copy import pytest from peek.line import InvalidIpAddressException, Line, InvalidStatusException # 127.0.0.1 - - [01/Jan/1970:00:00:01 +0000] "GET / HTTP/1.1" 200 193 "-" "Python" test_line_contents = { 'ip_address': '127.0.0.1', 'timestamp': '[01/Jan/1970:00:00:01 +0000]', 'verb': 'GET', 'path': '/', 'status': '200', 'size': '193', 'referrer': '-', 'user_agent': 'Python' } def get_updated_line_contents(updates=None): test_contents = copy.deepcopy(test_line_contents) if updates is not None: test_contents.update(updates) return test_contents test_line = Line(line_contents=test_line_contents) class TestLineInstantiation: @pytest.mark.parametrize('expected,actual', [ ('127.0.0.1', test_line.ip_address), (1, test_line.timestamp), ('GET', test_line.verb), ('/', test_line.path), (200, test_line.status), (193, test_line.byte_count), ('-', test_line.referrer), ('Python', test_line.user_agent) ]) def test_retrieval(self, expected, actual): assert expected == actual class TestLineExceptions: def test_passing_invalid_ip_address_throws_exception(self): with pytest.raises(InvalidIpAddressException): line = Line(line_contents=get_updated_line_contents({'ip_address': 'foobar'})) def test_passing_non_parseable_status_throws_exception(self): with pytest.raises(InvalidStatusException): Line(line_contents=get_updated_line_contents({'status': 'foobar'}))
purrcat259/peek
tests/unit/test_line.py
Python
mit
1,585
/* Noble cread UART service example This example uses Sandeep Mistry's noble library for node.js to read and write from Bluetooth LE characteristics. It looks for a UART characteristic based on a proprietary UART service by Nordic Semiconductor. You can see this service implemented in Adafruit's BLEFriend library. created 30 Nov 2015 by Tom Igoe */ var noble = require('noble'); //noble library var util = require('util'); // utilities library // make an instance of the eventEmitter library: var EventEmitter = require('events').EventEmitter; // constructor function, so you can call new BleUart(): var BleUart = function (uuid) { var service = '6e400001b5a3f393e0a9e50e24dcca9e'; // the service you want var receive, transmit; // transmit and receive BLE characteristics var self = this; // reference to the instance of BleUart self.connected = false; // whether the remote peripheral's connected self.peripheral; // the remote peripheral as an object EventEmitter.call(self); // make a copy of EventEmitter so you can emit events if (uuid) { // if the constructor was called with a different UUID, service = uuid; // then set that as the service to search for } // The scanning function: function scan(state) { if (state === 'poweredOn') { // if the radio's on, scan for this service noble.startScanning([service], false); } // emit a 'scanning' event: self.emit('scanning', state); } // the connect function: self.connect = function(peripheral) { self.peripheral = peripheral; peripheral.connect(); // start connection attempts // the connect function. This is local to the discovery function // because it needs to know the peripheral to discover services: function discover() { // once you know you have a peripheral with the desired // service, you can stop scanning for others: noble.stopScanning(); // get the service you want on this peripheral: peripheral.discoverServices([service],explore); } // called only when the peripheral has the service you're looking for: peripheral.on('connect', discover); // when a peripheral disconnects, run disconnect: peripheral.on('disconnect', self.disconnect); } // the services and characteristics exploration function: // once you're connected, this gets run: function explore(error, services) { // this gets run by the for-loop at the end of the // explore function, below: function getCharacteristics(error, characteristics) { for (var c in characteristics) { // loop over the characteristics if (characteristics[c].notify) { // if one has the notify property receive = characteristics[c]; // then it's the receive characteristic receive.notify(true); // turn on notifications // whenever a notify event happens, get the result. // this handles repeated notifications: receive.on('data', function(data, notification) { if (notification) { // if you got a notification self.emit('data', String(data)); // emit a data event } }); } if (characteristics[c].write) { // if a characteristic has a write property transmit = characteristics[c]; // then it's the transmit characteristic } } // end of getCharacteristics() // if you've got a valid transmit and receive characteristic, // then you're truly connected. Emit a connected event: if (transmit && receive) { self.connected = true; self.emit('connected', self.connected); } } // iterate over the services discovered. If one matches // the UART service, look for its characteristics: for (var s in services) { if (services[s].uuid === service) { services[s].discoverCharacteristics([], getCharacteristics); return; } } } // the BLE write function. If there's a valid transmit characteristic, /// then write data out to it as a Buffer: self.write = function(data) { if (transmit) { transmit.write(new Buffer(data)); } } // the BLE disconnect function: self.disconnect = function() { self.connected = false; } // when the radio turns on, start scanning: noble.on('stateChange', scan); // if you discover a peripheral with the appropriate service, connect: noble.on('discover', self.connect); } util.inherits(BleUart, EventEmitter); // BleUart inherits all the EventEmitter properties module.exports = BleUart; // export BleUart
evejweinberg/SuperHeroAutoPilot
ble-uart.js
JavaScript
mit
4,710
var db = require('mongoose'); var Log = require('log'), log = new Log('info'); var clienttracking = require('./clienttracking.js'); var mapreduce = require('./mapreduce.js'); var io = null; exports.server = require('./adnoceserver.js'); exports.setDatabase = function(databaseConfiguration, callback) { var port = databaseConfiguration.port || '27017'; var opts = databaseConfiguration.options || {}; db.connect('mongodb://'+databaseConfiguration.host+':'+port+'/'+databaseConfiguration.name, opts, function(){ log.info('adnoce core - creating database connection to "%s" on host "%s:%s", status: %s', databaseConfiguration.name, databaseConfiguration.host, port, db.connection.readyState); if (db.connection.readyState != 1) { log.error('adnoce core - database connection not ready yet'); } if (typeof(callback) === 'function') callback(db); }); } exports.setServerSocketIO = function(io_, path_) { var path = path_ || '/adnoce'; io = io_.of(path).authorization(function (handshakeData, callback) { // @TODO: auth (e.g. ip-based on handshakeData.address) callback(null, true); }).on('connection', socketConnection); clienttracking.setSocketIO(io); } var socketConnection = function(socket_) { log.info('adnoce core - server socket client "%s" connected to endpoint "%s"', socket_.handshake.address.address, socket_.flags.endpoint); } exports.clientTrackingScript = function(req, res) { res.set({'Content-Type': 'application/javascript', 'Cache-Control': 'no-cache'}); res.send(200, clienttracking.getClientTrackingScript(req)); var additionalData = req.adnoceData || {}; additionalData.adnocetype = 1; clienttracking.processRequest(req, additionalData); }; exports.clientTrackingScriptUpdate = function(req, res) { res.set({'Content-Type': 'text/plain', 'Cache-Control': 'no-cache'}); if (!req.param('p')) res.send(400, '0'); else { res.send(200, '1'); var additionalData = req.adnoceData || {}; if (req.param('t')) additionalData.adnocetype = req.param('t'); clienttracking.updateSessionData(req.sessionID, req.param('p'), additionalData); } }; exports.addEvent = function(type, name, sessionId, additionalData) { clienttracking.addEvent(type, name, sessionId, additionalData); }; exports.MapReduce = mapreduce.MapReduce; var pushServerHealth = function(serverOSObject) { io.emit('health', {uptime: serverOSObject.uptime(), load: serverOSObject.loadavg(), memory: {total: serverOSObject.totalmem(), free: serverOSObject.freemem()}}); } exports.pushServerHealth = pushServerHealth;
hkonitzer/adnoce
lib/adnoce.js
JavaScript
mit
2,627
class QuestionGroupTracker attr_reader :questions, :question_group_id, :question_group def initialize(question_group_id) @questions = Question.where('question_group_id=?', question_group_id) @counter = 0 @question_group_id = question_group_id @question_group = QuestionGroup.find(question_group_id) end def check_for_new_group(question) if question.question_group_id != @question_group_id || !defined?(@initial_check) initialize(question.question_group_id) @initial_check = true return true else return false end end end
weedySeaDragon/surveyor_gui
app/models/question_group_tracker.rb
Ruby
mit
588
import logging import requests from django.conf import settings from django.contrib.sites.models import Site from django.core.mail import EmailMultiAlternatives from django.template.loader import get_template from django.utils import timezone from invitations.models import Invitation logger = logging.getLogger('email') sentry = logging.getLogger('sentry') def send_invite(message): try: invite = Invitation.objects.get( id=message.get('id'), status__in=[Invitation.PENDING, Invitation.ERROR], ) except Invitation.DoesNotExist: sentry.error("Invitation to send not found", exc_info=True, extra={'message': message}) return invite.status = Invitation.PROCESSING invite.save() context = { 'invite': invite, 'domain': Site.objects.get_current().domain, } subject = "[ContactOtter] Invitation to join ContactOtter from %s" % (invite.sender) if invite.book: subject = "[ContactOtter] Invitation to share %s's contact book" % (invite.sender) txt = get_template('email/invitation.txt').render(context) html = get_template('email/invitation.html').render(context) try: message = EmailMultiAlternatives( subject=subject, body=txt, from_email="ContactOtter <[email protected]>", to=[invite.email,], ) message.attach_alternative(html, "text/html") message.send() invite.status = Invitation.SENT invite.sent = timezone.now() invite.save() except: sentry.exception('Problem sending invite', exc_info=True, extra={'invite_id': invite.id}) invite.status = Invitation.ERROR invite.save()
phildini/logtacts
invitations/consumers.py
Python
mit
1,739
/* ********************************************************************************************************** * The MIT License (MIT) * * * * Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH * * Web: http://www.hypermediasystems.de * * This file is part of hmssp * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation files (the "Software"), to deal * * in the Software without restriction, including without limitation the rights * * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * * copies of the Software, and to permit persons to whom the Software is * * furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * * THE SOFTWARE. * ************************************************************************************************************ */ using System; using System.Collections.Generic; using System.Dynamic; using System.Reflection; using Newtonsoft.Json; namespace HMS.SP{ /// <summary> /// <para>https://msdn.microsoft.com/en-us/library/office/jj850797.aspx#properties</para> /// </summary> public class ServerSettings : SPBase{ [JsonProperty("__HMSError")] public HMS.Util.__HMSError __HMSError_ { set; get; } [JsonProperty("__status")] public SP.__status __status_ { set; get; } [JsonProperty("__deferred")] public SP.__deferred __deferred_ { set; get; } [JsonProperty("__metadata")] public SP.__metadata __metadata_ { set; get; } public Dictionary<string, string> __rest; // no properties found /// <summary> /// <para> Endpoints </para> /// </summary> static string[] endpoints = { }; public ServerSettings(ExpandoObject expObj) { try { var use_EO = ((dynamic)expObj).entry.content.properties; HMS.SP.SPUtil.expando2obj(use_EO, this, typeof(ServerSettings)); } catch (Exception ex) { } } // used by Newtonsoft.JSON public ServerSettings() { } public ServerSettings(string json) { if( json == String.Empty ) return; dynamic jobject = Newtonsoft.Json.JsonConvert.DeserializeObject(json); dynamic refObj = jobject; if (jobject.d != null) refObj = jobject.d; string errInfo = ""; if (refObj.results != null) { if (refObj.results.Count > 1) errInfo = "Result is Collection, only 1. entry displayed."; refObj = refObj.results[0]; } List<string> usedFields = new List<string>(); usedFields.Add("__HMSError"); HMS.SP.SPUtil.dyn_ValueSet("__HMSError", refObj, this); usedFields.Add("__deferred"); this.__deferred_ = new SP.__deferred(HMS.SP.SPUtil.dyn_toString(refObj.__deferred)); usedFields.Add("__metadata"); this.__metadata_ = new SP.__metadata(HMS.SP.SPUtil.dyn_toString(refObj.__metadata)); this.__rest = new Dictionary<string, string>(); var dyn = ((Newtonsoft.Json.Linq.JContainer)refObj).First; while (dyn != null) { string Name = ((Newtonsoft.Json.Linq.JProperty)dyn).Name; string Value = ((Newtonsoft.Json.Linq.JProperty)dyn).Value.ToString(); if ( !usedFields.Contains( Name )) this.__rest.Add( Name, Value); dyn = dyn.Next; } if( errInfo != "") this.__HMSError_.info = errInfo; } } }
helmuttheis/hmsspx
hmssp/SP.gen/ServerSettings.cs
C#
mit
4,781
module BlocVoting.Tally.Resolution where import qualified Data.ByteString as BS data Resolution = Resolution { rCategories :: Int , rEndTimestamp :: Int , rName :: BS.ByteString , rUrl :: BS.ByteString , rVotesFor :: Integer , rVotesTotal :: Integer , rResolved :: Bool } deriving (Show, Eq) updateResolution :: Resolution -> Integer -> Integer -> Resolution updateResolution (Resolution cats endT name url for total resolved) newForVotes newTotalVotes = Resolution cats endT name url (for + newForVotes) (total + newTotalVotes) resolved
XertroV/blocvoting
src/BlocVoting/Tally/Resolution.hs
Haskell
mit
565
# Erase duplicate entries from history export HISTCONTROL="erasedups" # Increase history size export HISTSIZE="10000"
ridobe/dotfiles
bash/environment.sh
Shell
mit
118
<!DOCTYPE html> <html lang="en"> <head> {{ bokeh_css }} {{ bokeh_js }} <style> {% include 'styles.css' %} </style> <meta charset="utf-8"> <title>MolExplorer</title> </head> <body> <div> <h1>Vizard</h1> {{ plot_div|indent(8) }} </div> {{ plot_script|indent(8) }} </body> </html>
MarcusOlivecrona/REINVENT
Vizard/templates/index.html
HTML
mit
387
๏ปฟ//using System; //using System.Collections.Generic; //using System.Linq; //using System.Text; //using parser; // //namespace runic.lexer //{ // public class Lexer_Bootstrap_Old : Parser_Context // { // public Lexer_Bootstrap_Old(Definition definition) // : base(definition) // { // } // // public override object perform_action(string name, Pattern_Source data, Match match) // { // if (data.name == null) // data.name = name; // // var type = match.pattern.name; // switch (type) // { // case "string": // case "regex": // data = data.patterns[1]; // data.type = type; // return data; // // default: // // throw new Exception("Invalid parser method: " + name + "."); // } // // return data; // } // } //}
silentorb/runic
Runic/lexer/Lexer_Bootstrap_Old.cs
C#
mit
1,047
# Instruction Counter Counting number of instructions by `ptrace` system call **This repository is for experimental use, so it may contain some dangerous code. Use this repository at your own risk.** ## Requirement The code is written assuming only when using GCC on Linux. Probably it can not be compiled by compilers other than GCC. Code that assumes x64 architecture is included. In particular, it does not work on the ARM architecture. ## Usage Simply typing `make` will generate a library file named `inst_counter.a` and executable file named `inst_counter.out`. To count the number of instructions, first call `instruction_count_init`. Then surround the range of the code you want to measure with `instruction_count_start` and `instruction_count_end`. In order to accurately measure, it is desirable to compile the range to be measured without optimizing it (by using something like `__attribute__((optimize("0")))`). If you call `instruction_count_set_string` just before the measurement, you can change the string printed when measurement is over. To execute a program which contains measuring code, execute it as follows: ```sh 'inst_counter.out' <program> [<program arguments>...] ``` ## Example `sample.c` is a sample code for operation confirmation. Compile and run it as follows: ```sh make gcc -I./include -o sample sample.c inst_counter.a ./inst_counter.out ./sample ```
ToshinoriTsuboi/dma-virtual-memory
instruction_counter/Readme.md
Markdown
mit
1,399
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ 'karma-jasmine', 'karma-chrome-launcher', 'karma-spec-reporter', '@angular-devkit/build-angular/plugins/karma', ], client: { clearContext: false // leave Jasmine Spec Runner output visible in browser }, reporters: ['spec'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], singleRun: false }); };
erento/angular-lazy-responsive-images
projects/angular-lazy-responsive-images/karma.conf.js
JavaScript
mit
688
๏ปฟusing System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using StockExchangeYahooFinance.DbContext; namespace StockExchangeYahooFinance.Migrations { [DbContext(typeof(YahooFinanceDbContext))] [Migration("20170419132834_updateExAddCountry")] partial class updateExAddCountry { protected override void BuildTargetModel(ModelBuilder modelBuilder) { modelBuilder .HasAnnotation("ProductVersion", "1.1.1") .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Companies", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("ADR_TSO"); b.Property<string>("ExchangeId"); b.Property<string>("IPOyear"); b.Property<string>("IndustryId"); b.Property<string>("LastSale"); b.Property<string>("MarketCap"); b.Property<string>("Name"); b.Property<string>("RegionId"); b.Property<string>("SectorId"); b.Property<string>("Symbol"); b.Property<string>("Type"); b.HasKey("Id"); b.HasIndex("ExchangeId"); b.HasIndex("IndustryId"); b.HasIndex("RegionId"); b.HasIndex("SectorId"); b.ToTable("Companies"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Country", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("CountryCode"); b.Property<string>("Name"); b.HasKey("Id"); b.ToTable("Country"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Currencies", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("Code"); b.Property<string>("Currency"); b.Property<string>("Entity"); b.Property<string>("MinorUnit"); b.Property<int>("NumericCode"); b.HasKey("Id"); b.ToTable("Currencies"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Exchange", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("ClosingTimeLocal"); b.Property<string>("DataProvider"); b.Property<string>("Delay"); b.Property<string>("Name"); b.Property<string>("OpeningTimeLocal"); b.Property<string>("RegionId"); b.Property<string>("StockExchangeId"); b.Property<string>("Suffix"); b.Property<string>("TradingDays"); b.Property<string>("UtcOffsetStandardTime"); b.HasKey("Id"); b.HasIndex("RegionId"); b.ToTable("Exchange"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.FinanceModel", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("AfterHoursChangeRealtime"); b.Property<string>("AnnualizedGain"); b.Property<string>("Ask"); b.Property<string>("AskRealtime"); b.Property<string>("AverageDailyVolume"); b.Property<string>("Bid"); b.Property<string>("BidRealtime"); b.Property<string>("BookValue"); b.Property<string>("Change"); b.Property<string>("ChangeFromFiftydayMovingAverage"); b.Property<string>("ChangeFromTwoHundreddayMovingAverage"); b.Property<string>("ChangeFromYearHigh"); b.Property<string>("ChangeFromYearLow"); b.Property<string>("ChangePercentRealtime"); b.Property<string>("ChangeRealtime"); b.Property<string>("Change_PercentChange"); b.Property<string>("ChangeinPercent"); b.Property<string>("Commission"); b.Property<string>("CompaniesId"); b.Property<string>("CurencyId"); b.Property<string>("CurrenciesId"); b.Property<string>("Currency"); b.Property<string>("Date"); b.Property<string>("DaysHigh"); b.Property<string>("DaysLow"); b.Property<string>("DaysRange"); b.Property<string>("DaysRangeRealtime"); b.Property<string>("DaysValueChange"); b.Property<string>("DaysValueChangeRealtime"); b.Property<string>("DividendPayDate"); b.Property<string>("DividendShare"); b.Property<string>("DividendYield"); b.Property<string>("EBITDA"); b.Property<string>("EPSEstimateCurrentYear"); b.Property<string>("EPSEstimateNextQuarter"); b.Property<string>("EPSEstimateNextYear"); b.Property<string>("EarningsShare"); b.Property<string>("ErrorIndicationreturnedforsymbolchangedinvalid"); b.Property<string>("ExDividendDate"); b.Property<string>("FiftydayMovingAverage"); b.Property<string>("HighLimit"); b.Property<string>("HoldingsGain"); b.Property<string>("HoldingsGainPercent"); b.Property<string>("HoldingsGainPercentRealtime"); b.Property<string>("HoldingsGainRealtime"); b.Property<string>("HoldingsValue"); b.Property<string>("HoldingsValueRealtime"); b.Property<string>("LastTradeDate"); b.Property<string>("LastTradePriceOnly"); b.Property<string>("LastTradeRealtimeWithTime"); b.Property<string>("LastTradeTime"); b.Property<string>("LastTradeWithTime"); b.Property<string>("LowLimit"); b.Property<string>("MarketCapRealtime"); b.Property<string>("MarketCapitalization"); b.Property<string>("MoreInfo"); b.Property<string>("Name"); b.Property<string>("Notes"); b.Property<string>("OneyrTargetPrice"); b.Property<string>("Open"); b.Property<string>("OrderBookRealtime"); b.Property<string>("PEGRatio"); b.Property<string>("PERatio"); b.Property<string>("PERatioRealtime"); b.Property<string>("PercebtChangeFromYearHigh"); b.Property<string>("PercentChange"); b.Property<string>("PercentChangeFromFiftydayMovingAverage"); b.Property<string>("PercentChangeFromTwoHundreddayMovingAverage"); b.Property<string>("PercentChangeFromYearLow"); b.Property<string>("PreviousClose"); b.Property<string>("PriceBook"); b.Property<string>("PriceEPSEstimateCurrentYear"); b.Property<string>("PriceEPSEstimateNextYear"); b.Property<string>("PricePaid"); b.Property<string>("PriceSales"); b.Property<string>("Rate"); b.Property<string>("SharesOwned"); b.Property<string>("ShortRatio"); b.Property<string>("StockExchange"); b.Property<string>("Symbol"); b.Property<string>("TickerTrend"); b.Property<string>("Time"); b.Property<string>("TradeDate"); b.Property<string>("TwoHundreddayMovingAverage"); b.Property<string>("Volume"); b.Property<string>("YearHigh"); b.Property<string>("YearLow"); b.Property<string>("YearRange"); b.HasKey("Id"); b.HasIndex("CompaniesId"); b.HasIndex("CurrenciesId"); b.ToTable("FinanceModel"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Industry", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("Name"); b.HasKey("Id"); b.ToTable("Industrie"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Region", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("Name"); b.HasKey("Id"); b.ToTable("Region"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Sector", b => { b.Property<string>("Id") .ValueGeneratedOnAdd(); b.Property<string>("Name"); b.HasKey("Id"); b.ToTable("Sector"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Companies", b => { b.HasOne("StockExchangeYahooFinance.Data.Models.Exchange", "Exchange") .WithMany() .HasForeignKey("ExchangeId"); b.HasOne("StockExchangeYahooFinance.Data.Models.Industry", "Industry") .WithMany() .HasForeignKey("IndustryId"); b.HasOne("StockExchangeYahooFinance.Data.Models.Region", "Region") .WithMany() .HasForeignKey("RegionId"); b.HasOne("StockExchangeYahooFinance.Data.Models.Sector", "Sector") .WithMany() .HasForeignKey("SectorId"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.Exchange", b => { b.HasOne("StockExchangeYahooFinance.Data.Models.Region", "Region") .WithMany() .HasForeignKey("RegionId"); }); modelBuilder.Entity("StockExchangeYahooFinance.Data.Models.FinanceModel", b => { b.HasOne("StockExchangeYahooFinance.Data.Models.Companies", "Companies") .WithMany() .HasForeignKey("CompaniesId"); b.HasOne("StockExchangeYahooFinance.Data.Models.Currencies", "Currencies") .WithMany() .HasForeignKey("CurrenciesId"); }); } } }
error505/YahooFinanceApi
StockExchangeYahooFinance/Migrations/20170419132834_updateExAddCountry.Designer.cs
C#
mit
12,032
--- layout: post title: swyambhu before the quake nepal swyambhu date: '2015-07-25T18:15:01+02:00' tags: - Instagram - PhotoOfTheDay tumblr_url: http://deepredsky.tumblr.com/post/124997225759/swyambhu-before-the-quake-nepal-swyambhu --- <img src="/tumblr_files/tumblr_ns1mq1tesy1s8ugabo1_1280.jpg"/><br/><p>swyambhu before the quake #nepal #swyambhu #monkeytemple #photooftheday</p>
deepredsky/deepredsky.github.io
_posts/tumblr/2015-07-25-swyambhu-before-the-quake-nepal-swyambhu.html
HTML
mit
383
#import "MOBProjection.h" @interface MOBProjectionEPSG6331 : MOBProjection @end
jkdubr/Proj4
Pod/Classes/Projection/MOBProjectionEPSG6331.h
C
mit
82
'use strict'; const util = require('util'); const colors = require('colors/safe'); Object.entries({ info: colors.blue, warn: colors.yellow, error: colors.red }).map(([method, color]) => { const _ = global.console[method]; global.console[method] = (...args) => { if (args.length) { let msg = args.shift(); if ('string' == typeof msg) { msg = color(msg); } args.unshift(msg); } _(...args); }; });
cravler/whaler
lib/console.js
JavaScript
mit
509
<!DOCTYPE html> <html lang="english"> <head> <link href='//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="../theme/stylesheet/style.min.css"> <link rel="stylesheet" type="text/css" href="../theme/pygments/github.min.css"> <link rel="stylesheet" type="text/css" href="../theme/font-awesome/css/font-awesome.min.css"> <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"> <link rel="icon" href="/images/favicon.ico" type="image/x-icon"> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="HandheldFriendly" content="True" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="robots" content="" /> <meta name="author" content="Rishabh Chakrabarti" /> <meta name="description" content="Learning about Bluemix and its features." /> <meta name="keywords" content="Bluemix, IBM"> <meta property="og:site_name" content="Bassdeveloper's Blog"/> <meta property="og:title" content="In the Blues"/> <meta property="og:description" content="Learning about Bluemix and its features."/> <meta property="og:locale" content="en_US"/> <meta property="og:url" content="../drafts/ibm-bluemix.html"/> <meta property="og:type" content="article"/> <meta property="article:published_time" content="2017-01-17 11:28:00+01:00"/> <meta property="article:modified_time" content="2017-01-17 11:40:00+01:00"/> <meta property="article:author" content="../author/rishabh-chakrabarti.html"> <meta property="article:section" content="Learning"/> <meta property="article:tag" content="Bluemix"/> <meta property="article:tag" content="IBM"/> <meta property="og:image" content="/images/RC.jpg"> <title>Bassdeveloper's Blog &ndash; In the Blues</title> </head> <body> <aside> <div> <a href=".."> <img src="/images/RC.jpg" alt="Rishabh Chakrabarti" title="Rishabh Chakrabarti"> </a> <h1><a href="..">Rishabh Chakrabarti</a></h1> <p>Learning about Data</p> <nav> <ul class="list"> <li><a href="https://bassdeveloper.github.io/category/learning.html" target="_blank">Learning</a></li> <li><a href="https://bassdeveloper.github.io/category/data-science.html" target="_blank">Data-Science</a></li> <li><a href="https://bassdeveloper.github.io/category/business.html" target="_blank">Business</a></li> </ul> </nav> <ul class="social"> <li><a class="sc-facebook" href="https://www.facebook.com/Rishabh.Chakrabarti" target="_blank"><i class="fa fa-facebook"></i></a></li> <li><a class="sc-github" href="https://github.com/bassdeveloper/" target="_blank"><i class="fa fa-github"></i></a></li> <li><a class="sc-google-plus" href="https://plus.google.com/100116978271306424838" target="_blank"><i class="fa fa-google-plus"></i></a></li> </ul> </div> </aside> <main> <article class="single"> <header> <h1 id="ibm-bluemix">In the Blues</h1> <p> Posted on Tue 17 January 2017 in <a href="../category/learning.html">Learning</a> </p> </header> <div> <h1>IBMยฎ Bluemixยฎ</h1> <p>A cloud computing platform that <strong>combines platform as a service (PaaS) with infrastructure as a service (IaaS)</strong>.</p> <ul> <li> <p>Polyglot (using several languages) programming approaches.</p> </li> <li> <p>No investment in Hardware Models, all is handled.</p> </li> </ul> <p>You can take an idea from</p> <p><em>inception, to development sandbox, to a globally distributed production environment</em> </p> <ul> <li> <p>IBMยฎ Bluemixยฎ also provides flexible deployment.</p> </li> <li> <p>Provision IBMยฎ Bluemixยฎ resources on-premises, in dedicated private cloud environments, or in the public cloud, and manage the resources from all three types of environments in a single dashboard.</p> </li> <li> <p>All IBM cloud resources that are deployed in public and dedicated environments are hosted from your choice of IBMยฎ Cloud Data Center locations around the world.</p> </li> <li> <p>IBM Cloud Data Centers provide regional redundancy, a global network backbone connecting all data centers and points of presence, and stringent security controls and reporting.</p> </li> </ul> <p>IBM enables you to:</p> <ul> <li> <p>Secure Data Centers</p> </li> <li> <p>Test and adopt to a broad range of services.</p> </li> <li> <p>Connect to all of your legacy systems and apps from a single, scalable, cloud platform through private network and API capabilities.</p> </li> </ul> <p>App Dashboard has everything.</p> <h2>Boiler Plates :</h2> <p>Bluemix provides various boilerplates and runtimes:</p> <blockquote> <p>A boilerplate is a template for an application and its associated runtime environment and predefined services for a specific domain.</p> <p>A runtime is the set of resources that is used to run an app, provided as containers for different types of apps.</p> </blockquote> <h2>Methods :</h2> <p>Bluemix provides various ways for you to run your apps, for example :</p> <ul> <li>Cloud Foundry and IBMยฎ Bluemixยฎ Container Service. (run Docker containers on cloud)</li> </ul> <blockquote> <p>Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries โ€“ anything that can be installed on a server. This guarantees that the software will always run the same, regardless of its environment.</p> </blockquote> <ul> <li>You can use IBMยฎ Bluemixยฎ OpenWhisk for distributed, event-driven computing.</li> </ul> <p>OpenWhisk runs application logic in response to events or direct invocations from web or mobile apps over HTTP.</p> <ul> <li>Use Mobile Services</li> </ul> <p>Services</p> <p>The Services dashboard provides access to the Bluemix services :</p> <ul> <li> <p>Fast + Cheap Apps from IBM DevOps services and the Bluemix Garage Method.</p> </li> <li> <p>Blockchain is a peer-to-peer distributed ledger technology for a new generation of transactional applications that establishes trust, accountability, and transparency while streamlining business processes.</p> </li> <li> <p>Watson gives your apps the power of cognitive computing with a full suite of speech, vision, and data APIs.</p> </li> <li> <p>IBM enables you to do more with rich, integrated cloud databases and Data &amp; Analytics services.</p> </li> <li> <p>The IBM Internet of Things service lets your apps communicate with, and consume data that is collected by, your connected devices, sensors, and gateways. Our recipes make it easy to get devices connected to our Internet of Things cloud. Your apps can then use our real-time and REST APIs to communicate with your devices and consume the data you've set them up to collect.</p> </li> </ul> <p>IBM offers a mobile backend infrastructure where you can build multiplatform, native, or hybrid apps while also being able to monitor and test them. You can also enhance your app with analytics, security, user insight, and continuous delivery. Bluemix also provides experimental services that you can try out. To learn about service types and availability, see Bluemix services.</p> <p>Infrastructure</p> <p>The Infrastructure dashboard provides various services to fit your cloud infrastructure needs.</p> </div> <div class="tag-cloud"> <p> <a href="../tag/bluemix.html">Bluemix</a> <a href="../tag/ibm.html">IBM</a> </p> </div> </article> <footer> <p>&copy; Rishabh Chakrabarti </p> <p> Powered by <a href="http://getpelican.com" target="_blank">Pelican</a> - <a href="https://github.com/alexandrevicenzi/flex" target="_blank">Flex</a> theme by <a href="http://alexandrevicenzi.com" target="_blank">Alexandre Vicenzi</a> </p> </footer> </main> <script type="application/ld+json"> { "@context" : "http://schema.org", "@type" : "Blog", "name": " Bassdeveloper's Blog ", "url" : "..", "image": "/images/RC.jpg", "description": "Rishabh Chakrabarti's Notes and Highlights" } </script> </body> </html>
bassdeveloper/bassdeveloper.github.io
drafts/ibm-bluemix.html
HTML
mit
8,135
require.ensure([], function(require) { require("./73.async.js"); require("./147.async.js"); require("./294.async.js"); require("./588.async.js"); }); module.exports = 589;
skeiter9/javascript-para-todo_demo
webapp/node_modules/webpack/benchmark/fixtures/589.async.js
JavaScript
mit
171
<html> <head> <meta charset="utf-8"> <title>Resources - git init</title> <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' > <link rel="stylesheet" href="octicons/octicons.css"> <link rel="stylesheet" href="style.css"> </head> <body> <div id="header"> <h1 class="header-title">git init</h1> <ul class="header-menu"> <li class="header-menu_item"> <a href="index.html">Tutorial</a> </li> <li class="header-menu_item"> <a href="cheatsheet.html">Cheatsheet</a> </li> <li class="header-menu_item header-menu_item-active"> Resources </li> <li class="header-menu_item"> <a class="header-github mega-octicon octicon-mark-github" href="https://github.com/pel-daniel/git-init" ></a> </li> </ul> </div> <div id="resources"> <h2 class="area-title">Resources</h2> <h3>Intermediate</h3> <ul> <li> <a href="http://chris.beams.io/posts/git-commit/"> How to write a Git Commit Message </a> </li> <li> <a href="http://gitimmersion.com/lab_01.html"> Git immersion: </a> A more in depth (and long) tutorial explaining: basics, branching, remote repositories, git internals, aliases, and more. </li> <li> <a href="http://justinhileman.info/article/git-pretty/git-pretty.png"> Justin Hileman's chart to solve a git mess </a> </li> <li> <a href="https://services.github.com/kit/downloads/github-git-cheat-sheet.pdf"> Github's Git Cheat Sheet </a> </li> </ul> <h3>Advanced</h3> <ul> <li> <a href="http://learngitbranching.js.org/"> Learn Git Branching: </a> Visual explanation of Git Commit Trees. Includes a really good explanation of the differences between merge & rebase. </li> <li> <a href="https://www.youtube.com/watch?v=ZDR433b0HJY"> Scott Chacon explaining how Git works internally </a> </li> </ul> </div> <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"> </script> <script src="https://code.jquery.com/color/jquery.color-2.1.2.min.js" type="text/javascript"> </script> </body> </html>
pel-daniel/git-init
resources.html
HTML
mit
2,486
<rtl code> var m = function (){ function T(){ this.a = []; } var r = new T(); var a = RTL$.makeArray(3, 0); var dynamicInt = []; var dynamicString = []; var dynamicChar = []; var dynamicByte = []; var dynamicRecord = []; var dynamicArrayOfStaticArrayInt = []; var i = 0; var s = ''; var byte = 0; function assignDynamicArrayFromStatic(){ var static$ = RTL$.makeArray(3, 0); var dynamic = []; Array.prototype.splice.apply(dynamic, [0, Number.MAX_VALUE].concat(static$)); } function returnOuterArray(){ return a.slice(); } function passArrayBeRef(a/*VAR ARRAY * OF INTEGER*/){ var static$ = RTL$.makeArray(3, 0); a[0] = 1; a[0] = a[1]; Array.prototype.splice.apply(a, [0, Number.MAX_VALUE].concat(static$)); Array.prototype.splice.apply(a, [0, Number.MAX_VALUE].concat(dynamicInt)); } function passArrayOfRecordsByRef(a/*VAR ARRAY * OF T*/){ var result = []; RTL$.copy(result, a, {array: {record: {a: {array: null}}}}); } function passArrayOfArraysByRef(a/*VAR ARRAY *, 3 OF INTEGER*/){ var result = []; RTL$.copy(result, a, {array: {array: null}}); } function arrayOfRecords(){ var $scope1 = $scope + ".arrayOfRecords"; function T(){ } var a = []; a.push(new T()); } function arrayOfArrays(){ var aa = []; function f(){ var a = []; return a; } aa.push(f()); } function optimizeTemporartArrayReturn(){ function f(){ var a = []; return a; } return f(); } function optimizeLocalArrayReturn(){ var a = []; return a; } function optimizeLocalArrayReturnWhenStatic(){ var a = RTL$.makeArray(3, 0); return a; } function cannotOptimizeArgArrayReturn(a/*ARRAY OF INTEGER*/){ return a.slice(); } function cannotOptimizeVarArgArrayReturn(a/*VAR ARRAY OF INTEGER*/){ return a.slice(); } function cannotOptimizeVarArgDynamicArrayReturn(a/*VAR ARRAY * OF INTEGER*/){ return a.slice(); } function arrayOfMaps(){ var aa = []; function f(){ var a = {}; return a; } aa.push(f()); } dynamicInt.push(3); dynamicInt.push(i); dynamicInt.push(byte); dynamicString.push("abc"); dynamicString.push("\""); dynamicString.push(s); dynamicChar.push(34); dynamicByte.push(byte); dynamicByte.push(i & 0xFF); dynamicRecord.push(RTL$.clone(r, {record: {a: {array: null}}}, T)); dynamicArrayOfStaticArrayInt.push(a.slice()); RTL$.assert(dynamicInt.indexOf(i) != -1); RTL$.assert(dynamicChar.indexOf(34) != -1); dynamicInt.splice(i, 1); dynamicInt.splice(0, Number.MAX_VALUE); passArrayBeRef(dynamicInt); passArrayOfRecordsByRef(dynamicRecord); passArrayOfArraysByRef(dynamicArrayOfStaticArrayInt); }();
vladfolts/oberonjs
test/expected/eberon/dynamic_array.js
JavaScript
mit
2,536
# npmup [![NPM version][npm-image]][npm-url] > Cli tool to overview dependencies in package.json This is scope reduction result of my `update-my-deps` project. At the end I found out, that I wrote small part of [`david`](https://github.com/alanshaw/david) functionality. Oops. ![2014-03-11 18-35-40 1 npmupexample zsh](https://f.cloud.github.com/assets/365089/2385186/af7360a2-a919-11e3-96d0-14412f9e1f28.png) ## Installation ```bash $ npm i npmup -g ``` ## Usage ```bash $ npmup Dependency Required Stable Latest ! express ~3.4.4 3.4.8 3.5.0 lodash ~2.4.1 2.4.1 2.4.1 mkdirp ~0.3.5 0.3.5 0.3.5 ! npmlog 0.0.2 0.0.2 0.0.6 recluster ~0.3.4 0.3.6 0.3.6 ``` [npm-url]: https://npmjs.org/package/npmup [npm-image]: https://badge.fury.io/js/npmup.png ## License MIT (c) Vsevolod Strukchinsky
floatdrop/npmup
README.md
Markdown
mit
890
var expect = require('chai').expect; var assert = require('chai').assert; var sinon = require('sinon'); var Config = require('../lib/config'); describe('config', function() { describe('#constructor', function() { it('creates a new object with the config defaults', function() { sinon.spy(Config.prototype, 'set'); var options = {}; var config = new Config(options); assert(Config.prototype.set.calledWith(options)); Config.prototype.set.restore(); }); it('call .set with any passed options', function() { var config = new Config(); expect(config.source).to.equal('.'); expect(config.destination).to.equal('_site'); }); }); describe('#set', function() { it('merges the passed options with the config defaults', function() { var config = new Config(); config.set({ source: './foo', destination: './bar', fizz: 'buzz' }); expect(config.source).to.equal('./foo'); expect(config.destination).to.equal('./bar'); // a default expect(config.env).to.equal('production'); // a new value expect(config.fizz).to.equal('buzz'); }); it('always includes certain default, even if overridden', function() { var config = new Config(); config.set({ excludeFiles: ['foo'], watchExcludes: ['bar'] }); expect(config.excludeFiles).to.deep.equal([ 'foo', '.*', '_*', '_*/**/*', 'package.json', 'bower_components', 'node_modules' ]); expect(config.watchExcludes).to.deep.equal([ 'bar', 'node_modules', config.destination ]); }); }); });
philipwalton/ingen
test/config-test.js
JavaScript
mit
1,739
def burrows_wheeler(text): """Calculates the burrows wheeler transform of <text>. returns the burrows wheeler string and the suffix array indices The text is assumed to not contain the character $""" text += "$" all_permutations = [] for i in range(len(text)): all_permutations.append((text[i:] + text[:i],i)) all_permutations.sort() bw_l = [] # burrows wheeler as list sa_i = [] # suffix array indices for w,j in all_permutations: bw_l.append(w[-1]) sa_i.append(j) return "".join(bw_l), sa_i
alneberg/sillymap
sillymap/burrows_wheeler.py
Python
mit
567
๏ปฟlocal M = {} function M:init() print("test contract transfer caller") local contract_transfer_demo = import_contract 'contract_transfer_demo' local res = contract_transfer_demo:start() pprint("transfer demo start response is ", res) end function M:start() end return M
Achain-Dev/Achain
src/Chain/libraries/glua/tests_lua/test_contract_transfer.lua
Lua
mit
286
๏ปฟusing System.ComponentModel.Composition; using System.IO; using System.Linq; using System.Threading; using System.Threading.Tasks; using Microsoft.Azure; using Microsoft.Azure.Management.Resources; using Microsoft.Azure.Management.Resources.Models; using Microsoft.Deployment.Common.ActionModel; using Microsoft.Deployment.Common.Actions; using Microsoft.Deployment.Common.Enums; using Microsoft.Deployment.Common.ErrorCode; using Microsoft.Deployment.Common.Helpers; using Microsoft.Deployment.Common.Model; using Newtonsoft.Json.Linq; namespace Microsoft.Deployment.Actions.AzureCustom.HCL { [Export(typeof(IAction))] public class CreateAzureMLWorkspace : BaseAction { public override async Task<ActionResponse> ExecuteActionAsync(ActionRequest request) { var azureToken = request.DataStore.GetJson("AzureToken")["access_token"].ToString(); var subscription = request.DataStore.GetJson("SelectedSubscription")["SubscriptionId"].ToString(); var resourceGroup = request.DataStore.GetValue("SelectedResourceGroup"); var location = request.DataStore.GetJson("SelectedLocation")["Name"].ToString(); var deploymentName = request.DataStore.GetValue("DeploymentName"); var mlWorkspaceName = request.DataStore.GetValue("mlWorkspaceName"); //var storageAccountName = request.DataStore.GetValue("storageAccountName"); var tagName_mlWorkspaceName = request.DataStore.GetValue("tagName_mlWorkspaceName"); var storageAccountName = request.DataStore.GetValue("storageAccountName"); var storageAccountType = request.DataStore.GetValue("storageAccountType"); var encryptionEnabled = request.DataStore.GetValue("storageAccountEncryptionEnabled"); var tagName_storageAccountName = request.DataStore.GetValue("tagName_storageAccountName"); foreach (var item in ListDeployedItems) { if (item.ToString() == deploymentName) return new ActionResponse(ActionStatus.Success); } SubscriptionCloudCredentials creds = new TokenCloudCredentials(subscription, azureToken); ResourceManagementClient client = new ResourceManagementClient(creds); var param = new AzureArmParameterGenerator(); param.AddStringParam("mlWorkspaceName", mlWorkspaceName); param.AddStringParam("storageAccountName", storageAccountName); param.AddStringParam("subscription", subscription); param.AddStringParam("resourceGroup", resourceGroup); param.AddStringParam("encryptionEnabled", encryptionEnabled); param.AddStringParam("location", location); param.AddStringParam("storageAccountType", storageAccountType); var armTemplate = JsonUtility.GetJObjectFromJsonString(System.IO.File.ReadAllText(Path.Combine(request.Info.App.AppFilePath, "Service/AzureML/MLWorkspace.json"))); var armParamTemplate = JsonUtility.GetJObjectFromObject(param.GetDynamicObject()); armTemplate.Remove("parameters"); armTemplate.Add("parameters", armParamTemplate["parameters"]); var deployment = new Azure.Management.Resources.Models.Deployment() { Properties = new DeploymentPropertiesExtended() { Template = armTemplate.ToString(), Parameters = JsonUtility.GetEmptyJObject().ToString() } }; var validate = await client.Deployments.ValidateAsync(resourceGroup, deploymentName, deployment, new CancellationToken()); if (!validate.IsValid) { return new ActionResponse(ActionStatus.Failure, JsonUtility.GetJObjectFromObject(validate), null, DefaultErrorCodes.DefaultErrorCode, $"Azure:{validate.Error.Message} Details:{validate.Error.Details}"); } var deploymentItem = await client.Deployments.CreateOrUpdateAsync(resourceGroup, deploymentName, deployment, new CancellationToken()); request.DataStore.AddToDataStore(tagName_mlWorkspaceName, mlWorkspaceName); request.DataStore.AddToDataStore(tagName_storageAccountName, storageAccountName); ListDeployedItems.Add(deploymentName); return new ActionResponse(ActionStatus.Success, deploymentItem); } } }
mayankon24/d-final
Source/Actions/Microsoft.Deployment.Actions.AzureCustom/HCL/CreateAzureMLWorkspace.cs
C#
mit
4,495
package com.example.dao; import com.example.model.Publisher; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Select; import java.util.List; @Mapper public interface PublisherMapper { @Select("SELECT *, PHONE as phoneNumber from PUBLISHERS") //SQL List<Publisher> findAll(); // === DB === // CREATE TABLE IF NOT EXISTS PUBLISHERS ( // ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY // ,NAME VARCHAR(255) NOT NULL CONSTRAINT PUBLISHERS_NAME_UC UNIQUE // ,PHONE VARCHAR(30)); // === Model === // public class Publisher { // private Integer id ; // private String name; // private String phoneNumber; }
doubleirish/mybatis-spring-boot
src/main/java/com/example/dao/PublisherMapper.java
Java
mit
683
<?php while (have_posts()) : the_post(); ?> <article <?php post_class(); ?>> <div class="entry-content content-medicina-prepagada"> <header class="menu-med-prep text-center"> <ul class="list-inline"> <?php $loop = new WP_Query( array( 'post_type' => 'aps', 'order' => 'ASC', 'category_name'=> 'link'));?> <?php while ( $loop->have_posts() ) : $loop->the_post(); $slug = get_post_field( 'post_name', get_post() ); ?> <li class="boton-aps"><a href="<?php the_permalink();?>"><span class="aps-title-menu text-uppercase texto<?php echo $slug; ?>"><?php the_title(); ?></span></a></li> <?php endwhile; wp_reset_query(); ?> </ul> </header> <?php $slug = get_post_field( 'post_name', get_post() ); ?> <div class="row"> <div class="col-sm-12"> <div class="title-big-aps"> <div class="row"> <div class="col-sm-6"> <div class="aps-text-big"> <h2><span class="titulo-plan-big titulo-aps-big">Plan </span><span class="text-uppercase titulo-plan titulo-aps fondo<?php echo $slug; ?>"><?php the_title(); ?></span></h2> </div> </div> <div class="col-sm-6"> <img src="<?php the_post_thumbnail_url('full'); ?>" class="img-responsive"> </div> </div> </div> <div class="wrapper-aps"><?php the_content(); ?></div> <div class="wrapper-botones"> <?php $id_empresarial=get_category_by_slug( 'empresarial' ); $category=get_the_category(); if ($category[0]->name === 'empresarial') { if( get_adjacent_post(true, '', true, 'category') ) { $post_previo=get_adjacent_post(true, '', true, 'category'); if((in_category('empresarial', $post_previo))){ $post_previo_slug=get_post_field( 'post_name', $post_previo ); $post_previo_slug=str_replace("-", " ", $post_previo_slug); echo '<div class="texto-azul pull-left boton-nav">'; previous_post_link('%link', '<span class="glyphicon glyphicon-chevron-left"></span>'.$post_previo_slug); echo "</div>"; } else { $first = new WP_Query( array( 'post_type' => 'aps', 'order' => 'DESC', 'category__in'=> $id_empresarial->term_id)); $first->the_post(); $post_previo_slug=get_post_field( 'post_name' ); $post_previo_slug=str_replace("-", " ", $post_previo_slug); echo '<div class="texto-azul pull-left boton-nav"><a href="' . get_permalink() . '"><span class="glyphicon glyphicon-chevron-left"></span>'.$post_previo_slug.'</a></div>'; wp_reset_query(); }; }; if( get_adjacent_post(true, '', false, 'category') ) { $post_sig=get_adjacent_post(true, '', false, 'category'); $post_sig_slug=get_post_field( 'post_name', $post_sig ); echo '<div class="texto-azul pull-right boton-nav">'; next_post_link('%link', $post_sig_slug.'<span class="glyphicon glyphicon-chevron-right"></span></div>'); } else { $last = new WP_Query( array( 'post_type' => 'aps', 'order' => 'ASC', 'category__in'=> $id_empresarial->term_id)); $last->the_post(); $post_sig_slug=get_post_field( 'post_name' ); $post_sig_slug=str_replace("-", " ", $post_sig_slug); // $post_sig_slug=get_post_field( 'post_name', $post_sig ); echo '<div class="texto-azul pull-right boton-nav"><a href="' . get_permalink() . '"><span class="textobotonnav">'.$post_sig_slug.'</span><span class="glyphicon glyphicon-chevron-right"></span></a></div>'; wp_reset_query(); }; } else{?> <div class="wrapper-botones text-center"> <a href="#" class="boton-med-prep">Cotizaciรณn Familiar</a> <a href="#" class="boton-med-prep">Cotizar Empresa</a> </div> <?php }?> </div> </div> </div> </div> </div> </article> <?php endwhile; ?>
nedilio/rescarven-wp-theme
templates/content-single-aps.php
PHP
mit
4,240
<!DOCTYPE html> <html lang="en-us"> {% include head.html %} <body class="theme-base-08 layout-reverse sidebar-overlay"> <!-- Enable Google Analytics --> {% include googleanalytics.html %} {% include sidebar.html %} <!-- Wrap is the content to shift when toggling the sidebar. We wrap the content to avoid any CSS collisions with our real content. --> <div class="wrap"> <div class="masthead"> <div class="container"> <h3 class="masthead-title"> <a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a> <small>{{ site.tagline }}</small> </h3> </div> </div> <div class="container content"> {{ content }} </div> </div> <label for="sidebar-checkbox" class="sidebar-toggle"></label> <script> (function(document) { var toggle = document.querySelector('.sidebar-toggle'); var sidebar = document.querySelector('#sidebar'); var checkbox = document.querySelector('#sidebar-checkbox'); document.addEventListener('click', function(e) { var target = e.target; if(!checkbox.checked || sidebar.contains(target) || (target === checkbox || target === toggle)) return; checkbox.checked = false; }, false); })(document); </script> </body> </html>
mjh-test1/mjh-test1.github.io
_layouts/default.html
HTML
mit
1,397
package wikimediaparser import ( "fmt" "github.com/golang/glog" "strings" ) // Node as it is emitted by the parser // - contains a NodeType for clear identification // - a string val Val // - a list of named parameters which are actually Node Lists // -a list of anonymous parameters, a Node list again type Node struct { Typ nodeType Val string NamedParams map[string]Nodes Params []Nodes } // Return the Node text content, without any decoration func (n *Node) StringRepresentation() string { glog.V(7).Infof("stringRepresentation for %+v", n) switch n.Typ { case NodeText, NodeInvalid: return n.Val case NodeLink, NodeELink: if len(n.Params) > 0 { return n.Params[0].StringRepresentation() } else { return n.StringParamOrEmpty("link") } case NodeTemplate: if len(n.Params) > 0 { return n.Params[0].StringRepresentation() } else { return "" } default: return "" } } func (n *Node) String() string { switch n.Typ { case NodeText, NodeInvalid: return fmt.Sprintf("%q", n.Val) } o := fmt.Sprintf("%s: %s", n.Typ.String(), n.Val) for ix, p := range n.Params { o += fmt.Sprintf("\t%d: %s\n", ix, p.String()) } for k, v := range n.NamedParams { o += fmt.Sprintf("\t%s: %s\n", k, v.String()) } return o } // StringParam returns the string value of a given named parameter func (n *Node) StringParam(k string) string { param, ok := n.NamedParams[k] if !ok { glog.V(2).Infof("Unable to extract parameter \"%s\" for node %s", k, n.String()) } else { return param.StringRepresentation() } return "" } func (n *Node) StringParamOrEmpty(k string) string { glog.V(2).Infof("StringParamOrEmpty for %s", k) v, ok := n.NamedParams[k] if ok { ret := v.StringRepresentation() return strings.Trim(ret, " \n") } return "" } func EmptyNode() Node { return Node{Typ: NodeEmpty} } type nodeType int const ( NodeInvalid = nodeType(iota) NodeText NodeTitle NodeLink NodeELink NodeTemplate NodePlaceholder NodeEq NodeUnknown NodeEmpty ) func (n nodeType) String() string { switch n { case NodeText: return "Text" case NodeLink: return "Link" case NodeELink: return "ELink" case NodeTemplate: return "Template" case NodeEq: return " EQ " case NodeTitle: return " Title " case NodePlaceholder: return " Placeholder " case NodeUnknown: return "UNK" case NodeInvalid: return " INV " default: return "????" } }
octplane/wikiquote-parser
node.go
GO
mit
2,562
# # Module manifest for module 'SqlCmdTools' # # @{ # Script module or binary module file associated with this manifest. RootModule = 'SqlCmdTools.psm1' # Version number of this module. ModuleVersion = '0.0.0.1' # ID used to uniquely identify this module GUID = '97222863-d093-489a-8b09-e37f5607df83' # Author of this module Author = 'Melvin Lee' # Company or vendor of this module CompanyName = 'Melvin Lee' # Copyright statement for this module Copyright = '2016 Melvin Lee. All rights reserved.' # Description of the functionality provided by this module Description = 'Provide extra functionality for tableDiff.exe utility' # Minimum version of the Windows PowerShell engine required by this module PowerShellVersion = '4.0' # Name of the Windows PowerShell host required by this module # PowerShellHostName = '' # Minimum version of the Windows PowerShell host required by this module # PowerShellHostVersion = '' # Minimum version of Microsoft .NET Framework required by this module # DotNetFrameworkVersion = '' # Minimum version of the common language runtime (CLR) required by this module # CLRVersion = '' # Processor architecture (None, X86, Amd64) required by this module # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module # RequiredModules = @() # Assemblies that must be loaded prior to importing this module # RequiredAssemblies = @() # Script files (.ps1) that are run in the caller's environment prior to importing this module. # ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module # TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module # FormatsToProcess = @() # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess # NestedModules = @() # Functions to export from this module FunctionsToExport = @('Invoke-SqlCmdScript') # Cmdlets to export from this module CmdletsToExport = '*' # Variables to export from this module VariablesToExport = '*' # Aliases to export from this module AliasesToExport = '*' # List of all modules packaged with this module # ModuleList = @() # List of all files packaged with this module # FileList = @() # Private data to pass to the module specified in RootModule/ModuleToProcess # PrivateData = '' # HelpInfo URI of this module # HelpInfoURI = '' # Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. # DefaultCommandPrefix = '' }
melvinlee/SQLCmdTools
SqlCmdTools.psd1
PowerShell
mit
2,544
# domBareMetal Xen 4.6. bare metal domain for Odroid XU-3 Tested on Odroid XU3, for toggling GPA2.4 GPIO. Toggling is done directly by changing the register in memory. On this link you can find XU3 expansion header: http://odroid.com/dokuwiki/doku.php?id=en:xu3_hardware_gpio Xen devel thread on enabling emergency console: https://lists.xenproject.org/archives/html/xen-devel/2016-05/msg02524.html Next step is enabling MMU.
dumpram/domBareMetal
README.md
Markdown
mit
433