Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BotDataInit {
- @Autowired
- private MentorService mentorService;
- @Autowired
- private PropertyService propertyService;
- private void initData() throws IOException {
- Mentor mentor1 = new Mentor();
- mentor1.setRealName("Stas");
- mentor1.setSlackId("U3U5H89NX");
- mentor1.setUserMail("sorokin.sta@gmail.com");
- mentor1.setPassword("test");
- mentor1.setSlackName("sorokin.sta");
- mentorService.addMentor(mentor1);
- Mentor mentor2 = new Mentor();
- mentor2.setRealName("German");
- mentor2.setSlackId("U2AEH909M");
- mentor2.setUserMail("test@mail.ru");
- mentor2.setPassword("test");
- mentor2.setSlackName("germansevostyanov");
- mentorService.addMentor(mentor2);
- Mentor mentor3 = new Mentor();
- mentor3.setRealName("Nikita");
- mentor3.setSlackId("U44UYHJ5A");
- mentor3.setUserMail("nikitaunmortal@gmail.com");
- mentor3.setPassword("test");
- mentor3.setSlackName("NikitaTitov");
- mentorService.addMentor(mentor3);
- Property property1 = new Property();
- property1.setPKey("client_secret");
- property1.setValue("{\"installed\":{\"client_id\":\"225174500263-8hmbr0q326qvkpftaqi4vbtfkbmbiprd.apps.googleusercontent.com\",\"project_id\":\"unified-parser-132811\",\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\",\"client_secret\":\"CMAypaIfmuQ7O-uct2f6cp2C\",\"redirect_uris\":[\"urn:ietf:wg:oauth:2.0:oob\",\"http://localhost\"]}}");
- propertyService.addProperty(property1);
- Property property2 = new Property();
- property2.setPKey("auth_token");
- property2.setValue("xoxb-163121471008-msVR3k38qH0aZZZWIzKiaQFe");
- propertyService.addProperty(property2);
- Property property3 = new Property();
- property3.setPKey("range.emails");
- property3.setValue("B:B");
- propertyService.addProperty(property3);
- Property property4 = new Property();
- property4.setPKey("range.prices");
- property4.setValue("E:E");
- propertyService.addProperty(property4);
- Property property5 = new Property();
- property5.setPKey("range.isLearning");
- property5.setValue("I:I");
- propertyService.addProperty(property5);
- Property property6 = new Property();
- property6.setPKey("spreadsheet_link");
- property6.setValue("https://docs.google.com/spreadsheets/d/1UPib4muF_et-U-CQeBLEV2NGnp37CiftO6WIC3xTHIQ/edit");
- propertyService.addProperty(property6);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement