mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-27 15:41:43 +01:00
Removed empty lines from the source files
This commit is contained in:
@@ -92,13 +92,4 @@ object Auth {
|
||||
def props(source: MessageSource, dataService: DataService, unauthorizedHelpActorFactory: ByMessageSourceActorFactory,
|
||||
loginActorFactory: ByMessageSourceWithOriginatorActorFactory, chatActorFactory: ByUserIdActorFactory): Props =
|
||||
Props(new Auth(source, dataService, unauthorizedHelpActorFactory, loginActorFactory, chatActorFactory))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -117,19 +117,4 @@ object Bug {
|
||||
val ListSubmitted = "list"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -186,11 +186,4 @@ object Chat {
|
||||
|
||||
val MonitoringId: Regex = s"/reserve_(\\d+)_(\\d+)_(\\d+)".r
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -98,12 +98,12 @@ class DatePicker(val userId: UserId, val bot: Bot, val localization: Localizatio
|
||||
|
||||
private def modifyDate(date: ZonedDateTime, tag: String) = {
|
||||
val dateModifier = tag match {
|
||||
case Tags.DayUp => date.plusDays _
|
||||
case Tags.MonthUp => date.plusMonths _
|
||||
case Tags.YearUp => date.plusYears _
|
||||
case Tags.DayDown => date.minusDays _
|
||||
case Tags.MonthDown => date.minusMonths _
|
||||
case Tags.YearDown => date.minusYears _
|
||||
case Tags.DayInc => date.plusDays _
|
||||
case Tags.MonthInc => date.plusMonths _
|
||||
case Tags.YearInc => date.plusYears _
|
||||
case Tags.DayDec => date.minusDays _
|
||||
case Tags.MonthDec => date.minusMonths _
|
||||
case Tags.YearDec => date.minusYears _
|
||||
}
|
||||
dateModifier(1)
|
||||
}
|
||||
@@ -115,9 +115,9 @@ class DatePicker(val userId: UserId, val bot: Bot, val localization: Localizatio
|
||||
val year = date.getYear.toString
|
||||
|
||||
createInlineKeyboard(Seq(
|
||||
Seq(Button("⬆", Tags.DayUp), Button("⬆", Tags.MonthUp), Button("⬆", Tags.YearUp)),
|
||||
Seq(Button("⬆", Tags.DayInc), Button("⬆", Tags.MonthInc), Button("⬆", Tags.YearInc)),
|
||||
Seq(Button(s"$day ($dayOfWeek)"), Button(month), Button(year)),
|
||||
Seq(Button("⬇", Tags.DayDown), Button("⬇", Tags.MonthDown), Button("⬇", Tags.YearDown)),
|
||||
Seq(Button("⬇", Tags.DayDec), Button("⬇", Tags.MonthDec), Button("⬇", Tags.YearDec)),
|
||||
Seq(Button("Done", Tags.Done))
|
||||
))
|
||||
}
|
||||
@@ -140,16 +140,13 @@ object DatePicker {
|
||||
object DateToMode extends Mode
|
||||
|
||||
object Tags {
|
||||
val DayUp = "day_up"
|
||||
val MonthUp = "month_up"
|
||||
val YearUp = "year_up"
|
||||
val DayDown = "day_down"
|
||||
val MonthDown = "month_down"
|
||||
val YearDown = "year_down"
|
||||
val DayInc = "day_inc"
|
||||
val MonthInc = "month_inc"
|
||||
val YearInc = "year_inc"
|
||||
val DayDec = "day_dec"
|
||||
val MonthDec = "month_dec"
|
||||
val YearDec = "year_dec"
|
||||
val Done = "done"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -38,13 +38,4 @@ class Help(val userId: UserId, bot: Bot, val localization: Localization) extends
|
||||
|
||||
object Help {
|
||||
def props(userId: UserId, bot: Bot, localization: Localization): Props = Props(new Help(userId, bot, localization))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -81,17 +81,4 @@ object History {
|
||||
object AwaitPage extends FSMState
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -123,4 +123,4 @@ object Login {
|
||||
|
||||
case class LoggedIn(forwardCommand: ForwardCommand, userId: Long)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -99,15 +99,4 @@ object Monitorings {
|
||||
val No = "no"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -127,6 +127,4 @@ object Pager {
|
||||
val Next = "next"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -67,4 +67,4 @@ class Pagers(val userId: UserId, bot: Bot, val localization: Localization) exten
|
||||
|
||||
object Pagers {
|
||||
def apply(userId: UserId, bot: Bot, localization: Localization) = new Pagers(userId, bot, localization)
|
||||
}
|
||||
}
|
||||
@@ -82,4 +82,4 @@ object Router {
|
||||
|
||||
case class DestroyChat(source: MessageSource)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -81,23 +81,4 @@ object Settings {
|
||||
val Language = "language"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -125,9 +125,4 @@ object StaticData {
|
||||
|
||||
case class FoundOptions(option: Either[Throwable, List[IdName]])
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -37,14 +37,4 @@ class UnauthorizedHelp(source: MessageSource, bot: Bot) extends Actor {
|
||||
|
||||
object UnauthorizedHelp {
|
||||
def props(source: MessageSource, bot: Bot): Props = Props(new UnauthorizedHelp(source, bot))
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -103,17 +103,4 @@ object Visits {
|
||||
val No = "no"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -63,6 +63,4 @@ object Bug {
|
||||
bug.submitted = submitted
|
||||
bug
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -58,4 +58,4 @@ object CityHistory {
|
||||
city.time = time
|
||||
city
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -127,6 +127,4 @@ object Monitoring {
|
||||
monitoring.active = active
|
||||
monitoring
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -46,10 +46,4 @@ object Settings {
|
||||
settings.lang = lang
|
||||
settings
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -51,6 +51,4 @@ object Source {
|
||||
source.userId = userId
|
||||
source
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user