This repository was archived by the owner on Jan 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Zignego
committed
Jun 9, 2017
1 parent
5f15ba6
commit dc21b46
Showing
5 changed files
with
822 additions
and
314 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
disabled_rules: | ||
- identifier_name | ||
- function_parameter_count | ||
line_length: 140 | ||
excluded: # paths to ignore during linting. Takes precedence over `included`. | ||
- Carthage | ||
- Pods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// | ||
// WebAPI.swift | ||
// | ||
// Copyright © 2017 Peter Zignego. All rights reserved. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
public enum Endpoint: String { | ||
case apiTest = "api.test" | ||
case authRevoke = "auth.revoke" | ||
case authTest = "auth.test" | ||
case channelsHistory = "channels.history" | ||
case channelsInfo = "channels.info" | ||
case channelsList = "channels.list" | ||
case channelsMark = "channels.mark" | ||
case channelsSetPurpose = "channels.setPurpose" | ||
case channelsSetTopic = "channels.setTopic" | ||
case chatDelete = "chat.delete" | ||
case chatPostMessage = "chat.postMessage" | ||
case chatMeMessage = "chat.meMessage" | ||
case chatUpdate = "chat.update" | ||
case dndInfo = "dnd.info" | ||
case dndTeamInfo = "dnd.teamInfo" | ||
case emojiList = "emoji.list" | ||
case filesCommentsAdd = "files.comments.add" | ||
case filesCommentsEdit = "files.comments.edit" | ||
case filesCommentsDelete = "files.comments.delete" | ||
case filesDelete = "files.delete" | ||
case filesInfo = "files.info" | ||
case filesUpload = "files.upload" | ||
case groupsClose = "groups.close" | ||
case groupsHistory = "groups.history" | ||
case groupsInfo = "groups.info" | ||
case groupsList = "groups.list" | ||
case groupsMark = "groups.mark" | ||
case groupsOpen = "groups.open" | ||
case groupsSetPurpose = "groups.setPurpose" | ||
case groupsSetTopic = "groups.setTopic" | ||
case imClose = "im.close" | ||
case imHistory = "im.history" | ||
case imList = "im.list" | ||
case imMark = "im.mark" | ||
case imOpen = "im.open" | ||
case mpimClose = "mpim.close" | ||
case mpimHistory = "mpim.history" | ||
case mpimList = "mpim.list" | ||
case mpimMark = "mpim.mark" | ||
case mpimOpen = "mpim.open" | ||
case oauthAccess = "oauth.access" | ||
case pinsAdd = "pins.add" | ||
case pinsRemove = "pins.remove" | ||
case reactionsAdd = "reactions.add" | ||
case reactionsGet = "reactions.get" | ||
case reactionsList = "reactions.list" | ||
case reactionsRemove = "reactions.remove" | ||
case rtmStart = "rtm.start" | ||
case starsAdd = "stars.add" | ||
case starsRemove = "stars.remove" | ||
case teamInfo = "team.info" | ||
case usersGetPresence = "users.getPresence" | ||
case usersInfo = "users.info" | ||
case usersList = "users.list" | ||
case usersSetActive = "users.setActive" | ||
case usersSetPresence = "users.setPresence" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.