Android Open Source - apps-android-commons Campaign Contribution From Project Back to project page apps-android-commons .
License The source code is released under:
Apache License
If you think the Android project apps-android-commons listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package org.wikimedia.commons.campaigns;
/ * f r o m w w w . j a v a 2 s . c o m * /
import android.net.Uri;
import org.wikimedia.commons.contributions.Contribution;
import java.util.ArrayList;
import java.util.Date;
public class CampaignContribution extends Contribution {
private Campaign campaign;
private ArrayList<String> fieldValues;
public CampaignContribution(Uri localUri, String remoteUri, String filename, String description, long dataLength, Date dateCreated, Date dateUploaded, String creator, String editSummary, Campaign campaign) {
super (localUri, remoteUri, filename, description, dataLength, dateCreated, dateUploaded, creator, editSummary);
this.campaign = campaign;
}
public Campaign getCampaign() {
return campaign;
}
public void setCampaign(Campaign campaign) {
this.campaign = campaign;
}
@Override
public String getTrackingTemplates() {
StringBuffer buffer = new StringBuffer();
if (campaign.getAutoAddWikitext() != null) {
buffer.append(campaign.getAutoAddWikitext()).append("\n" );
}
if (campaign.getAutoAddCategories() != null && campaign.getAutoAddCategories().size() != 0) {
for (String cat : campaign.getAutoAddCategories()) {
buffer.append("[[Category:" ).append(cat).append("]]" ).append("\n" );
}
} else {
buffer.append("{{subst:unc}}\n" );
}
buffer.append("[[Category:" ).append(campaign.getTrackingCategory()).append("]]" ).append("\n" );
return buffer.toString();
}
@Override
public String getDescription() {
return super.getDescription();
}
}
Java Source Code List com.gst_sdk.GStreamer.java com.gst_sdk.GStreamer.java org.wikimedia.commons.AboutActivity.java org.wikimedia.commons.CommonsApplication.java org.wikimedia.commons.EventLog.java org.wikimedia.commons.HandlerService.java org.wikimedia.commons.LicenseList.java org.wikimedia.commons.License.java org.wikimedia.commons.MediaDataExtractor.java org.wikimedia.commons.MediaWikiImageView.java org.wikimedia.commons.Media.java org.wikimedia.commons.Prefs.java org.wikimedia.commons.SettingsActivity.java org.wikimedia.commons.Utils.java org.wikimedia.commons.WelcomeActivity.java org.wikimedia.commons.api.MWApi.java org.wikimedia.commons.auth.AuthenticatedActivity.java org.wikimedia.commons.auth.LoginActivity.java org.wikimedia.commons.auth.WikiAccountAuthenticatorService.java org.wikimedia.commons.auth.WikiAccountAuthenticator.java org.wikimedia.commons.campaigns.CampaignActivity.java org.wikimedia.commons.campaigns.CampaignContribution.java org.wikimedia.commons.campaigns.Campaign.java org.wikimedia.commons.campaigns.CampaignsContentProvider.java org.wikimedia.commons.campaigns.CampaignsListAdapter.java org.wikimedia.commons.campaigns.CampaignsSyncAdapter.java org.wikimedia.commons.campaigns.CampaignsSyncService.java org.wikimedia.commons.category.CategorizationFragment.java org.wikimedia.commons.category.CategoryContentProvider.java org.wikimedia.commons.category.Category.java org.wikimedia.commons.contributions.ContributionController.java org.wikimedia.commons.contributions.ContributionViewHolder.java org.wikimedia.commons.contributions.Contribution.java org.wikimedia.commons.contributions.ContributionsActivity.java org.wikimedia.commons.contributions.ContributionsContentProvider.java org.wikimedia.commons.contributions.ContributionsListAdapter.java org.wikimedia.commons.contributions.ContributionsListFragment.java org.wikimedia.commons.contributions.ContributionsSyncAdapter.java org.wikimedia.commons.contributions.ContributionsSyncService.java org.wikimedia.commons.contributions.MediaListAdapter.java org.wikimedia.commons.data.DBOpenHelper.java org.wikimedia.commons.media.CategoryImagesLoader.java org.wikimedia.commons.media.MediaDetailFragment.java org.wikimedia.commons.media.MediaDetailPagerFragment.java org.wikimedia.commons.media.MediaDetailSpacer.java org.wikimedia.commons.modifications.CategoryModifier.java org.wikimedia.commons.modifications.ModificationsContentProvider.java org.wikimedia.commons.modifications.ModificationsSyncAdapter.java org.wikimedia.commons.modifications.ModificationsSyncService.java org.wikimedia.commons.modifications.ModifierSequence.java org.wikimedia.commons.modifications.PageModifier.java org.wikimedia.commons.modifications.TemplateRemoveModifier.java org.wikimedia.commons.upload.MultipleShareActivity.java org.wikimedia.commons.upload.MultipleUploadListFragment.java org.wikimedia.commons.upload.ShareActivity.java org.wikimedia.commons.upload.SingleUploadFragment.java org.wikimedia.commons.upload.UploadController.java org.wikimedia.commons.upload.UploadService.java