[
  {
    "path": ".gitignore",
    "content": "# Generated files\nbin/\ngen/\nout/\n\n# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Proguard folder generated by Eclipse\nproguard/\n\n# Log Files\n*.log\n\n# Android Studio Navigation editor temp files\n.navigation/\n\n# Android Studio captures folder\ncaptures/\n\n# Intellij\n*.iml\n.idea/\n.idea/tasks.xml\n.idea/dictionaries\n\n# Keystore files\n*.jks\n\n# External native build folder generated in Android Studio 2.2 and later\n.externalNativeBuild\n\n# Google Services (e.g. APIs or Firebase)\ngoogle-services.json\n\n# Freeline\nfreeline.py\nfreeline/\nfreeline_project_description.json\n"
  },
  {
    "path": ".travis.yml",
    "content": "language: android\n\nandroid:\n  components:\n    - tools\n    - platform-tools\n    - tools\n    - build-tools-27.0.2\n    - android-27\n    - extra-google-m2repository\n    - extra-android-m2repository\n\n  licenses:\n    - '.+'\n\njdk:\n  - oraclejdk8\n\naddons:\n  apt:\n    packages:\n      - oracle-java8-installer\n\nnotifications:\n  email: false\n\nsudo: false\n\nbefore_install:\n- yes | sdkmanager \"platforms;android-27\"\n\nbefore_script:\n  - chmod +x gradlew\n\nscript:\n  - ./gradlew assembleDebug\n\nbefore_cache:\n  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock\n  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/\n\ncache:\n  directories:\n    - $HOME/.gradle/caches/\n    - $HOME/.gradle/wrapper/"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "[![Download](https://api.bintray.com/packages/ehsun/maven/colored-time-range-selector/images/download.svg)](https://bintray.com/ehsun/maven/colored-time-range-selector/_latestVersion)\n[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-colored--time--selector-green.svg?style=flat )]( https://android-arsenal.com/details/1/6634 )\n[![GitHub license](https://img.shields.io/github/license/ehsunshine/colored-time-selector.svg)](https://github.com/ehsunshine/colored-time-selector/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/ehsunshine/colored-time-selector.svg?branch=master)](https://travis-ci.org/ehsunshine/colored-time-selector)\n\n# Colored Time Range Selector\nA smart colored time range selector. Users can select just free time with a handy colorful range selector.\n\n## Screen Shots\n<img src=\"https://github.com/ehsunshine/colored-time-selector/blob/master/screenshots/screen1.jpg\" alt=\"Colored Time Range Bar Selector\" width=\"256\">\n<img src=\"https://github.com/ehsunshine/colored-time-selector/blob/master/screenshots/screen2.jpg\" alt=\"Colored Time Range Bar Selector\" width=\"256\">\n\n## Features\n\n- Select a `time range` between 2 hours\n- Highlight `available time range` with your desire color\n- Select `just free times` in a range\n- Two different type of view, with `Selector` and without it\n\n## Use it\n\n**build.gradle**\n```gradle\ndependencies {\n    implementation 'de.ehsun.coloredtimebar:coloredtimebar:1.0'\n}\n```\n\nIn your layout use the ColoredTimeBar as below:\n\n```xml\n<de.ehsun.coloredtimebar.TimelineView\n            android:id=\"@+id/timelineView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            app:barColorAvailable=\"@color/available_time_default_color\"\n            app:barColorHighlight=\"@color/selector_default_color\"\n            app:barColorNotAvailable=\"@color/timeline_default_color\"\n            app:barWidth=\"16dp\"\n            app:fractionLineColor=\"@color/separatorDark\"\n            app:fractionLineLength=\"8dp\"\n            app:fractionLineWidth=\"1dp\"\n            app:fractionPrimaryTextColor=\"@color/fraction_default_color\"\n            app:fractionSecondaryTextColor=\"@color/fraction_default_color\"\n            app:fractionTextInterval=\"2\"\n            app:fractionTextSize=\"8sp\"\n            app:timeRange=\"07:00-19:00\" />\n```\nIn your code you can easily set the available time by passing an array of time range string as below:\n\n```kotlin\ntimelineView.setAvailableTimeRange(listOf(\"07:00 - 10:15\", \"12:00 - 15:00\"))\n```\nAnd to enable picker handles use it as below:\n\n```xml\n<de.ehsun.coloredtimebar.TimelinePickerView\n                android:id=\"@+id/timelinePicker\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                app:barColorAvailable=\"@color/available_time_default_color\"\n                app:barColorHighlight=\"@color/selector_default_color\"\n                app:barColorNotAvailable=\"@color/timeline_default_color\"\n                app:barWidth=\"24dp\"\n                app:fractionLineColor=\"@color/separatorDark\"\n                app:fractionLineLength=\"8dp\"\n                app:fractionLineWidth=\"1dp\"\n                app:fractionPrimaryTextColor=\"@color/colorGrey900\"\n                app:fractionSecondaryTextColor=\"@color/colorBlueGrey500\"\n                app:fractionTextInterval=\"1\"\n                app:fractionTextSize=\"8sp\"\n                app:stepSize=\"15\"\n                app:timeRange=\"07:00-19:00\" />\n```\n\n```kotlin\ntimelinePicker.setOnSelectedTimeRangeChangedListener { from, to ->\n            selectedTimeTextView.text = getString(R.string.from_to, from.format(), to.format())\n        }\n```\n\n<img src=\"https://github.com/ehsunshine/colored-time-selector/blob/master/screenshots/screen3.jpg\" alt=\"Colored Time Range Bar Selector\">\n\n## Do you like it?\nUse it and develop it as you like and buy me a cup of tea :)\n\n<a href='https://ko-fi.com/D1D775AP' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>"
  },
  {
    "path": "app/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "app/build.gradle",
    "content": "apply plugin: 'com.android.application'\napply plugin: 'kotlin-android'\napply plugin: 'kotlin-android-extensions'\napply plugin: 'kotlin-kapt'\n\nandroid {\n    compileSdkVersion 27\n    defaultConfig {\n        applicationId \"de.ehsun.smartbooking\"\n        minSdkVersion 19\n        targetSdkVersion 27\n        versionCode 1\n        versionName \"1.0\"\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n    }\n    buildTypes {\n        debug {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n            applicationIdSuffix \".staging\"\n\n            buildConfigField 'String', 'BASE_URL', '\"http://roombooking.getsandbox.com/\"'\n        }\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n\n            buildConfigField 'String', 'BASE_URL', '\"http://roombooking.getsandbox.com/\"'\n        }\n    }\n\n    sourceSets {\n        String sharedTestDir = 'src/sharedtest/java'\n        test {\n            java.srcDir sharedTestDir\n        }\n        androidTest {\n            java.srcDir sharedTestDir\n        }\n    }\n}\n\ndependencies {\n    implementation fileTree(include: ['*.jar'], dir: 'libs')\n\n    //Kotlin\n    implementation \"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version\"\n\n    //Retrofit\n    implementation \"com.squareup.retrofit2:retrofit:$rootProject.ext.retrofitVersion\"\n    implementation \"com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofitVersion\"\n    implementation \"com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofitVersion\"\n    implementation \"com.squareup.okhttp3:okhttp-urlconnection:$rootProject.ext.okhttpVersion\"\n\n    //OkHTTP\n    implementation \"com.squareup.okhttp3:okhttp:$rootProject.ext.okhttpVersion\"\n    implementation \"com.squareup.okhttp3:logging-interceptor:$rootProject.ext.okhttpVersion\"\n\n    //Rx\n    implementation \"io.reactivex.rxjava2:rxandroid:$rootProject.ext.rxAndroidVersion\"\n    implementation \"io.reactivex.rxjava2:rxjava:$rootProject.ext.rxJavaVersion\"\n    implementation \"io.reactivex.rxjava2:rxkotlin:$rootProject.ext.rxKotlinVersion\"\n\n    //Gson\n    implementation \"com.google.code.gson:gson:$rootProject.ext.gsonVersion\"\n\n    //Picasso\n    implementation \"com.squareup.picasso:picasso:$rootProject.ext.picassoVersion\"\n    implementation \"com.jakewharton.picasso:picasso2-okhttp3-downloader:$rootProject.ext.picassoOkHttp\"\n\n    //Support Library\n    implementation \"com.android.support:appcompat-v7:$rootProject.ext.supportLibrariesVersion\"\n    implementation \"com.android.support:design:$rootProject.ext.supportLibrariesVersion\"\n    implementation \"com.android.support:cardview-v7:$rootProject.ext.supportLibrariesVersion\"\n\n    //Dagger 2\n    implementation \"com.google.dagger:dagger:$rootProject.ext.daggerVersion\"\n    kapt \"com.google.dagger:dagger-compiler:$rootProject.ext.daggerVersion\"\n\n    //JodaTime\n    implementation \"net.danlew:android.joda:$rootProject.ext.jodaTimeVersion\"\n\n    //Page Indicator\n    implementation \"com.github.JakeWharton:ViewPagerIndicator:$rootProject.ext.viewPagerIndicatorVersion\"\n\n    //Test\n    testImplementation \"junit:junit:$rootProject.ext.junitVersion\"\n    testImplementation \"org.mockito:mockito-core:$rootProject.ext.mockitoVersion\"\n    testImplementation \"joda-time:joda-time:$rootProject.ext.jodaTimeVersion\"\n    testImplementation \"com.nhaarman:mockito-kotlin:$rootProject.ext.mockitoKotlin\"\n    testImplementation \"com.squareup.okhttp3:mockwebserver:$rootProject.ext.okhttpVersion\"\n\n    //Android Test\n    androidTestImplementation \"com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion\"\n    androidTestImplementation \"com.android.support.test:runner:$rootProject.ext.testRunnerVersion\"\n    implementation project(':coloredtimebar')\n}\n"
  },
  {
    "path": "app/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "app/src/androidTest/java/de/ehsun/smartbooking/ExampleInstrumentedTest.kt",
    "content": "package de.ehsun.smartbooking\n\nimport android.support.test.InstrumentationRegistry\nimport android.support.test.runner.AndroidJUnit4\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\nimport org.junit.runner.RunWith\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\n@RunWith(AndroidJUnit4::class)\nclass ExampleInstrumentedTest {\n    @Test\n    fun useAppContext() {\n        // Context of the app under test.\n        val appContext = InstrumentationRegistry.getTargetContext()\n        assertEquals(\"de.ehsun.smartbooking\", appContext.packageName)\n    }\n}\n"
  },
  {
    "path": "app/src/main/AndroidManifest.xml",
    "content": "<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    package=\"de.ehsun.smartbooking\">\n\n    <uses-permission android:name=\"android.permission.INTERNET\" />\n    <uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />\n\n    <application\n        android:name=\".BookLibraryApplication\"\n        android:allowBackup=\"true\"\n        android:fullBackupContent=\"true\"\n        android:icon=\"@mipmap/ic_launcher\"\n        android:label=\"@string/app_name\"\n        android:roundIcon=\"@mipmap/ic_launcher_round\"\n        android:supportsRtl=\"true\"\n        android:theme=\"@style/AppTheme\"\n        tools:ignore=\"GoogleAppIndexingWarning\">\n        <activity\n            android:name=\".ui.launch.LaunchActivity\"\n            android:screenOrientation=\"portrait\"\n            android:theme=\"@style/LaunchMaterialTheme\">\n            <intent-filter>\n                <action android:name=\"android.intent.action.MAIN\" />\n                <category android:name=\"android.intent.category.LAUNCHER\" />\n            </intent-filter>\n        </activity>\n        <activity\n            android:name=\".ui.main.MainActivity\"\n            android:screenOrientation=\"portrait\"\n            android:windowSoftInputMode=\"adjustResize\" />\n        <activity\n            android:name=\".ui.roomdetails.RoomDetailsActivity\"\n            android:screenOrientation=\"portrait\"\n            android:theme=\"@style/MaterialTheme\"\n            android:windowSoftInputMode=\"adjustResize\" />\n    </application>\n\n</manifest>\n"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ApplicationComponent.kt",
    "content": "package de.ehsun.smartbooking\n\nimport dagger.Component\nimport de.ehsun.smartbooking.model.repository.RepositoryModule\nimport de.ehsun.smartbooking.model.source.SourceModule\nimport de.ehsun.smartbooking.ui.PresentersModule\nimport de.ehsun.smartbooking.ui.launch.LaunchActivity\nimport de.ehsun.smartbooking.ui.main.MainActivity\nimport de.ehsun.smartbooking.ui.roomdetails.RoomDetailsActivity\nimport de.ehsun.smartbooking.utils.UtilsModule\nimport javax.inject.Singleton\n\n@Singleton\n@Component(modules = arrayOf(\n        PresentersModule::class,\n        SourceModule::class,\n        RepositoryModule::class,\n        UtilsModule::class))\ninterface ApplicationComponent {\n\n    fun inject(launchActivity: LaunchActivity)\n    fun inject(mainActivity: MainActivity)\n    fun inject(roomDetailsActivity: RoomDetailsActivity)\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/BookLibraryApplication.kt",
    "content": "package de.ehsun.smartbooking\n\nimport android.app.Application\nimport de.ehsun.smartbooking.model.repository.RepositoryModule\nimport de.ehsun.smartbooking.model.source.SourceModule\nimport de.ehsun.smartbooking.ui.PresentersModule\nimport de.ehsun.smartbooking.utils.UtilsModule\nimport net.danlew.android.joda.JodaTimeAndroid\n\nclass BookLibraryApplication : Application() {\n\n    val applicationComponent: ApplicationComponent by lazy {\n        DaggerApplicationComponent\n                .builder()\n                .presentersModule(PresentersModule())\n                .sourceModule(SourceModule(this))\n                .repositoryModule(RepositoryModule())\n                .utilsModule(UtilsModule())\n                .build()\n    }\n\n    companion object {\n        lateinit var instance: BookLibraryApplication\n            private set\n    }\n\n    override fun onCreate() {\n        super.onCreate()\n        instance = this\n\n        JodaTimeAndroid.init(this)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/Attendee.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nimport com.google.gson.annotations.SerializedName\n\ndata class Attendee(@SerializedName(\"name\") var name: String,\n                    @SerializedName(\"email\") var email: String,\n                    @SerializedName(\"number\") var phone: String) {\n    constructor() : this(\"\", \"\", \"\")\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/Booking.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nimport com.google.gson.annotations.SerializedName\n\nclass Booking(@SerializedName(\"date\") var date: Long,\n              @SerializedName(\"time_start\") var startTime: Long,\n              @SerializedName(\"time_end\") var endTime: Long,\n              @SerializedName(\"title\") var title: String,\n              @SerializedName(\"description\") var description: String,\n              @SerializedName(\"room\") var room: String) {\n    constructor() : this(0, 0, 0, \"\", \"\", \"\")\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/BookingInfo.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nimport com.google.gson.annotations.SerializedName\n\ndata class BookingInfo(@SerializedName(\"booking\") var booking: Booking,\n                       @SerializedName(\"passes\") var attendees: List<Attendee>) {\n    constructor() : this(Booking(), ArrayList())\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/BookingResult.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nimport com.google.gson.annotations.SerializedName\n\ndata class BookingResult(\n        @SerializedName(\"success\")\n        var success: Boolean)"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/Room.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nimport android.os.Parcel\nimport android.os.Parcelable\nimport com.google.gson.annotations.SerializedName\n\ndata class Room(@SerializedName(\"name\") var name: String,\n                @SerializedName(\"location\") var location: String,\n                @SerializedName(\"size\") var size: String,\n                @SerializedName(\"capacity\") var capacity: Int,\n                @SerializedName(\"equipment\") var equipment: List<String>,\n                @SerializedName(\"avail\") var available: List<String>,\n                @SerializedName(\"images\") var images: List<String>) : Parcelable {\n\n\n    constructor(parcel: Parcel) : this(\n            parcel.readString(),\n            parcel.readString(),\n            parcel.readString(),\n            parcel.readInt(),\n            parcel.createStringArrayList(),\n            parcel.createStringArrayList(),\n            parcel.createStringArrayList())\n\n    constructor() : this(\"\", \"\", \"\", 0, ArrayList(), ArrayList(), ArrayList())\n\n    override fun writeToParcel(parcel: Parcel, flags: Int) {\n        parcel.writeString(name)\n        parcel.writeString(location)\n        parcel.writeString(size)\n        parcel.writeInt(capacity)\n        parcel.writeStringList(equipment)\n        parcel.writeStringList(available)\n        parcel.writeStringList(images)\n    }\n\n    override fun describeContents() = 0\n\n    companion object CREATOR : Parcelable.Creator<Room> {\n        override fun createFromParcel(parcel: Parcel) = Room(parcel)\n\n        override fun newArray(size: Int): Array<Room?> = arrayOfNulls(size)\n    }\n\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/RoomFilter.kt",
    "content": "package de.ehsun.smartbooking.entities\n\ndata class RoomFilter(val name: String,\n                      val isAvailable: Boolean) {\n\n    companion object {\n        @JvmStatic\n        val ALL_BOOKS = RoomFilter(\n                name = \"\",\n                isAvailable = true\n        )\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/RoomOrder.kt",
    "content": "package de.ehsun.smartbooking.entities\n\nenum class RoomOrder(val order: String) {\n    NAME(\"name\"), LOCATION(\"location\"), SIZE(\"size\"), CAPACITY(\"capacity\")\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/entities/RoomRequest.kt",
    "content": "package de.ehsun.smartbooking.entities\n\ndata class RoomRequest(var date: Long)"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/repository/RepositoryModule.kt",
    "content": "package de.ehsun.smartbooking.model.repository\n\nimport dagger.Module\nimport dagger.Provides\nimport de.ehsun.smartbooking.model.repository.booking.BookingRepository\nimport de.ehsun.smartbooking.model.repository.booking.DefaultBookingRepository\nimport de.ehsun.smartbooking.model.repository.room.DefaultRoomRepository\nimport de.ehsun.smartbooking.model.repository.room.RoomRepository\nimport de.ehsun.smartbooking.model.source.network.ApiService\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\nimport javax.inject.Singleton\n\n@Module\nclass RepositoryModule {\n\n    @Provides\n    @Singleton\n    fun provideRoomRepository(apiService: ApiService, schedulerProvider: SchedulerProvider):\n            RoomRepository = DefaultRoomRepository(apiService, schedulerProvider)\n\n    @Provides\n    @Singleton\n    fun provideBookingRepository(apiService: ApiService, schedulerProvider: SchedulerProvider):\n            BookingRepository = DefaultBookingRepository(apiService, schedulerProvider)\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/repository/booking/BookingRepository.kt",
    "content": "package de.ehsun.smartbooking.model.repository.booking\n\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.entities.BookingResult\nimport io.reactivex.Flowable\n\ninterface BookingRepository {\n    fun saveBookingInfo(bookingInfo: BookingInfo): Flowable<BookingResult>\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/repository/booking/DefaultBookingRepository.kt",
    "content": "package de.ehsun.smartbooking.model.repository.booking\n\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.entities.BookingResult\nimport de.ehsun.smartbooking.model.source.network.ApiService\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\nimport io.reactivex.Flowable\n\nclass DefaultBookingRepository(private var apiService: ApiService,\n                               private var schedulerProvider: SchedulerProvider) : BookingRepository {\n\n    override fun saveBookingInfo(bookingInfo: BookingInfo): Flowable<BookingResult> {\n        return apiService.postBookingInfo(bookingInfo)\n                .subscribeOn(schedulerProvider.ioScheduler)\n                .onErrorReturn {\n                    BookingResult(success = false)\n                }.onErrorResumeNext { t: Throwable -> Flowable.error(t) }\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/repository/room/DefaultRoomRepository.kt",
    "content": "package de.ehsun.smartbooking.model.repository.room\n\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.entities.RoomFilter\nimport de.ehsun.smartbooking.entities.RoomOrder\nimport de.ehsun.smartbooking.entities.RoomRequest\nimport de.ehsun.smartbooking.model.source.network.ApiService\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\nimport io.reactivex.Flowable\n\nclass DefaultRoomRepository(private var apiService: ApiService,\n                            private var schedulerProvider: SchedulerProvider) : RoomRepository {\n\n    private var roomList: List<Room>? = null\n\n    override fun getRooms(roomRequest: RoomRequest, sortOrder: RoomOrder, roomFilter: RoomFilter, requestFreshDate: Boolean): Flowable<List<Room>> {\n        if (requestFreshDate) {\n            roomList = null\n        }\n        return when (roomList) {\n            null -> apiService.getRooms(roomRequest)\n                    .subscribeOn(schedulerProvider.ioScheduler)\n                    .onErrorReturn {\n                        emptyList()\n                    }\n                    .doOnNext { t ->\n                        this.roomList = t\n                    }\n            else -> Flowable.fromArray(roomList)\n        }.map {\n            it.filterWith(roomFilter).sortBy(sortOrder)\n        }\n    }\n\n    private fun List<Room>.sortBy(roomOrder: RoomOrder) = when (roomOrder) {\n        RoomOrder.NAME -> this.sortedBy { it.name }\n        RoomOrder.LOCATION -> this.sortedBy { it.location }\n        RoomOrder.SIZE -> this.sortedByDescending { it.size }\n        RoomOrder.CAPACITY -> this.sortedByDescending { it.capacity }\n    }\n\n    private fun List<Room>.filterWith(filter: RoomFilter): List<Room> {\n        var newRooms = this.filter {\n            it.name.contains(filter.name)\n        }\n        if (filter.isAvailable) {\n            newRooms = newRooms.filter {\n                !it.available.isEmpty()\n            }\n        }\n        return newRooms\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/repository/room/RoomRepository.kt",
    "content": "package de.ehsun.smartbooking.model.repository.room\n\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.entities.RoomFilter\nimport de.ehsun.smartbooking.entities.RoomOrder\nimport de.ehsun.smartbooking.entities.RoomRequest\nimport io.reactivex.Flowable\n\ninterface RoomRepository {\n    fun getRooms(roomRequest: RoomRequest, sortOrder: RoomOrder, roomFilter: RoomFilter, requestFreshDate: Boolean): Flowable<List<Room>>\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/source/SourceModule.kt",
    "content": "package de.ehsun.smartbooking.model.source\n\nimport android.content.Context\nimport com.google.gson.FieldNamingPolicy\nimport com.google.gson.Gson\nimport com.google.gson.GsonBuilder\nimport dagger.Module\nimport dagger.Provides\nimport de.ehsun.smartbooking.model.source.config.BaseConfiguration\nimport de.ehsun.smartbooking.model.source.config.DefaultBaseConfiguration\nimport de.ehsun.smartbooking.model.source.network.ApiService\nimport de.ehsun.smartbooking.model.source.network.ServiceUtils\nimport de.ehsun.smartbooking.utils.gson.DateTimeDeserializer\nimport de.ehsun.smartbooking.utils.gson.LocalDateDeserializer\nimport okhttp3.logging.HttpLoggingInterceptor\nimport org.joda.time.DateTime\nimport org.joda.time.LocalDate\nimport javax.inject.Singleton\n\n@Module\nclass SourceModule(private var context: Context) {\n\n    companion object {\n        const val SHARED_PREF_BOOKING = \"BOOKING_PREFS\"\n    }\n\n    @Provides\n    @Singleton\n    fun provideSharedPreference() = context\n            .getSharedPreferences(SHARED_PREF_BOOKING, Context.MODE_PRIVATE)\n\n    @Provides\n    @Singleton\n    fun provideGson() = GsonBuilder()\n            .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES)\n            .registerTypeAdapter(DateTime::class.java, DateTimeDeserializer())\n            .registerTypeAdapter(LocalDate::class.java, LocalDateDeserializer())\n            .create()\n\n    @Provides\n    @Singleton\n    fun provideBaseConfiguration(): BaseConfiguration {\n        return DefaultBaseConfiguration()\n    }\n\n    @Provides\n    @Singleton\n    fun provideApiService(gson: Gson, baseConfiguration: BaseConfiguration): ApiService {\n        val retrofit = ServiceUtils.createDefaultRetrofitBuilder(\n                baseConfiguration.getServerBaseUrl(),\n                gson,\n                ServiceUtils.getLoggingInterceptor(HttpLoggingInterceptor.Level.BODY))\n\n        return retrofit.create(ApiService::class.java)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/source/config/BaseConfiguration.kt",
    "content": "package de.ehsun.smartbooking.model.source.config\n\ninterface BaseConfiguration {\n    fun getServerBaseUrl(): String\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/source/config/DefaultBaseConfiguration.kt",
    "content": "package de.ehsun.smartbooking.model.source.config\n\nimport de.ehsun.smartbooking.BuildConfig\n\nclass DefaultBaseConfiguration : BaseConfiguration {\n\n    override fun getServerBaseUrl(): String {\n        return BuildConfig.BASE_URL\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/source/network/ApiService.kt",
    "content": "package de.ehsun.smartbooking.model.source.network\n\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.entities.BookingResult\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.entities.RoomRequest\nimport io.reactivex.Flowable\nimport retrofit2.http.Body\nimport retrofit2.http.POST\n\ninterface ApiService {\n\n    @POST(\"/rooms\")\n    fun getRooms(@Body roomRequest: RoomRequest): Flowable<List<Room>>\n\n    @POST(\"/sendpass\")\n    fun postBookingInfo(@Body bookingInfo: BookingInfo): Flowable<BookingResult>\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/model/source/network/ServiceUtils.kt",
    "content": "package de.ehsun.smartbooking.model.source.network\n\nimport com.google.gson.Gson\nimport okhttp3.Interceptor\nimport okhttp3.OkHttpClient\nimport okhttp3.logging.HttpLoggingInterceptor\nimport retrofit2.Retrofit\nimport retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory\nimport retrofit2.converter.gson.GsonConverterFactory\nimport java.util.concurrent.TimeUnit\n\nobject ServiceUtils {\n\n    fun createDefaultRetrofitBuilder(baseUrl: String, gson: Gson, vararg interceptors: Interceptor): Retrofit {\n\n        val okHttpClientBuilder = createDefaultClient()\n        if (interceptors.isNotEmpty()) {\n            for (interceptor in interceptors) {\n                okHttpClientBuilder.interceptors().add(interceptor)\n            }\n        }\n\n        return Retrofit.Builder()\n                .baseUrl(baseUrl)\n                .addConverterFactory(GsonConverterFactory.create(gson))\n                .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n                .client(okHttpClientBuilder.build())\n                .build()\n    }\n\n    fun getLoggingInterceptor(logLevel: HttpLoggingInterceptor.Level): Interceptor {\n        val loggingInterceptor = HttpLoggingInterceptor()\n        loggingInterceptor.level = logLevel\n        return loggingInterceptor\n    }\n\n    private fun createDefaultClient(): OkHttpClient.Builder {\n        return OkHttpClient.Builder()\n                .followSslRedirects(true)\n                .connectTimeout(15, TimeUnit.SECONDS)\n                .readTimeout(1, TimeUnit.MINUTES)\n                .writeTimeout(1, TimeUnit.MINUTES)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/PresentersModule.kt",
    "content": "package de.ehsun.smartbooking.ui\n\nimport dagger.Module\nimport dagger.Provides\nimport de.ehsun.smartbooking.model.repository.booking.BookingRepository\nimport de.ehsun.smartbooking.model.repository.room.RoomRepository\nimport de.ehsun.smartbooking.ui.launch.LaunchContract\nimport de.ehsun.smartbooking.ui.launch.LaunchPresenter\nimport de.ehsun.smartbooking.ui.main.MainContract\nimport de.ehsun.smartbooking.ui.main.MainPresenter\nimport de.ehsun.smartbooking.ui.roomdetails.RoomDetailsContract\nimport de.ehsun.smartbooking.ui.roomdetails.RoomDetailsPresenter\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\n\n@Module\nclass PresentersModule {\n\n    @Provides\n    fun provideLaunchPresenter(): LaunchContract.Presenter {\n        return LaunchPresenter()\n    }\n\n    @Provides\n    fun provideMainPresenter(roomRepository: RoomRepository,\n                             schedulerProvider: SchedulerProvider): MainContract.Presenter =\n            MainPresenter(roomRepository, schedulerProvider)\n\n    @Provides\n    fun provideRoomDetailsPresenter(bookingRepository: BookingRepository,\n                                    schedulerProvider: SchedulerProvider): RoomDetailsContract.Presenter =\n            RoomDetailsPresenter(bookingRepository, schedulerProvider)\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/base/BaseActivity.kt",
    "content": "package de.ehsun.smartbooking.ui.base\n\nimport android.os.Bundle\nimport android.support.v7.app.AppCompatActivity\nimport android.widget.Toast\nimport de.ehsun.smartbooking.ApplicationComponent\nimport de.ehsun.smartbooking.BookLibraryApplication\n\nabstract class BaseActivity : AppCompatActivity(), BaseViewContract {\n\n    protected val applicationComponent: ApplicationComponent by lazy {\n        BookLibraryApplication.instance.applicationComponent\n    }\n\n    protected abstract fun injectDependencies()\n\n    protected abstract fun initViews()\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        injectDependencies()\n    }\n\n    override fun setContentView(layoutResID: Int) {\n        super.setContentView(layoutResID)\n        initViews()\n    }\n\n    override fun showErrorMessage(errorMessage: String) {\n        Toast.makeText(this, errorMessage, Toast.LENGTH_LONG).show()\n    }\n\n    override fun showErrorMessage(errorMessageResourceId: Int) {\n        Toast.makeText(this, errorMessageResourceId, Toast.LENGTH_LONG).show()\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/base/BasePresenterContract.kt",
    "content": "package de.ehsun.smartbooking.ui.base\n\ninterface BasePresenterContract<in T : BaseViewContract> {\n\n    fun onBindView(view: T)\n\n    fun onViewInitialized()\n\n    fun onViewDestroyed()\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/base/BaseViewContract.kt",
    "content": "package de.ehsun.smartbooking.ui.base\n\ninterface BaseViewContract {\n\n    fun showErrorMessage(errorMessage: String)\n\n    fun showErrorMessage(errorMessageResourceId: Int)\n\n}\n"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/launch/LaunchActivity.kt",
    "content": "package de.ehsun.smartbooking.ui.launch\n\nimport android.os.Bundle\nimport de.ehsun.smartbooking.R\nimport de.ehsun.smartbooking.ui.base.BaseActivity\nimport de.ehsun.smartbooking.ui.main.MainActivity\nimport javax.inject.Inject\n\nclass LaunchActivity : BaseActivity(), LaunchContract.View {\n\n    @Inject lateinit var presenter: LaunchContract.Presenter\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_launcher)\n    }\n\n    override fun injectDependencies() {\n        applicationComponent.inject(this)\n        presenter.onBindView(this)\n    }\n\n    override fun initViews() {\n        presenter.onViewInitialized()\n    }\n\n    override fun onDestroy() {\n        super.onDestroy()\n        presenter.onViewDestroyed()\n    }\n\n    override fun showHomeScreen() {\n        startActivity(MainActivity.create(this))\n        finish()\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/launch/LaunchContract.kt",
    "content": "package de.ehsun.smartbooking.ui.launch\n\nimport de.ehsun.smartbooking.ui.base.BasePresenterContract\nimport de.ehsun.smartbooking.ui.base.BaseViewContract\n\ninterface LaunchContract {\n\n    interface View : BaseViewContract {\n        fun showHomeScreen()\n    }\n\n    interface Presenter : BasePresenterContract<View>\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/launch/LaunchPresenter.kt",
    "content": "package de.ehsun.smartbooking.ui.launch\n\nclass LaunchPresenter : LaunchContract.Presenter {\n\n    private lateinit var view: LaunchContract.View\n\n\n    override fun onBindView(view: LaunchContract.View) {\n        this.view = view\n    }\n\n    override fun onViewInitialized() {\n        view.showHomeScreen()\n    }\n\n    override fun onViewDestroyed() {\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/MainActivity.kt",
    "content": "package de.ehsun.smartbooking.ui.main\n\nimport android.annotation.SuppressLint\nimport android.app.DatePickerDialog\nimport android.content.Context\nimport android.content.Intent\nimport android.os.Build\nimport android.os.Bundle\nimport android.support.v7.widget.LinearLayoutManager\nimport android.support.v7.widget.PopupMenu\nimport android.view.Gravity\nimport android.view.MenuItem\nimport android.view.View\nimport android.view.ViewGroup\nimport android.widget.PopupWindow\nimport de.ehsun.smartbooking.R\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.entities.RoomOrder\nimport de.ehsun.smartbooking.ui.base.BaseActivity\nimport de.ehsun.smartbooking.ui.main.adapter.RoomAdapter\nimport de.ehsun.smartbooking.ui.roomdetails.RoomDetailsActivity\nimport de.ehsun.smartbooking.utils.extension.afterTextChanged\nimport kotlinx.android.synthetic.main.activity_main.*\nimport kotlinx.android.synthetic.main.popup_filter.view.*\nimport org.joda.time.DateTime\nimport java.util.*\nimport javax.inject.Inject\n\nclass MainActivity : BaseActivity(), MainContract.View, PopupMenu.OnMenuItemClickListener, RoomAdapter.RoomEventListener {\n\n    @Inject lateinit var presenter: MainContract.Presenter\n    private lateinit var adapter: RoomAdapter\n    private var filterPopupWindow: PopupWindow? = null\n\n    private var calendar = Calendar.getInstance(Locale.GERMANY)\n    private lateinit var currentDate: DateTime\n    private var date = DatePickerDialog.OnDateSetListener { _, year, monthOdYear, dayOfMonth ->\n        calendar.set(Calendar.YEAR, year)\n        calendar.set(Calendar.MONTH, monthOdYear)\n        calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth)\n        currentDate = DateTime(calendar.time)\n        displayDate(currentDate)\n        presenter.onDateChanged(currentDate.millis)\n    }\n\n    companion object {\n        @JvmStatic\n        fun create(context: Context): Intent = Intent(context, MainActivity::class.java)\n    }\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_main)\n    }\n\n    override fun injectDependencies() {\n        setTheme(R.style.MaterialTheme)\n        applicationComponent.inject(this)\n        presenter.onBindView(this)\n    }\n\n    override fun initViews() {\n        adapter = RoomAdapter(this)\n        setSupportActionBar(toolbar)\n        supportActionBar?.setDisplayShowHomeEnabled(true)\n        title = \"\"\n\n        sortTextView.setOnClickListener({ showSortPopup(sortImageButton) })\n        initDatePicker()\n        val layoutManager = LinearLayoutManager(this)\n        filterViewGroup.setOnClickListener({ showFilterPopup(app_bar_layout) })\n        swipeRefreshContainer.setOnRefreshListener({ presenter.onRefreshBooks() })\n        booksRecyclerView.layoutManager = layoutManager\n        booksRecyclerView.adapter = adapter\n\n        presenter.onViewInitialized()\n    }\n\n    private fun initDatePicker() {\n        currentDate = DateTime.now()\n        displayDate(currentDate)\n        previousDateImageButton.setOnClickListener {\n            currentDate = currentDate.minusDays(1)\n            displayDate(currentDate)\n\n        }\n        nextDateImageButton.setOnClickListener {\n            currentDate = currentDate.plusDays(1)\n            displayDate(currentDate)\n        }\n        currentDateTextView.afterTextChanged { presenter.onDateChanged(currentDate.millis) }\n        currentDateTextView.setOnClickListener {\n            DatePickerDialog(this, date,\n                    calendar.get(Calendar.YEAR),\n                    calendar.get(Calendar.MONTH),\n                    calendar.get((Calendar.DAY_OF_MONTH)))\n                    .show()\n        }\n    }\n\n    private fun displayDate(dateTime: DateTime) {\n        currentDate = dateTime\n        currentDateTextView.text = dateTime.toLocalDate().toString()\n    }\n\n    override fun onMenuItemClick(item: MenuItem?) = when (item?.itemId) {\n        R.id.menuSortByLocation -> {\n            presenter.onSortChanged(RoomOrder.LOCATION)\n            true\n        }\n        R.id.menuSortByName -> {\n            presenter.onSortChanged(RoomOrder.NAME)\n            true\n        }\n        R.id.menuSortBySize -> {\n            presenter.onSortChanged(RoomOrder.SIZE)\n            true\n        }\n        R.id.menuSortByCapacity -> {\n            presenter.onSortChanged(RoomOrder.CAPACITY)\n            true\n        }\n        else -> false\n    }\n\n    override fun onDestroy() {\n        super.onDestroy()\n        presenter.onViewDestroyed()\n    }\n\n    private fun showSortPopup(v: View) {\n        val popup = PopupMenu(this, v)\n        popup.setOnMenuItemClickListener(this)\n        val inflater = popup.menuInflater\n        inflater.inflate(R.menu.sort_actions, popup.menu)\n        popup.show()\n    }\n\n    @SuppressLint(\"InflateParams\")\n    private fun showFilterPopup(v: ViewGroup) {\n        val popupWindow = this.filterPopupWindow ?: layoutInflater.inflate(R.layout.popup_filter, null).run {\n            val popupWindow = PopupWindow(\n                    this,\n                    ViewGroup.LayoutParams.MATCH_PARENT,\n                    ViewGroup.LayoutParams.WRAP_CONTENT\n            )\n            popupWindow.isOutsideTouchable = true\n            if (Build.VERSION.SDK_INT >= 21) {\n                popupWindow.elevation = 8.0f\n            }\n\n            filterByNameTextBox.afterTextChanged { presenter.onAddOrRemoveFilter(it) }\n            isAvailableCheckbox.setOnCheckedChangeListener { _, checked -> presenter.onAddOrRemoveIsAvailableFilter(checked) }\n            popupWindow\n        }\n\n        val bookFilter = presenter.getCurrentBookFilter()\n        with(popupWindow) {\n            contentView.filterByNameTextBox.setText(bookFilter.name)\n            contentView.isAvailableCheckbox.isChecked = bookFilter.isAvailable\n            isFocusable = true\n            update()\n        }\n        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n            popupWindow.showAsDropDown(v, Gravity.BOTTOM, 0, 0)\n        } else {\n            popupWindow.showAsDropDown(v, 0, 0)\n        }\n    }\n\n    override fun onRoomItemClick(room: Room) {\n        val intent = RoomDetailsActivity.create(this, currentDate.millis, room)\n        startActivity(intent)\n    }\n\n    override fun showRooms(rooms: List<Room>, showSections: Boolean) {\n        adapter.set(rooms, showSections)\n    }\n\n    override fun showLoading() {\n        loadingContainer.visibility = View.VISIBLE\n    }\n\n    override fun hideLoading() {\n        loadingContainer.visibility = View.GONE\n        swipeRefreshContainer.isRefreshing = false\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/MainContract.kt",
    "content": "package de.ehsun.smartbooking.ui.main\n\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.entities.RoomFilter\nimport de.ehsun.smartbooking.entities.RoomOrder\nimport de.ehsun.smartbooking.ui.base.BasePresenterContract\nimport de.ehsun.smartbooking.ui.base.BaseViewContract\n\ninterface MainContract {\n\n    interface View : BaseViewContract {\n        fun showRooms(rooms: List<Room>, showSections: Boolean)\n        fun showLoading()\n        fun hideLoading()\n    }\n\n    interface Presenter : BasePresenterContract<View> {\n        fun onSortChanged(sort: RoomOrder)\n        fun onFilterChanged(roomFilter: RoomFilter)\n        fun onAddOrRemoveFilter(filter: String)\n        fun getCurrentSortOrder(): RoomOrder\n        fun getCurrentBookFilter(): RoomFilter\n        fun onAddOrRemoveIsAvailableFilter(isAdded: Boolean)\n        fun onRefreshBooks()\n        fun onDateChanged(timestamp: Long)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/MainPresenter.kt",
    "content": "package de.ehsun.smartbooking.ui.main\n\nimport de.ehsun.smartbooking.entities.RoomFilter\nimport de.ehsun.smartbooking.entities.RoomOrder\nimport de.ehsun.smartbooking.entities.RoomRequest\nimport de.ehsun.smartbooking.model.repository.room.RoomRepository\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\nimport io.reactivex.disposables.CompositeDisposable\nimport io.reactivex.rxkotlin.plusAssign\nimport org.joda.time.DateTime\n\nclass MainPresenter(private var roomRepository: RoomRepository,\n                    private var schedulerProvider: SchedulerProvider) : MainContract.Presenter {\n\n    private lateinit var view: MainContract.View\n    private val compositeDisposable = CompositeDisposable()\n\n    private var sortOrder: RoomOrder = RoomOrder.LOCATION\n    private var roomFilter: RoomFilter = RoomFilter.ALL_BOOKS\n\n    override fun onBindView(view: MainContract.View) {\n        this.view = view\n    }\n\n    override fun onViewInitialized() {\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = true)\n    }\n\n    private fun showBooks(timestamp: Long, sortOrder: RoomOrder, roomFilter: RoomFilter, requestFreshDate: Boolean) {\n        view.showLoading()\n        compositeDisposable += roomRepository.getRooms(RoomRequest(timestamp), sortOrder, roomFilter, requestFreshDate)\n                .subscribeOn(schedulerProvider.ioScheduler)\n                .observeOn(schedulerProvider.mainScheduler)\n                .subscribe({ rooms ->\n                    view.showRooms(rooms, sortOrder == RoomOrder.LOCATION)\n                    view.hideLoading()\n                }, { throwable -> view.showErrorMessage(throwable.localizedMessage) })\n    }\n\n    override fun onViewDestroyed() {\n        compositeDisposable.clear()\n    }\n\n    private var timestamp: Long = DateTime().millis\n\n    override fun onRefreshBooks() {\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = true)\n    }\n\n    override fun onSortChanged(sort: RoomOrder) {\n        this.sortOrder = sort\n        showBooks(timestamp, sort, roomFilter, requestFreshDate = false)\n    }\n\n    override fun onFilterChanged(roomFilter: RoomFilter) {\n        this.roomFilter = roomFilter\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = false)\n    }\n\n    override fun onAddOrRemoveFilter(filter: String) {\n        roomFilter = roomFilter.copy(name = filter)\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = false)\n\n    }\n\n    override fun onAddOrRemoveIsAvailableFilter(isAdded: Boolean) {\n        roomFilter = roomFilter.copy(isAvailable = isAdded)\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = false)\n    }\n\n    override fun onDateChanged(timestamp: Long) {\n        this.timestamp = timestamp\n        showBooks(timestamp, sortOrder, roomFilter, requestFreshDate = true)\n    }\n\n    override fun getCurrentSortOrder(): RoomOrder = sortOrder\n\n    override fun getCurrentBookFilter(): RoomFilter = roomFilter\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/adapter/RoomAdapter.kt",
    "content": "package de.ehsun.smartbooking.ui.main.adapter\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.ui.main.viewholder.LocationViewHolder\nimport de.ehsun.smartbooking.ui.main.viewholder.RoomViewHolder\nimport de.ehsun.smartbooking.ui.main.viewholder.RoomViewHolder.RoomListener\n\nclass RoomAdapter(var roomEventListener: RoomEventListener) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {\n\n    companion object {\n        const val ITEM_TYPE_LOCATION = 1\n        const val ITEM_TYPE_BOOK = 2\n    }\n\n    private val items = mutableListOf<Item>()\n    private val rooms = mutableListOf<Room>()\n    private val roomViewHolder = object : RoomListener {\n        override fun onRoomClick(room: Room) {\n            roomEventListener.onRoomItemClick(room)\n        }\n    }\n\n    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) =\n            when (viewType) {\n                ITEM_TYPE_BOOK -> RoomViewHolder.newInstance(parent, roomViewHolder)\n                ITEM_TYPE_LOCATION -> LocationViewHolder.newInstance(parent)\n                else -> RoomViewHolder.newInstance(parent, roomViewHolder)\n            }\n\n    override fun getItemCount() = items.size\n\n    override fun getItemViewType(position: Int) = items[position].type\n\n    override fun onBindViewHolder(holder: RecyclerView.ViewHolder?, position: Int) {\n        when (holder) {\n            is LocationViewHolder -> {\n                val location = (items[position] as Item.LocationItem).title\n                holder.onBindView(location)\n            }\n            is RoomViewHolder -> {\n                val room = (items[position] as Item.RoomItem).room\n                holder.onBindView(room)\n            }\n        }\n    }\n\n    fun set(rooms: List<Room>, showSections: Boolean) {\n        this.rooms.clear()\n        this.rooms.addAll(rooms)\n        regenerateItems(showSections)\n        notifyDataSetChanged()\n    }\n\n    private fun regenerateItems(showSections: Boolean) {\n        this.items.clear()\n        this.items += when (showSections) {\n            true -> rooms.groupBy { it.location }\n                    .flatMap { (location, books) ->\n                        val items = mutableListOf<Item>()\n                        items.add(Item.LocationItem(location))\n                        items.addAll(books.map { Item.RoomItem(it) })\n                        items\n                    }\n            false -> rooms.map { Item.RoomItem(it) }\n        }\n    }\n\n    sealed class Item(val type: Int) {\n        class LocationItem(val title: String) : Item(ITEM_TYPE_LOCATION)\n        class RoomItem(val room: Room) : Item(ITEM_TYPE_BOOK)\n    }\n\n    interface RoomEventListener {\n        fun onRoomItemClick(room: Room)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/viewholder/LocationViewHolder.kt",
    "content": "package de.ehsun.smartbooking.ui.main.viewholder\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.R\nimport kotlinx.android.synthetic.main.list_item_location_item.view.*\n\nclass LocationViewHolder private constructor(itemView: View) : RecyclerView.ViewHolder(itemView) {\n\n    companion object {\n        fun newInstance(parent: ViewGroup?): LocationViewHolder {\n            val view = LayoutInflater.from(parent?.context).inflate(R.layout.list_item_location_item, parent, false)\n            return LocationViewHolder(view)\n        }\n    }\n\n    fun onBindView(title: String) {\n        with(itemView) {\n            locationName.text = title\n        }\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/main/viewholder/RoomViewHolder.kt",
    "content": "package de.ehsun.smartbooking.ui.main.viewholder\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport com.squareup.picasso.Picasso\nimport de.ehsun.smartbooking.R\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.utils.extension.dp2px\nimport kotlinx.android.synthetic.main.list_item_room_item.view.*\n\nclass RoomViewHolder private constructor(itemView: View) : RecyclerView.ViewHolder(itemView) {\n\n    companion object {\n        private var roomListener: RoomListener? = null\n\n        fun newInstance(parent: ViewGroup, roomListener: RoomListener): RoomViewHolder {\n            this.roomListener = roomListener\n            val view = LayoutInflater.from(parent.context).inflate(R.layout.list_item_room_item, parent, false)\n            return RoomViewHolder(view)\n        }\n    }\n\n    fun onBindView(room: Room) {\n        with(itemView) {\n            roomNameTextView.text = context.getString(R.string.room_number, room.name)\n            roomSizeTextView.text = context.getString(R.string.room_size, room.size)\n\n            Picasso.with(context)\n                    .load(room.images[0])\n                    .placeholder(R.drawable.ic_photo_24dp)\n                    .error(R.drawable.ic_photo_24dp)\n                    .resize(context.dp2px(88f).toInt(), context.dp2px(88f).toInt())\n                    .centerCrop()\n                    .into(roomPicImageView)\n\n            timelineView.setAvailableTimeRange(room.available)\n\n            roomContainer.setOnClickListener { roomListener?.onRoomClick(room) }\n        }\n    }\n\n    interface RoomListener {\n        fun onRoomClick(room: Room)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/RoomDetailsActivity.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails\n\nimport android.content.Context\nimport android.content.Intent\nimport android.os.Bundle\nimport android.support.v7.app.AlertDialog\nimport android.support.v7.widget.LinearLayoutManager\nimport android.text.TextUtils\nimport android.view.MenuItem\nimport android.view.View\nimport de.ehsun.coloredtimebar.SimpleTime\nimport de.ehsun.smartbooking.R\nimport de.ehsun.smartbooking.entities.Attendee\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.entities.BookingResult\nimport de.ehsun.smartbooking.entities.Room\nimport de.ehsun.smartbooking.ui.base.BaseActivity\nimport de.ehsun.smartbooking.ui.roomdetails.adapter.AttendeeAdapter\nimport de.ehsun.smartbooking.ui.roomdetails.adapter.EquipmentAdapter\nimport de.ehsun.smartbooking.ui.roomdetails.adapter.ImageSliderAdapter\nimport de.ehsun.smartbooking.utils.ValidationUtil\nimport kotlinx.android.synthetic.main.activity_room_details.*\nimport kotlinx.android.synthetic.main.view_submit_event.*\nimport java.text.SimpleDateFormat\nimport java.util.*\nimport javax.inject.Inject\n\nclass RoomDetailsActivity : BaseActivity(),\n        RoomDetailsContract.View,\n        AttendeeAdapter.AttendeeEventListener {\n\n    @Inject lateinit var presenter: RoomDetailsContract.Presenter\n\n    private lateinit var equipmentAdapter: EquipmentAdapter\n    private lateinit var attendeeAdapter: AttendeeAdapter\n    private var submitDialog: AlertDialog? = null\n    private var listOfAttendees = mutableListOf<Attendee>()\n    private val bookingInfo = BookingInfo()\n\n    companion object {\n        private const val KEY_ROOM_DETAILS = \"KEY_ROOM_DETAILS\"\n        private const val KEY_CURRENT_DATE = \"KEY_CURRENT_DATE\"\n        private val TIME_FORMATTER = SimpleDateFormat(\"HH:mm\", Locale.GERMAN)\n\n        @JvmStatic\n        fun create(context: Context, currentDate: Long, room: Room) = Intent(context, RoomDetailsActivity::class.java).apply {\n            this.currentDate = currentDate\n            this.room = room\n        }\n\n        private var Intent.currentDate: Long\n            get() = this.getLongExtra(KEY_CURRENT_DATE, 0)\n            set(value) {\n                this.putExtra(KEY_CURRENT_DATE, value)\n            }\n        private var Intent.room: Room\n            get() = this.getParcelableExtra(KEY_ROOM_DETAILS)\n            set(value) {\n                this.putExtra(KEY_ROOM_DETAILS, value)\n            }\n    }\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_room_details)\n    }\n\n    override fun onOptionsItemSelected(item: MenuItem) = when (item.itemId) {\n        android.R.id.home -> {\n            finish()\n            true\n        }\n        else -> false\n    }\n\n    override fun injectDependencies() {\n        applicationComponent.inject(this)\n        presenter.onBindView(this)\n    }\n\n    override fun initViews() {\n        equipmentAdapter = EquipmentAdapter()\n        attendeeAdapter = AttendeeAdapter(this)\n\n        setSupportActionBar(toolbar)\n        supportActionBar?.setDisplayShowHomeEnabled(true)\n        supportActionBar?.setDisplayHomeAsUpEnabled(true)\n        showRooms()\n\n        val equipmentLayoutManager = LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false)\n        equipmentRecyclerView.layoutManager = equipmentLayoutManager\n        equipmentRecyclerView.adapter = equipmentAdapter\n\n        val attendeeLayoutManager = LinearLayoutManager(this)\n        attendeesRecyclerView.layoutManager = attendeeLayoutManager\n        attendeesRecyclerView.adapter = attendeeAdapter\n\n        addAttendeeButton.setOnClickListener { _ ->\n            presenter.onAddAttendeeRequested(\n                    attendeeNameEditText.text.toString(),\n                    attendeeEmailEditText.text.toString(),\n                    attendeePhoneEditText.text.toString()\n            )\n        }\n        submitButton.setOnClickListener {\n            showSubmitDialog()\n        }\n        presenter.onViewInitialized()\n    }\n\n    private fun showSubmitDialog() {\n        submitDialog = AlertDialog.Builder(this)\n                .setTitle(R.string.dialog_title)\n                .setView(R.layout.view_submit_event)\n                .create()\n\n        submitDialog?.setCanceledOnTouchOutside(false)\n\n        submitDialog?.setOnShowListener {\n            submitDialog?.submitEventButton?.setOnClickListener {\n                bookingInfo.attendees = listOfAttendees\n                bookingInfo.booking.date = intent.currentDate / 1000L\n                bookingInfo.booking.room = intent.room.name\n                bookingInfo.booking.title = submitDialog?.eventTitleEditText?.text.toString()\n                bookingInfo.booking.description = submitDialog?.eventDescriptionEditText?.text.toString()\n                bookingInfo.booking.startTime = timelinePicker.selectedTimeRange.start.toTimeStamp()\n                bookingInfo.booking.endTime = timelinePicker.selectedTimeRange.endInclusive.toTimeStamp()\n                presenter.onSubmitBookingRequested(bookingInfo)\n            }\n        }\n        submitDialog?.show()\n    }\n\n    private fun showRooms() {\n        val room = intent.room\n        title = getString(R.string.room_number, room.name)\n        roomNameTextView.text = getString(R.string.room_number_and_floor, room.name, room.location)\n        equipmentAdapter.set(room.equipment)\n        sizeTextView.text = getString(R.string.room_capacity_text_view, room.size, room.capacity)\n        imageViewPager.adapter = ImageSliderAdapter(this, room.images)\n        timelinePicker.setAvailableTimeRange(room.available)\n        timelinePicker.setOnSelectedTimeRangeChangedListener { from, to ->\n            selectedTimeTextView.text = getString(R.string.from_to, from.format(), to.format())\n        }\n        indicator.setViewPager(imageViewPager)\n    }\n\n    override fun showSuccessfulMessage(bookingResult: BookingResult) {\n        submitDialog?.dismiss()\n        AlertDialog.Builder(this)\n                .setMessage(when (bookingResult.success) {\n                    true -> R.string.submit_completed\n                    false -> R.string.submit_faild\n                })\n                .setPositiveButton(R.string.ok, null)\n                .show()\n    }\n\n    override fun showLoading() {\n        loadingContainer.visibility = View.VISIBLE\n    }\n\n    override fun hideLoading() {\n        loadingContainer.visibility = View.GONE\n    }\n\n    override fun showInvalidSubmitRequest() {\n        val thereIsNoAttendee = bookingInfo.attendees.isEmpty()\n\n        if (thereIsNoAttendee) {\n            AlertDialog.Builder(this)\n                    .setMessage(R.string.there_is_noe_attendee)\n                    .setPositiveButton(R.string.ok, null)\n                    .show()\n        }\n    }\n\n    override fun showInvalidAttendeeFieldValues() {\n        val isNameValid = !TextUtils.isEmpty(attendeeNameEditText.text.toString())\n        val isPhoneValid = !TextUtils.isEmpty(attendeePhoneEditText.text.toString())\n        val isEmailValid = ValidationUtil.isValidEmail(attendeeEmailEditText.text.toString())\n\n        attendeeNameEditText.error = null\n        attendeePhoneEditText.error = null\n        attendeeEmailEditText.error = null\n\n        if (!isNameValid) {\n            attendeeNameEditText.error = getString(R.string.error_invalid_name)\n            return\n        }\n        if (!isEmailValid) {\n            attendeeEmailEditText.error = getString(R.string.error_invalid_email)\n            return\n        }\n        if (!isPhoneValid) {\n            attendeePhoneEditText.error = getString(R.string.error_invalid_phone)\n            return\n        }\n    }\n\n    override fun addAttendee(attendee: Attendee) {\n        listOfAttendees.add(attendee)\n        attendeeAdapter.set(listOfAttendees)\n    }\n\n    override fun onAttendeeItemClick(attendee: Attendee) {\n        AlertDialog.Builder(this)\n                .setMessage(getString(R.string.attendee_details,\n                        attendee.name,\n                        attendee.email,\n                        attendee.phone))\n                .setPositiveButton(R.string.ok, null)\n                .show()\n    }\n\n    override fun onAttendeeItemCloseClick(attendee: Attendee) {\n        listOfAttendees.remove(attendee)\n        attendeeAdapter.set(listOfAttendees)\n    }\n\n\n    override fun onDestroy() {\n        super.onDestroy()\n        presenter.onViewDestroyed()\n    }\n\n    private fun SimpleTime.format() = Date().let {\n        it.hours = this.hour\n        it.minutes = this.minute\n        TIME_FORMATTER.format(it)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/RoomDetailsContract.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails\n\nimport de.ehsun.smartbooking.entities.Attendee\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.entities.BookingResult\nimport de.ehsun.smartbooking.ui.base.BasePresenterContract\nimport de.ehsun.smartbooking.ui.base.BaseViewContract\n\ninterface RoomDetailsContract {\n    interface View : BaseViewContract {\n        fun showLoading()\n        fun hideLoading()\n        fun showInvalidAttendeeFieldValues()\n        fun showInvalidSubmitRequest()\n        fun addAttendee(attendee: Attendee)\n        fun showSuccessfulMessage(bookingResult: BookingResult)\n    }\n\n    interface Presenter : BasePresenterContract<View> {\n        fun onAddAttendeeRequested(name: String, email: String, phone: String)\n        fun onSubmitBookingRequested(bookingInfo: BookingInfo)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/RoomDetailsPresenter.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails\n\nimport android.text.TextUtils\nimport de.ehsun.smartbooking.entities.Attendee\nimport de.ehsun.smartbooking.entities.BookingInfo\nimport de.ehsun.smartbooking.model.repository.booking.BookingRepository\nimport de.ehsun.smartbooking.utils.ValidationUtil\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\nimport io.reactivex.disposables.CompositeDisposable\nimport io.reactivex.rxkotlin.plusAssign\n\nclass RoomDetailsPresenter(private var bookingRepository: BookingRepository,\n                           private var schedulerProvider: SchedulerProvider) : RoomDetailsContract.Presenter {\n\n    private lateinit var view: RoomDetailsContract.View\n    private val compositeDisposable = CompositeDisposable()\n\n    override fun onBindView(view: RoomDetailsContract.View) {\n        this.view = view\n    }\n\n    override fun onViewInitialized() {\n    }\n\n    override fun onViewDestroyed() {\n    }\n\n    override fun onAddAttendeeRequested(name: String, email: String, phone: String) {\n        if (!isInputFieldsValid(name, email, phone)) {\n            view.showInvalidAttendeeFieldValues()\n            return\n        }\n\n        val attendee = Attendee()\n        attendee.name = name\n        attendee.email = email\n        attendee.phone = phone\n\n        view.addAttendee(attendee)\n    }\n\n    override fun onSubmitBookingRequested(bookingInfo: BookingInfo) {\n        if (bookingInfo.attendees.isEmpty()) {\n            view.showInvalidSubmitRequest()\n            return\n        }\n        view.showLoading()\n        compositeDisposable += bookingRepository.saveBookingInfo(bookingInfo)\n                .subscribeOn(schedulerProvider.ioScheduler)\n                .observeOn(schedulerProvider.mainScheduler)\n                .subscribe({ result ->\n                    view.showSuccessfulMessage(result)\n                    view.hideLoading()\n                }, { throwable -> view.showErrorMessage(throwable.localizedMessage) })\n    }\n\n\n    private fun isInputFieldsValid(name: String, email: String, phone: String) =\n            !TextUtils.isEmpty(name) &&\n                    !TextUtils.isEmpty(phone) &&\n                    ValidationUtil.isValidEmail(email)\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/adapter/AttendeeAdapter.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails.adapter\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.entities.Attendee\nimport de.ehsun.smartbooking.ui.roomdetails.viewholder.AttendeeViewHolder\n\nclass AttendeeAdapter(var attendeeEventListener: AttendeeEventListener) : RecyclerView.Adapter<RecyclerView.ViewHolder>() {\n\n    private val attendees = mutableListOf<Attendee>()\n\n    private val attendeeListener = object : AttendeeViewHolder.AttendeeListener {\n        override fun onCloseClick(attendee: Attendee) {\n            attendeeEventListener.onAttendeeItemCloseClick(attendee)\n        }\n\n        override fun onAttendeeClick(attendee: Attendee) {\n            attendeeEventListener.onAttendeeItemClick(attendee)\n        }\n\n    }\n\n    override fun onBindViewHolder(holder: RecyclerView.ViewHolder?, position: Int) =\n            (holder as AttendeeViewHolder).onBindView(attendees[position])\n\n    override fun getItemCount() = attendees.size\n\n\n    override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int) =\n            AttendeeViewHolder.newInstance(parent, attendeeListener)\n\n    fun set(attendees: List<Attendee>) {\n        this.attendees.clear()\n        this.attendees.addAll(attendees)\n        notifyDataSetChanged()\n    }\n\n    interface AttendeeEventListener {\n        fun onAttendeeItemClick(attendee: Attendee)\n        fun onAttendeeItemCloseClick(attendee: Attendee)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/adapter/EquipmentAdapter.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails.adapter\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.ui.roomdetails.viewholder.EquipmentViewHolder\n\nclass EquipmentAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder>() {\n\n    private val equipments = mutableListOf<String>()\n\n    override fun onBindViewHolder(holder: RecyclerView.ViewHolder?, position: Int) =\n            (holder as EquipmentViewHolder).onBindView(equipments[position])\n\n    override fun getItemCount() = equipments.size\n\n\n    override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int) =\n            EquipmentViewHolder.newInstance(parent)\n\n    fun set(equipments: List<String>) {\n        this.equipments.clear()\n        this.equipments.addAll(equipments)\n        notifyDataSetChanged()\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/adapter/ImageSliderAdapter.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails.adapter\n\nimport android.content.Context\nimport android.support.v4.view.PagerAdapter\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport com.squareup.picasso.Picasso\nimport de.ehsun.smartbooking.R\nimport kotlinx.android.synthetic.main.image_slide.view.*\n\nclass ImageSliderAdapter(val context: Context, val images: List<String>) : PagerAdapter() {\n    override fun isViewFromObject(view: View, obj: Any) = view == obj\n\n    override fun getCount() = images.size\n\n    override fun instantiateItem(container: ViewGroup, position: Int): Any {\n        val inflater = LayoutInflater.from(context)\n        val viewLayout = inflater.inflate(R.layout.image_slide, container, false)\n\n        with(viewLayout)\n        {\n            Picasso.with(context)\n                    .load(images[position])\n                    .into(slideImageView)\n            container.addView(viewLayout)\n        }\n\n        return viewLayout\n    }\n\n    override fun destroyItem(container: ViewGroup, position: Int, obj: Any) {\n        container.removeView(obj as View)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/viewholder/AttendeeViewHolder.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails.viewholder\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.R\nimport de.ehsun.smartbooking.entities.Attendee\nimport kotlinx.android.synthetic.main.list_item_attendee_item.view.*\n\nclass AttendeeViewHolder private constructor(itemView: View) : RecyclerView.ViewHolder(itemView) {\n\n    companion object {\n        private var attendeeListener: AttendeeListener? = null\n\n        fun newInstance(parent: ViewGroup?, attendeeListener: AttendeeListener): AttendeeViewHolder {\n            this.attendeeListener = attendeeListener\n            val view = LayoutInflater.from(parent?.context).inflate(R.layout.list_item_attendee_item, parent, false)\n            return AttendeeViewHolder(view)\n        }\n    }\n\n    fun onBindView(attendee: Attendee) {\n        with(itemView) {\n            attendeeNameTextView.text = attendee.name\n            attendeeRemoveImageView.setOnClickListener { attendeeListener?.onCloseClick(attendee) }\n            attendeeContainer.setOnClickListener { attendeeListener?.onAttendeeClick(attendee) }\n        }\n    }\n\n    interface AttendeeListener {\n        fun onCloseClick(attendee: Attendee)\n        fun onAttendeeClick(attendee: Attendee)\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/ui/roomdetails/viewholder/EquipmentViewHolder.kt",
    "content": "package de.ehsun.smartbooking.ui.roomdetails.viewholder\n\nimport android.support.v7.widget.RecyclerView\nimport android.view.LayoutInflater\nimport android.view.View\nimport android.view.ViewGroup\nimport de.ehsun.smartbooking.R\nimport kotlinx.android.synthetic.main.list_item_equipment_item.view.*\n\nclass EquipmentViewHolder private constructor(itemView: View) : RecyclerView.ViewHolder(itemView) {\n\n    companion object {\n        fun newInstance(parent: ViewGroup?): EquipmentViewHolder {\n            val view = LayoutInflater.from(parent?.context).inflate(R.layout.list_item_equipment_item, parent, false)\n            return EquipmentViewHolder(view)\n        }\n    }\n\n    fun onBindView(title: String) {\n        with(itemView) {\n            equipmentName.text = title\n        }\n    }\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/UtilsModule.kt",
    "content": "package de.ehsun.smartbooking.utils\n\nimport dagger.Module\nimport dagger.Provides\nimport de.ehsun.smartbooking.utils.scheduler.DefaultSchedulerProvider\nimport de.ehsun.smartbooking.utils.scheduler.SchedulerProvider\n\n@Module\nclass UtilsModule {\n\n    @Provides\n    fun provideSchedulerProvider(): SchedulerProvider =\n            DefaultSchedulerProvider()\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/ValidationUtil.kt",
    "content": "package de.ehsun.smartbooking.utils\n\nimport android.text.TextUtils\nimport android.util.Patterns\n\nobject ValidationUtil {\n    fun isValidEmail(text: String) =\n            !TextUtils.isEmpty(text) && Patterns.EMAIL_ADDRESS.matcher(text).matches()\n\n\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/extension/ContextExtensions.kt",
    "content": "package de.ehsun.smartbooking.utils.extension\n\nimport android.content.Context\nimport android.text.Editable\nimport android.text.TextWatcher\nimport android.util.TypedValue\nimport android.widget.EditText\nimport android.widget.TextView\n\nfun Context.dp2px(dp: Float): Float {\n    return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, resources.displayMetrics)\n}\n\nfun EditText.afterTextChanged(afterTextChanged: (String) -> Unit) {\n    this.addTextChangedListener(object : TextWatcher {\n        override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {\n        }\n\n        override fun onTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {\n        }\n\n        override fun afterTextChanged(editable: Editable?) {\n            afterTextChanged.invoke(editable.toString())\n        }\n    })\n}\n\nfun TextView.afterTextChanged(afterTextChanged: (String) -> Unit) {\n    this.addTextChangedListener(object : TextWatcher {\n        override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {\n        }\n\n        override fun onTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) {\n        }\n\n        override fun afterTextChanged(editable: Editable?) {\n            afterTextChanged.invoke(editable.toString())\n        }\n    })\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/gson/DateTimeDeserializer.kt",
    "content": "package de.ehsun.smartbooking.utils.gson\n\nimport com.google.gson.JsonDeserializationContext\nimport com.google.gson.JsonDeserializer\nimport com.google.gson.JsonElement\nimport com.google.gson.internal.bind.util.ISO8601Utils\nimport org.joda.time.DateTime\nimport java.lang.reflect.Type\nimport java.text.ParseException\nimport java.text.ParsePosition\n\nclass DateTimeDeserializer : JsonDeserializer<DateTime> {\n\n    override fun deserialize(json: JsonElement?, typeOfT: Type?, context: JsonDeserializationContext?): DateTime? {\n        return when {\n            json != null -> tryParse(json.asString)\n            else -> null\n        }\n    }\n\n    private fun tryParse(text: String): DateTime? {\n        return try {\n            DateTime(ISO8601Utils.parse(text, ParsePosition(0)))\n        } catch (ex: ParseException) {\n            null\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/gson/LocalDateDeserializer.kt",
    "content": "package de.ehsun.smartbooking.utils.gson\n\nimport com.google.gson.JsonDeserializationContext\nimport com.google.gson.JsonDeserializer\nimport com.google.gson.JsonElement\nimport com.google.gson.internal.bind.util.ISO8601Utils\nimport org.joda.time.LocalDate\nimport java.lang.reflect.Type\nimport java.text.ParseException\nimport java.text.ParsePosition\n\nclass LocalDateDeserializer : JsonDeserializer<LocalDate> {\n\n    override fun deserialize(json: JsonElement?, typeOfT: Type?, context: JsonDeserializationContext?): LocalDate? {\n        return when {\n            json != null -> tryParse(json.asString)\n            else -> null\n        }\n    }\n\n    private fun tryParse(text: String): LocalDate? {\n        return try {\n            LocalDate.fromDateFields(ISO8601Utils.parse(text, ParsePosition(0)))\n        } catch (ex: ParseException) {\n            null\n        }\n    }\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/scheduler/DefaultSchedulerProvider.kt",
    "content": "package de.ehsun.smartbooking.utils.scheduler\n\nimport io.reactivex.Scheduler\nimport io.reactivex.android.schedulers.AndroidSchedulers\nimport io.reactivex.schedulers.Schedulers\n\nclass DefaultSchedulerProvider : SchedulerProvider {\n\n    override val ioScheduler: Scheduler\n        get() = Schedulers.io()\n\n    override val computationScheduler: Scheduler\n        get() = Schedulers.computation()\n\n    override val mainScheduler: Scheduler\n        get() = AndroidSchedulers.mainThread()\n}"
  },
  {
    "path": "app/src/main/java/de/ehsun/smartbooking/utils/scheduler/SchedulerProvider.kt",
    "content": "package de.ehsun.smartbooking.utils.scheduler\n\nimport io.reactivex.Scheduler\n\ninterface SchedulerProvider {\n\n    val ioScheduler: Scheduler\n\n    val computationScheduler: Scheduler\n\n    val mainScheduler: Scheduler\n\n}"
  },
  {
    "path": "app/src/main/res/drawable/ic_arrow_drop_down_black_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M7,10l5,5 5,-5z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_chevron_left_black_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M15.41,7.41L14,6l-6,6 6,6 1.41,-1.41L10.83,12z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_chevron_right_black_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M10,6L8.59,7.41 13.17,12l-4.58,4.59L10,18l6,-6z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_close_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n    android:viewportHeight=\"512.069\"\n    android:viewportWidth=\"512.069\">\n    <group\n        android:translateX=\"151.03448\"\n        android:translateY=\"107.534485\">\n        <path\n            android:fillColor=\"#129b53\"\n            android:pathData=\"M148.33,256.73l-76.55,-7.41l0,43.21z\" />\n        <path\n            android:fillColor=\"#009eda\"\n            android:pathData=\"M63.14,75.23l-20.99,-23.46l-13.58,7.41l0,32.1z\" />\n        <path\n            android:fillColor=\"#313687\"\n            android:pathData=\"M71.78,83.87l0,-12.35l-8.64,3.7l-20.99,-23.46l48.15,-22.22l58.03,27.16l-58.03,48.15z\" />\n        <path\n            android:fillColor=\"#e61c7e\"\n            android:pathData=\"M148.33,56.71l-58.03,-27.16l58.03,-25.93z\" />\n        <path\n            android:fillColor=\"#9c2c8b\"\n            android:pathData=\"M148.33,56.71l0,54.33l-22.22,32.1l-35.81,-38.28z\" />\n        <path\n            android:fillColor=\"#f08031\"\n            android:pathData=\"M90.3,104.86l-18.52,16.05l0,103.71l54.33,-81.49z\" />\n        <path\n            android:fillColor=\"#fce933\"\n            android:pathData=\"M126.1,143.14l-54.33,81.49l0,24.69l76.55,-82.72z\" />\n        <path\n            android:fillColor=\"#90bf49\"\n            android:pathData=\"M148.33,166.6l-76.55,82.72l76.55,7.41z\" />\n        <path\n            android:fillColor=\"#e8313e\"\n            android:pathData=\"M126.1,143.14l22.22,-32.1l0,55.56z\" />\n        <path\n            android:fillColor=\"#009eda\"\n            android:pathData=\"M71.78,120.91l18.52,-16.05l-18.52,-20.99z\" />\n    </group>\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_one_aim.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"210dp\"\n    android:height=\"297dp\"\n    android:viewportHeight=\"297.0\"\n    android:viewportWidth=\"210.0\">\n    <path\n        android:fillColor=\"#129b53\"\n        android:pathData=\"M148.33,256.73l-76.55,-7.41l0,43.21z\" />\n    <path\n        android:fillColor=\"#009eda\"\n        android:pathData=\"M63.14,75.23l-20.99,-23.46l-13.58,7.41l0,32.1z\" />\n    <path\n        android:fillColor=\"#313687\"\n        android:pathData=\"M71.78,83.87l0,-12.35l-8.64,3.7l-20.99,-23.46l48.15,-22.22l58.03,27.16l-58.03,48.15z\" />\n    <path\n        android:fillColor=\"#e61c7e\"\n        android:pathData=\"M148.33,56.71l-58.03,-27.16l58.03,-25.93z\" />\n    <path\n        android:fillColor=\"#9c2c8b\"\n        android:pathData=\"M148.33,56.71l0,54.33l-22.22,32.1l-35.81,-38.28z\" />\n    <path\n        android:fillColor=\"#f08031\"\n        android:pathData=\"M90.3,104.86l-18.52,16.05l0,103.71l54.33,-81.49z\" />\n    <path\n        android:fillColor=\"#fce933\"\n        android:pathData=\"M126.1,143.14l-54.33,81.49l0,24.69l76.55,-82.72z\" />\n    <path\n        android:fillColor=\"#90bf49\"\n        android:pathData=\"M148.33,166.6l-76.55,82.72l76.55,7.41z\" />\n    <path\n        android:fillColor=\"#e8313e\"\n        android:pathData=\"M126.1,143.14l22.22,-32.1l0,55.56z\" />\n    <path\n        android:fillColor=\"#009eda\"\n        android:pathData=\"M71.78,120.91l18.52,-16.05l-18.52,-20.99z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_photo_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#91000000\"\n        android:pathData=\"M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/drawable/ic_tune_black_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M3,17v2h6v-2L3,17zM3,5v2h10L13,5L3,5zM13,21v-2h8v-2h-8v-2h-2v6h2zM7,9v2L3,11v2h4v2h2L9,9L7,9zM21,13v-2L11,11v2h10zM15,9h2L17,7h4L21,5h-4L17,3h-2v6z\" />\n</vector>\n"
  },
  {
    "path": "app/src/main/res/font/cera.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<font-family xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n    <font\n        app:font=\"@font/cera_thin\"\n        app:fontStyle=\"normal\"\n        app:fontWeight=\"200\" />\n    <font\n        app:font=\"@font/cera_medium\"\n        app:fontStyle=\"normal\"\n        app:fontWeight=\"400\" />\n    <font\n        app:font=\"@font/cera_italic\"\n        app:fontStyle=\"italic\"\n        app:fontWeight=\"400\" />\n    <font\n        app:font=\"@font/cera_bold\"\n        app:fontStyle=\"normal\"\n        app:fontWeight=\"800\" />\n</font-family>"
  },
  {
    "path": "app/src/main/res/font-v26/cera.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<font-family xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <font\n        android:font=\"@font/cera_thin\"\n        android:fontStyle=\"normal\"\n        android:fontWeight=\"200\" />\n    <font\n        android:font=\"@font/cera_medium\"\n        android:fontStyle=\"normal\"\n        android:fontWeight=\"400\" />\n    <font\n        android:font=\"@font/cera_italic\"\n        android:fontStyle=\"italic\"\n        android:fontWeight=\"400\" />\n    <font\n        android:font=\"@font/cera_bold\"\n        android:fontStyle=\"normal\"\n        android:fontWeight=\"800\" />\n</font-family>"
  },
  {
    "path": "app/src/main/res/layout/activity_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\">\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/activity_main.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/mainContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:clipToPadding=\"false\"\n    android:fitsSystemWindows=\"false\">\n\n\n    <android.support.design.widget.AppBarLayout\n        android:id=\"@+id/app_bar_layout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"@dimen/appbar_height_expanded\">\n\n        <android.support.design.widget.CollapsingToolbarLayout\n            android:id=\"@+id/collapsing_toolbar\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"@dimen/collapsingToolbar_height_expanded\"\n            app:contentScrim=\"?attr/colorPrimary\"\n            app:expandedTitleMarginEnd=\"@dimen/keyline_1\"\n            app:expandedTitleMarginStart=\"@dimen/keyline_1\"\n            app:layout_scrollFlags=\"scroll|exitUntilCollapsed\">\n\n            <android.support.v7.widget.Toolbar\n                android:id=\"@+id/toolbar\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"@dimen/appbar_height_collapsed\"\n                app:layout_collapseMode=\"pin\"\n                app:theme=\"@style/ToolBarStyle\" />\n\n            <RelativeLayout\n                android:id=\"@+id/linear_layout_title_container\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"center\"\n                app:layout_collapseMode=\"pin\">\n\n                <ImageView\n                    android:id=\"@+id/previousDateImageButton\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_centerVertical=\"true\"\n                    android:layout_marginEnd=\"@dimen/spacing_normal\"\n                    android:layout_toStartOf=\"@id/currentDateTextView\"\n                    android:contentDescription=\"@string/left\"\n                    android:src=\"@drawable/ic_chevron_left_black_24dp\"\n                    android:tint=\"@color/colorWhite\" />\n\n                <TextView\n                    android:id=\"@+id/currentDateTextView\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_centerInParent=\"true\"\n                    android:layout_gravity=\"center_vertical|center_horizontal\"\n                    android:textAlignment=\"center\"\n                    android:textColor=\"@color/colorWhite\"\n                    android:textSize=\"@dimen/text_size_xxx_large\"\n                    android:textStyle=\"bold\" />\n\n                <ImageView\n                    android:id=\"@+id/nextDateImageButton\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_centerVertical=\"true\"\n                    android:layout_marginStart=\"@dimen/spacing_normal\"\n                    android:layout_toEndOf=\"@id/currentDateTextView\"\n                    android:contentDescription=\"@string/right\"\n                    android:src=\"@drawable/ic_chevron_right_black_24dp\"\n                    android:tint=\"@color/colorWhite\" />\n            </RelativeLayout>\n        </android.support.design.widget.CollapsingToolbarLayout>\n\n        <RelativeLayout\n            android:id=\"@+id/layout_tools_container\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"@dimen/subtitle_height\"\n            android:layout_gravity=\"bottom\">\n\n            <RelativeLayout\n                android:id=\"@+id/filterViewGroup\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:clickable=\"true\"\n                android:focusable=\"true\">\n\n                <ImageView\n                    android:id=\"@+id/filterImageButton\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_alignParentStart=\"true\"\n                    android:layout_gravity=\"center_horizontal\"\n                    android:layout_marginEnd=\"@dimen/keyline_1\"\n                    android:layout_marginLeft=\"@dimen/keyline_1\"\n                    android:layout_marginRight=\"@dimen/keyline_1\"\n                    android:layout_marginStart=\"@dimen/keyline_1\"\n                    android:layout_marginTop=\"@dimen/spacing_normal\"\n                    android:contentDescription=\"@string/filters\"\n                    android:src=\"@drawable/ic_tune_black_24dp\"\n                    android:tint=\"@color/colorWhite\" />\n\n                <TextView\n                    android:id=\"@+id/filterTextView\"\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_marginEnd=\"@dimen/keyline_1\"\n                    android:layout_marginTop=\"@dimen/spacing_normal\"\n                    android:layout_toEndOf=\"@id/filterImageButton\"\n                    android:text=\"@string/filters\"\n                    android:textColor=\"@color/colorWhite\"\n                    android:textSize=\"@dimen/text_size_normal\" />\n            </RelativeLayout>\n\n\n            <ImageView\n                android:id=\"@+id/sortImageButton\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_alignParentEnd=\"true\"\n                android:layout_gravity=\"center_horizontal\"\n                android:layout_marginEnd=\"@dimen/keyline_1\"\n                android:layout_marginTop=\"@dimen/spacing_normal\"\n                android:contentDescription=\"@string/sort\"\n                android:src=\"@drawable/ic_arrow_drop_down_black_24dp\"\n                android:tint=\"@color/colorWhite\" />\n\n            <TextView\n                android:id=\"@+id/sortTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginStart=\"@dimen/keyline_1\"\n                android:layout_marginTop=\"@dimen/spacing_normal\"\n                android:layout_toStartOf=\"@id/sortImageButton\"\n                android:text=\"@string/sort\"\n                android:textColor=\"@color/colorWhite\"\n                android:textSize=\"@dimen/text_size_normal\"\n                tools:ignore=\"RelativeOverlap\" />\n\n        </RelativeLayout>\n    </android.support.design.widget.AppBarLayout>\n\n    <android.support.v4.widget.SwipeRefreshLayout\n        android:id=\"@+id/swipeRefreshContainer\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:layout_behavior=\"@string/appbar_scrolling_view_behavior\">\n\n        <android.support.v7.widget.RecyclerView\n            android:id=\"@+id/booksRecyclerView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\" />\n    </android.support.v4.widget.SwipeRefreshLayout>\n\n    <include\n        android:id=\"@+id/loadingContainer\"\n        layout=\"@layout/view_loading\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:visibility=\"gone\" />\n\n\n</android.support.design.widget.CoordinatorLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/activity_room_details.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/mainContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"false\">\n\n    <android.support.design.widget.AppBarLayout\n        android:id=\"@+id/app_bar_layout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\">\n\n        <android.support.design.widget.CollapsingToolbarLayout\n            android:id=\"@+id/collapsing_toolbar\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"@dimen/image_slider_height\"\n            app:collapsedTitleTextAppearance=\"@style/ActionBarTitleStyleWhite\"\n            app:contentScrim=\"?attr/colorPrimary\"\n            app:expandedTitleTextAppearance=\"@style/ActionBarTitleStyleWhite\"\n            app:layout_scrollFlags=\"scroll|exitUntilCollapsed\">\n\n            <android.support.v4.view.ViewPager\n                android:id=\"@+id/imageViewPager\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"match_parent\"\n                android:background=\"@color/colorGrey50\"\n                app:layout_collapseMode=\"parallax\"\n                app:layout_collapseParallaxMultiplier=\"0.5\" />\n\n            <com.viewpagerindicator.CirclePageIndicator\n                android:id=\"@+id/indicator\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"bottom|center_vertical\"\n                android:padding=\"@dimen/spacing_normal\"\n                app:centered=\"true\"\n                app:fillColor=\"@color/colorAccent\"\n                app:layout_collapseMode=\"parallax\"\n                app:layout_collapseParallaxMultiplier=\"0.8\"\n                app:pageColor=\"@color/colorGrey900\"\n                app:snap=\"true\" />\n\n            <android.support.v7.widget.Toolbar\n                android:id=\"@+id/toolbar\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"@dimen/appbar_height_collapsed\"\n                app:layout_collapseMode=\"pin\"\n                app:layout_collapseParallaxMultiplier=\"0.8\"\n                app:layout_scrollFlags=\"scroll|enterAlways|snap\"\n                app:theme=\"@style/ToolBarStyle\"\n                app:titleTextColor=\"@color/colorWhite\" />\n        </android.support.design.widget.CollapsingToolbarLayout>\n    </android.support.design.widget.AppBarLayout>\n\n    <android.support.v4.widget.NestedScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:layout_behavior=\"@string/appbar_scrolling_view_behavior\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:orientation=\"vertical\"\n            android:padding=\"@dimen/spacing_normal\">\n\n            <TextView\n                android:id=\"@+id/roomNameTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_xx_large\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:id=\"@+id/sizeTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_large\" />\n\n            <android.support.v7.widget.RecyclerView\n                android:id=\"@+id/equipmentRecyclerView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\" />\n\n            <FrameLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginTop=\"@dimen/spacing_normal\">\n\n                <View\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"1dp\"\n                    android:layout_gravity=\"center_vertical\"\n                    android:background=\"@color/separatorDark\" />\n\n                <TextView\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:layout_gravity=\"center|center_vertical\"\n                    android:background=\"@color/windowBackground\"\n                    android:padding=\"@dimen/spacing_small\"\n                    android:text=\"@string/room_booking\"\n                    android:textColor=\"@color/colorGrey900\"\n                    android:textSize=\"@dimen/text_size_xxx_large\"\n                    android:textStyle=\"bold\" />\n            </FrameLayout>\n\n            <de.ehsun.coloredtimebar.TimelinePickerView\n                android:id=\"@+id/timelinePicker\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                app:barColorAvailable=\"@color/available_time_default_color\"\n                app:barColorHighlight=\"@color/selector_default_color\"\n                app:barColorNotAvailable=\"@color/timeline_default_color\"\n                app:barWidth=\"24dp\"\n                app:fractionLineColor=\"@color/separatorDark\"\n                app:fractionLineLength=\"8dp\"\n                app:fractionLineWidth=\"1dp\"\n                app:fractionPrimaryTextColor=\"@color/colorGrey900\"\n                app:fractionSecondaryTextColor=\"@color/colorBlueGrey500\"\n                app:fractionTextInterval=\"1\"\n                app:fractionTextSize=\"@dimen/text_size_xx_small\"\n                app:stepSize=\"15\"\n                app:timeRange=\"07:00-19:00\" />\n\n            <TextView\n                android:id=\"@+id/selectedTimeTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_large\" />\n\n            <RelativeLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:paddingBottom=\"@dimen/spacing_x_large\">\n\n                <android.support.v7.widget.CardView\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_toStartOf=\"@id/centerDivider\"\n                    android:background=\"@color/colorGrey50\"\n                    android:orientation=\"vertical\"\n                    app:cardCornerRadius=\"8dp\"\n                    app:cardPreventCornerOverlap=\"true\">\n\n                    <LinearLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"match_parent\"\n                        android:orientation=\"vertical\"\n                        android:padding=\"@dimen/spacing_normal\">\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeeNameEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/name\"\n                                android:inputType=\"textPersonName\" />\n                        </android.support.design.widget.TextInputLayout>\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeeEmailEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/email\"\n                                android:inputType=\"textEmailAddress\" />\n                        </android.support.design.widget.TextInputLayout>\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeePhoneEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/phone\"\n                                android:inputType=\"phone\" />\n\n                        </android.support.design.widget.TextInputLayout>\n\n                        <Button\n                            android:id=\"@+id/addAttendeeButton\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_gravity=\"end\"\n                            android:layout_marginTop=\"@dimen/spacing_large\"\n                            android:background=\"@color/colorAccent\"\n                            android:paddingBottom=\"@dimen/spacing_normal\"\n                            android:paddingEnd=\"@dimen/spacing_large\"\n                            android:paddingStart=\"@dimen/spacing_large\"\n                            android:text=\"@string/add\"\n                            android:textColor=\"@color/colorWhite\" />\n                    </LinearLayout>\n                </android.support.v7.widget.CardView>\n\n                <View\n                    android:id=\"@+id/centerDivider\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"match_parent\"\n                    android:layout_centerHorizontal=\"true\" />\n\n                <LinearLayout\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_toEndOf=\"@id/centerDivider\"\n                    android:orientation=\"vertical\"\n                    android:paddingEnd=\"@dimen/spacing_normal\"\n                    android:paddingStart=\"@dimen/spacing_normal\">\n\n                    <android.support.v7.widget.RecyclerView\n                        android:id=\"@+id/attendeesRecyclerView\"\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\" />\n\n                </LinearLayout>\n            </RelativeLayout>\n\n\n        </LinearLayout>\n    </android.support.v4.widget.NestedScrollView>\n\n    <Button\n        android:id=\"@+id/submitButton\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"bottom\"\n        android:background=\"@color/colorAccent\"\n        android:paddingBottom=\"@dimen/spacing_normal\"\n        android:paddingEnd=\"@dimen/spacing_large\"\n        android:paddingStart=\"@dimen/spacing_large\"\n        android:paddingTop=\"@dimen/spacing_normal\"\n        android:text=\"@string/submit\"\n        android:textColor=\"@color/colorWhite\"\n        android:textSize=\"@dimen/text_size_large\"\n        android:textStyle=\"bold\" />\n\n    <include\n        android:id=\"@+id/loadingContainer\"\n        layout=\"@layout/view_loading\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:visibility=\"gone\" />\n\n</android.support.design.widget.CoordinatorLayout>"
  },
  {
    "path": "app/src/main/res/layout/image_slide.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:id=\"@+id/imageSliderContainer\"\n    android:layout_width=\"fill_parent\"\n    android:layout_height=\"fill_parent\">\n\n    <ImageView\n        android:id=\"@+id/slideImageView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:layout_gravity=\"center\"\n        android:adjustViewBounds=\"true\"\n        android:contentDescription=\"@string/room_image\"\n        android:scaleType=\"centerCrop\" />\n</FrameLayout>"
  },
  {
    "path": "app/src/main/res/layout/list_item_attendee_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.v7.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/attendeeContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"vertical\"\n    app:cardBackgroundColor=\"@color/colorGrey50\"\n    app:cardCornerRadius=\"8dp\"\n    app:cardPreventCornerOverlap=\"true\"\n    app:cardUseCompatPadding=\"true\">\n\n    <FrameLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\">\n\n        <TextView\n            android:id=\"@+id/attendeeNameTextView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:lines=\"1\"\n            android:padding=\"@dimen/spacing_normal\"\n            android:textColor=\"@color/colorBlueGrey900\" />\n\n        <ImageView\n            android:id=\"@+id/attendeeRemoveImageView\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_gravity=\"end|center_vertical\"\n            android:contentDescription=\"@string/remove\"\n            android:paddingEnd=\"@dimen/spacing_normal\"\n            android:paddingStart=\"@dimen/spacing_normal\"\n            android:src=\"@drawable/ic_close_24dp\"\n            android:tint=\"@color/colorRed900\" />\n    </FrameLayout>\n</android.support.v7.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/list_item_book_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"vertical\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:paddingEnd=\"@dimen/keyline_1\"\n        android:paddingLeft=\"@dimen/keyline_1\"\n        android:paddingRight=\"@dimen/keyline_1\"\n        android:paddingStart=\"@dimen/keyline_1\">\n\n        <ImageView\n            android:id=\"@+id/roomPicImageView\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_alignParentStart=\"true\"\n            android:layout_centerVertical=\"true\"\n            android:layout_marginBottom=\"@dimen/spacing_normal\"\n            android:layout_marginTop=\"@dimen/spacing_normal\"\n            android:contentDescription=\"@string/room_image\" />\n\n        <TextView\n            android:id=\"@+id/bookAuthorTextView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_alignParentTop=\"true\"\n            android:layout_marginBottom=\"@dimen/spacing_normal\"\n            android:layout_marginEnd=\"@dimen/spacing_normal\"\n            android:layout_marginLeft=\"@dimen/spacing_normal\"\n            android:layout_marginRight=\"@dimen/spacing_normal\"\n            android:layout_marginStart=\"@dimen/spacing_normal\"\n            android:layout_marginTop=\"@dimen/spacing_normal\"\n            android:layout_toEndOf=\"@id/roomPicImageView\"\n            android:textSize=\"@dimen/text_size_normal\" />\n\n        <TextView\n            android:id=\"@+id/bookNameTextView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/bookAuthorTextView\"\n            android:layout_marginBottom=\"@dimen/spacing_normal\"\n            android:layout_marginEnd=\"@dimen/spacing_normal\"\n            android:layout_marginLeft=\"@dimen/spacing_normal\"\n            android:layout_marginRight=\"@dimen/spacing_normal\"\n            android:layout_marginStart=\"@dimen/spacing_normal\"\n            android:layout_toEndOf=\"@id/roomPicImageView\"\n            android:textColor=\"@color/colorGrey900\"\n            android:textSize=\"@dimen/text_size_large\" />\n\n    </RelativeLayout>\n\n    <View\n        android:id=\"@+id/bottom_seprator_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginEnd=\"@dimen/keyline_1\"\n        android:layout_marginLeft=\"@dimen/keyline_1\"\n        android:layout_marginRight=\"@dimen/keyline_1\"\n        android:layout_marginStart=\"@dimen/keyline_1\"\n        android:background=\"@color/separatorLight\" />\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/list_item_equipment_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.v7.widget.CardView xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"wrap_content\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"vertical\"\n    app:cardBackgroundColor=\"@color/colorDeepOrange\"\n    app:cardCornerRadius=\"8dp\"\n    app:cardPreventCornerOverlap=\"true\"\n    app:cardUseCompatPadding=\"true\">\n\n    <TextView\n        android:id=\"@+id/equipmentName\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:padding=\"@dimen/spacing_small\"\n        android:textColor=\"@color/colorWhite\" />\n</android.support.v7.widget.CardView>"
  },
  {
    "path": "app/src/main/res/layout/list_item_location_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\">\n\n    <TextView\n        android:id=\"@+id/locationName\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_alignParentStart=\"true\"\n        android:layout_centerInParent=\"true\"\n        android:layout_marginBottom=\"@dimen/spacing_large\"\n        android:layout_marginTop=\"@dimen/spacing_small\"\n        android:paddingEnd=\"@dimen/keyline_1\"\n        android:paddingLeft=\"@dimen/keyline_1\"\n        android:paddingRight=\"@dimen/keyline_1\"\n        android:paddingStart=\"@dimen/keyline_1\"\n        android:textColor=\"@color/colorGrey900\"\n        android:textSize=\"@dimen/text_size_x_large\"\n        android:textStyle=\"bold\" />\n\n    <View\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_below=\"@id/locationName\"\n        android:background=\"@color/separatorLight\" />\n\n</RelativeLayout>"
  },
  {
    "path": "app/src/main/res/layout/list_item_room_item.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:id=\"@+id/roomContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:orientation=\"vertical\">\n\n    <RelativeLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:paddingEnd=\"@dimen/spacing_small\"\n        android:paddingStart=\"@dimen/keyline_1\">\n\n        <ImageView\n            android:id=\"@+id/roomPicImageView\"\n            android:layout_width=\"96dp\"\n            android:layout_height=\"96dp\"\n            android:layout_alignParentStart=\"true\"\n            android:layout_alignParentTop=\"true\"\n            android:layout_marginTop=\"@dimen/spacing_normal\"\n            android:contentDescription=\"@string/room_image\"\n            tools:background=\"#33000000\" />\n\n        <TextView\n            android:id=\"@+id/roomNameTextView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_alignTop=\"@+id/roomPicImageView\"\n            android:layout_marginStart=\"@dimen/spacing_small\"\n            android:layout_toEndOf=\"@+id/roomPicImageView\"\n            android:textColor=\"@color/colorGrey900\"\n            android:textSize=\"@dimen/text_size_large\"\n            tools:text=\"Room name\" />\n\n        <TextView\n            android:id=\"@+id/roomSizeTextView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@id/roomNameTextView\"\n            android:layout_marginStart=\"@dimen/spacing_small\"\n            android:layout_toEndOf=\"@+id/roomPicImageView\"\n            android:textSize=\"@dimen/text_size_small\"\n            tools:text=\"Room size\" />\n\n        <de.ehsun.coloredtimebar.TimelineView\n            android:id=\"@+id/timelineView\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_below=\"@+id/roomSizeTextView\"\n            android:layout_marginStart=\"8dp\"\n            android:layout_marginTop=\"8dp\"\n            android:layout_toEndOf=\"@+id/roomPicImageView\"\n            app:barColorAvailable=\"@color/available_time_default_color\"\n            app:barColorHighlight=\"@color/selector_default_color\"\n            app:barColorNotAvailable=\"@color/timeline_default_color\"\n            app:barWidth=\"16dp\"\n            app:fractionLineColor=\"@color/separatorDark\"\n            app:fractionLineLength=\"8dp\"\n            app:fractionLineWidth=\"1dp\"\n            app:fractionPrimaryTextColor=\"@color/fraction_default_color\"\n            app:fractionSecondaryTextColor=\"@color/fraction_default_color\"\n            app:fractionTextInterval=\"2\"\n            app:fractionTextSize=\"@dimen/text_size_xx_small\"\n            app:timeRange=\"07:00-19:00\" />\n\n    </RelativeLayout>\n\n    <View\n        android:id=\"@+id/bottom_seprator_view\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"1dp\"\n        android:layout_marginEnd=\"@dimen/keyline_1\"\n        android:layout_marginLeft=\"@dimen/keyline_1\"\n        android:layout_marginRight=\"@dimen/keyline_1\"\n        android:layout_marginStart=\"@dimen/keyline_1\"\n        android:background=\"@color/separatorLight\" />\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout/popup_filter.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n\n\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"wrap_content\"\n    android:background=\"@color/colorWhite\"\n    android:orientation=\"vertical\">\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"@color/colorLightGreenA50\"\n        android:orientation=\"vertical\">\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"@dimen/keyline_1\"\n            android:layout_marginTop=\"@dimen/spacing_large\"\n            android:text=\"@string/available_title\"\n            android:textColor=\"@color/colorGrey900\"\n            android:textSize=\"@dimen/text_size_large\"\n            android:textStyle=\"bold\" />\n\n        <CheckBox\n            android:id=\"@+id/isAvailableCheckbox\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginBottom=\"@dimen/spacing_normal\"\n            android:layout_marginStart=\"@dimen/keyline_1\"\n            android:layout_marginTop=\"@dimen/spacing_normal\"\n            android:text=\"@string/is_available\"\n            android:textColor=\"@color/colorGrey900\" />\n    </LinearLayout>\n\n    <LinearLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:background=\"@color/colorGrey50\"\n        android:orientation=\"vertical\">\n\n        <TextView\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"@dimen/keyline_1\"\n            android:layout_marginTop=\"@dimen/spacing_large\"\n            android:labelFor=\"@id/filterByNameTextBox\"\n            android:text=\"@string/filter_by_name\"\n            android:textColor=\"@color/colorGrey900\"\n            android:textSize=\"@dimen/text_size_large\"\n            android:textStyle=\"bold\" />\n\n        <EditText\n            android:id=\"@+id/filterByNameTextBox\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginBottom=\"@dimen/spacing_normal\"\n            android:layout_marginStart=\"@dimen/keyline_1\"\n            android:layout_marginTop=\"@dimen/spacing_normal\"\n            android:focusable=\"true\"\n            android:inputType=\"text\" />\n    </LinearLayout>\n</LinearLayout>\n"
  },
  {
    "path": "app/src/main/res/layout/view_loading.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:id=\"@+id/loadingContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\">\n\n    <android.support.v4.widget.ContentLoadingProgressBar\n        android:id=\"@+id/address_looking_up\"\n        style=\"?android:attr/progressBarStyle\"\n        android:layout_width=\"64dp\"\n        android:layout_height=\"64dp\"\n        android:layout_gravity=\"center\"\n        android:layout_marginTop=\"-64dp\" />\n\n    <TextView\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"center\"\n        android:text=\"@string/wait\"\n        android:textAlignment=\"center\"\n        android:textColor=\"@color/colorBlueGrey900\"\n        android:textSize=\"@dimen/text_size_x_large\" />\n</FrameLayout>"
  },
  {
    "path": "app/src/main/res/layout/view_submit_event.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<LinearLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    android:padding=\"@dimen/spacing_normal\">\n\n    <android.support.design.widget.TextInputLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:labelFor=\"@id/eventTitleEditText\"\n        android:textAlignment=\"viewStart\"\n        app:hintAnimationEnabled=\"true\">\n\n        <EditText\n            android:id=\"@+id/eventTitleEditText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"@dimen/spacing_small\"\n            android:hint=\"@string/title\"\n            android:inputType=\"text\"\n            android:textSize=\"@dimen/text_size_large\" />\n    </android.support.design.widget.TextInputLayout>\n\n    <android.support.design.widget.TextInputLayout\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:labelFor=\"@id/eventDescriptionEditText\"\n        android:textAlignment=\"viewStart\"\n        app:hintAnimationEnabled=\"true\">\n\n        <EditText\n            android:id=\"@+id/eventDescriptionEditText\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:layout_margin=\"@dimen/spacing_small\"\n            android:hint=\"@string/description\"\n            android:inputType=\"text\"\n            android:textSize=\"@dimen/text_size_large\" />\n    </android.support.design.widget.TextInputLayout>\n\n    <Button\n        android:id=\"@+id/submitEventButton\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_margin=\"@dimen/spacing_small\"\n        android:layout_marginTop=\"@dimen/spacing_large\"\n        android:background=\"@color/colorAccent\"\n        android:text=\"@string/submit\"\n        android:textColor=\"@color/colorWhite\"\n        android:textSize=\"@dimen/text_size_large\" />\n\n</LinearLayout>"
  },
  {
    "path": "app/src/main/res/layout-v21/activity_room_details.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<android.support.design.widget.CoordinatorLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    android:id=\"@+id/mainContainer\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:fitsSystemWindows=\"false\">\n\n    <android.support.design.widget.AppBarLayout\n        android:id=\"@+id/app_bar_layout\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\">\n\n        <android.support.design.widget.CollapsingToolbarLayout\n            android:id=\"@+id/collapsing_toolbar\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"@dimen/image_slider_height\"\n            app:collapsedTitleTextAppearance=\"@style/ActionBarTitleStyleWhite\"\n            app:contentScrim=\"?attr/colorPrimary\"\n            app:expandedTitleTextAppearance=\"@style/ActionBarTitleStyleWhite\"\n            app:layout_scrollFlags=\"scroll|exitUntilCollapsed\">\n\n            <android.support.v4.view.ViewPager\n                android:id=\"@+id/imageViewPager\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"match_parent\"\n                android:background=\"@color/colorGrey50\"\n                app:layout_collapseMode=\"parallax\"\n                app:layout_collapseParallaxMultiplier=\"0.5\" />\n\n            <com.viewpagerindicator.CirclePageIndicator\n                android:id=\"@+id/indicator\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_gravity=\"bottom|center_vertical\"\n                android:padding=\"@dimen/spacing_normal\"\n                app:centered=\"true\"\n                app:fillColor=\"@color/colorAccent\"\n                app:layout_collapseMode=\"parallax\"\n                app:layout_collapseParallaxMultiplier=\"0.8\"\n                app:pageColor=\"@color/colorGrey900\"\n                app:snap=\"true\" />\n\n            <android.support.v7.widget.Toolbar\n                android:id=\"@+id/toolbar\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"@dimen/appbar_height_collapsed\"\n                app:layout_collapseMode=\"pin\"\n                app:layout_collapseParallaxMultiplier=\"0.8\"\n                app:layout_scrollFlags=\"scroll|enterAlways|snap\"\n                app:theme=\"@style/ToolBarStyle\"\n                app:titleTextColor=\"@color/colorWhite\" />\n        </android.support.design.widget.CollapsingToolbarLayout>\n    </android.support.design.widget.AppBarLayout>\n\n    <android.support.v4.widget.NestedScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:layout_behavior=\"@string/appbar_scrolling_view_behavior\">\n\n        <LinearLayout\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            android:orientation=\"vertical\"\n            android:padding=\"@dimen/spacing_normal\">\n\n            <TextView\n                android:id=\"@+id/roomNameTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_xx_large\"\n                android:textStyle=\"bold\" />\n\n            <TextView\n                android:id=\"@+id/sizeTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_large\" />\n\n            <android.support.v7.widget.RecyclerView\n                android:id=\"@+id/equipmentRecyclerView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\" />\n\n            <FrameLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginTop=\"@dimen/spacing_normal\">\n\n                <View\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"1dp\"\n                    android:layout_gravity=\"center_vertical\"\n                    android:background=\"@color/separatorDark\" />\n\n                <TextView\n                    android:layout_width=\"wrap_content\"\n                    android:layout_height=\"match_parent\"\n                    android:layout_gravity=\"center|center_vertical\"\n                    android:background=\"@color/windowBackground\"\n                    android:padding=\"@dimen/spacing_small\"\n                    android:text=\"@string/room_booking\"\n                    android:textColor=\"@color/colorGrey900\"\n                    android:textSize=\"@dimen/text_size_xxx_large\"\n                    android:textStyle=\"bold\" />\n            </FrameLayout>\n\n            <de.ehsun.coloredtimebar.TimelinePickerView\n                android:id=\"@+id/timelinePicker\"\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                app:barColorAvailable=\"@color/available_time_default_color\"\n                app:barColorHighlight=\"@color/selector_default_color\"\n                app:barColorNotAvailable=\"@color/timeline_default_color\"\n                app:barWidth=\"24dp\"\n                app:fractionLineColor=\"@color/separatorDark\"\n                app:fractionLineLength=\"8dp\"\n                app:fractionLineWidth=\"1dp\"\n                app:fractionPrimaryTextColor=\"@color/colorGrey900\"\n                app:fractionSecondaryTextColor=\"@color/colorBlueGrey500\"\n                app:fractionTextInterval=\"1\"\n                app:fractionTextSize=\"@dimen/text_size_xx_small\"\n                app:stepSize=\"15\"\n                app:timeRange=\"07:00-19:00\" />\n\n            <TextView\n                android:id=\"@+id/selectedTimeTextView\"\n                android:layout_width=\"wrap_content\"\n                android:layout_height=\"wrap_content\"\n                android:layout_marginBottom=\"@dimen/spacing_normal\"\n                android:textSize=\"@dimen/text_size_large\" />\n\n            <RelativeLayout\n                android:layout_width=\"match_parent\"\n                android:layout_height=\"wrap_content\"\n                android:paddingBottom=\"@dimen/spacing_x_large\">\n\n                <android.support.v7.widget.CardView\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_toStartOf=\"@id/centerDivider\"\n                    android:backgroundTint=\"@color/colorGrey50\"\n                    android:orientation=\"vertical\"\n                    app:cardCornerRadius=\"8dp\"\n                    app:cardPreventCornerOverlap=\"true\">\n\n                    <LinearLayout\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"match_parent\"\n                        android:orientation=\"vertical\"\n                        android:padding=\"@dimen/spacing_normal\">\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeeNameEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/name\"\n                                android:inputType=\"textPersonName\" />\n                        </android.support.design.widget.TextInputLayout>\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeeEmailEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/email\"\n                                android:inputType=\"textEmailAddress\" />\n                        </android.support.design.widget.TextInputLayout>\n\n                        <android.support.design.widget.TextInputLayout\n                            android:layout_width=\"match_parent\"\n                            android:layout_height=\"wrap_content\"\n                            android:textAlignment=\"viewStart\"\n                            app:hintAnimationEnabled=\"true\">\n\n                            <EditText\n                                android:id=\"@+id/attendeePhoneEditText\"\n                                android:layout_width=\"match_parent\"\n                                android:layout_height=\"wrap_content\"\n                                android:hint=\"@string/phone\"\n                                android:inputType=\"phone\" />\n\n                        </android.support.design.widget.TextInputLayout>\n\n                        <Button\n                            android:id=\"@+id/addAttendeeButton\"\n                            android:layout_width=\"wrap_content\"\n                            android:layout_height=\"wrap_content\"\n                            android:layout_gravity=\"end\"\n                            android:layout_marginTop=\"@dimen/spacing_large\"\n                            android:backgroundTint=\"@color/colorAccent\"\n                            android:paddingBottom=\"@dimen/spacing_normal\"\n                            android:paddingEnd=\"@dimen/spacing_large\"\n                            android:paddingStart=\"@dimen/spacing_large\"\n                            android:text=\"@string/add\"\n                            android:textColor=\"@color/colorWhite\" />\n                    </LinearLayout>\n                </android.support.v7.widget.CardView>\n\n                <View\n                    android:id=\"@+id/centerDivider\"\n                    android:layout_width=\"0dp\"\n                    android:layout_height=\"match_parent\"\n                    android:layout_centerHorizontal=\"true\" />\n\n                <LinearLayout\n                    android:layout_width=\"match_parent\"\n                    android:layout_height=\"wrap_content\"\n                    android:layout_toEndOf=\"@id/centerDivider\"\n                    android:orientation=\"vertical\"\n                    android:paddingEnd=\"@dimen/spacing_normal\"\n                    android:paddingStart=\"@dimen/spacing_normal\">\n\n                    <android.support.v7.widget.RecyclerView\n                        android:id=\"@+id/attendeesRecyclerView\"\n                        android:layout_width=\"match_parent\"\n                        android:layout_height=\"wrap_content\" />\n\n                </LinearLayout>\n            </RelativeLayout>\n\n\n        </LinearLayout>\n    </android.support.v4.widget.NestedScrollView>\n\n    <Button\n        android:id=\"@+id/submitButton\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:layout_gravity=\"bottom\"\n        android:background=\"@color/colorAccent\"\n        android:paddingBottom=\"@dimen/spacing_normal\"\n        android:paddingEnd=\"@dimen/spacing_large\"\n        android:paddingStart=\"@dimen/spacing_large\"\n        android:paddingTop=\"@dimen/spacing_normal\"\n        android:text=\"@string/submit\"\n        android:textColor=\"@color/colorWhite\"\n        android:textSize=\"@dimen/text_size_large\"\n        android:textStyle=\"bold\" />\n\n    <include\n        android:id=\"@+id/loadingContainer\"\n        layout=\"@layout/view_loading\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:visibility=\"gone\" />\n\n</android.support.design.widget.CoordinatorLayout>"
  },
  {
    "path": "app/src/main/res/menu/sort_actions.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<menu xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <item\n        android:id=\"@+id/menuSortByLocation\"\n        android:title=\"@string/menu_sort_by_location\" />\n    <item\n        android:id=\"@+id/menuSortByName\"\n        android:title=\"@string/menu_sort_by_name\" />\n    <item\n        android:id=\"@+id/menuSortBySize\"\n        android:title=\"@string/menu_sort_by_size\" />\n    <item\n        android:id=\"@+id/menuSortByCapacity\"\n        android:title=\"@string/menu_sort_by_capacity\" />\n</menu>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\" />\n    <foreground android:drawable=\"@mipmap/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <background android:drawable=\"@color/ic_launcher_background\" />\n    <foreground android:drawable=\"@mipmap/ic_launcher_foreground\" />\n</adaptive-icon>"
  },
  {
    "path": "app/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"colorPrimary\">#E40274</color>\n    <color name=\"colorPrimaryDark\">#A01F80</color>\n    <color name=\"colorAccent\">#009547</color>\n\n    <color name=\"loading_backgroundColor\">#7b263238</color>\n    <color name=\"lightBackgroundColor\">#fff</color>\n\n    <color name=\"colorWhite\">#FFFFFF</color>\n\n    <color name=\"colorGrey50\">#FAFAFA</color>\n    <color name=\"colorGrey900\">#212121</color>\n\n    <color name=\"colorDeepOrange\">#EC7B23</color>\n\n    <color name=\"colorRed900\">#B71C1C</color>\n\n    <color name=\"colorLightGreenA100\">#CCFF90</color>\n    <color name=\"colorLightGreenA50\">#F1F8E9</color>\n\n    <color name=\"colorBlue\">#006695</color>\n\n    <color name=\"colorBlueGrey400\">#78909C</color>\n    <color name=\"colorBlueGrey500\">#607D8B</color>\n    <color name=\"colorBlueGrey600\">#546E7A</color>\n    <color name=\"colorBlueGrey900\">#263238</color>\n    <color name=\"colorBlueGrey800\">#37474F</color>\n\n    <color name=\"colorLaunchGrey\">#1e1e23</color>\n    <color name=\"windowBackground\">#fff</color>\n\n    <color name=\"textPrimary\">#000000</color>\n    <color name=\"textSecondary\">#666666</color>\n    <color name=\"separatorLight\">#DDDDDD</color>\n    <color name=\"separatorDark\">#AAAAAA</color>\n\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/dimens.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <dimen name=\"activity_horizontal_margin\">16dp</dimen>\n    <dimen name=\"activity_vertical_margin\">16dp</dimen>\n    <dimen name=\"activity_vertical_padding\">16dp</dimen>\n    <dimen name=\"activity_horizontal_padding\">16dp</dimen>\n\n    <dimen name=\"spacing_small\">8dp</dimen>\n    <dimen name=\"spacing_normal\">16dp</dimen>\n    <dimen name=\"spacing_large\">32dp</dimen>\n    <dimen name=\"spacing_x_large\">48dp</dimen>\n\n    <dimen name=\"keyline_1\">16dp</dimen>\n    <dimen name=\"keyline_2\">72dp</dimen>\n    <dimen name=\"keyline_2_minus_16dp\">56dp</dimen>\n\n    <dimen name=\"text_size_xxx_small\">6sp</dimen>\n    <dimen name=\"text_size_xx_small\">10sp</dimen>\n    <dimen name=\"text_size_x_small\">12sp</dimen>\n    <dimen name=\"text_size_small\">14sp</dimen>\n    <dimen name=\"text_size_normal\">16sp</dimen>\n    <dimen name=\"text_size_large\">18sp</dimen>\n    <dimen name=\"text_size_x_large\">20sp</dimen>\n    <dimen name=\"text_size_xx_large\">24sp</dimen>\n    <dimen name=\"text_size_xxx_large\">26sp</dimen>\n\n    <dimen name=\"nav_header_height\">160dp</dimen>\n    <dimen name=\"appbar_height_collapsed\">52dp</dimen>\n    <dimen name=\"appbar_height_expanded\">182dp</dimen>\n    <dimen name=\"collapsingToolbar_height_expanded\">128dp</dimen>\n    <dimen name=\"image_slider_height\">240dp</dimen>\n    <dimen name=\"subtitle_height\">48dp</dimen>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/ic_launcher_background.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"ic_launcher_background\">#000000</color>\n</resources>"
  },
  {
    "path": "app/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Room Booking</string>\n    <string name=\"wait\">Please Wait…</string>\n    <string name=\"room_image\">Room Image</string>\n    <string name=\"filters\">Filters</string>\n    <string name=\"sort\">Sort by</string>\n    <string name=\"post_room\">Submit</string>\n    <string name=\"menu_sort_by_location\">Location</string>\n    <string name=\"menu_sort_by_name\">Name</string>\n    <string name=\"menu_sort_by_size\">Size</string>\n    <string name=\"menu_sort_by_capacity\">Capacity</string>\n    <string name=\"available_title\">Room Availability</string>\n    <string name=\"is_available\">available</string>\n    <string name=\"filter_by_name\">Filter by name</string>\n    <string name=\"room_size\">Size: %s</string>\n    <string name=\"room_number\">Room #%s</string>\n    <string name=\"room_number_and_floor\">Room #%s at %s</string>\n    <string name=\"left\">Left</string>\n    <string name=\"right\">Right</string>\n    <string name=\"room_capacity_text_view\">%s recommended for %d persons</string>\n    <string name=\"room_booking\">Book it Now</string>\n    <string name=\"from_to\">Book from %s to %s for:</string>\n    <string name=\"name\">Name</string>\n    <string name=\"email\">Email</string>\n    <string name=\"phone\">Phone</string>\n    <string name=\"add\">Add</string>\n    <string name=\"error_invalid_name\">Please enter attendee name</string>\n    <string name=\"error_invalid_email\">Email is not valid</string>\n    <string name=\"error_invalid_phone\">Please enter attendee phone number</string>\n    <string name=\"ok\">OK</string>\n    <string name=\"attendee_details\"><b>Attendee details:</b>\\n%s\\n%s\\n%s</string>\n    <string name=\"submit\">Submit</string>\n    <string name=\"there_is_noe_attendee\">There is no attendee!</string>\n    <string name=\"submit_completed\">Submited successfully!</string>\n    <string name=\"submit_faild\">There is something wrong with submitting process!</string>\n    <string name=\"dialog_title\">Please enter event details</string>\n    <string name=\"title\">Title</string>\n    <string name=\"description\">Description</string>\n    <string name=\"remove\">Remove</string>\n</resources>\n"
  },
  {
    "path": "app/src/main/res/values/styles.xml",
    "content": "<resources>\n\n    <style name=\"AppTheme\" parent=\"Theme.AppCompat.Light\">\n        <item name=\"windowNoTitle\">true</item>\n        <item name=\"android:fitsSystemWindows\">true</item>\n    </style>\n\n    <style name=\"AppThemeWithActionBar\" parent=\"AppTheme\">\n        <item name=\"windowActionBar\">false</item>\n    </style>\n\n    <style name=\"MaterialTheme\" parent=\"AppThemeWithActionBar\">\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"android:actionBarStyle\">@style/ToolBarStyle</item>\n        <item name=\"android:windowBackground\">@color/windowBackground</item>\n        <item name=\"android:fontFamily\">@font/cera_regular</item>\n    </style>\n\n    <style name=\"DialogMaterialTheme\" parent=\"Theme.AppCompat.Light.Dialog\">\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"android:actionBarStyle\">@style/ActionBarStyle</item>\n        <item name=\"android:windowBackground\">@color/windowBackground</item>\n    </style>\n\n    <style name=\"HomeTheme\" parent=\"AppTheme\">\n        <item name=\"android:background\">@color/colorPrimary</item>\n    </style>\n\n    <style name=\"LaunchMaterialTheme\" parent=\"AppThemeWithActionBar\">\n        <item name=\"colorPrimary\">@color/colorPrimary</item>\n        <item name=\"colorPrimaryDark\">@color/colorPrimaryDark</item>\n        <item name=\"colorAccent\">@color/colorAccent</item>\n        <item name=\"android:actionBarStyle\">@style/ActionBarStyle</item>\n\n    </style>\n\n    <style name=\"LoginTheme\" parent=\"AppTheme\">\n        <item name=\"colorAccent\">@color/colorAccent</item>\n    </style>\n\n    <style name=\"ActionBarStyle\" parent=\"@android:style/Widget.ActionBar\">\n        <item name=\"android:titleTextStyle\">@style/ActionBarTitleStyleWhite</item>\n    </style>\n\n    <style name=\"ActionBarTitleStyleWhite\" parent=\"@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title\">\n        <item name=\"android:textColor\">@android:color/white</item>\n        <item name=\"android:textColorSecondary\">@android:color/white</item>\n        <item name=\"android:fontFamily\">@font/cera_bold</item>\n    </style>\n\n    <style name=\"ToolBarStyle\" parent=\"Theme.AppCompat\">\n        <item name=\"android:textColorPrimary\">@android:color/white</item>\n        <item name=\"android:textColorSecondary\">@android:color/white</item>\n        <item name=\"actionMenuTextColor\">@android:color/white</item>\n    </style>\n\n    <style name=\"TransparentToolbarTextAppearance\" parent=\"TextAppearance.AppCompat.Title\">\n        <item name=\"android:textColor\">@android:color/transparent</item>\n    </style>\n\n    <style name=\"NormalToolbarTextAppearance\" parent=\"TextAppearance.AppCompat.Title\">\n        <item name=\"android:textColor\">@android:color/white</item>\n    </style>\n\n</resources>\n"
  },
  {
    "path": "app/src/test/java/de/ehsun/smartbooking/ExampleUnitTest.kt",
    "content": "package de.ehsun.smartbooking\n\nimport org.junit.Assert.assertEquals\nimport org.junit.Test\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * See [testing documentation](http://d.android.com/tools/testing).\n */\nclass ExampleUnitTest {\n    @Test\n    fun addition_isCorrect() {\n        assertEquals(4, 2 + 2)\n    }\n}\n"
  },
  {
    "path": "build.gradle",
    "content": "// Top-level build file where you can add configuration options common to all sub-projects/modules.\n\nbuildscript {\n    ext.kotlin_version = '1.2.10'\n    repositories {\n        google()\n        jcenter()\n    }\n    dependencies {\n        classpath 'com.android.tools.build:gradle:3.0.1'\n        classpath \"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version\"\n        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'\n        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'\n        // NOTE: Do not place your application dependencies here; they belong\n        // in the individual module build.gradle files\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n        jcenter()\n    }\n    tasks.withType(Javadoc) {\n        excludes = ['**/*.kt']\n        options.addStringOption('Xdoclint:none', '-quiet')\n        options.addStringOption('encoding', 'UTF-8')\n    }\n}\n\ntask clean(type: Delete) {\n    delete rootProject.buildDir\n}\ntask androidJavadocs(type: Javadoc) {\n    failOnError false\n}\next{\n    //Libraries Version\n    supportLibrariesVersion = '27.0.2'\n    rxAndroidVersion = '2.0.1'\n    rxJavaVersion = '2.1.5'\n    rxKotlinVersion = '2.0.3'\n    daggerVersion = '2.5'\n    retrofitVersion = '2.3.0'\n    okhttpVersion = '3.9.0'\n    gsonVersion = '2.8.2'\n    picassoVersion = '2.5.2'\n    picassoOkHttp = '1.1.0'\n    jodaTimeVersion = '2.9.9'\n    playServiceVersion = '11.8.0'\n    googleFirebaseVersion = '11.8.0'\n    jodatimeVersion = '2.9.4.1'\n    viewPagerIndicatorVersion = '2.4.1'\n    junitVersion = '4.12'\n    mockitoVersion = '2.+'\n    mockitoKotlin = '1.5.0'\n    testRunnerVersion = '1.0.1'\n    espressoVersion = '2.2.2'\n}"
  },
  {
    "path": "coloredtimebar/.gitignore",
    "content": "/build\n"
  },
  {
    "path": "coloredtimebar/build.gradle",
    "content": "apply plugin: 'com.android.library'\napply plugin: 'kotlin-android'\napply plugin: 'com.github.dcendents.android-maven'\next {\n    bintrayRepo = 'maven'\n    bintrayName = 'colored-time-range-selector'\n\n    publishedGroupId = 'de.ehsun.coloredtimebar'\n    libraryName = 'ColoredTimeRangeSelector'\n    artifact = 'coloredtimebar'\n\n    libraryDescription = 'A smart colored time range selector. Users can select just free time with a handy colorful range selector.'\n\n    siteUrl = 'https://github.com/ehsunshine/colored-time-selector'\n    gitUrl = 'https://github.com/ehsunshine/colored-time-selector'\n\n    libraryVersion = '1.0'\n\n    developerId = 'ehsun'\n    developerName = 'Ehsan Mehranvari'\n    developerEmail = 'ehsunshine@gmail.com'\n\n    licenseName = 'GNU General Public License v3.0'\n    licenseUrl = 'https://github.com/ehsunshine/colored-time-selector/blob/master/LICENSE'\n    allLicenses = [\"GPL-3.0\"]\n}\n\nandroid {\n    compileSdkVersion 27\n\n\n\n    defaultConfig {\n        minSdkVersion 19\n        targetSdkVersion 27\n        versionCode 1\n        versionName \"1.0\"\n\n        testInstrumentationRunner \"android.support.test.runner.AndroidJUnitRunner\"\n\n    }\n\n    buildTypes {\n        release {\n            minifyEnabled false\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\n        }\n    }\n\n}\n\ndependencies {\n    implementation fileTree(dir: 'libs', include: ['*.jar'])\n\n    implementation \"com.android.support:appcompat-v7:$rootProject.ext.supportLibrariesVersion\"\n    testImplementation \"junit:junit:$rootProject.ext.junitVersion\"\n    androidTestImplementation \"com.android.support.test:runner:$rootProject.ext.testRunnerVersion\"\n    androidTestImplementation \"com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion\"\n    implementation \"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version\"\n}\nrepositories {\n    mavenCentral()\n}\n//apply from: '../gradle/installv1.gradle'\n//apply from: '../gradle/bintrayv1.gradle'"
  },
  {
    "path": "coloredtimebar/proguard-rules.pro",
    "content": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguardFiles setting in build.gradle.\n#\n# For more details, see\n#   http://developer.android.com/guide/developing/tools/proguard.html\n\n# If your project uses WebView with JS, uncomment the following\n# and specify the fully qualified class name to the JavaScript interface\n# class:\n#-keepclassmembers class fqcn.of.javascript.interface.for.webview {\n#   public *;\n#}\n\n# Uncomment this to preserve the line number information for\n# debugging stack traces.\n#-keepattributes SourceFile,LineNumberTable\n\n# If you keep the line number information, uncomment this to\n# hide the original source file name.\n#-renamesourcefileattribute SourceFile\n"
  },
  {
    "path": "coloredtimebar/src/androidTest/java/de/ehsun/coloredtimebar/ExampleInstrumentedTest.java",
    "content": "package de.ehsun.coloredtimebar;\n\nimport android.content.Context;\nimport android.support.test.InstrumentationRegistry;\nimport android.support.test.runner.AndroidJUnit4;\n\nimport org.junit.Test;\nimport org.junit.runner.RunWith;\n\nimport static org.junit.Assert.assertEquals;\n\n/**\n * Instrumented test, which will execute on an Android device.\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\n@RunWith(AndroidJUnit4.class)\npublic class ExampleInstrumentedTest {\n    @Test\n    public void useAppContext() throws Exception {\n        // Context of the app under test.\n        Context appContext = InstrumentationRegistry.getTargetContext();\n\n        assertEquals(\"de.ehsun.coloredtimebar.test\", appContext.getPackageName());\n    }\n}\n"
  },
  {
    "path": "coloredtimebar/src/main/AndroidManifest.xml",
    "content": "<manifest package=\"de.ehsun.coloredtimebar\" />\n"
  },
  {
    "path": "coloredtimebar/src/main/java/de/ehsun/coloredtimebar/Extensions.kt",
    "content": "package de.ehsun.coloredtimebar\n\nimport android.content.Context\nimport android.graphics.drawable.Drawable\nimport android.os.Build\nimport android.util.TypedValue\nimport kotlin.properties.ObservableProperty\nimport kotlin.properties.ReadWriteProperty\nimport kotlin.reflect.KProperty\n\ninternal fun Context.dp2px(dp: Float): Float {\n    val metrics = this.resources.displayMetrics\n    return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, metrics)\n}\n\n@Suppress(\"DEPRECATION\")\ninternal fun Context.getDrawableCompat(index: Int): Drawable {\n    return if (Build.VERSION.SDK_INT >= 21) {\n        this.getDrawable(index)\n    } else {\n        this.resources.getDrawable(index)\n    }\n}\n\ninternal inline fun <T> doOnChange(initialValue: T, crossinline onChange: () -> Unit):\n        ReadWriteProperty<Any?, T> = object : ObservableProperty<T>(initialValue) {\n    override fun afterChange(property: KProperty<*>, oldValue: T, newValue: T) {\n        if (oldValue != newValue) {\n            onChange()\n        }\n    }\n}"
  },
  {
    "path": "coloredtimebar/src/main/java/de/ehsun/coloredtimebar/SimpleTime.kt",
    "content": "package de.ehsun.coloredtimebar\n\nimport java.text.SimpleDateFormat\nimport java.util.*\n\ndata class SimpleTime(val hour: Int, val minute: Int) : Comparable<SimpleTime> {\n\n    companion object {\n        @JvmStatic private val timeFormatter = SimpleDateFormat(\"HH:mm\", Locale.GERMAN)\n\n        @Suppress(\"DEPRECATION\")\n        @JvmStatic\n        fun from(time: String): SimpleTime {\n            val parsedTime = timeFormatter.parse(time)\n            return SimpleTime(parsedTime.hours, parsedTime.minutes)\n        }\n\n        @JvmStatic\n        fun fromMinutes(mins: Int) = SimpleTime(mins / 60, mins % 60)\n    }\n\n    override fun compareTo(other: SimpleTime) =\n            (hour * 60 + minute).compareTo(other.hour * 60 + other.minute)\n\n    fun toSeconds() = toMinutes() * 60\n\n    fun toMinutes() = (hour * 60) + minute\n\n    fun toTimeStamp(): Long {\n        val calendar = Calendar.getInstance()\n        calendar.set(Calendar.HOUR_OF_DAY, 0)\n        calendar.set(Calendar.MINUTE, 0)\n        calendar.set(Calendar.SECOND, 0)\n        calendar.set(Calendar.MILLISECOND, 0)\n\n        calendar.add(Calendar.HOUR_OF_DAY, hour)\n        calendar.add(Calendar.MINUTE, minute)\n\n        return calendar.timeInMillis / 1000L\n    }\n\n    operator fun unaryMinus() = SimpleTime(-hour, -minute)\n\n    operator fun plus(time: SimpleTime): SimpleTime {\n        var ds = toSeconds() + time.toSeconds()\n        val h = ds / 3600\n        ds -= h * 3600\n        val m = ds / 60\n        return SimpleTime(h, m)\n    }\n\n    operator fun minus(time: SimpleTime) = this + (-time)\n}\n\noperator fun ClosedRange<SimpleTime>.component1() = this.start\noperator fun ClosedRange<SimpleTime>.component2() = this.endInclusive"
  },
  {
    "path": "coloredtimebar/src/main/java/de/ehsun/coloredtimebar/TimelinePickerView.kt",
    "content": "package de.ehsun.coloredtimebar\n\nimport android.annotation.SuppressLint\nimport android.content.Context\nimport android.graphics.Canvas\nimport android.graphics.Rect\nimport android.graphics.drawable.Drawable\nimport android.util.AttributeSet\nimport android.view.MotionEvent\n\nclass TimelinePickerView @JvmOverloads constructor(context: Context,\n                                                   attrs: AttributeSet? = null,\n                                                   defStyleAttr: Int = 0,\n                                                   defStyleRes: Int = 0)\n    : TimelineView(context, attrs, defStyleAttr, defStyleRes) {\n\n    var pickerDrawable: Drawable = context.getDrawableCompat(R.drawable.ic_navigation_black_24dp)\n    var stepSize: Int = 1\n    var minSelectableTimeRange: Int = 15\n    private var onSelectedTimeRangeChanged: ((from: SimpleTime, to: SimpleTime) -> Unit)? = null\n    val selectedTimeRange: ClosedRange<SimpleTime>\n        get() = SimpleTime.fromMinutes(handleLeftPos)..SimpleTime.fromMinutes(handleRightPos)\n\n    private var handleLeftPos: Int by doOnChange(0) { postInvalidate() }\n    private var handleRightPos: Int by doOnChange(60) { postInvalidate() }\n    private lateinit var xToPosConverter: (Float) -> Int\n    private var movingHandle: TimelineHandle? = null\n\n    init {\n        attrs?.let {\n            val typedArray = context.obtainStyledAttributes(it, R.styleable.TimelinePickerView, 0, 0)\n            pickerDrawable = typedArray.getDrawable(R.styleable.TimelinePickerView_pickerDrawable) ?: pickerDrawable\n            stepSize = typedArray.getInt(R.styleable.TimelinePickerView_stepSize, stepSize)\n            minSelectableTimeRange = stepSize\n            typedArray.recycle()\n        }\n    }\n\n    override fun setAvailableTimeRange(availableTimeRanges: List<String>) {\n        super.setAvailableTimeRange(availableTimeRanges)\n        availableRanges.firstOrNull { (start, end) -> end.toMinutes() - start.toMinutes() >= minSelectableTimeRange }\n                ?.let { (start, _) ->\n                    handleLeftPos = start.toMinutes()\n                    handleRightPos = handleLeftPos + minSelectableTimeRange\n                    highlightRange = SimpleTime.fromMinutes(handleLeftPos)..SimpleTime.fromMinutes(handleRightPos)\n                }\n    }\n\n    fun setOnSelectedTimeRangeChangedListener(callback: (from: SimpleTime, to: SimpleTime) -> Unit) {\n        this.onSelectedTimeRangeChanged = callback\n    }\n\n    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {\n        super.onMeasure(widthMeasureSpec, heightMeasureSpec)\n        setMeasuredDimension(measuredWidth, measuredHeight + pickerDrawable.intrinsicHeight)\n\n        xToPosConverter = { x ->\n            val mainBarRange = timeRangeToRect.invoke(timeRange).run { left..right }\n            when {\n                x <= mainBarRange.start -> timeRange.start.toMinutes()\n                x >= mainBarRange.endInclusive -> timeRange.endInclusive.toMinutes()\n                else -> {\n                    val k = (x - mainBarRange.start) / (mainBarRange.endInclusive - mainBarRange.start)\n                    (timeRange.start.toMinutes() + k * (timeRange.endInclusive - timeRange.start).toMinutes()).toInt()\n                }\n            }\n        }\n    }\n\n    override fun draw(canvas: Canvas) {\n        super.draw(canvas)\n\n        canvas.drawHandles(handleLeftPos..handleRightPos)\n    }\n\n    private fun Canvas.drawHandles(range: IntRange) {\n        val timeRange = SimpleTime.fromMinutes(range.start)..SimpleTime.fromMinutes(range.endInclusive)\n        timeRangeToRect.invoke(timeRange)\n                .let { rect ->\n                    val handle1Left = (rect.left - (pickerDrawable.intrinsicWidth / 2f)).toInt()\n                    val handle2Left = (rect.right - (pickerDrawable.intrinsicWidth / 2f)).toInt()\n                    val drawableWidth = pickerDrawable.intrinsicWidth\n                    val drawableHeight = pickerDrawable.intrinsicHeight\n                    listOf(\n                            Rect(handle1Left, rect.bottom.toInt(), handle1Left + drawableWidth, rect.bottom.toInt() + drawableHeight),\n                            Rect(handle2Left, rect.bottom.toInt(), handle2Left + drawableWidth, rect.bottom.toInt() + drawableHeight)\n                    )\n                }\n                .forEach {\n                    pickerDrawable.bounds = it\n                    pickerDrawable.draw(this)\n                }\n    }\n\n    @SuppressLint(\"ClickableViewAccessibility\")\n    override fun onTouchEvent(event: MotionEvent): Boolean {\n        super.onTouchEvent(event)\n        return when (event.action) {\n            MotionEvent.ACTION_DOWN -> {\n                val pos = xToPosConverter(event.x)\n                movingHandle = when {\n                    Math.abs(handleLeftPos - pos) < Math.abs(handleRightPos - pos) -> TimelineHandle.LEFT\n                    else -> TimelineHandle.RIGHT\n                }\n                when (movingHandle) {\n                    TimelineHandle.LEFT -> setLeftHandle(pos)\n                    TimelineHandle.RIGHT -> setRightHandle(pos)\n                }\n                true\n            }\n            MotionEvent.ACTION_MOVE -> {\n                parent.requestDisallowInterceptTouchEvent(true)\n                val pos = xToPosConverter(event.x)\n                when (movingHandle) {\n                    TimelineHandle.LEFT -> setLeftHandle(pos)\n                    TimelineHandle.RIGHT -> setRightHandle(pos)\n                }\n                true\n            }\n            MotionEvent.ACTION_UP -> {\n                parent.requestDisallowInterceptTouchEvent(false)\n                true\n            }\n            else -> false\n        }\n    }\n\n    private fun setLeftHandle(newValue: Int) {\n        var correctValue = roundPosByStep(newValue)\n        if (handleRightPos - correctValue < minSelectableTimeRange) {\n            correctValue = handleRightPos - minSelectableTimeRange\n        }\n\n        val leftAvailableRange = availableRanges.find { it.contains(correctValue) }\n        if (leftAvailableRange != null) {\n            if (!leftAvailableRange.contains(handleRightPos)) {\n                if (leftAvailableRange.endInclusive.toMinutes() - correctValue >= minSelectableTimeRange) {\n                    handleRightPos = leftAvailableRange.endInclusive.toMinutes()\n                } else {\n                    correctValue = availableRanges.find { it.contains(handleRightPos) }!!.start.toMinutes()\n                }\n            }\n        } else {\n            correctValue = availableRanges.find { it.contains(handleRightPos) }!!.start.toMinutes()\n        }\n\n        handleLeftPos = correctValue\n        highlightRange = SimpleTime.fromMinutes(handleLeftPos)..SimpleTime.fromMinutes(handleRightPos)\n        highlightRange?.let { onSelectedTimeRangeChanged?.invoke(it.start, it.endInclusive) }\n    }\n\n    private fun setRightHandle(newValue: Int) {\n        var correctValue = roundPosByStep(newValue)\n        if (correctValue - handleLeftPos < minSelectableTimeRange) {\n            correctValue = handleLeftPos + minSelectableTimeRange\n        }\n\n        val rightAvailableRange = availableRanges.find { it.contains(correctValue) }\n        if (rightAvailableRange != null) {\n            if (!rightAvailableRange.contains(handleLeftPos)) {\n                if (correctValue - rightAvailableRange.start.toMinutes() >= minSelectableTimeRange) {\n                    handleLeftPos = rightAvailableRange.start.toMinutes()\n                } else {\n                    correctValue = availableRanges.find { it.contains(handleLeftPos) }!!.endInclusive.toMinutes()\n                }\n            }\n        } else {\n            correctValue = availableRanges.find { it.contains(handleLeftPos) }!!.endInclusive.toMinutes()\n        }\n\n        handleRightPos = correctValue\n        highlightRange = SimpleTime.fromMinutes(handleLeftPos)..SimpleTime.fromMinutes(handleRightPos)\n        highlightRange?.let { onSelectedTimeRangeChanged?.invoke(it.start, it.endInclusive) }\n    }\n\n    private fun roundPosByStep(pos: Int) = (pos / stepSize) * stepSize\n\n    private fun ClosedRange<SimpleTime>.contains(value: Int) = start.toMinutes() <= value && value <= endInclusive.toMinutes()\n\n    private enum class TimelineHandle { LEFT, RIGHT }\n}"
  },
  {
    "path": "coloredtimebar/src/main/java/de/ehsun/coloredtimebar/TimelineView.kt",
    "content": "package de.ehsun.coloredtimebar\n\nimport android.content.Context\nimport android.graphics.*\nimport android.text.TextPaint\nimport android.util.AttributeSet\nimport android.view.View\nimport java.text.SimpleDateFormat\nimport java.util.*\n\nopen class TimelineView @JvmOverloads constructor(context: Context,\n                                                  attrs: AttributeSet? = null,\n                                                  defStyleAttr: Int = 0,\n                                                  defStyleRes: Int = 0)\n    : View(context, attrs, defStyleAttr, defStyleRes) {\n\n    var timeRange: ClosedRange<SimpleTime> by invalidateOnChange(SimpleTime(7, 0)..SimpleTime(19, 0))\n    var timeTextInterval: Int by invalidateOnChange(1)\n\n    var barWidth: Float by invalidateOnChange(context.dp2px(12f))\n    var barColorAvailable: Int by invalidateOnChange((0xFF0F9648).toInt())\n    var barColorNotAvailable: Int by invalidateOnChange((0xFFE42030).toInt())\n    var barColorHighlight: Int by invalidateOnChange((0xFFE42030).toInt())\n    var availableRanges: List<ClosedRange<SimpleTime>> by invalidateOnChange(listOf())\n    var highlightRange: ClosedRange<SimpleTime>? by redrawOnChange(null)\n\n    var fractionPrimaryTextColor: Int by invalidateOnChange((0xFF333333).toInt())\n    var fractionSecondaryTextColor: Int by invalidateOnChange((0xFF333333).toInt())\n    var fractionTextSize: Float by invalidateOnChange(context.dp2px(12f))\n    var fractionLineWidth: Float by invalidateOnChange(context.dp2px(1f))\n    var fractionLineLength: Float by invalidateOnChange(context.dp2px(4f))\n    var fractionLineColor: Int by invalidateOnChange((0xFF0F9648).toInt())\n\n    private var dirty: Boolean = false\n    private val drawingItems = mutableListOf<DrawingItem>()\n    private var textPaint = TextPaint()\n    private var barPaint = Paint()\n    private var linePaint = Paint()\n    private var lastMeasuredWidth: Int = 0\n    private var lastMeasuredHeight: Int = 0\n    protected lateinit var timeRangeToRect: (ClosedRange<SimpleTime>) -> RectF\n\n    companion object {\n        private val TIME_FORMATTER = SimpleDateFormat(\"H:mm\", Locale.US)\n    }\n\n    init {\n        attrs?.let {\n            val typedArray = context.obtainStyledAttributes(it, R.styleable.TimelineView, 0, 0)\n            typedArray.getString(R.styleable.TimelineView_timeRange)?.let { setTimeRange(it) }\n            timeTextInterval = typedArray.getInt(R.styleable.TimelineView_fractionTextInterval, 1)\n            barWidth = typedArray.getDimension(R.styleable.TimelineView_barWidth, barWidth)\n            barColorAvailable = typedArray.getColor(R.styleable.TimelineView_barColorAvailable, barColorAvailable)\n            barColorNotAvailable = typedArray.getColor(R.styleable.TimelineView_barColorNotAvailable, barColorNotAvailable)\n            barColorHighlight = typedArray.getColor(R.styleable.TimelineView_barColorHighlight, barColorHighlight)\n            fractionPrimaryTextColor = typedArray.getColor(R.styleable.TimelineView_fractionPrimaryTextColor, fractionPrimaryTextColor)\n            fractionSecondaryTextColor = typedArray.getColor(R.styleable.TimelineView_fractionSecondaryTextColor, fractionSecondaryTextColor)\n            fractionTextSize = typedArray.getDimension(R.styleable.TimelineView_fractionTextSize, fractionTextSize)\n            fractionLineWidth = typedArray.getDimension(R.styleable.TimelineView_fractionLineWidth, fractionLineWidth)\n            fractionLineLength = typedArray.getDimension(R.styleable.TimelineView_fractionLineLength, fractionLineLength)\n            fractionLineColor = typedArray.getColor(R.styleable.TimelineView_fractionLineColor, fractionLineColor)\n            typedArray.recycle()\n        }\n    }\n\n    fun setTimeRange(timeRangeText: String) {\n        parseTimeRange(timeRangeText)?.let { timeRange = it }\n    }\n\n    open fun setAvailableTimeRange(availableTimeRanges: List<String>) {\n        availableRanges = availableTimeRanges.mapNotNull { parseTimeRange(it) }\n    }\n\n    fun setHighlightTimeRange(timeRange: String) {\n        highlightRange = parseTimeRange(timeRange)\n    }\n\n    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {\n        super.onMeasure(widthMeasureSpec, heightMeasureSpec)\n        if (lastMeasuredWidth != measuredWidth || lastMeasuredHeight != measuredHeight) {\n            val size = measureDrawingItems()\n            setMeasuredDimension(size.first, Math.max(size.second, measuredHeight))\n\n            lastMeasuredWidth = measuredWidth\n            lastMeasuredHeight = measuredHeight\n        }\n    }\n\n    override fun draw(canvas: Canvas) {\n        super.draw(canvas)\n\n        if (dirty) {\n            measureDrawingItems()\n        }\n\n        drawingItems.forEach {\n            when (it) {\n                is DrawingItem.Text -> {\n                    textPaint.color = it.color\n                    canvas.drawText(it.text, it.x, it.y, textPaint)\n                }\n                is DrawingItem.Rectangle -> {\n                    barPaint.color = it.color\n                    canvas.drawRect(it.rect, barPaint)\n                }\n                is DrawingItem.Line -> {\n                    linePaint.color = it.color\n                    canvas.drawLine(it.from.x, it.from.y, it.to.x, it.to.y, linePaint)\n                }\n            }\n        }\n\n        highlightRange\n                ?.let { range -> timeRangeToRect.invoke(range) }\n                ?.let { rect ->\n                    barPaint.color = barColorHighlight\n                    canvas.drawRect(rect, barPaint)\n                }\n    }\n\n    private fun measureDrawingItems(): Pair<Int, Int> {\n        dirty = false\n        refreshPaints()\n        val hourCount = (timeRange.endInclusive - timeRange.start).toSeconds() / 3600\n        val textBound = measureText(\"80:08\")\n        val textWidth2 = textBound.width() / 2f\n        val textHeight = textBound.height().toFloat()\n        val hourlyXOffset = (measuredWidth - textBound.width()) / hourCount - 1\n        val textXPositions = (0..hourCount)\n                .map { index -> (index * hourlyXOffset).toFloat() }\n        val textItems = (0..hourCount)\n                .filter { index -> index % timeTextInterval == 0 }\n                .map { timeRange.start.toSeconds() + (it * 3600) }\n                .map { formatTime(it) }\n                .mapIndexed { index, text ->\n                    DrawingItem.Text(text,\n                            (index * timeTextInterval * hourlyXOffset).toFloat(),\n                            textHeight,\n                            if (index % 2 == 0) fractionPrimaryTextColor else fractionSecondaryTextColor)\n                }\n\n        val mainBarTop = textHeight + fractionLineLength\n        val mainBarBottom = mainBarTop + barWidth\n        val mainBarLeft = textXPositions.first() + textWidth2\n        val mainBarRight = textXPositions.last() + textWidth2\n        val mainBarRect = RectF(mainBarLeft, mainBarTop, mainBarRight, mainBarBottom)\n\n        val timeToX: (SimpleTime) -> Float = { time ->\n            val k = (time.toSeconds() - timeRange.start.toSeconds()) / (timeRange.endInclusive - timeRange.start).toSeconds().toFloat()\n            mainBarLeft + (mainBarRight - mainBarLeft) * k\n        }\n        timeRangeToRect = { (start, end) ->\n            RectF(timeToX(start), mainBarTop, timeToX(end), mainBarBottom)\n        }\n        val rectItems = listOf(DrawingItem.Rectangle(mainBarRect, barColorNotAvailable))\n                .plus(availableRanges\n                        .map { timeRangeToRect.invoke(it) }\n                        .map { DrawingItem.Rectangle(it, barColorAvailable) }\n                )\n\n        val fractionTop = textHeight + 1\n        val lineItems = textXPositions\n                .map { it + textWidth2 }\n                .map { DrawingItem.Line(PointF(it, fractionTop), PointF(it, mainBarBottom), fractionLineColor) }\n\n        drawingItems.clear()\n        drawingItems += textItems\n        drawingItems += lineItems\n        drawingItems += rectItems\n        return Pair(measuredWidth, (mainBarBottom + 1).toInt())\n    }\n\n    private fun invalidateItemsAndDraw() {\n        dirty = true\n        postInvalidate()\n    }\n\n    private fun measureText(text: String): Rect {\n        val rect = Rect()\n        textPaint.getTextBounds(text, 0, text.length, rect)\n        return rect\n    }\n\n    @Suppress(\"DEPRECATION\")\n    private fun formatTime(timeInSeconds: Int): String {\n        var totalSeconds = timeInSeconds\n        val date = Date().apply {\n            hours = totalSeconds / 3600\n            totalSeconds -= hours * 3600\n            minutes = totalSeconds / 60\n            totalSeconds -= minutes * 60\n            seconds = totalSeconds\n        }\n        return TIME_FORMATTER.format(date)\n    }\n\n    private fun refreshPaints() {\n        with(textPaint) {\n            this.textSize = this@TimelineView.fractionTextSize\n            this.color = fractionPrimaryTextColor\n        }\n        with(barPaint) {\n            this.color = barColorAvailable\n        }\n        with(linePaint) {\n            this.color = fractionLineColor\n            this.style = Paint.Style.STROKE\n            this.strokeWidth = fractionLineWidth\n        }\n    }\n\n    protected sealed class DrawingItem {\n        data class Text(val text: String, val x: Float, val y: Float, val color: Int) : DrawingItem()\n        data class Rectangle(val rect: RectF, val color: Int) : DrawingItem()\n        data class Line(val from: PointF, val to: PointF, val color: Int) : DrawingItem()\n\n    }\n\n    private inline fun <T> invalidateOnChange(initialValue: T) = doOnChange(initialValue) { invalidateItemsAndDraw() }\n    private inline fun <T> redrawOnChange(initialValue: T?) = doOnChange(initialValue) { postInvalidate() }\n\n    private fun parseTimeRange(timeRangeText: String): ClosedRange<SimpleTime>? {\n        return timeRangeText.split(\"-\")\n                .map { SimpleTime.from(it.trim()) }\n                .run {\n                    when (this.size) {\n                        2 -> this[0]..this[1]\n                        else -> null\n                    }\n                }\n    }\n}"
  },
  {
    "path": "coloredtimebar/src/main/res/drawable/ic_navigation_black_24dp.xml",
    "content": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n    android:viewportHeight=\"24.0\"\n    android:viewportWidth=\"24.0\">\n    <path\n        android:fillColor=\"#FF000000\"\n        android:pathData=\"M12,2L4.5,20.29l0.71,0.71L12,18l6.79,3 0.71,-0.71z\" />\n</vector>\n"
  },
  {
    "path": "coloredtimebar/src/main/res/values/attrs.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <declare-styleable name=\"TimelineView\">\n        <attr name=\"timeRange\" format=\"string\" />\n        <attr name=\"fractionTextInterval\" format=\"integer\" />\n        <attr name=\"barWidth\" format=\"dimension\" />\n        <attr name=\"barColorAvailable\" format=\"color\" />\n        <attr name=\"barColorNotAvailable\" format=\"color\" />\n        <attr name=\"barColorHighlight\" format=\"color\" />\n        <attr name=\"fractionPrimaryTextColor\" format=\"color\" />\n        <attr name=\"fractionSecondaryTextColor\" format=\"color\" />\n        <attr name=\"fractionTextSize\" format=\"dimension\" />\n        <attr name=\"fractionLineWidth\" format=\"dimension\" />\n        <attr name=\"fractionLineLength\" format=\"dimension\" />\n        <attr name=\"fractionLineColor\" format=\"color\" />\n    </declare-styleable>\n    <declare-styleable name=\"TimelinePickerView\">\n        <attr name=\"pickerDrawable\" format=\"reference\" />\n        <attr name=\"stepSize\" format=\"integer\" />\n    </declare-styleable>\n</resources>"
  },
  {
    "path": "coloredtimebar/src/main/res/values/colors.xml",
    "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"fraction_default_color\">#000000</color>\n    <color name=\"selector_default_color\">#FFE900</color>\n    <color name=\"timeline_default_color\">#E31E2F</color>\n    <color name=\"available_time_default_color\">#9ABD36</color>\n</resources>\n"
  },
  {
    "path": "coloredtimebar/src/main/res/values/dimens.xml",
    "content": "<resources>\n    <dimen name=\"fraction_default_height\">16dp</dimen>\n    <dimen name=\"fraction_label_default_text_size\">16sp</dimen>\n</resources>\n"
  },
  {
    "path": "coloredtimebar/src/main/res/values/strings.xml",
    "content": "<resources>\n    <string name=\"app_name\">Colored Timebar</string>\n</resources>\n"
  },
  {
    "path": "coloredtimebar/src/test/java/de/ehsun/coloredtimebar/ExampleUnitTest.java",
    "content": "package de.ehsun.coloredtimebar;\n\nimport org.junit.Test;\n\nimport static org.junit.Assert.assertEquals;\n\n/**\n * Example local unit test, which will execute on the development machine (host).\n *\n * @see <a href=\"http://d.android.com/tools/testing\">Testing documentation</a>\n */\npublic class ExampleUnitTest {\n    @Test\n    public void addition_isCorrect() throws Exception {\n        assertEquals(4, 2 + 2);\n    }\n}"
  },
  {
    "path": "gradle/bintrayv1.gradle",
    "content": "apply plugin: 'com.jfrog.bintray'\n\nversion = libraryVersion\n\nif (project.hasProperty(\"android\")) { // Android libraries\n    task sourcesJar(type: Jar) {\n        classifier = 'sources'\n        from android.sourceSets.main.java.srcDirs\n    }\n\n    task javadoc(type: Javadoc) {\n        source = android.sourceSets.main.java.srcDirs\n        classpath += project.files(android.getBootClasspath().join(File.pathSeparator))\n    }\n} else { // Java libraries\n    task sourcesJar(type: Jar, dependsOn: classes) {\n        classifier = 'sources'\n        from sourceSets.main.allSource\n    }\n}\n\ntask javadocJar(type: Jar, dependsOn: javadoc) {\n    classifier = 'javadoc'\n    from javadoc.destinationDir\n}\n\nartifacts {\n    archives javadocJar\n    archives sourcesJar\n}\n\n// Bintray\nProperties properties = new Properties()\nproperties.load(project.rootProject.file('local.properties').newDataInputStream())\n\nbintray {\n    user = properties.getProperty(\"bintray.user\")\n    key = properties.getProperty(\"bintray.apikey\")\n\n    configurations = ['archives']\n    pkg {\n        repo = bintrayRepo\n        name = bintrayName\n        desc = libraryDescription\n        websiteUrl = siteUrl\n        vcsUrl = gitUrl\n        licenses = allLicenses\n        publish = true\n        publicDownloadNumbers = true\n        version {\n            desc = libraryDescription\n            gpg {\n                sign = true //Determines whether to GPG sign the files. The default is false\n                passphrase = properties.getProperty(\"bintray.gpg.password\")\n                //Optional. The passphrase for GPG signing'\n            }\n        }\n    }\n}"
  },
  {
    "path": "gradle/installv1.gradle",
    "content": "apply plugin: 'com.github.dcendents.android-maven'\n\ngroup = publishedGroupId                               // Maven Group ID for the artifact\n\ninstall {\n    repositories.mavenInstaller {\n        // This generates POM.xml with proper parameters\n        pom {\n            project {\n                packaging 'aar'\n                groupId publishedGroupId\n                artifactId artifact\n\n                // Add your description here\n                name libraryName\n                description libraryDescription\n                url siteUrl\n\n                // Set your license\n                licenses {\n                    license {\n                        name licenseName\n                        url licenseUrl\n                    }\n                }\n                developers {\n                    developer {\n                        id developerId\n                        name developerName\n                        email developerEmail\n                    }\n                }\n                scm {\n                    connection gitUrl\n                    developerConnection gitUrl\n                    url siteUrl\n\n                }\n            }\n        }\n    }\n}"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "content": "#Sat Nov 11 21:59:06 IRST 2017\ndistributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\nzipStoreBase=GRADLE_USER_HOME\nzipStorePath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributions/gradle-4.1-all.zip\n"
  },
  {
    "path": "gradle.properties",
    "content": "# Project-wide Gradle settings.\n# IDE (e.g. Android Studio) users:\n# Gradle settings configured through the IDE *will override*\n# any settings specified in this file.\n# For more details on how to configure your build environment visit\n# http://www.gradle.org/docs/current/userguide/build_environment.html\n# Specifies the JVM arguments used for the daemon process.\n# The setting is particularly useful for tweaking memory settings.\norg.gradle.jvmargs=-Xmx1536m\n# When configured, Gradle will run in incubating parallel mode.\n# This option should only be used with decoupled projects. More details, visit\n# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects\n# org.gradle.parallel=true\n"
  },
  {
    "path": "gradlew",
    "content": "#!/usr/bin/env bash\n\n##############################################################################\n##\n##  Gradle start up script for UN*X\n##\n##############################################################################\n\n# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nDEFAULT_JVM_OPTS=\"\"\n\nAPP_NAME=\"Gradle\"\nAPP_BASE_NAME=`basename \"$0\"`\n\n# Use the maximum available, or set MAX_FD != -1 to use that value.\nMAX_FD=\"maximum\"\n\nwarn ( ) {\n    echo \"$*\"\n}\n\ndie ( ) {\n    echo\n    echo \"$*\"\n    echo\n    exit 1\n}\n\n# OS specific support (must be 'true' or 'false').\ncygwin=false\nmsys=false\ndarwin=false\ncase \"`uname`\" in\n  CYGWIN* )\n    cygwin=true\n    ;;\n  Darwin* )\n    darwin=true\n    ;;\n  MINGW* )\n    msys=true\n    ;;\nesac\n\n# Attempt to set APP_HOME\n# Resolve links: $0 may be a link\nPRG=\"$0\"\n# Need this for relative symlinks.\nwhile [ -h \"$PRG\" ] ; do\n    ls=`ls -ld \"$PRG\"`\n    link=`expr \"$ls\" : '.*-> \\(.*\\)$'`\n    if expr \"$link\" : '/.*' > /dev/null; then\n        PRG=\"$link\"\n    else\n        PRG=`dirname \"$PRG\"`\"/$link\"\n    fi\ndone\nSAVED=\"`pwd`\"\ncd \"`dirname \\\"$PRG\\\"`/\" >/dev/null\nAPP_HOME=\"`pwd -P`\"\ncd \"$SAVED\" >/dev/null\n\nCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar\n\n# Determine the Java command to use to start the JVM.\nif [ -n \"$JAVA_HOME\" ] ; then\n    if [ -x \"$JAVA_HOME/jre/sh/java\" ] ; then\n        # IBM's JDK on AIX uses strange locations for the executables\n        JAVACMD=\"$JAVA_HOME/jre/sh/java\"\n    else\n        JAVACMD=\"$JAVA_HOME/bin/java\"\n    fi\n    if [ ! -x \"$JAVACMD\" ] ; then\n        die \"ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\n    fi\nelse\n    JAVACMD=\"java\"\n    which java >/dev/null 2>&1 || die \"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\n\nPlease set the JAVA_HOME variable in your environment to match the\nlocation of your Java installation.\"\nfi\n\n# Increase the maximum file descriptors if we can.\nif [ \"$cygwin\" = \"false\" -a \"$darwin\" = \"false\" ] ; then\n    MAX_FD_LIMIT=`ulimit -H -n`\n    if [ $? -eq 0 ] ; then\n        if [ \"$MAX_FD\" = \"maximum\" -o \"$MAX_FD\" = \"max\" ] ; then\n            MAX_FD=\"$MAX_FD_LIMIT\"\n        fi\n        ulimit -n $MAX_FD\n        if [ $? -ne 0 ] ; then\n            warn \"Could not set maximum file descriptor limit: $MAX_FD\"\n        fi\n    else\n        warn \"Could not query maximum file descriptor limit: $MAX_FD_LIMIT\"\n    fi\nfi\n\n# For Darwin, add options to specify how the application appears in the dock\nif $darwin; then\n    GRADLE_OPTS=\"$GRADLE_OPTS \\\"-Xdock:name=$APP_NAME\\\" \\\"-Xdock:icon=$APP_HOME/media/gradle.icns\\\"\"\nfi\n\n# For Cygwin, switch paths to Windows format before running java\nif $cygwin ; then\n    APP_HOME=`cygpath --path --mixed \"$APP_HOME\"`\n    CLASSPATH=`cygpath --path --mixed \"$CLASSPATH\"`\n    JAVACMD=`cygpath --unix \"$JAVACMD\"`\n\n    # We build the pattern for arguments to be converted via cygpath\n    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`\n    SEP=\"\"\n    for dir in $ROOTDIRSRAW ; do\n        ROOTDIRS=\"$ROOTDIRS$SEP$dir\"\n        SEP=\"|\"\n    done\n    OURCYGPATTERN=\"(^($ROOTDIRS))\"\n    # Add a user-defined pattern to the cygpath arguments\n    if [ \"$GRADLE_CYGPATTERN\" != \"\" ] ; then\n        OURCYGPATTERN=\"$OURCYGPATTERN|($GRADLE_CYGPATTERN)\"\n    fi\n    # Now convert the arguments - kludge to limit ourselves to /bin/sh\n    i=0\n    for arg in \"$@\" ; do\n        CHECK=`echo \"$arg\"|egrep -c \"$OURCYGPATTERN\" -`\n        CHECK2=`echo \"$arg\"|egrep -c \"^-\"`                                 ### Determine if an option\n\n        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition\n            eval `echo args$i`=`cygpath --path --ignore --mixed \"$arg\"`\n        else\n            eval `echo args$i`=\"\\\"$arg\\\"\"\n        fi\n        i=$((i+1))\n    done\n    case $i in\n        (0) set -- ;;\n        (1) set -- \"$args0\" ;;\n        (2) set -- \"$args0\" \"$args1\" ;;\n        (3) set -- \"$args0\" \"$args1\" \"$args2\" ;;\n        (4) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" ;;\n        (5) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" ;;\n        (6) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" ;;\n        (7) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" ;;\n        (8) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" ;;\n        (9) set -- \"$args0\" \"$args1\" \"$args2\" \"$args3\" \"$args4\" \"$args5\" \"$args6\" \"$args7\" \"$args8\" ;;\n    esac\nfi\n\n# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules\nfunction splitJvmOpts() {\n    JVM_OPTS=(\"$@\")\n}\neval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS\nJVM_OPTS[${#JVM_OPTS[*]}]=\"-Dorg.gradle.appname=$APP_BASE_NAME\"\n\nexec \"$JAVACMD\" \"${JVM_OPTS[@]}\" -classpath \"$CLASSPATH\" org.gradle.wrapper.GradleWrapperMain \"$@\"\n"
  },
  {
    "path": "gradlew.bat",
    "content": "@if \"%DEBUG%\" == \"\" @echo off\n@rem ##########################################################################\n@rem\n@rem  Gradle startup script for Windows\n@rem\n@rem ##########################################################################\n\n@rem Set local scope for the variables with windows NT shell\nif \"%OS%\"==\"Windows_NT\" setlocal\n\n@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.\nset DEFAULT_JVM_OPTS=\n\nset DIRNAME=%~dp0\nif \"%DIRNAME%\" == \"\" set DIRNAME=.\nset APP_BASE_NAME=%~n0\nset APP_HOME=%DIRNAME%\n\n@rem Find java.exe\nif defined JAVA_HOME goto findJavaFromJavaHome\n\nset JAVA_EXE=java.exe\n%JAVA_EXE% -version >NUL 2>&1\nif \"%ERRORLEVEL%\" == \"0\" goto init\n\necho.\necho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:findJavaFromJavaHome\nset JAVA_HOME=%JAVA_HOME:\"=%\nset JAVA_EXE=%JAVA_HOME%/bin/java.exe\n\nif exist \"%JAVA_EXE%\" goto init\n\necho.\necho ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%\necho.\necho Please set the JAVA_HOME variable in your environment to match the\necho location of your Java installation.\n\ngoto fail\n\n:init\n@rem Get command-line arguments, handling Windowz variants\n\nif not \"%OS%\" == \"Windows_NT\" goto win9xME_args\nif \"%@eval[2+2]\" == \"4\" goto 4NT_args\n\n:win9xME_args\n@rem Slurp the command line arguments.\nset CMD_LINE_ARGS=\nset _SKIP=2\n\n:win9xME_args_slurp\nif \"x%~1\" == \"x\" goto execute\n\nset CMD_LINE_ARGS=%*\ngoto execute\n\n:4NT_args\n@rem Get arguments from the 4NT Shell from JP Software\nset CMD_LINE_ARGS=%$\n\n:execute\n@rem Setup the command line\n\nset CLASSPATH=%APP_HOME%\\gradle\\wrapper\\gradle-wrapper.jar\n\n@rem Execute Gradle\n\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% \"-Dorg.gradle.appname=%APP_BASE_NAME%\" -classpath \"%CLASSPATH%\" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%\n\n:end\n@rem End local scope for the variables with windows NT shell\nif \"%ERRORLEVEL%\"==\"0\" goto mainEnd\n\n:fail\nrem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of\nrem the _cmd.exe /c_ return code!\nif  not \"\" == \"%GRADLE_EXIT_CONSOLE%\" exit 1\nexit /b 1\n\n:mainEnd\nif \"%OS%\"==\"Windows_NT\" endlocal\n\n:omega\n"
  },
  {
    "path": "settings.gradle",
    "content": "include ':app', ':coloredtimebar'\n"
  }
]