This repository was archived by the owner on Jan 15, 2024. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ type TimeInterval struct {
1919	DaysOfMonth  []DayOfMonthRange  `json:"days_of_month,omitempty"` 
2020	Months       []MonthRange       `json:"months,omitempty"` 
2121	Years        []YearRange        `json:"years,omitempty"` 
22+ 	Location     Location           `json:"location,omitempty"` 
2223}
2324
2425// TimeRange represents a range of minutes within a 1440 minute day, exclusive of the End minute. 
@@ -39,6 +40,9 @@ type MonthRange string
3940// A YearRange is a positive inclusive range of years, e.g. "2030" or "2021:2022". 
4041type  YearRange  string 
4142
43+ // A Location time zone for the time interval in IANA time zone database, e.g. "America/New_York" 
44+ type  Location  string 
45+ 
4246// MuteTimings fetches all mute timings. 
4347func  (c  * Client ) MuteTimings () ([]MuteTiming , error ) {
4448	mts  :=  make ([]MuteTiming , 0 )
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ func createMuteTiming() MuteTiming {
100100				Weekdays : []WeekdayRange {"monday" , "wednesday" },
101101				Months :   []MonthRange {"1:3" , "4" },
102102				Years :    []YearRange {"2022" , "2023" },
103+ 				Location : "America/New_York" ,
103104			},
104105		},
105106	}
@@ -122,7 +123,8 @@ const getMuteTimingsJSON = `
122123				], 
123124				"months": [ 
124125					"1" 
125- 				] 
126+ 				], 
127+                 "location": "America/New_York" 
126128			} 
127129		] 
128130	}, 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments