├── .gitignore
├── LICENSE
├── androidadapter
├── .gitignore
├── .idea
│ ├── compiler.xml
│ ├── copyright
│ │ └── profiles_settings.xml
│ ├── gradle.xml
│ ├── misc.xml
│ ├── modules.xml
│ ├── runConfigurations.xml
│ └── vcs.xml
├── app
│ ├── .gitignore
│ ├── build.gradle
│ ├── proguard-rules.pro
│ └── src
│ │ ├── androidTest
│ │ └── java
│ │ │ └── com
│ │ │ └── jam01
│ │ │ └── littlelight
│ │ │ └── ApplicationTest.java
│ │ ├── main
│ │ ├── AndroidManifest.xml
│ │ ├── ic_launcher-web.png
│ │ ├── java
│ │ │ └── com
│ │ │ │ └── jam01
│ │ │ │ └── littlelight
│ │ │ │ └── adapter
│ │ │ │ └── android
│ │ │ │ ├── LittleLight.java
│ │ │ │ ├── di
│ │ │ │ └── module
│ │ │ │ │ ├── AdapterModule.java
│ │ │ │ │ ├── AndroidModule.java
│ │ │ │ │ ├── ApplicationModule.java
│ │ │ │ │ └── DomainModule.java
│ │ │ │ ├── persistence
│ │ │ │ └── identityaccess
│ │ │ │ │ └── DiskUser.java
│ │ │ │ ├── presentation
│ │ │ │ ├── BaseGenericFragment.java
│ │ │ │ ├── activity
│ │ │ │ │ ├── ActivityAdapter.java
│ │ │ │ │ ├── ActivityFragment.java
│ │ │ │ │ └── ActivityPresenter.java
│ │ │ │ ├── exotics
│ │ │ │ │ ├── ExoticsFragment.java
│ │ │ │ │ ├── ExoticsPresenter.java
│ │ │ │ │ └── ItemTypeAdapter.java
│ │ │ │ ├── inventory
│ │ │ │ │ ├── InventoryFragment.java
│ │ │ │ │ ├── InventoryPresenter.java
│ │ │ │ │ ├── ItemAdapter.java
│ │ │ │ │ ├── ItemBagDestination.java
│ │ │ │ │ ├── ItemBagDestinationAdapter.java
│ │ │ │ │ ├── ItemBagView.java
│ │ │ │ │ └── ItemBagViewPagerAdapter.java
│ │ │ │ ├── legend
│ │ │ │ │ ├── LegendFragment.java
│ │ │ │ │ └── LegendPresenter.java
│ │ │ │ └── user
│ │ │ │ │ ├── AccountsAdapter.java
│ │ │ │ │ ├── CircleTransform.java
│ │ │ │ │ ├── SignInActivity.java
│ │ │ │ │ ├── SignInFragment.java
│ │ │ │ │ ├── UserActivity.java
│ │ │ │ │ └── UserPresenter.java
│ │ │ │ ├── service
│ │ │ │ ├── common
│ │ │ │ │ └── RetrofitDestinyApiFacade.java
│ │ │ │ ├── inventory
│ │ │ │ │ ├── ACLInventoryService.java
│ │ │ │ │ ├── AndroidLocalDefitionsDbService.java
│ │ │ │ │ └── LocalItemDefinitionDbProvider.java
│ │ │ │ └── legend
│ │ │ │ │ ├── DestinyLegendAdapter.java
│ │ │ │ │ └── LegendAdapter.java
│ │ │ │ └── utils
│ │ │ │ ├── CheckableRelativeLayout.java
│ │ │ │ ├── IllegalNetworkStateException.java
│ │ │ │ ├── ItemClickSupport.java
│ │ │ │ ├── NonScrollableListView.java
│ │ │ │ ├── SelectableAdapter.java
│ │ │ │ └── SelectableSectionedRecyclerViewAdapter.java
│ │ └── res
│ │ │ ├── drawable-v21
│ │ │ └── ic_menu_gallery.xml
│ │ │ ├── drawable
│ │ │ ├── discipline.png
│ │ │ ├── grey_activities.png
│ │ │ ├── grey_inventory.png
│ │ │ ├── grey_legend.png
│ │ │ ├── horizontal_progress.xml
│ │ │ ├── ic_add_black_24dp.xml
│ │ │ ├── ic_add_white_24dp.xml
│ │ │ ├── ic_delete_white_24dp.xml
│ │ │ ├── ic_filter_list_black_24dp.xml
│ │ │ ├── ic_filter_list_white_24dp.xml
│ │ │ ├── ic_remove_black_24dp.xml
│ │ │ ├── ic_remove_white_24dp.xml
│ │ │ ├── ic_send_white_24dp.xml
│ │ │ ├── intellect.png
│ │ │ ├── light.png
│ │ │ ├── nav_header.png
│ │ │ ├── side_nav_bar.xml
│ │ │ ├── strength.png
│ │ │ └── vault.png
│ │ │ ├── layout
│ │ │ ├── activity_main.xml
│ │ │ ├── app_bar_main.xml
│ │ │ ├── content_frame.xml
│ │ │ ├── dialog_filter.xml
│ │ │ ├── dialog_item_details.xml
│ │ │ ├── fragment_generic.xml
│ │ │ ├── nav_header_main.xml
│ │ │ ├── view_account_row.xml
│ │ │ ├── view_activity_tile.xml
│ │ │ ├── view_item_header_row.xml
│ │ │ ├── view_item_tile.xml
│ │ │ ├── view_itembagdestination_row.xml
│ │ │ ├── view_legend.xml
│ │ │ └── view_tablayout_tab.xml
│ │ │ ├── menu
│ │ │ ├── activity_user_drawer.xml
│ │ │ ├── main.xml
│ │ │ ├── menu_inventory.xml
│ │ │ └── menu_inventory_overlay.xml
│ │ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ │ ├── values-v21
│ │ │ └── styles.xml
│ │ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ │ └── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── drawables.xml
│ │ │ ├── ids.xml
│ │ │ ├── strings.xml
│ │ │ ├── styles.xml
│ │ │ └── values.xml
│ │ └── test
│ │ └── java
│ │ └── com
│ │ └── jam01
│ │ └── littlelight
│ │ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ ├── gradle-wrapper.jar
│ │ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
├── littlelight
├── .gitignore
├── build.gradle
├── littlelight.iml
└── src
│ └── main
│ └── java
│ └── com
│ ├── bungie
│ └── netplatform
│ │ └── destiny
│ │ ├── api
│ │ ├── DestinyApi.java
│ │ ├── EquipCommand.java
│ │ └── TransferCommand.java
│ │ └── representation
│ │ ├── Account.java
│ │ ├── AckState.java
│ │ ├── ActiveRewardIndexes.java
│ │ ├── Activities.java
│ │ ├── ActivityAdvisors.java
│ │ ├── Advisors.java
│ │ ├── Arena.java
│ │ ├── ArtRegions.java
│ │ ├── Available.java
│ │ ├── BonusRank.java
│ │ ├── Bonuse.java
│ │ ├── Bounties.java
│ │ ├── Bounties_.java
│ │ ├── Buckets.java
│ │ ├── Buff.java
│ │ ├── BungieResponse.java
│ │ ├── Character.java
│ │ ├── CharacterBase.java
│ │ ├── CharacterComplete.java
│ │ ├── CharacterInventory.java
│ │ ├── Context.java
│ │ ├── Cost.java
│ │ ├── Currencies.java
│ │ ├── Currency.java
│ │ ├── Currency_.java
│ │ ├── CustomDye.java
│ │ ├── CustomDyeExpression.java
│ │ ├── Customization.java
│ │ ├── DailyChapterActivities.java
│ │ ├── DailyCrucible.java
│ │ ├── DataAdvisors.java
│ │ ├── DataResponse.java
│ │ ├── DirectorNodeStates.java
│ │ ├── Dye.java
│ │ ├── EarnedCurrency.java
│ │ ├── ElderChallenge.java
│ │ ├── Endpoints.java
│ │ ├── Equipment.java
│ │ ├── Equippable.java
│ │ ├── EquippingBlock.java
│ │ ├── Event.java
│ │ ├── Factions.java
│ │ ├── Globals.java
│ │ ├── HeroicStrike.java
│ │ ├── IgnoreStatus.java
│ │ ├── Inventory.java
│ │ ├── Invisible.java
│ │ ├── Item.java
│ │ ├── ItemDefinition.java
│ │ ├── ItemInstance.java
│ │ ├── ItemQuantities.java
│ │ ├── LevelProgression.java
│ │ ├── LockedDye.java
│ │ ├── MaterialUpgrades.java
│ │ ├── MessageData.java
│ │ ├── Nightfall.java
│ │ ├── Node.java
│ │ ├── Objective.java
│ │ ├── PeerView.java
│ │ ├── PendingBounties.java
│ │ ├── Perk.java
│ │ ├── PrimaryStat.java
│ │ ├── Progression.java
│ │ ├── Progressions.java
│ │ ├── Quest.java
│ │ ├── Quests.java
│ │ ├── Quests_.java
│ │ ├── RaidActivities.java
│ │ ├── Rect.java
│ │ ├── Response.java
│ │ ├── RewardClaimSales.java
│ │ ├── Round.java
│ │ ├── STAT_AGILITY.java
│ │ ├── STAT_ARMOR.java
│ │ ├── STAT_DEFENSE.java
│ │ ├── STAT_DISCIPLINE.java
│ │ ├── STAT_INTELLECT.java
│ │ ├── STAT_LIGHT.java
│ │ ├── STAT_OPTICS.java
│ │ ├── STAT_RECOVERY.java
│ │ ├── STAT_STRENGTH.java
│ │ ├── SaleItem.java
│ │ ├── SaleItemCategory.java
│ │ ├── SheetSize.java
│ │ ├── SmallImage.java
│ │ ├── Stat.java
│ │ ├── Stats.java
│ │ ├── Stats__.java
│ │ ├── Step.java
│ │ ├── StepObjective.java
│ │ ├── Ticket.java
│ │ ├── Tier.java
│ │ ├── Trials.java
│ │ ├── UnlockStatus.java
│ │ ├── User.java
│ │ ├── UserResponse.java
│ │ ├── Values.java
│ │ ├── Vault.java
│ │ ├── Vendor.java
│ │ └── VendorAdvisors.java
│ └── jam01
│ └── littlelight
│ ├── adapter
│ └── common
│ │ ├── persistence
│ │ ├── inventory
│ │ │ └── InMemoryInventoryRepository.java
│ │ └── legend
│ │ │ └── InMemoryLegendRepository.java
│ │ ├── presentation
│ │ ├── ActivitiesDPO.java
│ │ ├── ExoticsDPO.java
│ │ └── InventoryDPO.java
│ │ └── service
│ │ ├── BungieResponseException.java
│ │ ├── BungieResponseValidator.java
│ │ ├── activity
│ │ ├── ACLActivityService.java
│ │ └── ActivityTranslator.java
│ │ ├── identityaccess
│ │ └── ACLAccountService.java
│ │ ├── inventory
│ │ ├── ItemBagTranslator.java
│ │ └── LocalDefinitionsDbService.java
│ │ └── legend
│ │ ├── ACLLegendService.java
│ │ └── LegendTranslator.java
│ ├── application
│ ├── ActivityService.java
│ ├── InventoryService.java
│ ├── LegendService.java
│ └── UserService.java
│ └── domain
│ ├── DomainEvent.java
│ ├── DomainEventPublisher.java
│ ├── activity
│ ├── Account.java
│ ├── Activity.java
│ ├── Character.java
│ └── DestinyActivityService.java
│ ├── identityaccess
│ ├── Account.java
│ ├── AccountCredentials.java
│ ├── AccountCredentialsExpired.java
│ ├── AccountId.java
│ ├── AccountRegistered.java
│ ├── AccountUpdated.java
│ ├── DestinyAccountService.java
│ └── User.java
│ ├── inventory
│ ├── Character.java
│ ├── DestinyInventoryService.java
│ ├── Inventory.java
│ ├── InventoryRepository.java
│ ├── InventorySynced.java
│ ├── Item.java
│ ├── ItemBag.java
│ ├── ItemEquipped.java
│ ├── ItemTransferred.java
│ ├── ItemType.java
│ └── Vault.java
│ └── legend
│ ├── Character.java
│ ├── DestinyLegendService.java
│ ├── Legend.java
│ ├── LegendRepository.java
│ └── LegendSynced.java
├── readme.md
└── readmeFiles
├── installs.png
├── listing.png
├── ratings.png
└── report.png
/.gitignore:
--------------------------------------------------------------------------------
1 | /.project
2 |
--------------------------------------------------------------------------------
/androidadapter/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 |
--------------------------------------------------------------------------------
/androidadapter/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/androidadapter/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/androidadapter/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
--------------------------------------------------------------------------------
/androidadapter/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/androidadapter/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/androidadapter/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/androidadapter/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/androidadapter/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /media/jam01/android/sdk/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | -dontobfuscate
13 |
14 | -renamesourcefileattribute SourceFile
15 | -keepattributes SourceFile,LineNumberTable
16 |
17 | ###---------------Begin: proguard configuration for Gson ----------
18 | # Gson uses generic type information stored in a class file when working with fields. Proguard
19 | # removes such information by default, so configure it to keep all of it.
20 | -keepattributes Signature
21 |
22 | # For using GSON @Expose annotation
23 | -keepattributes *Annotation*
24 |
25 | # Gson specific classes
26 | -keep class sun.misc.Unsafe { *; }
27 | #-keep class com.google.gson.stream.** { *; }
28 |
29 | # Application classes that will be serialized/deserialized over Gson
30 | -keep class com.bungie.netplatform.destiny.** { *; }
31 |
32 | # Prevent proguard from stripping interface information from TypeAdapterFactory,
33 | # JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
34 | -keep class * implements com.google.gson.TypeAdapterFactory
35 | -keep class * implements com.google.gson.JsonSerializer
36 | -keep class * implements com.google.gson.JsonDeserializer
37 | ##---------------End: proguard configuration for Gson ----------
38 |
39 | # If your project uses WebView with JS, uncomment the following
40 | # and specify the fully qualified class name to the JavaScript interface
41 | # class:
42 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
43 | # public *;
44 | #}
45 |
--------------------------------------------------------------------------------
/androidadapter/app/src/androidTest/java/com/jam01/littlelight/ApplicationTest.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight;
2 |
3 | import android.app.Application;
4 | import android.test.ApplicationTestCase;
5 |
6 | /**
7 | * Testing Fundamentals
8 | */
9 | public class ApplicationTest extends ApplicationTestCase {
10 | public ApplicationTest() {
11 | super(Application.class);
12 | }
13 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/ic_launcher-web.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/ic_launcher-web.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/LittleLight.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android;
2 |
3 | import android.app.Application;
4 |
5 | import com.jam01.littlelight.adapter.android.di.module.AdapterModule;
6 | import com.jam01.littlelight.adapter.android.di.module.AndroidModule;
7 | import com.jam01.littlelight.adapter.android.di.module.ApplicationModule;
8 | import com.jam01.littlelight.adapter.android.di.module.DomainModule;
9 | import com.jam01.littlelight.adapter.android.presentation.activity.ActivityPresenter;
10 | import com.jam01.littlelight.adapter.android.presentation.inventory.ExoticsPresenter;
11 | import com.jam01.littlelight.adapter.android.presentation.inventory.InventoryPresenter;
12 | import com.jam01.littlelight.adapter.android.presentation.legend.LegendPresenter;
13 | import com.jam01.littlelight.adapter.android.presentation.user.UserPresenter;
14 | import com.squareup.picasso.Picasso;
15 |
16 | import javax.inject.Singleton;
17 |
18 | import dagger.Component;
19 |
20 | /**
21 | * Created by jam01 on 9/24/16.
22 | */
23 | public class LittleLight extends Application {
24 | private LittleLightComponent component;
25 |
26 | @Override
27 | public void onCreate() {
28 | super.onCreate();
29 | component = DaggerLittleLight_LittleLightComponent.builder()
30 | .androidModule(new AndroidModule(this))
31 | .adapterModule(new AdapterModule("https://www.bungie.net"))
32 | .build();
33 |
34 | Picasso.setSingletonInstance(component.providePicasso());
35 | }
36 |
37 | public LittleLightComponent getComponent() {
38 | return component;
39 | }
40 |
41 | @Singleton
42 | @Component(modules = {AndroidModule.class, AdapterModule.class, ApplicationModule.class, DomainModule.class})
43 | public interface LittleLightComponent {
44 | UserPresenter provideMainPresenter();
45 |
46 | InventoryPresenter provideInventoryPresenter();
47 |
48 | LegendPresenter provideLegendPresenter();
49 |
50 | ExoticsPresenter provideExoticsPresenter();
51 |
52 | ActivityPresenter provideActivityPresenter();
53 |
54 | Picasso providePicasso();
55 | }
56 |
57 |
58 | }
59 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/di/module/AndroidModule.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.di.module;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 |
6 | import javax.inject.Singleton;
7 |
8 | import dagger.Module;
9 | import dagger.Provides;
10 |
11 | /**
12 | * Created by jam01 on 9/24/16.
13 | */
14 |
15 | @Module
16 | public class AndroidModule {
17 | Application mApplication;
18 |
19 | public AndroidModule(Application application) {
20 | mApplication = application;
21 | }
22 |
23 | @Provides
24 | @Singleton
25 | Context providesContext() {
26 | return mApplication;
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/di/module/ApplicationModule.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.di.module;
2 |
3 | import com.jam01.littlelight.application.ActivityService;
4 | import com.jam01.littlelight.application.InventoryService;
5 | import com.jam01.littlelight.application.LegendService;
6 | import com.jam01.littlelight.application.UserService;
7 | import com.jam01.littlelight.domain.activity.DestinyActivityService;
8 | import com.jam01.littlelight.domain.identityaccess.DestinyAccountService;
9 | import com.jam01.littlelight.domain.identityaccess.User;
10 | import com.jam01.littlelight.domain.inventory.DestinyInventoryService;
11 | import com.jam01.littlelight.domain.inventory.InventoryRepository;
12 | import com.jam01.littlelight.domain.legend.DestinyLegendService;
13 | import com.jam01.littlelight.domain.legend.LegendRepository;
14 |
15 | import javax.inject.Singleton;
16 |
17 | import dagger.Module;
18 | import dagger.Provides;
19 |
20 | /**
21 | * Created by jam01 on 9/24/16.
22 | */
23 |
24 | @Module
25 | public class ApplicationModule {
26 | @Provides
27 | @Singleton
28 | UserService providesUserService(DestinyAccountService destinyService, User user) {
29 | return new UserService(destinyService, user);
30 | }
31 |
32 | @Provides
33 | @Singleton
34 | InventoryService providesInventoryService(DestinyInventoryService destinyService, InventoryRepository inventoryRepo, User user) {
35 | return new InventoryService(destinyService, inventoryRepo, user);
36 | }
37 |
38 | @Provides
39 | @Singleton
40 | LegendService providesLegendService(DestinyLegendService destinyService, LegendRepository inventoryRepo, User user) {
41 | return new LegendService(destinyService, inventoryRepo, user);
42 | }
43 |
44 | @Provides
45 | @Singleton
46 | ActivityService providesActivityService(DestinyActivityService destinyService, User user) {
47 | return new ActivityService(destinyService, user);
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/presentation/BaseGenericFragment.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.presentation;
2 |
3 | /**
4 | * Created by jam01 on 11/15/16.
5 | */
6 |
7 | public class BaseGenericFragment {
8 | }
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/presentation/inventory/ItemBagDestination.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.presentation.inventory;
2 |
3 | /**
4 | * Created by jam01 on 11/15/16.
5 | */
6 | public class ItemBagDestination {
7 | public String name;
8 | public String iconPath;
9 | public String emblemPath;
10 | public String itemBagId;
11 |
12 | public ItemBagDestination(String name, String iconPath, String emblemPath, String itemBagId) {
13 | this.name = name;
14 | this.iconPath = iconPath;
15 | this.emblemPath = emblemPath;
16 | this.itemBagId = itemBagId;
17 | }
18 |
19 |
20 | public ItemBagDestination(String name, String iconPath, String emblemPath) {
21 | this.name = name;
22 | this.iconPath = iconPath;
23 | this.emblemPath = emblemPath;
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/presentation/inventory/ItemBagDestinationAdapter.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.presentation.inventory;
2 |
3 | import android.content.Context;
4 | import android.graphics.Bitmap;
5 | import android.graphics.drawable.BitmapDrawable;
6 | import android.graphics.drawable.Drawable;
7 | import android.support.annotation.NonNull;
8 | import android.view.LayoutInflater;
9 | import android.view.View;
10 | import android.view.ViewGroup;
11 | import android.widget.ArrayAdapter;
12 | import android.widget.ImageView;
13 | import android.widget.TextView;
14 |
15 | import com.jam01.littlelight.R;
16 | import com.squareup.picasso.Picasso;
17 | import com.squareup.picasso.Target;
18 |
19 | import java.util.List;
20 |
21 | /**
22 | * Created by jam01 on 11/15/16.
23 | */
24 |
25 | public class ItemBagDestinationAdapter extends ArrayAdapter {
26 | private final List accounts;
27 | private final Context mContext;
28 |
29 | public ItemBagDestinationAdapter(Context context, int resource, List objects) {
30 | super(context, resource, objects);
31 | this.accounts = objects;
32 | mContext = context;
33 | }
34 |
35 |
36 | @NonNull
37 | @Override
38 | public View getView(int position, View convertView, ViewGroup parent) {
39 | ItemBagDestination toDraw = accounts.get(position);
40 | final View toReturn = LayoutInflater.from(mContext).inflate(R.layout.view_itembagdestination_row, parent, false);
41 | ((TextView) toReturn.findViewById(R.id.tvItemBagName)).setText(toDraw.name);
42 | Picasso.with(mContext)
43 | .load(toDraw.iconPath)
44 | .placeholder(R.drawable.vault)
45 | .fit()
46 | .into((ImageView) toReturn.findViewById(R.id.ivItemBagIcon));
47 | Picasso.with(mContext)
48 | .load(toDraw.emblemPath)
49 | .into(new Target() {
50 | @Override
51 | public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {
52 | toReturn.setBackgroundDrawable(new BitmapDrawable(mContext.getResources(), bitmap));
53 | }
54 |
55 | @Override
56 | public void onBitmapFailed(Drawable errorDrawable) {
57 |
58 | }
59 |
60 | @Override
61 | public void onPrepareLoad(Drawable placeHolderDrawable) {
62 |
63 | }
64 | });
65 | return toReturn;
66 | }
67 |
68 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/presentation/inventory/ItemBagViewPagerAdapter.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.presentation.inventory;
2 |
3 | import android.support.v4.view.PagerAdapter;
4 | import android.view.View;
5 | import android.view.ViewGroup;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | /**
11 | * Created by jam01 on 11/15/16.
12 | */
13 | class ItemBagViewPagerAdapter extends PagerAdapter {
14 | private List bagViews;
15 |
16 | public ItemBagViewPagerAdapter(List bagViews) {
17 | this.bagViews = bagViews;
18 | }
19 |
20 | public ItemBagViewPagerAdapter() {
21 | this.bagViews = new ArrayList<>();
22 | }
23 |
24 | @Override
25 | public int getCount() {
26 | return bagViews.size();
27 | }
28 |
29 | @Override
30 | public Object instantiateItem(ViewGroup container, int position) {
31 | ItemBagView itemBagView = bagViews.get(position);
32 | container.addView(itemBagView);
33 | return itemBagView;
34 | }
35 |
36 | @Override
37 | public boolean isViewFromObject(View view, Object object) {
38 | return view == object;
39 | }
40 |
41 | @Override
42 | public void destroyItem(ViewGroup collection, int position, Object view) {
43 | collection.removeView((View) view);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/presentation/user/CircleTransform.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.presentation.user;
2 |
3 | import android.graphics.Bitmap;
4 | import android.graphics.BitmapShader;
5 | import android.graphics.Canvas;
6 | import android.graphics.Paint;
7 |
8 | import com.squareup.picasso.Transformation;
9 |
10 | // enables hardware accelerated rounded corners
11 | // original idea here : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/
12 |
13 | // See: http://stackoverflow.com/a/26112408/4814697
14 | public class CircleTransform implements Transformation {
15 | @Override
16 | public Bitmap transform(Bitmap source) {
17 | int size = Math.min(source.getWidth(), source.getHeight());
18 |
19 | int x = (source.getWidth() - size) / 2;
20 | int y = (source.getHeight() - size) / 2;
21 |
22 | Bitmap squaredBitmap = Bitmap.createBitmap(source, x, y, size, size);
23 | if (squaredBitmap != source) {
24 | source.recycle();
25 | }
26 |
27 | Bitmap bitmap = Bitmap.createBitmap(size, size, source.getConfig());
28 |
29 | Canvas canvas = new Canvas(bitmap);
30 | Paint paint = new Paint();
31 | BitmapShader shader = new BitmapShader(squaredBitmap,
32 | BitmapShader.TileMode.CLAMP, BitmapShader.TileMode.CLAMP);
33 | paint.setShader(shader);
34 | paint.setAntiAlias(true);
35 |
36 | float r = size / 2f;
37 | canvas.drawCircle(r, r, r, paint);
38 |
39 | squaredBitmap.recycle();
40 | return bitmap;
41 | }
42 |
43 | @Override
44 | public String key() {
45 | return "circle";
46 | }
47 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/service/legend/DestinyLegendAdapter.java:
--------------------------------------------------------------------------------
1 | //package com.jam01.littlelight.adapter.android.service.legend.service;
2 | //
3 | //import com.jam01.littlelight.domain.identityaccess.AccountId;
4 | //import com.jam01.littlelight.domain.legend.Legend;
5 | //
6 | //;
7 | //
8 | ///**
9 | // * Created by jam01 on 7/30/16.
10 | // */
11 | //public interface DestinyLegendAdapter {
12 | // Legend ofId(AccountId anAccountId);
13 | //}
14 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/service/legend/LegendAdapter.java:
--------------------------------------------------------------------------------
1 | //package com.jam01.littlelight.adapter.android.service.legend.service;
2 | //
3 | //
4 | //import com.bungie.netplatform.destiny.api.DestinyApi;
5 | //import com.bungie.netplatform.destiny.representation.Account;
6 | //import com.bungie.netplatform.destiny.representation.User;
7 | //import com.jam01.littlelight.adapter.android.service.common.RetrofitDestinyApiFacade;
8 | //import com.jam01.littlelight.domain.identityaccess.AccountId;
9 | //import com.jam01.littlelight.domain.identityaccess.CredentialsService;
10 | //import com.jam01.littlelight.domain.legend.Legend;
11 | //
12 | ///**
13 | // * Created by jam01 on 7/30/16.
14 | // */
15 | //public class LegendAdapter implements DestinyLegendAdapter {
16 | // private CredentialsService credentialsService;
17 | // private DestinyApi apiFacade = RetrofitDestinyApiFacade.getInstance();
18 | //
19 | // @Override
20 | // public Legend ofId(AccountId aAccountId) {
21 | // LegendTranslator translator = new LegendTranslator();
22 | //
23 | // Account bungieAccount = apiFacade.getAccount(String.valueOf(aAccountId.withMembershipType()),
24 | // aAccountId.withMembershipId(),
25 | // credentialsService.ofLegend(aAccountId).asCookieVal(),
26 | // credentialsService.ofLegend(aAccountId).xcsrf());
27 | //
28 | // User bungieUser = apiFacade.getUser(
29 | // credentialsService.ofLegend(aAccountId).asCookieVal(),
30 | // credentialsService.ofLegend(aAccountId).xcsrf());
31 | //
32 | // return translator.from(bungieAccount);
33 | // }
34 | //
35 | //// @Override
36 | //// public boolean authenticate(Legend anLegend) {
37 | //// try {
38 | //// apiFacade.getUser(anLegend.withCredentials().asCookieVal(), anLegend.withCredentials().getBungled().substring(8));
39 | //// return true;
40 | //// } catch (Exception exception) {
41 | //// //Any exception thrown means the account credentials are no longer valid
42 | //// return false;
43 | //// }
44 | //// }
45 | //}
46 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/utils/CheckableRelativeLayout.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2013 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.jam01.littlelight.adapter.android.utils;
18 |
19 | import android.content.Context;
20 | import android.util.AttributeSet;
21 | import android.widget.Checkable;
22 | import android.widget.RelativeLayout;
23 |
24 | /**
25 | * This is a simple wrapper for {@link android.widget.RelativeLayout} that implements the {@link Checkable}
26 | * interface by keeping an internal 'checked' state flag.
27 | *
28 | * This can be used as the root view for a custom list item layout for
29 | * {@link android.widget.AbsListView} elements with a
30 | * {@link android.widget.AbsListView#setChoiceMode(int) choiceMode} set.
31 | */
32 | public class CheckableRelativeLayout extends RelativeLayout implements Checkable {
33 | private static final int[] CHECKED_STATE_SET = {android.R.attr.state_checked};
34 |
35 | private boolean mChecked = false;
36 |
37 | public CheckableRelativeLayout(Context context, AttributeSet attrs) {
38 | super(context, attrs);
39 | }
40 |
41 | public boolean isChecked() {
42 | return mChecked;
43 | }
44 |
45 | public void setChecked(boolean b) {
46 | if (b != mChecked) {
47 | mChecked = b;
48 | refreshDrawableState();
49 | }
50 | }
51 |
52 | public void toggle() {
53 | setChecked(!mChecked);
54 | }
55 |
56 | @Override
57 | public int[] onCreateDrawableState(int extraSpace) {
58 | final int[] drawableState = super.onCreateDrawableState(extraSpace + 1);
59 | if (isChecked()) {
60 | mergeDrawableStates(drawableState, CHECKED_STATE_SET);
61 | }
62 | return drawableState;
63 | }
64 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/utils/IllegalNetworkStateException.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.utils;
2 |
3 | /**
4 | * Created by jam01 on 11/16/16.
5 | */
6 |
7 | public class IllegalNetworkStateException extends IllegalStateException {
8 |
9 | public IllegalNetworkStateException() {
10 | }
11 |
12 | public IllegalNetworkStateException(String s) {
13 | super(s);
14 | }
15 |
16 | public IllegalNetworkStateException(String message, Throwable cause) {
17 | super(message, cause);
18 | }
19 |
20 | public IllegalNetworkStateException(Throwable cause) {
21 | super(cause);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/utils/NonScrollableListView.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.utils;
2 |
3 | import android.content.Context;
4 | import android.util.AttributeSet;
5 | import android.view.View;
6 | import android.view.ViewGroup;
7 | import android.widget.ListView;
8 |
9 | /**
10 | * Created by jam01 on 9/29/16.
11 | */
12 |
13 | //See: http://stackoverflow.com/questions/18813296/non-scrollable-listview-inside-scrollview/24629341#24629341
14 | public class NonScrollableListView extends ListView {
15 |
16 | public NonScrollableListView(Context context) {
17 | super(context);
18 | }
19 |
20 | public NonScrollableListView(Context context, AttributeSet attrs) {
21 | super(context, attrs);
22 | }
23 |
24 | public NonScrollableListView(Context context, AttributeSet attrs, int defStyle) {
25 | super(context, attrs, defStyle);
26 | }
27 |
28 | @Override
29 | public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
30 | int heightMeasureSpec_custom = View.MeasureSpec.makeMeasureSpec(
31 | Integer.MAX_VALUE >> 2, View.MeasureSpec.AT_MOST);
32 | super.onMeasure(widthMeasureSpec, heightMeasureSpec_custom);
33 | ViewGroup.LayoutParams params = getLayoutParams();
34 | params.height = getMeasuredHeight();
35 | }
36 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/java/com/jam01/littlelight/adapter/android/utils/SelectableAdapter.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight.adapter.android.utils;
2 |
3 | import android.support.v7.widget.RecyclerView;
4 | import android.util.SparseBooleanArray;
5 |
6 | import java.util.ArrayList;
7 | import java.util.List;
8 |
9 |
10 | // See: https://enoent.fr/blog/2015/01/18/recyclerview-basics/
11 | public abstract class SelectableAdapter extends RecyclerView.Adapter {
12 | @SuppressWarnings("unused")
13 | private static final String TAG = SelectableAdapter.class.getSimpleName();
14 |
15 | private SparseBooleanArray selectedItems;
16 |
17 | public SelectableAdapter() {
18 | selectedItems = new SparseBooleanArray();
19 | }
20 |
21 | /**
22 | * Indicates if the item at position position is selected
23 | *
24 | * @param position Position of the item to check
25 | * @return true if the item is selected, false otherwise
26 | */
27 | public boolean isSelected(int position) {
28 | return getSelectedItems().contains(position);
29 | }
30 |
31 | /**
32 | * Toggle the selection status of the item at a given position
33 | *
34 | * @param position Position of the item to toggle the selection status for
35 | */
36 | public void toggleSelection(int position) {
37 | if (selectedItems.get(position, false)) {
38 | selectedItems.delete(position);
39 | } else {
40 | selectedItems.put(position, true);
41 | }
42 | notifyItemChanged(position);
43 | }
44 |
45 | /**
46 | * Clear the selection status for all items
47 | */
48 | public void clearSelection() {
49 | List selection = getSelectedItems();
50 | selectedItems.clear();
51 | for (Integer i : selection) {
52 | notifyItemChanged(i);
53 | }
54 | }
55 |
56 | /**
57 | * Count the selected items
58 | *
59 | * @return Selected items count
60 | */
61 | public int getSelectedItemCount() {
62 | return selectedItems.size();
63 | }
64 |
65 | /**
66 | * Indicates the list of selected items
67 | *
68 | * @return List of selected items ids
69 | */
70 | public List getSelectedItems() {
71 | List items = new ArrayList<>(selectedItems.size());
72 | for (int i = 0; i < selectedItems.size(); ++i) {
73 | items.add(selectedItems.keyAt(i));
74 | }
75 | return items;
76 | }
77 | }
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable-v21/ic_menu_gallery.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/discipline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/discipline.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/grey_activities.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/grey_activities.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/grey_inventory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/grey_inventory.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/grey_legend.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/grey_legend.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/horizontal_progress.xml:
--------------------------------------------------------------------------------
1 |
2 | -
3 |
4 |
5 |
6 |
7 |
8 | -
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | -
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_add_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_add_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_delete_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_filter_list_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_filter_list_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_remove_black_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_remove_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/ic_send_white_24dp.xml:
--------------------------------------------------------------------------------
1 |
6 |
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/intellect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/intellect.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/light.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/nav_header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/nav_header.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/side_nav_bar.xml:
--------------------------------------------------------------------------------
1 |
3 |
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/strength.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/strength.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/drawable/vault.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/drawable/vault.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
15 |
16 |
24 |
25 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/app_bar_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
18 |
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/content_frame.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
17 |
18 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/fragment_generic.xml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/view_account_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
27 |
28 |
36 |
37 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/view_activity_tile.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
18 |
19 |
27 |
28 |
39 |
40 |
41 |
48 |
49 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/view_item_header_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
19 |
20 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/view_itembagdestination_row.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
17 |
18 |
28 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/layout/view_tablayout_tab.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
15 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/menu/activity_user_drawer.xml:
--------------------------------------------------------------------------------
1 |
2 |
42 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/menu/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/menu/menu_inventory.xml:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/menu/menu_inventory_overlay.xml:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
20 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values-w820dp/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 64dp
6 |
7 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #c3bcb4
4 | #366f42
5 | #5075a2
6 | #522f65
7 | #ceae33
8 | #4d000000
9 |
10 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 160dp
5 |
6 | 16dp
7 | 16dp
8 | 16dp
9 | 200dp
10 | 200dp
11 | 16dp
12 |
13 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/drawables.xml:
--------------------------------------------------------------------------------
1 |
2 | - @android:drawable/ic_menu_camera
3 | - @android:drawable/ic_menu_gallery
4 | - @android:drawable/ic_menu_slideshow
5 | - @android:drawable/ic_menu_manage
6 | - @android:drawable/ic_menu_share
7 | - @android:drawable/ic_menu_send
8 |
9 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/ids.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | LittleLight
3 |
4 | Open navigation drawer
5 | Close navigation drawer
6 |
7 | Settings
8 |
9 |
10 | Hello blank fragment
11 | Equip Item
12 |
13 |
14 | - All
15 | - Weapons
16 | - Armor
17 | - General
18 | - Progress
19 |
20 |
21 |
22 | - All
23 | - Primary Weapons
24 | - Secondary Weapons
25 | - Heavy Weapons
26 |
27 |
28 |
29 | - All
30 | - Helmets
31 | - Arms
32 | - Chests
33 | - Legs
34 |
35 |
36 |
37 | - All
38 | - Materials
39 | - Consumables
40 | - Subclass
41 | - Vehicles
42 | - Ships
43 | - Shaders
44 | - Emblems
45 | - Emotes
46 | - Sparrow Horns
47 | - Artifacts
48 |
49 |
50 |
51 | - All
52 | - None
53 | - Kinetic
54 | - Arc
55 | - Solar
56 | - Void
57 |
58 |
59 |
60 | - Options
61 | - Change loadout name
62 | - Delete loadout
63 |
64 |
65 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
19 |
26 |
27 |
--------------------------------------------------------------------------------
/androidadapter/app/src/main/res/values/values.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #607d8b
4 | #607d8b
5 | #3f51b5
6 | #455a64
7 | #cfd8dc
8 | #424242
9 | #0d47a1
10 | #ffb300
11 | #0a2b5f
12 | #424242
13 | #212121
14 | #bdbdbd
15 | #424242
16 | #ffcf40
17 |
--------------------------------------------------------------------------------
/androidadapter/app/src/test/java/com/jam01/littlelight/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.jam01.littlelight;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * To work on unit tests, switch the Test Artifact in the Build Variants view.
9 | */
10 | public class ExampleUnitTest {
11 | @Test
12 | public void addition_isCorrect() throws Exception {
13 | assertEquals(4, 2 + 2);
14 | }
15 | }
--------------------------------------------------------------------------------
/androidadapter/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | repositories {
5 | jcenter()
6 | }
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:2.2.2'
9 | // NOTE: Do not place your application dependencies here; they belong
10 | // in the individual module build.gradle files
11 | }
12 | }
13 |
14 | allprojects {
15 | repositories {
16 | jcenter()
17 | }
18 | }
19 |
20 | task clean(type: Delete) {
21 | delete rootProject.buildDir
22 | }
--------------------------------------------------------------------------------
/androidadapter/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 |
3 | # IDE (e.g. Android Studio) users:
4 | # Gradle settings configured through the IDE *will override*
5 | # any settings specified in this file.
6 |
7 | # For more details on how to configure your build environment visit
8 | # http://www.gradle.org/docs/current/userguide/build_environment.html
9 |
10 | # Specifies the JVM arguments used for the daemon process.
11 | # The setting is particularly useful for tweaking memory settings.
12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m
13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14 |
15 | # When configured, Gradle will run in incubating parallel mode.
16 | # This option should only be used with decoupled projects. More details, visit
17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18 | # org.gradle.parallel=true
--------------------------------------------------------------------------------
/androidadapter/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jam01/LittleLight/dc90e7d6bf3e71333370c1adf4de54ff88f34192/androidadapter/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/androidadapter/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Thu Sep 01 10:38:32 CDT 2016
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | #TODO: Check back on which gradle version resolves support for lamdas from external libraries
7 | #See: https://code.google.com/p/android/issues/detail?id=211386
8 | #distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
9 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.2-all.zip
--------------------------------------------------------------------------------
/androidadapter/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/androidadapter/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':littlelight'
2 | project(':littlelight').projectDir=new File('../littlelight')
3 |
--------------------------------------------------------------------------------
/littlelight/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/littlelight/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'java'
2 |
3 | dependencies {
4 | sourceCompatibility = 1.8
5 | targetCompatibility = 1.8
6 |
7 | compile fileTree(dir: 'libs', include: ['*.jar'])
8 | testCompile 'junit:junit:4.12'
9 | compile 'com.google.code.gson:gson:2.6.2'
10 | compile 'io.reactivex.rxjava2:rxjava:2.0.0'
11 | }
12 |
--------------------------------------------------------------------------------
/littlelight/littlelight.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/api/DestinyApi.java:
--------------------------------------------------------------------------------
1 | package com.bungie.netplatform.destiny.api;
2 |
3 | import com.bungie.netplatform.destiny.representation.Account;
4 | import com.bungie.netplatform.destiny.representation.Advisors;
5 | import com.bungie.netplatform.destiny.representation.BungieResponse;
6 | import com.bungie.netplatform.destiny.representation.CharacterInventory;
7 | import com.bungie.netplatform.destiny.representation.DataResponse;
8 | import com.bungie.netplatform.destiny.representation.UserResponse;
9 | import com.bungie.netplatform.destiny.representation.Vault;
10 | import com.google.gson.JsonObject;
11 |
12 | import java.io.InputStream;
13 |
14 | /**
15 | * Created by jam01 on 8/10/16.
16 | */
17 | public interface DestinyApi {
18 | BungieResponse> getVault(int membershipType, String cookies, String xcsrf);
19 |
20 | BungieResponse> getCharacterInventory(int membershipType, String membershipId, String characterId, String cookies, String xcsrf);
21 |
22 | BungieResponse equipItem(EquipCommand command, String cookies, String xcsrf);
23 |
24 | BungieResponse transferItem(TransferCommand command, String cookies, String xcsrf);
25 |
26 | BungieResponse> getAccount(int membershipType, String membershipId, String cookies, String xcsrf);
27 |
28 | BungieResponse getUser(String cookies, String xcsrf);
29 |
30 | BungieResponse membershipIds(String cookies, String xcsrf);
31 |
32 | BungieResponse latestManifestUrl();
33 |
34 | BungieResponse> getAdvisorsForCharacter(int membershipType, String membershipId, String characterId, String cookies, String xcsrf);
35 |
36 | InputStream zippedManifest(String manifestUrl);
37 | }
38 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/api/EquipCommand.java:
--------------------------------------------------------------------------------
1 | package com.bungie.netplatform.destiny.api;
2 |
3 | /**
4 | * Created by jam01 on 9/22/16.
5 | */
6 | public class EquipCommand {
7 | private final int membershipType;
8 | private final String itemId;
9 | private final String characterId;
10 |
11 | public EquipCommand(int membershipType, String itemId, String characterId) {
12 | this.membershipType = membershipType;
13 | this.itemId = itemId;
14 | this.characterId = characterId;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/api/TransferCommand.java:
--------------------------------------------------------------------------------
1 | package com.bungie.netplatform.destiny.api;
2 |
3 | /**
4 | * Created by jam01 on 9/22/16.
5 | */
6 | public class TransferCommand {
7 | private final int membershipType;
8 | private final String itemReferenceHash;
9 | private final String itemId;
10 | private final int stackSize;
11 | private final String characterId;
12 | private final boolean transferToVault;
13 |
14 | public TransferCommand(int membershipType, String itemReferenceHash, String itemId, int stackSize, String characterId, boolean transferToVault) {
15 | this.membershipType = membershipType;
16 | this.itemReferenceHash = itemReferenceHash;
17 | this.itemId = itemId;
18 | this.stackSize = stackSize;
19 | this.characterId = characterId;
20 | this.transferToVault = transferToVault;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/Account.java:
--------------------------------------------------------------------------------
1 | package com.bungie.netplatform.destiny.representation;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | import java.util.ArrayList;
6 | import java.util.List;
7 |
8 | import javax.annotation.Generated;
9 |
10 | @Generated("org.jsonschema2pojo")
11 | public class Account {
12 |
13 | @Expose
14 | private String membershipId;
15 | @Expose
16 | private Long membershipType;
17 | @Expose
18 | private List characters = new ArrayList();
19 | @Expose
20 | private Inventory inventory;
21 | @Expose
22 | private Long grimoireScore;
23 |
24 | /**
25 | * @return The membershipId
26 | */
27 | public String getMembershipId() {
28 | return membershipId;
29 | }
30 |
31 | /**
32 | * @param membershipId The membershipId
33 | */
34 | public void setMembershipId(String membershipId) {
35 | this.membershipId = membershipId;
36 | }
37 |
38 | /**
39 | * @return The membershipType
40 | */
41 | public Long getMembershipType() {
42 | return membershipType;
43 | }
44 |
45 | /**
46 | * @param membershipType The membershipType
47 | */
48 | public void setMembershipType(Long membershipType) {
49 | this.membershipType = membershipType;
50 | }
51 |
52 | /**
53 | * @return The characters
54 | */
55 | public List getCharacters() {
56 | return characters;
57 | }
58 |
59 | /**
60 | * @param characters The characters
61 | */
62 | public void setCharacters(List characters) {
63 | this.characters = characters;
64 | }
65 |
66 | /**
67 | * @return The inventory
68 | */
69 | public Inventory getInventory() {
70 | return inventory;
71 | }
72 |
73 | /**
74 | * @param inventory The inventory
75 | */
76 | public void setInventory(Inventory inventory) {
77 | this.inventory = inventory;
78 | }
79 |
80 | /**
81 | * @return The grimoireScore
82 | */
83 | public Long getGrimoireScore() {
84 | return grimoireScore;
85 | }
86 |
87 | /**
88 | * @param grimoireScore The grimoireScore
89 | */
90 | public void setGrimoireScore(Long grimoireScore) {
91 | this.grimoireScore = grimoireScore;
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/AckState.java:
--------------------------------------------------------------------------------
1 |
2 | package com.bungie.netplatform.destiny.representation;
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | import javax.annotation.Generated;
8 |
9 | @Generated("org.jsonschema2pojo")
10 | public class AckState {
11 |
12 | @SerializedName("needsAck")
13 | @Expose
14 | public boolean needsAck;
15 | @SerializedName("ackId")
16 | @Expose
17 | public String ackId;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/ActiveRewardIndexes.java:
--------------------------------------------------------------------------------
1 |
2 | package com.bungie.netplatform.destiny.representation;
3 |
4 | import com.google.gson.annotations.Expose;
5 | import com.google.gson.annotations.SerializedName;
6 |
7 | import java.util.ArrayList;
8 | import java.util.List;
9 |
10 | import javax.annotation.Generated;
11 |
12 | @Generated("org.jsonschema2pojo")
13 | public class ActiveRewardIndexes {
14 |
15 | @SerializedName("854130400")
16 | @Expose
17 | public List _854130400 = new ArrayList();
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/Activities.java:
--------------------------------------------------------------------------------
1 | package com.bungie.netplatform.destiny.representation;
2 |
3 | import com.google.gson.annotations.Expose;
4 |
5 | import java.util.ArrayList;
6 | import java.util.List;
7 |
8 | import javax.annotation.Generated;
9 |
10 | @Generated("org.jsonschema2pojo")
11 | public class Activities {
12 |
13 | @Expose
14 | private String dateActivityStarted;
15 | @Expose
16 | private List available = new ArrayList();
17 |
18 | /**
19 | * @return The dateActivityStarted
20 | */
21 | public String getDateActivityStarted() {
22 | return dateActivityStarted;
23 | }
24 |
25 | /**
26 | * @param dateActivityStarted The dateActivityStarted
27 | */
28 | public void setDateActivityStarted(String dateActivityStarted) {
29 | this.dateActivityStarted = dateActivityStarted;
30 | }
31 |
32 | /**
33 | * @return The available
34 | */
35 | public List getAvailable() {
36 | return available;
37 | }
38 |
39 | /**
40 | * @param available The available
41 | */
42 | public void setAvailable(List available) {
43 | this.available = available;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/ActivityAdvisors.java:
--------------------------------------------------------------------------------
1 | //
2 | //package com.bungie.netplatform.destiny.representation.temp;
3 | //
4 | //import javax.annotation.Generated;
5 | //import com.google.gson.annotations.Expose;
6 | //import com.google.gson.annotations.SerializedName;
7 | //
8 | //@Generated("org.jsonschema2pojo")
9 | //public class ActivityAdvisors {
10 | //
11 | // @SerializedName("149381097")
12 | // @Expose
13 | // public com.bungie.netplatform.destiny.representation._149381097 _149381097;
14 | // @SerializedName("260765522")
15 | // @Expose
16 | // public com.bungie.netplatform.destiny.representation._260765522 _260765522;
17 | // @SerializedName("428290721")
18 | // @Expose
19 | // public com.bungie.netplatform.destiny.representation._428290721 _428290721;
20 | // @SerializedName("614791010")
21 | // @Expose
22 | // public com.bungie.netplatform.destiny.representation._614791010 _614791010;
23 | // @SerializedName("854130400")
24 | // @Expose
25 | // public com.bungie.netplatform.destiny.representation._854130400 _854130400;
26 | // @SerializedName("870614351")
27 | // @Expose
28 | // public com.bungie.netplatform.destiny.representation._870614351 _870614351;
29 | // @SerializedName("1293005540")
30 | // @Expose
31 | // public com.bungie.netplatform.destiny.representation._1293005540 _1293005540;
32 | // @SerializedName("1733556769")
33 | // @Expose
34 | // public com.bungie.netplatform.destiny.representation._1733556769 _1733556769;
35 | // @SerializedName("1836893116")
36 | // @Expose
37 | // public com.bungie.netplatform.destiny.representation._1836893116 _1836893116;
38 | // @SerializedName("2474598319")
39 | // @Expose
40 | // public com.bungie.netplatform.destiny.representation._2474598319 _2474598319;
41 | // @SerializedName("2659248071")
42 | // @Expose
43 | // public com.bungie.netplatform.destiny.representation._2659248071 _2659248071;
44 | // @SerializedName("3645919501")
45 | // @Expose
46 | // public com.bungie.netplatform.destiny.representation._3645919501 _3645919501;
47 | //
48 | //}
49 |
--------------------------------------------------------------------------------
/littlelight/src/main/java/com/bungie/netplatform/destiny/representation/Advisors.java:
--------------------------------------------------------------------------------
1 |
2 | package com.bungie.netplatform.destiny.representation;
3 |
4 | import com.google.gson.JsonObject;
5 | import com.google.gson.annotations.Expose;
6 | import com.google.gson.annotations.SerializedName;
7 |
8 | import java.util.ArrayList;
9 | import java.util.List;
10 |
11 | import javax.annotation.Generated;
12 |
13 | @Generated("org.jsonschema2pojo")
14 | public class Advisors {
15 |
16 | @SerializedName("nextWeeklyReset")
17 | @Expose
18 | public String nextWeeklyReset;
19 | @SerializedName("nextDailyReset")
20 | @Expose
21 | public String nextDailyReset;
22 | @SerializedName("previousWeeklyReset")
23 | @Expose
24 | public String previousWeeklyReset;
25 | @SerializedName("previousDailyReset")
26 | @Expose
27 | public String previousDailyReset;
28 | @SerializedName("activityAdvisors")
29 | @Expose
30 | public JsonObject activityAdvisors;
31 | // public ActivityAdvisors activityAdvisors;
32 | @SerializedName("itemQuantities")
33 | @Expose
34 | public ItemQuantities itemQuantities;
35 | @SerializedName("areOffersAvailable")
36 | @Expose
37 | public boolean areOffersAvailable;
38 | @SerializedName("events")
39 | @Expose
40 | public List events = new ArrayList();
41 | @SerializedName("bonuses")
42 | @Expose
43 | public List