/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.arch.background.workmanager;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Embedded;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.arch.persistence.room.TypeConverters;

/**
 * Stores information about a logical unit of work.
 */
@Entity
@TypeConverters(Arguments.class)
class WorkSpec {


    @ColumnInfo(name = "id")
    @PrimaryKey
    String mId;

    // TODO(xbhatnag)
    @ColumnInfo(name = "repeat_duration")
    long mRepeatDuration;

    // TODO(xbhatnag)
    @ColumnInfo(name = "flex_duration")
    long mFlexDuration;

    @ColumnInfo(name = "status")
    @Work.WorkStatus
    int mStatus = Work.STATUS_ENQUEUED;

    @ColumnInfo(name = "worker_class_name")
    String mWorkerClassName;

    @Embedded
    Constraints mConstraints = new Constraints.Builder().build();

    Arguments mArguments = new Arguments();

    String mTag;

    // TODO(sumir): Should Backoff be disabled by default?
    @ColumnInfo(name = "backoff_policy")
    @Work.BackoffPolicy
    int mBackoffPolicy = Work.BACKOFF_POLICY_EXPONENTIAL;

    @ColumnInfo(name = "backoff_delay_duration")
    long mBackoffDelayDuration = Work.DEFAULT_BACKOFF_DELAY_DURATION;

    WorkSpec(String id) {
        mId = id;
    }
}

@@ -1005,16 +1005,23 @@
 .class)%0A
+public 
 class Wo
@@ -1030,17 +1030,16 @@
 Spec %7B%0A%0A
-%0A
     @Col

Change WorkSpec to public; you need to reference it when making a Worker.