Code removed from pipeline branch
661
License.txt
|
@ -1,661 +0,0 @@
|
||||||
GNU AFFERO GENERAL PUBLIC LICENSE
|
|
||||||
Version 3, 19 November 2007
|
|
||||||
|
|
||||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The GNU Affero General Public License is a free, copyleft license for
|
|
||||||
software and other kinds of works, specifically designed to ensure
|
|
||||||
cooperation with the community in the case of network server software.
|
|
||||||
|
|
||||||
The licenses for most software and other practical works are designed
|
|
||||||
to take away your freedom to share and change the works. By contrast,
|
|
||||||
our General Public Licenses are intended to guarantee your freedom to
|
|
||||||
share and change all versions of a program--to make sure it remains free
|
|
||||||
software for all its users.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
them if you wish), that you receive source code or can get it if you
|
|
||||||
want it, that you can change the software or use pieces of it in new
|
|
||||||
free programs, and that you know you can do these things.
|
|
||||||
|
|
||||||
Developers that use our General Public Licenses protect your rights
|
|
||||||
with two steps: (1) assert copyright on the software, and (2) offer
|
|
||||||
you this License which gives you legal permission to copy, distribute
|
|
||||||
and/or modify the software.
|
|
||||||
|
|
||||||
A secondary benefit of defending all users' freedom is that
|
|
||||||
improvements made in alternate versions of the program, if they
|
|
||||||
receive widespread use, become available for other developers to
|
|
||||||
incorporate. Many developers of free software are heartened and
|
|
||||||
encouraged by the resulting cooperation. However, in the case of
|
|
||||||
software used on network servers, this result may fail to come about.
|
|
||||||
The GNU General Public License permits making a modified version and
|
|
||||||
letting the public access it on a server without ever releasing its
|
|
||||||
source code to the public.
|
|
||||||
|
|
||||||
The GNU Affero General Public License is designed specifically to
|
|
||||||
ensure that, in such cases, the modified source code becomes available
|
|
||||||
to the community. It requires the operator of a network server to
|
|
||||||
provide the source code of the modified version running there to the
|
|
||||||
users of that server. Therefore, public use of a modified version, on
|
|
||||||
a publicly accessible server, gives the public access to the source
|
|
||||||
code of the modified version.
|
|
||||||
|
|
||||||
An older license, called the Affero General Public License and
|
|
||||||
published by Affero, was designed to accomplish similar goals. This is
|
|
||||||
a different license, not a version of the Affero GPL, but Affero has
|
|
||||||
released a new version of the Affero GPL which permits relicensing under
|
|
||||||
this license.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
0. Definitions.
|
|
||||||
|
|
||||||
"This License" refers to version 3 of the GNU Affero General Public License.
|
|
||||||
|
|
||||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
|
||||||
works, such as semiconductor masks.
|
|
||||||
|
|
||||||
"The Program" refers to any copyrightable work licensed under this
|
|
||||||
License. Each licensee is addressed as "you". "Licensees" and
|
|
||||||
"recipients" may be individuals or organizations.
|
|
||||||
|
|
||||||
To "modify" a work means to copy from or adapt all or part of the work
|
|
||||||
in a fashion requiring copyright permission, other than the making of an
|
|
||||||
exact copy. The resulting work is called a "modified version" of the
|
|
||||||
earlier work or a work "based on" the earlier work.
|
|
||||||
|
|
||||||
A "covered work" means either the unmodified Program or a work based
|
|
||||||
on the Program.
|
|
||||||
|
|
||||||
To "propagate" a work means to do anything with it that, without
|
|
||||||
permission, would make you directly or secondarily liable for
|
|
||||||
infringement under applicable copyright law, except executing it on a
|
|
||||||
computer or modifying a private copy. Propagation includes copying,
|
|
||||||
distribution (with or without modification), making available to the
|
|
||||||
public, and in some countries other activities as well.
|
|
||||||
|
|
||||||
To "convey" a work means any kind of propagation that enables other
|
|
||||||
parties to make or receive copies. Mere interaction with a user through
|
|
||||||
a computer network, with no transfer of a copy, is not conveying.
|
|
||||||
|
|
||||||
An interactive user interface displays "Appropriate Legal Notices"
|
|
||||||
to the extent that it includes a convenient and prominently visible
|
|
||||||
feature that (1) displays an appropriate copyright notice, and (2)
|
|
||||||
tells the user that there is no warranty for the work (except to the
|
|
||||||
extent that warranties are provided), that licensees may convey the
|
|
||||||
work under this License, and how to view a copy of this License. If
|
|
||||||
the interface presents a list of user commands or options, such as a
|
|
||||||
menu, a prominent item in the list meets this criterion.
|
|
||||||
|
|
||||||
1. Source Code.
|
|
||||||
|
|
||||||
The "source code" for a work means the preferred form of the work
|
|
||||||
for making modifications to it. "Object code" means any non-source
|
|
||||||
form of a work.
|
|
||||||
|
|
||||||
A "Standard Interface" means an interface that either is an official
|
|
||||||
standard defined by a recognized standards body, or, in the case of
|
|
||||||
interfaces specified for a particular programming language, one that
|
|
||||||
is widely used among developers working in that language.
|
|
||||||
|
|
||||||
The "System Libraries" of an executable work include anything, other
|
|
||||||
than the work as a whole, that (a) is included in the normal form of
|
|
||||||
packaging a Major Component, but which is not part of that Major
|
|
||||||
Component, and (b) serves only to enable use of the work with that
|
|
||||||
Major Component, or to implement a Standard Interface for which an
|
|
||||||
implementation is available to the public in source code form. A
|
|
||||||
"Major Component", in this context, means a major essential component
|
|
||||||
(kernel, window system, and so on) of the specific operating system
|
|
||||||
(if any) on which the executable work runs, or a compiler used to
|
|
||||||
produce the work, or an object code interpreter used to run it.
|
|
||||||
|
|
||||||
The "Corresponding Source" for a work in object code form means all
|
|
||||||
the source code needed to generate, install, and (for an executable
|
|
||||||
work) run the object code and to modify the work, including scripts to
|
|
||||||
control those activities. However, it does not include the work's
|
|
||||||
System Libraries, or general-purpose tools or generally available free
|
|
||||||
programs which are used unmodified in performing those activities but
|
|
||||||
which are not part of the work. For example, Corresponding Source
|
|
||||||
includes interface definition files associated with source files for
|
|
||||||
the work, and the source code for shared libraries and dynamically
|
|
||||||
linked subprograms that the work is specifically designed to require,
|
|
||||||
such as by intimate data communication or control flow between those
|
|
||||||
subprograms and other parts of the work.
|
|
||||||
|
|
||||||
The Corresponding Source need not include anything that users
|
|
||||||
can regenerate automatically from other parts of the Corresponding
|
|
||||||
Source.
|
|
||||||
|
|
||||||
The Corresponding Source for a work in source code form is that
|
|
||||||
same work.
|
|
||||||
|
|
||||||
2. Basic Permissions.
|
|
||||||
|
|
||||||
All rights granted under this License are granted for the term of
|
|
||||||
copyright on the Program, and are irrevocable provided the stated
|
|
||||||
conditions are met. This License explicitly affirms your unlimited
|
|
||||||
permission to run the unmodified Program. The output from running a
|
|
||||||
covered work is covered by this License only if the output, given its
|
|
||||||
content, constitutes a covered work. This License acknowledges your
|
|
||||||
rights of fair use or other equivalent, as provided by copyright law.
|
|
||||||
|
|
||||||
You may make, run and propagate covered works that you do not
|
|
||||||
convey, without conditions so long as your license otherwise remains
|
|
||||||
in force. You may convey covered works to others for the sole purpose
|
|
||||||
of having them make modifications exclusively for you, or provide you
|
|
||||||
with facilities for running those works, provided that you comply with
|
|
||||||
the terms of this License in conveying all material for which you do
|
|
||||||
not control copyright. Those thus making or running the covered works
|
|
||||||
for you must do so exclusively on your behalf, under your direction
|
|
||||||
and control, on terms that prohibit them from making any copies of
|
|
||||||
your copyrighted material outside their relationship with you.
|
|
||||||
|
|
||||||
Conveying under any other circumstances is permitted solely under
|
|
||||||
the conditions stated below. Sublicensing is not allowed; section 10
|
|
||||||
makes it unnecessary.
|
|
||||||
|
|
||||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
||||||
|
|
||||||
No covered work shall be deemed part of an effective technological
|
|
||||||
measure under any applicable law fulfilling obligations under article
|
|
||||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
||||||
similar laws prohibiting or restricting circumvention of such
|
|
||||||
measures.
|
|
||||||
|
|
||||||
When you convey a covered work, you waive any legal power to forbid
|
|
||||||
circumvention of technological measures to the extent such circumvention
|
|
||||||
is effected by exercising rights under this License with respect to
|
|
||||||
the covered work, and you disclaim any intention to limit operation or
|
|
||||||
modification of the work as a means of enforcing, against the work's
|
|
||||||
users, your or third parties' legal rights to forbid circumvention of
|
|
||||||
technological measures.
|
|
||||||
|
|
||||||
4. Conveying Verbatim Copies.
|
|
||||||
|
|
||||||
You may convey verbatim copies of the Program's source code as you
|
|
||||||
receive it, in any medium, provided that you conspicuously and
|
|
||||||
appropriately publish on each copy an appropriate copyright notice;
|
|
||||||
keep intact all notices stating that this License and any
|
|
||||||
non-permissive terms added in accord with section 7 apply to the code;
|
|
||||||
keep intact all notices of the absence of any warranty; and give all
|
|
||||||
recipients a copy of this License along with the Program.
|
|
||||||
|
|
||||||
You may charge any price or no price for each copy that you convey,
|
|
||||||
and you may offer support or warranty protection for a fee.
|
|
||||||
|
|
||||||
5. Conveying Modified Source Versions.
|
|
||||||
|
|
||||||
You may convey a work based on the Program, or the modifications to
|
|
||||||
produce it from the Program, in the form of source code under the
|
|
||||||
terms of section 4, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) The work must carry prominent notices stating that you modified
|
|
||||||
it, and giving a relevant date.
|
|
||||||
|
|
||||||
b) The work must carry prominent notices stating that it is
|
|
||||||
released under this License and any conditions added under section
|
|
||||||
7. This requirement modifies the requirement in section 4 to
|
|
||||||
"keep intact all notices".
|
|
||||||
|
|
||||||
c) You must license the entire work, as a whole, under this
|
|
||||||
License to anyone who comes into possession of a copy. This
|
|
||||||
License will therefore apply, along with any applicable section 7
|
|
||||||
additional terms, to the whole of the work, and all its parts,
|
|
||||||
regardless of how they are packaged. This License gives no
|
|
||||||
permission to license the work in any other way, but it does not
|
|
||||||
invalidate such permission if you have separately received it.
|
|
||||||
|
|
||||||
d) If the work has interactive user interfaces, each must display
|
|
||||||
Appropriate Legal Notices; however, if the Program has interactive
|
|
||||||
interfaces that do not display Appropriate Legal Notices, your
|
|
||||||
work need not make them do so.
|
|
||||||
|
|
||||||
A compilation of a covered work with other separate and independent
|
|
||||||
works, which are not by their nature extensions of the covered work,
|
|
||||||
and which are not combined with it such as to form a larger program,
|
|
||||||
in or on a volume of a storage or distribution medium, is called an
|
|
||||||
"aggregate" if the compilation and its resulting copyright are not
|
|
||||||
used to limit the access or legal rights of the compilation's users
|
|
||||||
beyond what the individual works permit. Inclusion of a covered work
|
|
||||||
in an aggregate does not cause this License to apply to the other
|
|
||||||
parts of the aggregate.
|
|
||||||
|
|
||||||
6. Conveying Non-Source Forms.
|
|
||||||
|
|
||||||
You may convey a covered work in object code form under the terms
|
|
||||||
of sections 4 and 5, provided that you also convey the
|
|
||||||
machine-readable Corresponding Source under the terms of this License,
|
|
||||||
in one of these ways:
|
|
||||||
|
|
||||||
a) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by the
|
|
||||||
Corresponding Source fixed on a durable physical medium
|
|
||||||
customarily used for software interchange.
|
|
||||||
|
|
||||||
b) Convey the object code in, or embodied in, a physical product
|
|
||||||
(including a physical distribution medium), accompanied by a
|
|
||||||
written offer, valid for at least three years and valid for as
|
|
||||||
long as you offer spare parts or customer support for that product
|
|
||||||
model, to give anyone who possesses the object code either (1) a
|
|
||||||
copy of the Corresponding Source for all the software in the
|
|
||||||
product that is covered by this License, on a durable physical
|
|
||||||
medium customarily used for software interchange, for a price no
|
|
||||||
more than your reasonable cost of physically performing this
|
|
||||||
conveying of source, or (2) access to copy the
|
|
||||||
Corresponding Source from a network server at no charge.
|
|
||||||
|
|
||||||
c) Convey individual copies of the object code with a copy of the
|
|
||||||
written offer to provide the Corresponding Source. This
|
|
||||||
alternative is allowed only occasionally and noncommercially, and
|
|
||||||
only if you received the object code with such an offer, in accord
|
|
||||||
with subsection 6b.
|
|
||||||
|
|
||||||
d) Convey the object code by offering access from a designated
|
|
||||||
place (gratis or for a charge), and offer equivalent access to the
|
|
||||||
Corresponding Source in the same way through the same place at no
|
|
||||||
further charge. You need not require recipients to copy the
|
|
||||||
Corresponding Source along with the object code. If the place to
|
|
||||||
copy the object code is a network server, the Corresponding Source
|
|
||||||
may be on a different server (operated by you or a third party)
|
|
||||||
that supports equivalent copying facilities, provided you maintain
|
|
||||||
clear directions next to the object code saying where to find the
|
|
||||||
Corresponding Source. Regardless of what server hosts the
|
|
||||||
Corresponding Source, you remain obligated to ensure that it is
|
|
||||||
available for as long as needed to satisfy these requirements.
|
|
||||||
|
|
||||||
e) Convey the object code using peer-to-peer transmission, provided
|
|
||||||
you inform other peers where the object code and Corresponding
|
|
||||||
Source of the work are being offered to the general public at no
|
|
||||||
charge under subsection 6d.
|
|
||||||
|
|
||||||
A separable portion of the object code, whose source code is excluded
|
|
||||||
from the Corresponding Source as a System Library, need not be
|
|
||||||
included in conveying the object code work.
|
|
||||||
|
|
||||||
A "User Product" is either (1) a "consumer product", which means any
|
|
||||||
tangible personal property which is normally used for personal, family,
|
|
||||||
or household purposes, or (2) anything designed or sold for incorporation
|
|
||||||
into a dwelling. In determining whether a product is a consumer product,
|
|
||||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
|
||||||
product received by a particular user, "normally used" refers to a
|
|
||||||
typical or common use of that class of product, regardless of the status
|
|
||||||
of the particular user or of the way in which the particular user
|
|
||||||
actually uses, or expects or is expected to use, the product. A product
|
|
||||||
is a consumer product regardless of whether the product has substantial
|
|
||||||
commercial, industrial or non-consumer uses, unless such uses represent
|
|
||||||
the only significant mode of use of the product.
|
|
||||||
|
|
||||||
"Installation Information" for a User Product means any methods,
|
|
||||||
procedures, authorization keys, or other information required to install
|
|
||||||
and execute modified versions of a covered work in that User Product from
|
|
||||||
a modified version of its Corresponding Source. The information must
|
|
||||||
suffice to ensure that the continued functioning of the modified object
|
|
||||||
code is in no case prevented or interfered with solely because
|
|
||||||
modification has been made.
|
|
||||||
|
|
||||||
If you convey an object code work under this section in, or with, or
|
|
||||||
specifically for use in, a User Product, and the conveying occurs as
|
|
||||||
part of a transaction in which the right of possession and use of the
|
|
||||||
User Product is transferred to the recipient in perpetuity or for a
|
|
||||||
fixed term (regardless of how the transaction is characterized), the
|
|
||||||
Corresponding Source conveyed under this section must be accompanied
|
|
||||||
by the Installation Information. But this requirement does not apply
|
|
||||||
if neither you nor any third party retains the ability to install
|
|
||||||
modified object code on the User Product (for example, the work has
|
|
||||||
been installed in ROM).
|
|
||||||
|
|
||||||
The requirement to provide Installation Information does not include a
|
|
||||||
requirement to continue to provide support service, warranty, or updates
|
|
||||||
for a work that has been modified or installed by the recipient, or for
|
|
||||||
the User Product in which it has been modified or installed. Access to a
|
|
||||||
network may be denied when the modification itself materially and
|
|
||||||
adversely affects the operation of the network or violates the rules and
|
|
||||||
protocols for communication across the network.
|
|
||||||
|
|
||||||
Corresponding Source conveyed, and Installation Information provided,
|
|
||||||
in accord with this section must be in a format that is publicly
|
|
||||||
documented (and with an implementation available to the public in
|
|
||||||
source code form), and must require no special password or key for
|
|
||||||
unpacking, reading or copying.
|
|
||||||
|
|
||||||
7. Additional Terms.
|
|
||||||
|
|
||||||
"Additional permissions" are terms that supplement the terms of this
|
|
||||||
License by making exceptions from one or more of its conditions.
|
|
||||||
Additional permissions that are applicable to the entire Program shall
|
|
||||||
be treated as though they were included in this License, to the extent
|
|
||||||
that they are valid under applicable law. If additional permissions
|
|
||||||
apply only to part of the Program, that part may be used separately
|
|
||||||
under those permissions, but the entire Program remains governed by
|
|
||||||
this License without regard to the additional permissions.
|
|
||||||
|
|
||||||
When you convey a copy of a covered work, you may at your option
|
|
||||||
remove any additional permissions from that copy, or from any part of
|
|
||||||
it. (Additional permissions may be written to require their own
|
|
||||||
removal in certain cases when you modify the work.) You may place
|
|
||||||
additional permissions on material, added by you to a covered work,
|
|
||||||
for which you have or can give appropriate copyright permission.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, for material you
|
|
||||||
add to a covered work, you may (if authorized by the copyright holders of
|
|
||||||
that material) supplement the terms of this License with terms:
|
|
||||||
|
|
||||||
a) Disclaiming warranty or limiting liability differently from the
|
|
||||||
terms of sections 15 and 16 of this License; or
|
|
||||||
|
|
||||||
b) Requiring preservation of specified reasonable legal notices or
|
|
||||||
author attributions in that material or in the Appropriate Legal
|
|
||||||
Notices displayed by works containing it; or
|
|
||||||
|
|
||||||
c) Prohibiting misrepresentation of the origin of that material, or
|
|
||||||
requiring that modified versions of such material be marked in
|
|
||||||
reasonable ways as different from the original version; or
|
|
||||||
|
|
||||||
d) Limiting the use for publicity purposes of names of licensors or
|
|
||||||
authors of the material; or
|
|
||||||
|
|
||||||
e) Declining to grant rights under trademark law for use of some
|
|
||||||
trade names, trademarks, or service marks; or
|
|
||||||
|
|
||||||
f) Requiring indemnification of licensors and authors of that
|
|
||||||
material by anyone who conveys the material (or modified versions of
|
|
||||||
it) with contractual assumptions of liability to the recipient, for
|
|
||||||
any liability that these contractual assumptions directly impose on
|
|
||||||
those licensors and authors.
|
|
||||||
|
|
||||||
All other non-permissive additional terms are considered "further
|
|
||||||
restrictions" within the meaning of section 10. If the Program as you
|
|
||||||
received it, or any part of it, contains a notice stating that it is
|
|
||||||
governed by this License along with a term that is a further
|
|
||||||
restriction, you may remove that term. If a license document contains
|
|
||||||
a further restriction but permits relicensing or conveying under this
|
|
||||||
License, you may add to a covered work material governed by the terms
|
|
||||||
of that license document, provided that the further restriction does
|
|
||||||
not survive such relicensing or conveying.
|
|
||||||
|
|
||||||
If you add terms to a covered work in accord with this section, you
|
|
||||||
must place, in the relevant source files, a statement of the
|
|
||||||
additional terms that apply to those files, or a notice indicating
|
|
||||||
where to find the applicable terms.
|
|
||||||
|
|
||||||
Additional terms, permissive or non-permissive, may be stated in the
|
|
||||||
form of a separately written license, or stated as exceptions;
|
|
||||||
the above requirements apply either way.
|
|
||||||
|
|
||||||
8. Termination.
|
|
||||||
|
|
||||||
You may not propagate or modify a covered work except as expressly
|
|
||||||
provided under this License. Any attempt otherwise to propagate or
|
|
||||||
modify it is void, and will automatically terminate your rights under
|
|
||||||
this License (including any patent licenses granted under the third
|
|
||||||
paragraph of section 11).
|
|
||||||
|
|
||||||
However, if you cease all violation of this License, then your
|
|
||||||
license from a particular copyright holder is reinstated (a)
|
|
||||||
provisionally, unless and until the copyright holder explicitly and
|
|
||||||
finally terminates your license, and (b) permanently, if the copyright
|
|
||||||
holder fails to notify you of the violation by some reasonable means
|
|
||||||
prior to 60 days after the cessation.
|
|
||||||
|
|
||||||
Moreover, your license from a particular copyright holder is
|
|
||||||
reinstated permanently if the copyright holder notifies you of the
|
|
||||||
violation by some reasonable means, this is the first time you have
|
|
||||||
received notice of violation of this License (for any work) from that
|
|
||||||
copyright holder, and you cure the violation prior to 30 days after
|
|
||||||
your receipt of the notice.
|
|
||||||
|
|
||||||
Termination of your rights under this section does not terminate the
|
|
||||||
licenses of parties who have received copies or rights from you under
|
|
||||||
this License. If your rights have been terminated and not permanently
|
|
||||||
reinstated, you do not qualify to receive new licenses for the same
|
|
||||||
material under section 10.
|
|
||||||
|
|
||||||
9. Acceptance Not Required for Having Copies.
|
|
||||||
|
|
||||||
You are not required to accept this License in order to receive or
|
|
||||||
run a copy of the Program. Ancillary propagation of a covered work
|
|
||||||
occurring solely as a consequence of using peer-to-peer transmission
|
|
||||||
to receive a copy likewise does not require acceptance. However,
|
|
||||||
nothing other than this License grants you permission to propagate or
|
|
||||||
modify any covered work. These actions infringe copyright if you do
|
|
||||||
not accept this License. Therefore, by modifying or propagating a
|
|
||||||
covered work, you indicate your acceptance of this License to do so.
|
|
||||||
|
|
||||||
10. Automatic Licensing of Downstream Recipients.
|
|
||||||
|
|
||||||
Each time you convey a covered work, the recipient automatically
|
|
||||||
receives a license from the original licensors, to run, modify and
|
|
||||||
propagate that work, subject to this License. You are not responsible
|
|
||||||
for enforcing compliance by third parties with this License.
|
|
||||||
|
|
||||||
An "entity transaction" is a transaction transferring control of an
|
|
||||||
organization, or substantially all assets of one, or subdividing an
|
|
||||||
organization, or merging organizations. If propagation of a covered
|
|
||||||
work results from an entity transaction, each party to that
|
|
||||||
transaction who receives a copy of the work also receives whatever
|
|
||||||
licenses to the work the party's predecessor in interest had or could
|
|
||||||
give under the previous paragraph, plus a right to possession of the
|
|
||||||
Corresponding Source of the work from the predecessor in interest, if
|
|
||||||
the predecessor has it or can get it with reasonable efforts.
|
|
||||||
|
|
||||||
You may not impose any further restrictions on the exercise of the
|
|
||||||
rights granted or affirmed under this License. For example, you may
|
|
||||||
not impose a license fee, royalty, or other charge for exercise of
|
|
||||||
rights granted under this License, and you may not initiate litigation
|
|
||||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
||||||
any patent claim is infringed by making, using, selling, offering for
|
|
||||||
sale, or importing the Program or any portion of it.
|
|
||||||
|
|
||||||
11. Patents.
|
|
||||||
|
|
||||||
A "contributor" is a copyright holder who authorizes use under this
|
|
||||||
License of the Program or a work on which the Program is based. The
|
|
||||||
work thus licensed is called the contributor's "contributor version".
|
|
||||||
|
|
||||||
A contributor's "essential patent claims" are all patent claims
|
|
||||||
owned or controlled by the contributor, whether already acquired or
|
|
||||||
hereafter acquired, that would be infringed by some manner, permitted
|
|
||||||
by this License, of making, using, or selling its contributor version,
|
|
||||||
but do not include claims that would be infringed only as a
|
|
||||||
consequence of further modification of the contributor version. For
|
|
||||||
purposes of this definition, "control" includes the right to grant
|
|
||||||
patent sublicenses in a manner consistent with the requirements of
|
|
||||||
this License.
|
|
||||||
|
|
||||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
||||||
patent license under the contributor's essential patent claims, to
|
|
||||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
|
||||||
propagate the contents of its contributor version.
|
|
||||||
|
|
||||||
In the following three paragraphs, a "patent license" is any express
|
|
||||||
agreement or commitment, however denominated, not to enforce a patent
|
|
||||||
(such as an express permission to practice a patent or covenant not to
|
|
||||||
sue for patent infringement). To "grant" such a patent license to a
|
|
||||||
party means to make such an agreement or commitment not to enforce a
|
|
||||||
patent against the party.
|
|
||||||
|
|
||||||
If you convey a covered work, knowingly relying on a patent license,
|
|
||||||
and the Corresponding Source of the work is not available for anyone
|
|
||||||
to copy, free of charge and under the terms of this License, through a
|
|
||||||
publicly available network server or other readily accessible means,
|
|
||||||
then you must either (1) cause the Corresponding Source to be so
|
|
||||||
available, or (2) arrange to deprive yourself of the benefit of the
|
|
||||||
patent license for this particular work, or (3) arrange, in a manner
|
|
||||||
consistent with the requirements of this License, to extend the patent
|
|
||||||
license to downstream recipients. "Knowingly relying" means you have
|
|
||||||
actual knowledge that, but for the patent license, your conveying the
|
|
||||||
covered work in a country, or your recipient's use of the covered work
|
|
||||||
in a country, would infringe one or more identifiable patents in that
|
|
||||||
country that you have reason to believe are valid.
|
|
||||||
|
|
||||||
If, pursuant to or in connection with a single transaction or
|
|
||||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
|
||||||
covered work, and grant a patent license to some of the parties
|
|
||||||
receiving the covered work authorizing them to use, propagate, modify
|
|
||||||
or convey a specific copy of the covered work, then the patent license
|
|
||||||
you grant is automatically extended to all recipients of the covered
|
|
||||||
work and works based on it.
|
|
||||||
|
|
||||||
A patent license is "discriminatory" if it does not include within
|
|
||||||
the scope of its coverage, prohibits the exercise of, or is
|
|
||||||
conditioned on the non-exercise of one or more of the rights that are
|
|
||||||
specifically granted under this License. You may not convey a covered
|
|
||||||
work if you are a party to an arrangement with a third party that is
|
|
||||||
in the business of distributing software, under which you make payment
|
|
||||||
to the third party based on the extent of your activity of conveying
|
|
||||||
the work, and under which the third party grants, to any of the
|
|
||||||
parties who would receive the covered work from you, a discriminatory
|
|
||||||
patent license (a) in connection with copies of the covered work
|
|
||||||
conveyed by you (or copies made from those copies), or (b) primarily
|
|
||||||
for and in connection with specific products or compilations that
|
|
||||||
contain the covered work, unless you entered into that arrangement,
|
|
||||||
or that patent license was granted, prior to 28 March 2007.
|
|
||||||
|
|
||||||
Nothing in this License shall be construed as excluding or limiting
|
|
||||||
any implied license or other defenses to infringement that may
|
|
||||||
otherwise be available to you under applicable patent law.
|
|
||||||
|
|
||||||
12. No Surrender of Others' Freedom.
|
|
||||||
|
|
||||||
If conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot convey a
|
|
||||||
covered work so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you may
|
|
||||||
not convey it at all. For example, if you agree to terms that obligate you
|
|
||||||
to collect a royalty for further conveying from those to whom you convey
|
|
||||||
the Program, the only way you could satisfy both those terms and this
|
|
||||||
License would be to refrain entirely from conveying the Program.
|
|
||||||
|
|
||||||
13. Remote Network Interaction; Use with the GNU General Public License.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, if you modify the
|
|
||||||
Program, your modified version must prominently offer all users
|
|
||||||
interacting with it remotely through a computer network (if your version
|
|
||||||
supports such interaction) an opportunity to receive the Corresponding
|
|
||||||
Source of your version by providing access to the Corresponding Source
|
|
||||||
from a network server at no charge, through some standard or customary
|
|
||||||
means of facilitating copying of software. This Corresponding Source
|
|
||||||
shall include the Corresponding Source for any work covered by version 3
|
|
||||||
of the GNU General Public License that is incorporated pursuant to the
|
|
||||||
following paragraph.
|
|
||||||
|
|
||||||
Notwithstanding any other provision of this License, you have
|
|
||||||
permission to link or combine any covered work with a work licensed
|
|
||||||
under version 3 of the GNU General Public License into a single
|
|
||||||
combined work, and to convey the resulting work. The terms of this
|
|
||||||
License will continue to apply to the part which is the covered work,
|
|
||||||
but the work with which it is combined will remain governed by version
|
|
||||||
3 of the GNU General Public License.
|
|
||||||
|
|
||||||
14. Revised Versions of this License.
|
|
||||||
|
|
||||||
The Free Software Foundation may publish revised and/or new versions of
|
|
||||||
the GNU Affero General Public License from time to time. Such new versions
|
|
||||||
will be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the
|
|
||||||
Program specifies that a certain numbered version of the GNU Affero General
|
|
||||||
Public License "or any later version" applies to it, you have the
|
|
||||||
option of following the terms and conditions either of that numbered
|
|
||||||
version or of any later version published by the Free Software
|
|
||||||
Foundation. If the Program does not specify a version number of the
|
|
||||||
GNU Affero General Public License, you may choose any version ever published
|
|
||||||
by the Free Software Foundation.
|
|
||||||
|
|
||||||
If the Program specifies that a proxy can decide which future
|
|
||||||
versions of the GNU Affero General Public License can be used, that proxy's
|
|
||||||
public statement of acceptance of a version permanently authorizes you
|
|
||||||
to choose that version for the Program.
|
|
||||||
|
|
||||||
Later license versions may give you additional or different
|
|
||||||
permissions. However, no additional obligations are imposed on any
|
|
||||||
author or copyright holder as a result of your choosing to follow a
|
|
||||||
later version.
|
|
||||||
|
|
||||||
15. Disclaimer of Warranty.
|
|
||||||
|
|
||||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
||||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
||||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
||||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
||||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
||||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
||||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
16. Limitation of Liability.
|
|
||||||
|
|
||||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
||||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
||||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
||||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
||||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
||||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
||||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
||||||
SUCH DAMAGES.
|
|
||||||
|
|
||||||
17. Interpretation of Sections 15 and 16.
|
|
||||||
|
|
||||||
If the disclaimer of warranty and limitation of liability provided
|
|
||||||
above cannot be given local legal effect according to their terms,
|
|
||||||
reviewing courts shall apply local law that most closely approximates
|
|
||||||
an absolute waiver of all civil liability in connection with the
|
|
||||||
Program, unless a warranty or assumption of liability accompanies a
|
|
||||||
copy of the Program in return for a fee.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
state the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU Affero General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU Affero General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If your software can interact with users remotely through a computer
|
|
||||||
network, you should also make sure that it provides a way for users to
|
|
||||||
get its source. For example, if your program is a web application, its
|
|
||||||
interface could display a "Source" link that leads users to an archive
|
|
||||||
of the code. There are many ways you could offer source, and different
|
|
||||||
solutions will be better for different programs; see section 13 for the
|
|
||||||
specific requirements.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or school,
|
|
||||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
||||||
For more information on this, and how to apply and follow the GNU AGPL, see
|
|
||||||
<https://www.gnu.org/licenses/>.
|
|
|
@ -1,19 +0,0 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
|
||||||
<RootNamespace>TINK</RootNamespace>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Plugin.BLE" Version="2.1.2" />
|
|
||||||
<PackageReference Include="Polly" Version="7.2.2" />
|
|
||||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
|
||||||
<PackageReference Include="Xamarin.Essentials" Version="1.6.1" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\LockItShared\LockItShared.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
|
@ -1,31 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 16
|
|
||||||
VisualStudioVersion = 16.0.31229.75
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LockItBLE", "LockItBLE.csproj", "{1F3B7642-9F98-48FB-9F3A-423C6EC06F45}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LockItShared", "..\LockItShared\LockItShared.csproj", "{EC2289B8-8758-46E1-B813-89EF79662CE8}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{1F3B7642-9F98-48FB-9F3A-423C6EC06F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{1F3B7642-9F98-48FB-9F3A-423C6EC06F45}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{1F3B7642-9F98-48FB-9F3A-423C6EC06F45}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{1F3B7642-9F98-48FB-9F3A-423C6EC06F45}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{EC2289B8-8758-46E1-B813-89EF79662CE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{EC2289B8-8758-46E1-B813-89EF79662CE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{EC2289B8-8758-46E1-B813-89EF79662CE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{EC2289B8-8758-46E1-B813-89EF79662CE8}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {EB92666E-7E16-4AEB-9DA8-919E409198AF}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
|
@ -1,162 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Plugin.BLE;
|
|
||||||
using Plugin.BLE.Abstractions.Contracts;
|
|
||||||
using Plugin.BLE.Abstractions;
|
|
||||||
using System.Linq;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
using TINK.Model.Connector;
|
|
||||||
using Serilog;
|
|
||||||
using System.Threading;
|
|
||||||
using System;
|
|
||||||
using TINK.Services.BluetoothLock.Exception;
|
|
||||||
using Xamarin.Essentials;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
using LockItShared.Services.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public class LockItByGuidService : LockItServiceBase, ILocksService
|
|
||||||
{
|
|
||||||
/// <summary> Constructs a LockItByGuidService object.</summary>
|
|
||||||
/// <param name="cipher">Encrpyting/ decrypting object.</param>
|
|
||||||
public LockItByGuidService(ICipher cipher) : base(cipher)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Checks for locks which have not yet been discoverted and connects them. </summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="locksInfo">Locks to reconnect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation of a single lock.</param>
|
|
||||||
protected override async Task<IEnumerable<ILockService>> CheckConnectMissing(IEnumerable<LockInfoAuthTdo> locksInfo, TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not connect to locks by guid. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get list of target locks without invalid entries.
|
|
||||||
var validLocksInfo = locksInfo
|
|
||||||
.Where(x => x.IsGuidValid)
|
|
||||||
.Where(x => x.K_seed.Length > 0 && x.K_u.Length > 0)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
var locksList = new List<ILockService>();
|
|
||||||
|
|
||||||
// Connect to
|
|
||||||
foreach (var lockInfo in validLocksInfo)
|
|
||||||
{
|
|
||||||
if (DeviceList.Any(x => x.Name.GetBluetoothLockId() == lockInfo.Id || x.Guid == lockInfo.Guid))
|
|
||||||
{
|
|
||||||
// Device is already connected.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Connect to device and authenticate.
|
|
||||||
ILockService lockIt = null;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lockIt = await ConnectByGuid(lockInfo, connectTimeout);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
// Member is called for background update of missing devices.
|
|
||||||
// Do not display any error messages.
|
|
||||||
Log.ForContext<LockItByGuidService>().Error($"Authentication failed. {exception.Message}");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
locksList.Add(lockIt);
|
|
||||||
}
|
|
||||||
|
|
||||||
return locksList;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Connects to lock.</summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo"> Info required to connect to lock.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
public async Task<LockInfoTdo> ConnectAsync(LockInfoAuthTdo authInfo, TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not connect to lock by guid. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Connect to device and authenticate.
|
|
||||||
var lockIt = await ConnectByGuid(authInfo, connectTimeout);
|
|
||||||
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
return new LockInfoTdo.Builder { Id = authInfo.Id, Guid = authInfo.Guid, State = null }.Build();
|
|
||||||
}
|
|
||||||
|
|
||||||
DeviceList.Add(lockIt);
|
|
||||||
|
|
||||||
return await lockIt.GetLockStateAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Connects to lock.</summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo"> Info required to connect to lock.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
private async Task<ILockService> ConnectByGuid(LockInfoAuthTdo authInfo, TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
if (authInfo.Guid == TextToLockItTypeHelper.INVALIDLOCKGUID)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItByGuidService>().Error($"Can not connect to lock {authInfo.Id}. Guid is unknown.");
|
|
||||||
throw new GuidUnknownException();
|
|
||||||
}
|
|
||||||
|
|
||||||
var lockIt = DeviceList.FirstOrDefault(x => x.Name.GetBluetoothLockId() == authInfo.Id || x.Guid == authInfo.Guid);
|
|
||||||
if (lockIt != null && lockIt.GetDeviceState() == DeviceState.Connected)
|
|
||||||
{
|
|
||||||
// Device is already connected.
|
|
||||||
return lockIt;
|
|
||||||
}
|
|
||||||
|
|
||||||
var adapter = CrossBluetoothLE.Current.Adapter;
|
|
||||||
Log.ForContext<LockItByGuidService>().Debug($"Request connect to device {authInfo.Id}.");
|
|
||||||
|
|
||||||
if (LockItByGuidServiceHelper.DevelGuids.ContainsKey(authInfo.Id) && LockItByGuidServiceHelper.DevelGuids[authInfo.Id] != authInfo.Guid)
|
|
||||||
throw new System.Exception($"Invalid Guid {authInfo.Guid} for lock with id {authInfo.Id} detected. Guid should be {LockItByGuidServiceHelper.DevelGuids[authInfo.Id]}.");
|
|
||||||
|
|
||||||
IDevice device;
|
|
||||||
var cts = new CancellationTokenSource(connectTimeout);
|
|
||||||
// Step 1: Perform bluetooth connect.
|
|
||||||
try
|
|
||||||
{
|
|
||||||
device = await adapter.ConnectToKnownDeviceAsync(
|
|
||||||
authInfo.Guid,
|
|
||||||
new ConnectParameters(forceBleTransport: true), // Force BLE transport
|
|
||||||
cts.Token);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
if (exception is TaskCanceledException)
|
|
||||||
{
|
|
||||||
// A timeout occurred.
|
|
||||||
throw new System.Exception($"Can not connect to lock by guid.\r\nTimeout of {connectTimeout.TotalMilliseconds} [ms] elapsed.", exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByGuidService>().Error("Bluetooth connect to known device request failed. {Exception}", exception);
|
|
||||||
throw new System.Exception($"Can not connect to lock by guid.\r\n{exception.Message}", exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Step 2: Authenticate.
|
|
||||||
lockIt = await LockItEventBased.Authenticate(device, authInfo, CrossBluetoothLE.Current.Adapter, Cipher);
|
|
||||||
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItByGuidService>().Error("Connect to device failed.");
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return lockIt;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,256 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Plugin.BLE;
|
|
||||||
using Plugin.BLE.Abstractions.Contracts;
|
|
||||||
using System.Linq;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
using Serilog;
|
|
||||||
using Plugin.BLE.Abstractions;
|
|
||||||
using TINK.Model.Connector;
|
|
||||||
using System.Threading;
|
|
||||||
using System;
|
|
||||||
using Xamarin.Essentials;
|
|
||||||
using TINK.Services.BluetoothLock.Exception;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
/// <summary> Manages ILockIt- Locks.</summary>
|
|
||||||
public abstract class LockItByScanServiceBase : LockItServiceBase
|
|
||||||
{
|
|
||||||
private Func<IDevice, LockInfoAuthTdo, IAdapter, Task<LockItBase>> AuthenticateDelegate { get; set; }
|
|
||||||
|
|
||||||
public LockItByScanServiceBase(
|
|
||||||
ICipher cipher,
|
|
||||||
Func<IDevice, LockInfoAuthTdo, IAdapter, Task<LockItBase>> authenticateDelegate) : base(cipher)
|
|
||||||
{
|
|
||||||
AuthenticateDelegate = authenticateDelegate;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Connects to lock.</summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo"> Info required to connect to lock.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
public async Task<LockInfoTdo> ConnectAsync(LockInfoAuthTdo authInfo, TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not connect to lock by name. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Request to connect to device {authInfo.Id}.");
|
|
||||||
|
|
||||||
var lockIt = DeviceList.FirstOrDefault(x => x.Name.GetBluetoothLockId() == authInfo.Id || x.Guid == authInfo.Guid);
|
|
||||||
|
|
||||||
if (lockIt != null && lockIt.GetDeviceState() == DeviceState.Connected)
|
|
||||||
{
|
|
||||||
// Nothing to do
|
|
||||||
return await lockIt.GetLockStateAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lockIt != null)
|
|
||||||
{
|
|
||||||
// Reconnect required
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Device {lockIt.Name} has been already connected but needs reconnect.");
|
|
||||||
await lockIt.ReconnectAsync(authInfo, connectTimeout);
|
|
||||||
return await lockIt.GetLockStateAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Device has not yet been discovered.
|
|
||||||
var newlyDiscovertedDevice = await ScanForNewDevices(new List<int> { authInfo.Id }, connectTimeout);
|
|
||||||
|
|
||||||
var bleDevice = newlyDiscovertedDevice.FirstOrDefault(x => x.Name.GetBluetoothLockId() == authInfo.Id);
|
|
||||||
|
|
||||||
if (bleDevice == null)
|
|
||||||
{
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug("Can not connect because device was not discovered.");
|
|
||||||
throw new OutOfReachException();
|
|
||||||
}
|
|
||||||
|
|
||||||
var adapter = CrossBluetoothLE.Current.Adapter;
|
|
||||||
var cts = new CancellationTokenSource(connectTimeout);
|
|
||||||
|
|
||||||
// Connect to device and authenticate.
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Device sucessfully discovered. Request connect to device {bleDevice?.Name}. Connect state is {bleDevice?.State}.");
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await adapter.ConnectToDeviceAsync(
|
|
||||||
bleDevice,
|
|
||||||
new ConnectParameters(forceBleTransport: true /* Force BLE transport */),
|
|
||||||
cts.Token);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItBase>().Error("Can not connect to device by name. {Exception}", exception);
|
|
||||||
if (exception is TaskCanceledException)
|
|
||||||
{
|
|
||||||
// A timeout occurred.
|
|
||||||
throw new System.Exception($"Can not connect to lock by name.\r\nTimeout is {connectTimeout.TotalMilliseconds} [ms].\r\n{exception.Message}", exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Error("Bluetooth connect to known device request failed. {Exception}", exception);
|
|
||||||
throw new System.Exception($"Can not connect to lock by name. {exception.Message}", exception);
|
|
||||||
}
|
|
||||||
|
|
||||||
lockIt = await AuthenticateDelegate(bleDevice, authInfo, CrossBluetoothLE.Current.Adapter);
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
await adapter.DisconnectDeviceAsync(bleDevice);
|
|
||||||
return await Task.FromResult<LockInfoTdo>(null);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeviceList.Add(lockIt);
|
|
||||||
|
|
||||||
return await lockIt.GetLockStateAsync();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Checks for locks which have not yet been discoverted and connects them. </summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence for each lock to be connected. </remarks>
|
|
||||||
/// <param name="locksInfo">Locks to reconnect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation of a single lock.</param>
|
|
||||||
protected override async Task<IEnumerable<ILockService>> CheckConnectMissing(IEnumerable<LockInfoAuthTdo> locksInfo, TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
// Get list of target locks without invalid entries.
|
|
||||||
var validLocksInfo = locksInfo
|
|
||||||
.Where(x => x.IsIdValid)
|
|
||||||
.Where(x => x.K_seed.Length > 0 && x.K_u.Length > 0)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
// Get Locks to scan for
|
|
||||||
var locksInfoToScanFor = validLocksInfo.Where(x => !DeviceList.Any(y => y.Name.GetBluetoothLockId() == x.Id)).ToList();
|
|
||||||
|
|
||||||
// Check if bluetooth scan is required
|
|
||||||
if (locksInfoToScanFor.Count <= 0)
|
|
||||||
{
|
|
||||||
// No Scan required.
|
|
||||||
return new List<LockItBase>();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Do bluetooth scan
|
|
||||||
var scanTargets = locksInfoToScanFor.Select(x => x.Id).ToList();
|
|
||||||
var newlyDiscovertedDevicesList = await ScanForNewDevices(scanTargets, TimeSpan.FromSeconds(connectTimeout.TotalSeconds * scanTargets.Count));
|
|
||||||
|
|
||||||
var locksList = new List<LockItBase>();
|
|
||||||
|
|
||||||
// Connect to newly discovered devices.
|
|
||||||
foreach (var lockInfo in locksInfoToScanFor)
|
|
||||||
{
|
|
||||||
var device = newlyDiscovertedDevicesList.FirstOrDefault(x => x.Name.GetBluetoothLockId() == lockInfo.Id);
|
|
||||||
if (device == null)
|
|
||||||
{
|
|
||||||
// No device found for given lock.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Request connect to device {device?.Name}. Connect state is {device?.State}.");
|
|
||||||
|
|
||||||
var cts = new CancellationTokenSource(connectTimeout);
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
// Connect to device and authenticate.
|
|
||||||
await CrossBluetoothLE.Current.Adapter.ConnectToDeviceAsync(
|
|
||||||
device,
|
|
||||||
new ConnectParameters(forceBleTransport: true), // Force BLE transport
|
|
||||||
cts.Token);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItBase>().Error("Can not connect to lock. {Exception}", exception);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
LockItBase lockIt = null;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lockIt = await AuthenticateDelegate(device, lockInfo, CrossBluetoothLE.Current.Adapter);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
// Member is called for background update of missing devices.
|
|
||||||
// Do not display any error messages.
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Error($"Authentication failed. {exception.Message}");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
// connectiong to device succeded.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Auth succeeded for device {device}.");
|
|
||||||
locksList.Add(lockIt);
|
|
||||||
}
|
|
||||||
|
|
||||||
return locksList;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Scans for a given set of devices.</summary>
|
|
||||||
/// <param name="targetLocks">Locks to scan for.</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
private static async Task<IEnumerable<IDevice>> ScanForNewDevices(
|
|
||||||
IEnumerable<int> targetLocks,
|
|
||||||
TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
var adapter = CrossBluetoothLE.Current.Adapter;
|
|
||||||
|
|
||||||
var newlyDiscovertedDevicesList = new List<IDevice>();
|
|
||||||
|
|
||||||
var cts = new CancellationTokenSource(connectTimeout);
|
|
||||||
|
|
||||||
// Not all devices already connected.
|
|
||||||
// Start scanning
|
|
||||||
adapter.DeviceDiscovered += (s, a) =>
|
|
||||||
{
|
|
||||||
var name = a.Device.Name;
|
|
||||||
if (string.IsNullOrEmpty(name))
|
|
||||||
{
|
|
||||||
// Lock without name detected.
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Lock without name discovered.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (targetLocks.Where(x => x != TextToLockItTypeHelper.INVALIDLOCKID).Contains(name.GetBluetoothLockId()))
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"New LOCKIT device {name} discovered.");
|
|
||||||
|
|
||||||
newlyDiscovertedDevicesList.Add(a.Device);
|
|
||||||
|
|
||||||
if (newlyDiscovertedDevicesList.Count() >= targetLocks.Count())
|
|
||||||
{
|
|
||||||
cts.Cancel();
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Verbose($"Device of unknown advertisement name {name} discovered.");
|
|
||||||
};
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await adapter.StartScanningForDevicesAsync(cancellationToken: cts.Token);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Error("Bluetooth scan failed. {Exception}", exception);
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await adapter.StopScanningForDevicesAsync();
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Error("Stop scanning failed. {Excpetion}", exception);
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return newlyDiscovertedDevicesList;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
using TINK.Model.Device;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public class LockItByScanServiceEventBased : LockItByScanServiceBase, ILocksService
|
|
||||||
{
|
|
||||||
public LockItByScanServiceEventBased(ICipher cipher) : base(
|
|
||||||
cipher,
|
|
||||||
(bleDevice, authInfo, adapter) => LockItEventBased.Authenticate(bleDevice, authInfo, adapter, cipher)) { }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
using TINK.Model.Device;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public class LockItByScanServicePolling : LockItByScanServiceBase, ILocksService
|
|
||||||
{
|
|
||||||
public LockItByScanServicePolling(ICipher cipher) : base(
|
|
||||||
cipher,
|
|
||||||
(bleDevice, authInfo, adapter) => LockItPolling.Authenticate(bleDevice, authInfo, adapter, cipher)) { }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,312 +0,0 @@
|
||||||
using Plugin.BLE.Abstractions.Contracts;
|
|
||||||
using Plugin.BLE.Abstractions.EventArgs;
|
|
||||||
using Serilog;
|
|
||||||
using System;
|
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
using TINK.Services.BluetoothLock.Exception;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
using Xamarin.Essentials;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public class LockItEventBased : LockItBase
|
|
||||||
{
|
|
||||||
private LockItEventBased(IDevice device, IAdapter adapter, ICipher cipher) : base(device, adapter, cipher)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Reconnects to device. </summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo">Info required to connect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout to apply when connecting to bluetooth lock.</param>
|
|
||||||
/// <returns>True if connecting succeeded, false if not.</returns>
|
|
||||||
public async override Task ReconnectAsync(
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
TimeSpan connectTimeout)
|
|
||||||
=> await ReconnectAsync(
|
|
||||||
authInfo,
|
|
||||||
connectTimeout,
|
|
||||||
() => new LockItEventBased(Device, Adapter, Cipher));
|
|
||||||
|
|
||||||
/// <summary> Connects to device. </summary>
|
|
||||||
/// <param name="authInfo">Info required to connect.</param>
|
|
||||||
/// <param name="device">Device with must be connected.</param>
|
|
||||||
/// <returns>True if connecting succeeded, false if not.</returns>
|
|
||||||
public static async Task<LockItBase> Authenticate(
|
|
||||||
IDevice device,
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
IAdapter adapter,
|
|
||||||
ICipher cipher)
|
|
||||||
=> await Authenticate(
|
|
||||||
device,
|
|
||||||
authInfo,
|
|
||||||
adapter,
|
|
||||||
cipher,
|
|
||||||
() => new LockItEventBased(device, adapter, cipher));
|
|
||||||
|
|
||||||
/// <summary> Opens lock. </summary>
|
|
||||||
/// <returns> Locking state.</returns>
|
|
||||||
public async override Task<LockitLockingState?> OpenAsync()
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not open lock. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
LockitLockingState? lockingState = (await GetLockStateAsync())?.State;
|
|
||||||
if (lockingState == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItEventBased>().Information("Can not open lock. Device is not reachable (get state).");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lockingState.Value.GetLockingState() == LockingState.Open)
|
|
||||||
{
|
|
||||||
// Lock is already open.
|
|
||||||
Log.ForContext<LockItEventBased>().Information("No need to open lock. Lock is already open.");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItEventBased>().Debug($"Request to closed lock. Current lockikng state is {lockingState}, counter value {ActivateLockWriteCounter}.");
|
|
||||||
|
|
||||||
double batteryPercentage = double.NaN;
|
|
||||||
|
|
||||||
var lockStateCharacteristic = await GetStateCharacteristicAsync();
|
|
||||||
var batteryStateCharacteristic = await GetBatteryCharacteristicAsync();
|
|
||||||
|
|
||||||
TaskCompletionSource<LockitLockingState?> tcs = new TaskCompletionSource<LockitLockingState?>();
|
|
||||||
var cts = new CancellationTokenSource(OPEN_CLOSE_TIMEOUT_MS);
|
|
||||||
cts.Token.Register(() => tcs.TrySetCanceled(), useSynchronizationContext: false);
|
|
||||||
|
|
||||||
EventHandler<CharacteristicUpdatedEventArgs> lockStateCharcteristicChanged = (sender, args) => GetStateValue(tcs, args.Characteristic.Value);
|
|
||||||
EventHandler<CharacteristicUpdatedEventArgs> batteryStateCharcteristicChanged = (sender, args) => batteryPercentage = GetChargeValue(args.Characteristic.Value);
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lockStateCharacteristic.ValueUpdated += lockStateCharcteristicChanged;
|
|
||||||
batteryStateCharacteristic.ValueUpdated += batteryStateCharcteristicChanged;
|
|
||||||
} catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Subscribing to events when opening lock failed.{Exception}", ex);
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await lockStateCharacteristic.StartUpdatesAsync();
|
|
||||||
await batteryStateCharacteristic.StartUpdatesAsync();
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Starting updates wen opening lock failed.{Exception}", ex);
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
var result = await OpenCloseLock(true); // Close lock;
|
|
||||||
|
|
||||||
if (!result)
|
|
||||||
{
|
|
||||||
// State did not change. Return previous state.
|
|
||||||
Log.ForContext<LockItEventBased>().Information($"Opening lock failed.");
|
|
||||||
return await Task.FromResult(lockingState.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait until event has been received.
|
|
||||||
lockingState = await tcs.Task;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await lockStateCharacteristic.StopUpdatesAsync();
|
|
||||||
await batteryStateCharacteristic.StopUpdatesAsync();
|
|
||||||
|
|
||||||
lockStateCharacteristic.ValueUpdated -= lockStateCharcteristicChanged;
|
|
||||||
batteryStateCharacteristic.ValueUpdated -= batteryStateCharcteristicChanged;
|
|
||||||
} catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Sopping updates/ unsubscribing from events when opening lock failed.{Exception}", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lockingState == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (lockingState.Value)
|
|
||||||
{
|
|
||||||
case LockitLockingState.Open:
|
|
||||||
return lockingState.Value;
|
|
||||||
|
|
||||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
|
||||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
|
||||||
throw new CouldntOpenBoldIsBlockedException();
|
|
||||||
|
|
||||||
case LockitLockingState.Unknown:
|
|
||||||
// Expected error. ILockIt count not be opened (Spoke has blocked/ blocks lock, ....)
|
|
||||||
throw new CouldntOpenBoldWasBlockedException();
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Comprises values
|
|
||||||
// - LockitLockingState.Closed
|
|
||||||
// - LockitLockingState.Unknown
|
|
||||||
// - LockitLockingState.CouldntOpenBoldBlocked
|
|
||||||
// Internal error which sould never occure. Lock refuses to open but connection is ok.
|
|
||||||
throw new CouldntOpenInconsistentStateExecption(lockingState.Value.GetLockingState());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Close the lock.</summary>
|
|
||||||
/// <returns>Locking state.</returns>
|
|
||||||
public async override Task<LockitLockingState?> CloseAsync()
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not close lock. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get current state
|
|
||||||
LockitLockingState? lockingState = (await GetLockStateAsync()).State;
|
|
||||||
if (lockingState == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Can not close lock. Device is not reachable (get state).");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lockingState.Value.GetLockingState() == LockingState.Closed)
|
|
||||||
{
|
|
||||||
// Lock is already closed.
|
|
||||||
Log.ForContext<LockItEventBased>().Error("No need to close lock. Lock is already closed.");
|
|
||||||
return await Task.FromResult(lockingState.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
lockingState = null;
|
|
||||||
var lockStateCharacteristic = await GetStateCharacteristicAsync();
|
|
||||||
|
|
||||||
TaskCompletionSource<LockitLockingState?> tcs = new TaskCompletionSource<LockitLockingState?>();
|
|
||||||
var cts = new CancellationTokenSource(OPEN_CLOSE_TIMEOUT_MS);
|
|
||||||
cts.Token.Register(() => tcs.TrySetCanceled(), useSynchronizationContext: false);
|
|
||||||
|
|
||||||
EventHandler<CharacteristicUpdatedEventArgs> lockStateCharcteristicChanged = (sender, args) => GetStateValue(tcs, args.Characteristic.Value);
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lockStateCharacteristic.ValueUpdated += lockStateCharcteristicChanged;
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Subscribing to events when closing lock failed.{Exception}", ex);
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await lockStateCharacteristic.StartUpdatesAsync();
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Starting update when closing lock failed.{Exception}", ex);
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Debug($"Request to closed lock. Current state is {lockingState}, counter value {ActivateLockWriteCounter}.");
|
|
||||||
var result = await OpenCloseLock(false); // Close lock
|
|
||||||
if (!result)
|
|
||||||
{
|
|
||||||
// State did not change. Return previous state.
|
|
||||||
Log.ForContext<LockItEventBased>().Information($"Closing lock failed.");
|
|
||||||
return await Task.FromResult(lockingState.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Wait until event has been received.
|
|
||||||
lockingState = await tcs.Task;
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await lockStateCharacteristic.StopUpdatesAsync();
|
|
||||||
|
|
||||||
lockStateCharacteristic.ValueUpdated -= lockStateCharcteristicChanged;
|
|
||||||
} catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Sopping update/ unsubscribing from events when closing lock failed.{Exception}", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lockingState == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (lockingState.Value)
|
|
||||||
{
|
|
||||||
case LockitLockingState.CouldntCloseBoldBlocked:
|
|
||||||
// Expected error. ILockIt could not be closed (Spoke blocks lock, ....)
|
|
||||||
throw new CouldntCloseBoldBlockedException();
|
|
||||||
|
|
||||||
case LockitLockingState.CouldntCloseMoving:
|
|
||||||
// Expected error. ILockIt could not be closed (bike is moving)
|
|
||||||
throw new CounldntCloseMovingException();
|
|
||||||
|
|
||||||
case LockitLockingState.Closed:
|
|
||||||
return lockingState;
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Comprises values
|
|
||||||
// - LockitLockingState.Open
|
|
||||||
// - LockitLockingState.Unknown
|
|
||||||
// - LockitLockingState.CouldntOpenBoldBlocked
|
|
||||||
// Internal error which sould never occurre. Lock refuses to close but connection is ok.
|
|
||||||
throw new CouldntCloseInconsistentStateExecption(lockingState.Value.GetLockingState());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Gets the locking state from event argument. </summary>
|
|
||||||
Action<TaskCompletionSource<LockitLockingState?>, byte[]> GetStateValue = (tcs, value) =>
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (value?.Length <= 0)
|
|
||||||
{
|
|
||||||
tcs.TrySetResult(null);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
tcs.TrySetResult((LockitLockingState?)value[0]);
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Error on sinking lock state characteristic on opening/closing .{Exception}", ex);
|
|
||||||
tcs.TrySetResult(null);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/// <summary> Gets the battery state from lock.</summary>
|
|
||||||
Func<byte[], double> GetChargeValue = (value) =>
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (value.Length <= 0)
|
|
||||||
{
|
|
||||||
return double.NaN;
|
|
||||||
}
|
|
||||||
|
|
||||||
return value[0];
|
|
||||||
}
|
|
||||||
catch (System.Exception ex)
|
|
||||||
{
|
|
||||||
Log.ForContext<LockItEventBased>().Error("Error on sinking battery state characteristic on opening.{Exception}", ex);
|
|
||||||
return double.NaN;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,219 +0,0 @@
|
||||||
using Plugin.BLE.Abstractions.Contracts;
|
|
||||||
using Serilog;
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
using TINK.Services.BluetoothLock.Exception;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
using Xamarin.Essentials;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public class LockItPolling : LockItBase
|
|
||||||
{
|
|
||||||
public LockItPolling(IDevice device, IAdapter adapter, ICipher cipher) : base(device, adapter, cipher)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Reconnects to device. </summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo">Info required to connect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout to apply when connecting to bluetooth lock.</param>
|
|
||||||
/// <returns>True if connecting succeeded, false if not.</returns>
|
|
||||||
public override async Task ReconnectAsync(
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
TimeSpan connectTimeout)
|
|
||||||
=> await ReconnectAsync(
|
|
||||||
authInfo,
|
|
||||||
connectTimeout,
|
|
||||||
() => new LockItPolling(Device, Adapter, Cipher));
|
|
||||||
|
|
||||||
/// <summary> Connects to device. </summary>
|
|
||||||
/// <param name="authInfo">Info required to connect.</param>
|
|
||||||
/// <param name="device">Device with must be connected.</param>
|
|
||||||
/// <returns>True if connecting succeeded, false if not.</returns>
|
|
||||||
public static async Task<LockItBase> Authenticate(
|
|
||||||
IDevice device,
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
IAdapter adapter,
|
|
||||||
ICipher cipher)
|
|
||||||
=> await Authenticate(
|
|
||||||
device,
|
|
||||||
authInfo,
|
|
||||||
adapter,
|
|
||||||
cipher,
|
|
||||||
() => new LockItPolling(device, adapter, cipher));
|
|
||||||
|
|
||||||
/// <summary> Opens lock. </summary>
|
|
||||||
/// <returns> Locking state.</returns>
|
|
||||||
public async override Task<LockitLockingState?> OpenAsync()
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not open lock. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
var info = await GetLockStateAsync();
|
|
||||||
if (info?.State == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItPolling>().Information("Can not open lock. Device is not reachable (get state).");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info.State.Value.GetLockingState() == LockingState.Open)
|
|
||||||
{
|
|
||||||
// Lock is already open.
|
|
||||||
Log.ForContext<LockItPolling>().Information("No need to open lock. Lock is already open.");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItPolling>().Debug($"Request to closed lock. Current lockikng state is {info}, counter value {ActivateLockWriteCounter}.");
|
|
||||||
|
|
||||||
var result = await OpenCloseLock(
|
|
||||||
true); // Close lock);
|
|
||||||
|
|
||||||
if (!result)
|
|
||||||
{
|
|
||||||
// State did not change. Return previous state.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"Opening lock failed.");
|
|
||||||
return await Task.FromResult(info.State.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
info = await GetLockStateAsync();
|
|
||||||
if (info?.State == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"State after open command unknown. Device is not reachable (get state).");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
var watch = new Stopwatch();
|
|
||||||
watch.Start();
|
|
||||||
|
|
||||||
while (info?.State != null
|
|
||||||
&& info.State.Value != LockitLockingState.CouldntOpenBoldBlocked
|
|
||||||
&& info.State.Value != LockitLockingState.Open
|
|
||||||
&& watch.Elapsed < TimeSpan.FromMilliseconds(OPEN_CLOSE_TIMEOUT_MS))
|
|
||||||
{
|
|
||||||
info = await GetLockStateAsync(true); // While opening lock seems not always respond to reading operations.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"Current lock state is {info?.State.Value}.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (info.State.Value)
|
|
||||||
{
|
|
||||||
case LockitLockingState.Open:
|
|
||||||
return info.State.Value;
|
|
||||||
|
|
||||||
case LockitLockingState.CouldntOpenBoldBlocked:
|
|
||||||
// Expected error. ILockIt count not be opened (Spoke blocks lock, ....)
|
|
||||||
throw new CouldntOpenBoldIsBlockedException();
|
|
||||||
|
|
||||||
case LockitLockingState.Unknown:
|
|
||||||
// Expected error. ILockIt count not be opened (Spoke has blocked/ blocks lock, ....)
|
|
||||||
throw new CouldntOpenBoldWasBlockedException();
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Comprises values
|
|
||||||
// - LockitLockingState.Closed
|
|
||||||
// - LockitLockingState.CouldntCloseMoving (should never happen because command open was send)
|
|
||||||
// - LockitLockingState.CouldntCloseBoldBlocked (should never happen because command open was send)
|
|
||||||
// Internal error which sould never occure. Lock refuses to open but connection is ok.
|
|
||||||
throw new CouldntOpenInconsistentStateExecption(info.State.Value.GetLockingState());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Close the lock.</summary>
|
|
||||||
/// <returns>Locking state.</returns>
|
|
||||||
public async override Task<LockitLockingState?> CloseAsync()
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not close lock. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get current state
|
|
||||||
var info = await GetLockStateAsync();
|
|
||||||
if (info?.State == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItPolling>().Error("Can not close lock. Device is not reachable (get state).");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info.State.Value.GetLockingState() == LockingState.Closed)
|
|
||||||
{
|
|
||||||
// Lock is already closed.
|
|
||||||
Log.ForContext<LockItPolling>().Error("No need to close lock. Lock is already closed.");
|
|
||||||
return await Task.FromResult(info.State.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItPolling>().Debug($"Request to closed lock. Current state is {info}, counter value {ActivateLockWriteCounter}.");
|
|
||||||
|
|
||||||
var result = await OpenCloseLock(false); // Close lock
|
|
||||||
if (!result)
|
|
||||||
{
|
|
||||||
// State did not change. Return previous state.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"Closing lock failed.");
|
|
||||||
return await Task.FromResult(info.State.Value);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get lock state until either lock state chaneges or until log gets unreachable.
|
|
||||||
info = await GetLockStateAsync();
|
|
||||||
if (info?.State == null)
|
|
||||||
{
|
|
||||||
// Device not reachable.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"Lock state after close command unknown.");
|
|
||||||
return await Task.FromResult((LockitLockingState?)null);
|
|
||||||
}
|
|
||||||
|
|
||||||
var watch = new Stopwatch();
|
|
||||||
watch.Start();
|
|
||||||
|
|
||||||
while (info.State != null
|
|
||||||
&& info.State.Value != LockitLockingState.CouldntCloseBoldBlocked
|
|
||||||
&& info.State.Value != LockitLockingState.CouldntCloseMoving
|
|
||||||
&& info.State.Value != LockitLockingState.Closed
|
|
||||||
&& watch.Elapsed < TimeSpan.FromMilliseconds(OPEN_CLOSE_TIMEOUT_MS))
|
|
||||||
{
|
|
||||||
info = await GetLockStateAsync(true); ; // While closing lock seems not always respond to reading operations.
|
|
||||||
Log.ForContext<LockItPolling>().Information($"Current lock state is {info?.State.Value}.");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info == null)
|
|
||||||
{
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (info.State.Value)
|
|
||||||
{
|
|
||||||
case LockitLockingState.CouldntCloseBoldBlocked:
|
|
||||||
// Expected error. ILockIt could not be closed (Spoke blocks lock, ....)
|
|
||||||
throw new CouldntCloseBoldBlockedException();
|
|
||||||
|
|
||||||
case LockitLockingState.CouldntCloseMoving:
|
|
||||||
// Expected error. ILockIt could not be closed (bike is moving)
|
|
||||||
throw new CounldntCloseMovingException();
|
|
||||||
|
|
||||||
case LockitLockingState.Closed:
|
|
||||||
// Everything is ok.
|
|
||||||
return info.State.Value;
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Comprises values
|
|
||||||
// - LockitLockingState.Open
|
|
||||||
// - LockitLockingState.Unknown
|
|
||||||
// - LockitLockingState.CouldntOpenBoldBlocked
|
|
||||||
// Internal error which sould never occurre. Lock refuses to close but connection is ok.
|
|
||||||
throw new CouldntCloseInconsistentStateExecption(info.State.Value.GetLockingState());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,182 +0,0 @@
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Linq;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
using TINK.Model.Connector;
|
|
||||||
using System;
|
|
||||||
using Serilog;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
using Xamarin.Essentials;
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public abstract class LockItServiceBase
|
|
||||||
{
|
|
||||||
/// <summary>Constructs base object.</summary>
|
|
||||||
/// <param name="cipher">Encrpyting/ decrypting object.</param> /// <param name="connectTimeout">Timeout to apply when connecting to bluetooth lock.</param>
|
|
||||||
public LockItServiceBase(ICipher cipher)
|
|
||||||
{
|
|
||||||
Cipher = cipher;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Holds timeout values for series of connecting attemps to a lock or multiple locks. </summary>
|
|
||||||
public ITimeOutProvider TimeOut { get; set; }
|
|
||||||
|
|
||||||
protected ICipher Cipher { get; }
|
|
||||||
|
|
||||||
/// <summary> List of available or connected bluetooth devices. </summary>
|
|
||||||
protected List<ILockService> DeviceList = new List<ILockService>();
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary> Reconnect locks of interest if required. </summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence for each lock to be reconnected. </remarks>
|
|
||||||
/// <param name="locksInfo">Locks to reconnect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
public static async Task CheckReconnect(
|
|
||||||
IEnumerable<ILockService> deviceList,
|
|
||||||
IEnumerable<LockInfoAuthTdo> locksInfo,
|
|
||||||
TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
// Get list of target locks without invalid entries.
|
|
||||||
var validLocksInfo = locksInfo
|
|
||||||
.Where(x => x.IsIdValid || x.IsGuidValid)
|
|
||||||
.Where(x => x.K_seed.Length > 0 && x.K_u.Length > 0)
|
|
||||||
.ToList();
|
|
||||||
|
|
||||||
foreach (var device in deviceList)
|
|
||||||
{
|
|
||||||
if (device.GetDeviceState() == DeviceState.Connected)
|
|
||||||
{
|
|
||||||
// No need to reconnect device because device is already connected.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
var lockInfo = validLocksInfo.FirstOrDefault(x => x.Id == device. Name.GetBluetoothLockId() || x.Guid == device.Guid);
|
|
||||||
|
|
||||||
if (lockInfo == null)
|
|
||||||
{
|
|
||||||
// Current lock from deviceList is not of interest detected, no need to reconnect.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
await device.ReconnectAsync(lockInfo, connectTimeout);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
// Member is called for background update of missing devices.
|
|
||||||
// Do not display any error messages.
|
|
||||||
Log.ForContext<LockItServiceBase>().Error($"Reconnect failed. {exception.Message}");
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Gets the state for locks of interest.</summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// Might require a
|
|
||||||
/// - connect to lock
|
|
||||||
/// - reconnect to lock
|
|
||||||
/// </remarks>
|
|
||||||
/// <param name="locksInfo">Locks toget info for.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation of a single lock.</param>
|
|
||||||
public async Task<IEnumerable<LockInfoTdo>> GetLocksStateAsync(
|
|
||||||
IEnumerable<LockInfoAuthTdo> locksInfo,
|
|
||||||
TimeSpan connectTimeout)
|
|
||||||
{
|
|
||||||
if (locksInfo.Count() == 0)
|
|
||||||
{
|
|
||||||
// Nothing to do.
|
|
||||||
return new List<LockInfoTdo>();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reconnect locks.
|
|
||||||
await CheckReconnect(DeviceList, locksInfo, connectTimeout);
|
|
||||||
|
|
||||||
// Connect to locks which were not yet discovered.
|
|
||||||
DeviceList.AddRange(await CheckConnectMissing(locksInfo, connectTimeout));
|
|
||||||
|
|
||||||
// Get devices for which to update state.
|
|
||||||
var locksInfoState = new List<LockInfoTdo>();
|
|
||||||
|
|
||||||
foreach (var device in DeviceList)
|
|
||||||
{
|
|
||||||
var lockInfoAuth = locksInfo.FirstOrDefault(x => x.Guid == device.Guid || x.Id == device.Id);
|
|
||||||
if (lockInfoAuth == null)
|
|
||||||
{
|
|
||||||
// Device is not of interest.
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
var state = await device.GetLockStateAsync();
|
|
||||||
locksInfoState.Add(new LockInfoTdo.Builder
|
|
||||||
{
|
|
||||||
Id = lockInfoAuth.Id,
|
|
||||||
Guid = lockInfoAuth.IsGuidValid ? lockInfoAuth.Guid : device.Guid,
|
|
||||||
State = state?.State
|
|
||||||
}.Build());
|
|
||||||
}
|
|
||||||
|
|
||||||
return locksInfoState;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="locksInfo">Locks to reconnect.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation of a single lock.</param>
|
|
||||||
protected abstract Task<IEnumerable<ILockService>> CheckConnectMissing(
|
|
||||||
IEnumerable<LockInfoAuthTdo> locksInfo,
|
|
||||||
TimeSpan connectTimeout);
|
|
||||||
|
|
||||||
/// <summary>Gets a lock by bike Id.</summary>
|
|
||||||
/// <param name="bikeId"></param>
|
|
||||||
/// <returns>Lock object</returns>
|
|
||||||
public ILockService this[int bikeId]
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var device = DeviceList.FirstOrDefault(x => x.Name.GetBluetoothLockId() == bikeId);
|
|
||||||
if (device == null)
|
|
||||||
{
|
|
||||||
return new NullLock(bikeId);
|
|
||||||
}
|
|
||||||
|
|
||||||
return device;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Connects to lock.</summary>
|
|
||||||
/// <remarks> Consists of a bluetooth connect plus invocation of an authentication sequence. </remarks>
|
|
||||||
/// <param name="authInfo"> Info required to connect to lock.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
public async Task<LockingState> DisconnectAsync(int bikeId, Guid bikeGuid)
|
|
||||||
{
|
|
||||||
if (DeviceInfo.Platform != DevicePlatform.Unknown && MainThread.IsMainThread == false)
|
|
||||||
{
|
|
||||||
throw new System.Exception("Can not disconnect from lock. Bluetooth code must be run on main thread");
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<LockItByScanServiceBase>().Debug($"Request to disconnect from device {bikeId}/ {bikeGuid}.");
|
|
||||||
|
|
||||||
var lockIt = DeviceList.FirstOrDefault(x => x.Name.GetBluetoothLockId() == bikeId || x.Guid == bikeGuid);
|
|
||||||
|
|
||||||
if (lockIt == null)
|
|
||||||
{
|
|
||||||
// Nothing to do
|
|
||||||
return LockingState.Disconnected;
|
|
||||||
}
|
|
||||||
|
|
||||||
DeviceList.Remove(lockIt);
|
|
||||||
|
|
||||||
if (lockIt.GetDeviceState() == DeviceState.Disconnected)
|
|
||||||
{
|
|
||||||
// Nothing to do
|
|
||||||
return LockingState.Disconnected;
|
|
||||||
}
|
|
||||||
|
|
||||||
await lockIt.Disconnect();
|
|
||||||
return LockingState.Disconnected;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
using TINK.Model.Connector;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.BLE
|
|
||||||
{
|
|
||||||
public static class LockItServiceHelper
|
|
||||||
{
|
|
||||||
public static string Name { get => TextToLockItTypeHelper.ISHAREITADVERTISMENTTITLE; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,42 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
<PropertyGroup Label="MultilingualAppToolkit">
|
|
||||||
<MultilingualAppToolkitVersion>4.0</MultilingualAppToolkitVersion>
|
|
||||||
<MultilingualFallbackLanguage>en-GB</MultilingualFallbackLanguage>
|
|
||||||
<TranslationReport Condition="'$(Configuration)' == 'Release'">true</TranslationReport>
|
|
||||||
<SuppressPseudoWarning Condition="'$(Configuration)' == 'Debug'">true</SuppressPseudoWarning>
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
|
||||||
<RootNamespace>TINK</RootNamespace>
|
|
||||||
<NeutralLanguage>en-GB</NeutralLanguage>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\Microsoft.Multilingual.ResxResources.targets" Label="MultilingualAppToolkit" Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\v$(MultilingualAppToolkitVersion)\Microsoft.Multilingual.ResxResources.targets')" />
|
|
||||||
<Target Name="MATPrerequisite" BeforeTargets="PrepareForBuild" Condition="!Exists('$(MSBuildExtensionsPath)\Microsoft\Multilingual App Toolkit\Microsoft.Multilingual.ResxResources.targets')" Label="MultilingualAppToolkit">
|
|
||||||
<Warning Text="$(MSBuildProjectFile) is Multilingual build enabled, but the Multilingual App Toolkit is unavailable during the build. If building with Visual Studio, please check to ensure that toolkit is properly installed." />
|
|
||||||
</Target>
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Model\Bikes\Bike\BluetoothLock\" />
|
|
||||||
<Folder Include="Model\Bikes\Bike\" />
|
|
||||||
<Folder Include="Model\Device\" />
|
|
||||||
<Folder Include="Services\BluetoothLock\Crypto\" />
|
|
||||||
<Folder Include="Services\BluetoothLock\Tdo\" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
|
||||||
<PackageReference Include="Serilog" Version="2.10.0" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<Compile Update="MultilingualResources\Resources.Designer.cs">
|
|
||||||
<DesignTime>True</DesignTime>
|
|
||||||
<AutoGen>True</AutoGen>
|
|
||||||
<DependentUpon>Resources.resx</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<EmbeddedResource Update="MultilingualResources\Resources.resx">
|
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
|
||||||
</EmbeddedResource>
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
|
@ -1,25 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 16
|
|
||||||
VisualStudioVersion = 16.0.31229.75
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LockItShared", "LockItShared.csproj", "{C4194BC7-22CF-4F1C-B5F8-E75F9F552E34}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{C4194BC7-22CF-4F1C-B5F8-E75F9F552E34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{C4194BC7-22CF-4F1C-B5F8-E75F9F552E34}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{C4194BC7-22CF-4F1C-B5F8-E75F9F552E34}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{C4194BC7-22CF-4F1C-B5F8-E75F9F552E34}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {9539C371-F0FB-47C0-B1B3-76875B4923FB}
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
|
@ -1,11 +0,0 @@
|
||||||
namespace TINK.Model.Bike.BluetoothLock
|
|
||||||
{
|
|
||||||
public interface ILockInfo
|
|
||||||
{
|
|
||||||
/// <summary> Identification number of bluetooth lock.</summary>
|
|
||||||
int Id { get; }
|
|
||||||
|
|
||||||
/// <summary> Gets the user key.</summary>
|
|
||||||
byte[] UserKey { get; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,127 +0,0 @@
|
||||||
using TINK.Model.Connector;
|
|
||||||
using Newtonsoft.Json;
|
|
||||||
using System;
|
|
||||||
using System.Runtime.Serialization;
|
|
||||||
|
|
||||||
namespace TINK.Model.Bike.BluetoothLock
|
|
||||||
{
|
|
||||||
/// <summary> Locking states. </summary>
|
|
||||||
public enum LockingState
|
|
||||||
{
|
|
||||||
Disconnected,
|
|
||||||
|
|
||||||
/// <summary> Lock might be open, closed or something in between..</summary>
|
|
||||||
Unknown,
|
|
||||||
|
|
||||||
/// <summary> Lock is closed. </summary>
|
|
||||||
Closed,
|
|
||||||
|
|
||||||
/// <summary> Lock is open. </summary>
|
|
||||||
Open
|
|
||||||
}
|
|
||||||
|
|
||||||
[DataContract]
|
|
||||||
public class LockInfo : ILockInfo, IEquatable<LockInfo>
|
|
||||||
{
|
|
||||||
/// <summary> Identification number of bluetooth lock, 6-digits, second part of advertisement name.</summary>
|
|
||||||
[DataMember]
|
|
||||||
public int Id { get; private set; } = TextToLockItTypeHelper.INVALIDLOCKID;
|
|
||||||
|
|
||||||
/// <summary> Identification GUID of bluetooth lock.</summary>
|
|
||||||
[DataMember]
|
|
||||||
public Guid Guid { get; private set; } = TextToLockItTypeHelper.INVALIDLOCKGUID;
|
|
||||||
|
|
||||||
[DataMember]
|
|
||||||
public byte[] UserKey { get; private set; }
|
|
||||||
|
|
||||||
[DataMember]
|
|
||||||
public byte[] AdminKey { get; private set; }
|
|
||||||
|
|
||||||
[DataMember]
|
|
||||||
public byte[] Seed { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Locking state of bluetooth lock. </summary>
|
|
||||||
[DataMember]
|
|
||||||
public LockingState State { get; private set; } = LockingState.Disconnected;
|
|
||||||
|
|
||||||
public bool IsIdValid => Id != TextToLockItTypeHelper.INVALIDLOCKID;
|
|
||||||
|
|
||||||
public bool IsGuidValid => Guid != TextToLockItTypeHelper.INVALIDLOCKGUID;
|
|
||||||
|
|
||||||
public override bool Equals(object obj) => this.Equals(obj as LockInfo);
|
|
||||||
|
|
||||||
public bool Equals(LockInfo other)
|
|
||||||
{
|
|
||||||
if (Object.ReferenceEquals(other, null)) return false;
|
|
||||||
if (Object.ReferenceEquals(this, other)) return true;
|
|
||||||
if (this.GetType() != other.GetType()) return false;
|
|
||||||
|
|
||||||
return ToString() == other.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override int GetHashCode()
|
|
||||||
{
|
|
||||||
return ToString().GetHashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string ToString()
|
|
||||||
{
|
|
||||||
return JsonConvert.SerializeObject(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool operator ==(LockInfo lhs, LockInfo rhs)
|
|
||||||
{
|
|
||||||
if (Object.ReferenceEquals(lhs, null))
|
|
||||||
return Object.ReferenceEquals(rhs, null) ? true /*null == null = true*/: false;
|
|
||||||
|
|
||||||
return lhs.Equals(rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool operator !=(LockInfo lhs, LockInfo rhs)
|
|
||||||
{
|
|
||||||
return !(lhs == rhs);
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Builder
|
|
||||||
{
|
|
||||||
public Builder(LockInfo lockInfo = null)
|
|
||||||
{
|
|
||||||
if (lockInfo == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
LockInfo = JsonConvert.DeserializeObject<LockInfo>(JsonConvert.SerializeObject(lockInfo));
|
|
||||||
}
|
|
||||||
|
|
||||||
private readonly LockInfo LockInfo = new LockInfo();
|
|
||||||
|
|
||||||
public byte[] UserKey { get => LockInfo.UserKey; set => LockInfo.UserKey = value; }
|
|
||||||
|
|
||||||
public byte[] AdminKey { get => LockInfo.AdminKey; set => LockInfo.AdminKey = value; }
|
|
||||||
|
|
||||||
public byte[] Seed { get => LockInfo.Seed; set => LockInfo.Seed = value; }
|
|
||||||
|
|
||||||
public int Id { get => LockInfo.Id; set => LockInfo.Id = value; }
|
|
||||||
|
|
||||||
public Guid Guid { get => LockInfo.Guid; set => LockInfo.Guid = value; }
|
|
||||||
|
|
||||||
public LockingState State { get => LockInfo.State; set => LockInfo.State = value; }
|
|
||||||
|
|
||||||
public LockInfo Build()
|
|
||||||
{
|
|
||||||
// Ensure consistency.
|
|
||||||
if ((UserKey?.Length > 0 || Seed?.Length > 0)
|
|
||||||
&& (UserKey?.Length == 0 || Seed?.Length == 0 || !LockInfo.IsIdValid))
|
|
||||||
throw new ArgumentException($"Can not build {typeof(LockInfo).Name}. Lock parameters must either be all know or all unknown.");
|
|
||||||
|
|
||||||
if (UserKey == null) UserKey = new byte[0];
|
|
||||||
if (AdminKey == null) AdminKey = new byte[0];
|
|
||||||
if (Seed == null) Seed = new byte[0];
|
|
||||||
|
|
||||||
return LockInfo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,32 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
|
|
||||||
namespace TINK.Model.Connector
|
|
||||||
{
|
|
||||||
public static class TextToLockItTypeHelper
|
|
||||||
{
|
|
||||||
/// <summary> Lock id which representing a non valid id. </summary>
|
|
||||||
public const int INVALIDLOCKID = 0;
|
|
||||||
|
|
||||||
/// <summary> Lock GUID which representing a non valid id. </summary>
|
|
||||||
public readonly static Guid INVALIDLOCKGUID = new Guid();
|
|
||||||
|
|
||||||
/// <summary> First part of advertisement name.</summary>
|
|
||||||
public static string ISHAREITADVERTISMENTTITLE = "ISHAREIT";
|
|
||||||
|
|
||||||
/// <summary> Gets the ID part from advertisment name. </summary>
|
|
||||||
/// <remarks> Advertisement name is made up of name plus separator (+ or -) and a ID</remarks>
|
|
||||||
/// <param name="advertisementName">Advertisment name to extract info from.</param>
|
|
||||||
/// <returns>From information.</returns>
|
|
||||||
public static int GetBluetoothLockId(this string advertisementName)
|
|
||||||
{
|
|
||||||
var name = advertisementName?.ToUpper();
|
|
||||||
if (string.IsNullOrEmpty(name))
|
|
||||||
return INVALIDLOCKID;
|
|
||||||
|
|
||||||
return int.TryParse(Regex.Replace(advertisementName, $"{ISHAREITADVERTISMENTTITLE}[\\-,\\+ ]", ""), out int lockId)
|
|
||||||
? lockId
|
|
||||||
: INVALIDLOCKID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
namespace TINK.Model.Device
|
|
||||||
{
|
|
||||||
public interface ICipher
|
|
||||||
{
|
|
||||||
/// <summary> Encrypt data.</summary>
|
|
||||||
/// <param name="key">Key to encrypt data.</param>
|
|
||||||
/// <param name="clear">Data to entrycpt.</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
byte[] Encrypt(byte[] key, byte[] clear);
|
|
||||||
|
|
||||||
/// <summary> Decrypt data. </summary>
|
|
||||||
/// <param name="key">Key to decrypt data.</param>
|
|
||||||
/// <param name="encrypted">Encrpyted data to decrypt.</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
byte[] Decrypt(byte[] key, byte[] encrypted);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,44 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:oasis:names:tc:xliff:document:1.2 xliff-core-1.2-transitional.xsd">
|
|
||||||
<file datatype="xml" source-language="en-GB" target-language="de" original="LOCKITSHARED/MULTILINGUALRESOURCES/RESOURCES.RESX" tool-id="MultilingualAppToolkit" product-name="n/a" product-version="n/a" build-num="n/a">
|
|
||||||
<header>
|
|
||||||
<tool tool-id="MultilingualAppToolkit" tool-name="Multilingual App Toolkit" tool-version="4.0.6916.0" tool-company="Microsoft" />
|
|
||||||
</header>
|
|
||||||
<body>
|
|
||||||
<group id="LOCKITSHARED/MULTILINGUALRESOURCES/RESOURCES.RESX" datatype="resx">
|
|
||||||
<trans-unit id="ErrorCloseLockUnexpectedState" translate="yes" xml:space="preserve">
|
|
||||||
<source>Unexpected locking state "{0}" detected after sending close command.</source>
|
|
||||||
<target state="translated">Unerwarteter Schlosszustand "{0}" gemeldet nach Ausführung des Abschließen-Befehls.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorCloseLockUnknownPosition" translate="yes" xml:space="preserve">
|
|
||||||
<source>Lock reports unknown bold position.</source>
|
|
||||||
<target state="translated">Schloss meldet unbekannten Schließzustand.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorOpenLockUnexpectedState" translate="yes" xml:space="preserve">
|
|
||||||
<source>Unexpected locking state "{0}" detected after sending open command.</source>
|
|
||||||
<target state="translated">Unerwarteter Schlosszustand "{0}" gemeldet nach Ausführen des Öffnen-Befehls.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorBluetoothDisconnectedException" translate="yes" xml:space="preserve">
|
|
||||||
<source>No bluetooth connection.</source>
|
|
||||||
<target state="translated">Keine Bluetooth-Verbindung.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorCloseLockBikeMoving" translate="yes" xml:space="preserve">
|
|
||||||
<source>Bike is moving.</source>
|
|
||||||
<target state="translated">Rad ist in Bewegung.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorCloseLockBoldBlocked" translate="yes" xml:space="preserve">
|
|
||||||
<source>Bold is blocked.</source>
|
|
||||||
<target state="translated">Schloss ist blockiert.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorOpenLockBoldBlocked" translate="yes" xml:space="preserve">
|
|
||||||
<source>Bold is blocked.</source>
|
|
||||||
<target state="translated">Schloss ist blockiert.</target>
|
|
||||||
</trans-unit>
|
|
||||||
<trans-unit id="ErrorOpenLockBoldWasBlocked" translate="yes" xml:space="preserve">
|
|
||||||
<source>Bolds was or is blocked.</source>
|
|
||||||
<target state="new">Bolds was or is blocked.</target>
|
|
||||||
</trans-unit>
|
|
||||||
</group>
|
|
||||||
</body>
|
|
||||||
</file>
|
|
||||||
</xliff>
|
|
135
LockItShared/MultilingualResources/Resources.Designer.cs
generated
|
@ -1,135 +0,0 @@
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
|
||||||
// This code was generated by a tool.
|
|
||||||
// Runtime Version:4.0.30319.42000
|
|
||||||
//
|
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
|
||||||
// the code is regenerated.
|
|
||||||
// </auto-generated>
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
|
|
||||||
namespace TINK.MultilingualResources {
|
|
||||||
using System;
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
|
||||||
/// </summary>
|
|
||||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
|
||||||
// class via a tool like ResGen or Visual Studio.
|
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
|
||||||
// with the /str option, or rebuild your VS project.
|
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
||||||
internal class Resources {
|
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
||||||
internal Resources() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
|
||||||
/// </summary>
|
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
|
||||||
get {
|
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TINK.MultilingualResources.Resources", typeof(Resources).Assembly);
|
|
||||||
resourceMan = temp;
|
|
||||||
}
|
|
||||||
return resourceMan;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Overrides the current thread's CurrentUICulture property for all
|
|
||||||
/// resource lookups using this strongly typed resource class.
|
|
||||||
/// </summary>
|
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
|
||||||
get {
|
|
||||||
return resourceCulture;
|
|
||||||
}
|
|
||||||
set {
|
|
||||||
resourceCulture = value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to No bluetooth connection..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorBluetoothDisconnectedException {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorBluetoothDisconnectedException", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Bike is moving..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorCloseLockBikeMoving {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorCloseLockBikeMoving", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Bold is blocked..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorCloseLockBoldBlocked {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorCloseLockBoldBlocked", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Unexpected locking state "{0}" detected after sending close command..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorCloseLockUnexpectedState {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorCloseLockUnexpectedState", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Lock reports unknown bold position..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorCloseLockUnknownPosition {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorCloseLockUnknownPosition", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Bold is blocked..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorOpenLockBoldBlocked {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorOpenLockBoldBlocked", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Bolds was or is blocked..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorOpenLockBoldWasBlocked {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorOpenLockBoldWasBlocked", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Looks up a localized string similar to Unexpected locking state "{0}" detected after sending open command..
|
|
||||||
/// </summary>
|
|
||||||
internal static string ErrorOpenLockUnexpectedState {
|
|
||||||
get {
|
|
||||||
return ResourceManager.GetString("ErrorOpenLockUnexpectedState", resourceCulture);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<data name="ErrorCloseLockUnexpectedState" xml:space="preserve">
|
|
||||||
<value>Unerwarteter Schlosszustand "{0}" gemeldet nach Ausführung des Abschließen-Befehls.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockUnknownPosition" xml:space="preserve">
|
|
||||||
<value>Schloss meldet unbekannten Schließzustand.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorOpenLockUnexpectedState" xml:space="preserve">
|
|
||||||
<value>Unerwarteter Schlosszustand "{0}" gemeldet nach Ausführen des Öffnen-Befehls.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorBluetoothDisconnectedException" xml:space="preserve">
|
|
||||||
<value>Keine Bluetooth-Verbindung.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockBikeMoving" xml:space="preserve">
|
|
||||||
<value>Rad ist in Bewegung.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockBoldBlocked" xml:space="preserve">
|
|
||||||
<value>Schloss ist blockiert.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorOpenLockBoldBlocked" xml:space="preserve">
|
|
||||||
<value>Schloss ist blockiert.</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
|
|
@ -1,144 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<root>
|
|
||||||
<!--
|
|
||||||
Microsoft ResX Schema
|
|
||||||
|
|
||||||
Version 2.0
|
|
||||||
|
|
||||||
The primary goals of this format is to allow a simple XML format
|
|
||||||
that is mostly human readable. The generation and parsing of the
|
|
||||||
various data types are done through the TypeConverter classes
|
|
||||||
associated with the data types.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
... ado.net/XML headers & schema ...
|
|
||||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
|
||||||
<resheader name="version">2.0</resheader>
|
|
||||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
|
||||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
|
||||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
|
||||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
|
||||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
|
||||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
|
||||||
</data>
|
|
||||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
|
||||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
|
||||||
<comment>This is a comment</comment>
|
|
||||||
</data>
|
|
||||||
|
|
||||||
There are any number of "resheader" rows that contain simple
|
|
||||||
name/value pairs.
|
|
||||||
|
|
||||||
Each data row contains a name, and value. The row also contains a
|
|
||||||
type or mimetype. Type corresponds to a .NET class that support
|
|
||||||
text/value conversion through the TypeConverter architecture.
|
|
||||||
Classes that don't support this are serialized and stored with the
|
|
||||||
mimetype set.
|
|
||||||
|
|
||||||
The mimetype is used for serialized objects, and tells the
|
|
||||||
ResXResourceReader how to depersist the object. This is currently not
|
|
||||||
extensible. For a given mimetype the value must be set accordingly:
|
|
||||||
|
|
||||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
|
||||||
that the ResXResourceWriter will generate, however the reader can
|
|
||||||
read any of the formats listed below.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.binary.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.soap.base64
|
|
||||||
value : The object must be serialized with
|
|
||||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
|
|
||||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
|
||||||
value : The object must be serialized into a byte array
|
|
||||||
: using a System.ComponentModel.TypeConverter
|
|
||||||
: and then encoded with base64 encoding.
|
|
||||||
-->
|
|
||||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
|
||||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:choice maxOccurs="unbounded">
|
|
||||||
<xsd:element name="metadata">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="assembly">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:attribute name="alias" type="xsd:string" />
|
|
||||||
<xsd:attribute name="name" type="xsd:string" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="data">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
|
||||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
|
||||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
|
||||||
<xsd:attribute ref="xml:space" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
<xsd:element name="resheader">
|
|
||||||
<xsd:complexType>
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
|
||||||
</xsd:sequence>
|
|
||||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:choice>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:schema>
|
|
||||||
<resheader name="resmimetype">
|
|
||||||
<value>text/microsoft-resx</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="version">
|
|
||||||
<value>2.0</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="reader">
|
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<resheader name="writer">
|
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
|
||||||
</resheader>
|
|
||||||
<data name="ErrorBluetoothDisconnectedException" xml:space="preserve">
|
|
||||||
<value>No bluetooth connection.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockBikeMoving" xml:space="preserve">
|
|
||||||
<value>Bike is moving.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockBoldBlocked" xml:space="preserve">
|
|
||||||
<value>Bold is blocked.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockUnexpectedState" xml:space="preserve">
|
|
||||||
<value>Unexpected locking state "{0}" detected after sending close command.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorCloseLockUnknownPosition" xml:space="preserve">
|
|
||||||
<value>Lock reports unknown bold position.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorOpenLockBoldBlocked" xml:space="preserve">
|
|
||||||
<value>Bold is blocked.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorOpenLockBoldWasBlocked" xml:space="preserve">
|
|
||||||
<value>Bolds was or is blocked.</value>
|
|
||||||
</data>
|
|
||||||
<data name="ErrorOpenLockUnexpectedState" xml:space="preserve">
|
|
||||||
<value>Unexpected locking state "{0}" detected after sending open command.</value>
|
|
||||||
</data>
|
|
||||||
</root>
|
|
|
@ -1,82 +0,0 @@
|
||||||
using Serilog;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Crypto
|
|
||||||
{
|
|
||||||
public class AuthCryptoHelper
|
|
||||||
{
|
|
||||||
private ICipher Cipher { get; }
|
|
||||||
|
|
||||||
/// <summary> Encrypted seed (random number) created inside ILOCKIT and passd to app.</summary>
|
|
||||||
private byte[] SeedLockEncrypted { get; }
|
|
||||||
|
|
||||||
/// <summary> Contstructs a auth crypto helper object.</summary>
|
|
||||||
/// <param name="seedLockEncrypted">Encrypted seed to deocode using <see cref="KeyCopri"/>.</param>
|
|
||||||
/// <param name="keyCopri">Key used to to decrypt <see cref="SeedLockEncrypted"/>.</param>
|
|
||||||
public AuthCryptoHelper(
|
|
||||||
byte[] seedLockEncrypted,
|
|
||||||
byte[] keyCopri,
|
|
||||||
ICipher cipher)
|
|
||||||
{
|
|
||||||
KeyCopri = keyCopri;
|
|
||||||
SeedLockEncrypted = seedLockEncrypted;
|
|
||||||
Cipher = cipher ?? new Cipher();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary> Public for testing purposes only.</summary>
|
|
||||||
public byte[] GetSeedLock()
|
|
||||||
{
|
|
||||||
byte[] seedLockDecrypted;
|
|
||||||
var seedLockEncrypted = SeedLockEncrypted;
|
|
||||||
var keyCopri = KeyCopri;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
seedLockDecrypted = Cipher.Decrypt(
|
|
||||||
keyCopri,
|
|
||||||
seedLockEncrypted);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<AuthCryptoHelper>().Error("Decrypting seed from lock failed. {Exception}", exception);
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<AuthCryptoHelper>().Verbose($"Lock random number decrypted from {string.Join(",", seedLockEncrypted)} to {string.Join(",", seedLockDecrypted)} using {string.Join(", ", keyCopri)}.");
|
|
||||||
return seedLockDecrypted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] GetAccessKeyEncrypted()
|
|
||||||
{
|
|
||||||
|
|
||||||
var accessKey = GetSeedLock();
|
|
||||||
|
|
||||||
if (accessKey == null || accessKey.Length <= 0)
|
|
||||||
{
|
|
||||||
Log.ForContext<AuthCryptoHelper>().Error("Creating access key failed, Key must not be null or empty.");
|
|
||||||
throw new System.Exception();
|
|
||||||
}
|
|
||||||
|
|
||||||
accessKey[accessKey.Length - 1] += 1;
|
|
||||||
|
|
||||||
var keyCopri = KeyCopri;
|
|
||||||
byte[] acccessKeyEncrypted;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
acccessKeyEncrypted = Cipher.Encrypt(
|
|
||||||
keyCopri,
|
|
||||||
accessKey);
|
|
||||||
}
|
|
||||||
catch (System.Exception exception)
|
|
||||||
{
|
|
||||||
Log.ForContext<AuthCryptoHelper>().Error("Encrypting access key failed. {Exception}", exception);
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.ForContext<AuthCryptoHelper>().Verbose($"Access key encrypted from {string.Join(",", accessKey)} to {string.Join(",", acccessKeyEncrypted)} using {string.Join(", ", keyCopri)}.");
|
|
||||||
return acccessKeyEncrypted;
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] KeyCopri { get; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,88 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using System.Security.Cryptography;
|
|
||||||
using TINK.Model.Device;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Crypto
|
|
||||||
{
|
|
||||||
public class Cipher : ICipher
|
|
||||||
{
|
|
||||||
/// <summary> Decrypt data. </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// Further info see:
|
|
||||||
/// https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.aes?view=netcore-3.1 for further info
|
|
||||||
// https://docs.microsoft.com/en-us/dotnet/standard/security/cryptographic-services
|
|
||||||
// https://stackoverflow.com/questions/24903575/how-to-return-byte-when-decrypt-using-cryptostream-descryptoserviceprovider/24903689
|
|
||||||
|
|
||||||
/// </remarks>
|
|
||||||
/// <param name="key">Key to decrypt data with.</param>
|
|
||||||
/// <param name="encrypted">Encrpyted data to decrypt.</param>
|
|
||||||
/// <returns>Decrypted data.</returns>
|
|
||||||
public byte[] Decrypt(byte[] key, byte[] encrypted)
|
|
||||||
{
|
|
||||||
// Check arguments.
|
|
||||||
if (encrypted == null || encrypted.Length <= 0)
|
|
||||||
throw new ArgumentNullException(nameof(encrypted));
|
|
||||||
|
|
||||||
if (key == null || key.Length <= 0)
|
|
||||||
throw new ArgumentNullException(nameof(key));
|
|
||||||
|
|
||||||
using (Aes aesAlg = Aes.Create())
|
|
||||||
{
|
|
||||||
aesAlg.KeySize = 192;
|
|
||||||
aesAlg.Mode = CipherMode.ECB;
|
|
||||||
aesAlg.Padding = PaddingMode.None;
|
|
||||||
aesAlg.Key = key;
|
|
||||||
|
|
||||||
// Create a decryptor to perform the stream transform.
|
|
||||||
ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV);
|
|
||||||
|
|
||||||
// Create the streams used for decryption.
|
|
||||||
using (var msDecrypt = new MemoryStream())
|
|
||||||
{
|
|
||||||
using (var csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Write))
|
|
||||||
{
|
|
||||||
csDecrypt.Write(encrypted, 0, encrypted.Length);
|
|
||||||
csDecrypt.FlushFinalBlock();
|
|
||||||
return msDecrypt.ToArray();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public byte[] Encrypt(byte[] key, byte[] clear)
|
|
||||||
{
|
|
||||||
// Check arguments.
|
|
||||||
if (clear == null || clear.Length <= 0)
|
|
||||||
throw new ArgumentNullException("plainText");
|
|
||||||
|
|
||||||
if (key == null || key.Length <= 0)
|
|
||||||
throw new ArgumentNullException("Key");
|
|
||||||
|
|
||||||
// Create an AesCryptoServiceProvider object
|
|
||||||
// with the specified key and IV.
|
|
||||||
using (AesCryptoServiceProvider aesAlg = new AesCryptoServiceProvider())
|
|
||||||
{
|
|
||||||
aesAlg.KeySize = 192;
|
|
||||||
aesAlg.Mode = CipherMode.ECB;
|
|
||||||
aesAlg.Padding = PaddingMode.None;
|
|
||||||
aesAlg.Key = key;
|
|
||||||
|
|
||||||
// Create an encryptor to perform the stream transform.
|
|
||||||
ICryptoTransform encryptor = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV);
|
|
||||||
|
|
||||||
// Create the streams used for encryption.
|
|
||||||
using (var msEncrypt = new MemoryStream())
|
|
||||||
{
|
|
||||||
using (var csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write))
|
|
||||||
{
|
|
||||||
csEncrypt.Write(clear, 0, clear.Length);
|
|
||||||
csEncrypt.FlushFinalBlock();
|
|
||||||
return msEncrypt.ToArray();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class AlreadyConnectedException : System.Exception
|
|
||||||
{
|
|
||||||
public AlreadyConnectedException() : base("Invalid reconnect call detected. Device is already connected.") {}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class AuthKeyException : System.Exception
|
|
||||||
{
|
|
||||||
public AuthKeyException(string message) : base(message)
|
|
||||||
{ }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class BluetoothDisconnectedException : StateAwareException
|
|
||||||
{
|
|
||||||
public BluetoothDisconnectedException() : base(LockingState.Disconnected, MultilingualResources.Resources.ErrorBluetoothDisconnectedException)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,13 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class CouldntCloseBoldBlockedException : StateAwareException
|
|
||||||
{
|
|
||||||
public CouldntCloseBoldBlockedException() : base(
|
|
||||||
LockingState.Unknown, // Lock is closed in most cases, but this is not guarnteed according to haveltec.
|
|
||||||
MultilingualResources.Resources.ErrorCloseLockBoldBlocked)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,18 +0,0 @@
|
||||||
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.MultilingualResources;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class CouldntCloseInconsistentStateExecption : StateAwareException
|
|
||||||
{
|
|
||||||
public CouldntCloseInconsistentStateExecption(LockingState state) :
|
|
||||||
base(
|
|
||||||
state,
|
|
||||||
state != LockingState.Unknown
|
|
||||||
? string.Format(Resources.ErrorCloseLockUnexpectedState, state)
|
|
||||||
: Resources.ErrorCloseLockUnknownPosition)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Lock can not be opened, because bold is blocked. Lock reports that obstacle is still blocking.
|
|
||||||
/// </summary>
|
|
||||||
public class CouldntOpenBoldIsBlockedException : StateAwareException
|
|
||||||
{
|
|
||||||
public CouldntOpenBoldIsBlockedException() : base(
|
|
||||||
LockingState.Unknown,
|
|
||||||
MultilingualResources.Resources.ErrorOpenLockBoldBlocked)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Lock can not be opened, because bold is/ was blocked. Obstacle might no more block but lock could not be opened completely to obstacle.
|
|
||||||
/// </summary>
|
|
||||||
public class CouldntOpenBoldWasBlockedException : StateAwareException
|
|
||||||
{
|
|
||||||
public CouldntOpenBoldWasBlockedException() : base(
|
|
||||||
LockingState.Unknown,
|
|
||||||
MultilingualResources.Resources.ErrorOpenLockBoldWasBlocked)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,16 +0,0 @@
|
||||||
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.MultilingualResources;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class CouldntOpenInconsistentStateExecption : StateAwareException
|
|
||||||
{
|
|
||||||
public CouldntOpenInconsistentStateExecption(LockingState state) :
|
|
||||||
base(
|
|
||||||
state,
|
|
||||||
string.Format(Resources.ErrorOpenLockUnexpectedState, state))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class CoundntGetCharacteristicException : System.Exception
|
|
||||||
{
|
|
||||||
public CoundntGetCharacteristicException(string message) : base(message)
|
|
||||||
{ }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class CounldntCloseMovingException : StateAwareException
|
|
||||||
{
|
|
||||||
public CounldntCloseMovingException() : base(
|
|
||||||
LockingState.Open, // Locking bold is probable (according to haveltec) still open.
|
|
||||||
MultilingualResources.Resources.ErrorCloseLockBikeMoving)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,9 +0,0 @@
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public class GuidUnknownException : System.Exception
|
|
||||||
{
|
|
||||||
public GuidUnknownException() : base("Can not connect to lock. No Guid available.")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
/// <summary> Thrown whenever lock is out of reach.</summary>
|
|
||||||
public class OutOfReachException : System.Exception
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Exception
|
|
||||||
{
|
|
||||||
public abstract class StateAwareException : System.Exception
|
|
||||||
{
|
|
||||||
public StateAwareException(LockingState state, string description) : base(description)
|
|
||||||
{
|
|
||||||
State = state;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Holds the state reported by lock.</summary>
|
|
||||||
public LockingState State { get; }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,58 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
public enum DeviceState
|
|
||||||
{
|
|
||||||
Disconnected = 0,
|
|
||||||
Connecting = 1,
|
|
||||||
Connected = 2,
|
|
||||||
Limited = 3 /* Mactches Connecting? */
|
|
||||||
}
|
|
||||||
|
|
||||||
public interface ILockService
|
|
||||||
{
|
|
||||||
/// <summary> Reconnect to lock. </summary>
|
|
||||||
Task ReconnectAsync(
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
TimeSpan connectTimeout);
|
|
||||||
|
|
||||||
/// <summary> Opens lock. </summary>
|
|
||||||
/// <returns> State of lock after performing open operation. </returns>
|
|
||||||
Task<LockitLockingState?> OpenAsync();
|
|
||||||
|
|
||||||
/// <summary> Closes lock. </summary>
|
|
||||||
/// <returns>State of lock after performing close operation.</returns>
|
|
||||||
Task<LockitLockingState?> CloseAsync();
|
|
||||||
|
|
||||||
string Name { get; }
|
|
||||||
|
|
||||||
Guid Guid { get; }
|
|
||||||
|
|
||||||
int Id { get; }
|
|
||||||
|
|
||||||
/// <summary> Gets the device state.</summary>
|
|
||||||
DeviceState? GetDeviceState();
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets the locking state.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="doWaitRetry">True if to wait and retry in case of failures. </param>
|
|
||||||
/// <returns></returns>
|
|
||||||
Task<LockInfoTdo> GetLockStateAsync(bool doWaitRetry = false);
|
|
||||||
|
|
||||||
Task<bool> SetSoundAsync(SoundSettings settings);
|
|
||||||
|
|
||||||
Task<bool> GetIsAlarmOffAsync();
|
|
||||||
|
|
||||||
Task SetIsAlarmOffAsync(bool isActivated);
|
|
||||||
|
|
||||||
/// <summary>Gets the battery percentage.</summary>
|
|
||||||
Task<double> GetBatteryPercentageAsync();
|
|
||||||
|
|
||||||
/// <summary> Disconnect from lock.</summary>
|
|
||||||
Task Disconnect();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,58 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TINK.Model.Bike.BluetoothLock;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
public interface ILocksService
|
|
||||||
{
|
|
||||||
/// <summary> Holds timeout values for series of connecting attemps to a lock or multiple locks. </summary>
|
|
||||||
ITimeOutProvider TimeOut { get; set; }
|
|
||||||
|
|
||||||
/// <summary> Gets lock info for all lock in reach./// </summary>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation of a single lock.</param>
|
|
||||||
Task<IEnumerable<LockInfoTdo>> GetLocksStateAsync(
|
|
||||||
IEnumerable<LockInfoAuthTdo> locksInfo,
|
|
||||||
TimeSpan connectTimeout);
|
|
||||||
|
|
||||||
/// <summary> Connects to lock.</summary>
|
|
||||||
/// <param name="authInfo"> Info required to connect to lock.</param>
|
|
||||||
/// <param name="connectTimeout">Timeout for connect operation.</param>
|
|
||||||
Task<LockInfoTdo> ConnectAsync(
|
|
||||||
LockInfoAuthTdo authInfo,
|
|
||||||
TimeSpan connectTimeout);
|
|
||||||
|
|
||||||
/// <summary>Gets a lock by bike Id.</summary>
|
|
||||||
/// <param name="bikeId"></param>
|
|
||||||
/// <returns>Lock object</returns>
|
|
||||||
ILockService this[int bikeId] { get; }
|
|
||||||
|
|
||||||
/// <summary> Disconnects lock.</summary>
|
|
||||||
/// <param name="bikeId"> Id of lock to disconnect.</param>
|
|
||||||
/// <param name="bikeGuid"> Guid of lock to disconnect.</param>
|
|
||||||
/// <returns> State disconnected it lock is already disconneced or after successfully disconnecting.</returns>
|
|
||||||
Task<LockingState> DisconnectAsync(int bikeId, Guid bikeGuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Sound types. </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 1. Locking process started: One long beep.
|
|
||||||
/// 2. Unlocking successful: One short beep.
|
|
||||||
/// 3. Bike moved while trying to lock: Three short beeps.
|
|
||||||
/// 4. Locking bolt blocked while locking: Three short beeps.
|
|
||||||
/// 5. Unable to unlock because locking bolt is blocked: Three short beeps.
|
|
||||||
/// </remarks>
|
|
||||||
public enum SoundSettings
|
|
||||||
{
|
|
||||||
AllButOpenedSuccessfully, // Sounds: 1, 3, 4, 5
|
|
||||||
MovingBlocked = 1, // Sounds: 3, 4, 5
|
|
||||||
LockingStarted = 2, // Sounds: 1
|
|
||||||
AllOff = 3, // Mute
|
|
||||||
OpenedSuccessfully = 4, // Sounds: 2
|
|
||||||
LockingStartedOpenedSuccessfully = 5, // Sounds: 1, 2
|
|
||||||
AllOn = 6, // All sounds on
|
|
||||||
AllButLockingStarted = 7, // Sounds: 2, 3, 4, 5
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,11 +0,0 @@
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
public interface ITimeOutProvider
|
|
||||||
{
|
|
||||||
TimeSpan MultiConnect { get; }
|
|
||||||
|
|
||||||
TimeSpan GetSingleConnect(int countOfTry);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,70 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
|
|
||||||
namespace TINK.Model.Bike.BluetoothLock
|
|
||||||
{
|
|
||||||
public static class LockInfoHelper
|
|
||||||
{
|
|
||||||
/// <summary> Update by id.</summary>
|
|
||||||
/// <param name="locksInfo"> Lock info objects to update by id.</param>
|
|
||||||
/// <param name="locksInfoTdo">Tdos holding data to updat from</param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static IEnumerable<LockInfo> UpdateById(
|
|
||||||
this IEnumerable<LockInfo> locksInfo,
|
|
||||||
IEnumerable<LockInfoTdo> locksInfoTdo)
|
|
||||||
{
|
|
||||||
var locksInfoUpdated = new List<LockInfo>();
|
|
||||||
|
|
||||||
foreach (var lockInfo in locksInfo)
|
|
||||||
{
|
|
||||||
var lockInfoTdo = locksInfoTdo.FirstOrDefault(x => x.Id == lockInfo.Id);
|
|
||||||
if (lockInfoTdo == null)
|
|
||||||
{
|
|
||||||
// No object to update from found.
|
|
||||||
locksInfoUpdated.Add(lockInfo);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
var state = lockInfoTdo.State.HasValue ? lockInfoTdo.State.Value.GetLockingState() : LockingState.Disconnected;
|
|
||||||
|
|
||||||
locksInfoUpdated.Add(state != lockInfo.State || lockInfoTdo.Guid != lockInfo.Guid
|
|
||||||
? new LockInfo.Builder(lockInfo) { Guid = lockInfoTdo.Guid, State = state}.Build() // State has changed, update required.
|
|
||||||
: lockInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
return locksInfoUpdated;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static LockingState GetLockingState(this LockitLockingState lockingState)
|
|
||||||
{
|
|
||||||
switch (lockingState)
|
|
||||||
{
|
|
||||||
case LockitLockingState.Unknown:
|
|
||||||
case LockitLockingState.CouldntOpenBoldBlocked: // Lock is closed in most cases, but this is not guarnteed according to haveltec.
|
|
||||||
return LockingState.Unknown;
|
|
||||||
|
|
||||||
case LockitLockingState.Open:
|
|
||||||
case LockitLockingState.CouldntCloseMoving:
|
|
||||||
case LockitLockingState.CouldntCloseBoldBlocked:
|
|
||||||
return LockingState.Open;
|
|
||||||
|
|
||||||
case LockitLockingState.Closed:
|
|
||||||
return LockingState.Closed;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new ArgumentException($"Can not convert LockIt specific locking state to logical locking state. Unknown state {lockingState} detected.");
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Gets one type from another.</summary>
|
|
||||||
/// <param name="lockInfo"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
public static LockInfoAuthTdo ToLockInfoTdo(this LockInfo lockInfo)
|
|
||||||
{
|
|
||||||
return new LockInfoAuthTdo.Builder() { Id = lockInfo.Id, Guid = lockInfo.Guid, K_u = lockInfo.UserKey, K_a = lockInfo.AdminKey, K_seed = lockInfo.Seed }.Build();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace LockItShared.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
public static class LockItByGuidServiceHelper
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Holds guids of developent locks to ensure that no wrong guid are provided by COPRI
|
|
||||||
/// </summary>
|
|
||||||
public static Dictionary<int, Guid> DevelGuids = new Dictionary<int, Guid>
|
|
||||||
{
|
|
||||||
{ 2200537, new Guid("00000000-0000-0000-0000-d589a8023487") },
|
|
||||||
{ 2200543, new Guid("00000000-0000-0000-0000-cc141a6f68bb") },
|
|
||||||
{ 2200544, new Guid("00000000-0000-0000-0000-dc969f648732") },
|
|
||||||
{ 2200545, new Guid("00000000-0000-0000-0000-e38bf9d32234") }
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,60 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using TINK.Services.BluetoothLock.Tdo;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Represents a not exisitng lock.
|
|
||||||
/// </summary>
|
|
||||||
public class NullLock : ILockService
|
|
||||||
{
|
|
||||||
private int BikeId { get; }
|
|
||||||
|
|
||||||
public NullLock(int bikeId)
|
|
||||||
{
|
|
||||||
BikeId = bikeId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Task ReconnectAsync(LockInfoAuthTdo authInfo, TimeSpan connectTimeout) =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public string Name =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public Guid Guid =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public int Id =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public async Task<LockitLockingState?> OpenAsync() =>
|
|
||||||
await Task.FromResult((LockitLockingState?)null);
|
|
||||||
|
|
||||||
public async Task<LockitLockingState?> CloseAsync() =>
|
|
||||||
await Task.FromResult((LockitLockingState?)null);
|
|
||||||
|
|
||||||
public Task<double> GetBatteryPercentageAsync() =>
|
|
||||||
throw new System.Exception($"Can not get battery percentage. Lock {BikeId} not found.");
|
|
||||||
|
|
||||||
public DeviceState? GetDeviceState() =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public Task<bool> GetIsAlarmOffAsync() =>
|
|
||||||
throw new System.Exception($"Can not get whether alarm is on or off. Lock {BikeId} not found.");
|
|
||||||
|
|
||||||
public Task<LockInfoTdo> GetLockStateAsync(bool doWaitRetry = false) =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
public Task SetIsAlarmOffAsync(bool isActivated) =>
|
|
||||||
throw new System.Exception($"Can not set alarm {isActivated}. Lock {BikeId} not found.");
|
|
||||||
|
|
||||||
public async Task<bool> SetSoundAsync(SoundSettings settings) =>
|
|
||||||
await Task.FromResult(false);
|
|
||||||
|
|
||||||
/// <summary> Disconnect from bluetooth lock. </summary>
|
|
||||||
public Task Disconnect() =>
|
|
||||||
throw new NotImplementedException();
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,61 +0,0 @@
|
||||||
using TINK.Model.Connector;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Tdo
|
|
||||||
{
|
|
||||||
/// <summary> Data required to connect to a blutooth lock.</summary>
|
|
||||||
public class LockInfoAuthTdo
|
|
||||||
{
|
|
||||||
/// <summary> Identification number of bluetooth lock, 6-digits, second part of advertisement name.</summary>
|
|
||||||
public int Id { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> GUID to the device. </summary>
|
|
||||||
public Guid Guid { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Seed used to generate key for connecting to bluetooth lock.</summary>
|
|
||||||
public byte[] K_seed { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Key for connect to bluetooth lock as user.</summary>
|
|
||||||
public byte[] K_u { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Key for connect to bluetooth lock as admin.</summary>
|
|
||||||
public byte[] K_a { get; private set; }
|
|
||||||
|
|
||||||
public bool IsIdValid => Id != TextToLockItTypeHelper.INVALIDLOCKID;
|
|
||||||
|
|
||||||
public bool IsGuidValid => Guid != TextToLockItTypeHelper.INVALIDLOCKGUID;
|
|
||||||
|
|
||||||
public class Builder
|
|
||||||
{
|
|
||||||
private LockInfoAuthTdo lockInfoTdo = new LockInfoAuthTdo();
|
|
||||||
|
|
||||||
public Builder() { }
|
|
||||||
|
|
||||||
/// <summary> Identification number of bluetooth lock, 6-digits, second part of advertisement name.</summary>
|
|
||||||
public int Id { get => lockInfoTdo.Id; set { lockInfoTdo.Id = value; } }
|
|
||||||
|
|
||||||
/// <summary> GUID to the device. </summary>
|
|
||||||
public Guid Guid { get => lockInfoTdo.Guid; set { lockInfoTdo.Guid = value; } }
|
|
||||||
|
|
||||||
/// <summary> Seed used to generate key for connecting to bluetooth lock.</summary>
|
|
||||||
public byte[] K_seed { get => lockInfoTdo.K_seed; set { lockInfoTdo.K_seed = value; } }
|
|
||||||
|
|
||||||
/// <summary> Key for connect to bluetooth lock as user.</summary>
|
|
||||||
public byte[] K_u { get => lockInfoTdo.K_u; set { lockInfoTdo.K_u = value; } }
|
|
||||||
|
|
||||||
/// <summary> Key for connect to bluetooth lock as admin.</summary>
|
|
||||||
public byte[] K_a { get => lockInfoTdo.K_a; set { lockInfoTdo.K_a = value; } }
|
|
||||||
|
|
||||||
public LockInfoAuthTdo Build()
|
|
||||||
{
|
|
||||||
if (K_seed == null) K_seed = new byte[0];
|
|
||||||
|
|
||||||
if (K_u == null) K_u = new byte[0];
|
|
||||||
|
|
||||||
if (K_a == null) K_a = new byte[0];
|
|
||||||
|
|
||||||
return lockInfoTdo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,53 +0,0 @@
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock.Tdo
|
|
||||||
{
|
|
||||||
public enum LockitLockingState
|
|
||||||
{
|
|
||||||
Open = 0x00,
|
|
||||||
|
|
||||||
Closed = 0x01,
|
|
||||||
|
|
||||||
Unknown = 0x02,
|
|
||||||
|
|
||||||
CouldntCloseMoving = 0x03,
|
|
||||||
|
|
||||||
CouldntOpenBoldBlocked = 0x04,
|
|
||||||
|
|
||||||
CouldntCloseBoldBlocked = 0x05
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> Object holding info about bluetooth lock. </summary>
|
|
||||||
public class LockInfoTdo
|
|
||||||
{
|
|
||||||
private LockInfoTdo() { }
|
|
||||||
|
|
||||||
/// <summary> Identification number of bluetooth lock, 6-digits, second part of advertisement name.</summary>
|
|
||||||
public int Id { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Guid for direct connect.</summary>
|
|
||||||
public Guid Guid { get; private set; }
|
|
||||||
|
|
||||||
/// <summary> Gets the current state of the lock.</summary>
|
|
||||||
public LockitLockingState? State { get; private set; }
|
|
||||||
|
|
||||||
public class Builder
|
|
||||||
{
|
|
||||||
private LockInfoTdo lockInfoTdo = new LockInfoTdo();
|
|
||||||
|
|
||||||
/// <summary> Identification number of bluetooth lock, 6-digits, second part of advertisement name.</summary>
|
|
||||||
public int Id { get => lockInfoTdo.Id; set => lockInfoTdo.Id = value; }
|
|
||||||
|
|
||||||
/// <summary> Guid for direct connect.</summary>
|
|
||||||
public Guid Guid { get => lockInfoTdo.Guid; set => lockInfoTdo.Guid = value; }
|
|
||||||
|
|
||||||
/// <summary> Gets the current state of the lock.</summary>
|
|
||||||
public LockitLockingState? State { get => lockInfoTdo.State; set => lockInfoTdo.State = value; }
|
|
||||||
|
|
||||||
public LockInfoTdo Build()
|
|
||||||
{
|
|
||||||
return lockInfoTdo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,30 +0,0 @@
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace TINK.Services.BluetoothLock
|
|
||||||
{
|
|
||||||
public class TimeOutProvider : ITimeOutProvider
|
|
||||||
{
|
|
||||||
/// <summary> Maximum factor applied on timeout factor. </summary>
|
|
||||||
private readonly int MAXIMUMFACTORTIMEOUT = 4;
|
|
||||||
|
|
||||||
/// <summary> Default timeout to connect to bluetooth lock. </summary>
|
|
||||||
public static int DEFAULT_BLUETOOTHCONNECT_TIMEOUTSECONDS = 5;
|
|
||||||
|
|
||||||
public TimeOutProvider(IEnumerable<TimeSpan> timeOuts = null)
|
|
||||||
{
|
|
||||||
TimeOuts = timeOuts != null && timeOuts.Count() > 0
|
|
||||||
? timeOuts.ToList()
|
|
||||||
: new List<TimeSpan> { new TimeSpan(0, 0, DEFAULT_BLUETOOTHCONNECT_TIMEOUTSECONDS) };
|
|
||||||
}
|
|
||||||
|
|
||||||
private List<TimeSpan> TimeOuts { get; }
|
|
||||||
|
|
||||||
public TimeSpan MultiConnect => TimeOuts.ToArray()[0];
|
|
||||||
|
|
||||||
public TimeSpan GetSingleConnect(int countOfTry) => countOfTry < TimeOuts.Count
|
|
||||||
? TimeOuts.ToArray()[countOfTry]
|
|
||||||
: new TimeSpan(TimeOuts.ToArray()[0].Ticks * Math.Min(countOfTry, MAXIMUMFACTORTIMEOUT)) ;
|
|
||||||
}
|
|
||||||
}
|
|
533
TINK.sln
|
@ -1,533 +0,0 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
||||||
# Visual Studio Version 16
|
|
||||||
VisualStudioVersion = 16.0.30011.22
|
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
|
||||||
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "TINK", "TINK\TINK\TINK.shproj", "{5297504F-603F-4E1A-98AA-57C4A0D9D833}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TINK.Android", "TINK\TINK.Android\TINK.Android.csproj", "{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}"
|
|
||||||
EndProject
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TINK.iOS", "TINK\TINK.iOS\TINK.iOS.csproj", "{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TINKLib", "TINKLib\TINKLib.csproj", "{B77F4222-0860-4494-A07C-EE8E09FA9983}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{49C8F824-4752-449E-A53C-35A2722AFA99}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Set02 - Book 3rd bike", "Set02 - Book 3rd bike", "{50D4A63A-91D8-4EC5-ADF6-9EF72D7AFAF0}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set02\Story.json = TestData\Set02\Story.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "001", "001", "{A5D8D93B-4D4E-4C4C-A70C-44A451D6C722}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set02\001\bikes_available.json = TestData\Set02\001\bikes_available.json
|
|
||||||
TestData\Set02\001\booking_request_bike_8.json = TestData\Set02\001\booking_request_bike_8.json
|
|
||||||
TestData\Set02\001\stations_all.json = TestData\Set02\001\stations_all.json
|
|
||||||
TestData\Set02\001\user_bikes_occupied.json = TestData\Set02\001\user_bikes_occupied.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "002", "002", "{D0A2A88B-5DD9-4B40-A8AE-2AED6FB41911}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set02\002\bikes_available.json = TestData\Set02\002\bikes_available.json
|
|
||||||
TestData\Set02\002\stations_all.json = TestData\Set02\002\stations_all.json
|
|
||||||
TestData\Set02\002\user_bikes_occupied.json = TestData\Set02\002\user_bikes_occupied.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "003", "003", "{272FB1A5-BBC5-41DF-91C2-C1C1A85AFD44}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set02\003\bikes_available.json = TestData\Set02\003\bikes_available.json
|
|
||||||
TestData\Set02\003\stations_all.json = TestData\Set02\003\stations_all.json
|
|
||||||
TestData\Set02\003\user_bikes_occupied.json = TestData\Set02\003\user_bikes_occupied.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Set03 - Book 1st bike", "Set03 - Book 1st bike", "{E5E0E87A-1CDD-4E66-AF66-26EBDD0C6E61}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set03\Story.json = TestData\Set03\Story.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "001", "001", "{B0BE116C-B05C-4864-9D1F-5CE1A8EC7BD0}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set03\001\booking_request_bike_20.json = TestData\Set03\001\booking_request_bike_20.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "002", "002", "{C579CA91-17DC-4AC4-8F1B-377A245883FD}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Set01 - Log in", "Set01 - Log in", "{A872956F-17F0-416E-9A9A-F28D96F13A94}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "001", "001", "{104F18F2-1261-42C0-96A4-F5BBACF595DA}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set01\001\authorization_javaminister%40gmail.com_javaminister_HwId1000000000000.json = TestData\Set01\001\authorization_javaminister%40gmail.com_javaminister_HwId1000000000000.json
|
|
||||||
TestData\Set01\001\bikes_available.json = TestData\Set01\001\bikes_available.json
|
|
||||||
TestData\Set01\001\bikes_occupied.json = TestData\Set01\001\bikes_occupied.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Set04 - Cancel Booking", "Set04 - Cancel Booking", "{55C5EF2A-FDEB-40F6-ABE9-84B7B1981B2B}"
|
|
||||||
EndProject
|
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "001", "001", "{AADA3B61-8626-43AE-BED9-BA5AA3D93576}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TestData\Set04 - Cancel Booking\001\booking_cancel_bike_7.json = TestData\Set04 - Cancel Booking\001\booking_cancel_bike_7.json
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LockItShared", "LockItShared\LockItShared.csproj", "{3589ED1D-E734-429D-976F-1BEA4371DF14}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LockItBLE", "LockItBLE\LockItBLE.csproj", "{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestLockItShared", "TestLockItShared\TestLockItShared.csproj", "{7E25F58E-62E3-48D7-8115-E33DA67C511E}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestShareeLib", "TestShareeLib\TestShareeLib.csproj", "{38F340AD-EC12-4BB2-8633-AC5B55C32B77}"
|
|
||||||
EndProject
|
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestLockItBLE", "TestLockItBLE\TestLockItBLE.csproj", "{2581E9AD-4F56-431A-AB87-1B6D80D546AA}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
|
||||||
TINK\TINK\TINK.projitems*{5297504f-603f-4e1a-98aa-57c4a0d9d833}*SharedItemsImports = 13
|
|
||||||
TINK\TINK\TINK.projitems*{62b8950a-70b8-4f9d-affc-0a1ebe7bc9e7}*SharedItemsImports = 4
|
|
||||||
TINK\TINK\TINK.projitems*{f2d8208f-a8bf-4403-b0ae-2a1d270e4dc9}*SharedItemsImports = 4
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
|
||||||
Ad-Hoc|ARM = Ad-Hoc|ARM
|
|
||||||
Ad-Hoc|iPhone = Ad-Hoc|iPhone
|
|
||||||
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
|
|
||||||
Ad-Hoc|x64 = Ad-Hoc|x64
|
|
||||||
Ad-Hoc|x86 = Ad-Hoc|x86
|
|
||||||
AppStore|Any CPU = AppStore|Any CPU
|
|
||||||
AppStore|ARM = AppStore|ARM
|
|
||||||
AppStore|iPhone = AppStore|iPhone
|
|
||||||
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
|
|
||||||
AppStore|x64 = AppStore|x64
|
|
||||||
AppStore|x86 = AppStore|x86
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Debug|ARM = Debug|ARM
|
|
||||||
Debug|iPhone = Debug|iPhone
|
|
||||||
Debug|iPhoneSimulator = Debug|iPhoneSimulator
|
|
||||||
Debug|x64 = Debug|x64
|
|
||||||
Debug|x86 = Debug|x86
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
Release|ARM = Release|ARM
|
|
||||||
Release|iPhone = Release|iPhone
|
|
||||||
Release|iPhoneSimulator = Release|iPhoneSimulator
|
|
||||||
Release|x64 = Release|x64
|
|
||||||
Release|x86 = Release|x86
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x64.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x86.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|ARM.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|ARM.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhone.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x64.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x64.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x86.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.AppStore|x86.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|ARM.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhone.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x64.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Debug|x86.Deploy.0 = Debug|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|ARM.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhone.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x64.Deploy.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{62B8950A-70B8-4F9D-AFFC-0A1EBE7BC9E7}.Release|x86.Deploy.0 = Release|Any CPU
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|ARM.ActiveCfg = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|iPhone.Build.0 = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|x64.ActiveCfg = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.AppStore|x86.ActiveCfg = AppStore|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|Any CPU.ActiveCfg = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|ARM.ActiveCfg = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|iPhone.Build.0 = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|iPhone.Deploy.0 = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|x64.ActiveCfg = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Debug|x86.ActiveCfg = Debug|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|Any CPU.ActiveCfg = Release|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|ARM.ActiveCfg = Release|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|iPhone.ActiveCfg = Release|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|iPhone.Build.0 = Release|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|x64.ActiveCfg = Release|iPhone
|
|
||||||
{F2D8208F-A8BF-4403-B0AE-2A1D270E4DC9}.Release|x86.ActiveCfg = Release|iPhone
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|x64.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.AppStore|x86.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{B77F4222-0860-4494-A07C-EE8E09FA9983}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|x64.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.AppStore|x86.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{3589ED1D-E734-429D-976F-1BEA4371DF14}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|x64.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.AppStore|x86.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{BDE9CE26-15CF-47DA-A4F6-B6956D02D0FC}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|x64.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Ad-Hoc|x86.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|ARM.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|x64.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.AppStore|x86.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{7E25F58E-62E3-48D7-8115-E33DA67C511E}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|x64.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.AppStore|x86.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{38F340AD-EC12-4BB2-8633-AC5B55C32B77}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|x64.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.AppStore|x86.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|ARM.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|iPhone.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|x64.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|x64.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|x86.ActiveCfg = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Debug|x86.Build.0 = Debug|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|ARM.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|ARM.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|iPhone.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|iPhone.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|x64.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|x64.Build.0 = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|x86.ActiveCfg = Release|Any CPU
|
|
||||||
{2581E9AD-4F56-431A-AB87-1B6D80D546AA}.Release|x86.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(NestedProjects) = preSolution
|
|
||||||
{50D4A63A-91D8-4EC5-ADF6-9EF72D7AFAF0} = {49C8F824-4752-449E-A53C-35A2722AFA99}
|
|
||||||
{A5D8D93B-4D4E-4C4C-A70C-44A451D6C722} = {50D4A63A-91D8-4EC5-ADF6-9EF72D7AFAF0}
|
|
||||||
{D0A2A88B-5DD9-4B40-A8AE-2AED6FB41911} = {50D4A63A-91D8-4EC5-ADF6-9EF72D7AFAF0}
|
|
||||||
{272FB1A5-BBC5-41DF-91C2-C1C1A85AFD44} = {50D4A63A-91D8-4EC5-ADF6-9EF72D7AFAF0}
|
|
||||||
{E5E0E87A-1CDD-4E66-AF66-26EBDD0C6E61} = {49C8F824-4752-449E-A53C-35A2722AFA99}
|
|
||||||
{B0BE116C-B05C-4864-9D1F-5CE1A8EC7BD0} = {E5E0E87A-1CDD-4E66-AF66-26EBDD0C6E61}
|
|
||||||
{C579CA91-17DC-4AC4-8F1B-377A245883FD} = {E5E0E87A-1CDD-4E66-AF66-26EBDD0C6E61}
|
|
||||||
{A872956F-17F0-416E-9A9A-F28D96F13A94} = {49C8F824-4752-449E-A53C-35A2722AFA99}
|
|
||||||
{104F18F2-1261-42C0-96A4-F5BBACF595DA} = {A872956F-17F0-416E-9A9A-F28D96F13A94}
|
|
||||||
{55C5EF2A-FDEB-40F6-ABE9-84B7B1981B2B} = {49C8F824-4752-449E-A53C-35A2722AFA99}
|
|
||||||
{AADA3B61-8626-43AE-BED9-BA5AA3D93576} = {55C5EF2A-FDEB-40F6-ABE9-84B7B1981B2B}
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
|
||||||
SolutionGuid = {C6529CD7-C3F7-4E80-89B5-002E2B8E3EB5}
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
|
||||||
Policies = $0
|
|
||||||
$0.DotNetNamingPolicy = $1
|
|
||||||
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
|
|
||||||
version = 3.0
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.2 KiB |