├── rtmpconnect.sd ├── .gitignore ├── domain └── src │ ├── main │ └── java │ │ └── net │ │ └── boreeas │ │ └── riotapi │ │ ├── constants │ │ ├── LevelUpType.java │ │ ├── Lane.java │ │ ├── BuildingType.java │ │ ├── BotDifficulty.java │ │ ├── Role.java │ │ ├── AscendedType.java │ │ ├── OdinPoint.java │ │ ├── MonsterType.java │ │ ├── TowerType.java │ │ ├── WardType.java │ │ ├── LeagueTier.java │ │ └── Season.java │ │ ├── com │ │ └── riotgames │ │ │ ├── platform │ │ │ ├── game │ │ │ │ ├── GameMutator.java │ │ │ │ ├── GameNotFoundException.java │ │ │ │ ├── Participant.java │ │ │ │ ├── ChampionBanInfo.java │ │ │ │ ├── StartChampSelect.java │ │ │ │ ├── FeaturedGameInfo.java │ │ │ │ ├── PlayerChampionSelection.java │ │ │ │ └── BannedChampion.java │ │ │ ├── gameinvite │ │ │ │ └── contract │ │ │ │ │ ├── InviteType.java │ │ │ │ │ ├── InvitationState.java │ │ │ │ │ ├── InviteeState.java │ │ │ │ │ ├── Player.java │ │ │ │ │ ├── Member.java │ │ │ │ │ ├── Invitee.java │ │ │ │ │ ├── LobbyMetaData.java │ │ │ │ │ └── Inviter.java │ │ │ ├── statistics │ │ │ │ ├── RawStat.java │ │ │ │ ├── TimeTrackedStat.java │ │ │ │ ├── AggregatedStat.java │ │ │ │ ├── SummaryAggStats.java │ │ │ │ ├── AggregatedStatsKey.java │ │ │ │ ├── ChampionStatInfo.java │ │ │ │ ├── LeaverPenaltyStats.java │ │ │ │ ├── PlayerStatSummaries.java │ │ │ │ ├── PlayerStats.java │ │ │ │ ├── FellowPlayerInfo.java │ │ │ │ ├── AggregatedStats.java │ │ │ │ └── RecentGames.java │ │ │ ├── catalog │ │ │ │ ├── runes │ │ │ │ │ └── RuneType.java │ │ │ │ ├── icon │ │ │ │ │ └── Icon.java │ │ │ │ ├── ItemEffect.java │ │ │ │ └── Effect.java │ │ │ ├── summoner │ │ │ │ ├── SummonerSkillLevel.java │ │ │ │ ├── spellbook │ │ │ │ │ └── RuneSlot.java │ │ │ │ ├── SummonerLevelAndPoints.java │ │ │ │ ├── SummonerDefaultSpells.java │ │ │ │ ├── runes │ │ │ │ │ └── SummonerRune.java │ │ │ │ └── boost │ │ │ │ │ └── SummonerActiveBoostDto.java │ │ │ ├── harassment │ │ │ │ └── LcdsResponseString.java │ │ │ ├── reroll │ │ │ │ └── pojo │ │ │ │ │ ├── RollResult.java │ │ │ │ │ ├── PointSummary.java │ │ │ │ │ └── AramPlayerParticipant.java │ │ │ ├── login │ │ │ │ ├── InvalidSessionException.java │ │ │ │ ├── Session.java │ │ │ │ └── LoginFailedException.java │ │ │ ├── matchmaking │ │ │ │ ├── QueueInfo.java │ │ │ │ ├── QueueDodger.java │ │ │ │ └── MatchingThrottleConfig.java │ │ │ ├── messaging │ │ │ │ └── StoreAccountBalanceNotification.java │ │ │ ├── admin │ │ │ │ └── AdminException.java │ │ │ ├── account │ │ │ │ ├── management │ │ │ │ │ ├── InvalidCredentialsException.java │ │ │ │ │ └── AccountInformation.java │ │ │ │ ├── AccountException.java │ │ │ │ └── impl │ │ │ │ │ └── AccountStateChangeNotification.java │ │ │ ├── trade │ │ │ │ └── api │ │ │ │ │ └── contract │ │ │ │ │ └── PotentialTraders.java │ │ │ ├── ValidationException.java │ │ │ └── leagues │ │ │ │ └── client │ │ │ │ └── dto │ │ │ │ ├── SummonerLeagues.java │ │ │ │ └── SummonerLeagueItems.java │ │ │ ├── leagues │ │ │ └── pojo │ │ │ │ ├── InactivityStatus.java │ │ │ │ └── MiniSeries.java │ │ │ ├── kudos │ │ │ └── dto │ │ │ │ └── PendingKudos.java │ │ │ └── team │ │ │ ├── dto │ │ │ ├── Roster.java │ │ │ ├── TeamMemberInfo.java │ │ │ └── Player.java │ │ │ ├── TeamId.java │ │ │ ├── TeamInfo.java │ │ │ └── stats │ │ │ └── TeamStatSummary.java │ │ ├── rtmp │ │ └── serialization │ │ │ ├── ObjectEncoding.java │ │ │ ├── amf3 │ │ │ ├── DynamicObject.java │ │ │ ├── Dynamic.java │ │ │ └── Amf3NumberSerializer.java │ │ │ ├── SerializationException.java │ │ │ ├── RangeException.java │ │ │ ├── AmfSerializer.java │ │ │ ├── NoSerialization.java │ │ │ ├── JsonSerialization.java │ │ │ ├── SerializedName.java │ │ │ ├── FieldRef.java │ │ │ ├── amf0 │ │ │ └── Amf0NumberSerializer.java │ │ │ └── AmfType.java │ │ └── ShardNotFoundExeption.java │ └── test │ └── resources │ └── log4j.properties ├── rest └── src │ ├── main │ └── java │ │ └── net │ │ └── boreeas │ │ └── riotapi │ │ └── rest │ │ ├── Rune.java │ │ ├── BlockItem.java │ │ ├── api │ │ ├── Versionable.java │ │ ├── LoLRestApi.java │ │ └── FeaturedGamesHandler.java │ │ ├── Translation.java │ │ ├── ItemGroup.java │ │ ├── MasteryTreeItem.java │ │ ├── Skin.java │ │ ├── PlayerChampionStats.java │ │ ├── ItemMetaData.java │ │ ├── MessageOfDay.java │ │ ├── ParticipantIdentity.java │ │ ├── MatchSummary.java │ │ ├── Image.java │ │ ├── ChampionInfo.java │ │ ├── PurchaseData.java │ │ ├── ItemTree.java │ │ ├── ShardStatus.java │ │ ├── ChampionPassive.java │ │ ├── MasteryTreeList.java │ │ ├── Summoner.java │ │ ├── ParticipantPlayer.java │ │ ├── MatchTimeline.java │ │ ├── ParticipantTimelineData.java │ │ ├── LevelTip.java │ │ ├── FeaturedGames.java │ │ ├── SummonerSpell.java │ │ ├── RankedStats.java │ │ ├── RecommendedItemBlock.java │ │ ├── RuneList.java │ │ ├── MasteryPage.java │ │ ├── Service.java │ │ ├── Incident.java │ │ ├── MasteryList.java │ │ ├── MatchDetail.java │ │ ├── SpellVars.java │ │ ├── MasteryTree.java │ │ ├── Frame.java │ │ ├── ParticipantFrame.java │ │ ├── Message.java │ │ ├── RecommendedItems.java │ │ ├── PlayerStats.java │ │ ├── SummonerSpellList.java │ │ ├── BasicChampData.java │ │ ├── Player.java │ │ ├── ItemList.java │ │ ├── Mastery.java │ │ ├── ChampionList.java │ │ ├── ShardData.java │ │ ├── MapData.java │ │ └── Participant.java │ └── test │ └── resources │ └── log4j.properties ├── rtmp └── src │ ├── main │ └── java │ │ └── net │ │ └── boreeas │ │ └── riotapi │ │ └── rtmp │ │ ├── services │ │ └── package-info.java │ │ ├── AsyncMessageFilter.java │ │ ├── messages │ │ ├── control │ │ │ ├── InvokeAmf0.java │ │ │ ├── NotificationAmf0.java │ │ │ ├── NotificationAmf3.java │ │ │ └── InvokeAmf3.java │ │ ├── AcknowledgeMessage.java │ │ ├── RemotingMessage.java │ │ ├── ErrorMessage.java │ │ └── AsyncMessage.java │ │ ├── RtmpException.java │ │ ├── ChunkHeaderType.java │ │ ├── RtmpVersionMismatchException.java │ │ ├── AsyncMessageEvent.java │ │ └── RtmpHeader.java │ └── test │ └── resources │ └── log4j.properties ├── loginqueue └── src │ ├── main │ └── java │ │ └── net │ │ └── boreeas │ │ └── riotapi │ │ └── loginqueue │ │ ├── Ticker.java │ │ ├── AuthResult.java │ │ ├── oldlq │ │ └── IngameCredentials.java │ │ └── newlq │ │ └── IngameCredentials.java │ └── test │ └── resources │ └── log4j.properties ├── spectator └── src │ ├── main │ └── java │ │ └── net │ │ └── boreeas │ │ └── riotapi │ │ └── spectator │ │ ├── Chunk.java │ │ ├── KeyFrame.java │ │ ├── Callback.java │ │ ├── ChunkOrKeyFrameHeader.java │ │ └── rest │ │ ├── FeaturedGameList.java │ │ ├── AvailableChunkInfo.java │ │ └── AvailableKeyFrameInfo.java │ └── test │ └── resources │ └── log4j.properties └── xmpp └── src └── main └── java └── net └── boreeas └── xmpp └── GameStatus.java /rtmpconnect.sd: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/* 2 | *iml 3 | *rofl 4 | *testconfig* 5 | logs/ 6 | out/ 7 | *.class 8 | settings.xml 9 | *.dmp 10 | target -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/LevelUpType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum LevelUpType { 23 | NORMAL, 24 | EVOLVE, 25 | } 26 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Rune.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public class Rune { 23 | private long id; 24 | private long ranks; 25 | } 26 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/GameMutator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | /** 20 | * Created on 8/2/2014. 21 | */ 22 | public class GameMutator { 23 | } 24 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/Lane.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum Lane { 23 | TOP_LANE, 24 | MIDDLE_LANE, 25 | BOT_LANE, 26 | } 27 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/ObjectEncoding.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | /** 20 | * Created on 5/7/2014. 21 | */ 22 | public enum ObjectEncoding { 23 | AMF0, 24 | AMF3 25 | } 26 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/BuildingType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum BuildingType { 23 | INHIBITOR_BUILDING, 24 | TOWER_BUILDING 25 | } 26 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/BotDifficulty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum BotDifficulty { 23 | NONE, 24 | INTRO, 25 | EASY, 26 | HARD 27 | } 28 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/Role.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum Role { 23 | DUO, 24 | NONO, 25 | SOLO, 26 | DUO_CARRY, 27 | DUO_SUPPORT 28 | } 29 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | /** 18 | * Wrappers around the RTMP RPC calls. 19 | */ 20 | @ParametersAreNonnullByDefault 21 | package net.boreeas.riotapi.rtmp.services; 22 | 23 | import javax.annotation.ParametersAreNonnullByDefault; -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/leagues/pojo/InactivityStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.leagues.pojo; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum InactivityStatus { 23 | OK, 24 | UNKNOWN_STATUS 25 | } 26 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/InviteType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum InviteType { 23 | DEFAULT 24 | } 25 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/AscendedType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum AscendedType { 23 | CHAMPION_ASCENDED, 24 | CLEAR_ASCENDED, 25 | MINION_ASCENDED 26 | } 27 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/BlockItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class BlockItem { 26 | private int count; 27 | private int id; 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/OdinPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum OdinPoint { 23 | POINT_A, 24 | POINT_B, 25 | POINT_C, 26 | POINT_D, 27 | POINT_E 28 | } 29 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/api/Versionable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest.api; 18 | 19 | import net.boreeas.riotapi.Version; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | public interface Versionable { 25 | public Version getVersion(); 26 | } 27 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/AsyncMessageFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | /** 20 | * Created on 8/8/2014. 21 | */ 22 | public @FunctionalInterface interface AsyncMessageFilter { 23 | public boolean accept(String channel, Object data); 24 | } 25 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Translation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public class Translation { 23 | private String content; 24 | private String locale; 25 | private String updated_at; 26 | } 27 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/MonsterType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum MonsterType { 23 | BARON_NASHOR, 24 | DRAGON, 25 | VILEMAW, 26 | BLUE_GOLEM, 27 | RED_LIZARD, 28 | } 29 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ItemGroup.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class ItemGroup { 26 | private String MaxGroupOwnable; 27 | private String key; 28 | } 29 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MasteryTreeItem.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class MasteryTreeItem { 26 | private int id; 27 | private String prereq; 28 | } 29 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Skin.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class Skin { 26 | private int id; 27 | private String name; 28 | private int num; 29 | } 30 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/InvitationState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum InvitationState { 23 | ACTIVE, 24 | REVOKED 25 | } 26 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/api/LoLRestApi.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest.api; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public interface LoLRestApi { 23 | FeaturedGamesHandler getFeaturedGamesHandler(); 24 | CurrentGameHandler getCurrentGameHandler(); 25 | } 26 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/ShardNotFoundExeption.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public class ShardNotFoundExeption extends RuntimeException { 23 | public ShardNotFoundExeption(String msg) { 24 | super(msg); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/amf3/DynamicObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization.amf3; 18 | 19 | import java.util.Map; 20 | 21 | /** 22 | * Created on 5/6/2014. 23 | */ 24 | public interface DynamicObject { 25 | public Map getFields(); 26 | } 27 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/PlayerChampionStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class PlayerChampionStats { 26 | private int id; 27 | private AggregatedStats stats; 28 | } 29 | -------------------------------------------------------------------------------- /loginqueue/src/main/java/net/boreeas/riotapi/loginqueue/Ticker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.loginqueue; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created by malte on 7/12/2014. 23 | */ 24 | @Getter 25 | public class Ticker { 26 | private int node; 27 | private int id; 28 | private int current; 29 | } 30 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ItemMetaData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class ItemMetaData { 26 | private boolean isRune; 27 | private String tier; 28 | private String type; 29 | } 30 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MessageOfDay.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class MessageOfDay { 26 | private long createDate; 27 | private String message; 28 | private int version; 29 | } 30 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ParticipantIdentity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | @Getter 25 | public class ParticipantIdentity { 26 | private int participantId; 27 | private ParticipantPlayer player; 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/TowerType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum TowerType { 23 | BASE_TURRET, 24 | FOUNTAIN_TURRET, 25 | NEXUS_TURRET, 26 | INNER_TURRET, 27 | OUTER_TURRET, 28 | UNDEFINED_TURRET 29 | } 30 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MatchSummary.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * This class is no longer needed, but for compatibility reasons can't be removed 23 | * @author Malte Schütze 24 | */ 25 | @Getter 26 | public class MatchSummary extends Match { 27 | } 28 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/WardType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum WardType { 23 | SIGHT_WARD, 24 | VISION_WARD, 25 | TEEMO_MUSHROOM, 26 | UNDEFINED, 27 | YELLOW_TRINKET_WARD, 28 | YELLOW_TRINKET_UPGRADE 29 | } 30 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Image.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class Image { 26 | private String full; 27 | private String group; 28 | private String sprite; 29 | private int h, w, x, y; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/SerializationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | /** 20 | * Created on 8/5/2014. 21 | */ 22 | public class SerializationException extends RuntimeException { 23 | public SerializationException(String msg) { 24 | super(msg); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/Chunk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 8/10/2014. 23 | */ 24 | public class Chunk { 25 | @Getter private byte[] buffer; 26 | 27 | public Chunk(byte[] data) { 28 | this.buffer = data; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/InviteeState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public enum InviteeState { 23 | CREATOR, 24 | PENDING, 25 | ACCEPTED, 26 | DECLINED, 27 | QUIT 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/RangeException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | /** 20 | * Created on 5/26/2014. 21 | */ 22 | public class RangeException extends RuntimeException { 23 | public RangeException(Integer val) { 24 | super("Value out of range: " + val); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ChampionInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class ChampionInfo { 26 | private int attack; 27 | private int defense; 28 | private int difficulty; 29 | private int magic; 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/PurchaseData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class PurchaseData { 26 | private int base; 27 | private boolean purchasable; 28 | private int sell; 29 | private int total; 30 | } 31 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/KeyFrame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 8/10/2014. 23 | */ 24 | public class KeyFrame { 25 | @Getter private byte[] buffer; 26 | 27 | public KeyFrame(byte[] buffer) { 28 | this.buffer = buffer; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/control/InvokeAmf0.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages.control; 18 | 19 | import net.boreeas.riotapi.rtmp.MessageType; 20 | 21 | /** 22 | * Created on 5/18/2014. 23 | */ 24 | public class InvokeAmf0 extends Invoke { 25 | public InvokeAmf0() { 26 | super(MessageType.INVOKE_AMF0); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/AmfSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import java.io.DataOutputStream; 20 | import java.io.IOException; 21 | 22 | /** 23 | * Created on 5/2/2014. 24 | */ 25 | public interface AmfSerializer { 26 | public void serialize(T t, DataOutputStream out) throws IOException; 27 | } 28 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ItemTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class ItemTree { 29 | private String header; 30 | private List tags = new ArrayList<>(); 31 | } 32 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ShardStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Getter 28 | public class ShardStatus extends ShardData { 29 | private List services = new ArrayList<>(); 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ChampionPassive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class ChampionPassive { 26 | private String description; 27 | private Image image; 28 | private String name; 29 | private String sanitizedDescription; 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MasteryTreeList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class MasteryTreeList { 29 | private List masteryTreeItems = new ArrayList<>(); 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Summoner.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class Summoner { 26 | private long id; 27 | private String name; 28 | private int profileIconId; 29 | private long revisionDate; 30 | private long summonerLevel; 31 | } 32 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | /** 20 | * Created by malte on 7/15/2014. 21 | */ 22 | public class RtmpException extends RuntimeException { 23 | public RtmpException(Exception ex) { 24 | super(ex); 25 | } 26 | 27 | public RtmpException(String s) { 28 | super(s); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ParticipantPlayer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | @Getter 25 | public class ParticipantPlayer { 26 | private String matchHistoryUri; 27 | private int profileIconId; 28 | private String summonerName; 29 | private long summonerId; 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MatchTimeline.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.List; 22 | import java.util.ArrayList; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Getter 28 | public class MatchTimeline { 29 | private long frameInterval; 30 | private List frames = new ArrayList<>(); 31 | } 32 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/control/NotificationAmf0.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages.control; 18 | 19 | import net.boreeas.riotapi.rtmp.MessageType; 20 | 21 | /** 22 | * Created on 5/18/2014. 23 | */ 24 | public class NotificationAmf0 extends Notification { 25 | public NotificationAmf0() { 26 | super(MessageType.DATA_AMF0); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/control/NotificationAmf3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages.control; 18 | 19 | import net.boreeas.riotapi.rtmp.MessageType; 20 | 21 | /** 22 | * Created on 5/18/2014. 23 | */ 24 | public class NotificationAmf3 extends Notification { 25 | public NotificationAmf3() { 26 | super(MessageType.DATA_AMF3); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ParticipantTimelineData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | @Getter 25 | public class ParticipantTimelineData { 26 | private double zeroToTen; 27 | private double tenToTwenty; 28 | private double twentyToThiry; 29 | private double thirtyToEnd; 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/LevelTip.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class LevelTip { 29 | private List effect = new ArrayList<>(); 30 | private List label = new ArrayList<>(); 31 | } 32 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/FeaturedGames.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Data; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Data 28 | public class FeaturedGames { 29 | private long clientRefreshInterval; 30 | private List gameList = new ArrayList<>(); 31 | } 32 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/Callback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator; 18 | 19 | /** 20 | * @author Malte Schütze 21 | */ 22 | public @FunctionalInterface interface Callback { 23 | void receive(); 24 | 25 | default Callback and(Callback callback) { 26 | if (callback == null) return this; 27 | 28 | return () -> {receive(); callback.receive();}; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/SummonerSpell.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class SummonerSpell extends Spell { 29 | private int id; 30 | private List modes = new ArrayList<>(); 31 | private int summonerLevel; 32 | } 33 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/ChunkHeaderType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | /** 20 | * Created on 5/18/2014. 21 | */ 22 | public enum ChunkHeaderType { 23 | FULL(11), 24 | NO_MSG_STREAM_ID(7), 25 | TIMESTAMP_ONLY(3), 26 | NO_HEADER(0); 27 | 28 | public final int length; 29 | 30 | private ChunkHeaderType(int length) { 31 | this.length = length; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/ChunkOrKeyFrameHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator; 18 | 19 | import lombok.Data; 20 | 21 | /** 22 | * Created on 4/29/2014. 23 | */ 24 | @Data 25 | public class ChunkOrKeyFrameHeader { 26 | private final int id; 27 | private final int type; 28 | private final long length; 29 | private final int nextId; 30 | private final int offset; 31 | } 32 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/RankedStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class RankedStats { 29 | private List champions = new ArrayList<>(); 30 | private long modifyDate; 31 | private long summonerId; 32 | } 33 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/RecommendedItemBlock.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class RecommendedItemBlock { 29 | private List items = new ArrayList<>(); 30 | private boolean recMath; 31 | private String type; 32 | } 33 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/RuneList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.HashMap; 22 | import java.util.Map; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class RuneList { 29 | private Item basic; 30 | private Map data = new HashMap<>(); 31 | private String type; 32 | private String version; 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MasteryPage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 7/18/2014. 26 | */ 27 | @Getter 28 | public class MasteryPage { 29 | private boolean current; 30 | private long id; 31 | private List masteries = new ArrayList<>(); 32 | private String name; 33 | } -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Service.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Data; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Data 28 | public class Service { 29 | private List incidents = new ArrayList<>(); 30 | private String name; 31 | private String slug; 32 | private String status; 33 | } 34 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/rest/FeaturedGameList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/28/2014. 26 | */ 27 | @Getter 28 | public class FeaturedGameList { 29 | private List gameList = new ArrayList<>(); 30 | private int clientRefreshInterval; 31 | } 32 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/LeagueTier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * Created on 4/14/2014. 21 | */ 22 | public enum LeagueTier { 23 | CHALLENGER, 24 | MASTER, 25 | DIAMOND, 26 | PLATINUM, 27 | GOLD, 28 | SILVER, 29 | BRONZE, 30 | UNRANKED; 31 | 32 | public static LeagueTier getByName(String name) { 33 | return valueOf(name); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Incident.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Data; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Data 28 | public class Incident { 29 | private boolean incident; 30 | private String created_at; 31 | private long id; 32 | private List messages = new ArrayList<>(); 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MasteryList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.HashMap; 22 | import java.util.Map; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class MasteryList { 29 | private Map data = new HashMap<>(); 30 | private MasteryTree tree; 31 | private String type; 32 | private String version; 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MatchDetail.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * A match history entry. 26 | * @author Malte Schütze 27 | */ 28 | @Getter 29 | public class MatchDetail extends Match { 30 | private List teams = new ArrayList<>(); 31 | private MatchTimeline timeline; 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/constants/Season.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.constants; 18 | 19 | /** 20 | * Created on 4/14/2014. 21 | */ 22 | public enum Season { 23 | PRESEASON3(3), 24 | SEASON3(3), 25 | PRESEASON2014(4), 26 | SEASON2014(4), 27 | PREASEASON2015(5), 28 | SEASON2015(5); 29 | 30 | public final int numeric; 31 | 32 | private Season(int numeric) { 33 | this.numeric = numeric; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/SpellVars.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class SpellVars { 29 | private List coeff = new ArrayList<>(); 30 | private String dyn; 31 | private String key; 32 | private String link; 33 | private String ranksWith; 34 | } 35 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpVersionMismatchException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | import java.net.ProtocolException; 20 | 21 | /** 22 | * Created on 5/24/2014. 23 | */ 24 | public class RtmpVersionMismatchException extends RtmpException { 25 | public RtmpVersionMismatchException(int serverVersion, int rtmpVersion) { 26 | super("Got server version " + serverVersion + " but expected " + rtmpVersion); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/amf3/Dynamic.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization.amf3; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Created on 5/26/2014. 26 | */ 27 | @Target(ElementType.FIELD) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | public @interface Dynamic { 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/RawStat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/20/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.statistics.RawStat") 27 | public class RawStat { 28 | private String statType; 29 | private double value; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/NoSerialization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Created on 5/26/2014. 26 | */ 27 | @Target(ElementType.FIELD) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | public @interface NoSerialization { 30 | } 31 | -------------------------------------------------------------------------------- /loginqueue/src/main/java/net/boreeas/riotapi/loginqueue/AuthResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.loginqueue; 18 | 19 | import java.util.List; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | public interface AuthResult { 25 | List getTickers(); 26 | 27 | int getPosition(); 28 | 29 | String getToken(); 30 | 31 | Status getStatus(); 32 | 33 | int getDelay(); 34 | 35 | int getNode(); 36 | 37 | public enum Status { OK, QUEUE } 38 | } 39 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/catalog/runes/RuneType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.catalog.runes; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/20/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.catalog.runes.RuneType") 27 | public class RuneType { 28 | private int runeTypeId; 29 | private String name; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/JsonSerialization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Created on 8/6/2014. 26 | */ 27 | @Target(ElementType.FIELD) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | public @interface JsonSerialization { 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/SummonerSkillLevel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 20 | 21 | /** 22 | * Created on 8/5/2014. 23 | */ 24 | @Serialization(name = "com.riotgames.platform.summoner.SummonerSkillLevel", deserializeOnly = true) 25 | public enum SummonerSkillLevel { 26 | BEGINNER, 27 | RTS_PLAYER, 28 | VETERAN, 29 | EXPERT 30 | } 31 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MasteryTree.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class MasteryTree { 29 | private List Defense = new ArrayList<>(); 30 | private List Offense = new ArrayList<>(); 31 | private List Utility = new ArrayList<>(); 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/harassment/LcdsResponseString.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.harassment; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.harassment.LcdsResponseString") 27 | public class LcdsResponseString { 28 | // TODO inspect 29 | private String value; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/reroll/pojo/RollResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.reroll.pojo; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.reroll.pojo.RollResult") 27 | public class RollResult { 28 | private int championId; 29 | private PointSummary pointSummary; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/Player.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.gameinvite.contract.Player") 27 | public class Player { 28 | private String summonerName; 29 | private long summonerId; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/SerializedName.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Created on 5/26/2014. 26 | */ 27 | @Target(ElementType.FIELD) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | public @interface SerializedName { 30 | public String name(); 31 | } 32 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Frame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.HashMap; 23 | import java.util.List; 24 | import java.util.Map; 25 | 26 | /** 27 | * @author Malte Schütze 28 | */ 29 | @Getter 30 | public class Frame { 31 | private List events = new ArrayList<>(); 32 | private Map participantFrames = new HashMap<>(); 33 | private long timestamp; 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/login/InvalidSessionException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.login; 18 | 19 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 8/2/2014. 24 | */ 25 | @Serialization(name = "com.riotgames.platform.login.InvalidSessionException") 26 | public class InvalidSessionException extends PlatformException { 27 | } 28 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/matchmaking/QueueInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.matchmaking; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.matchmaking.QueueInfo") 27 | public class QueueInfo { 28 | private long waitTime; 29 | private long queueId; 30 | private int queueLength; 31 | } 32 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/messaging/StoreAccountBalanceNotification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.messaging; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 8/7/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.messaging.StoreAccountBalanceNotification") 27 | public class StoreAccountBalanceNotification { 28 | private int ip; 29 | private int rp; 30 | } 31 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/kudos/dto/PendingKudos.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.kudos.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.kudos.dto.PendingKudosDTO") 30 | public class PendingKudos { 31 | private List pendingCounts = new ArrayList<>(); 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/TimeTrackedStat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created on 7/19/2014. 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.platform.statistics.TimeTrackedStat") 29 | public class TimeTrackedStat { 30 | private Date timestamp; 31 | private String type; 32 | } 33 | -------------------------------------------------------------------------------- /loginqueue/src/main/java/net/boreeas/riotapi/loginqueue/oldlq/IngameCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.loginqueue.oldlq; 18 | 19 | import lombok.Getter; 20 | import lombok.ToString; 21 | 22 | /** 23 | * Created by malte on 7/12/2014. 24 | */ 25 | @Getter 26 | @ToString 27 | public class IngameCredentials { 28 | private boolean inGame; 29 | private Long summonerId; 30 | private String serverIp; 31 | private Long serverPort; 32 | private String encryptionKey; 33 | private String handshakeToken; 34 | } 35 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ParticipantFrame.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.awt.*; 22 | 23 | /** 24 | * @author Malte Schütze 25 | */ 26 | @Getter 27 | public class ParticipantFrame { 28 | private int currentGold; 29 | private int jungleMinionsKilled; 30 | private int level; 31 | private int minionsKilled; 32 | private int participantId; 33 | private Point position; 34 | private int totalGold; 35 | private int xp; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/GameNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 12/7/14. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.GameNotFoundException") 28 | public class GameNotFoundException extends PlatformException { 29 | } 30 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/catalog/icon/Icon.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.catalog.icon; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created on 7/20/2014. 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.platform.catalog.icon.Icon") 29 | public class Icon { 30 | private Date purchaseDate; 31 | private long iconId; 32 | private long summonerId; 33 | } 34 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/dto/Roster.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 4/14/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.team.dto.RosterDTO") 30 | public class Roster { 31 | private List memberList = new ArrayList<>(); 32 | private long ownerId; 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Message.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Data; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Data 28 | public class Message { 29 | private String author; 30 | private String content; 31 | private String created_at; 32 | private long id; 33 | private String severity; 34 | private List translations = new ArrayList<>(); 35 | private String updated_at; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/Member.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * @author Malte Schütze 24 | */ 25 | @Data 26 | @Serialization(name="com.riotgames.platform.gameinvite.contract.Member") 27 | public class Member { 28 | private String summonerName; 29 | private long summonerId; 30 | private boolean hasDelegatedInvitePower; 31 | } 32 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/AggregatedStat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.statistics.AggregatedStat") 27 | public class AggregatedStat { 28 | private String statType; 29 | private long count; 30 | private long value; 31 | private long championId; 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/TeamId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/20/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.team.TeamId") 30 | public class TeamId { 31 | // TODO inspect 32 | private List broadcastMessages = new ArrayList<>(); 33 | private String fullId; 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/Participant.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 20 | 21 | /** 22 | * Created on 7/19/2014. 23 | */ 24 | @Serialization(name = "com.riotgames.platform.game.IParticipant") 25 | public interface Participant { 26 | 27 | int getPickTurn(); 28 | int getBadges(); 29 | GameParticipant.PickMode getPickMode(); 30 | String getSummonerInternalName(); 31 | String getSummonerName(); 32 | } 33 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/RecommendedItems.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | public class RecommendedItems { 29 | private List blocks = new ArrayList<>(); 30 | private String champion; 31 | private String map; 32 | private String mode; 33 | private boolean priority; 34 | private String title; 35 | private String type; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/catalog/ItemEffect.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.catalog; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/20/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.catalog.ItemEffect") 27 | public class ItemEffect { 28 | private int effectId; 29 | private int itemEffectId; 30 | private Effect effect; 31 | private String value; 32 | private int itemId; 33 | } 34 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/ChampionBanInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @ToString 28 | @Serialization(name = "com.riotgames.platform.game.ChampionBanInfoDTO") 29 | public class ChampionBanInfo { 30 | private boolean enemyOwned; 31 | private boolean owned; 32 | private int championId; 33 | } 34 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/AcknowledgeMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 20 | 21 | /** 22 | * Created on 6/10/2014. 23 | */ 24 | @Serialization(name = "flex.messaging.messages.AcknowledgeMessage", noncanonicalNames = {"DSK"}) 25 | public class AcknowledgeMessage extends AsyncMessage { 26 | 27 | public AcknowledgeMessage(long timeDelta) { 28 | setTimestamp((int) timeDelta); 29 | } 30 | 31 | public AcknowledgeMessage() {} 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/spellbook/RuneSlot.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner.spellbook; 18 | 19 | import lombok.EqualsAndHashCode; 20 | import lombok.Data; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created by malte on 7/18/2014. 25 | */ 26 | @Data 27 | @EqualsAndHashCode 28 | @Serialization(name = "com.riotgames.platform.summoner.spellbook.SlotEntry") 29 | public class RuneSlot { 30 | private int runeId; 31 | private int runeSlotId; 32 | } 33 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/PlayerStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | /** 22 | * Created on 4/14/2014. 23 | */ 24 | @Getter 25 | public class PlayerStats { 26 | private AggregatedStats aggregatedStats; 27 | private int losses; 28 | private long modifyDate; 29 | private String playerStatSummaryType; 30 | private int wins; 31 | 32 | public PlayerStatSummaryType getPlayerStatSummaryType() { 33 | return PlayerStatSummaryType.getByName(playerStatSummaryType); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/SummonerSpellList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.Collection; 22 | import java.util.HashMap; 23 | import java.util.Map; 24 | 25 | /** 26 | * Created on 4/14/2014. 27 | */ 28 | @Getter 29 | public class SummonerSpellList { 30 | private Map data = new HashMap<>(); 31 | private String type; 32 | private String version; 33 | 34 | public Collection getSpells() { 35 | return data.values(); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/BasicChampData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Getter; 21 | import lombok.NoArgsConstructor; 22 | 23 | /** 24 | * Created on 4/12/2014. 25 | */ 26 | @Getter 27 | @NoArgsConstructor 28 | @AllArgsConstructor 29 | public class BasicChampData { 30 | private boolean active; 31 | private boolean botEnabledCustom; 32 | private boolean botEnabledQueue; 33 | private boolean freeToPlay; 34 | private long id; 35 | private boolean rankedEnabled; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/admin/AdminException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.admin; 18 | 19 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 8/2/2014. 24 | */ 25 | @Serialization(name = "com.riotgames.platform.admin.AdminException", 26 | noncanonicalNames = {"com.riotgames.platform.admin.InvitationNotFoundException"}) 27 | public class AdminException extends PlatformException { 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/login/Session.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.login; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.account.AccountSummary; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.login.Session") 28 | public class Session { 29 | private String token; 30 | private String password; 31 | private AccountSummary accountSummary; 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/FieldRef.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import lombok.Getter; 20 | import lombok.RequiredArgsConstructor; 21 | 22 | /** 23 | * Created on 5/26/2014. 24 | */ 25 | @Getter 26 | @RequiredArgsConstructor 27 | public class FieldRef { 28 | private final String name; 29 | private final String serializedName; 30 | private final Class location; 31 | 32 | public String toString() { 33 | return "Field " + name + "/" + serializedName + " of " + location; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/AsyncMessageEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | import lombok.Getter; 20 | import lombok.ToString; 21 | 22 | /** 23 | * Created on 6/11/2014. 24 | */ 25 | @Getter 26 | @ToString 27 | public class AsyncMessageEvent { 28 | private String clientId; 29 | private String subtopic; 30 | private Object body; 31 | 32 | public AsyncMessageEvent(String clientId, String subtopic, Object body) { 33 | this.clientId = clientId; 34 | this.subtopic = subtopic; 35 | this.body = body; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/account/management/InvalidCredentialsException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.account.management; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 20 | 21 | /** 22 | * Created by malte on 7/11/2014. 23 | */ 24 | @Serialization(name = "com.riotgames.platform.account.management.InvalidCredentialsException") 25 | public class InvalidCredentialsException extends AccountManagementException { 26 | public InvalidCredentialsException(String s) { 27 | super(s); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /loginqueue/src/main/java/net/boreeas/riotapi/loginqueue/newlq/IngameCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.loginqueue.newlq; 18 | 19 | import lombok.Getter; 20 | import lombok.ToString; 21 | 22 | /** 23 | * Created by malte on 7/12/2014. 24 | */ 25 | @Getter 26 | @ToString 27 | public class IngameCredentials { 28 | private String other; 29 | private String fingerprint; 30 | private String signature; 31 | private long timestamp; 32 | private String uuid; 33 | private String resources; 34 | private long account_id; 35 | private String account_name; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/account/AccountException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.account; 18 | 19 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 8/2/2014. 24 | */ 25 | @Serialization(name = "com.riotgames.platform.account.AccountException", 26 | noncanonicalNames = "com.riotgames.platform.account.AccountSaveFailedException") 27 | public class AccountException extends PlatformException { 28 | } 29 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/TeamInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/20/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.team.TeamInfo") 27 | public class TeamInfo { 28 | private long secondsUntilEligibleForDeletion; 29 | private String memberStatusString; 30 | private String tag; 31 | private String name; 32 | private String memberStatus; 33 | private TeamId teamId; 34 | } 35 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Player.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Getter; 21 | import lombok.NoArgsConstructor; 22 | import net.boreeas.riotapi.constants.PlayerSide; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Getter 28 | @NoArgsConstructor 29 | @AllArgsConstructor 30 | public class Player { 31 | private int championId; 32 | private long summonerId; 33 | private int teamId; 34 | 35 | public PlayerSide getTeam() { 36 | return PlayerSide.getById(teamId); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpHeader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Data; 21 | import lombok.NoArgsConstructor; 22 | 23 | /** 24 | * Created on 4/23/2014. 25 | */ 26 | @Data 27 | @NoArgsConstructor 28 | @AllArgsConstructor 29 | public class RtmpHeader { 30 | 31 | private MessageType messageType; 32 | private int packetLength; 33 | private int fmt; 34 | private int streamId; 35 | private int msgStreamId; 36 | private int timestamp; 37 | private boolean isTimestampRelative; 38 | } 39 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/StartChampSelect.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 7/19/2014. 28 | */ 29 | @Data 30 | @ToString 31 | @Serialization(name = "com.riotgames.platform.game.StartChampSelectDTO") 32 | public class StartChampSelect { 33 | private List invalidPlayers = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/Invitee.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.gameinvite.contract.Invitee") 27 | public class Invitee { 28 | private String inviteeStateAsString; 29 | private InviteeState inviteeState; 30 | private String summonerName; 31 | private long summonerId; 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/trade/api/contract/PotentialTraders.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.trade.api.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.trade.api.contract.PotentialTradersDTO") 30 | public class PotentialTraders { 31 | private List potentialTraders = new ArrayList<>(); 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/dto/TeamMemberInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.team.dto.TeamMemberInfoDTO") 29 | public class TeamMemberInfo { 30 | private Date inviteDate; 31 | private Date joinDate; 32 | private long playerId; 33 | private String status; 34 | private String playerName; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/LobbyMetaData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.game.GameMode; 21 | import net.boreeas.riotapi.com.riotgames.platform.game.GameType; 22 | 23 | /** 24 | * @author Malte Schütze 25 | */ 26 | @Data 27 | public class LobbyMetaData { 28 | private long gameId; 29 | private int mapId; 30 | private int gameTypeConfigId; 31 | private GameMode gameMode; 32 | private GameType gameType; 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ItemList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.HashMap; 23 | import java.util.Map; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 4/14/2014. 28 | */ 29 | @Getter 30 | public class ItemList { 31 | private Item basic; 32 | private Map data = new HashMap<>(); 33 | private List groups = new ArrayList<>(); 34 | private List tree = new ArrayList<>(); 35 | private String type; 36 | private String version; 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/login/LoginFailedException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.login; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.Date; 24 | 25 | /** 26 | * Created on 7/21/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.login.LoginFailedException") 30 | public class LoginFailedException extends PlatformException { 31 | private Date bannedUntilDate; 32 | } 33 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/matchmaking/QueueDodger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.matchmaking; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.summoner.Summoner; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.matchmaking.QueueDodger") 28 | public class QueueDodger { 29 | private String reasonFailed; 30 | private Summoner summoner; 31 | private int penaltyRemainingTime; 32 | } 33 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/api/FeaturedGamesHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest.api; 18 | 19 | import net.boreeas.riotapi.rest.FeaturedGames; 20 | 21 | /** 22 | * @author Malte Schütze 23 | */ 24 | public interface FeaturedGamesHandler extends Versionable { 25 | /** 26 | * Retrieve a list of featured games as well as information how often the listing changes. 27 | * @return Featured game information 28 | * @see The official API documentation 29 | */ 30 | FeaturedGames getFeaturedGames(); 31 | } 32 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/FeaturedGameInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * @author Malte Schütze 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.game.FeaturedGameInfo") 30 | public class FeaturedGameInfo { 31 | private List championVoteInfoList = new ArrayList<>(); 32 | private int dataVersion; 33 | private Object futureData; 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/SummaryAggStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.statistics.SummaryAggStats") 30 | public class SummaryAggStats { 31 | // TODO inspect 32 | private Object statsJson; 33 | private List stats = new ArrayList<>(); 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/SummonerLevelAndPoints.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @ToString 28 | @Serialization(name = "com.riotgames.platform.summoner.SummonerLevelAndPoints") 29 | public class SummonerLevelAndPoints { 30 | private long infPoints; 31 | private long expPoints; 32 | private long summonerLevel; 33 | private long summonerId; 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/amf3/Amf3NumberSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization.amf3; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.AmfSerializer; 20 | 21 | import java.io.DataOutputStream; 22 | import java.io.IOException; 23 | 24 | /** 25 | * Created on 5/3/2014. 26 | */ 27 | public enum Amf3NumberSerializer implements AmfSerializer { 28 | INSTANCE; 29 | 30 | @Override 31 | public void serialize(Number d, DataOutputStream out) throws IOException { 32 | 33 | new DataOutputStream(out).writeDouble(d.doubleValue()); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/amf0/Amf0NumberSerializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization.amf0; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.AmfSerializer; 20 | 21 | import java.io.DataOutputStream; 22 | import java.io.IOException; 23 | 24 | /** 25 | * Created on 5/10/2014. 26 | */ 27 | public enum Amf0NumberSerializer implements AmfSerializer { 28 | INSTANCE; 29 | 30 | @Override 31 | public void serialize(Number number, DataOutputStream out) throws IOException { 32 | new DataOutputStream(out).writeDouble(number.doubleValue()); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/RemotingMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Getter; 21 | import lombok.NoArgsConstructor; 22 | import lombok.Setter; 23 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 24 | 25 | /** 26 | * Created on 6/2/2014. 27 | */ 28 | @Getter 29 | @Setter 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | @Serialization(name = "flex.messaging.messages.RemotingMessage") 33 | public class RemotingMessage extends FlexMessage { 34 | private String source; 35 | private String operation; 36 | } 37 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Mastery.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.EqualsAndHashCode; 20 | import lombok.Getter; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 4/14/2014. 27 | */ 28 | @Getter 29 | @EqualsAndHashCode(of = {"id"}) 30 | public class Mastery { 31 | private List description = new ArrayList<>(); 32 | private long id; 33 | private long ranks; 34 | private Image image; 35 | private String name; 36 | private String prereq; 37 | private List sanitizedDescription = new ArrayList<>(); 38 | } 39 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/control/InvokeAmf3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages.control; 18 | 19 | import net.boreeas.riotapi.rtmp.MessageType; 20 | import net.boreeas.riotapi.rtmp.serialization.AmfWriter; 21 | 22 | import java.io.IOException; 23 | 24 | /** 25 | * Created on 5/18/2014. 26 | */ 27 | public class InvokeAmf3 extends Invoke { 28 | public InvokeAmf3() { 29 | super(MessageType.INVOKE_AMF3); 30 | } 31 | 32 | @Override 33 | public void writeBody(AmfWriter writer) throws IOException { 34 | writer.write(0); 35 | super.writeBody(writer); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /xmpp/src/main/java/net/boreeas/xmpp/GameStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.xmpp; 18 | 19 | public enum GameStatus { 20 | OUT_OF_GAME("outOfGame"), 21 | IN_QUEUE("inQueue"), 22 | SPECTATING("spectating"), 23 | CHAMPION_SELECT("championSelect"), 24 | IN_GAME("inGame"), 25 | HOSTING_PRACTICE_GAME("hostingPracticeGame"); 26 | 27 | public final String status; 28 | 29 | private GameStatus(String status) { 30 | this.status = status; 31 | } 32 | 33 | public GameStatus resolve(String status) { 34 | for (GameStatus t : values()) { 35 | if (t.status.equals(status)) { 36 | return t; 37 | } 38 | } 39 | return null; 40 | } 41 | } -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/AggregatedStatsKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.game.GameMode; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.statistics.AggregatedStatsKey") 28 | public class AggregatedStatsKey { 29 | private GameMode gameMode; 30 | private long userId; 31 | private String gameModeString; 32 | private int season; 33 | } 34 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ChampionList.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.Collection; 22 | import java.util.HashMap; 23 | import java.util.Map; 24 | 25 | /** 26 | * Created on 4/14/2014. 27 | */ 28 | @Getter 29 | public class ChampionList { 30 | private Map data = new HashMap<>(); 31 | private String format; 32 | private Map keys = new HashMap<>(); 33 | private String type; 34 | private String version; 35 | 36 | public Collection getChampions() { 37 | return data.values(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/rest/AvailableChunkInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator.rest; 18 | 19 | import lombok.Getter; 20 | import lombok.SneakyThrows; 21 | import net.boreeas.riotapi.spectator.SpectatorApiHandler; 22 | 23 | import java.util.Date; 24 | 25 | /** 26 | * Created on 4/28/2014. 27 | */ 28 | @Getter 29 | public class AvailableChunkInfo { 30 | 31 | private int id; 32 | private long duration; 33 | private String receivedTime; 34 | 35 | @SneakyThrows 36 | public Date getReceivedTimeAsDate() { 37 | return SpectatorApiHandler.DATE_FMT.parse(receivedTime); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /spectator/src/main/java/net/boreeas/riotapi/spectator/rest/AvailableKeyFrameInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.spectator.rest; 18 | 19 | import lombok.Getter; 20 | import lombok.SneakyThrows; 21 | import net.boreeas.riotapi.spectator.SpectatorApiHandler; 22 | 23 | import java.util.Date; 24 | 25 | /** 26 | * Created on 4/28/2014. 27 | */ 28 | @Getter 29 | public class AvailableKeyFrameInfo { 30 | private int id; 31 | private String receivedTime; 32 | private int nextChunkId; 33 | 34 | @SneakyThrows 35 | public Date getReceivedTimeAsDate() { 36 | return SpectatorApiHandler.DATE_FMT.parse(receivedTime); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/ValidationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.messaging.PlatformException; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 8/2/2014. 28 | */ 29 | @Data 30 | @Serialization(name = "com.riotgames.platform.ValidationException") 31 | public class ValidationException extends PlatformException { 32 | private List invalidFields = new ArrayList<>(); 33 | } 34 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/reroll/pojo/PointSummary.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.reroll.pojo; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @ToString 28 | @Serialization(name = "com.riotgames.platform.reroll.pojo.PointSummary") 29 | public class PointSummary { 30 | private long pointsToNextRoll; 31 | private long maxRolls; 32 | private int numberOfRolls; 33 | private long pointsCostToRoll; 34 | private long currentPoints; 35 | } 36 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/ErrorMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages; 18 | 19 | import lombok.*; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 6/11/2014. 24 | */ 25 | @Getter 26 | @Setter 27 | @ToString 28 | @NoArgsConstructor 29 | @AllArgsConstructor 30 | @Serialization(name = "flex.messaging.messages.ErrorMessage") 31 | public class ErrorMessage extends AcknowledgeMessage { 32 | private String faultCode; 33 | private String faultString; 34 | private String faultDetail; 35 | private Object rootCause; 36 | private Object extendedData; 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/catalog/Effect.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.catalog; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.catalog.runes.RuneType; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/20/2014. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.catalog.Effect") 28 | public class Effect { 29 | private int effectId; 30 | private String gameCode; 31 | private String name; 32 | // TODO inspect 33 | private Object categoryId; 34 | private RuneType runeType; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/PlayerChampionSelection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @ToString 28 | @Serialization(name = "com.riotgames.platform.game.PlayerChampionSelectionDTO") 29 | public class PlayerChampionSelection { 30 | private String summonerInternalName; 31 | private long spell1Id; 32 | private long spell2Id; 33 | private int selectedSkinIndex; 34 | private int championId; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/leagues/client/dto/SummonerLeagues.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.leagues.client.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.leagues.pojo.LeagueList; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 7/19/2014. 28 | */ 29 | @Data 30 | @Serialization(name = "com.riotgames.platform.leagues.client.dto.SummonerLeaguesDTO") 31 | public class SummonerLeagues { 32 | private List summonerLeagues = new ArrayList<>(); 33 | } 34 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/ChampionStatInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.statistics.ChampionStatInfo") 30 | public class ChampionStatInfo { 31 | private int totalGamesPlayed; 32 | private long accountId; 33 | private long championId; 34 | private List stats = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/LeaverPenaltyStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created on 7/19/2014. 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.platform.statistics.LeaverPenaltyStats") 29 | public class LeaverPenaltyStats { 30 | // TODO inspect 31 | private Object lastLevelIncrease; 32 | private int level; 33 | private Date lastDecay; 34 | private boolean userInformed; 35 | private int points; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/SummonerDefaultSpells.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @ToString 28 | @Serialization(name = "com.riotgames.platform.summoner.SummonerDefaultSpells") 29 | public class SummonerDefaultSpells { 30 | // TODO inspect 31 | private Object summonerDefaultSpellsJson; 32 | // TODO inspect 33 | private Object summonerDefaultSpellMap; 34 | private long summonerId; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/leagues/client/dto/SummonerLeagueItems.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.leagues.client.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.leagues.pojo.LeagueItem; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 7/19/2014. 28 | */ 29 | @Data 30 | @Serialization(name = "com.riotgames.platform.leagues.client.dto.SummonerLeagueItemsDTO") 31 | public class SummonerLeagueItems { 32 | private List summonerLeagues = new ArrayList<>(); 33 | } 34 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/PlayerStatSummaries.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.statistics.PlayerStatSummaries") 30 | public class PlayerStatSummaries { 31 | // TODO inspect 32 | private List playerStatSummarySet = new ArrayList<>(); 33 | private long userId; 34 | private int season; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/PlayerStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.statistics.PlayerStats") 30 | public class PlayerStats { 31 | private List timeTrackedStats = new ArrayList<>(); 32 | private int promoGamesPlayed; 33 | // TODO inspect 34 | private Object promoGamesPlayedLastUpdated; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/stats/TeamStatSummary.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team.stats; 18 | 19 | import lombok.Getter; 20 | import net.boreeas.riotapi.com.riotgames.team.TeamId; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 4/14/2014. 28 | */ 29 | @Getter 30 | @Serialization(name="com.riotgames.team.stats.TeamStatSummary") 31 | public class TeamStatSummary { 32 | private TeamId teamId; 33 | private String teamIdString; 34 | private List teamStatDetails = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | log4j.rootLogger=DEBUG,file,stdout 18 | 19 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 20 | log4j.appender.stdout.ImmediateFlush=true 21 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.stdout.layout.ConversionPattern=%6p [%30t] %m%n 23 | 24 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 25 | log4j.appender.file.File=logs/lolclient 26 | log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log' 27 | log4j.appender.file.ImmediateFlush=true 28 | log4j.appender.file.Append=true 29 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 30 | log4j.appender.file.layout.ConversionPattern=%d [%5p:%-8t] %m%n -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/ShardData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Getter 28 | public class ShardData { 29 | /** 30 | * Corresponds to Shard.prodUrl 31 | */ 32 | private String hostname; 33 | /** 34 | * Clear name for the shard 35 | */ 36 | private String name; 37 | /** 38 | * Locales supported by this region 39 | */ 40 | private List locales = new ArrayList<>(); 41 | 42 | private String regionTag; 43 | private String slug; 44 | } 45 | -------------------------------------------------------------------------------- /rest/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | log4j.rootLogger=DEBUG,file,stdout 18 | 19 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 20 | log4j.appender.stdout.ImmediateFlush=true 21 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.stdout.layout.ConversionPattern=%6p [%30t] %m%n 23 | 24 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 25 | log4j.appender.file.File=logs/lolclient 26 | log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log' 27 | log4j.appender.file.ImmediateFlush=true 28 | log4j.appender.file.Append=true 29 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 30 | log4j.appender.file.layout.ConversionPattern=%d [%5p:%-8t] %m%n -------------------------------------------------------------------------------- /rtmp/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | log4j.rootLogger=DEBUG,file,stdout 18 | 19 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 20 | log4j.appender.stdout.ImmediateFlush=true 21 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.stdout.layout.ConversionPattern=%6p [%30t] %m%n 23 | 24 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 25 | log4j.appender.file.File=logs/lolclient 26 | log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log' 27 | log4j.appender.file.ImmediateFlush=true 28 | log4j.appender.file.Append=true 29 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 30 | log4j.appender.file.layout.ConversionPattern=%d [%5p:%-8t] %m%n -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/gameinvite/contract/Inviter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.gameinvite.contract; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.constants.LeagueTier; 21 | import net.boreeas.riotapi.rtmp.serialization.JsonSerialization; 22 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.platform.gameinvite.contract.Inviter") 29 | public class Inviter { 30 | private String summonerName; 31 | private long summonerId; 32 | private LeagueTier previousSeasonHighestTier; 33 | } 34 | -------------------------------------------------------------------------------- /loginqueue/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | log4j.rootLogger=DEBUG,file,stdout 18 | 19 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 20 | log4j.appender.stdout.ImmediateFlush=true 21 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.stdout.layout.ConversionPattern=%6p [%30t] %m%n 23 | 24 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 25 | log4j.appender.file.File=logs/lolclient 26 | log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log' 27 | log4j.appender.file.ImmediateFlush=true 28 | log4j.appender.file.Append=true 29 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 30 | log4j.appender.file.layout.ConversionPattern=%d [%5p:%-8t] %m%n -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/leagues/pojo/MiniSeries.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.leagues.pojo; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Data; 21 | import lombok.NoArgsConstructor; 22 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 23 | 24 | /** 25 | * Created on 4/14/2014. 26 | */ 27 | @Data 28 | @NoArgsConstructor 29 | @AllArgsConstructor 30 | @Serialization(name = "com.riotgames.leagues.pojo.MiniSeriesDTO") 31 | public class MiniSeries { 32 | private int wins; 33 | private int losses; 34 | private String progress; 35 | private int target; 36 | private long timeLeftToPlayMillis; 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/account/management/AccountInformation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.account.management; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 8/2/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.account.management.AccountInformation") 27 | public class AccountInformation { 28 | private String lastName; 29 | private String city; 30 | private String address1; 31 | private String address2; 32 | private String state; 33 | private String zip; 34 | private String country; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/matchmaking/MatchingThrottleConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.matchmaking; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.matchmaking.MatchingThrottleConfig") 30 | public class MatchingThrottleConfig { 31 | private long limit; 32 | // TODO inspect 33 | private List matchingThrottleProperties = new ArrayList<>(); 34 | private String cacheName; 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/reroll/pojo/AramPlayerParticipant.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.reroll.pojo; 18 | 19 | import lombok.Getter; 20 | import lombok.Setter; 21 | import lombok.ToString; 22 | import net.boreeas.riotapi.com.riotgames.platform.game.PlayerParticipant; 23 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 24 | 25 | /** 26 | * @author Malte Schütze 27 | */ 28 | @Getter 29 | @Setter 30 | @ToString 31 | @Serialization(name = "com.riotgames.platform.reroll.pojo.AramPlayerParticipant") 32 | public class AramPlayerParticipant extends PlayerParticipant { 33 | private PointSummary pointSummary; 34 | } 35 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/FellowPlayerInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.constants.PlayerSide; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | /** 24 | * Created on 7/19/2014. 25 | */ 26 | @Data 27 | @Serialization(name = "com.riotgames.platform.statistics.FellowPlayerInfo") 28 | public class FellowPlayerInfo { 29 | private long championId; 30 | private int teamId; 31 | private long summonerId; 32 | 33 | public PlayerSide getTeam() { 34 | return PlayerSide.getById(teamId); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/account/impl/AccountStateChangeNotification.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.account.impl; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.Date; 23 | 24 | /** 25 | * Created on 8/2/2014. 26 | */ 27 | @Data 28 | @Serialization(name = "com.riotgames.platform.account.impl.AccountStateChangeEventImpl") 29 | public class AccountStateChangeNotification { 30 | private Date eventDate; 31 | private long accountId; 32 | private AccountState oldState; 33 | private String context; 34 | private AccountState newState; 35 | } 36 | -------------------------------------------------------------------------------- /rtmp/src/main/java/net/boreeas/riotapi/rtmp/messages/AsyncMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.messages; 18 | 19 | import lombok.AllArgsConstructor; 20 | import lombok.Getter; 21 | import lombok.NoArgsConstructor; 22 | import lombok.Setter; 23 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 24 | 25 | /** 26 | * Created on 6/10/2014. 27 | */ 28 | @Getter 29 | @Setter 30 | @NoArgsConstructor 31 | @AllArgsConstructor 32 | @Serialization(name = "flex.messaging.messages.AsyncMessage", noncanonicalNames = {"DSA"}) 33 | public class AsyncMessage extends FlexMessage { 34 | public static final String SUBTOPIC = "DSSubtopic"; 35 | 36 | private String correlationId; 37 | } 38 | -------------------------------------------------------------------------------- /spectator/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 | log4j.rootLogger=DEBUG,file,stdout 18 | 19 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 20 | log4j.appender.stdout.ImmediateFlush=true 21 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 22 | log4j.appender.stdout.layout.ConversionPattern=%6p [%30t] [%d{HH:mm:ss}] %m%n 23 | 24 | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender 25 | log4j.appender.file.File=logs/lolclient 26 | log4j.appender.file.DatePattern='.'yyyy-MM-dd'.log' 27 | log4j.appender.file.ImmediateFlush=true 28 | log4j.appender.file.Append=true 29 | log4j.appender.file.layout=org.apache.log4j.PatternLayout 30 | log4j.appender.file.layout.ConversionPattern=%d [%5p:%-8t] %m%n -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/game/BannedChampion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.game; 18 | 19 | import lombok.Data; 20 | import lombok.ToString; 21 | import net.boreeas.riotapi.constants.PlayerSide; 22 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 23 | 24 | /** 25 | * Created on 4/28/2014. 26 | */ 27 | @Data 28 | @ToString 29 | @Serialization(name = "com.riotgames.platform.game.BannedChampion") 30 | public class BannedChampion { 31 | private int championId; 32 | private int teamId; 33 | private int pickTurn; 34 | 35 | public PlayerSide getTeam() { 36 | return PlayerSide.getById(teamId); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/team/dto/Player.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.team.dto; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.team.TeamInfo; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.ArrayList; 24 | 25 | /** 26 | * @author Malte Schütze 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.team.dto.PlayerDTO") 30 | public class Player { 31 | private long playerId; 32 | private ArrayList teamsSummary = new ArrayList<>(); 33 | private ArrayList createdTeams = new ArrayList<>(); 34 | private ArrayList playerTeams = new ArrayList<>(); 35 | } 36 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/runes/SummonerRune.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner.runes; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.com.riotgames.platform.catalog.runes.Rune; 21 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 22 | 23 | import java.util.Date; 24 | 25 | /** 26 | * Created on 7/20/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform..SummonerRune") 30 | public class SummonerRune { 31 | private Date purchased; 32 | private Date purchaseDate; 33 | private int runeId; 34 | private int quantity; 35 | private Rune rune; 36 | private long summonerId; 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/AggregatedStats.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.Date; 24 | import java.util.List; 25 | 26 | /** 27 | * Created on 7/19/2014. 28 | */ 29 | @Data 30 | @Serialization(name = "com.riotgames.platform.statistics.AggregatedStats") 31 | public class AggregatedStats { 32 | private List lifetimeStatistics = new ArrayList<>(); 33 | private Date modifyDate; 34 | private AggregatedStatsKey key; 35 | private String aggregatedStatsJson; 36 | } 37 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/statistics/RecentGames.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.statistics; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | import java.util.ArrayList; 23 | import java.util.List; 24 | 25 | /** 26 | * Created on 7/19/2014. 27 | */ 28 | @Data 29 | @Serialization(name = "com.riotgames.platform.statistics.RecentGames") 30 | public class RecentGames { 31 | // TODO inspect 32 | private Object recentGamesJson; 33 | // TODO inspect 34 | private Object playerGameStatsMap; 35 | private List gameStatistics = new ArrayList<>(); 36 | private long userId; 37 | } 38 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/rtmp/serialization/AmfType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rtmp.serialization; 18 | 19 | import net.boreeas.riotapi.rtmp.serialization.amf0.Amf0Type; 20 | import net.boreeas.riotapi.rtmp.serialization.amf3.Amf3Type; 21 | 22 | import java.lang.annotation.ElementType; 23 | import java.lang.annotation.Retention; 24 | import java.lang.annotation.RetentionPolicy; 25 | import java.lang.annotation.Target; 26 | 27 | /** 28 | * Created on 5/7/2014. 29 | */ 30 | @Target(ElementType.TYPE) 31 | @Retention(RetentionPolicy.RUNTIME) 32 | public @interface AmfType { 33 | public Amf0Type amf0Type() default Amf0Type.UNDEFINED; 34 | public Amf3Type amf3Type() default Amf3Type.UNDEFINED; 35 | } 36 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/MapData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Data; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * Basic map information 26 | * @author Malte Schütze 27 | */ 28 | @Data 29 | public class MapData { 30 | /** 31 | * The id of the map 32 | */ 33 | private int mapId; 34 | /** 35 | * The items which can't get bought on this map 36 | */ 37 | private List unpurchasableItemList = new ArrayList<>(); 38 | /** 39 | * Image data for the map 40 | */ 41 | private Image image; 42 | /** 43 | * The name of the map 44 | */ 45 | private String mapName; 46 | } 47 | -------------------------------------------------------------------------------- /rest/src/main/java/net/boreeas/riotapi/rest/Participant.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.rest; 18 | 19 | import lombok.Getter; 20 | 21 | import java.util.ArrayList; 22 | import java.util.List; 23 | 24 | /** 25 | * @author Malte Schütze 26 | */ 27 | @Getter 28 | public class Participant { 29 | private int championId; 30 | private int participantId; 31 | private int spell1Id; 32 | private int spell2Id; 33 | private ParticipantStats stats; 34 | private int teamId; 35 | private ParticipantTimeline timeline; 36 | 37 | private List runes = new ArrayList<>(); 38 | 39 | /** 40 | * Only contains id and rank 41 | */ 42 | private List masteries = new ArrayList<>(); 43 | } 44 | -------------------------------------------------------------------------------- /domain/src/main/java/net/boreeas/riotapi/com/riotgames/platform/summoner/boost/SummonerActiveBoostDto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 The LolDevs team (https://github.com/loldevs) 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 net.boreeas.riotapi.com.riotgames.platform.summoner.boost; 18 | 19 | import lombok.Data; 20 | import net.boreeas.riotapi.rtmp.serialization.Serialization; 21 | 22 | /** 23 | * Created on 7/19/2014. 24 | */ 25 | @Data 26 | @Serialization(name = "com.riotgames.platform.summoner.boost.SummonerActiveBoostsDTO") 27 | public class SummonerActiveBoostDto { 28 | private long xpBoostEndDate; 29 | private int xpBoostPerWinCount; 30 | private int xpLoyaltyBoost; 31 | private long ipBoostEndDate; 32 | private int ipBoostPerWinCount; 33 | private int ipLoyaltyBoost; 34 | private long summonerId; 35 | } 36 | --------------------------------------------------------------------------------