Skip to content

Commit

Permalink
removed all reminents of the ios notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Feb 7, 2024
1 parent b5d009e commit b2413e0
Show file tree
Hide file tree
Showing 35 changed files with 156 additions and 2,112 deletions.
58 changes: 0 additions & 58 deletions server/backend/campus_api/campus_api.go

This file was deleted.

35 changes: 10 additions & 25 deletions server/backend/cron/cronjobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cron
import (
"time"

"github.com/TUM-Dev/Campus-Backend/server/backend/ios_notifications/apns"
"github.com/TUM-Dev/Campus-Backend/server/env"

"github.com/TUM-Dev/Campus-Backend/server/model"
Expand All @@ -14,9 +13,8 @@ import (
)

type CronService struct {
db *gorm.DB
gf *gofeed.Parser
APNs *apns.Service
db *gorm.DB
gf *gofeed.Parser
}

// StorageDir is the directory where files are stored
Expand All @@ -25,25 +23,21 @@ var StorageDir = "/Storage/" // target location of files

// names for cron jobs as specified in database
const (
NewsType = "news"
FileDownloadType = "fileDownload"
DishNameDownload = "dishNameDownload"
CanteenHeadcount = "canteenHeadCount"
IOSNotifications = "iosNotifications"
IOSActivityReset = "iosActivityReset"
NewExamResultsHook = "newExamResultsHook"
MovieType = "movie"
FeedbackEmail = "feedbackEmail"
NewsType = "news"
FileDownloadType = "fileDownload"
DishNameDownload = "dishNameDownload"
CanteenHeadcount = "canteenHeadCount"
MovieType = "movie"
FeedbackEmail = "feedbackEmail"

/* MensaType = "mensa"
AlarmType = "alarm" */
)

func New(db *gorm.DB) *CronService {
return &CronService{
db: db,
gf: gofeed.NewParser(),
APNs: apns.NewCronService(db),
db: db,
gf: gofeed.NewParser(),
}
}

Expand All @@ -61,9 +55,6 @@ func (c *CronService) Run() error {
FileDownloadType,
DishNameDownload,
CanteenHeadcount,
IOSNotifications,
IOSActivityReset,
NewExamResultsHook,
MovieType,
FeedbackEmail,
).
Expand All @@ -90,8 +81,6 @@ func (c *CronService) Run() error {
if env.IsMensaCronActive() {
g.Go(c.dishNameDownloadCron)
}
case NewExamResultsHook:
g.Go(func() error { return c.newExamResultsHookCron() })
case MovieType:
g.Go(func() error { return c.movieCron() })
/*
Expand All @@ -105,10 +94,6 @@ func (c *CronService) Run() error {
*/
case CanteenHeadcount:
g.Go(func() error { return c.canteenHeadCountCron() })
case IOSNotifications:
g.Go(func() error { return c.iosNotificationsCron() })
case IOSActivityReset:
g.Go(func() error { return c.iosActivityReset() })
case FeedbackEmail:
g.Go(func() error { return c.feedbackEmailCron() })
}
Expand Down
30 changes: 0 additions & 30 deletions server/backend/cron/ios_notifications.go

This file was deleted.

15 changes: 0 additions & 15 deletions server/backend/cron/new_exam_results_hook.go

This file was deleted.

6 changes: 2 additions & 4 deletions server/backend/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ func (s *CampusServer) CreateDevice(_ context.Context, req *pb.CreateDeviceReque
case pb.DeviceType_ANDROID:
return nil, status.Error(codes.Unimplemented, "android device creation not implemented")
case pb.DeviceType_IOS:
service := s.GetIOSDeviceService()
return service.CreateDevice(req)
return nil, status.Error(codes.Unimplemented, "ios device creation not implemented")
case pb.DeviceType_WINDOWS:
return nil, status.Error(codes.Unimplemented, "windows device creation not implemented")
}
Expand All @@ -150,8 +149,7 @@ func (s *CampusServer) DeleteDevice(_ context.Context, req *pb.DeleteDeviceReque
case pb.DeviceType_ANDROID:
return nil, status.Error(codes.Unimplemented, "android device remove not implemented")
case pb.DeviceType_IOS:
service := s.GetIOSDeviceService()
return service.DeleteDevice(req)
return nil, status.Error(codes.Unimplemented, "ios device remove not implemented")
case pb.DeviceType_WINDOWS:
return nil, status.Error(codes.Unimplemented, "windows device remove not implemented")
}
Expand Down
40 changes: 0 additions & 40 deletions server/backend/ios_notifications.go

This file was deleted.

139 changes: 0 additions & 139 deletions server/backend/ios_notifications/apns/jwt_token.go

This file was deleted.

Loading

0 comments on commit b2413e0

Please sign in to comment.