-
Notifications
You must be signed in to change notification settings - Fork 193
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
Showing
8 changed files
with
165 additions
and
4 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
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
127 changes: 127 additions & 0 deletions
127
sources/src/main/java/com/ullink/slack/simpleslackapi/impl/SlackIntegrationUser.java
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,127 @@ | ||
package com.ullink.slack.simpleslackapi.impl; | ||
|
||
import com.ullink.slack.simpleslackapi.SlackIntegration; | ||
import com.ullink.slack.simpleslackapi.SlackUser; | ||
|
||
class SlackIntegrationUser implements SlackIntegration, SlackUser | ||
{ | ||
private SlackIntegration integration; | ||
|
||
SlackIntegrationUser(SlackIntegration integration) { | ||
this.integration = integration; | ||
} | ||
|
||
@Override | ||
public String getId() | ||
{ | ||
return integration.getId(); | ||
} | ||
|
||
@Override | ||
public String getUserName() | ||
{ | ||
return integration.getName(); | ||
} | ||
|
||
@Override | ||
public String getRealName() | ||
{ | ||
return integration.getName(); | ||
} | ||
|
||
@Override | ||
public String getUserMail() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getUserSkype() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getUserPhone() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getUserTitle() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return integration.getName(); | ||
} | ||
|
||
@Override | ||
public boolean isDeleted() | ||
{ | ||
return integration.isDeleted(); | ||
} | ||
|
||
@Override | ||
public boolean isAdmin() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isOwner() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isPrimaryOwner() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isRestricted() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isUltraRestricted() | ||
{ | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean isBot() | ||
{ | ||
return true; | ||
} | ||
|
||
@Override | ||
public String getTimeZone() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public String getTimeZoneLabel() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public Integer getTimeZoneOffset() | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public SlackPresence getPresence() | ||
{ | ||
return SlackPresence.UNKNOWN; | ||
} | ||
} |
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
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
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