Skip to content

Commit

Permalink
Adding simple types
Browse files Browse the repository at this point in the history
  • Loading branch information
andymac4182 committed Mar 24, 2017
1 parent a42fab7 commit defabe5
Show file tree
Hide file tree
Showing 12 changed files with 117 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SlackAPI/SlackAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -125,25 +125,36 @@
<Compile Include="WebSocketMessages\ChannelArchive.cs" />
<Compile Include="WebSocketMessages\ChannelCreated.cs" />
<Compile Include="WebSocketMessages\ChannelDeleted.cs" />
<Compile Include="WebSocketMessages\ChannelHistoryChanged.cs" />
<Compile Include="WebSocketMessages\ChannelMarked.cs" />
<Compile Include="WebSocketMessages\ChannelRename.cs" />
<Compile Include="WebSocketMessages\ChannelUnarchive.cs" />
<Compile Include="WebSocketMessages\DeletedMessage.cs" />
<Compile Include="WebSocketMessages\DndUpdatedUser.cs" />
<Compile Include="WebSocketMessages\EmailDomainChanged.cs" />
<Compile Include="WebSocketMessages\FileDeleted.cs" />
<Compile Include="WebSocketMessages\FileShareMessage.cs" />
<Compile Include="WebSocketMessages\GroupArchive.cs" />
<Compile Include="WebSocketMessages\GroupClose.cs" />
<Compile Include="WebSocketMessages\GroupHistoryChanged.cs" />
<Compile Include="WebSocketMessages\GroupJoined.cs" />
<Compile Include="WebSocketMessages\GroupLeft.cs" />
<Compile Include="WebSocketMessages\GroupOpen.cs" />
<Compile Include="WebSocketMessages\GroupRename.cs" />
<Compile Include="WebSocketMessages\GroupUnarchive.cs" />
<Compile Include="WebSocketMessages\Hello.cs" />
<Compile Include="WebSocketMessages\ImClosed.cs" />
<Compile Include="WebSocketMessages\ImHistoryChanged.cs" />
<Compile Include="WebSocketMessages\ImOpen.cs" />
<Compile Include="WebSocketMessages\MessageReceived.cs" />
<Compile Include="WebSocketMessages\NewMessage.cs" />
<Compile Include="WebSocketMessages\Ping.cs" />
<Compile Include="WebSocketMessages\Pong.cs" />
<Compile Include="WebSocketMessages\PresenceChange.cs" />
<Compile Include="WebSocketMessages\ReactionAdded.cs" />
<Compile Include="WebSocketMessages\SubteamSelfAdded.cs" />
<Compile Include="WebSocketMessages\SubteamSelfRemoved.cs" />
<Compile Include="WebSocketMessages\TeamDomainChange.cs" />
<Compile Include="WebSocketMessages\TeamJoin.cs" />
<Compile Include="WebSocketMessages\Typing.cs" />
<Compile Include="WebSocketMessages\UserChange.cs" />
Expand Down
10 changes: 10 additions & 0 deletions SlackAPI/WebSocketMessages/ChannelHistoryChanged.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("channel_history_changed")]
public class ChannelHistoryChanged
{
public string latest;
public string ts;
public string event_ts;
}
}
15 changes: 15 additions & 0 deletions SlackAPI/WebSocketMessages/DndUpdatedUser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("dnd_updated_user")]
public class DndUpdatedUser
{
public string user;
/*
dnd_status": {
"dnd_enabled": true,
"next_dnd_start_ts": 1450387800,
"next_dnd_end_ts": 1450423800
}
*/
}
}
9 changes: 9 additions & 0 deletions SlackAPI/WebSocketMessages/EmailDomainChanged.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("email_domain_changed")]
public class EmailDomainChanged
{
public string email_domain;
public string event_ts;
}
}
9 changes: 9 additions & 0 deletions SlackAPI/WebSocketMessages/FileDeleted.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("file_deleted")]
public class FileDeleted
{
public string file_id;
public string event_ts;
}
}
10 changes: 10 additions & 0 deletions SlackAPI/WebSocketMessages/GroupHistoryChanged.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("group_history_changed")]
public class GroupHistoryChanged
{
public string latest;
public string ts;
public string event_ts;
}
}
9 changes: 9 additions & 0 deletions SlackAPI/WebSocketMessages/ImClosed.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("im_close")]
public class ImClosed
{
public string user;
public string channel;
}
}
10 changes: 10 additions & 0 deletions SlackAPI/WebSocketMessages/ImHistoryChanged.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("im_history_changed")]
public class ImHistoryChanged
{
public string latest;
public string ts;
public string event_ts;
}
}
9 changes: 9 additions & 0 deletions SlackAPI/WebSocketMessages/ImOpen.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("im_open")]
public class ImOpen
{
public string user;
public string channel;
}
}
8 changes: 8 additions & 0 deletions SlackAPI/WebSocketMessages/SubteamSelfAdded.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("subteam_self_added")]
public class SubteamSelfAdded
{
public string subteam_id;
}
}
8 changes: 8 additions & 0 deletions SlackAPI/WebSocketMessages/SubteamSelfRemoved.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("subteam_self_removed")]
public class SubteamSelfRemoved
{
public string subteam_id;
}
}
9 changes: 9 additions & 0 deletions SlackAPI/WebSocketMessages/TeamDomainChange.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace SlackAPI.WebSocketMessages
{
[SlackSocketRouting("team_domain_change")]
public class TeamDomainChange
{
public string url;
public string domain;
}
}

0 comments on commit defabe5

Please sign in to comment.