Added notification types

This commit is contained in:
Eduard Urbach 2018-02-28 11:30:47 +01:00
parent fe400de851
commit b77229595e
3 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func testPackage(pkg string) {
Message: "Test failed",
Link: "https://" + pkg,
Icon: "https://notify.moe/images/brand/220.png",
Type: arn.NotificationTypePackageTest,
})
return
}

View File

@ -40,6 +40,7 @@ func Test(ctx *aero.Context) string {
Title: "Anime Notifier",
Message: "Yay, it works!",
Icon: "https://" + ctx.App.Config.Domain + "/images/brand/220.png",
Type: arn.NotificationTypeTest,
})
return "ok"

View File

@ -90,6 +90,7 @@ func Success(ctx *aero.Context) string {
Message: user.Nick + " paid " + payment.Amount + " " + payment.Currency + " making his new balance " + strconv.Itoa(user.Balance),
Icon: user.LargeAvatar(),
Link: "https://" + ctx.App.Config.Domain + "/api/paypalpayment/" + payment.ID,
Type: arn.NotificationTypePurchase,
})
}()