diff --git a/thrift/src/main/thrift/atoms/tempfootballcompetition.thrift b/thrift/src/main/thrift/atoms/tempfootballcompetition.thrift new file mode 100644 index 0000000..2a46f29 --- /dev/null +++ b/thrift/src/main/thrift/atoms/tempfootballcompetition.thrift @@ -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 +} +*/ \ No newline at end of file diff --git a/thrift/src/main/thrift/contentatom.thrift b/thrift/src/main/thrift/contentatom.thrift index e147f8a..683973a 100644 --- a/thrift/src/main/thrift/contentatom.thrift +++ b/thrift/src/main/thrift/contentatom.thrift @@ -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 @@ -37,7 +38,8 @@ enum AtomType { COMMONSDIVISION = 13, CHART = 14, AUDIO = 15, - EMAILSIGNUP = 16 + EMAILSIGNUP = 16, + TEMPFOOTBALLCOMPETITION = 17 } union AtomData { @@ -58,6 +60,7 @@ union AtomData { 15: chart.ChartAtom chart 16: audio.AudioAtom audio 17: emailsignup.EmailSignUpAtom emailsignup + 18: tempfootballcompetition.TempFootballCompetitionAtom tempFootballCompetition } struct ContentChangeDetails {