skype.SkypeUserFactoryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of skype2gmail Show documentation
Show all versions of skype2gmail Show documentation
Send skype chat history to a gmail account
The newest version!
package skype;
import com.google.inject.Inject;
public class SkypeUserFactoryImpl implements SkypeUserFactory {
private SkypeApi skypeApi;
@Inject
public SkypeUserFactoryImpl(SkypeApi skypeApi) {
this.skypeApi = skypeApi;
}
@Override
public SkypeUser produce(String userId, String displayName) {
boolean isCurrentUser = skypeApi.getCurrentUser().getUserId().equals(userId);
return new SkypeUserImpl(userId, displayName, isCurrentUser);
}
}