Пример #1
0
        private async void OnSendButtonClick(object sender, EventArgs e)
        {
            GetChannelsAndGroups(cSlChannelsFilePath, cSlGroupsFilePath);
            //List<string> buildGroupIDs = Configuration.ReadBuildGroupIDs();
            //int buildsUpdateInterval = Configuration.ReadEmailPullInterval();
            //bsLogic.Update(buildGroupIDs);
            //SLFilePostResult filePostResult = await slWebApiClient.SendFile("HOH\n\nOHOH\n\nO\n\nH\n\nOOhfhdfhdfh\n\nfdhdfhdfh\n\n", "txt", "myfile2", "G0JEAR3NK");
            List <SLFile> files = await slWebApiClient.FilesListAsync("G0JEAR3NK", "all");

            MessageBox.Show("Done");
        }
        private async Task <HashSet <string> > getCommitUidsForChannel(string channelID)
        {
            HashSet <string> commitUids = new HashSet <string>();
            List <SLFile>    files      = await slWebApiClient.FilesListAsync(channelID, "all");

            foreach (SLFile file in files)
            {
                if (file.title.StartsWith(cFileNamePrefix))
                {
                    string uidStr = file.title.Substring(cFileNamePrefix.Length, file.title.Length - cFileNamePrefix.Length);
                    commitUids.Add(uidStr);
                }
            }
            return(commitUids);
        }