Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions thrift/src/main/thrift/atoms/tempfootballcompetition.thrift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
namespace * contentatom.tempfootballcompetition
namespace java com.gu.contentatom.thrift.atom.tempfootballcompetition
#@namespace scala com.gu.contentatom.thrift.atom.tempfootballcompetition
#@namespace typescript _at_guardian.content_atom_model.tempfootballcompetition

enum TempFootballCompetitionComponentType {
MATCHDAY = 0,
}


struct TempFootballCompetitionAtom {
1: required string competitionId,
2: required TempFootballCompetitionComponentType componentType,
// 3: optional TempFootballCompetitionComponentData data // This can be used for any specific data for future components, if needed
}

// If we ever need to have specific data fields for competition components,
// we can define them here.
/*
union TempFootballCompetitionComponentData {
1: MatchDayComponentData matchDayData
}
*/
5 changes: 4 additions & 1 deletion thrift/src/main/thrift/contentatom.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ include "atoms/chart.thrift"
include "atoms/audio.thrift"
include "atoms/shared.thrift"
include "atoms/emailsignup.thrift"
include "atoms/tempfootballcompetition.thrift"

typedef string ContentAtomID

Expand All @@ -37,7 +38,8 @@ enum AtomType {
COMMONSDIVISION = 13,
CHART = 14,
AUDIO = 15,
EMAILSIGNUP = 16
EMAILSIGNUP = 16,
TEMPFOOTBALLCOMPETITION = 17
}

union AtomData {
Expand All @@ -58,6 +60,7 @@ union AtomData {
15: chart.ChartAtom chart
16: audio.AudioAtom audio
17: emailsignup.EmailSignUpAtom emailsignup
18: tempfootballcompetition.TempFootballCompetitionAtom tempFootballCompetition
}

struct ContentChangeDetails {
Expand Down
Loading