
com.github.jobs.templates.services.CustomService Maven / Gradle / Ivy
package com.github.jobs.templates.services;
import android.content.Context;
import com.github.jobs.R;
import com.github.jobs.bean.TemplateService;
import com.github.jobs.templates.ServiceContract;
import com.github.jobs.templates.ServiceGenerator;
/**
* @author cristian
* @version 1.0
*/
public class CustomService implements ServiceContract {
@Override
public int getId() {
return R.id.service_custom;
}
@Override
public int getServiceLabel() {
return R.string.custom_service;
}
@Override
public int getDrawable() {
return R.drawable.logo_custom;
}
@Override
public int getHint() {
return R.string.your_custom_username;
}
@Override
public int getAddServiceLabel() {
return R.string.add_custom_info;
}
@Override
public String getType() {
return "custom";
}
@Override
public ServiceGenerator getGenerator(Context context) {
return new ServiceGenerator(context) {
@Override
protected String getLabel() {
return getType();
}
@Override
public String generate(TemplateService templateService) {
return getString(R.string.cover_letter_footer, templateService.getType(), templateService.getData());
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy